diff --git a/dist/dashboard/build.js b/dist/dashboard/build.js index d999d54..8ae5733 100644 --- a/dist/dashboard/build.js +++ b/dist/dashboard/build.js @@ -353,4 +353,4 @@ var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r] //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone -!function(i,c){"use strict";e.exports?e.exports=c(n(891)):(o=[n(9)],void 0===(a="function"==typeof(r=c)?r.apply(t,o):r)||(e.exports=a))}(0,(function(e){"use strict";if(!e.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function n(e,n){for(var r="",o=Math.abs(e),a=Math.floor(o),i=function(e,n){for(var r,o=".",a="";n>0;)n-=1,e*=60,r=Math.floor(e+1e-6),o+=t[r],e-=r,r&&(a+=o,o="");return a}(o-a,Math.min(~~n,10));a>0;)r=t[a%60]+r,a=Math.floor(a/60);return e<0&&(r="-"+r),r&&i?r+i:(i||"-"!==r)&&(r||i)||"0"}function r(e){var t,r=[],o=0;for(t=0;tc.population||i.population===c.population&&r&&r[i.name]?u.unshift(i):u.push(i),l=!0);l||d.push([i])}for(o=0;on&&(o=t,t=n,n=o),o=0;on&&(i=Math.min(i,o+1)));return[a,i]}(e.untils,t,n),a=r.apply(e.untils,o);return a[a.length-1]=null,{name:e.name,abbrs:r.apply(e.abbrs,o),untils:a,offsets:r.apply(e.offsets,o),population:e.population,countries:e.countries}}return e.tz.pack=i,e.tz.packBase60=n,e.tz.createLinks=l,e.tz.filterYears=d,e.tz.filterLinkPack=function(e,t,n,r){var o,a,u=e.zones,s=[];for(o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,i){return r((function(r,c,u,s,l,d,f){var p=u[s],h=typeof p,b=function(e,t,n,r){var a=void 0===r,i=null===r;if(e){if(a)return o(n,t,"undefined");if(i)return o(n,t,"null")}return a||i?null:-1}(r,l=l||n.anonymousMessage,f=f||s,p);if(-1!==b)return b;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+s+"` of type `"+h+"` supplied to `"+l+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+s+"` of type `"+h+"` supplied to `"+l+"`, expected `"+i+"`.");if(c&&!c(p)){var m=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+s+"` of type `"+h+"` supplied to `"+l+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";e.exports=n(898)},function(e,t,n){"use strict";var r=n(303)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(303),o=n(900),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")?o(n):n}},function(e,t,n){"use strict";var r=n(126),o=n(303)("%Function%"),a=o.apply,i=o.call;e.exports=function(){return r.apply(i,arguments)},e.exports.apply=function(){return r.apply(a,arguments)}},function(e,t,n){"use strict";var r=n(575),o=n(114);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!r.default.isMoment(e))return{};for(var i={},c=a?e.clone():e.clone().subtract(1,"month"),u=0;u<(a?t:t+2);u+=1){var s=[],l=c.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var h=0;h=o&&a2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,u=(n+6-o.day())%7,s=r.clone().subtract(c,"day"),l=o.clone().add(u,"day"),d=l.diff(s,"days")+1,f=s.clone(),p=[],h=0;h=c&&h1&&void 0!==arguments[1]?arguments[1]:a.default.localeData().firstDayOfWeek(),n=e.clone().startOf("month"),r=i(n,t);return Math.ceil((r+e.daysInMonth())/7)};var r,o=n(9),a=(r=o)&&r.__esModule?r:{default:r};function i(e,t){return(e.day()-t+7)%7}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),a=n(66),i=n.n(a),c=n(56),u=n.n(c),s=n(0),l=n.n(s),d=n(150);function f(e){var t="gf_extend_".concat(e),n=Object(d.c)(t);return{Fill:n.Fill,Slot:n.Slot}}var p=o()(cwp_global,"settings.integrations"),h={dashboard:{cards:{}},entries:{entry:{details:{footer:{actions:f("entries_entry_details_footer_actions"),links:f("entries_entry_details_footer_links")}}}},settings:{integrations:{fields:{}}}};i()(p,(function(e,t){h.settings.integrations.fields[t]=f("settings_integrations_".concat(t,"_fields"))})),u()(window,"cwp_gf.extend",h);var b=n(51),m=n.n(b),y=n(36),v=n.n(y),g=wp.hooks.applyFilters,_="cwp-gutenberg-forms";function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O=wp.hooks,w=O.addFilter,j=O.doAction,k=(o()(window,"cwp_gf"),wp.i18n.__);u()(window,"cwp_gf.extend.registerAddon",(function(e,t){if("string"!=typeof e&&console.error(k("Addon Slug must be of type string.",_)),"object"!==M(t)&&console.error(k("Addon Config for ".concat(e," must be an object"),_)),(!1 in t||"string"!=typeof t.parent)&&console.error(k("Addon ".concat(e," must have a valid parent integration"),_)),function(e){return 0!==g("cwp_gf.registerAddon",[]).filter((function(t){return v()(t.slug,e)})).length}(e))console.error(k("Addon with slug ".concat(e," already exist"),_));else{var n={slug:e,config:t};w("cwp_gf.registerAddon","cwp/gutenberg-forms/registerAddon",(function(e){var t=m()(e);return t.push(n),t})),j("cwp_gf.update_addons")}}));var A=n(237),L=n(53),S=(n(1),n(4));function E(e){return"/"===e.charAt(0)}function T(e,t){for(var n=t,r=n+1,o=e.length;r=0;l--){var d=o[l];"."===d?T(o,l):".."===d?(T(o,l),s++):s&&(T(o,l),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&E(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};var z=function(e,t){if(!e)throw new Error("Invariant failed")};function D(e){return"/"===e.charAt(0)?e:"/"+e}function C(e){return"/"===e.charAt(0)?e.substr(1):e}function N(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function P(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function R(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Y(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(S.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=x(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function W(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),l({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=Y(e,t,d(),m.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(m.entries[m.index]=r,l({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=m.index+e;return t>=0&&te.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n $1\n ').replace(n,'$1$2 ').replace(r,'$1')}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=qe()(e,"entry_fields"),r=qe()(n,(function(e){return Object.keys(e)})),a=[];return r.forEach((function(e){e.forEach((function(e){var n=!!xe()(t)||o()(t,e);!a.includes(e)&&n&&a.push(e)}))})),a}function Fe(e,t){var n=qe()(e,"entry_extra"),r=o()(n,0);return o()(r,t)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach((function(t){n[t]=o()(e,t)})),n}var Ue=wp.i18n.__;var Ve=me((function(e){var t=e.location.hash,n=t.split("/"),r=o()(n,n.length-1),a=Se()(r,"form-")||Se()(r,"summary"),i=Ie(t),c=[{name:"#/entries/".concat(i),title:Ue("Entries Table",_)},{name:"#/entries/summary/".concat(i),title:Ue(wp.element.createElement("span",null,"Entries Summary ",wp.element.createElement("span",{className:"cwp-nav-imp"},"BETA")),_)}];return wp.element.createElement(s.Fragment,null,wp.element.createElement("div",{className:"cwp-header"},wp.element.createElement("div",{className:"cwp_header_content"},wp.element.createElement("div",{className:"logo"},wp.element.createElement(Ee,null),wp.element.createElement("div",{className:"plugin_version"},wp.element.createElement("span",null,"2.1.0"))),wp.element.createElement(Pe,e))),a&&wp.element.createElement("div",{className:"cwp-header sub-header"},wp.element.createElement(Pe,{tabs:c})))}));var Ke=function(e){return wp.element.createElement("div",null,wp.element.createElement(Ve,e),wp.element.createElement("div",{style:{width:"95%",margin:"30px auto"}},e.children))},Ge=l.a.createContext(null);var $e=function(e){e()},Je={notify:function(){}};function Qe(){var e=$e,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var Ze=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=Je,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=Qe())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Je)},e}();var et=function(e){var t=e.store,n=e.context,r=e.children,o=Object(s.useMemo)((function(){var e=new Ze(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=Object(s.useMemo)((function(){return t.getState()}),[t]);Object(s.useEffect)((function(){var e=o.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var i=n||Ge;return l.a.createElement(i.Provider,{value:o},r)};function tt(){return(tt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var rt=n(315),ot=n.n(rt),at=n(308),it="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect,ct=[],ut=[null,null];function st(e,t){var n=e[1];return[t.payload,n+1]}function lt(e,t,n){it((function(){return e.apply(void 0,t)}),n)}function dt(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function ft(e,t,n,r,o,a,i,c,u,s){if(e){var l=!1,d=null,f=function(){if(!l){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===a.current?i.current||u():(a.current=e,c.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var pt=function(){return[null,0]};function ht(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,i=void 0===a?"connectAdvanced":a,c=n.renderCountProp,u=void 0===c?void 0:c,d=n.shouldHandleStateChanges,f=void 0===d||d,p=n.storeKey,h=void 0===p?"store":p,b=(n.withRef,n.forwardRef),m=void 0!==b&&b,y=n.context,v=void 0===y?Ge:y,g=nt(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),_=v;return function(t){var n=t.displayName||t.name||"Component",r=o(n),a=tt({},g,{getDisplayName:o,methodName:i,renderCountProp:u,shouldHandleStateChanges:f,storeKey:h,displayName:r,wrappedComponentName:n,WrappedComponent:t}),c=g.pure;var d=c?s.useMemo:function(e){return e()};function p(n){var r=Object(s.useMemo)((function(){var e=n.reactReduxForwardedRef,t=nt(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),o=r[0],i=r[1],c=r[2],u=Object(s.useMemo)((function(){return o&&o.Consumer&&Object(at.isContextConsumer)(l.a.createElement(o.Consumer,null))?o:_}),[o,_]),p=Object(s.useContext)(u),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var b=h?n.store:p.store,m=Object(s.useMemo)((function(){return function(t){return e(t.dispatch,a)}(b)}),[b]),y=Object(s.useMemo)((function(){if(!f)return ut;var e=new Ze(b,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[b,h,p]),v=y[0],g=y[1],M=Object(s.useMemo)((function(){return h?p:tt({},p,{subscription:v})}),[h,p,v]),O=Object(s.useReducer)(st,ct,pt),w=O[0][0],j=O[1];if(w&&w.error)throw w.error;var k=Object(s.useRef)(),A=Object(s.useRef)(c),L=Object(s.useRef)(),S=Object(s.useRef)(!1),E=d((function(){return L.current&&c===A.current?L.current:m(b.getState(),c)}),[b,w,c]);lt(dt,[A,k,S,c,E,L,g]),lt(ft,[f,b,v,m,A,k,S,L,g,j],[b,v,m]);var T=Object(s.useMemo)((function(){return l.a.createElement(t,tt({},E,{ref:i}))}),[i,t,E]);return Object(s.useMemo)((function(){return f?l.a.createElement(u.Provider,{value:M},T):T}),[u,T,M])}var b=c?l.a.memo(p):p;if(b.WrappedComponent=t,b.displayName=r,m){var y=l.a.forwardRef((function(e,t){return l.a.createElement(b,tt({},e,{reactReduxForwardedRef:t}))}));return y.displayName=r,y.WrappedComponent=t,ot()(y,t)}return ot()(b,t)}}function bt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function mt(e,t){if(bt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Et(e,t){return e===t}function Tt(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?ht:n,o=t.mapStateToPropsFactories,a=void 0===o?Ot:o,i=t.mapDispatchToPropsFactories,c=void 0===i?Mt:i,u=t.mergePropsFactories,s=void 0===u?jt:u,l=t.selectorFactory,d=void 0===l?Lt:l;return function(e,t,n,o){void 0===o&&(o={});var i=o,u=i.pure,l=void 0===u||u,f=i.areStatesEqual,p=void 0===f?Et:f,h=i.areOwnPropsEqual,b=void 0===h?mt:h,m=i.areStatePropsEqual,y=void 0===m?mt:m,v=i.areMergedPropsEqual,g=void 0===v?mt:v,_=nt(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),M=St(e,a,"mapStateToProps"),O=St(t,c,"mapDispatchToProps"),w=St(n,s,"mergeProps");return r(d,tt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:M,initMapDispatchToProps:O,initMergeProps:w,pure:l,areStatesEqual:p,areOwnPropsEqual:b,areStatePropsEqual:y,areMergedPropsEqual:g},_))}}var xt=Tt();var zt;zt=A.unstable_batchedUpdates,$e=zt;function Dt(e){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ct(e){switch(e){case"SETTINGS_SAVING":return"Saving";case"SETTINGS_SAVED":return"Settings Saved"}}function Nt(e){return e.split("\x3c!--Guide Break--\x3e")}function Pt(e,t){for(var n=0;n=1?t="year":(r=Math.floor(n/2592e3))>=1?t="month":(r=Math.floor(n/86400))>=1?t="day":(r=Math.floor(n/3600))>=1?t="hour":(r=Math.floor(n/60))>=1?t="minute":(r=n,t="second"),(r>1||0===r)&&(t+="s"),r+" "+t+" ago"}function Yt(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&")}function Wt(e){for(var t=[],n=0;n<=e;++n)t.push(n);return t}var qt=n(596),It=n.n(qt),Bt=n(365),Ht=n(366),Ft=wp.components.Button;var Xt=function(e){var t=e.info,n=o()(t,"title"),r=o()(t,"description"),a=o()(t,"action"),i=o()(t,"media");return wp.element.createElement(Bt.a,{className:"cwp_info_card"},wp.element.createElement(Ht.a,null,wp.element.createElement((function(){if(!Pt(i,["src","type"]))return null;var e=i.src,t=i.type;return"img"===t?wp.element.createElement("img",{src:e}):"svg"===t?wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:e}}):"counter"===t?wp.element.createElement("h1",null,wp.element.createElement(It.a,{useEasing:!0,end:e})):void 0}),null),!xe()(n)&&wp.element.createElement("h3",null,n),!xe()(r)&&wp.element.createElement("p",null,r),wp.element.createElement((function(){return Pt(a,["link","label"])?wp.element.createElement(Ft,{target:"__blank",href:a.link,isDefault:!0},a.label):null}),null)))};var Ut=xt((function(e){return{information:e.information}}),null)((function(e){var t=e.information.cards;return wp.element.createElement("div",{className:"cwp_info_cards"},t.map((function(e,t){return wp.element.createElement(Xt,{info:e,key:t})})))}));var Vt=function(e){var t=e.location;return t.pathname,t.search,wp.element.createElement("div",{className:"cwp_dashboard_root"},wp.element.createElement(Ut,null))},Kt=n(367),Gt=n(368),$t=n(369),Jt=n(72),Qt=n(370),Zt=n(591),en=n(371);function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(e,t){return function(n){var r={};i()(e,(function(e,n){r["cwp__"+t+"__"+n]=e.value})),n({type:"SETTINGS_SAVING"}),new wp.api.models.Settings(function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:Un,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INTEGRATION":var n=t.payload,r=n.integrationName,o=n.query;return e.integrations[r]=Fn(Fn({},e.integrations[r]),{},{enable:o}),Fn({},e);case"SET_INTEGRATION_DETAILS":return Fn({},e);case"SETTINGS_SAVING":return Fn(Fn({},e),{},{loading:"SETTINGS_SAVING"});case"SETTINGS_SAVED":return Fn(Fn({},e),{},{loading:"SETTINGS_SAVED"});case"SETTINGS_DONE":return Fn(Fn({},e),{},{loading:""});default:return e}},information:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vn;return e},generalSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Gn(Gn({},e),t.payload.newSettings);case"SAVE_SETTINGS":default:return Gn({},e)}},notice:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_NOTICE":var n=m()(e);return n.data.push(t.payload.notice),n;case"REMOVE_NOTICE":var r=m()(e);return r.data=r.data.filter((function(e){return!v()(e.id,t.payload.id)})),r;case"REMOVE_SIMILAR_NOTICES":var o=m()(e);return o.data=Zn()(o.data,"uniqueKey"),o;default:return e}},entries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:or,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTRIES_FETCHING":return nr(nr({},e),{},{loading:!0,error:!1});case"ENTRIES_FETCHED":return nr(nr({},e),{},{loading:!1,error:!1,data:t.payload.data,totalPages:t.payload.totalPages,currentPage:t.payload.currentPage,totalEntries:t.payload.totalEntries,filters:t.payload.filters,entriesFetchedHash:t.payload.hash});case"ENTRIES_FETCH_FAILED":return nr(nr({},e),{},{loading:!1,error:!0});case"UPDATE_ENTRY":return nr(nr({},e),{},{data:t.payload.updatedEntries});case"SET_ENTRIES_REFETCHING_STATUS":return nr(nr({},e),{},{refetchingStatus:t.payload.status});default:return e}}}),ir=n(600),cr=[Bn],ur=Object(yt.createStore)(ar,{},Object(ir.composeWithDevTools)(yt.applyMiddleware.apply(void 0,cr)));function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return null},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return function(i){var c=ur.getState().entries,u=o()(c,"perPage"),s=o()(c,"filters"),l=o()(c,"currentPage"),d=lr(lr(lr({},s),t),{},{page:null===e?l:e,per_page:u}),f=Yt(d=Wn()(d,n)),p=fr.concat("wp/v2/cwp_gf_entries?".concat(f));i({type:"ENTRIES_FETCHING"}),yn.a.get(p).then((function(t){var n=o()(t.headers,"x-wp-totalpages"),c=o()(t.headers,"x-wp-total"),u=t.data,s=void 0===u?[]:u;i({type:"ENTRIES_FETCHED",payload:{data:s,totalPages:n,currentPage:null===e?l:e,totalEntries:c,filters:d,hash:a}}),r(s)})).catch((function(e){i({type:"ENTRIES_FETCH_FAILED"})}))}},hr=n(245);var br=function(e){var t=e.icon,n=e.width,r=e.height,o={csv:function(){return wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"OutLine",viewBox:"0 0 512 512",width:512,height:512,style:{width:n,height:r}},wp.element.createElement("path",{d:"M349.657,18.343A8,8,0,0,0,344,16H120A56.063,56.063,0,0,0,64,72V440a56.063,56.063,0,0,0,56,56H392a56.063,56.063,0,0,0,56-56V120a8,8,0,0,0-2.343-5.657ZM352,43.313,420.687,112H392a40.045,40.045,0,0,1-40-40ZM120,32H336V72a56.063,56.063,0,0,0,56,56h40V352H80V72A40.045,40.045,0,0,1,120,32ZM392,480H120a40.045,40.045,0,0,1-40-40V368H432v72A40.045,40.045,0,0,1,392,480Z"}),wp.element.createElement("path",{d:"M256,400h16a8,8,0,0,0,0-16H256a24,24,0,0,0,0,48,8,8,0,0,1,0,16H240a8,8,0,0,0,0,16h16a24,24,0,0,0,0-48,8,8,0,0,1,0-16Z"}),wp.element.createElement("path",{d:"M337.94,384.239a8,8,0,0,0-9.7,5.821L320,423.016l-8.239-32.956a8,8,0,1,0-15.522,3.88l16,64a8,8,0,0,0,15.522,0l16-64A8,8,0,0,0,337.94,384.239Z"}),wp.element.createElement("path",{d:"M200,400a10.675,10.675,0,0,1,4.588,1.058,8,8,0,0,0,6.824-14.473A26.587,26.587,0,0,0,200,384c-17.645,0-32,17.944-32,40s14.355,40,32,40a26.587,26.587,0,0,0,11.412-2.585,8,8,0,0,0-6.824-14.473A10.675,10.675,0,0,1,200,448c-8.673,0-16-10.99-16-24S191.327,400,200,400Z"}),wp.element.createElement("path",{d:"M160,256a8,8,0,0,0,0,16h24v24a8,8,0,0,0,16,0V272h48v24a8,8,0,0,0,16,0V272h48v24a8,8,0,0,0,16,0V272h24a8,8,0,0,0,0-16H328V224h24a8,8,0,0,0,0-16H328V176h24a8,8,0,0,0,0-16H328V136a8,8,0,0,0-16,0v24H264V136a8,8,0,0,0-16,0v24H200V136a8,8,0,0,0-16,0v24H160a8,8,0,0,0,0,16h24v32H160a8,8,0,0,0,0,16h24v32Zm152,0H264V224h48Zm0-80v32H264V176Zm-112,0h48v32H200Zm0,48h48v32H200Z"}))},json:function(){return wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 58 58",style:{enableBackground:"new 0 0 58 58",width:n,height:r},xmlSpace:"preserve"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M50.949,12.187l-1.361-1.361l-9.504-9.505c-0.001-0.001-0.001-0.001-0.002-0.001l-0.77-0.771 C38.957,0.195,38.486,0,37.985,0H8.963C7.776,0,6.5,0.916,6.5,2.926V39v16.537V56c0,0.837,0.841,1.652,1.836,1.909 c0.051,0.014,0.1,0.033,0.152,0.043C8.644,57.983,8.803,58,8.963,58h40.074c0.16,0,0.319-0.017,0.475-0.048 c0.052-0.01,0.101-0.029,0.152-0.043C50.659,57.652,51.5,56.837,51.5,56v-0.463V39V13.978C51.5,13.211,51.407,12.644,50.949,12.187 z M39.5,3.565L47.935,12H39.5V3.565z M8.963,56c-0.071,0-0.135-0.025-0.198-0.049C8.61,55.877,8.5,55.721,8.5,55.537V41h41v14.537 c0,0.184-0.11,0.34-0.265,0.414C49.172,55.975,49.108,56,49.037,56H8.963z M8.5,39V2.926C8.5,2.709,8.533,2,8.963,2h28.595 C37.525,2.126,37.5,2.256,37.5,2.391V13.78c-0.532-0.48-1.229-0.78-2-0.78c-0.553,0-1,0.448-1,1s0.447,1,1,1c0.552,0,1,0.449,1,1v4 c0,1.2,0.542,2.266,1.382,3c-0.84,0.734-1.382,1.8-1.382,3v4c0,0.551-0.448,1-1,1c-0.553,0-1,0.448-1,1s0.447,1,1,1 c1.654,0,3-1.346,3-3v-4c0-1.103,0.897-2,2-2c0.553,0,1-0.448,1-1s-0.447-1-1-1c-1.103,0-2-0.897-2-2v-4 c0-0.771-0.301-1.468-0.78-2h11.389c0.135,0,0.265-0.025,0.391-0.058c0,0.015,0.001,0.021,0.001,0.036V39H8.5z"}),wp.element.createElement("path",{d:"M16.354,51.43c-0.019,0.446-0.171,0.764-0.458,0.95s-0.672,0.28-1.155,0.28c-0.191,0-0.396-0.022-0.615-0.068 s-0.429-0.098-0.629-0.157s-0.385-0.123-0.554-0.191s-0.299-0.135-0.39-0.198l-0.697,1.107c0.183,0.137,0.405,0.26,0.67,0.369 s0.54,0.207,0.827,0.294s0.565,0.15,0.834,0.191s0.504,0.062,0.704,0.062c0.401,0,0.791-0.039,1.169-0.116 c0.378-0.077,0.713-0.214,1.005-0.41s0.524-0.456,0.697-0.779s0.26-0.723,0.26-1.196v-7.848h-1.668V51.43z"}),wp.element.createElement("path",{d:"M25.083,49.064c-0.314-0.228-0.654-0.422-1.019-0.581s-0.702-0.323-1.012-0.492s-0.569-0.364-0.779-0.588 s-0.314-0.518-0.314-0.882c0-0.146,0.036-0.299,0.109-0.458s0.173-0.303,0.301-0.431s0.273-0.234,0.438-0.321 s0.337-0.139,0.52-0.157c0.328-0.027,0.597-0.032,0.807-0.014s0.378,0.05,0.506,0.096s0.226,0.091,0.294,0.137 s0.13,0.082,0.185,0.109c0.009-0.009,0.036-0.055,0.082-0.137s0.101-0.185,0.164-0.308s0.132-0.255,0.205-0.396 s0.137-0.271,0.191-0.39c-0.265-0.173-0.61-0.299-1.039-0.376s-0.853-0.116-1.271-0.116c-0.41,0-0.8,0.063-1.169,0.191 s-0.692,0.313-0.971,0.554s-0.499,0.535-0.663,0.882S20.4,46.13,20.4,46.576c0,0.492,0.104,0.902,0.314,1.23 s0.474,0.613,0.793,0.854s0.661,0.451,1.025,0.629s0.704,0.355,1.019,0.533s0.576,0.376,0.786,0.595s0.314,0.483,0.314,0.793 c0,0.511-0.148,0.896-0.444,1.155s-0.723,0.39-1.278,0.39c-0.183,0-0.378-0.019-0.588-0.055s-0.419-0.084-0.629-0.144 s-0.412-0.123-0.608-0.191s-0.357-0.139-0.485-0.212l-0.287,1.176c0.155,0.137,0.34,0.253,0.554,0.349s0.439,0.171,0.677,0.226 c0.237,0.055,0.472,0.094,0.704,0.116s0.458,0.034,0.677,0.034c0.511,0,0.966-0.077,1.367-0.232s0.738-0.362,1.012-0.622 s0.485-0.561,0.636-0.902s0.226-0.695,0.226-1.06c0-0.538-0.104-0.978-0.314-1.319S25.397,49.292,25.083,49.064z"}),wp.element.createElement("path",{d:"M34.872,45.072c-0.378-0.429-0.82-0.754-1.326-0.978s-1.06-0.335-1.661-0.335s-1.155,0.111-1.661,0.335 s-0.948,0.549-1.326,0.978s-0.675,0.964-0.889,1.606s-0.321,1.388-0.321,2.235s0.107,1.595,0.321,2.242s0.511,1.185,0.889,1.613 s0.82,0.752,1.326,0.971s1.06,0.328,1.661,0.328s1.155-0.109,1.661-0.328s0.948-0.542,1.326-0.971s0.675-0.966,0.889-1.613 s0.321-1.395,0.321-2.242s-0.107-1.593-0.321-2.235S35.25,45.501,34.872,45.072z M34.195,50.698 c-0.137,0.487-0.326,0.882-0.567,1.183s-0.515,0.518-0.82,0.649s-0.627,0.198-0.964,0.198c-0.328,0-0.641-0.07-0.937-0.212 s-0.561-0.364-0.793-0.67s-0.415-0.699-0.547-1.183s-0.203-1.066-0.212-1.75c0.009-0.702,0.082-1.294,0.219-1.777 c0.137-0.483,0.326-0.877,0.567-1.183s0.515-0.521,0.82-0.649s0.627-0.191,0.964-0.191c0.328,0,0.641,0.068,0.937,0.205 s0.561,0.36,0.793,0.67s0.415,0.704,0.547,1.183s0.203,1.06,0.212,1.743C34.405,49.616,34.332,50.211,34.195,50.698z"}),wp.element.createElement("polygon",{points:"44.012,50.869 40.061,43.924 38.393,43.924 38.393,54 40.061,54 40.061,47.055 44.012,54 45.68,54 45.68,43.924 44.012,43.924 "}),wp.element.createElement("path",{d:"M20.5,20v-4c0-0.551,0.448-1,1-1c0.553,0,1-0.448,1-1s-0.447-1-1-1c-1.654,0-3,1.346-3,3v4c0,1.103-0.897,2-2,2 c-0.553,0-1,0.448-1,1s0.447,1,1,1c1.103,0,2,0.897,2,2v4c0,1.654,1.346,3,3,3c0.553,0,1-0.448,1-1s-0.447-1-1-1 c-0.552,0-1-0.449-1-1v-4c0-1.2-0.542-2.266-1.382-3C19.958,22.266,20.5,21.2,20.5,20z"}),wp.element.createElement("circle",{cx:"28.5",cy:"19.5",r:"1.5"}),wp.element.createElement("path",{d:"M28.5,25c-0.553,0-1,0.448-1,1v3c0,0.552,0.447,1,1,1s1-0.448,1-1v-3C29.5,25.448,29.053,25,28.5,25z"})))},xls:function(){return wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512",style:{enableBackground:"new 0 0 512 512",width:n,height:r},xmlSpace:"preserve"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M494.479,138.557L364.04,3.018C362.183,1.09,359.621,0,356.945,0h-194.41c-21.757,0-39.458,17.694-39.458,39.442v137.789 H44.29c-16.278,0-29.521,13.239-29.521,29.513v147.744C14.769,370.761,28.012,384,44.29,384h78.787v88.627 c0,21.71,17.701,39.373,39.458,39.373h295.238c21.757,0,39.458-17.653,39.458-39.351V145.385 C497.231,142.839,496.244,140.392,494.479,138.557z M359.385,26.581l107.079,111.265H359.385V26.581z M44.29,364.308 c-5.42,0-9.828-4.405-9.828-9.82V206.744c0-5.415,4.409-9.821,9.828-9.821h265.881c5.419,0,9.829,4.406,9.829,9.821v147.744 c0,5.415-4.41,9.82-9.829,9.82H44.29z M477.538,472.649c0,10.84-8.867,19.659-19.766,19.659H162.535 c-10.899,0-19.766-8.828-19.766-19.68V384h167.401c16.279,0,29.522-13.239,29.522-29.512V206.744 c0-16.274-13.243-29.513-29.522-29.513H142.769V39.442c0-10.891,8.867-19.75,19.766-19.75h177.157v128 c0,5.438,4.409,9.846,9.846,9.846h128V472.649z"}))),wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M284.645,286.819c-2.25-3.636-5.366-6.501-9.346-8.598c-3.981-2.095-10.124-4.123-18.432-6.085 c-8.308-1.962-13.538-3.847-15.692-5.654c-1.694-1.423-2.54-3.137-2.54-5.135c0-2.193,0.903-3.944,2.713-5.251 c2.808-2.038,6.693-3.057,11.653-3.057c4.807,0,8.414,0.953,10.818,2.855c2.403,1.903,3.97,5.029,4.701,9.376l17.076-0.751 c-0.268-7.769-3.084-13.981-8.45-18.633c-5.367-4.655-13.356-6.981-23.97-6.981c-6.501,0-12.049,0.979-16.645,2.942 c-4.596,1.962-8.116,4.817-10.558,8.566c-2.442,3.751-3.665,7.781-3.665,12.089c0,6.69,2.597,12.364,7.791,17.019 c3.692,3.306,10.114,6.095,19.269,8.364c7.114,1.77,11.673,3.001,13.671,3.692c2.925,1.039,4.972,2.26,6.144,3.663 c1.174,1.406,1.76,3.106,1.76,5.108c0,3.114-1.394,5.836-4.182,8.162c-2.789,2.326-6.932,3.49-12.433,3.49 c-5.192,0-9.317-1.307-12.374-3.924c-3.057-2.614-5.085-6.71-6.087-12.288l-16.616,1.615c1.115,9.462,4.539,16.665,10.27,21.607 c5.731,4.94,13.942,7.412,24.635,7.412c7.345,0,13.482-1.029,18.405-3.087c4.923-2.055,8.728-5.201,11.421-9.433 c2.693-4.229,4.04-8.768,4.04-13.615C288.02,294.942,286.895,290.452,284.645,286.819z"}))),wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"168.943,310.673 168.943,241.039 151.864,241.039 151.864,324.923 211.405,324.923 211.405,310.673 "}))),wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"113.73,281.423 140.039,240.347 120.251,240.347 103.636,267.52 86.673,240.347 66.713,240.347 92.903,280.788 64,324.923 84.48,324.923 103.289,295.672 122.038,324.923 142.634,324.923 "}))))}}[t];return wp.element.createElement(o,null)};function mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nc},p=function(){return Number(i)-1<=0};return wp.element.createElement("div",{className:"cwp-pagination"},wp.element.createElement("div",{className:"tablenav-pages"},wp.element.createElement("span",{className:"displaying-num"},u," items"),wp.element.createElement("span",{className:"pagination-links"},wp.element.createElement("span",{onClick:function(){var t=Number(i)-1;p()||e.getEntries(t,{},[],(function(){return null}),d)},className:"tablenav-pages-navspan button ".concat(p()?"disabled":""),"aria-hidden":"true"},"โ€น"),wp.element.createElement("span",{className:"paging-input"},wp.element.createElement("label",{htmlFor:"current-page-selector",className:"screen-reader-text"},"Current Page"),wp.element.createElement("input",{className:"current-page",id:"current-page-selector",type:"number",name:"paged",onChange:function(t){var n,o=Number(t.target.value);o>0&&o<=c&&(r(o),(n=o)>0&&n<=c&&!v()(i,n)&&e.getEntries(n,{},[],(function(){return null}),d))},size:1,value:n,"aria-describedby":"table-paging"}),wp.element.createElement("span",{className:"tablenav-paging-text"}," ","of ",wp.element.createElement("span",{className:"total-pages"},c))),wp.element.createElement("a",{onClick:function(){var t=Number(i)+1;f()||e.getEntries(t,{},[],(function(){return null}),d)},className:"next-page button ".concat(f()?"disabled":"")},wp.element.createElement("span",{className:"screen-reader-text"},"Next page"),wp.element.createElement("span",{"aria-hidden":"true"},"โ€บ")))))}))),Gr=n(173),$r=n.n(Gr),Jr=n(256),Qr=n.n(Jr);var Zr=function(e){var t=e.data,n=e.preCells,r=void 0===n?[]:n;return!xe()(t)&&wp.element.createElement("table",{className:"cwp-entry-detail-table"},wp.element.createElement("tbody",null,qe()(t,(function(e,t){var n=On()(r,t)?"
".concat(e,"
"):e;return wp.element.createElement("tr",{key:t},wp.element.createElement("td",{style:{borderRight:"1px solid #ccc"}},wp.element.createElement("strong",null,t)," "),wp.element.createElement("td",{dangerouslySetInnerHTML:{__html:xe()(n)?"-":Be(n)}}))}))))};function eo(){return(eo=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:n,i=o()(a,"id"),c=ho(ho({},a),{},{entry_status:t});h(!0),_o.ajax({type:"POST",url:w,data:{status:t,action:"cwp_gf_update_entry_status",id:i},success:function(t){h(!1),r(c),e.updateEntry(c)},error:function(e){console.log(e),h(!1)}})},k=function(){var t=e.entries.data,n=mo($r()(t,(function(e){var t=o()(e,"id");return v()(t,M)})),1)[0],a=void 0===n?{}:n,i=o()(window,"cwp_global.rest_url");if(xe()(a)){c(!0),d(!1);var u=null;null!==M?u=i.concat("wp/v2/cwp_gf_entries/").concat(M):xe()(O)||(u=i.concat("wp/v2/cwp_gf_entries/").concat("?post_slug=").concat(O)),xe()(u)||yn.a.get(u).then((function(e){c(!1),r((function(){return xe()(O)?e.data:o()(e,"data[0]")}),A)})).catch((function(e){d(!0),c(!1)}))}else r((function(){return a}),A)};Object(s.useEffect)(k,[]);var A=function(e){var t=o()(e,"entry_status");v()(t,"unread")&&j("read",e)};return wp.element.createElement("div",{className:"cwp-entry"},!i&&!l&&wp.element.createElement(s.Fragment,null,wp.element.createElement("div",{className:"cwp-entry-root"},wp.element.createElement(uo,{data:n,updateStatus:j,statusLoading:p,deleteEntry:function(){var t=o()(n,"id");y(!0),_o.ajax({type:"POST",url:w,data:{action:"cwp_gf_delete_entry",id:t},success:function(t){y(!1),e.history.goBack()},error:function(e){y(!1)}})},deletingStatus:m}))),i&&!l&&wp.element.createElement("div",{className:"cwp-loader"},wp.element.createElement("span",null,vo("Fetching Entry Details",_))," ",wp.element.createElement(vn.a,null)),!i&&l&&wp.element.createElement("div",{className:"cwp-loader"},wp.element.createElement("span",null,vo("Failed to load Entry",_)," ",wp.element.createElement(go,{isLink:!0,onClick:k},vo("Try Again",_)))))}))),Oo=n(607),wo=n.n(Oo);function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=He(e,n),o={};return i()(t,(function(e,t){o[t]=e})),i()(r,(function(e){Ye()(o,e)||(o[e]="-")})),Xe(o,r)}(n.data,c,u.columns),(function(e,t){var n,r,o=''.concat(t,": ")+(r=30,(n=e).lengthe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?{}:a;return wp.element.createElement("div",{className:"cwp-summary-pagin"},wp.element.createElement("span",null,Go("".concat(t," - ").concat(n," of ").concat(n),_)),wp.element.createElement("div",{className:"pagin-icons"},wp.element.createElement($o,Ko({},c,{icon:"arrow-left-alt2",onClick:o})),wp.element.createElement($o,Ko({},i,{icon:"arrow-right-alt2",onClick:r}))))};function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:m,n=e.field,r=e.formId,o={field_id:n,form_id:r,page:t,per_page:5,field_type:E};c(!0),d(!1),oa.ajax({url:j,data:o}).done((function(e){h(e),c(!1)})).fail((function(){console.error(l),d(!0),c(!1)}))},D=function(e){var t=m+1,n=m-1,r=n>0;"next"===e&&t<=T&&(y(t),z(t)),"prev"===e&&r&&(y(n),z(n))};return Object(s.useEffect)(z,[]),Object(s.useEffect)(z,[m]),wp.element.createElement(Bt.a,{className:"cwp-summary-block"},wp.element.createElement(Kt.a,{className:"cwp-head",onClick:function(){r(!n)}},wp.element.createElement("div",{className:"name"},wp.element.createElement(Rn.a,{style:x,className:"toggle-icon",icon:"arrow-down-alt2"}),wp.element.createElement("div",null,wp.element.createElement("h3",{className:"toggle-icon"},e.field),!xe()(k)&&!xe()(A)&&wp.element.createElement("p",{className:"answered"},aa("".concat(To()(A).toString()," out of ").concat(To()(k).toString()," respondents answered"),_))))),n&&wp.element.createElement(Ht.a,{className:"cwp-body"},i&&!l&&wp.element.createElement(s.Fragment,null,wp.element.createElement(Xo,null),wp.element.createElement(Xo,null),wp.element.createElement(Xo,null),wp.element.createElement(Xo,null),wp.element.createElement(Xo,null)),!i&&!l&&xe()(L)&&wp.element.createElement(s.Fragment,null,qe()(w,(function(e,t){var n=o()(e,"value"),r=o()(e,"post_slug");return!xe()(n)&&wp.element.createElement("div",{key:t,className:"cwp-field-value"},wp.element.createElement("div",null,wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:Be(n,!0)}})),wp.element.createElement("div",{className:"action"},wp.element.createElement(Ae,{to:Zo(Zo({},O),{},{hash:"#/entries/post_slug=".concat(r)})},wp.element.createElement(Qt.a,{icon:"visibility",label:aa("View Full Entry",_)}))))})),wp.element.createElement(Jo,{onNext:function(){return D("next")},onPrev:function(){return D("prev")},currentPage:m,totalPages:T})),!i&&!l&&!xe()(L)&&wp.element.createElement(Vo,{data:p,type:E}),!i&&l&&wp.element.createElement("div",{className:"cwp-prompt"},wp.element.createElement("span",null,aa("Failed To Fetch",_)),wp.element.createElement(ra,{isLink:!0,onClick:z},aa("Try Again",_)))))}));function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ua(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==o[0]?o[0]:f,y(!0),n=i+"gutenberg-forms/forms/v1/imports/plugins/options?plugin=".concat(a,"&search=").concat(t),e.prev=3,e.next=6,yn.a.get(n);case 6:r=e.sent,y(!1),M(r.data),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),y(!1);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),S=wp.element.createElement("div",{className:"cwp-sf-label"},wp.element.createElement("span",null,"Search Form",b&&wp.element.createElement(hi,null))),E=function(){var e=ui(regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i+"gutenberg-forms/forms/v1/import/plugin",A(!0),n=qe()(u,"title"),e.prev=3,e.next=6,yn.a.post(t,{post_ids:n,plugin:a,type:"selective"});case 6:r=e.sent,o=r.data,console.log(o),A(!1),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),console.error(e.t0),A(!0);case 16:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement("div",{className:"cwp_plugin_import_options"},wp.element.createElement("div",{className:"cwp_plugin_import_header"},wp.element.createElement(pi,{icon:"arrow-left-alt2",onClick:e.onExit},di("Go Back",_))),wp.element.createElement("div",{className:"cwp_plugin_import_settings"},wp.element.createElement("h3",null,n),wp.element.createElement("p",null,di(r,"TEXT_DOMAIN")),wp.element.createElement("div",{className:"cwp_plugin_import_settings_search"},wp.element.createElement("div",null,wp.element.createElement(ii.a,{className:"cwp_search_f",label:di(S,_),placeholder:di("Search Form",_),value:u,suggestions:qe()(g,"title"),onChange:function(e){var t=o()(e,e.length-1);if(xe()(e))l(e);else{var n=$r()(g,{title:t}),r=o()(n,"[0].id");if(!ri()(r)){var a=m()(u);return a.pop(),void l(a)}var i=m()(u);i.push({value:t,title:r}),l(i)}},onInputChange:function(e){var t=ai()((function(){return L(e)}),500);w((function(e){return e.cancel&&e.cancel(),t})),p(e),t(e)}})),wp.element.createElement("div",{className:"cwp_plugin_import_settings_footer"},wp.element.createElement(pi,{isDefault:!0},di("Import All",_)),wp.element.createElement(pi,{isDefault:!0,isBusy:k,onClick:E},di("Import Selected",_))))))};function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(a.includes)(["iPad","iPhone"],t)}t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bindGlobal,u=void 0!==r&&r,s=n.eventName,l=void 0===s?"keydown":s,d=n.isDisabled,f=void 0!==d&&d,p=n.target,h=Object(i.useRef)(t);Object(i.useEffect)((function(){h.current=t}),[t]),Object(i.useEffect)((function(){if(!f){var t=new o.a(p?p.current:document);return Object(a.castArray)(e).forEach((function(e){var n=e.split("+"),r=new Set(n.filter((function(e){return e.length>1}))),o=r.has("alt"),a=r.has("shift");if(c()&&(1===r.size&&o||2===r.size&&o&&a))throw new Error("Cannot bind ".concat(e,". Alt and Shift+Alt modifiers are reserved for character input."));t[u?"bindGlobal":"bind"](e,(function(){return h.current.apply(h,arguments)}),l)})),function(){t.reset()}}}),[e,u,l,p,f])}},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f")},function(e,t,n){"use strict";var r=n(124),o=n(330);t.a=Object(o.a)(Object(r.a)(300,.5,0),Object(r.a)(-240,.5,1))},function(e,t,n){"use strict";var r=n(88),o=Object(r.f)(),a=Math.PI/3,i=2*Math.PI/3;t.a=function(e){var t;return e=(.5-e)*Math.PI,o.r=255*(t=Math.sin(e))*t,o.g=255*(t=Math.sin(e+a))*t,o.b=255*(t=Math.sin(e+i))*t,o+""}},function(e,t,n){"use strict";var r=n(11),o=n(6),a=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(a.cloneElement)(t,function(e){for(var t=1;t=0?(u>=r?10:u>=o?5:u>=a?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(u>=r?10:u>=o?5:u>=a?2:1)}function c(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),c=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),u=i/c;return u>=r?c*=10:u>=o?c*=5:u>=a&&(c*=2),t0)return[e];if((r=t0)for(e=Math.ceil(e/c),t=Math.floor(t/c),a=new Array(o=Math.ceil(t-e+1));++u0?Object(r.a)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.a=o;o.range},function(e,t,n){"use strict";var r=n(34),o=Object(r.a)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},t.a=o;o.range},function(e,t,n){"use strict";var r=n(0),o=n(141),a=Object(r.createElement)(o.f,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.c,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},function(e,t,n){"use strict";(function(e){var r=n(250),o="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0,a=e.env.FORCE_REDUCED_MOTION||o?function(){return!0}:function(){return Object(r.a)("(prefers-reduced-motion: reduce)")};t.a=a}).call(this,n(125))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r,o,a,i,c=n(105),u=n(319),s=n(153),l=function(e,t){var n=Object(s.a)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},d={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return l(100*e,t)},r:l,s:function(e,t){var n=Object(s.a)(e,t);if(!n)return e+"";var o=n[0],a=n[1],i=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,c=o.length;return i===c?o:i>c?o+new Array(i-c+1).join("0"):i>0?o.slice(0,i)+"."+o.slice(i):"0."+new Array(1-i).join("0")+Object(s.a)(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},f=function(e){return e},p=Array.prototype.map,h=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];o=function(e){var t,n,o=void 0===e.grouping||void 0===e.thousands?f:(t=p.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,c=t[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),a.push(e.substring(o-=c,o+c)),!((u+=c+1)>r));)c=t[i=(i+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?f:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(p.call(e.numerals,String)),b=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function v(e){var t=(e=Object(u.a)(e)).fill,n=e.align,c=e.sign,f=e.symbol,p=e.zero,v=e.width,g=e.comma,_=e.precision,M=e.trim,O=e.type;"n"===O?(g=!0,O="g"):d[O]||(void 0===_&&(_=12),M=!0,O="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var w="$"===f?a:"#"===f&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j="$"===f?i:/[%p]/.test(O)?b:"",k=d[O],A=/[defgprs%]/.test(O);function L(e){var a,i,u,d=w,f=j;if("c"===O)f=k(e)+f,e="";else{var b=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:k(Math.abs(e),_),M&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),b&&0==+e&&"+"!==c&&(b=!1),d=(b?"("===c?c:m:"-"===c||"("===c?"":c)+d,f=("s"===O?h[8+r/3]:"")+f+(b&&"("===c?")":""),A)for(a=-1,i=e.length;++a(u=e.charCodeAt(a))||u>57){f=(46===u?s+e.slice(a+1):e.slice(a))+f,e=e.slice(0,a);break}}g&&!p&&(e=o(e,1/0));var L=d.length+e.length+f.length,S=L>1)+d+e+f+S.slice(L);break;default:e=S+d+e+f}return l(e)}return _=void 0===_?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),L.toString=function(){return e+""},L}return{format:v,formatPrefix:function(e,t){var n=v(((e=Object(u.a)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(c.a)(t)/3))),o=Math.pow(10,-r),a=h[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),a=o.format,i=o.formatPrefix},function(e,t,n){"use strict";var r=n(88),o=n(266),a=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;na&&(o=t.slice(a,o),c[i]?c[i]+=o:c[++i]=o),(n=n[0])===(r=r[0])?c[i]?c[i]+=r:c[++i]=r:(c[++i]=null,u.push({i:i,x:Object(s.a)(n,r)})),a=f.lastIndex;return at?1:e>=t?0:NaN};var o,a,i=(1===(o=r).length&&(a=o,o=function(e,t){return r(a(e),t)}),{left:function(e,t,n,r){for(null==n&&(n=0),null==r&&(r=e.length);n>>1;o(e[a],t)<0?n=a+1:r=a}return n},right:function(e,t,n,r){for(null==n&&(n=0),null==r&&(r=e.length);n>>1;o(e[a],t)>0?r=a:n=a+1}return n}}),c=i.right;t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(968),o=n(969),a=n(970),i=n(971),c=n(972),u=n(973);function s(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function l(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function d(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var f,p,h={"-":"",_:" ",0:"0"},b=/^\s*\d+/,m=/^%/,y=/[\\^$*+?|[\]().{}]/g;function v(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a68?1900:2e3),n+r[0].length):-1}function E(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function T(e,t,n){var r=b.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function x(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function z(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=b.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function C(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function N(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function P(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function R(e,t,n){var r=b.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Y(e,t,n){var r=b.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function W(e,t,n){var r=m.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function q(e,t,n){var r=b.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function I(e,t,n){var r=b.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function B(e,t){return v(e.getDate(),t,2)}function H(e,t){return v(e.getHours(),t,2)}function F(e,t){return v(e.getHours()%12||12,t,2)}function X(e,t){return v(1+i.a.count(Object(c.a)(e),e),t,3)}function U(e,t){return v(e.getMilliseconds(),t,3)}function V(e,t){return U(e,t)+"000"}function K(e,t){return v(e.getMonth()+1,t,2)}function G(e,t){return v(e.getMinutes(),t,2)}function $(e,t){return v(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return v(a.d.count(Object(c.a)(e)-1,e),t,2)}function Z(e,t){var n=e.getDay();return e=n>=4||0===n?Object(a.e)(e):a.e.ceil(e),v(a.e.count(Object(c.a)(e),e)+(4===Object(c.a)(e).getDay()),t,2)}function ee(e){return e.getDay()}function te(e,t){return v(a.b.count(Object(c.a)(e)-1,e),t,2)}function ne(e,t){return v(e.getFullYear()%100,t,2)}function re(e,t){return v(e.getFullYear()%1e4,t,4)}function oe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+v(t/60|0,"0",2)+v(t%60,"0",2)}function ae(e,t){return v(e.getUTCDate(),t,2)}function ie(e,t){return v(e.getUTCHours(),t,2)}function ce(e,t){return v(e.getUTCHours()%12||12,t,2)}function ue(e,t){return v(1+o.a.count(Object(u.a)(e),e),t,3)}function se(e,t){return v(e.getUTCMilliseconds(),t,3)}function le(e,t){return se(e,t)+"000"}function de(e,t){return v(e.getUTCMonth()+1,t,2)}function fe(e,t){return v(e.getUTCMinutes(),t,2)}function pe(e,t){return v(e.getUTCSeconds(),t,2)}function he(e){var t=e.getUTCDay();return 0===t?7:t}function be(e,t){return v(r.d.count(Object(u.a)(e)-1,e),t,2)}function me(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(r.e)(e):r.e.ceil(e),v(r.e.count(Object(u.a)(e),e)+(4===Object(u.a)(e).getUTCDay()),t,2)}function ye(e){return e.getUTCDay()}function ve(e,t){return v(r.b.count(Object(u.a)(e)-1,e),t,2)}function ge(e,t){return v(e.getUTCFullYear()%100,t,2)}function _e(e,t){return v(e.getUTCFullYear()%1e4,t,4)}function Me(){return"+0000"}function Oe(){return"%"}function we(e){return+e}function je(e){return Math.floor(+e/1e3)}f=function(e){var t=e.dateTime,n=e.date,c=e.time,u=e.periods,f=e.days,p=e.shortDays,b=e.months,m=e.shortMonths,y=_(u),v=M(u),g=_(f),ke=M(f),Ae=_(p),Le=M(p),Se=_(b),Ee=M(b),Te=_(m),xe=M(m),ze={a:function(e){return p[e.getDay()]},A:function(e){return f[e.getDay()]},b:function(e){return m[e.getMonth()]},B:function(e){return b[e.getMonth()]},c:null,d:B,e:B,f:V,H:H,I:F,j:X,L:U,m:K,M:G,p:function(e){return u[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:we,s:je,S:$,u:J,U:Q,V:Z,w:ee,W:te,x:null,X:null,y:ne,Y:re,Z:oe,"%":Oe},De={a:function(e){return p[e.getUTCDay()]},A:function(e){return f[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return b[e.getUTCMonth()]},c:null,d:ae,e:ae,f:le,H:ie,I:ce,j:ue,L:se,m:de,M:fe,p:function(e){return u[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:we,s:je,S:pe,u:he,U:be,V:me,w:ye,W:ve,x:null,X:null,y:ge,Y:_e,Z:Me,"%":Oe},Ce={a:function(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.w=Le[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.w=ke[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Te.exec(t.slice(n));return r?(e.m=xe[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=Se.exec(t.slice(n));return r?(e.m=Ee[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return Re(e,t,n,r)},d:z,e:z,f:Y,H:C,I:C,j:D,L:R,m:x,M:N,p:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.p=v[r[0].toLowerCase()],n+r[0].length):-1},q:T,Q:q,s:I,S:P,u:w,U:j,V:k,w:O,W:A,x:function(e,t,r){return Re(e,n,t,r)},X:function(e,t,n){return Re(e,c,t,n)},y:S,Y:L,Z:E,"%":W};function Ne(e,t){return function(n){var r,o,a,i=[],c=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in f||(f.w=1),"Z"in f?(u=(c=l(d(f.y,0,1))).getUTCDay(),c=u>4||0===u?r.b.ceil(c):Object(r.b)(c),c=o.a.offset(c,7*(f.V-1)),f.y=c.getUTCFullYear(),f.m=c.getUTCMonth(),f.d=c.getUTCDate()+(f.w+6)%7):(u=(c=s(d(f.y,0,1))).getDay(),c=u>4||0===u?a.b.ceil(c):Object(a.b)(c),c=i.a.offset(c,7*(f.V-1)),f.y=c.getFullYear(),f.m=c.getMonth(),f.d=c.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),u="Z"in f?l(d(f.y,0,1)).getUTCDay():s(d(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(u+5)%7:f.w+7*f.U-(u+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,l(f)):s(f)}}function Re(e,t,n,r){for(var o,a,i=0,c=t.length,u=n.length;i=u)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=Ce[o in h?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return ze.x=Ne(n,ze),ze.X=Ne(c,ze),ze.c=Ne(t,ze),De.x=Ne(n,De),De.X=Ne(c,De),De.c=Ne(t,De),{format:function(e){var t=Ne(e+="",ze);return t.toString=function(){return e},t},parse:function(e){var t=Pe(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ne(e+="",De);return t.toString=function(){return e},t},utcParse:function(e){var t=Pe(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),p=f.format,f.parse,f.utcFormat,f.utcParse}]); \ No newline at end of file +!function(i,c){"use strict";e.exports?e.exports=c(n(891)):(o=[n(9)],void 0===(a="function"==typeof(r=c)?r.apply(t,o):r)||(e.exports=a))}(0,(function(e){"use strict";if(!e.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function n(e,n){for(var r="",o=Math.abs(e),a=Math.floor(o),i=function(e,n){for(var r,o=".",a="";n>0;)n-=1,e*=60,r=Math.floor(e+1e-6),o+=t[r],e-=r,r&&(a+=o,o="");return a}(o-a,Math.min(~~n,10));a>0;)r=t[a%60]+r,a=Math.floor(a/60);return e<0&&(r="-"+r),r&&i?r+i:(i||"-"!==r)&&(r||i)||"0"}function r(e){var t,r=[],o=0;for(t=0;tc.population||i.population===c.population&&r&&r[i.name]?u.unshift(i):u.push(i),l=!0);l||d.push([i])}for(o=0;on&&(o=t,t=n,n=o),o=0;on&&(i=Math.min(i,o+1)));return[a,i]}(e.untils,t,n),a=r.apply(e.untils,o);return a[a.length-1]=null,{name:e.name,abbrs:r.apply(e.abbrs,o),untils:a,offsets:r.apply(e.offsets,o),population:e.population,countries:e.countries}}return e.tz.pack=i,e.tz.packBase60=n,e.tz.createLinks=l,e.tz.filterYears=d,e.tz.filterLinkPack=function(e,t,n,r){var o,a,u=e.zones,s=[];for(o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,i){return r((function(r,c,u,s,l,d,f){var p=u[s],h=typeof p,b=function(e,t,n,r){var a=void 0===r,i=null===r;if(e){if(a)return o(n,t,"undefined");if(i)return o(n,t,"null")}return a||i?null:-1}(r,l=l||n.anonymousMessage,f=f||s,p);if(-1!==b)return b;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+s+"` of type `"+h+"` supplied to `"+l+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+s+"` of type `"+h+"` supplied to `"+l+"`, expected `"+i+"`.");if(c&&!c(p)){var m=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+s+"` of type `"+h+"` supplied to `"+l+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";e.exports=n(898)},function(e,t,n){"use strict";var r=n(303)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(303),o=n(900),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")?o(n):n}},function(e,t,n){"use strict";var r=n(126),o=n(303)("%Function%"),a=o.apply,i=o.call;e.exports=function(){return r.apply(i,arguments)},e.exports.apply=function(){return r.apply(a,arguments)}},function(e,t,n){"use strict";var r=n(575),o=n(114);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!r.default.isMoment(e))return{};for(var i={},c=a?e.clone():e.clone().subtract(1,"month"),u=0;u<(a?t:t+2);u+=1){var s=[],l=c.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var h=0;h=o&&a2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,u=(n+6-o.day())%7,s=r.clone().subtract(c,"day"),l=o.clone().add(u,"day"),d=l.diff(s,"days")+1,f=s.clone(),p=[],h=0;h=c&&h1&&void 0!==arguments[1]?arguments[1]:a.default.localeData().firstDayOfWeek(),n=e.clone().startOf("month"),r=i(n,t);return Math.ceil((r+e.daysInMonth())/7)};var r,o=n(9),a=(r=o)&&r.__esModule?r:{default:r};function i(e,t){return(e.day()-t+7)%7}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),a=n(66),i=n.n(a),c=n(56),u=n.n(c),s=n(0),l=n.n(s),d=n(150);function f(e){var t="gf_extend_".concat(e),n=Object(d.c)(t);return{Fill:n.Fill,Slot:n.Slot}}var p=o()(cwp_global,"settings.integrations"),h={dashboard:{cards:{}},entries:{entry:{details:{footer:{actions:f("entries_entry_details_footer_actions"),links:f("entries_entry_details_footer_links")}}}},settings:{integrations:{fields:{}}}};i()(p,(function(e,t){h.settings.integrations.fields[t]=f("settings_integrations_".concat(t,"_fields"))})),u()(window,"cwp_gf.extend",h);var b=n(51),m=n.n(b),y=n(36),v=n.n(y),g=wp.hooks.applyFilters,_="cwp-gutenberg-forms";function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O=wp.hooks,w=O.addFilter,j=O.doAction,k=(o()(window,"cwp_gf"),wp.i18n.__);u()(window,"cwp_gf.extend.registerAddon",(function(e,t){if("string"!=typeof e&&console.error(k("Addon Slug must be of type string.",_)),"object"!==M(t)&&console.error(k("Addon Config for ".concat(e," must be an object"),_)),(!1 in t||"string"!=typeof t.parent)&&console.error(k("Addon ".concat(e," must have a valid parent integration"),_)),function(e){return 0!==g("cwp_gf.registerAddon",[]).filter((function(t){return v()(t.slug,e)})).length}(e))console.error(k("Addon with slug ".concat(e," already exist"),_));else{var n={slug:e,config:t};w("cwp_gf.registerAddon","cwp/gutenberg-forms/registerAddon",(function(e){var t=m()(e);return t.push(n),t})),j("cwp_gf.update_addons")}}));var A=n(237),L=n(53),S=(n(1),n(4));function E(e){return"/"===e.charAt(0)}function T(e,t){for(var n=t,r=n+1,o=e.length;r=0;l--){var d=o[l];"."===d?T(o,l):".."===d?(T(o,l),s++):s&&(T(o,l),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&E(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};var z=function(e,t){if(!e)throw new Error("Invariant failed")};function D(e){return"/"===e.charAt(0)?e:"/"+e}function C(e){return"/"===e.charAt(0)?e.substr(1):e}function N(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function P(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function R(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Y(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(S.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=x(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function W(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),l({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=Y(e,t,d(),m.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(m.entries[m.index]=r,l({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=m.index+e;return t>=0&&te.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n $1\n ').replace(n,'$1$2 ').replace(r,'$1')}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=qe()(e,"entry_fields"),r=qe()(n,(function(e){return Object.keys(e)})),a=[];return r.forEach((function(e){e.forEach((function(e){var n=!!xe()(t)||o()(t,e);!a.includes(e)&&n&&a.push(e)}))})),a}function Fe(e,t){var n=qe()(e,"entry_extra"),r=o()(n,0);return o()(r,t)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach((function(t){n[t]=o()(e,t)})),n}var Ue=wp.i18n.__;var Ve=me((function(e){var t=e.location.hash,n=t.split("/"),r=o()(n,n.length-1),a=Se()(r,"form-")||Se()(r,"summary"),i=Ie(t),c=[{name:"#/entries/".concat(i),title:Ue("Entries Table",_)},{name:"#/entries/summary/".concat(i),title:Ue(wp.element.createElement("span",null,"Entries Summary ",wp.element.createElement("span",{className:"cwp-nav-imp"},"BETA")),_)}];return wp.element.createElement(s.Fragment,null,wp.element.createElement("div",{className:"cwp-header"},wp.element.createElement("div",{className:"cwp_header_content"},wp.element.createElement("div",{className:"logo"},wp.element.createElement(Ee,null),wp.element.createElement("div",{className:"plugin_version"},wp.element.createElement("span",null,"2.1.2"))),wp.element.createElement(Pe,e))),a&&wp.element.createElement("div",{className:"cwp-header sub-header"},wp.element.createElement(Pe,{tabs:c})))}));var Ke=function(e){return wp.element.createElement("div",null,wp.element.createElement(Ve,e),wp.element.createElement("div",{style:{width:"95%",margin:"30px auto"}},e.children))},Ge=l.a.createContext(null);var $e=function(e){e()},Je={notify:function(){}};function Qe(){var e=$e,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var Ze=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=Je,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=Qe())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Je)},e}();var et=function(e){var t=e.store,n=e.context,r=e.children,o=Object(s.useMemo)((function(){var e=new Ze(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=Object(s.useMemo)((function(){return t.getState()}),[t]);Object(s.useEffect)((function(){var e=o.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var i=n||Ge;return l.a.createElement(i.Provider,{value:o},r)};function tt(){return(tt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var rt=n(315),ot=n.n(rt),at=n(308),it="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect,ct=[],ut=[null,null];function st(e,t){var n=e[1];return[t.payload,n+1]}function lt(e,t,n){it((function(){return e.apply(void 0,t)}),n)}function dt(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function ft(e,t,n,r,o,a,i,c,u,s){if(e){var l=!1,d=null,f=function(){if(!l){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===a.current?i.current||u():(a.current=e,c.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var pt=function(){return[null,0]};function ht(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,i=void 0===a?"connectAdvanced":a,c=n.renderCountProp,u=void 0===c?void 0:c,d=n.shouldHandleStateChanges,f=void 0===d||d,p=n.storeKey,h=void 0===p?"store":p,b=(n.withRef,n.forwardRef),m=void 0!==b&&b,y=n.context,v=void 0===y?Ge:y,g=nt(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),_=v;return function(t){var n=t.displayName||t.name||"Component",r=o(n),a=tt({},g,{getDisplayName:o,methodName:i,renderCountProp:u,shouldHandleStateChanges:f,storeKey:h,displayName:r,wrappedComponentName:n,WrappedComponent:t}),c=g.pure;var d=c?s.useMemo:function(e){return e()};function p(n){var r=Object(s.useMemo)((function(){var e=n.reactReduxForwardedRef,t=nt(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),o=r[0],i=r[1],c=r[2],u=Object(s.useMemo)((function(){return o&&o.Consumer&&Object(at.isContextConsumer)(l.a.createElement(o.Consumer,null))?o:_}),[o,_]),p=Object(s.useContext)(u),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var b=h?n.store:p.store,m=Object(s.useMemo)((function(){return function(t){return e(t.dispatch,a)}(b)}),[b]),y=Object(s.useMemo)((function(){if(!f)return ut;var e=new Ze(b,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[b,h,p]),v=y[0],g=y[1],M=Object(s.useMemo)((function(){return h?p:tt({},p,{subscription:v})}),[h,p,v]),O=Object(s.useReducer)(st,ct,pt),w=O[0][0],j=O[1];if(w&&w.error)throw w.error;var k=Object(s.useRef)(),A=Object(s.useRef)(c),L=Object(s.useRef)(),S=Object(s.useRef)(!1),E=d((function(){return L.current&&c===A.current?L.current:m(b.getState(),c)}),[b,w,c]);lt(dt,[A,k,S,c,E,L,g]),lt(ft,[f,b,v,m,A,k,S,L,g,j],[b,v,m]);var T=Object(s.useMemo)((function(){return l.a.createElement(t,tt({},E,{ref:i}))}),[i,t,E]);return Object(s.useMemo)((function(){return f?l.a.createElement(u.Provider,{value:M},T):T}),[u,T,M])}var b=c?l.a.memo(p):p;if(b.WrappedComponent=t,b.displayName=r,m){var y=l.a.forwardRef((function(e,t){return l.a.createElement(b,tt({},e,{reactReduxForwardedRef:t}))}));return y.displayName=r,y.WrappedComponent=t,ot()(y,t)}return ot()(b,t)}}function bt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function mt(e,t){if(bt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Et(e,t){return e===t}function Tt(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?ht:n,o=t.mapStateToPropsFactories,a=void 0===o?Ot:o,i=t.mapDispatchToPropsFactories,c=void 0===i?Mt:i,u=t.mergePropsFactories,s=void 0===u?jt:u,l=t.selectorFactory,d=void 0===l?Lt:l;return function(e,t,n,o){void 0===o&&(o={});var i=o,u=i.pure,l=void 0===u||u,f=i.areStatesEqual,p=void 0===f?Et:f,h=i.areOwnPropsEqual,b=void 0===h?mt:h,m=i.areStatePropsEqual,y=void 0===m?mt:m,v=i.areMergedPropsEqual,g=void 0===v?mt:v,_=nt(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),M=St(e,a,"mapStateToProps"),O=St(t,c,"mapDispatchToProps"),w=St(n,s,"mergeProps");return r(d,tt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:M,initMapDispatchToProps:O,initMergeProps:w,pure:l,areStatesEqual:p,areOwnPropsEqual:b,areStatePropsEqual:y,areMergedPropsEqual:g},_))}}var xt=Tt();var zt;zt=A.unstable_batchedUpdates,$e=zt;function Dt(e){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ct(e){switch(e){case"SETTINGS_SAVING":return"Saving";case"SETTINGS_SAVED":return"Settings Saved"}}function Nt(e){return e.split("\x3c!--Guide Break--\x3e")}function Pt(e,t){for(var n=0;n=1?t="year":(r=Math.floor(n/2592e3))>=1?t="month":(r=Math.floor(n/86400))>=1?t="day":(r=Math.floor(n/3600))>=1?t="hour":(r=Math.floor(n/60))>=1?t="minute":(r=n,t="second"),(r>1||0===r)&&(t+="s"),r+" "+t+" ago"}function Yt(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&")}function Wt(e){for(var t=[],n=0;n<=e;++n)t.push(n);return t}var qt=n(596),It=n.n(qt),Bt=n(365),Ht=n(366),Ft=wp.components.Button;var Xt=function(e){var t=e.info,n=o()(t,"title"),r=o()(t,"description"),a=o()(t,"action"),i=o()(t,"media");return wp.element.createElement(Bt.a,{className:"cwp_info_card"},wp.element.createElement(Ht.a,null,wp.element.createElement((function(){if(!Pt(i,["src","type"]))return null;var e=i.src,t=i.type;return"img"===t?wp.element.createElement("img",{src:e}):"svg"===t?wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:e}}):"counter"===t?wp.element.createElement("h1",null,wp.element.createElement(It.a,{useEasing:!0,end:e})):void 0}),null),!xe()(n)&&wp.element.createElement("h3",null,n),!xe()(r)&&wp.element.createElement("p",null,r),wp.element.createElement((function(){return Pt(a,["link","label"])?wp.element.createElement(Ft,{target:"__blank",href:a.link,isDefault:!0},a.label):null}),null)))};var Ut=xt((function(e){return{information:e.information}}),null)((function(e){var t=e.information.cards;return wp.element.createElement("div",{className:"cwp_info_cards"},t.map((function(e,t){return wp.element.createElement(Xt,{info:e,key:t})})))}));var Vt=function(e){var t=e.location;return t.pathname,t.search,wp.element.createElement("div",{className:"cwp_dashboard_root"},wp.element.createElement(Ut,null))},Kt=n(367),Gt=n(368),$t=n(369),Jt=n(72),Qt=n(370),Zt=n(591),en=n(371);function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(e,t){return function(n){var r={};i()(e,(function(e,n){r["cwp__"+t+"__"+n]=e.value})),n({type:"SETTINGS_SAVING"}),new wp.api.models.Settings(function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:Un,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INTEGRATION":var n=t.payload,r=n.integrationName,o=n.query;return e.integrations[r]=Fn(Fn({},e.integrations[r]),{},{enable:o}),Fn({},e);case"SET_INTEGRATION_DETAILS":return Fn({},e);case"SETTINGS_SAVING":return Fn(Fn({},e),{},{loading:"SETTINGS_SAVING"});case"SETTINGS_SAVED":return Fn(Fn({},e),{},{loading:"SETTINGS_SAVED"});case"SETTINGS_DONE":return Fn(Fn({},e),{},{loading:""});default:return e}},information:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vn;return e},generalSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Gn(Gn({},e),t.payload.newSettings);case"SAVE_SETTINGS":default:return Gn({},e)}},notice:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_NOTICE":var n=m()(e);return n.data.push(t.payload.notice),n;case"REMOVE_NOTICE":var r=m()(e);return r.data=r.data.filter((function(e){return!v()(e.id,t.payload.id)})),r;case"REMOVE_SIMILAR_NOTICES":var o=m()(e);return o.data=Zn()(o.data,"uniqueKey"),o;default:return e}},entries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:or,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTRIES_FETCHING":return nr(nr({},e),{},{loading:!0,error:!1});case"ENTRIES_FETCHED":return nr(nr({},e),{},{loading:!1,error:!1,data:t.payload.data,totalPages:t.payload.totalPages,currentPage:t.payload.currentPage,totalEntries:t.payload.totalEntries,filters:t.payload.filters,entriesFetchedHash:t.payload.hash});case"ENTRIES_FETCH_FAILED":return nr(nr({},e),{},{loading:!1,error:!0});case"UPDATE_ENTRY":return nr(nr({},e),{},{data:t.payload.updatedEntries});case"SET_ENTRIES_REFETCHING_STATUS":return nr(nr({},e),{},{refetchingStatus:t.payload.status});default:return e}}}),ir=n(600),cr=[Bn],ur=Object(yt.createStore)(ar,{},Object(ir.composeWithDevTools)(yt.applyMiddleware.apply(void 0,cr)));function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return null},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return function(i){var c=ur.getState().entries,u=o()(c,"perPage"),s=o()(c,"filters"),l=o()(c,"currentPage"),d=lr(lr(lr({},s),t),{},{page:null===e?l:e,per_page:u}),f=Yt(d=Wn()(d,n)),p=fr.concat("wp/v2/cwp_gf_entries?".concat(f));i({type:"ENTRIES_FETCHING"}),yn.a.get(p).then((function(t){var n=o()(t.headers,"x-wp-totalpages"),c=o()(t.headers,"x-wp-total"),u=t.data,s=void 0===u?[]:u;i({type:"ENTRIES_FETCHED",payload:{data:s,totalPages:n,currentPage:null===e?l:e,totalEntries:c,filters:d,hash:a}}),r(s)})).catch((function(e){i({type:"ENTRIES_FETCH_FAILED"})}))}},hr=n(245);var br=function(e){var t=e.icon,n=e.width,r=e.height,o={csv:function(){return wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"OutLine",viewBox:"0 0 512 512",width:512,height:512,style:{width:n,height:r}},wp.element.createElement("path",{d:"M349.657,18.343A8,8,0,0,0,344,16H120A56.063,56.063,0,0,0,64,72V440a56.063,56.063,0,0,0,56,56H392a56.063,56.063,0,0,0,56-56V120a8,8,0,0,0-2.343-5.657ZM352,43.313,420.687,112H392a40.045,40.045,0,0,1-40-40ZM120,32H336V72a56.063,56.063,0,0,0,56,56h40V352H80V72A40.045,40.045,0,0,1,120,32ZM392,480H120a40.045,40.045,0,0,1-40-40V368H432v72A40.045,40.045,0,0,1,392,480Z"}),wp.element.createElement("path",{d:"M256,400h16a8,8,0,0,0,0-16H256a24,24,0,0,0,0,48,8,8,0,0,1,0,16H240a8,8,0,0,0,0,16h16a24,24,0,0,0,0-48,8,8,0,0,1,0-16Z"}),wp.element.createElement("path",{d:"M337.94,384.239a8,8,0,0,0-9.7,5.821L320,423.016l-8.239-32.956a8,8,0,1,0-15.522,3.88l16,64a8,8,0,0,0,15.522,0l16-64A8,8,0,0,0,337.94,384.239Z"}),wp.element.createElement("path",{d:"M200,400a10.675,10.675,0,0,1,4.588,1.058,8,8,0,0,0,6.824-14.473A26.587,26.587,0,0,0,200,384c-17.645,0-32,17.944-32,40s14.355,40,32,40a26.587,26.587,0,0,0,11.412-2.585,8,8,0,0,0-6.824-14.473A10.675,10.675,0,0,1,200,448c-8.673,0-16-10.99-16-24S191.327,400,200,400Z"}),wp.element.createElement("path",{d:"M160,256a8,8,0,0,0,0,16h24v24a8,8,0,0,0,16,0V272h48v24a8,8,0,0,0,16,0V272h48v24a8,8,0,0,0,16,0V272h24a8,8,0,0,0,0-16H328V224h24a8,8,0,0,0,0-16H328V176h24a8,8,0,0,0,0-16H328V136a8,8,0,0,0-16,0v24H264V136a8,8,0,0,0-16,0v24H200V136a8,8,0,0,0-16,0v24H160a8,8,0,0,0,0,16h24v32H160a8,8,0,0,0,0,16h24v32Zm152,0H264V224h48Zm0-80v32H264V176Zm-112,0h48v32H200Zm0,48h48v32H200Z"}))},json:function(){return wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 58 58",style:{enableBackground:"new 0 0 58 58",width:n,height:r},xmlSpace:"preserve"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M50.949,12.187l-1.361-1.361l-9.504-9.505c-0.001-0.001-0.001-0.001-0.002-0.001l-0.77-0.771 C38.957,0.195,38.486,0,37.985,0H8.963C7.776,0,6.5,0.916,6.5,2.926V39v16.537V56c0,0.837,0.841,1.652,1.836,1.909 c0.051,0.014,0.1,0.033,0.152,0.043C8.644,57.983,8.803,58,8.963,58h40.074c0.16,0,0.319-0.017,0.475-0.048 c0.052-0.01,0.101-0.029,0.152-0.043C50.659,57.652,51.5,56.837,51.5,56v-0.463V39V13.978C51.5,13.211,51.407,12.644,50.949,12.187 z M39.5,3.565L47.935,12H39.5V3.565z M8.963,56c-0.071,0-0.135-0.025-0.198-0.049C8.61,55.877,8.5,55.721,8.5,55.537V41h41v14.537 c0,0.184-0.11,0.34-0.265,0.414C49.172,55.975,49.108,56,49.037,56H8.963z M8.5,39V2.926C8.5,2.709,8.533,2,8.963,2h28.595 C37.525,2.126,37.5,2.256,37.5,2.391V13.78c-0.532-0.48-1.229-0.78-2-0.78c-0.553,0-1,0.448-1,1s0.447,1,1,1c0.552,0,1,0.449,1,1v4 c0,1.2,0.542,2.266,1.382,3c-0.84,0.734-1.382,1.8-1.382,3v4c0,0.551-0.448,1-1,1c-0.553,0-1,0.448-1,1s0.447,1,1,1 c1.654,0,3-1.346,3-3v-4c0-1.103,0.897-2,2-2c0.553,0,1-0.448,1-1s-0.447-1-1-1c-1.103,0-2-0.897-2-2v-4 c0-0.771-0.301-1.468-0.78-2h11.389c0.135,0,0.265-0.025,0.391-0.058c0,0.015,0.001,0.021,0.001,0.036V39H8.5z"}),wp.element.createElement("path",{d:"M16.354,51.43c-0.019,0.446-0.171,0.764-0.458,0.95s-0.672,0.28-1.155,0.28c-0.191,0-0.396-0.022-0.615-0.068 s-0.429-0.098-0.629-0.157s-0.385-0.123-0.554-0.191s-0.299-0.135-0.39-0.198l-0.697,1.107c0.183,0.137,0.405,0.26,0.67,0.369 s0.54,0.207,0.827,0.294s0.565,0.15,0.834,0.191s0.504,0.062,0.704,0.062c0.401,0,0.791-0.039,1.169-0.116 c0.378-0.077,0.713-0.214,1.005-0.41s0.524-0.456,0.697-0.779s0.26-0.723,0.26-1.196v-7.848h-1.668V51.43z"}),wp.element.createElement("path",{d:"M25.083,49.064c-0.314-0.228-0.654-0.422-1.019-0.581s-0.702-0.323-1.012-0.492s-0.569-0.364-0.779-0.588 s-0.314-0.518-0.314-0.882c0-0.146,0.036-0.299,0.109-0.458s0.173-0.303,0.301-0.431s0.273-0.234,0.438-0.321 s0.337-0.139,0.52-0.157c0.328-0.027,0.597-0.032,0.807-0.014s0.378,0.05,0.506,0.096s0.226,0.091,0.294,0.137 s0.13,0.082,0.185,0.109c0.009-0.009,0.036-0.055,0.082-0.137s0.101-0.185,0.164-0.308s0.132-0.255,0.205-0.396 s0.137-0.271,0.191-0.39c-0.265-0.173-0.61-0.299-1.039-0.376s-0.853-0.116-1.271-0.116c-0.41,0-0.8,0.063-1.169,0.191 s-0.692,0.313-0.971,0.554s-0.499,0.535-0.663,0.882S20.4,46.13,20.4,46.576c0,0.492,0.104,0.902,0.314,1.23 s0.474,0.613,0.793,0.854s0.661,0.451,1.025,0.629s0.704,0.355,1.019,0.533s0.576,0.376,0.786,0.595s0.314,0.483,0.314,0.793 c0,0.511-0.148,0.896-0.444,1.155s-0.723,0.39-1.278,0.39c-0.183,0-0.378-0.019-0.588-0.055s-0.419-0.084-0.629-0.144 s-0.412-0.123-0.608-0.191s-0.357-0.139-0.485-0.212l-0.287,1.176c0.155,0.137,0.34,0.253,0.554,0.349s0.439,0.171,0.677,0.226 c0.237,0.055,0.472,0.094,0.704,0.116s0.458,0.034,0.677,0.034c0.511,0,0.966-0.077,1.367-0.232s0.738-0.362,1.012-0.622 s0.485-0.561,0.636-0.902s0.226-0.695,0.226-1.06c0-0.538-0.104-0.978-0.314-1.319S25.397,49.292,25.083,49.064z"}),wp.element.createElement("path",{d:"M34.872,45.072c-0.378-0.429-0.82-0.754-1.326-0.978s-1.06-0.335-1.661-0.335s-1.155,0.111-1.661,0.335 s-0.948,0.549-1.326,0.978s-0.675,0.964-0.889,1.606s-0.321,1.388-0.321,2.235s0.107,1.595,0.321,2.242s0.511,1.185,0.889,1.613 s0.82,0.752,1.326,0.971s1.06,0.328,1.661,0.328s1.155-0.109,1.661-0.328s0.948-0.542,1.326-0.971s0.675-0.966,0.889-1.613 s0.321-1.395,0.321-2.242s-0.107-1.593-0.321-2.235S35.25,45.501,34.872,45.072z M34.195,50.698 c-0.137,0.487-0.326,0.882-0.567,1.183s-0.515,0.518-0.82,0.649s-0.627,0.198-0.964,0.198c-0.328,0-0.641-0.07-0.937-0.212 s-0.561-0.364-0.793-0.67s-0.415-0.699-0.547-1.183s-0.203-1.066-0.212-1.75c0.009-0.702,0.082-1.294,0.219-1.777 c0.137-0.483,0.326-0.877,0.567-1.183s0.515-0.521,0.82-0.649s0.627-0.191,0.964-0.191c0.328,0,0.641,0.068,0.937,0.205 s0.561,0.36,0.793,0.67s0.415,0.704,0.547,1.183s0.203,1.06,0.212,1.743C34.405,49.616,34.332,50.211,34.195,50.698z"}),wp.element.createElement("polygon",{points:"44.012,50.869 40.061,43.924 38.393,43.924 38.393,54 40.061,54 40.061,47.055 44.012,54 45.68,54 45.68,43.924 44.012,43.924 "}),wp.element.createElement("path",{d:"M20.5,20v-4c0-0.551,0.448-1,1-1c0.553,0,1-0.448,1-1s-0.447-1-1-1c-1.654,0-3,1.346-3,3v4c0,1.103-0.897,2-2,2 c-0.553,0-1,0.448-1,1s0.447,1,1,1c1.103,0,2,0.897,2,2v4c0,1.654,1.346,3,3,3c0.553,0,1-0.448,1-1s-0.447-1-1-1 c-0.552,0-1-0.449-1-1v-4c0-1.2-0.542-2.266-1.382-3C19.958,22.266,20.5,21.2,20.5,20z"}),wp.element.createElement("circle",{cx:"28.5",cy:"19.5",r:"1.5"}),wp.element.createElement("path",{d:"M28.5,25c-0.553,0-1,0.448-1,1v3c0,0.552,0.447,1,1,1s1-0.448,1-1v-3C29.5,25.448,29.053,25,28.5,25z"})))},xls:function(){return wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512",style:{enableBackground:"new 0 0 512 512",width:n,height:r},xmlSpace:"preserve"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M494.479,138.557L364.04,3.018C362.183,1.09,359.621,0,356.945,0h-194.41c-21.757,0-39.458,17.694-39.458,39.442v137.789 H44.29c-16.278,0-29.521,13.239-29.521,29.513v147.744C14.769,370.761,28.012,384,44.29,384h78.787v88.627 c0,21.71,17.701,39.373,39.458,39.373h295.238c21.757,0,39.458-17.653,39.458-39.351V145.385 C497.231,142.839,496.244,140.392,494.479,138.557z M359.385,26.581l107.079,111.265H359.385V26.581z M44.29,364.308 c-5.42,0-9.828-4.405-9.828-9.82V206.744c0-5.415,4.409-9.821,9.828-9.821h265.881c5.419,0,9.829,4.406,9.829,9.821v147.744 c0,5.415-4.41,9.82-9.829,9.82H44.29z M477.538,472.649c0,10.84-8.867,19.659-19.766,19.659H162.535 c-10.899,0-19.766-8.828-19.766-19.68V384h167.401c16.279,0,29.522-13.239,29.522-29.512V206.744 c0-16.274-13.243-29.513-29.522-29.513H142.769V39.442c0-10.891,8.867-19.75,19.766-19.75h177.157v128 c0,5.438,4.409,9.846,9.846,9.846h128V472.649z"}))),wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M284.645,286.819c-2.25-3.636-5.366-6.501-9.346-8.598c-3.981-2.095-10.124-4.123-18.432-6.085 c-8.308-1.962-13.538-3.847-15.692-5.654c-1.694-1.423-2.54-3.137-2.54-5.135c0-2.193,0.903-3.944,2.713-5.251 c2.808-2.038,6.693-3.057,11.653-3.057c4.807,0,8.414,0.953,10.818,2.855c2.403,1.903,3.97,5.029,4.701,9.376l17.076-0.751 c-0.268-7.769-3.084-13.981-8.45-18.633c-5.367-4.655-13.356-6.981-23.97-6.981c-6.501,0-12.049,0.979-16.645,2.942 c-4.596,1.962-8.116,4.817-10.558,8.566c-2.442,3.751-3.665,7.781-3.665,12.089c0,6.69,2.597,12.364,7.791,17.019 c3.692,3.306,10.114,6.095,19.269,8.364c7.114,1.77,11.673,3.001,13.671,3.692c2.925,1.039,4.972,2.26,6.144,3.663 c1.174,1.406,1.76,3.106,1.76,5.108c0,3.114-1.394,5.836-4.182,8.162c-2.789,2.326-6.932,3.49-12.433,3.49 c-5.192,0-9.317-1.307-12.374-3.924c-3.057-2.614-5.085-6.71-6.087-12.288l-16.616,1.615c1.115,9.462,4.539,16.665,10.27,21.607 c5.731,4.94,13.942,7.412,24.635,7.412c7.345,0,13.482-1.029,18.405-3.087c4.923-2.055,8.728-5.201,11.421-9.433 c2.693-4.229,4.04-8.768,4.04-13.615C288.02,294.942,286.895,290.452,284.645,286.819z"}))),wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"168.943,310.673 168.943,241.039 151.864,241.039 151.864,324.923 211.405,324.923 211.405,310.673 "}))),wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"113.73,281.423 140.039,240.347 120.251,240.347 103.636,267.52 86.673,240.347 66.713,240.347 92.903,280.788 64,324.923 84.48,324.923 103.289,295.672 122.038,324.923 142.634,324.923 "}))))}}[t];return wp.element.createElement(o,null)};function mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nc},p=function(){return Number(i)-1<=0};return wp.element.createElement("div",{className:"cwp-pagination"},wp.element.createElement("div",{className:"tablenav-pages"},wp.element.createElement("span",{className:"displaying-num"},u," items"),wp.element.createElement("span",{className:"pagination-links"},wp.element.createElement("span",{onClick:function(){var t=Number(i)-1;p()||e.getEntries(t,{},[],(function(){return null}),d)},className:"tablenav-pages-navspan button ".concat(p()?"disabled":""),"aria-hidden":"true"},"โ€น"),wp.element.createElement("span",{className:"paging-input"},wp.element.createElement("label",{htmlFor:"current-page-selector",className:"screen-reader-text"},"Current Page"),wp.element.createElement("input",{className:"current-page",id:"current-page-selector",type:"number",name:"paged",onChange:function(t){var n,o=Number(t.target.value);o>0&&o<=c&&(r(o),(n=o)>0&&n<=c&&!v()(i,n)&&e.getEntries(n,{},[],(function(){return null}),d))},size:1,value:n,"aria-describedby":"table-paging"}),wp.element.createElement("span",{className:"tablenav-paging-text"}," ","of ",wp.element.createElement("span",{className:"total-pages"},c))),wp.element.createElement("a",{onClick:function(){var t=Number(i)+1;f()||e.getEntries(t,{},[],(function(){return null}),d)},className:"next-page button ".concat(f()?"disabled":"")},wp.element.createElement("span",{className:"screen-reader-text"},"Next page"),wp.element.createElement("span",{"aria-hidden":"true"},"โ€บ")))))}))),Gr=n(173),$r=n.n(Gr),Jr=n(256),Qr=n.n(Jr);var Zr=function(e){var t=e.data,n=e.preCells,r=void 0===n?[]:n;return!xe()(t)&&wp.element.createElement("table",{className:"cwp-entry-detail-table"},wp.element.createElement("tbody",null,qe()(t,(function(e,t){var n=On()(r,t)?"
".concat(e,"
"):e;return wp.element.createElement("tr",{key:t},wp.element.createElement("td",{style:{borderRight:"1px solid #ccc"}},wp.element.createElement("strong",null,t)," "),wp.element.createElement("td",{dangerouslySetInnerHTML:{__html:xe()(n)?"-":Be(n)}}))}))))};function eo(){return(eo=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:n,i=o()(a,"id"),c=ho(ho({},a),{},{entry_status:t});h(!0),_o.ajax({type:"POST",url:w,data:{status:t,action:"cwp_gf_update_entry_status",id:i},success:function(t){h(!1),r(c),e.updateEntry(c)},error:function(e){console.log(e),h(!1)}})},k=function(){var t=e.entries.data,n=mo($r()(t,(function(e){var t=o()(e,"id");return v()(t,M)})),1)[0],a=void 0===n?{}:n,i=o()(window,"cwp_global.rest_url");if(xe()(a)){c(!0),d(!1);var u=null;null!==M?u=i.concat("wp/v2/cwp_gf_entries/").concat(M):xe()(O)||(u=i.concat("wp/v2/cwp_gf_entries/").concat("?post_slug=").concat(O)),xe()(u)||yn.a.get(u).then((function(e){c(!1),r((function(){return xe()(O)?e.data:o()(e,"data[0]")}),A)})).catch((function(e){d(!0),c(!1)}))}else r((function(){return a}),A)};Object(s.useEffect)(k,[]);var A=function(e){var t=o()(e,"entry_status");v()(t,"unread")&&j("read",e)};return wp.element.createElement("div",{className:"cwp-entry"},!i&&!l&&wp.element.createElement(s.Fragment,null,wp.element.createElement("div",{className:"cwp-entry-root"},wp.element.createElement(uo,{data:n,updateStatus:j,statusLoading:p,deleteEntry:function(){var t=o()(n,"id");y(!0),_o.ajax({type:"POST",url:w,data:{action:"cwp_gf_delete_entry",id:t},success:function(t){y(!1),e.history.goBack()},error:function(e){y(!1)}})},deletingStatus:m}))),i&&!l&&wp.element.createElement("div",{className:"cwp-loader"},wp.element.createElement("span",null,vo("Fetching Entry Details",_))," ",wp.element.createElement(vn.a,null)),!i&&l&&wp.element.createElement("div",{className:"cwp-loader"},wp.element.createElement("span",null,vo("Failed to load Entry",_)," ",wp.element.createElement(go,{isLink:!0,onClick:k},vo("Try Again",_)))))}))),Oo=n(607),wo=n.n(Oo);function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=He(e,n),o={};return i()(t,(function(e,t){o[t]=e})),i()(r,(function(e){Ye()(o,e)||(o[e]="-")})),Xe(o,r)}(n.data,c,u.columns),(function(e,t){var n,r,o=''.concat(t,": ")+(r=30,(n=e).lengthe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?{}:a;return wp.element.createElement("div",{className:"cwp-summary-pagin"},wp.element.createElement("span",null,Go("".concat(t," - ").concat(n," of ").concat(n),_)),wp.element.createElement("div",{className:"pagin-icons"},wp.element.createElement($o,Ko({},c,{icon:"arrow-left-alt2",onClick:o})),wp.element.createElement($o,Ko({},i,{icon:"arrow-right-alt2",onClick:r}))))};function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:m,n=e.field,r=e.formId,o={field_id:n,form_id:r,page:t,per_page:5,field_type:E};c(!0),d(!1),oa.ajax({url:j,data:o}).done((function(e){h(e),c(!1)})).fail((function(){console.error(l),d(!0),c(!1)}))},D=function(e){var t=m+1,n=m-1,r=n>0;"next"===e&&t<=T&&(y(t),z(t)),"prev"===e&&r&&(y(n),z(n))};return Object(s.useEffect)(z,[]),Object(s.useEffect)(z,[m]),wp.element.createElement(Bt.a,{className:"cwp-summary-block"},wp.element.createElement(Kt.a,{className:"cwp-head",onClick:function(){r(!n)}},wp.element.createElement("div",{className:"name"},wp.element.createElement(Rn.a,{style:x,className:"toggle-icon",icon:"arrow-down-alt2"}),wp.element.createElement("div",null,wp.element.createElement("h3",{className:"toggle-icon"},e.field),!xe()(k)&&!xe()(A)&&wp.element.createElement("p",{className:"answered"},aa("".concat(To()(A).toString()," out of ").concat(To()(k).toString()," respondents answered"),_))))),n&&wp.element.createElement(Ht.a,{className:"cwp-body"},i&&!l&&wp.element.createElement(s.Fragment,null,wp.element.createElement(Xo,null),wp.element.createElement(Xo,null),wp.element.createElement(Xo,null),wp.element.createElement(Xo,null),wp.element.createElement(Xo,null)),!i&&!l&&xe()(L)&&wp.element.createElement(s.Fragment,null,qe()(w,(function(e,t){var n=o()(e,"value"),r=o()(e,"post_slug");return!xe()(n)&&wp.element.createElement("div",{key:t,className:"cwp-field-value"},wp.element.createElement("div",null,wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:Be(n,!0)}})),wp.element.createElement("div",{className:"action"},wp.element.createElement(Ae,{to:Zo(Zo({},O),{},{hash:"#/entries/post_slug=".concat(r)})},wp.element.createElement(Qt.a,{icon:"visibility",label:aa("View Full Entry",_)}))))})),wp.element.createElement(Jo,{onNext:function(){return D("next")},onPrev:function(){return D("prev")},currentPage:m,totalPages:T})),!i&&!l&&!xe()(L)&&wp.element.createElement(Vo,{data:p,type:E}),!i&&l&&wp.element.createElement("div",{className:"cwp-prompt"},wp.element.createElement("span",null,aa("Failed To Fetch",_)),wp.element.createElement(ra,{isLink:!0,onClick:z},aa("Try Again",_)))))}));function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ua(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==o[0]?o[0]:f,y(!0),n=i+"gutenberg-forms/forms/v1/imports/plugins/options?plugin=".concat(a,"&search=").concat(t),e.prev=3,e.next=6,yn.a.get(n);case 6:r=e.sent,y(!1),M(r.data),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),y(!1);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),S=wp.element.createElement("div",{className:"cwp-sf-label"},wp.element.createElement("span",null,"Search Form",b&&wp.element.createElement(hi,null))),E=function(){var e=ui(regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i+"gutenberg-forms/forms/v1/import/plugin",A(!0),n=qe()(u,"title"),e.prev=3,e.next=6,yn.a.post(t,{post_ids:n,plugin:a,type:"selective"});case 6:r=e.sent,o=r.data,console.log(o),A(!1),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),console.error(e.t0),A(!0);case 16:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement("div",{className:"cwp_plugin_import_options"},wp.element.createElement("div",{className:"cwp_plugin_import_header"},wp.element.createElement(pi,{icon:"arrow-left-alt2",onClick:e.onExit},di("Go Back",_))),wp.element.createElement("div",{className:"cwp_plugin_import_settings"},wp.element.createElement("h3",null,n),wp.element.createElement("p",null,di(r,"TEXT_DOMAIN")),wp.element.createElement("div",{className:"cwp_plugin_import_settings_search"},wp.element.createElement("div",null,wp.element.createElement(ii.a,{className:"cwp_search_f",label:di(S,_),placeholder:di("Search Form",_),value:u,suggestions:qe()(g,"title"),onChange:function(e){var t=o()(e,e.length-1);if(xe()(e))l(e);else{var n=$r()(g,{title:t}),r=o()(n,"[0].id");if(!ri()(r)){var a=m()(u);return a.pop(),void l(a)}var i=m()(u);i.push({value:t,title:r}),l(i)}},onInputChange:function(e){var t=ai()((function(){return L(e)}),500);w((function(e){return e.cancel&&e.cancel(),t})),p(e),t(e)}})),wp.element.createElement("div",{className:"cwp_plugin_import_settings_footer"},wp.element.createElement(pi,{isDefault:!0},di("Import All",_)),wp.element.createElement(pi,{isDefault:!0,isBusy:k,onClick:E},di("Import Selected",_))))))};function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(a.includes)(["iPad","iPhone"],t)}t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bindGlobal,u=void 0!==r&&r,s=n.eventName,l=void 0===s?"keydown":s,d=n.isDisabled,f=void 0!==d&&d,p=n.target,h=Object(i.useRef)(t);Object(i.useEffect)((function(){h.current=t}),[t]),Object(i.useEffect)((function(){if(!f){var t=new o.a(p?p.current:document);return Object(a.castArray)(e).forEach((function(e){var n=e.split("+"),r=new Set(n.filter((function(e){return e.length>1}))),o=r.has("alt"),a=r.has("shift");if(c()&&(1===r.size&&o||2===r.size&&o&&a))throw new Error("Cannot bind ".concat(e,". Alt and Shift+Alt modifiers are reserved for character input."));t[u?"bindGlobal":"bind"](e,(function(){return h.current.apply(h,arguments)}),l)})),function(){t.reset()}}}),[e,u,l,p,f])}},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3")},function(e,t,n){"use strict";var r=n(19);t.a=Object(r.a)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f")},function(e,t,n){"use strict";var r=n(124),o=n(330);t.a=Object(o.a)(Object(r.a)(300,.5,0),Object(r.a)(-240,.5,1))},function(e,t,n){"use strict";var r=n(88),o=Object(r.f)(),a=Math.PI/3,i=2*Math.PI/3;t.a=function(e){var t;return e=(.5-e)*Math.PI,o.r=255*(t=Math.sin(e))*t,o.g=255*(t=Math.sin(e+a))*t,o.b=255*(t=Math.sin(e+i))*t,o+""}},function(e,t,n){"use strict";var r=n(11),o=n(6),a=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(a.cloneElement)(t,function(e){for(var t=1;t=0?(u>=r?10:u>=o?5:u>=a?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(u>=r?10:u>=o?5:u>=a?2:1)}function c(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),c=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),u=i/c;return u>=r?c*=10:u>=o?c*=5:u>=a&&(c*=2),t0)return[e];if((r=t0)for(e=Math.ceil(e/c),t=Math.floor(t/c),a=new Array(o=Math.ceil(t-e+1));++u0?Object(r.a)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.a=o;o.range},function(e,t,n){"use strict";var r=n(34),o=Object(r.a)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},t.a=o;o.range},function(e,t,n){"use strict";var r=n(0),o=n(141),a=Object(r.createElement)(o.f,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.c,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},function(e,t,n){"use strict";(function(e){var r=n(250),o="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0,a=e.env.FORCE_REDUCED_MOTION||o?function(){return!0}:function(){return Object(r.a)("(prefers-reduced-motion: reduce)")};t.a=a}).call(this,n(125))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r,o,a,i,c=n(105),u=n(319),s=n(153),l=function(e,t){var n=Object(s.a)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},d={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return l(100*e,t)},r:l,s:function(e,t){var n=Object(s.a)(e,t);if(!n)return e+"";var o=n[0],a=n[1],i=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,c=o.length;return i===c?o:i>c?o+new Array(i-c+1).join("0"):i>0?o.slice(0,i)+"."+o.slice(i):"0."+new Array(1-i).join("0")+Object(s.a)(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},f=function(e){return e},p=Array.prototype.map,h=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];o=function(e){var t,n,o=void 0===e.grouping||void 0===e.thousands?f:(t=p.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,c=t[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),a.push(e.substring(o-=c,o+c)),!((u+=c+1)>r));)c=t[i=(i+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?f:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(p.call(e.numerals,String)),b=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function v(e){var t=(e=Object(u.a)(e)).fill,n=e.align,c=e.sign,f=e.symbol,p=e.zero,v=e.width,g=e.comma,_=e.precision,M=e.trim,O=e.type;"n"===O?(g=!0,O="g"):d[O]||(void 0===_&&(_=12),M=!0,O="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var w="$"===f?a:"#"===f&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j="$"===f?i:/[%p]/.test(O)?b:"",k=d[O],A=/[defgprs%]/.test(O);function L(e){var a,i,u,d=w,f=j;if("c"===O)f=k(e)+f,e="";else{var b=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:k(Math.abs(e),_),M&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),b&&0==+e&&"+"!==c&&(b=!1),d=(b?"("===c?c:m:"-"===c||"("===c?"":c)+d,f=("s"===O?h[8+r/3]:"")+f+(b&&"("===c?")":""),A)for(a=-1,i=e.length;++a(u=e.charCodeAt(a))||u>57){f=(46===u?s+e.slice(a+1):e.slice(a))+f,e=e.slice(0,a);break}}g&&!p&&(e=o(e,1/0));var L=d.length+e.length+f.length,S=L>1)+d+e+f+S.slice(L);break;default:e=S+d+e+f}return l(e)}return _=void 0===_?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),L.toString=function(){return e+""},L}return{format:v,formatPrefix:function(e,t){var n=v(((e=Object(u.a)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(c.a)(t)/3))),o=Math.pow(10,-r),a=h[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),a=o.format,i=o.formatPrefix},function(e,t,n){"use strict";var r=n(88),o=n(266),a=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;na&&(o=t.slice(a,o),c[i]?c[i]+=o:c[++i]=o),(n=n[0])===(r=r[0])?c[i]?c[i]+=r:c[++i]=r:(c[++i]=null,u.push({i:i,x:Object(s.a)(n,r)})),a=f.lastIndex;return at?1:e>=t?0:NaN};var o,a,i=(1===(o=r).length&&(a=o,o=function(e,t){return r(a(e),t)}),{left:function(e,t,n,r){for(null==n&&(n=0),null==r&&(r=e.length);n>>1;o(e[a],t)<0?n=a+1:r=a}return n},right:function(e,t,n,r){for(null==n&&(n=0),null==r&&(r=e.length);n>>1;o(e[a],t)>0?r=a:n=a+1}return n}}),c=i.right;t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(968),o=n(969),a=n(970),i=n(971),c=n(972),u=n(973);function s(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function l(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function d(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var f,p,h={"-":"",_:" ",0:"0"},b=/^\s*\d+/,m=/^%/,y=/[\\^$*+?|[\]().{}]/g;function v(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a68?1900:2e3),n+r[0].length):-1}function E(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function T(e,t,n){var r=b.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function x(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function z(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=b.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function C(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function N(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function P(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function R(e,t,n){var r=b.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Y(e,t,n){var r=b.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function W(e,t,n){var r=m.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function q(e,t,n){var r=b.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function I(e,t,n){var r=b.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function B(e,t){return v(e.getDate(),t,2)}function H(e,t){return v(e.getHours(),t,2)}function F(e,t){return v(e.getHours()%12||12,t,2)}function X(e,t){return v(1+i.a.count(Object(c.a)(e),e),t,3)}function U(e,t){return v(e.getMilliseconds(),t,3)}function V(e,t){return U(e,t)+"000"}function K(e,t){return v(e.getMonth()+1,t,2)}function G(e,t){return v(e.getMinutes(),t,2)}function $(e,t){return v(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return v(a.d.count(Object(c.a)(e)-1,e),t,2)}function Z(e,t){var n=e.getDay();return e=n>=4||0===n?Object(a.e)(e):a.e.ceil(e),v(a.e.count(Object(c.a)(e),e)+(4===Object(c.a)(e).getDay()),t,2)}function ee(e){return e.getDay()}function te(e,t){return v(a.b.count(Object(c.a)(e)-1,e),t,2)}function ne(e,t){return v(e.getFullYear()%100,t,2)}function re(e,t){return v(e.getFullYear()%1e4,t,4)}function oe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+v(t/60|0,"0",2)+v(t%60,"0",2)}function ae(e,t){return v(e.getUTCDate(),t,2)}function ie(e,t){return v(e.getUTCHours(),t,2)}function ce(e,t){return v(e.getUTCHours()%12||12,t,2)}function ue(e,t){return v(1+o.a.count(Object(u.a)(e),e),t,3)}function se(e,t){return v(e.getUTCMilliseconds(),t,3)}function le(e,t){return se(e,t)+"000"}function de(e,t){return v(e.getUTCMonth()+1,t,2)}function fe(e,t){return v(e.getUTCMinutes(),t,2)}function pe(e,t){return v(e.getUTCSeconds(),t,2)}function he(e){var t=e.getUTCDay();return 0===t?7:t}function be(e,t){return v(r.d.count(Object(u.a)(e)-1,e),t,2)}function me(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(r.e)(e):r.e.ceil(e),v(r.e.count(Object(u.a)(e),e)+(4===Object(u.a)(e).getUTCDay()),t,2)}function ye(e){return e.getUTCDay()}function ve(e,t){return v(r.b.count(Object(u.a)(e)-1,e),t,2)}function ge(e,t){return v(e.getUTCFullYear()%100,t,2)}function _e(e,t){return v(e.getUTCFullYear()%1e4,t,4)}function Me(){return"+0000"}function Oe(){return"%"}function we(e){return+e}function je(e){return Math.floor(+e/1e3)}f=function(e){var t=e.dateTime,n=e.date,c=e.time,u=e.periods,f=e.days,p=e.shortDays,b=e.months,m=e.shortMonths,y=_(u),v=M(u),g=_(f),ke=M(f),Ae=_(p),Le=M(p),Se=_(b),Ee=M(b),Te=_(m),xe=M(m),ze={a:function(e){return p[e.getDay()]},A:function(e){return f[e.getDay()]},b:function(e){return m[e.getMonth()]},B:function(e){return b[e.getMonth()]},c:null,d:B,e:B,f:V,H:H,I:F,j:X,L:U,m:K,M:G,p:function(e){return u[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:we,s:je,S:$,u:J,U:Q,V:Z,w:ee,W:te,x:null,X:null,y:ne,Y:re,Z:oe,"%":Oe},De={a:function(e){return p[e.getUTCDay()]},A:function(e){return f[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return b[e.getUTCMonth()]},c:null,d:ae,e:ae,f:le,H:ie,I:ce,j:ue,L:se,m:de,M:fe,p:function(e){return u[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:we,s:je,S:pe,u:he,U:be,V:me,w:ye,W:ve,x:null,X:null,y:ge,Y:_e,Z:Me,"%":Oe},Ce={a:function(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.w=Le[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.w=ke[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Te.exec(t.slice(n));return r?(e.m=xe[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=Se.exec(t.slice(n));return r?(e.m=Ee[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return Re(e,t,n,r)},d:z,e:z,f:Y,H:C,I:C,j:D,L:R,m:x,M:N,p:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.p=v[r[0].toLowerCase()],n+r[0].length):-1},q:T,Q:q,s:I,S:P,u:w,U:j,V:k,w:O,W:A,x:function(e,t,r){return Re(e,n,t,r)},X:function(e,t,n){return Re(e,c,t,n)},y:S,Y:L,Z:E,"%":W};function Ne(e,t){return function(n){var r,o,a,i=[],c=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in f||(f.w=1),"Z"in f?(u=(c=l(d(f.y,0,1))).getUTCDay(),c=u>4||0===u?r.b.ceil(c):Object(r.b)(c),c=o.a.offset(c,7*(f.V-1)),f.y=c.getUTCFullYear(),f.m=c.getUTCMonth(),f.d=c.getUTCDate()+(f.w+6)%7):(u=(c=s(d(f.y,0,1))).getDay(),c=u>4||0===u?a.b.ceil(c):Object(a.b)(c),c=i.a.offset(c,7*(f.V-1)),f.y=c.getFullYear(),f.m=c.getMonth(),f.d=c.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),u="Z"in f?l(d(f.y,0,1)).getUTCDay():s(d(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(u+5)%7:f.w+7*f.U-(u+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,l(f)):s(f)}}function Re(e,t,n,r){for(var o,a,i=0,c=t.length,u=n.length;i=u)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=Ce[o in h?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return ze.x=Ne(n,ze),ze.X=Ne(c,ze),ze.c=Ne(t,ze),De.x=Ne(n,De),De.X=Ne(c,De),De.c=Ne(t,De),{format:function(e){var t=Ne(e+="",ze);return t.toString=function(){return e},t},parse:function(e){var t=Pe(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ne(e+="",De);return t.toString=function(){return e},t},utcParse:function(e){var t=Pe(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),p=f.format,f.parse,f.utcFormat,f.utcParse}]); \ No newline at end of file diff --git a/plugin.php b/plugin.php index b75d72b..bd3d84a 100644 --- a/plugin.php +++ b/plugin.php @@ -5,7 +5,7 @@ * Description: The Next Generation WordPress Form Builder. Build forms directly within Gutenberg editor live. Add & arrange form fields like blocks. * Author: munirkamal * Author URI: https://cakewp.com/ - * Version: 2.1.1 + * Version: 2.1.2 * License: GPLv2 or later * License URI: https://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: cwp-gutenberg-forms diff --git a/readme.md b/readme.md index 87fe686..13caa65 100644 --- a/readme.md +++ b/readme.md @@ -77,6 +77,10 @@ We appreciate all contributions and don't want a wall of rules to get in the way For more information, visit [Gutenberg Forms](https://gutenbergforms.com). += 2.1.2 = (11 May 2021) + +- Fixed: minor bug in previous release + = 2.1.1 = (11 May 2021) - Fixed: Bugs diff --git a/readme.txt b/readme.txt index 07e1a9e..b8f28ba 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: munirkamal Tags: wordpress form, gutenberg form, contact form, subscribe form, multi-step form, gutenberg block, contact form plugin, forms, form builder, custom form, contact button, contact me, custom contact form, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, email submit form, message form, contact form block, wordpress form plugin Requires at least: 5.0 Tested up to: 5.7 -Stable tag: 2.1.1 +Stable tag: 2.1.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -126,6 +126,9 @@ You may also get involved with the development via Github: == Changelog == For more information, visit [Gutenberg Forms](https://gutenbergforms.com). += 2.1.2 = (11 May 2021) +- Fixed: minor bug in previous release + = 2.1.1 = (11 May 2021) - Fixed: Bugs