PageSourceSearch

https://marketgarden.ai/_next/static/chunks/pages/_app-eb2362ba42219af1.js

js marketgarden.ai collected 2026-10-05 15:38:48 UTC 1,192,218 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{6664:function(t,e,n){!function(t,e){"use strict";function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){i(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}function s(t,e){if(null==t)return{};var n,o,r=a(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function c(t,e){return l(t)||u(t,e)||p(t,e)||f()}function l(t){if(Array.isArray(t))return t}function u(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var o,r,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(c){s=!0,r=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return i}}function p(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function f(){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 m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var h,_,E,g,y={exports:{}};function S(){return _?h:(_=1,h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function T(){if(g)return E;g=1;var t=S();function e(){}function n(){}return n.resetWarningCache=e,E=function(){function o(e,n,o,r,i,a){if(a!==t){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return o}o.isRequired=o;var i={array:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}}y.exports=T()();var C=m(y.exports),b=function(t,n,o){var r=!!o,i=e.useRef(o);e.useEffect((function(){i.current=o}),[o]),e.useEffect((function(){if(!r||!t)return function(){};var e=function(){i.current&&i.current.apply(i,arguments)};return t.on(n,e),function(){t.off(n,e)}}),[r,n,t,i])},v=function(t){var n=e.useRef(t);return e.useEffect((function(){n.current=t}),[t]),n.current},I=function(t){return null!==t&&"object"===r(t)},A=function(t){return I(t)&&"function"===typeof t.then},O=function(t){return I(t)&&"function"===typeof t.elements&&"function"===typeof t.createToken&&"function"===typeof t.createPaymentMethod&&"function"===typeof t.confirmCardPayment},R="[object Object]",P=function t(e,n){if(!I(e)||!I(n))return e===n;var o=Array.isArray(e);if(o!==Array.isArray(n))return!1;var r=Object.prototype.toString.call(e)===R;if(r!==(Object.prototype.toString.call(n)===R))return!1;if(!r&&!o)return e===n;var i=Object.keys(e),a=Object.keys(n);if(i.length!==a.length)return!1;for(var s={},c=0;c<i.length;c+=1)s[i[c]]=!0;for(var l=0;l<a.length;l+=1)s[a[l]]=!0;var u=Object.keys(s);if(u.length!==i.length)return!1;var p=e,d=n,f=function(e){return t(p[e],d[e])};return u.every(f)},U=function(t,e,n){return I(t)?Object.keys(t).reduce((function(r,a){var s=!I(e)||!P(t[a],e[a]);return n.includes(a)?(s&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),r):s?o(o({},r||{}),{},i({},a,t[a])):r}),null):null},w="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;if(null===t||O(t))return t;throw new Error(e)},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;if(A(t))return{tag:"async",stripePromise:Promise.resolve(t).then((function(t){return L(t,e)}))};var n=L(t,e);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},D=function(t){t&&t._registerWrapper&&t.registerAppInfo&&(t._registerWrapper({name:"react-stripe-js",version:"2.8.1"}),t.registerAppInfo({name:"react-stripe-js",version:"2.8.1",url:"https://stripe.com/docs/stripe-js/react"}))},N=e.createContext(null);N.displayName="ElementsContext";var F=function(t,e){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(e," in an <Elements> provider."));return t},k=function(t){var n=t.stripe,o=t.options,r=t.children,i=e.useMemo((function(){return x(n)}),[n]),a=c(e.useState((function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(o):null}})),2),s=a[0],l=a[1];e.useEffect((function(){var t=!0,e=function(t){l((function(e){return e.stripe?e:{stripe:t,elements:t.elements(o)}}))};return"async"!==i.tag||s.stripe?"sync"!==i.tag||s.stripe||e(i.stripe):i.stripePromise.then((function(n){n&&t&&e(n)})),function(){t=!1}}
1),[i,s,o]);var u=v(n);e.useEffect((function(){null!==u&&u!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[u,n]);var p=v(o);return e.useEffect((function(){if(s.elements){var t=U(o,p,["clientSecret","fonts"]);t&&s.elements.update(t)}}),[o,p,s.elements]),e.useEffect((function(){D(s.stripe)}),[s.stripe]),e.createElement(N.Provider,{value:s},r)};k.propTypes={stripe:C.any,options:C.object};var M=function(t){var n=e.useContext(N);return F(n,t)},j=function(){return M("calls useElements()").elements},B=function(t){return(0,t.children)(M("mounts <ElementsConsumer>"))};B.propTypes={children:C.func.isRequired};var G=["on","session"],H=e.createContext(null);H.displayName="CustomCheckoutSdkContext";var z=function(t,e){if(!t)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(e," in an <CustomCheckoutProvider> provider."));return t},$=e.createContext(null);$.displayName="CustomCheckoutContext";var W=function(t,e){if(!t)return null;t.on,t.session;var n=s(t,G);return o(o({},n),e||t.session())},V="Invalid prop `stripe` supplied to `CustomCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Y=function(t){var n=t.stripe,o=t.options,r=t.children,i=e.useMemo((function(){return x(n,V)}),[n]),a=c(e.useState(null),2),s=a[0],l=a[1],u=c(e.useState((function(){return{stripe:"sync"===i.tag?i.stripe:null,customCheckoutSdk:null}})),2),p=u[0],d=u[1],f=function(t,e){d((function(n){return n.stripe&&n.customCheckoutSdk?n:{stripe:t,customCheckoutSdk:e}}))},m=e.useRef(!1);e.useEffect((function(){var t=!0;return"async"!==i.tag||p.stripe?"sync"===i.tag&&i.stripe&&!m.current&&(m.current=!0,i.stripe.initCustomCheckout(o).then((function(t){t&&(f(i.stripe,t),t.on("change",l))}))):i.stripePromise.then((function(e){e&&t&&!m.current&&(m.current=!0,e.initCustomCheckout(o).then((function(t){t&&(f(e,t),t.on("change",l))})))})),function(){t=!1}}),[i,p,o,l]);var h=v(n);e.useEffect((function(){null!==h&&h!==n&&console.warn("Unsupported prop change on CustomCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[h,n]);var _=v(o);e.useEffect((function(){var t,e;if(p.customCheckoutSdk){!o.clientSecret||I(_)||P(o.clientSecret,_.clientSecret)||console.warn("Unsupported prop change: options.client_secret is not a mutable property.");var n=null===_||void 0===_||null===(t=_.elementsOptions)||void 0===t?void 0:t.appearance,r=null===o||void 0===o||null===(e=o.elementsOptions)||void 0===e?void 0:e.appearance;r&&!P(r,n)&&p.customCheckoutSdk.changeAppearance(r)}}),[o,_,p.customCheckoutSdk]),e.useEffect((function(){D(p.stripe)}),[p.stripe]);var E=e.useMemo((function(){return W(p.customCheckoutSdk,s)}),[p.customCheckoutSdk,s]);return p.customCheckoutSdk?e.createElement(H.Provider,{value:p},e.createElement($.Provider,{value:E},r)):null};Y.propTypes={stripe:C.any,options:C.shape({clientSecret:C.string.isRequired,elementsOptions:C.object}).isRequired};var Q=function(t){var n=e.useContext(H);return z(n,t)},K=function(t){var n=e.useContext(H),o=e.useContext(N);if(n&&o)throw new Error("You cannot wrap the part of your app that ".concat(t," in both <CustomCheckoutProvider> and <Elements> providers."));return n?z(n,t):F(o,t)},q=function(){Q("calls useCustomCheckout()");var t=e.useContext($);if(!t)throw new Error("Could not find CustomCheckout Context; You need to wrap the part of your app that calls useCustomCheckout() in an <CustomCheckoutProvider> provider.");return t},J=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},X=function(t,n){var o="".concat(J(t),"Element"),r=n?function(t){K("mounts <".concat(o,">"));var n=t.id,r=t.className;return e.createElement("div",{id:n,className:r})}:function(n){var r,i=n.id,a=n.className,s=n.options,l=void 0===s?{}:s,u=n.onBlur,p=n.onFocus,d=n.onReady,f=n.onChange,m=n.onEscape,h=n.onClick,_=n.onLoadError,E=n.onLoaderStart,g=n.onNetworksChange,y=n.onConfirm,S=n.onCancel,T=n.onShippingAddressChange,C=n.onShippingRateChange,I=K("mounts <".concat(o,">")),A="elements"in I?I.elements:null,O="customCheckoutSdk"in I?I.
vendor: 5,020 bytes, line 1
1customCheckoutSdk:null,R=c(e.useState(null),2),P=R[0],w=R[1],L=e.useRef(null),x=e.useRef(null);b(P,"blur",u),b(P,"focus",p),b(P,"escape",m),b(P,"click",h),b(P,"loaderror",_),b(P,"loaderstart",E),b(P,"networkschange",g),b(P,"confirm",y),b(P,"cancel",S),b(P,"shippingaddresschange",T),b(P,"shippingratechange",C),b(P,"change",f),d&&(r="expressCheckout"===t?d:function(){d(P)}),b(P,"ready",r),e.useLayoutEffect((function(){if(null===L.current&&null!==x.current&&(A||O)){var e=null;O?e=O.createElement(t,l):A&&(e=A.create(t,l)),L.current=e,w(e),e&&e.mount(x.current)}}),[A,O,l]);var D=v(l);return e.useEffect((function(){if(L.current){var t=U(l,D,["paymentRequest"]);t&&"update"in L.current&&L.current.update(t)}}),[l,D]),e.useLayoutEffect((function(){return function(){if(L.current&&"function"===typeof L.current.destroy)try{L.current.destroy(),L.current=null}catch(t){}}}),[]),e.createElement("div",{id:i,className:a,ref:x})};return r.propTypes={id:C.string,className:C.string,onChange:C.func,onBlur:C.func,onFocus:C.func,onReady:C.func,onEscape:C.func,onClick:C.func,onLoadError:C.func,onLoaderStart:C.func,onNetworksChange:C.func,onConfirm:C.func,onCancel:C.func,onShippingAddressChange:C.func,onShippingRateChange:C.func,options:C.object},r.displayName=o,r.__elementType=t,r},Z="undefined"===typeof window,tt=e.createContext(null);tt.displayName="EmbeddedCheckoutProviderContext";var et=function(){var t=e.useContext(tt);if(!t)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return t},nt="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ot=function(t){var n=t.stripe,o=t.options,r=t.children,i=e.useMemo((function(){return x(n,nt)}),[n]),a=e.useRef(null),s=e.useRef(null),l=c(e.useState({embeddedCheckout:null}),2),u=l[0],p=l[1];e.useEffect((function(){if(!s.current&&!a.current){var t=function(t){s.current||a.current||(s.current=t,a.current=s.current.initEmbeddedCheckout(o).then((function(t){p({embeddedCheckout:t})})))};"async"!==i.tag||s.current||!o.clientSecret&&!o.fetchClientSecret?"sync"!==i.tag||s.current||!o.clientSecret&&!o.fetchClientSecret||t(i.stripe):i.stripePromise.then((function(e){e&&t(e)}))}}),[i,o,u,s]),e.useEffect((function(){return function(){u.embeddedCheckout?(a.current=null,u.embeddedCheckout.destroy()):a.current&&a.current.then((function(){a.current=null,u.embeddedCheckout&&u.embeddedCheckout.destroy()}))}}),[u.embeddedCheckout]),e.useEffect((function(){D(s)}),[s]);var d=v(n);e.useEffect((function(){null!==d&&d!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[d,n]);var f=v(o);return e.useEffect((function(){null!=f&&(null!=o?(void 0===o.clientSecret&&void 0===o.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=f.clientSecret&&o.clientSecret!==f.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.fetchClientSecret&&o.fetchClientSecret!==f.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.onComplete&&o.onComplete!==f.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=f.onShippingDetailsChange&&o.onShippingDetailsChange!==f.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=f.onLineItemsChange&&o.onLineItemsChange!==f.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[f,o]),e.createElement(tt.Provider,{value:u},r)},rt=function(t){var n=t.id,o=t.className,r=et().embeddedCheckout,i=e.useRef(!1),a=e.useRef(null);return e.useLayoutEffect((function(){return!i.current&&r&&null!==a.current&&(r.mount(a.current),i.current=!0),function(){if(i.current&&r)try{r.unmount(),i.current=!1}catch(t){}}}),[r]),e.createElement("div",{ref:a,id:n,className:o})},it=function(t){var n=t.id,o=t.className;return et(),e.createElement("div",{id:n,className:o})},at=Z?it:rt,st=function(){return K("calls useStripe()").stripe},ct=X("auBankAccount",Z),lt=X("card",Z),ut=X("cardNumber",Z),pt=X("cardExpiry",Z),dt=X("cardCvc",Z),ft=X("fpxBank",Z),mt=X("iban",Z),ht=X("idealBank",Z),_t=X("p24Bank",Z),Et=X("epsBank",Z),gt
1=X("payment",Z),yt=X("expressCheckout",Z),St=X("currencySelector",Z),Tt=X("paymentRequestButton",Z),Ct=X("linkAuthentication",Z),bt=X("address",Z),vt=X("shippingAddress",Z),It=X("paymentMethodMessaging",Z),At=X("affirmMessage",Z),Ot=X("afterpayClearpayMessage",Z);t.AddressElement=bt,t.AffirmMessageElement=At,t.AfterpayClearpayMessageElement=Ot,t.AuBankAccountElement=ct,t.CardCvcElement=dt,t.CardElement=lt,t.CardExpiryElement=pt,t.CardNumberElement=ut,t.CurrencySelectorElement=St,t.CustomCheckoutProvider=Y,t.Elements=k,t.ElementsConsumer=B,t.EmbeddedCheckout=at,t.EmbeddedCheckoutProvider=ot,t.EpsBankElement=Et,t.ExpressCheckoutElement=yt,t.FpxBankElement=ft,t.IbanElement=mt,t.IdealBankElement=ht,t.LinkAuthenticationElement=Ct,t.P24BankElement=_t,t.PaymentElement=gt,t.PaymentMethodMessagingElement=It,t.PaymentRequestButtonElement=Tt,t.ShippingAddressElement=vt,t.useCustomCheckout=q,t.useElements=j,t.useStripe=st}(e,n(7423))},2389:function(t,e,n){"use strict";n.r(e);var o,r,i=n(7423);function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(null,arguments)}e.default=function(t){return i.createElement("svg",a({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=i.createElement("g",{clipPath:"url(#danger_svg__clip0_444_79)",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16z",fill:"#E96B71",stroke:"#D32029"}),i.createElement("path",{d:"M10 13.994V14m0-2.29V6",stroke:"#fff"}))),r||(r=i.createElement("defs",null,i.createElement("clipPath",{id:"danger_svg__clip0_444_79"},i.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"})))))}},8534:function(t,e,n){"use strict";n.r(e);var o,r,i=n(7423);function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(null,arguments)}e.default=function(t){return i.createElement("svg",a({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=i.createElement("g",{clipPath:"url(#success_svg__clip0_403_103)",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16z",fill:"#00CB75",stroke:"#00B341"}),i.createElement("path",{d:"M7 10l2 2 4-4",stroke:"#fff"}))),r||(r=i.createElement("defs",null,i.createElement("clipPath",{id:"success_svg__clip0_403_103"},i.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"})))))}},1825:function(t,e,n){"use strict";n.r(e);var o,r=n(7423);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(null,arguments)}e.default=function(t){return r.createElement("svg",i({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=r.createElement("path",{d:"M10 1.392c.796 0 1.537.389 1.992 1.039l.087.133 6.762 11.29a2.43 2.43 0 01-1.923 3.636l-.162.007H3.235a2.428 2.428 0 01-2.152-3.5l.083-.154L7.924 2.56A2.428 2.428 0 0110 1.39zm.008 11.108l-.106.006a.833.833 0 000 1.655l.098.006.106-.006a.833.833 0 000-1.655l-.098-.006zM10 6.667a.833.833 0 00-.828.736l-.005.097v3.333l.005.098a.833.833 0 001.655 0l.006-.098V7.5l-.005-.097A.833.833 0 0010 6.667z",fill:"#E13942"})))}},4317:function(t,e,n){"use strict";n.r(e);var o,r,i,a,s,c,l,u,p,d,f,m=n(7423);function h(){return(h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(null,arguments)}e.default=function(t){return m.createElement("svg",h({id:"logo_svg__Logo",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 204.952 47.348"},t),o||(o=m.createElement("defs",null,m.createElement("style",null,".logo_svg__cls-1{fill:#51
1525f}"))),r||(r=m.createElement("g",{id:"logo_svg__Group_4","data-name":"Group 4"},m.createElement("g",{id:"logo_svg__Group_2","data-name":"Group 2",transform:"translate(.232 .266)"},m.createElement("path",{id:"logo_svg__Path_1","data-name":"Path 1",className:"logo_svg__cls-1",d:"M18.833 32.1c2.47-1.859 2.709-4.3.478-6.187-1.912-1.62-7.276-3.293-7.621-3.372a12.52 12.52 0 01-5.975-3.9 12.046 12.046 0 01-2.071-3.744l-.212-.929c-.478-1.514.053-5.045.053-5.045a5.463 5.463 0 01.531-1.567 9.829 9.829 0 013.77-4.577 9.277 9.277 0 012.071-1.168 5.2 5.2 0 011.939-.5C15.54 1.053 46.45 1 47.512 1a2.318 2.318 0 01.188 1.195c0 1.912-.053 3.85.027 5.762.053.956-.266 1.168-1.168 1.168q-16.77-.04-33.512 0l-1.089.345c-1.354.744-1.328 3.532.133 4.647a8.127 8.127 0 002.576 1.3c.9.292 1.806.5 2.709.8a25.056 25.056 0 017.037 3.8c.159.186.319.372.5.558a12.144 12.144 0 013.4 5.789c.027.319.08.611.106.929a11.037 11.037 0 01-3.213 9.268l-.451.531a10.784 10.784 0 01-7.064 3.108 21.411 21.411 0 01-9.825-1.487 20.189 20.189 0 01-2.018-.983.1.1 0 00-.027-.08c-.027 0-.027.027-.053.027a32.5 32.5 0 01-4.541-3.532c-.372-.345-.558-.637 0-1.115 1.514-1.328 3-2.682 4.408-4.116.531-.531.85-.558 1.3-.08a.458.458 0 01.159.159 12.561 12.561 0 007.329 3.532c.637.027 1.275.027 1.912.053a4.545 4.545 0 002.363-.451z",transform:"translate(-.875 -1)"})),m.createElement("g",{id:"logo_svg__Group_3","data-name":"Group 3"},m.createElement("path",{id:"logo_svg__Path_2","data-name":"Path 2",className:"logo_svg__cls-1",d:"M15.322 39.833a22.043 22.043 0 01-8.152-1.594 14.664 14.664 0 01-1.461-.69 5.992 5.992 0 00-.584-.292.026.026 0 01-.025-.027.093.093 0 01-.053-.027 32.2 32.2 0 01-4.569-3.584.937.937 0 01-.478-.744 1.091 1.091 0 01.451-.744 74.44 74.44 0 004.409-4.115 1.356 1.356 0 01.9-.5 1.119 1.119 0 01.77.425 1.227 1.227 0 01.186.186 12.207 12.207 0 007.143 3.452h.69c.4 0 .823 0 1.222.027a3.738 3.738 0 002.2-.425l.106-.053a4.062 4.062 0 001.885-3 3.566 3.566 0 00-1.434-2.735c-1.832-1.567-7.117-3.213-7.542-3.319a12.94 12.94 0 01-6.108-3.983A9.505 9.505 0 013.107 15c-.106-.266-.212-.5-.319-.744 0-.027 0-.027-.027-.053l-.212-.929C2.124 11.9 2.5 9 2.6 8.152v-.026a6.328 6.328 0 01.56-1.647 9.982 9.982 0 013.85-4.674A9.4 9.4 0 019.161.611h.027a.026.026 0 00.027-.027A4.979 4.979 0 0111.18.08C13.6.053 27.086.027 36.965 0h9.905a.377.377 0 01.159.053c.027 0 .027.027.053.027l.053.053a1.957 1.957 0 01.212 1.195v1.885c0 1.3-.027 2.656.027 3.983a1.377 1.377 0 01-.292 1.115 1.535 1.535 0 01-1.168.319c-11.472-.03-22.864-.03-33.46 0l-1.036.345a1.907 1.907 0 00-.823 1.567 3.1 3.1 0 001.005 2.629 7.85 7.85 0 002.5 1.248c.4.133.823.239 1.248.372.478.133.983.266 1.461.451a25.326 25.326 0 017.117 3.85c.027 0 .027.027.053.027l.133.133c.133.133.239.266.372.4a12.527 12.527 0 013.479 5.9v.027c.027.159.027.319.053.451a2.926 2.926 0 01.053.478 11.311 11.311 0 01-3.293 9.48l-.451.5-.027.027a11.2 11.2 0 01-7.223 3.185 9.742 9.742 0 01-1.753.133zm-9.878-3l.478.239a13.609 13.609 0 001.407.664 21.262 21.262 0 009.719 1.464 10.654 10.654 0 006.9-3.054l.451-.5a10.877 10.877 0 003.16-9.082c-.027-.159-.027-.319-.053-.478s-.027-.292-.053-.451A12.067 12.067 0 0024.139 20c-.133-.133-.266-.292-.4-.425l-.106-.106a25.028 25.028 0 00-6.933-3.748c-.478-.159-.983-.292-1.461-.425a22.69 22.69 0 01-1.275-.372 8.205 8.205 0 01-2.682-1.354 3.587 3.587 0 01-1.222-3.08 2.432 2.432 0 011.12-2.019c.027 0 .027-.027.053-.027l1.089-.344h.08c10.622-.027 22.014-.027 33.512 0 .425 0 .664-.053.77-.159a.969.969 0 00.133-.717 68.023 68.023 0 01-.027-4.01V1.328a2.538 2.538 0 00-.08-.8c-.876 0-4.86 0-9.746.027C27.113.584 13.6.611 11.206.637a4.6 4.6 0 00-1.753.451c-.053.027-.08.053-.133.053A9.422 9.422 0 007.3 2.257a9.452 9.452 0 00-3.662 4.435 5.683 5.683 0 00-.531 1.514v.027c-.08.584-.478 3.585-.053 4.913l.212.929c.106.239.212.5.319.744a9.4 9.4 0 001.673 2.921 12.127 12.127 0 005.842 3.823c.531.106 5.842 1.779 7.754 3.4a4.047 4.047 0 011.62 3.16 4.52 4.52 0 01-2.124 3.426l-.027.027-.133.08a4.53 4.53 0 01-2.5.478c-.4-.027-.8-.027-1.222-.027h-.717a12.65 12.65 0 01-7.489-3.611l-.027-.027-.106-.106-.027-.027c-.159-.186-.292-.266-.4-.266a.87.87 0 00-.5.345A68.396 68.396 0 01.77 32.556c-.159.133-.27.266-.27.344 0 .106.133.239.266.372a31.118 31.118 0 004.382 3.452h.08a.237.237 0 01.216.108zm12.746-5.47z"})))),i||(i=m.createElement("g",{id:"logo_svg__Group_7","data-name":"Group 7",transform:"translate(25.855 30.591)"},m.createElement("g",{id:"logo_svg__Group_5","data-name":"Group 5",transform:"translate(.275 .212)"},m.createElement("path",{id:"logo_svg__Path_3","data-name":"Path 3",className:"logo_svg__cls-1",d:"M119.352 116.664c0 2.363-.027 4.727-.027 7.064h-4.541s-12.587.027-12.587 0H98.4a10.978 10.978 0 00.956-.77 11.316 11.316 0 002.815-5.789c.027-.106.027-.212.053-.345a.924.924 0 01.85-.77c.5.106 15.349-.053 16.092-.053a.694.694 0 01.186.663z",transform:"translate(-98.4 -116)"})),m.createElement("g",{id:"logo_svg__Group_6","data-name":"Group 6"},m.createElement("path",{id:"logo_svg__Path_4","data-name":"Path 4",className:"logo_svg__cls-1",d:"M98.914 123.432h-1.275a.32.32 0 01-.266-.186.252.252 0 01.106-.292 8.639 8.639 0 00.929-.744 10.817 10.817 0 002.735-5.63 1.293 1.293 0 00.027-.319v-.027a1.242 1.242 0 011.062-.983h.106c.478.08 10.463 0 14.207-.027 1.009 0 1.673-.027 1.832-.027a.2.2 0 01.133.027.767.767 0 01.345.823l-.266.027h.266c0 2.363-.027 4.727-.027 7.064a.286.286 0 01-.266.266h-15.187c-1.27
15 0-1.753 0-1.965-.027a19.969 19.969 0 01-2.496.055zm2.523-.266zm-3.027-.266h19.916c.027-2.284.027-4.541.027-6.8v-.027c0-.186 0-.266-.053-.292-.239 0-.876 0-1.726.027-9.454.08-13.649.08-14.26.027a.642.642 0 00-.584.558 1.333 1.333 0 01-.053.319 11.334 11.334 0 01-2.895 5.922 1.667 1.667 0 00-.373.266z",transform:"translate(-97.364 -115.2)"})))),a||(a=m.createElement("g",{id:"logo_svg__Group_12","data-name":"Group 12",transform:"translate(25.413 17.739)"},m.createElement("g",{id:"logo_svg__Group_10","data-name":"Group 10",transform:"translate(.319 .266)"},m.createElement("path",{id:"logo_svg__Path_6","data-name":"Path 6",className:"logo_svg__cls-1",d:"M131.714 87.4a4.626 4.626 0 01-2.124 1.673 7.4 7.4 0 01-2.39.4 6.646 6.646 0 01-2.549-.531 8.275 8.275 0 01-2.31-1.514 8.5 8.5 0 01-1.726-2.257 7.882 7.882 0 01-.85-2.815v-8.581H118.3c-3.638 0-12.985-.027-15.614.027-.823 0-1.222-.159-1.328-.584-.053-.319-2.231-4.86-4.461-5.417l21.4.08 9.8.027v5.869h-3.4v7.433a2.721 2.721 0 00.159.983 1.95 1.95 0 00.451.717 2.143 2.143 0 00.637.451 1.782 1.782 0 00.744.159 4.6 4.6 0 00.85-.08 1.688 1.688 0 00.9-.584z",transform:"translate(-96.9 -67.8)"})),m.createElement("g",{id:"logo_svg__Group_11","data-name":"Group 11"},m.createElement("path",{id:"logo_svg__Path_7","data-name":"Path 7",className:"logo_svg__cls-1",d:"M126.318 89a6.619 6.619 0 01-2.656-.558 8.269 8.269 0 01-2.39-1.567 9.078 9.078 0 01-1.779-2.337 7.937 7.937 0 01-.876-2.921v-8.311H117.4c-3.558 0-12.985-.027-15.614.027-.664 0-1.434-.08-1.593-.8-.133-.478-2.231-4.7-4.275-5.2a.288.288 0 01-.212-.292.282.282 0 01.266-.239l31.2.106a.251.251 0 01.266.266v5.866a.251.251 0 01-.266.266h-3.134v7.17a2.382 2.382 0 00.159.9 2.586 2.586 0 00.4.637 2.127 2.127 0 00.558.4 2.39 2.39 0 001.434.053 1.654 1.654 0 00.77-.5.3.3 0 01.212-.08.224.224 0 01.186.106l3.266 4.541a.242.242 0 010 .319 4.9 4.9 0 01-2.231 1.753 7.88 7.88 0 01-2.474.395zm-7.2-7.409a7.464 7.464 0 00.823 2.709 8.63 8.63 0 001.673 2.2 8.09 8.09 0 002.231 1.461 6.6 6.6 0 004.78.133 4.4 4.4 0 001.885-1.407l-3-4.169a1.825 1.825 0 01-.823.451 3.019 3.019 0 01-1.753-.08 2.452 2.452 0 01-.744-.5 2.537 2.537 0 01-.5-.823 2.841 2.841 0 01-.186-1.089V73.04a.251.251 0 01.266-.266h3.13v-5.363l-29.795-.08a13.568 13.568 0 013.585 5.1c.027.133.08.372 1.062.372 2.629-.027 12.056-.027 15.614-.027h1.487a.251.251 0 01.266.266z",transform:"translate(-95.7 -66.8)"})))),s||(s=m.createElement("g",{id:"logo_svg__Group_13","data-name":"Group 13",transform:"translate(61.475 18.934)"},m.createElement("path",{id:"logo_svg__Path_8","data-name":"Path 8",className:"logo_svg__cls-1",d:"M237.838 91.779a9.87 9.87 0 01-3.93-3.665A10 10 0 01232.5 82.8a10.106 10.106 0 011.407-5.311 9.87 9.87 0 013.93-3.665 12.768 12.768 0 0111.339 0 9.629 9.629 0 013.9 3.665 10 10 0 011.407 5.311 10.106 10.106 0 01-1.407 5.311 9.974 9.974 0 01-3.9 3.665 12.011 12.011 0 01-5.656 1.328 11.735 11.735 0 01-5.682-1.325zm9.347-4.939a6.4 6.4 0 000-8.073 4.826 4.826 0 00-3.665-1.514 4.925 4.925 0 00-3.691 1.514 5.657 5.657 0 00-1.461 4.036 5.5 5.5 0 001.461 4.036 4.885 4.885 0 003.691 1.514 4.826 4.826 0 003.665-1.513z",transform:"translate(-232.234 -72.181)"}),m.createElement("path",{id:"logo_svg__Path_9","data-name":"Path 9",className:"logo_svg__cls-1",d:"M242.786 92.491A12.173 12.173 0 01237 91.137a10.238 10.238 0 01-4.036-3.771A10.463 10.463 0 01231.5 81.9a10.286 10.286 0 011.461-5.47A10.064 10.064 0 01237 72.654a13.05 13.05 0 0111.578 0 10.165 10.165 0 014.01 3.771 10.463 10.463 0 011.461 5.47 10.352 10.352 0 01-1.461 5.47 10.165 10.165 0 01-4.01 3.771 12.248 12.248 0 01-5.792 1.355zm0-20.607a11.569 11.569 0 00-5.55 1.3 9.515 9.515 0 00-3.824 3.558 10 10 0 00-1.381 5.178 9.686 9.686 0 001.381 5.178 9.515 9.515 0 003.824 3.558 11.883 11.883 0 005.55 1.3 11.391 11.391 0 005.523-1.3 9.443 9.443 0 003.8-3.558 10 10 0 001.381-5.178 9.6 9.6 0 00-5.178-8.737 11.464 11.464 0 00-5.526-1.299zm0 15.853a5.125 5.125 0 01-3.877-1.593 6.646 6.646 0 010-8.444 5.125 5.125 0 013.877-1.593 5.027 5.027 0 013.85 1.593 6.646 6.646 0 010 8.444 5.108 5.108 0 01-3.85 1.594zm0-11.1a4.685 4.685 0 00-3.505 1.434 5.423 5.423 0 00-1.381 3.85 5.308 5.308 0 001.381 3.85 4.644 4.644 0 003.505 1.434 4.586 4.586 0 003.479-1.434 6.151 6.151 0 000-7.7 4.586 4.586 0 00-3.479-1.433zm3.665 9.321z",transform:"translate(-231.5 -71.3)"}
1))),c||(c=m.createElement("g",{id:"logo_svg__Group_14","data-name":"Group 14",transform:"translate(87.605 18.96)"},m.createElement("path",{id:"logo_svg__Path_10","data-name":"Path 10",className:"logo_svg__cls-1",d:"M339.338 73.244a10.311 10.311 0 014.089-.744v5.364a19.87 19.87 0 00-1.3-.08 5.284 5.284 0 00-3.9 1.407 5.609 5.609 0 00-1.407 4.2v9.427H331V72.792h5.55v2.656a5.94 5.94 0 012.788-2.204z",transform:"translate(-330.708 -72.208)"}),m.createElement("path",{id:"logo_svg__Path_11","data-name":"Path 11",className:"logo_svg__cls-1",d:"M335.981 92.272h-5.816a.251.251 0 01-.266-.266V71.984a.251.251 0 01.266-.266h5.55a.251.251 0 01.266.266v1.886a7.334 7.334 0 012.443-1.7 10.71 10.71 0 014.169-.77.251.251 0 01.266.266v5.364a.241.241 0 01-.08.186.3.3 0 01-.212.08q-.956-.08-1.275-.08a5.048 5.048 0 00-3.718 1.328 5.487 5.487 0 00-1.328 4.01v9.454a.266.266 0 01-.265.264zm-5.55-.531h5.284v-9.188a5.95 5.95 0 011.487-4.382 5.548 5.548 0 014.089-1.461c.186 0 .531.027 1.036.053v-4.805a10.185 10.185 0 00-3.718.717 6.5 6.5 0 00-2.709 2.1.261.261 0 01-.478-.159v-2.39H330.4v19.515z",transform:"translate(-329.9 -71.4)"}))),l||(l=m.createElement("g",{id:"logo_svg__Group_15","data-name":"Group 15",transform:"translate(101.413 19.279)"},m.createElement("path",{id:"logo_svg__Path_12","data-name":"Path 12",className:"logo_svg__cls-1",d:"M405.917 73.6l-9.055 21.244a10.613 10.613 0 01-3.4 4.886 8.221 8.221 0 01-4.886 1.407 10.214 10.214 0 01-3.08-.478 6.961 6.961 0 01-2.5-1.328l2.124-4.143a4.779 4.779 0 001.54.929 5.119 5.119 0 001.726.345 3.011 3.011 0 001.939-.584 4.756 4.756 0 001.328-1.912l.08-.186-8.68-20.18h6l5.63 13.6 5.656-13.6h5.577z",transform:"translate(-382.707 -73.334)"}),m.createElement("path",{id:"logo_svg__Path_13","data-name":"Path 13",className:"logo_svg__cls-1",d:"M387.739 100.669a9.956 9.956 0 01-3.16-.5 7.4 7.4 0 01-2.6-1.407.282.282 0 01-.053-.319l2.124-4.143a.2.2 0 01.186-.133.207.207 0 01.212.053 4.756 4.756 0 001.461.876 4.532 4.532 0 001.646.319 2.891 2.891 0 001.779-.531 4.553 4.553 0 001.248-1.806l.027-.08L382 72.972a.25.25 0 01.027-.239.271.271 0 01.212-.133h6a.232.232 0 01.239.159l5.364 12.985 5.417-12.985a.255.255 0 01.239-.159h5.577a.328.328 0 01.212.106.258.258 0 01.027.239l-9.055 21.244a10.719 10.719 0 01-3.505 4.992 8.2 8.2 0 01-5.015 1.488zm-5.258-2.151a6.542 6.542 0 002.231 1.142 9.711 9.711 0 003 .478 8.151 8.151 0 004.753-1.354 10.391 10.391 0 003.319-4.753l8.9-20.9h-4.992l-5.6 13.437a.255.255 0 01-.239.159.232.232 0 01-.239-.159l-5.55-13.437h-5.417l8.524 19.81a.291.291 0 010 .212l-.08.186a5.194 5.194 0 01-1.434 2.018 3.292 3.292 0 01-2.1.637 4.976 4.976 0 01-1.832-.345 4.848 4.848 0 01-1.354-.77z",transform:"translate(-381.896 -72.6)"}))),u||(u=m.createElement("g",{id:"logo_svg__Group_16","data-name":"Group 16",transform:"translate(126.986 11.684)"},m.createElement("path",{id:"logo_svg__Path_14","data-name":"Path 14",className:"logo_svg__cls-1",d:"M479.2 45h5.816v27.617H479.2z",transform:"translate(-478.934 -44.734)"}),m.createElement("path",{id:"logo_svg__Path_15","data-name":"Path 15",className:"logo_svg__cls-1",d:"M484.281 72.148h-5.816a.251.251 0 01-.266-.266V44.266a.251.251 0 01.266-.266h5.816a.251.251 0 01.266.266v27.617a.266.266 0 01-.266.265zm-5.55-.531h5.284V44.531h-5.284z",transform:"translate(-478.2 -44)"}))),p||(p=m.createElement("g",{id:"logo_svg__Group_17","data-name":"Group 17",transform:"translate(136.971 18.96)"},m.createElement("path",{id:"logo_svg__Path_16","data-name":"Path 16",className:"logo_svg__cls-1",d:"M537.705 84.45h-15.163a4.715 4.715 0 001.939 2.948 6.418 6.418 0 003.8 1.089 7.431 7.431 0 002.762-.478 6.993 6.993 0 002.257-1.461l3.08 3.346c-1.885 2.151-4.647 3.24-8.259 3.24a13.219 13.219 0 01-6-1.328 9.587 9.587 0 01-4.01-3.665 10 10 0 01-1.411-5.311 10.31 10.31 0 011.407-5.311 9.828 9.828 0 013.824-3.691 11.312 11.312 0 015.444-1.328 10.983 10.983 0 015.311 1.275 9.146 9.146 0 013.744 3.638 10.816 10.816 0 011.354 5.5 7.458 7.458 0 01-.079 1.537zM524.135 78a4.757 4.757 0 00-1.646 3.054h9.878a4.642 4.642 0 00-1.646-3.027 4.855 4.855 0 00-3.266-1.142 4.968 4.968 0 00-3.32 1.115z",transform:"translate(-516.461 -72.208)"}),m.createElement("path",{id:"logo_svg__Path_17","data-name":"Path 17",className:"logo_svg__cls-1",d:"M527.484 92.564a13.261 13.261 0 01-6.108-1.354 9.948 9.948 0 01-4.116-3.771 11.012 11.012 0 01-.027-10.9
114 9.938 9.938 0 013.93-3.771 11.478 11.478 0 015.577-1.354 11.3 11.3 0 015.444 1.3 9.669 9.669 0 013.851 3.744 11.128 11.128 0 011.381 5.63c0 .053 0 .292-.106 1.593a.262.262 0 01-.266.239h-14.818a4.55 4.55 0 001.753 2.47 6.132 6.132 0 003.638 1.036 7.565 7.565 0 002.682-.451 6.407 6.407 0 002.151-1.407.257.257 0 01.372 0L535.9 88.9a.248.248 0 010 .345c-1.883 2.204-4.725 3.319-8.416 3.319zm-.744-20.607a10.881 10.881 0 00-5.338 1.3 9.718 9.718 0 00-3.744 3.585 10.048 10.048 0 00-1.354 5.178 9.686 9.686 0 001.381 5.178 9.4 9.4 0 003.9 3.558 12.987 12.987 0 005.869 1.3c3.426 0 6.081-1.009 7.913-2.974l-2.735-2.974a6.659 6.659 0 01-2.151 1.354 8.017 8.017 0 01-2.868.478 6.75 6.75 0 01-3.957-1.115 5.032 5.032 0 01-2.045-3.107.207.207 0 01.053-.212.328.328 0 01.212-.106h14.9c.08-1.036.08-1.248.08-1.3a10.711 10.711 0 00-1.328-5.364 9.126 9.126 0 00-3.638-3.532 10.28 10.28 0 00-5.149-1.246zm4.966 8.551h-9.878a.3.3 0 01-.212-.08.206.206 0 01-.053-.212A5.048 5.048 0 01523.289 77a5.294 5.294 0 013.479-1.168 5.2 5.2 0 013.452 1.195 5.118 5.118 0 011.726 3.187.237.237 0 01-.239.292zm-9.56-.531h9.241A4.449 4.449 0 00529.9 77.4a5.114 5.114 0 00-6.24 0 4.272 4.272 0 00-1.513 2.577z",transform:"translate(-515.8 -71.4)"}))),d||(d=m.createElement("g",{id:"logo_svg__Group_18","data-name":"Group 18",transform:"translate(162.172 18.96)"},m.createElement("path",{id:"logo_svg__Path_18","data-name":"Path 18",className:"logo_svg__cls-1",d:"M629.917 74.657c1.514 1.487 2.284 3.691 2.284 6.639v11.445h-5.816V82.172a5.271 5.271 0 00-1.036-3.558 3.862 3.862 0 00-3.027-1.168 4.661 4.661 0 00-3.505 1.354 5.592 5.592 0 00-1.3 4.036v9.905H611.7V72.719h5.55v2.337a7.889 7.889 0 012.868-1.965 10.139 10.139 0 013.771-.69 8.37 8.37 0 016.028 2.256z",transform:"translate(-611.434 -72.134)"}),m.createElement("path",{id:"logo_svg__Path_19","data-name":"Path 19",className:"logo_svg__cls-1",d:"M631.466 92.272h-5.816a.251.251 0 01-.266-.266V81.438a4.874 4.874 0 00-.983-3.372 3.6 3.6 0 00-2.815-1.089 4.421 4.421 0 00-3.319 1.275 5.365 5.365 0 00-1.222 3.85v9.905a.251.251 0 01-.266.266h-5.816a.251.251 0 01-.266-.266V71.984a.251.251 0 01.266-.266h5.55a.251.251 0 01.266.266v1.7a8.845 8.845 0 012.5-1.567 10.14 10.14 0 013.851-.717 8.459 8.459 0 016.187 2.31c1.567 1.54 2.363 3.824 2.363 6.825v11.472c.052.159-.055.265-.214.265zm-5.523-.531h5.284V80.535c0-2.841-.744-5.019-2.2-6.426a7.985 7.985 0 00-5.816-2.151 9.675 9.675 0 00-3.665.664 7.856 7.856 0 00-2.762 1.885.3.3 0 01-.292.08.232.232 0 01-.159-.239v-2.072h-5.019v19.465h5.286V82.1a5.821 5.821 0 011.381-4.222 4.9 4.9 0 013.691-1.434 4.065 4.065 0 013.213 1.275A5.439 5.439 0 01626 81.464v10.277z",transform:"translate(-610.7 -71.4)"}))),f||(f=m.createElement("g",{id:"logo_svg__Group_19","data-name":"Group 19",transform:"translate(186.263 18.907)"},m.createElement("path",{id:"logo_svg__Path_20","data-name":"Path 20",className:"logo_svg__cls-1",d:"M706.2 92.5a12.8 12.8 0 01-3.8-1.54l1.939-4.169a12.153 12.153 0 003.24 1.407 13.1 13.1 0 003.718.531c2.47 0 3.691-.611 3.691-1.832a1.3 1.3 0 00-1.009-1.222 16.3 16.3 0 00-3.08-.637 28.815 28.815 0 01-4.063-.85 6.363 6.363 0 01-2.762-1.7 4.943 4.943 0 01-1.168-3.505 5.566 5.566 0 011.089-3.372 7.005 7.005 0 013.213-2.284 13.42 13.42 0 014.966-.823 19.067 19.067 0 014.222.478 12.569 12.569 0 013.479 1.275l-1.94 4.143a11.643 11.643 0 00-5.762-1.487 5.819 5.819 0 00-2.788.531 1.546 1.546 0 00-.93 1.328 1.34 1.34 0 001.009 1.3 19.511 19.511 0 003.213.717 30.491 30.491 0 014.01.876 6.1 6.1 0 012.709 1.7 4.813 4.813 0 011.142 3.426 5.326 5.326 0 01-1.115 3.319 7.194 7.194 0 01-3.266 2.257 14.632 14.632 0 01-5.072.8 21.449 21.449 0 01-4.885-.667z",transform:"translate(-702.14 -72.155)"}),m.createElement("path",{id:"logo_svg__Path_21","data-name":"Path 21",className:"logo_svg__cls-1",d:"M710.365 92.417a20.456 20.456 0 01-4.939-.611 13.016 13.016 0 01-3.877-1.593.29.29 0 01-.106-.345l1.938-4.169a.2.2 0 01.159-.133.282.282 0 01.212.027 11.927 11.927 0 003.16 1.354 13.7 13.7 0 003.638.531c2.257 0 3.426-.531 3.426-1.567 0-.292-.08-.69-.823-.983a14.1 14.1 0 00-3.027-.611 25.56 25.56 0 01-4.09-.876 6.711 6.711 0 01-2.894-1.779 5.172 5.172 0 01-1.248-3.691 5.909 5.909 0 011.142-3.532 7.727 7.727 0 013.319-2.39 13.99 13.99 0 015.072-.85 19.361 19.361 0 014.275.478 12.018 12.018 0 013.558 1.328.29.29 0 01.106.345l-1.912 4.169c-.027.08-.08.106-.159.133a.2.2 0 01-.212-.027 11.477 11.477 0 00-5.63-1.461 5.631 5.631 0 00-2.656.478 1.282 1.282 
10 00-.8 1.115 1.085 1.085 0 00.823 1.062 16.742 16.742 0 003.16.69 38.24 38.24 0 014.063.876 6.3 6.3 0 012.841 1.779 5.044 5.044 0 011.221 3.611 5.608 5.608 0 01-1.168 3.479 7.463 7.463 0 01-3.372 2.337 14.872 14.872 0 01-5.2.826zm-8.338-2.523a12.712 12.712 0 003.532 1.381 19.548 19.548 0 004.806.611 14.166 14.166 0 004.992-.8 6.783 6.783 0 003.134-2.178 4.991 4.991 0 001.062-3.16 4.594 4.594 0 00-1.089-3.24 5.985 5.985 0 00-2.6-1.62q-1.553-.438-3.983-.876a18 18 0 01-3.24-.717 1.564 1.564 0 01-1.168-1.54 1.817 1.817 0 011.062-1.567 6.057 6.057 0 012.921-.558 12.116 12.116 0 015.656 1.381l1.7-3.665a12.345 12.345 0 00-3.187-1.142 20.24 20.24 0 00-4.169-.451 13.658 13.658 0 00-4.886.8 6.842 6.842 0 00-3.08 2.2 5.281 5.281 0 00-1.036 3.213 4.714 4.714 0 001.089 3.319 6.313 6.313 0 002.655 1.646 28.7 28.7 0 004.01.85 17.061 17.061 0 013.133.637 1.531 1.531 0 011.168 1.487c0 1.381-1.328 2.1-3.957 2.1a13.556 13.556 0 01-3.8-.558 12.879 12.879 0 01-3.054-1.275z",transform:"translate(-701.422 -71.2)"}))))}},8230:function(t,e,n){"use strict";n.r(e);var o,r,i,a=n(7423);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(null,arguments)}e.default=function(t){return a.createElement("svg",s({"data-name":"Group 875",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},t),o||(o=a.createElement("path",{"data-name":"Path 617",d:"M0 0h24v24H0z",fill:"none"})),r||(r=a.createElement("path",{"data-name":"Line 166",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18 6L6 18"})),i||(i=a.createElement("path",{"data-name":"Line 167",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6 6l12 12"})))}},6265:function(t,e,n){"use strict";n.r(e);var o,r=n(7423);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(null,arguments)}e.default=function(t){return r.createElement("svg",i({width:"1em",height:"1em",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=r.createElement("path",{d:"M29.167 33.333L12.5 50l16.667 16.666m41.666-33.333L87.5 50 70.833 66.666m-12.5-50L41.667 83.334",stroke:"rgba(0,0,0,0.3)",strokeWidth:6,strokeLinecap:"round",strokeLinejoin:"round"})))}},9742:function(t,e){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],o=e[1];return 3*(n+o)/4-o},e.toByteArray=function(t){var e,n,i=c(t),a=i[0],s=i[1],l=new r(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),u=0,p=s>0?a-4:a;for(n=0;n<p;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,l[u++]=255&e);1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},e.fromByteArray=function(t){for(var e,o=t.length,r=o%3,i=[],a=16383,s=0,c=o-r;s<c;s+=a)i.push(l(t,s,s+a>c?c:s+a));1===r?(e=t[o-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[o-2]<<8)+t[o-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],o=[],r="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],o[i.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,o){for(var r,i,a=[],s=e;s<o;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(i=r)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},8764:function(t,e,n){"use strict";var o=n(9742),r=n(645),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;var a=2147483647;function s(t){if(t>
vendor: 4,426 bytes, line 1
1a)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return p(t)}return l(t,e,n)}function l(t,e,n){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|h(t,e),o=s(n),r=o.write(t,e);r!==n&&(o=o.slice(0,r));return o}(t,e);if(ArrayBuffer.isView(t))return d(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=t.valueOf&&t.valueOf();if(null!=o&&o!==t)return c.from(o,e,n);var r=function(t){if(c.isBuffer(t)){var e=0|m(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||z(t.length)?s(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(r)return r;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function p(t){return u(t),s(t<0?0:0|m(t))}function d(t){for(var e=t.length<0?0:0|m(t.length),n=s(e),o=0;o<e;o+=1)n[o]=255&t[o];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var o;return o=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(o,c.prototype),o}function m(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function h(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(r)return o?-1:j(t).length;e=(""+e).toLowerCase(),r=!0}}function _(t,e,n){var o=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return w(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return U(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function E(t,e,n){var o=t[e];t[e]=t[n],t[n]=o}function g(t,e,n,o,r){if(0===t.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),z(n=+n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=c.from(e,o)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,o,r);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,o,r);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,o,r){var i,a=1,s=t.length,c=e.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)
vendor: 4,778 bytes, line 1
1){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var u=-1;for(i=n;i<s;i++)if(l(t,i)===l(e,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var p=!0,d=0;d<c;d++)if(l(t,i+d)!==l(e,d)){p=!1;break}if(p)return i}return-1}function S(t,e,n,o){n=Number(n)||0;var r=t.length-n;o?(o=Number(o))>r&&(o=r):o=r;var i=e.length;o>i/2&&(o=i/2);for(var a=0;a<o;++a){var s=parseInt(e.substr(2*a,2),16);if(z(s))return a;t[n+a]=s}return a}function T(t,e,n,o){return G(j(e,t.length-n),t,n,o)}function C(t,e,n,o){return G(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,o)}function b(t,e,n,o){return C(t,e,n,o)}function v(t,e,n,o){return G(B(e),t,n,o)}function I(t,e,n,o){return G(function(t,e){for(var n,o,r,i=[],a=0;a<t.length&&!((e-=2)<0);++a)o=(n=t.charCodeAt(a))>>8,r=n%256,i.push(r),i.push(o);return i}(e,t.length-n),t,n,o)}function A(t,e,n){return 0===e&&n===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var o=[],r=e;r<n;){var i,a,s,c,l=t[r],u=null,p=l>239?4:l>223?3:l>191?2:1;if(r+p<=n)switch(p){case 1:l<128&&(u=l);break;case 2:128===(192&(i=t[r+1]))&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=t[r+1],a=t[r+2],128===(192&i)&&128===(192&a)&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=t[r+1],a=t[r+2],s=t[r+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),r+=p}return function(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);var n="",o=0;for(;o<e;)n+=String.fromCharCode.apply(String,t.slice(o,o+=R));return n}(o)}e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(n){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return l(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return u(t),t<=0?s(t):void 0!==e?"string"===typeof n?s(t).fill(e,n):s(t).fill(e):s(t)}(t,e,n)},c.allocUnsafe=function(t){return p(t)},c.allocUnsafeSlow=function(t){return p(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(H(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),H(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,o=e.length,r=0,i=Math.min(n,o);r<i;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var o=c.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var i=t[n];if(H(i,Uint8Array)&&(i=c.from(i)),!c.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(o,r),r+=i.length}return o},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)E(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this},c.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?O(this,0,t):_.apply(this,arguments)}
vendor: 8,726 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(t,e,n,o,r){if(H(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),e<0||n>t.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&e>=n)return 0;if(o>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(i,a),l=this.slice(o,r),u=t.slice(e,n),p=0;p<s;++p)if(l[p]!==u[p]){i=l[p],a=u[p];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},c.prototype.write=function(t,e,n,o){if(void 0===e)o="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)o=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return S(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return b(this,t,e,n);case"base64":return v(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function P(t,e,n){var o="";n=Math.min(t.length,n);for(var r=e;r<n;++r)o+=String.fromCharCode(127&t[r]);return o}function U(t,e,n){var o="";n=Math.min(t.length,n);for(var r=e;r<n;++r)o+=String.fromCharCode(t[r]);return o}function w(t,e,n){var o=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>o)&&(n=o);for(var r="",i=e;i<n;++i)r+=$[t[i]];return r}function L(t,e,n){for(var o=t.slice(e,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function x(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,o,r,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<i)throw new RangeError('"value" argument is out of bounds');if(n+o>t.length)throw new RangeError("Index out of range")}function N(t,e,n,o,r,i){if(n+o>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,o,i){return e=+e,n>>>=0,i||N(t,0,n,4),r.write(t,e,n,o,23,4),n+4}function k(t,e,n,o,i){return e=+e,n>>>=0,i||N(t,0,n,8),r.write(t,e,n,o,52,8),n+8}c.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var o=this.subarray(t,e);return Object.setPrototypeOf(o,c.prototype),o},c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var o=this[t],r=1,i=0;++i<e&&(r*=256);)o+=this[t+i]*r;return o},c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var o=this[t+--e],r=1;e>0&&(r*=256);)o+=this[t+--e]*r;return o},c.prototype.readUInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var o=this[t],r=1,i=0;++i<e&&(r*=256);)o+=this[t+i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var o=e,r=1,i=this[t+--o];o>0&&(r*=256);)i+=this[t+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||x(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||x(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||x(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||x(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||x(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||x(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,o){(t=+t,e>>>=0,n>>>=0,o)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[e]=255&t;++i<n&&(r*=256);)this[e+i]=t/r&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,o){(t=+t,e>>>=0,n>>>=0,o)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[e+r]=255&t;--r>=0&&(i*=256);)this[e+r]=t/i&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e>>>=0,!o){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var i=0,a=1,s=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,o){if(t=+t,e>>>=0,!o){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var i=n-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return k(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return k(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,o){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-n&&(o=t.length-e+n);var r=o-n;
1if(this===t&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,n,o);else if(this===t&&n<e&&e<o)for(var i=r-1;i>=0;--i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,o),e);return r},c.prototype.fill=function(t,e,n,o){if("string"===typeof t){if("string"===typeof e?(o=e,e=0,n=this.length):"string"===typeof n&&(o=n,n=this.length),void 0!==o&&"string"!==typeof o)throw new TypeError("encoding must be a string");if("string"===typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===t.length){var r=t.charCodeAt(0);("utf8"===o&&r<128||"latin1"===o)&&(t=r)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=c.isBuffer(t)?t:c.from(t,o),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=a[i%s]}return this};var M=/[^+/0-9A-Za-z-_]/g;function j(t,e){var n;e=e||1/0;for(var o=t.length,r=null,i=[],a=0;a<o;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(e-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function B(t){return o.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function G(t,e,n,o){for(var r=0;r<o&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!==t}var $=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var o=16*n,r=0;r<16;++r)e[o+r]=t[n]+t[r];return e}()},2641:function(t,e){(function(){"use strict";var n=this,o=n.buildUrl,r=function(t){return null===t?"":encodeURIComponent(String(t).trim())},i=function(t,e){var n,o,i,a=[];if(i=!(!e||!e.lowerCase)&&!!e.lowerCase,null===t?o="":"object"===typeof t?(o="",e=t):o=t,e){if(e.path){o&&"/"===o[o.length-1]&&(o=o.slice(0,-1));var s=String(e.path).trim();i&&(s=s.toLowerCase()),0===s.indexOf("/")?o+=s:o+="/"+s}if(e.queryParams){for(n in e.queryParams){var c;if(e.queryParams.hasOwnProperty(n)&&void 0!==e.queryParams[n])if(e.disableCSV&&Array.isArray(e.queryParams[n])&&e.queryParams[n].length)for(var l=0;l<e.queryParams[n].length;l++)c=e.queryParams[n][l],a.push(n+"="+r(c));else c=i?e.queryParams[n].toLowerCase():e.queryParams[n],a.push(n+"="+r(c))}o+="?"+a.join("&")}e.hash&&(o+=i?"#"+String(e.hash).trim().toLowerCase():"#"+String(e.hash).trim())}return o};i.noConflict=function(){return n.buildUrl=o,i},t.exports&&(e=t.exports=i),e.buildUrl=i}).call(this)},5122:function(t,e,n){var o,r=n(4155);o=()=>(()=>{var t={144:function(t){t.exports=function(t,e,n,o,r){for(e=e.split?e.split("."):e,o=0;o<e.length;o++)t=t?t[e[o]]:r;return t===r?n:t}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{default:()=>Ne});var t=n(144),e=n.n(t),i="object",a="undefined"!=typeof r?r:{},s=(a.env&&a.env.NODE_ENV,"undefined"!=typeof document);function c(t,e){return e.charAt(0)[t]()+e.slice(1)}s&&window.location.hostname,null!=a.versions&&a.versions.node,"undefined"!=typeof Deno&&Deno.core,"object"==typeof self&&self.constructor&&self.constructor.name,s&&"nodejs"===window.name||"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var l=c.bind(null,"toUpperCase"),u=c.bind(null,"toLowerCase");function p(t,e){void 0===e&&(e=!0);var n=function(t){return _(t)?l("null"):"object"==typeof t?function(t){return f(t.constructor)?t.constructor.name:null}(t):Object.prototype.toString.call(t).slice(8,-1)}(t);return e?u(n):n}function d(t,e){return typeof e===t}var f=d.bind(null,"function"),m=d.bind(null,"string");d.bind(null,"undefined");var h=d.bind(null,"boolean");function _(t){return null===t}function E(t){if(!function(t){return t&&("object"==typeof t||null!==t)}(t))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function g(t,e){if("object"!=typeof e||_(e))return!1;if(e instanceof t)return!0;var n=p(new t(""));if(function(t){return t instanceof Error||m(t.message)&&t.constructor&&function(t){return"number"===p(t)&&!isNaN(t)}(t.constructor.stackTraceLimit)}(e))for(;e;){if(p(e)===n)return!0;e=Object.getPrototypeOf(e)}return!1}function y(t,e){var n=t instanceof Element||t instanceof HTMLDocument;return n&&e?function(t,e){return void 0===e&&(e=""),t&&t.nodeName===e.toUpperCase()}(t,e):n}function S(t){var e=[].slice.call(arguments,1);return function(){return t.apply(void 0,[].slice.call(arguments).concat(e))}}function T(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function C(t,e,n){for(var o=e.length-1,r=0;r<o;++r){var i=e[r];if("__proto__"===i||"constructor"===i)break;i in t||(t[i]={}),t=t[i]}t[e[o]]=n}function b(){for(var t="",e=0,n=4294967295*Math.random()|0;e++<36;){var o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],r=15&n;t+="-"==o||"4"==o?o:("x"==o?r:3&r|8).toString(16),n=e%8==0?4294967295*Math.random()|0:n>>4}return t}d.bind(null,"symbol"),g.bind(null,TypeError),g.bind(null,SyntaxError),S(y,"form"),S(y,"button"),S(y,"input"),S(y,"select");var v="__global__",I=typeof self===i&&self.self===self&&self||typeof n.g===i&&n.g.global===n.g&&n.g||void 0;function A(t){return I[v][t]}function O(t,e){return I[v][t]=e}function R(t){delete I[v][t]}function P(){return(P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}I[v]||(I[v]={});var U="function",w="undefined",L="@@redux/"+Math.random().toString(36),x=typeof Symbol===U&&Symbol.observable||"@@observable",D=" != "+U;function N(t,e,n){var o;if(typeof e===U&&typeof n===w&&(n=e,e=void 0),typeof n!==w){if(typeof n!==U)throw new Error("enhancer"+D);return n(N)(t,e)}if(typeof t!==U)throw new Error("reducer"+D);var r=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){return i}function p(t){if(typeof t!==U)throw new Error("Listener"+D);var e=!0;return l(),s.push(t),function(){if(e){e=!1,l();var n=s.indexOf(t);s.splice(n,1)}}}function d(t){if(!E(t))throw new Error("Act != obj");if(typeof t.type===w)throw new Error("ActType "+w);if(c)throw new Error("Dispatch in reducer");try{c=!0,i=r(i,t)}finally{c=!1}for(var e=a=s,n=0;n<e.length;n++)(0,e[n])();return t}return d({type:"@@redux/INIT"}),(o={dispatch:d,subscribe:p,getState:u,replaceReducer:function(t){if(typeof t!==U)throw new Error("next reducer"+D);r=t,d({type:"@@redux/INIT"})}})[x]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t)throw new TypeError("Observer != obj");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[x]=function(){return this},t},o}function F(t,e){var n=e&&e.type;return"action "+(n&&n.toString()||"?")+"reducer "+t+" returns "+w}function k(){var t=[].slice.call(arguments);return 0===t.length?function(t){return t}:1===t.length?t[0]:t.reduce((function(t,e){return function(){return t(e.apply(void 0,[].slice.call(arguments)))}}))}function M(){var t=arguments;return function(e){return function(n,o,r){var i,a=e(n,o,r),s=a.dispatch,c={getState:a.getState,dispatch:function(t){return s(t)}};return i=[].slice.call(t).map((function(t){return t(c)})),P({},a,{dispatch:s=k.apply(void 0,i)(a.dispatch)})}}}var j="__anon_id",B="__user_id",G="__user_traits",H="userId",z="anonymousId",$=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],W=["name","EVENTS","config","loaded"],V=$.reduce((function(t,e){return t[e]=e,t}),{registerPluginType:function(t){return"registerPlugin:"+t},pluginReadyType:function(t){return"ready:"+t}}),Y=/^utm_/,Q=/^an_prop_/,K=/^an_trait_/;function q(t){var e=t.storage.setItem;return function(n){return function(o){return function(r){if(r.type===V.bootstrap){var i=r.params,a=r.user,s=r.persistedUser,c=r.initialUser,l=s.userId===a.userId;s.anonymousId!==a.anonymousId&&e(j,a.anonymousId),l||e(B,a.userId),c.traits&&e(G,P({},l&&s.traits?s.traits:{},c.traits));var u=Object.keys(r.params);if(u.length){var p=i.an_uid,d=i.an_event,f=u.reduce((function(t,e){if(e.match(Y)||e.match(/^(d|g)clid/)){var n=e.replace(Y,"");t.campaign["campaign"===n?"name":n]=i[e]}return e.match(Q)&&(t.props[e.replace(Q,"")]=i[e]),e.match(K)&&(t.traits[e.replace(K,"")]=i[e]),t}),{campaign:{},props:{},traits:{}});n.dispatch(P({type:V.params,raw:i},f,p?{userId:p}:{})),p&&setTimeout((function(){return t.identify(p,f.traits)}),0),d&&setTimeout((function(){return t.track(d,f.props)}),0),Object.keys(f.campaign).length&&n.dispatch({type:V.campaign,campaign:f.campaign})}}return o(r)}}}}function J(t){return function(e,n){if(void 0===e&&(e={}),void 0===n&&(n={}
vendor: 14,775 bytes, line 1
1),n.type===V.setItemEnd){if(n.key===j)return P({},e,{anonymousId:n.value});if(n.key===B)return P({},e,{userId:n.value})}switch(n.type){case V.identify:return Object.assign({},e,{userId:n.userId,traits:P({},e.traits,n.traits)});case V.reset:return[B,j,G].forEach((function(e){t.removeItem(e)})),Object.assign({},e,{userId:null,anonymousId:null,traits:{}});default:return e}}}function X(t){return{userId:t.getItem(B),anonymousId:t.getItem(j),traits:t.getItem(G)}}var Z=function(t){return"__TEMP__"+t};function tt(t){var e=t.storage,n=e.setItem,o=e.removeItem,r=e.getItem;return function(t){return function(e){return function(i){var a=i.userId,s=i.traits,c=i.options;if(i.type===V.reset&&([B,G,j].forEach((function(t){o(t)})),[H,z,"traits"].forEach((function(t){R(Z(t))}))),i.type===V.identify){r(j)||n(j,b());var l=r(B),u=r(G)||{};l&&l!==a&&t.dispatch({type:V.userIdChanged,old:{userId:l,traits:u},new:{userId:a,traits:s},options:c}),a&&n(B,a),s&&n(G,P({},u,s))}return e(i)}}}}var et={};function nt(t,e){et[t]&&f(et[t])&&(et[t](e),delete et[t])}function ot(t,e,n){return new Promise((function(o,r){return e()?o(t):n<1?r(P({},t,{queue:!0})):new Promise((function(t){return setTimeout(t,10)})).then((function(i){return ot(t,e,n-10).then(o,r)}))}))}function rt(t){return{abort:t}}function it(t,e,n){var o={},r=e(),i=t.getState(),a=i.plugins,s=i.queue,c=i.user;if(!i.context.offline&&s&&s.actions&&s.actions.length){var l=s.actions.reduce((function(t,e,n){return a[e.plugin].loaded?(t.process.push(e),t.processIndex.push(n)):(t.requeue.push(e),t.requeueIndex.push(n)),t}),{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(l.processIndex&&l.processIndex.length){l.processIndex.forEach((function(e){var i=s.actions[e],l=i.plugin,u=i.payload.type,p=r[l][u];if(p&&f(p)){var d,m=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),[H,z].reduce((function(n,o){return t.hasOwnProperty(o)&&e[o]&&e[o]!==t[o]&&(n[o]=e[o]),n}),t)}(i.payload,c),h=o[m.meta.rid];if(!h&&(d=p({payload:m,config:a[l].config,instance:n,abort:rt}))&&E(d)&&d.abort)return void(o[m.meta.rid]=!0);if(!h){var _=u+":"+l;t.dispatch(P({},m,{type:_,_:{called:_,from:"queueDrain"}}))}}}));var u=s.actions.filter((function(t,e){return!~l.processIndex.indexOf(e)}));s.actions=u}}}var at=function(t){var e=t.data,n=t.action,o=t.instance,r=t.state,i=t.allPlugins,a=t.allMatches,s=t.store,c=t.EVENTS;try{var l=r.plugins,u=r.context,p=n.type,d=p.match(st),m=e.exact.map((function(t){return t.pluginName}));d&&(m=a.during.map((function(t){return t.pluginName})));var h=function(t,e){return function(n,o,r){var i=o.config,a=o.name,s=a+"."+n.type;r&&(s=r.event);var c=n.type.match(st)?function(t,e,n,o,r){return function(i,a){var s=o?o.name:t,c=a&&_t(a)?a:n;if(o&&(!(c=a&&_t(a)?a:[t]).includes(t)||1!==c.length))throw new Error("Method "+e+" can only abort "+t+" plugin. "+JSON.stringify(c)+" input valid");return P({},r,{abort:{reason:i,plugins:c,caller:e,_:s}})}}(a,s,e,r,n):function(t,e){return function(){throw new Error(t.type+" action not cancellable. Remove abort in "+e)}}(n,s);return{payload:yt(n),instance:t,config:i||{},abort:c}}}(o,m),_=e.exact.reduce((function(t,e){var n=e.pluginName,o=e.methodName,r=!1;return o.match(/^initialize/)||o.match(/^reset/)||(r=!l[n].loaded),u.offline&&o.match(/^(page|track|identify)/)&&(r=!0),t[""+n]=r,t}),{});return Promise.resolve(e.exact.reduce((function(t,r,a){try{var s=r.pluginName;return Promise.resolve(t).then((function(t){function r(){return Promise.resolve(t)}var a=function(){if(e.namespaced&&e.namespaced[s])return Promise.resolve(e.namespaced[s].reduce((function(t,e,n){try{return Promise.resolve(t).then((function(t){return e.method&&f(e.method)?(function(t,e){var n=gt(t);if(n&&n.name===e){var o=gt(n.method);throw new Error([e+" plugin is calling method "+t,"Plugins cant call self","Use "+n.method+" "+(o?"or "+o.method:"")+" in "+e+" plugin insteadof "+t].join("\n"))}}(e.methodName,e.pluginName),Promise.resolve(e.method({payload:t,instance:o,abort:(n=t,r=s,a=e.pluginName,function(t,e){return P({},n,{abort:{reason:t,plugins:e||[r],caller:p,from:a||r}})}),config:pt(e.pluginName,l,i),plugins:l})).then((function(e){var n=E(e)?e:{};return Promise.resolve(P({},t,n))}))):t;var n,r,a}))}catch(t){return Promise.reject(t)}}),Promise.resolve(n))).then((function(e){t[s]=e}));t[s]=n}();return a&&a.then?a.then(r):r()}))}catch(t){return Promise.reject(t)}}),Promise.resolve({}))).then((function(t){return Promise.resolve(e.exact.reduce((function(n,r,a){try{var c=e.exact.length===a+1,u=r.pluginName,f=i[u];return Promise.resolve(n).then((function(e){var n=t[u]?t[u]:{};if(d&&(n=e),mt(n,u))return ut({data:n,method:p,instance:o,pluginName:u,store:s}),Promise.resolve(e);if(mt(e,u))return c&&ut({data:e,method:p,instance:o,store:s}),Promise.resolve(e);if(_.hasOwnProperty(u)&&!0===_[u])return s.dispatch({type:"queue",plugin:u,payload:n,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(e);var r=h(t[u],i[u]);return Promise.resolve(f[p]({abort:r.abort,payload:n,instance:o,config:pt(u,l,i),plugins:l})).then((function(r){var i=E(r)?r:{},a=P({},e,i),c=t[u];if(mt(c,u))ut({data:c,method:p,instance:o,pluginName:u,store:s});else{var l=p+":"+u;(l.match(/:/g)||[]).length<2&&!p.match(ct)&&!p.match(lt)&&o.dispatch(P({},d?a:n,{type:l,_:{called:l,from:"submethod"}}))}return Promise.resolve(a)}))}))}catch(t){return Promise.reject(t)}}),Promise.resolve(n))).then((function(t){if(!(p.match(st)||p.match(/^registerPlugin/)||p.match(lt)||p.match(ct)||p.match(/^params/)||p.match(/^userIdChanged/))){if(c.plugins.includes(p),t._&&t._.originalAction===p)return t;var n=P({},t,{_:{originalAction:t.type,called:t.type,from:"engineEnd"}});ht(t,e.exact.length)&&!p.match(/End$/)&&(n=P({},n,{type:t.type+"Aborted"})),s.dispatch(n)}return t}))}))}catch(t){return Promise.reject(t)}},st=/Start$/,ct=/^bootstrap/,lt=/^ready/;function ut(t){var e=t.pluginName,n=t.method+"Aborted"+(e?":"+e:"");t.store.dispatch(P({},t.data,{type:n,_:{called:n,from:"abort"}}))}function pt(t,e,n){var o=e[t]||n[t];return o&&o.config?o.config:{}}function dt(t,e){return e.reduce((function(e,n){return n[t]?e.concat({methodName:t,pluginName:n.name,method:n[t]}):e}),[])}function ft(t,e){var n=t.replace(st,""),o=e?":"+e:"";return[""+t+o,""+n+o,n+"End"+o]}function mt(t,e){var n=t.abort;return!!n&&(!0===n||Et(n,e)||n&&Et(n.plugins,e))}function ht(t,e){var n=t.abort;if(!n)return!1;if(!0===n||m(n))return!0;var o=n.plugins;return _t(n)&&n.length===e||_t(o)&&o.length===e}function _t(t){return Array.isArray(t)}function Et(t,e){return!(!t||!_t(t))&&t.includes(e)}function gt(t){var e=t.match(/(.*):(.*)/);return!!e&&{method:e[1],name:e[2]}}function yt(t){return Object.keys(t).reduce((function(e,n){return"type"===n||(e[n]=E(t[n])?Object.assign({},t[n]):t[n]),e}),{})}function St(t,e,n){var o={};return function(r){return function(i){return function(a){try{var s,c=function(t){return s?t:i(p)},l=a.type,u=a.plugins,p=a;if(a.abort)return Promise.resolve(i(a));if(l===V.enablePlugin&&r.dispatch({type:V.initializeStart,plugins:u,disabled:[],fromEnable:!0,meta:a.meta}),l===V.disablePlugin&&setTimeout((function(){return nt(a.meta.rid,{payload:a})}),0),l===V.initializeEnd){var d=e(),m=Object.keys(d),_=m.filter((function(t){return u.includes(t)})).map((function(t){return d[t]})),E=[],g=[],y=a.disabled,S=_.map((function(t){var e=t.loaded,n=t.name,i=t.config;return ot(t,(function(){return e({config:i})}),1e4).then((function(e){return o[n]||(r.dispatch({type:V.pluginReadyType(n),name:n,events:Object.keys(t).filter((function(t){return!W.includes(t)}))}),o[n]=!0),E=E.concat(n),t})).catch((function(t){if(t instanceof Error)throw new Error(t);return g=g.concat(t.name),t}))}));Promise.all(S).then((function(t){var e={plugins:E,failed:g,disabled:y};setTimeout((function(){m.length===S.length+y.length&&r.dispatch(P({},{type:V.ready},e))}),0)}))}var T=function(){if(l!==V.bootstrap)return/^ready:([^:]*)$/.test(l)&&setTimeout((function(){return it(r,e,t)}),0),Promise.resolve(function(t,e,n,o,r){try{var i=f(e)?e():e,a=t.type,s=a.replace(st,"");if(t._&&t._.called)return Promise.resolve(t);var c=n.getState(),l=(d=i,void 0===(m=c.plugins)&&(m={}),void 0===(_=t.options)&&(_={}),Object.keys(d).filter((function(t){var e=_.plugins||{};return h(e[t])?e[t]:!1!==e.all&&(!m[t]||!1!==m[t].enabled)})).map((function(t){return d[t]})));a===V.initializeStart&&t.fromEnable&&(l=Object.keys(c.plugins).filter((function(e){var n=c.plugins[e];return t.plugins.includes(e)&&!n.initialized})).map((function(t){return i[t]})));var u=l.map((function(t){return t.name})),p=function(t,e){var n=ft(t).map((function(t){return dt(t,e)}));return e.reduce((function(n,o){var r=o.name,i=ft(t,r).map((function(t){return dt(t,e)})),a=i[0],s=i[1],c=i[2];return a.length&&(n.beforeNS[r]=a),s.length&&(n.duringNS[r]=s),c.length&&(n.afterNS[r]=c),n}),{before:n[0],beforeNS:{},during:n[1],duringNS:{},after:n[2],afterNS:{}})}(a,l);return Promise.resolve(at({action:t,data:{exact:p.before,namespaced:p.beforeNS},state:c,allPlugins:i,allMatches:p,instance:n,store:o,EVENTS:r})).then((function(t){function e(){var e=function(){if(a.match(st))return Promise.resolve(at({action:P({},l,{type:s+"End"}),data:{exact:p.after,namespaced:p.afterNS},state:c,allPlugins:i,allMatches:p,instance:n,store:o,EVENTS:r})).then((function(t){t.meta&&t.meta.hasCallback&&nt(t.meta.rid,{payload:t})}))}();return e&&e.then?e.then((function(){return t})):t}if(ht(t,u.length))return t;var l,d=function(){if(a!==s)return Promise.resolve(at({action:P({},t,{type:s}),data:{exact:p.during,namespaced:p.duringNS},state:c,allPlugins:i,allMatches:p,instance:n,store:o,EVENTS:r})).then((function(t){l=t}));l=t}();return d&&d.then?d.then(e):e()}))}catch(t){return Promise.reject(t)}var d,m,_}(a,e,t,r,n)).then((function(t){return s=1,i(t)}))}();return Promise.resolve(T&&T.then?T.then(c):c(T))}catch(t){return Promise.reject(t)}}}}}function Tt(t){return function(e){return function(e){return function(n){var o=n.type,r=n.key,i=n.value,a=n.options;if(o===V.setItem||o===V.removeItem){if(n.abort)return e(n);o===V.setItem?t.setItem(r,i,a):t.removeItem(r,a)}return e(n)}}}}var Ct=function(){var t=this;this.before=[],this.after=[],this.addMiddleware=function(e,n){t[n]=t[n].concat(e)},this.removeMiddleware=function(e,n){var o=t[n].findIndex((function(t){return t===e}));-1!==o&&(t[n]=[].concat(t[n].slice(0,o),t[n].slice(o+1)))},this.dynamicMiddlewares=function(e){return function(n){return function(o){return function(r){var i={getState:n.getState,dispatch:function(t){return n.dispatch(t)}},a=t[e].map((function(t){return t(i)}));return k.apply(void 0,a)(o)(r)}}}}};function bt(t){return function(e,n){void 0===e&&(e={});var o={};if("initialize:aborted"===n.type)return e;if(/^registerPlugin:([^:]*)$/.test(n.type)){var r=vt(n.type,"registerPlugin"),i=t()[r];if(!i||!r)return e;var a=n.enabled,s=i.config;return o[r]={enabled:a,initialized:!!a&&Boolean(!i.initialize),loaded:!!a&&Boolean(i.loaded({config:s})),config:s},P({},e,o)}if(/^initialize:([^:]*)$/.test(n.type)){var c=vt(n.type,V.initialize),l=t()[c];return l&&c?(o[c]=P({},e[c],{initialized:!0,loaded:Boolean(l.loaded({config:l.config}))}),P({},e,o)):e}if(/^ready:([^:]*)$/.test(n.type))return o[n.name]=P({},e[n.name],{loaded:!0}),P({},e,o);switch(n.type){case V.disablePlugin:return P({},e,It(n.plugins,!1,e));case V.enablePlugin:return P({},e,It(n.plugins,!0,e));default:return e}}}function vt(t,e){return t.substring(e.length+1,t.length)}function It(t,e,n){return t.reduce((function(t,o){return t[o]=P({},n[o],{enabled:e}),t}),n)}function At(t){try{return JSON.parse(JSON.stringify(t))}catch(t){}return t}var Ot={last:{},history:[]};function Rt(t,e){void 0===t&&(t=Ot);var n=e.options,o=e.meta;if(e.type===V.track){var r=At(P({event:e.event,properties:e.properties},Object.keys(n).length&&{options:n},{meta:o}));return P({},t,{last:r,history:t.history.concat(r)})}return t}var Pt={actions:[]};function Ut(t,e){void 0===t&&(t=Pt);var n=e.payload;switch(e.type){case"queue":var o;return o=n&&n.type&&n.type===V.identify?[e].concat(t.actions):t.actions.concat(e),P({},t,{actions:o});case"dequeue":return[];default:return t}}var wt=/#.*$/;function Lt(t){var e=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(t);return"/"+(e&&e[3]?e[3].split("?")[0].replace(wt,""):"")}var xt,Dt,Nt,Ft,kt=function(t){if(void 0===t&&(t={}),!s)return t;var e=document,n=e.title,o=e.referrer,r=window,i=r.location,a=r.innerWidth,c=r.innerHeight,l=i.hash,u=i.search,p=function(t){var e=function(){if(s)for(var t,e=document.getElementsByTagName("link"),n=0;t=e[n];n++)if("canonical"===t.getAttribute("rel"))return t.getAttribute("href")}();return e?e.match(/\?/)?e:e+t:window.location.href.replace(wt,"")}(u),d={title:n,url:p,path:Lt(p),hash:l,search:u,width:a,height:c};return o&&""!==o&&(d.referrer=o),P({},d,t)},Mt={last:{},history:[]};function jt(t,e){void 0===t&&(t=Mt);var n=e.options;if(e.type===V.page){var o=At(P({properties:e.properties,meta:e.meta},Object.keys(n).length&&{options:n}));return P({},t,{last:o,history:t.history.concat(o)})}return t}xt=function(){if(!s)return!1;var t=navigator.appVersion;return~t.indexOf("Win")?"Windows":~t.indexOf("Mac")?"MacOS":~t.indexOf("X11")?"UNIX":~t.indexOf("Linux")?"Linux":"Unknown OS"}(),Dt=s?document.referrer:null,Nt=function(){if(s){var t=navigator,e=t.languages;return t.userLanguage||(e&&e.length?e[0]:t.language)}}(),Ft=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}}();var Bt={initialized:!1,sessionId:b(),app:null,version:null,debug:!1,offline:!!s&&!navigator.onLine,os:{name:xt},userAgent:s?navigator.userAgent:"node",library:{name:"analytics",version:"0.12.16"},timezone:Ft,locale:Nt,campaign:{},referrer:Dt};function Gt(t,e){void 0===t&&(t=Bt);var n=t.initialized,o=e.campaign;switch(e.type){case V.campaign:return P({},t,{campaign:o});case V.offline:return P({},t,{offline:!0});case V.online:return P({},t,{offline:!1});default:return n?t:P({},Bt,t,{initialized:!0})}}var Ht=["plugins","reducers","storage"];function zt(t,e,n){if(s){var o=window[(n?"add":"remove")+"EventListener"];t.split(" ").forEach((function(t){o(t,e)}))}}function $t(t){var e=zt.bind(null,"online offline",(function(e){return Promise.resolve(!navigator.onLine).then(t)}));return e(!0),function(t){return e(!1)}}function Wt(){return O("analytics",[]),function(t){return function(e,n,o){var r=t(e,n,o),i=r.dispatch;return Object.assign(r,{dispatch:function(t){return I[v].analytics.push(t.action||t),i(t)}})}}}function Vt(t){return function(){return k(k.apply(null,arguments),Wt())}}function Yt(t){return t?"array"===p(t)?t:[t]:[]}function Qt(t,e,n){void 0===t&&(t={});var o,r,i=b();return e&&(et[i]=(o=e,r=function(t){for(var e,n=t||Array.prototype.slice.call(arguments),o=0;o<n.length;o++)if(f(n[o])){e=n[o];break}return e}(n),function(t){r&&r(t),o(t)})),P({}
1,t,{rid:i,ts:(new Date).getTime()},e?{hasCallback:!0}:{})}var Kt="before",qt="after",Jt=["codedesign.ai","dev.codedesign.ai","localhost"];function Xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}var Zt=["codedesign.ai","dev.codedesign.ai","localhost"];function te(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}const ne=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"mixpanel",config:t,initialize:function(t){var e=t.config,n=e.token,o=e.customScriptSrc,r=e.options,i=void 0===r?{}:r;if(!n)throw new Error("No mixpanel token defined");void 0===window.mixpanel&&(function(t,e){if(!e.__SV){var n,r,i=window;try{var a,s,c,l=i.location,u=l.hash;a=function(t,e){return(s=t.match(RegExp(e+"=([^&]*)")))?s[1]:null},u&&a(u,"state")&&"mpeditor"===(c=JSON.parse(decodeURIComponent(a(u,"state")))).action&&(i.sessionStorage.setItem("_mpcehash",u),history.replaceState(c.desiredHash||"",t.title,l.pathname+l.search))}catch(t){}window.mixpanel=e,e._i=[],e.init=function(t,o,i){function a(t,e){var n=e.split(".");2==n.length&&(t=t[n[0]],e=n[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}var s=e;for(void 0!==i?s=e[i]=[]:i="mixpanel",s.people=s.people||[],s.toString=function(t){var e="mixpanel";return"mixpanel"!==i&&(e+="."+i),t||(e+=" (stub)"),e},s.people.toString=function(){return s.toString(1)+".people (stub)"},n="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),r=0;r<n.length;r++)a(s,n[r]);var c="set set_once union unset remove delete".split(" ");s.get_group=function(){function t(t){e[t]=function(){call2_args=arguments,call2=[t].concat(Array.prototype.slice.call(call2_args,0)),s.push([n,call2])}}for(var e={},n=["get_group"].concat(Array.prototype.slice.call(arguments,0)),o=0;o<c.length;o++)t(c[o]);return e},e._i.push([t,o,i])},e.__SV=1.2,(i=t.createElement("script")).type="text/javascript",i.async=!0,i.src=o||("undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===t.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"),(a=t.getElementsByTagName("script")[0]).parentNode.insertBefore(i,a)}}(document,window.mixpanel||[]),mixpanel.init(e.token,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(n,!0).forEach((function(e){te(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({batch_requests:!0},i)))},identify:function(t){var e=t.payload,n=e.userId,o=e.traits;"string"==typeof n&&mixpanel.identify(n),o&&mixpanel.people.set(o)},page:function(e){var n=e.payload;mixpanel.track(t.pageEvent||n.properties.path,n.properties)},track:function(t){var e=t.payload;mixpanel.track(e.event,e.properties)},loaded:function(){return!!window.mixpanel},reset:function(){mixpanel.reset()},methods:{alias:function(t,e){mixpanel.alias(t,e)}}}};function oe(t){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function ie(t,e,n){return(e=function(t){var e=function(t){if("object"!=oe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==oe(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return se(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(t,e):void 0}}(t,e)||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 se(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ce(t,e,n){var o=document.location.hostname,r="";if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=t+"="+(e||"")+r+"; path=/; domain="+o}function le(){var t=new URL(window.location.href),e=Array.from(t.searchParams.entries()).map((function(t){var e=ae(t,2);return{key:e[0],value:e[1]}})),n=Array.from(t.searchParams.entries()).flatMap((function(t){var e=ae(t,2);return[e[0],e[1]]})),o={};return["user","project","templateId"].forEach((function(e){var n=t.searchParams.get(e);null!==n&&(o[e]=n)})),function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?re(Object(n),!0).forEach((function(e){ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({title:document.title,path:t.pathname,url:t.href,hostname:t.hostname,queryParams:e,rawQueryParams:n,appVersion:window.appVersionOrCommit},o)}function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var pe=["userId"];function de(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach((function(e){he(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function he(t,e,n){return(e=function(t){var e=function(t){if("object"!=ue(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _e(){_e=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function c(t,e,n,o){return Object.defineProperty(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o})}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(e,n,o,r){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return c(a,"_invoke",function(e,n,o){var r=1;return function(i,a){if(3===r)throw Error("Generator is already running");if(4===r){if("throw"===i)throw a;return{value:t,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===p)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(1===r)throw r=4,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=3;var l=u(e,n,o);if("normal"===l.type){if(r=o.done?4:2,l.arg===p)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=4,o.method="throw",o.arg=l.arg)}}}(e,o,new v(r||[])),!0),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p={};function d(){}function f(){}function m(){}var h={};c(h,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==n&&o.call(E,i)&&(h=E);var g=m.prototype=d.prototype=Object.create(h);function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}
1function S(t,e){function n(r,i,a,s){var c=u(t[r],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==ue(p)&&o.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var r;c(this,"_invoke",(function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}),!0)}function T(e,n){var o=n.method,r=e.i[o];if(r===t)return n.delegate=null,"throw"===o&&e.i.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),p;var i=u(r,e.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[e.r]=a.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function C(t){this.tryEntries.push(t)}function b(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function v(t){this.tryEntries=[[-1]],t.forEach(C,this),this.reset(!0)}function I(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(ue(e)+" is not iterable")}return f.prototype=m,c(g,"constructor",m),c(m,"constructor",f),f.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},y(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new S(l(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var o in e)n.unshift(o);return function t(){for(;n.length;)if((o=n.pop())in e)return t.value=o,t.done=!1,t;return t.done=!0,t}},e.values=I,v.prototype={constructor:v,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(b),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(t){a.type="throw",a.arg=e,n.next=t}for(var r=n.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i[4],s=this.prev,c=i[1],l=i[2];if(-1===i[0])return o("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<c)return this.method="next",this.arg=t,o(c),!0;if(s<l)return o(l),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o[0]>-1&&o[0]<=this.prev&&this.prev<o[2]){var r=o;break}}r&&("break"===t||"continue"===t)&&r[0]<=e&&e<=r[2]&&(r=null);var i=r?r[4]:{};return i.type=t,i.arg=e,r?(this.method="next",this.next=r[2],p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),b(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var o=n[4];if("throw"===o.type){var r=o.arg;b(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={i:I(e),r:n,n:o},"next"===this.method&&(this.arg=t),p}},e}function Ee(t,e,n,o,r,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,r)}function ge(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function a(t){Ee(i,o,r,a,s,"next",t)}function s(t){Ee(i,o,r,a,s,"throw",t)}a(void 0)}))}}var ye,Se,Te,Ce,be=["codedesign.ai","dev.codedesign.ai","localhost"];function ve(){return Ie.apply(this,arguments)}function Ie(){return(Ie=ge(_e().mark((function t(){var e;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=function(){for(var t=document.cookie.split(";"),e=0;e<t.length;e++){for(var n=t[e];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf("userId="))return n.substring(7,n.length)}return null}()||localStorage.getItem("uRI"),t.abrupt("return",{userId:e});case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}const Ae={name:"session-management-plugin",sessionInitialized:!1,sessionInfo:null,isAllowedHostname:function(){var t=window.location.hostname;return be.includes(t)},initialize:(Ce=ge(_e().mark((function t(){var e,n;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isAllowedHostname()){t.next=2;break}return t.abrupt("return",!1);case 2:if(this.sessionInitialized){t.next=9;break}return t.next=5,ve();case 5:e=t.sent,n=e.userId,this.sessionInfo={userId:n},this.sessionInitialized=!0;case 9:return t.abrupt("return",!0);case 10:case"end":return t.stop()}}),t,this)}))),function(){return Ce.apply(this,arguments)}),track:(Te=ge(_e().mark((function t(e){var n,o;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.payload,e.instance,t.next=3,this.initialize();case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:o=le(),n.properties=me(me({},n.properties||{}),o);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return Te.apply(this,arguments)}),page:(Se=ge(_e().mark((function t(e){var n,o;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.payload,e.instance,t.next=3,this.initialize();case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:o=le(),n.properties=me(me({},n.properties||{}),o);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return Se.apply(this,arguments)}),identify:(ye=ge(_e().mark((function t(e){var n,o,r,i;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.payload,e.instance,t.next=3,this.initialize();case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:o=n.userId,r=de(n,pe),i=le(),n.properties=me(me({},r),i),o&&(ce("userId",o,100),this.sessionInfo.userId=o);case 10:case"end":return t.stop()}}),t,this)}))),function(t){return ye.apply(this,arguments)})};function Oe(t){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Re(Object(n),!0).forEach((function(e){Ue(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ue(t,e,n){return(e=function(t){var e=function(t){if("object"!=Oe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Oe(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function we(t,e,n){try{var o=n.$distinct_id||(r="__ph_anon_id",(i=localStorage.getItem(r))||(i=Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2),localStorage.setItem(r,i)),i);fetch("".concat(t,"/capture/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:e,distinct_id:o,event:n.event,properties:Pe(Pe({},n.properties),{},{$lib:"codedesign-session-tracker"}),timestamp:(new Date).toISOString()})}).catch((function(){}))}catch(t){}var r,i}const Le=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.apiKey,n=t.apiHost,o=void 0===n?"https://us.i.posthog.com":n;return{name:"posthog-plugin",initialize:function(){e||console.warn("PostHogPlugin: No API key provided")},page:function(t){var n=t.payload;we(o,e,{event:"$pageview",properties:Pe(Pe({},n.properties),{},{$current_url:window.location.href,$referrer:document.referrer,$title:document.title})})},track:function(t){var n=t.payload;we(o,e,{event:n.event,properties:n.properties||{}})},identify:function(t){var n=t.payload;we(o,e,{event:"$identify",properties:{$set:n.traits||{}},$distinct_id:n.userId})}}};var xe="https://analytics-proxy-api.codedesign.ai";try{var De=function(t){void 0===t&&(t={});var n,o=t.reducers||{},r=t.initialUser||{},i=(t.plugins||[]).reduce((function(t,e){if(f(e))return t.middlewares=t.middlewares.concat(e),t;if(e.NAMESPACE&&(e.name=e.NAMESPACE),!e.name)throw new Error("https://lytics.dev/errors/1");e.config||(e.config={});var n=e.EVENTS?Object.keys(e.EVENTS).map((function(t){return e.EVENTS[t]})):[];t.pluginEnabled[e.name]=!(!1===e.enabled||!1===e.config.enabled),delete e.enabled,e.methods&&(t.methods[e.name]=Object.keys(e.methods).reduce((function(t,n){var o;return t[n]=(o=e.methods[n],function(){for(var t=Array.prototype.slice.call(arguments),e=new Array(o.length),n=0;n<t.length;n++)e[n]=t[n];return e[e.length]=Y,o.apply({instance:Y},e)}),t}),{}),delete e.methods);var o=Object.keys(e).concat(n),r=new Set(t.events.concat(o));if(t.events=Array.from(r),t.pluginsArray=t.pluginsArray.concat(e),t.plugins[e.name])throw new Error(e.name+"AlreadyLoaded");return t.plugins[e.name]=e,t.plugins[e.name].loaded||(t.plugins[e.name].loaded=function(){return!0}),t}),{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),a=t.storage?t.storage:{getItem:A,setItem:O,removeItem:R},c=(n=a,function(t,e,o){return e.getState("user")[t]||(o&&E(o)&&o[t]?o[t]:X(n)[t]||A(Z(t))||null)}),l=i.plugins,u=i.events.filter((function(t){return!W.includes(t)})).sort(),p=new Set(u.concat($).filter((function(t){return!W.includes(t)}))),d=Array.from(p).sort(),h=function(){return l},_=new Ct,g=_.addMiddleware,y=_.removeMiddleware,S=_.dynamicMiddlewares,v=function(){throw new Error("Abort disabled inListener")},I=function(t){for(var e,n=Object.create(null),o=/([^&=]+)=?([^&]*)/g;e=o.exec(t);){var r=T(e[1]),i=T(e[2]);if(r)if("[]"===r.substring(r.length-2)){var a=n[r=r.substring(0,r.length-2)]||(n[r]=[]);n[r]=Array.isArray(a)?a:[],n[r].push(i)}else n[r]=""===i||i}for(var s in n){var c=s.split("[");c.length>1&&(C(n,c.map((function(t){return t.replace(/[?[\]\\ ]/g,"")})),n[s]),delete n[s])}return n}(function(t){if(t){var e=t.match(/\?(.*)/);return e&&e[1]?e[1].split("#")[0]:""}return s&&window.location.search.substring(1)}(void 0)),x=X(a),D=P({},x,r,I.an_uid?{userId:I.an_uid}:{},I.an_aid?{anonymousId:I.an_aid}:{});D.anonymousId||(D.anonymousId=b());var B=P({enable:function(t,e){return new Promise((function(n){ct.dispatch({type:V.enablePlugin,plugins:Yt(t),_:{originalAction:V.enablePlugin}},n,[e])}))},disable:function(t,e){return new Promise((function(n){ct.dispatch({type:V.disablePlugin,plugins:Yt(t),_:{originalAction:V.disablePlugin}},n,[e])}))}},i.methods),G=!1,Y={identify:function(t,e,n,o){try{var r=m(t)?t:null,i=E(t)?t:e,a=n||{},s=Y.user();O(Z(H),r);var l=r||i.userId||c(H,Y,i);return Promise.resolve(new Promise((function(t){ct.dispatch(P({type:V.identifyStart,userId:l,traits:i||{},options:a,anonymousId:s.anonymousId},s.id&&s.id!==r&&{previousId:s.id}),t,[e,n,o])})))}catch(t){return Promise.reject(t)}},track:function(t,e,n,o){try{var r=E(t)?t.event:t;if(!r||!m(r))throw new Error("EventMissing");var i=E(t)?t:e||{},a=E(n)?n:{};return Promise.resolve(new Promise((function(t){ct.dispatch({type:V.trackStart,event:r,properties:i,options:a,userId:c(H,Y,e),anonymousId:c(z,Y,e)},t,[e,n,o])})))}catch(t){return Promise.reject(t)}},page:function(t,e,n){try{var o=E(t)?t:{},r=E(e)?e:{};return Promise.resolve(new Promise((function(i){ct.dispatch({type:V.pageStart,properties:kt(o),options:r,userId:c(H,Y,o),anonymousId:c(z,Y,o)},i,[t,e,n])})))}catch(t){return Promise.reject(t)}},user:function(t){if(t===H||"id"===t)return c(H,Y);if(t===z||"anonId"===t)return c(z,Y);var n=Y.getState("user");return t?e()(n,t):n},reset:function(t){return new Promise((function(e){ct.dispatch({type:V.resetStart},e,t)}))},ready:function(t){return G&&t({plugins:B,instance:Y}),Y.on(V.ready,(function(e){t(e),G=!0}))},on:function(t,e){if(!t||!f(e))return!1;if(t===V.bootstrap)throw new Error(".on disabled for "+t);var n=/Start$|Start:/;if("*"===t){var o=function(t){return function(t){return function(o){return o.type.match(n)&&e({payload:o,instance:Y,plugins:l}),t(o)}}},r=function(t){return function(t){return function(o){return o.type.match(n)||e({payload:o,instance:Y,plugins:l}),t(o)}}};return g(o,Kt),g(r,qt),function(){y(o,Kt),y(r,qt)}}var i=t.match(n)?Kt:qt,a=function(n){return function(n){return function(o){return o.type===t&&e({payload:o,instance:Y,plugins:l,abort:v}),n(o)}}};return g(a,i),function(){return y(a,i)}},once:function(t,e){if(!t||!f(e))return!1;if(t===V.bootstrap)throw new Error(".once disabled for "+t);var n=Y.on(t,(function(t){e({payload:t.payload,instance:Y,plugins:l,abort:v}),n()}));return n},getState:function(t){var n=ct.getState();return t?e()(n,t):Object.assign({},n)},dispatch:function(t){var e=m(t)?{type:t}:t;if($.includes(e.type))throw new Error("reserved action "+e.type);var n=P({},e,{_:P({originalAction:e.type},t._||{})});ct.dispatch(n)},enablePlugin:B.enable,disablePlugin:B.disable,plugins:B,storage:{getItem:a.getItem,setItem:function(t,e,n){ct.dispatch({type:V.setItemStart,key:t,value:e,options:n})},removeItem:function(t,e){ct.dispatch({type:V.removeItemStart,key:t,options:e})}},setAnonymousId:function(t,e){Y.storage.setItem(j,t,e)},events:{core:$,plugins:u}},Q=i.middlewares.concat([function(t){return function(t){return function(e){return e.meta||(e.meta=Qt()),t(e)}}}
1,S(Kt),St(Y,h,{all:d,plugins:u}),Tt(a),q(Y),tt(Y),S(qt)]),K={context:Gt,user:J(a),page:jt,track:Rt,plugins:bt(h),queue:Ut},et=k,nt=k;if(s&&t.debug){var ot=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;ot&&(et=ot({trace:!0,traceLimit:25})),nt=function(){return 0===arguments.length?Wt():E(typeof arguments[0])?Vt():Vt().apply(null,arguments)}}var rt,at=function(t){return Object.keys(t).reduce((function(e,n){return Ht.includes(n)||(e[n]=t[n]),e}),{})}(t),st={context:at,user:D,plugins:i.pluginsArray.reduce((function(t,e){var n=e.name,o=e.config,r=e.loaded,a=i.pluginEnabled[n];return t[n]={enabled:a,initialized:!!a&&Boolean(!e.initialize),loaded:Boolean(r({config:o})),config:o},t}),{})},ct=N(function(t){for(var e=Object.keys(t),n={},o=0;o<e.length;o++){var r=e[o];typeof t[r]===U&&(n[r]=t[r])}var i,a=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(typeof n(void 0,{type:"@@redux/INIT"})===w||typeof n(void 0,{type:L})===w)throw new Error("reducer "+e+" "+w)}))}(n)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var o=!1,r={},s=0;s<a.length;s++){var c=a[s],l=t[c],u=(0,n[c])(l,e);if(typeof u===w){var p=F(c,e);throw new Error(p)}r[c]=u,o=o||u!==l}return o?r:t}}(P({},K,o)),st,nt(et(M.apply(void 0,Q))));ct.dispatch=(rt=ct.dispatch,function(t,e,n){var o=P({},t,{meta:Qt(t.meta,e,Yt(n))});return rt.apply(null,[o])});var lt=Object.keys(l);ct.dispatch({type:V.bootstrap,plugins:lt,config:at,params:I,user:D,initialUser:r,persistedUser:x});var ut=lt.filter((function(t){return i.pluginEnabled[t]})),pt=lt.filter((function(t){return!i.pluginEnabled[t]}));return ct.dispatch({type:V.registerPlugins,plugins:lt,enabled:i.pluginEnabled}),i.pluginsArray.map((function(t,e){var n=t.bootstrap,o=t.config,r=t.name;n&&f(n)&&n({instance:Y,config:o,payload:t}),ct.dispatch({type:V.registerPluginType(r),name:r,enabled:i.pluginEnabled[r],plugin:t}),i.pluginsArray.length===e+1&&ct.dispatch({type:V.initializeStart,plugins:ut,disabled:pt})})),$t((function(t){ct.dispatch({type:t?V.offline:V.online})})),function(t,e,n){setInterval((function(){return it(t,e,n)}),3e3)}(ct,h,Y),Y}({app:"codedesign-session-tracker",version:100,plugins:[Ae,ne({token:"6574dd99dcc54d36ba5ed86588b0c865",options:{api_host:"".concat(xe,"/mp")}}),Le({apiKey:"phc_kt71bjk4VTkQ3aBg7QTw66MzzFyjTFXFY0lRPpB7JVC",apiHost:"".concat(xe,"/ph")}),{name:"page-tracker-plugin",initialize:function(t){var e=t.instance,n=function(){var t=new URL(window.location.href);Array.from(t.searchParams.entries()).map((function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{for(i=(n=n.call(t)).next;!(c=(o=i.call(n)).done)&&(s.push(o.value),2!==s.length);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e)||function(t,e){if(t){if("string"==typeof t)return Xt(t,2);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(t,2):void 0}}(e)||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.")}();return{key:n[0],value:n[1]}})),e.page()};"undefined"!=typeof window&&Zt.includes(window.location.hostname)&&(n(),window.addEventListener("popstate",n),window.addEventListener("pushState",n),window.addEventListener("replaceState",n),["pushState","replaceState"].forEach((function(t){var e=history[t];history[t]=function(){e.apply(this,arguments);var n=new Event(t);window.dispatchEvent(n)}})))}},{name:"click-tracker-plugin",initialize:function(t){var e=t.instance;document.addEventListener("click",(function(t){var n=t.target,o=n.getAttribute("data-track-click");if(o){var r=n.getAttribute("data-track-click-props"),i={elementId:n.id,elementType:n.tagName,elementClass:n.className,textContent:n.textContent.trim().substring(0,50),type:"click",clickEvent:o};r&&(i.trackClickProps=r),"undefined"!=typeof window&&Jt.includes(window.location.hostname)&&e.track(o,i)}}),!1)}}]});"undefined"!=typeof window&&(window.analytics=De)}catch(t){console.error("Error initializing analytics:",t)}const Ne=De})(),o})(),t.exports=o()},8908:function(t,e,n){var o;o="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{}
1,t.exports=o},8679:function(t,e,n){"use strict";var o=n(1296),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(t){return o.isMemo(t)?a:s[t.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;t.exports=function t(e,n,o){if("string"!==typeof n){if(m){var r=f(n);r&&r!==m&&t(e,r,o)}var a=u(n);p&&(a=a.concat(p(n)));for(var s=c(e),h=c(n),_=0;_<a.length;++_){var E=a[_];if(!i[E]&&(!o||!o[E])&&(!h||!h[E])&&(!s||!s[E])){var g=d(n,E);try{l(e,E,g)}catch(y){}}}}return e}},6103:function(t,e){"use strict";var n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,_=n?Symbol.for("react.lazy"):60116,E=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function T(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case u:case p:case i:case s:case a:case f:return t;default:switch(t=t&&t.$$typeof){case l:case d:case _:case h:case c:return t;default:return e}}case r:return e}}}function C(t){return T(t)===p}e.AsyncMode=u,e.ConcurrentMode=p,e.ContextConsumer=l,e.ContextProvider=c,e.Element=o,e.ForwardRef=d,e.Fragment=i,e.Lazy=_,e.Memo=h,e.Portal=r,e.Profiler=s,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(t){return C(t)||T(t)===u},e.isConcurrentMode=C,e.isContextConsumer=function(t){return T(t)===l},e.isContextProvider=function(t){return T(t)===c},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return T(t)===d},e.isFragment=function(t){return T(t)===i},e.isLazy=function(t){return T(t)===_},e.isMemo=function(t){return T(t)===h},e.isPortal=function(t){return T(t)===r},e.isProfiler=function(t){return T(t)===s},e.isStrictMode=function(t){return T(t)===a},e.isSuspense=function(t){return T(t)===f},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===i||t===p||t===s||t===a||t===f||t===m||"object"===typeof t&&null!==t&&(t.$$typeof===_||t.$$typeof===h||t.$$typeof===c||t.$$typeof===l||t.$$typeof===d||t.$$typeof===g||t.$$typeof===y||t.$$typeof===S||t.$$typeof===E)},e.typeOf=T},1296:function(t,e,n){"use strict";t.exports=n(6103)},9804:function(t){t.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},6982:function(t,e,n){var o=n(3412),r="html",i="head",a="body",s=/<([a-zA-Z]+[0-9]?)/,c=/<head.*>/i,l=/<body.*>/i,u=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,p=o.isIE(9),d=p||o.isIE(),f=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},m=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"===typeof window.DOMParser){var h=new window.DOMParser,_=p?"text/xml":"text/html";
1f=m=function(t,e){return e&&(t="<"+e+">"+t+"</"+e+">"),p&&(t=t.replace(u,"<$1$2$3/>")),h.parseFromString(t,_)}}if(document.implementation){var E=document.implementation.createHTMLDocument(d?"html-dom-parser":void 0);f=function(t,e){if(e)return E.documentElement.getElementsByTagName(e)[0].innerHTML=t,E;try{return E.documentElement.innerHTML=t,E}catch(n){if(m)return m(t)}}}var g,y=document.createElement("template");y.content&&(g=function(t){return y.innerHTML=t,y.content.childNodes}),t.exports=function(t){var e,n,o,u,p=t.match(s);switch(p&&p[1]&&(e=p[1].toLowerCase()),e){case r:return n=m(t),c.test(t)||(o=n.getElementsByTagName(i)[0])&&o.parentNode.removeChild(o),l.test(t)||(o=n.getElementsByTagName(a)[0])&&o.parentNode.removeChild(o),n.getElementsByTagName(r);case i:case a:return u=f(t).getElementsByTagName(e),l.test(t)&&c.test(t)?u[0].parentNode.childNodes:u;default:return g?g(t):f(t,a).getElementsByTagName(a)[0].childNodes}}},5057:function(t,e,n){var o=n(6982),r=n(3412),i=r.formatDOM,a=r.isIE(9),s=/<(![a-zA-Z\s]+)>/;t.exports=function(t){if("string"!==typeof t)throw new TypeError("First argument must be a string");if(!t)return[];var e,n=t.match(s);return n&&n[1]&&(e=n[1],a&&(t=t.replace(n[0],""))),i(o(t),null,e)}},3412:function(t,e,n){for(var o,r=n(9804).CASE_SENSITIVE_TAG_NAMES,i={},a=0,s=r.length;a<s;a++)o=r[a],i[o.toLowerCase()]=o;function c(t){for(var e,n={},o=0,r=t.length;o<r;o++)n[(e=t[o]).name]=e.value;return n}function l(t){var e=function(t){return i[t]}(t=t.toLowerCase());return e||t}t.exports={formatAttributes:c,formatDOM:function t(e,n,o){n=n||null;for(var r,i,a,s=[],u=0,p=e.length;u<p;u++){switch(r=e[u],a={next:null,prev:s[u-1]||null,parent:n},(i=s[u-1])&&(i.next=a),"#"!==r.nodeName[0]&&(a.name=l(r.nodeName),a.attribs={},r.attributes&&r.attributes.length&&(a.attribs=c(r.attributes))),r.nodeType){case 1:"script"===a.name||"style"===a.name?a.type=a.name:a.type="tag",a.children=t(r.childNodes,a);break;case 3:a.type="text",a.data=r.nodeValue;break;case 8:a.type="comment",a.data=r.nodeValue}s.push(a)}return o&&(s.unshift({name:o.substring(0,o.indexOf(" ")).toLowerCase(),data:o,type:"directive",next:s[0]?s[0]:null,prev:null,parent:n}),s[1]&&(s[1].prev=s[0])),s},isIE:function(t){return t?document.documentMode===t:/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},488:function(t,e,n){var o=n(3670),r=n(484),i=n(5057),a={decodeEntities:!0,lowerCaseAttributeNames:!1};function s(t,e){if("string"!==typeof t)throw new TypeError("First argument must be a string");return""===t?[]:o(i(t,(e=e||{}).htmlparser2||a),e)}s.domToReact=o,s.htmlToDOM=i,s.attributesToProps=r,t.exports=s,t.exports.default=s},484:function(t,e,n){var o=n(2686),r=n(4606),i=r.setStyleProp,a=o.html,s=o.svg,c=o.isCustomAttribute,l=Object.prototype.hasOwnProperty;t.exports=function(t){var e,n,o,u;t=t||{};var p={};for(e in t)o=t[e],c(e)?p[e]=o:(n=e.toLowerCase(),l.call(a,n)?p[(u=a[n]).propertyName]=!!(u.hasBooleanValue||u.hasOverloadedBooleanValue&&!o)||o:l.call(s,e)?p[(u=s[e]).propertyName]=o:r.PRESERVE_CUSTOM_ATTRIBUTES&&(p[e]=o));return i(t.style,p),p}},3670:function(t,e,n){var o=n(7423),r=n(484),i=n(4606),a=i.setStyleProp;function s(t){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===t.type&&i.isCustomComponent(t.name,t.attribs)}t.exports=function t(e,n){for(var i,c,l,u,p=(n=n||{}).library||o,d=p.cloneElement,f=p.createElement,m=p.isValidElement,h=[],_="function"===typeof n.replace,E=n.trim,g=0,y=e.length;g<y;g++)if(i=e[g],_&&m(c=n.replace(i)))y>1&&(c=d(c,{key:c.key||g})),h.push(c);else if("text"!==i.type){switch(l=i.attribs,s(i)?a(l.style,l):l&&(l=r(l)),u=null,i.type){case"script":case"style":i.children[0]&&(l.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?l.defaultValue=i.children[0].data:i.children&&i.children.length&&(u=t(i.children,n));break;default:continue}y>1&&(l.key=g),h.push(f(i.name,l,u))}else E?i.data.trim()&&h.push(i.data):h.push(i.data);return 1===h.length?h[0]:h}},4606:function(t,e,n){var o=n(7423),r=n(1476).default;var i={reactCompat:!0};var a=o.version.split(".")[0]>=16;t.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(t,e){if(!t||"object"!==typeof t)throw new TypeError("First argument must be an object");var n,o,r="function"===typeof e,i={},a={};for(n in t)o=t[n],r&&(i=e(n,o))&&2===i.length?a[i[0]]=i[1]:"string"===typeof o&&(a[o]=n);return a},isCustomComponent:function(t,e){if(-1===t.indexOf("-"))return e&&"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(t,e){null!==t&&void 0!==t&&(e.style=r(t,i))}}},645:function(t,e){e.read=function(t,e,n,o,r){var i,a,s=8*r-o-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?r-1:0,d=n?-1:1,f=t[e+p];for(p+=d,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+t[e+p],p+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+t[e+p],p+=d,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),i-=l}return(f?-1:1)*a*Math.pow(2,i-o)},e.write=function(t,e,n,o,r,i){var a,s,c,l=8*i-r-1,u=(1<<l)-1,p=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:i-1,m=o?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=u?(s=0,a=u):a+p>=1?(s=(e*c-1)*Math.pow(2,r),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&s,f+=m,s/=256,r-=8);for(a=a<<r|s,l+=r;l>0;t[n+f]=255&a,f+=m,a/=256,l-=8);t[n+f-m]|=128*h}},8139:function(t){var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
1\s]*/,c=/^\s+|\s+$/g,l="";function u(t){return t?t.replace(c,l):l}t.exports=function(t,c){if("string"!==typeof t)throw new TypeError("First argument must be a string");if(!t)return[];c=c||{};var p=1,d=1;function f(t){var e=t.match(n);e&&(p+=e.length);var o=t.lastIndexOf("\n");d=~o?t.length-o:d+t.length}function m(){var t={line:p,column:d};return function(e){return e.position=new h(t),y(),e}}function h(t){this.start=t,this.end={line:p,column:d},this.source=c.source}h.prototype.content=t;var _=[];function E(e){var n=new Error(c.source+":"+p+":"+d+": "+e);if(n.reason=e,n.filename=c.source,n.line=p,n.column=d,n.source=t,!c.silent)throw n;_.push(n)}function g(e){var n=e.exec(t);if(n){var o=n[0];return f(o),t=t.slice(o.length),n}}function y(){g(o)}function S(t){var e;for(t=t||[];e=T();)!1!==e&&t.push(e);return t}function T(){var e=m();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;l!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,l===t.charAt(n-1))return E("End of comment missing");var o=t.slice(2,n-2);return d+=2,f(o),t=t.slice(n),d+=2,e({type:"comment",comment:o})}}function C(){var t=m(),n=g(r);if(n){if(T(),!g(i))return E("property missing ':'");var o=g(a),c=t({type:"declaration",property:u(n[0].replace(e,l)),value:o?u(o[0].replace(e,l)):l});return g(s),c}}return y(),function(){var t,e=[];for(S(e);t=C();)!1!==t&&(e.push(t),S(e));return e}()}},1143:function(t){"use strict";t.exports=function(t,e,n,o,r,i,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;(c=new Error(e.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},4301:function(t,e,n){n(6477),t.exports=self.fetch.bind(self)},973:function(t,e,n){var o=n(1169),r=function(t){var e="",n=Object.keys(t);return n.forEach((function(r,i){var a=t[r];(function(t){return/[height|width]$/.test(t)})(r=o(r))&&"number"===typeof a&&(a+="px"),e+=!0===a?r:!1===a?"not "+r:"("+r+": "+a+")",i<n.length-1&&(e+=" and ")})),e};t.exports=function(t){var e="";return"string"===typeof t?t:t instanceof Array?(t.forEach((function(n,o){e+=r(n),o<t.length-1&&(e+=", ")})),e):r(t)}},3465:function(t,e,n){t=n.nmd(t);var o="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",c="[object Function]",l="[object GeneratorFunction]",u="[object Map]",p="[object Number]",d="[object Object]",f="[object Promise]",m="[object RegExp]",h="[object Set]",_="[object String]",E="[object Symbol]",g="[object WeakMap]",y="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",C="[object Float64Array]",b="[object Int8Array]",v="[object Int16Array]",I="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",R="[object Uint16Array]",P="[object Uint32Array]",U=/\w*$/,w=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,x={};x[i]=x["[object Array]"]=x[y]=x[S]=x[a]=x[s]=x[T]=x[C]=x[b]=x[v]=x[I]=x[u]=x[p]=x[d]=x[m]=x[h]=x[_]=x[E]=x[A]=x[O]=x[R]=x[P]=!0,x["[object Error]"]=x[c]=x[g]=!1;var D="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,N="object"==typeof self&&self&&self.Object===Object&&self,F=D||N||Function("return this")(),k=e&&!e.nodeType&&e,M=k&&t&&!t.nodeType&&t,j=M&&M.exports===k;function B(t,e){return t.set(e[0],e[1]),t}function G(t,e){return t.add(e),t}function H(t,e,n,o){var r=-1,i=t?t.length:0;for(o&&i&&(n=t[++r]);++r<i;)n=e(n,t[r],r,t);return n}function z(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function $(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n}function W(t,e){return function(n){return t(e(n))}}function V(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Y=Array.prototype,Q=Function.prototype,K=Object.prototype,q=F["__core-js_shared__"],J=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),X=Q.toString,Z=K.hasOwnProperty,tt=K.toString,et=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=j?F.Buffer:void 0,ot=F.Symbol,rt=F.Uint8Array,it=W(Object.getPrototypeOf,Object),at=Object.create,st=K.propertyIsEnumerable,ct=Y.splice,lt=Object.getOwnPropertySymbols,ut=nt?nt.isBuffer:void 0,pt=W(Object.keys,Object),dt=kt(F,"DataView"),ft=kt(F,"Map"),mt=kt(F,"Promise"),ht=kt(F,"Set"),_t=kt(F,"WeakMap"),Et=kt(Object,"create"),gt=Ht(dt),yt=Ht(ft),St=Ht(mt),Tt=Ht(ht),Ct=Ht
vendor: 4,155 bytes, line 1
1(_t),bt=ot?ot.prototype:void 0,vt=bt?bt.valueOf:void 0;function It(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function At(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function Ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function Rt(t){this.__data__=new At(t)}function Pt(t,e){var n=$t(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Wt(t)}(t)&&Z.call(t,"callee")&&(!st.call(t,"callee")||tt.call(t)==i)}(t)?function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}(t.length,String):[],o=n.length,r=!!o;for(var a in t)!e&&!Z.call(t,a)||r&&("length"==a||Bt(a,o))||n.push(a);return n}function Ut(t,e,n){var o=t[e];Z.call(t,e)&&zt(o,n)&&(void 0!==n||e in t)||(t[e]=n)}function wt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function Lt(t,e,n,o,r,f,g){var w;if(o&&(w=f?o(t,r,f,g):o(t)),void 0!==w)return w;if(!Qt(t))return t;var L=$t(t);if(L){if(w=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&Z.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,o=t.length;e||(e=Array(o));for(;++n<o;)e[n]=t[n];return e}(t,w)}else{var D=jt(t),N=D==c||D==l;if(Vt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(D==d||D==i||N&&!f){if(z(t))return f?t:{};if(w=function(t){return"function"!=typeof t.constructor||Gt(t)?{}:(e=it(t),Qt(e)?at(e):{});var e}(N?{}:t),!e)return function(t,e){return Nt(t,Mt(t),e)}(t,function(t,e){return t&&Nt(e,Kt(e),t)}(w,t))}else{if(!x[D])return f?t:{};w=function(t,e,n,o){var r=t.constructor;switch(e){case y:return Dt(t);case a:case s:return new r(+t);case S:return function(t,e){var n=e?Dt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,o);case T:case C:case b:case v:case I:case A:case O:case R:case P:return function(t,e){var n=e?Dt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,o);case u:return function(t,e,n){return H(e?n($(t),!0):$(t),B,new t.constructor)}(t,o,n);case p:case _:return new r(t);case m:return function(t){var e=new t.constructor(t.source,U.exec(t));return e.lastIndex=t.lastIndex,e}(t);case h:return function(t,e,n){return H(e?n(V(t),!0):V(t),G,new t.constructor)}(t,o,n);case E:return i=t,vt?Object(vt.call(i)):{}}var i}(t,D,Lt,e)}}g||(g=new Rt);var F=g.get(t);if(F)return F;if(g.set(t,w),!L)var k=n?function(t){return function(t,e,n){var o=e(t);return $t(t)?o:function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t}(o,n(t))}(t,Kt,Mt)}(t):Kt(t);return function(t,e){for(var n=-1,o=t?t.length:0;++n<o&&!1!==e(t[n],n,t););}(k||t,(function(r,i){k&&(r=t[i=r]),Ut(w,i,Lt(r,e,n,o,i,t,g))})),w}function xt(t){return!(!Qt(t)||(e=t,J&&J in e))&&(Yt(t)||z(t)?et:w).test(Ht(t));var e}function Dt(t){var e=new t.constructor(t.byteLength);return new rt(e).set(new rt(t)),e}function Nt(t,e,n,o){n||(n={});for(var r=-1,i=e.length;++r<i;){var a=e[r],s=o?o(n[a],t[a],a,n,t):void 0;Ut(n,a,void 0===s?t[a]:s)}return n}function Ft(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function kt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return xt(n)?n:void 0}It.prototype.clear=function(){this.__data__=Et?Et(null):{}},It.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},It.prototype.get=function(t){var e=this.__data__;if(Et){var n=e[t];return n===o?void 0:n}return Z.call(e,t)?e[t]:void 0},It.prototype.has=function(t){var e=this.__data__;return Et?void 0!==e[t]:Z.call(e,t)},It.prototype.set=function(t,e){return this.__data__[t]=Et&&void 0===e?o:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():ct.call(e,n,1),!0)},At.prototype.get=function(t){var e=this.__data__,n=wt(e,t);return n<0?void 0:e[n][1]},At.prototype.has=function(t){return wt(this.__data__,t)>-1}
vendor: 8,199 bytes, line 1
1,At.prototype.set=function(t,e){var n=this.__data__,o=wt(n,t);return o<0?n.push([t,e]):n[o][1]=e,this},Ot.prototype.clear=function(){this.__data__={hash:new It,map:new(ft||At),string:new It}},Ot.prototype.delete=function(t){return Ft(this,t).delete(t)},Ot.prototype.get=function(t){return Ft(this,t).get(t)},Ot.prototype.has=function(t){return Ft(this,t).has(t)},Ot.prototype.set=function(t,e){return Ft(this,t).set(t,e),this},Rt.prototype.clear=function(){this.__data__=new At},Rt.prototype.delete=function(t){return this.__data__.delete(t)},Rt.prototype.get=function(t){return this.__data__.get(t)},Rt.prototype.has=function(t){return this.__data__.has(t)},Rt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof At){var o=n.__data__;if(!ft||o.length<199)return o.push([t,e]),this;n=this.__data__=new Ot(o)}return n.set(t,e),this};var Mt=lt?W(lt,Object):function(){return[]},jt=function(t){return tt.call(t)};function Bt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||K)}function Ht(t){if(null!=t){try{return X.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function zt(t,e){return t===e||t!==t&&e!==e}(dt&&jt(new dt(new ArrayBuffer(1)))!=S||ft&&jt(new ft)!=u||mt&&jt(mt.resolve())!=f||ht&&jt(new ht)!=h||_t&&jt(new _t)!=g)&&(jt=function(t){var e=tt.call(t),n=e==d?t.constructor:void 0,o=n?Ht(n):void 0;if(o)switch(o){case gt:return S;case yt:return u;case St:return f;case Tt:return h;case Ct:return g}return e});var $t=Array.isArray;function Wt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!Yt(t)}var Vt=ut||function(){return!1};function Yt(t){var e=Qt(t)?tt.call(t):"";return e==c||e==l}function Qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Kt(t){return Wt(t)?Pt(t):function(t){if(!Gt(t))return pt(t);var e=[];for(var n in Object(t))Z.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return Lt(t,!0,!0)}},3778:function(t){var e=Array.isArray;t.exports=e},9245:function(t,e,n){t=n.nmd(t);var o=9007199254740991,r="[object Map]",i="[object Promise]",a="[object Set]",s="[object WeakMap]",c="[object DataView]",l=/^\[object .+?Constructor\]$/,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,d=u||p||Function("return this")(),f=e&&!e.nodeType&&e,m=f&&t&&!t.nodeType&&t,h=m&&m.exports===f;var _,E,g=Function.prototype,y=Object.prototype,S=d["__core-js_shared__"],T=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),C=g.toString,b=y.hasOwnProperty,v=y.toString,I=RegExp("^"+C.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=h?d.Buffer:void 0,O=y.propertyIsEnumerable,R=A?A.isBuffer:void 0,P=(_=Object.keys,E=Object,function(t){return _(E(t))}),U=H(d,"DataView"),w=H(d,"Map"),L=H(d,"Promise"),x=H(d,"Set"),D=H(d,"WeakMap"),N=!O.call({valueOf:1},"valueOf"),F=$(U),k=$(w),M=$(L),j=$(x),B=$(D);function G(t){return!(!q(t)||function(t){return!!T&&T in t}(t))&&(K(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}(t)?I:l).test($(t))}function H(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0}var z=function(t){return v.call(t)};function $(t){if(null!=t){try{return C.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function W(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Y(t)}(t)&&b.call(t,"callee")&&(!O.call(t,"callee")||"[object Arguments]"==v.call(t))}(U&&z(new U(new ArrayBuffer(1)))!=c||w&&z(new w)!=r||L&&z(L.resolve())!=i||x&&z(new x)!=a||D&&z(new D)!=s)&&(z=function(t){var e=v.call(t),n="[object Object]"==e?t.constructor:void 0,o=n?$(n):void 0;if(o)switch(o){case F:return c;case k:return r;case M:return i;case j:return a;case B:return s}return e});var V=Array.isArray;function Y(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}(t.length)&&!K(t)}var Q=R||function(){return!1};function K(t){var e=q(t)?v.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){if(Y(t)&&(V(t)||"string"==typeof t||"function"==typeof t.splice||Q(t)||W(t)))return!t.length;var e=z(t);if(e==r||e==a)return!t.size;if(N||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||y)}(t))return!P(t).length;for(var n in t)if(b.call(t,n))return!1;return!0}},2307:function(t,e,n){t=n.nmd(t);var o="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",p="[object Map]",d="[object Number]",f="[object Object]",m="[object Promise]",h="[object RegExp]",_="[object Set]",E="[object String]",g="[object Symbol]",y="[object WeakMap]",S="[object ArrayBuffer]",T="[object DataView]",C=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[i]=v[a]=v[S]=v[s]=v[T]=v[c]=v[l]=v[u]=v[p]=v[d]=v[f]=v[h]=v[_]=v[E]=v[y]=!1;var I="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,A="object"==typeof self&&self&&self.Object===Object&&self,O=I||A||Function("return this")(),R=e&&!e.nodeType&&e,P=R&&t&&!t.nodeType&&t,U=P&&P.exports===R,w=U&&I.process,L=function(){try{return w&&w.binding&&w.binding("util")}catch(t){}}(),x=L&&L.isTypedArray;function D(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1}function N(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n}function F(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var k,M,j=Array.prototype,B=Function.prototype,G=Object.prototype,H=O["__core-js_shared__"],z=B.toString,$=G.hasOwnProperty,W=function(){var t=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),V=G.toString,Y=RegExp("^"+z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=U?O.Buffer:void 0,K=O.Symbol,q=O.Uint8Array,J=G.propertyIsEnumerable,X=j.splice,Z=K?K.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=Q?Q.isBuffer:void 0,nt=(k=Object.keys,M=Object,function(t){return k(M(t))}),ot=wt(O,"DataView"),rt=wt(O,"Map"),it=wt(O,"Promise"),at=wt(O,"Set"),st=wt(O,"WeakMap"),ct=wt(Object,"create"),lt=Nt(ot),ut=Nt(rt),pt=Nt(it),dt=Nt(at),ft=Nt(st),mt=K?K.prototype:void 0,ht=mt?mt.valueOf:void 0;function _t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function gt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function yt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new gt;++e<n;)this.add(t[e])}function St(t){var e=this.__data__=new Et(t);this.size=e.size}function Tt(t,e){var n=Mt(t),o=!n&&kt(t),r=!n&&!o&&jt(t),i=!n&&!o&&!r&&$t(t),a=n||o||r||i,s=a?function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}(t.length,String):[],c=s.length;for(var l in t)!e&&!$.call(t,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Dt(l,c))||s.push(l);return s}function Ct(t,e){for(var n=t.length;n--;)if(Ft(t[n][0],e))return n;return-1}function bt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Z&&Z in Object(t)?function(t){var e=$.call(t,Z),n=t[Z];try{t[Z]=void 0;var o=!0}catch(i){}var r=V.call(t);o&&(e?t[Z]=n:delete t[Z]);return r}(t):function(t){return V.call(t)}(t)}function vt(t){return zt(t)&&bt(t)==i}function It(t,e,n,o,r){return t===e||(null==t||null==e||!zt(t)&&!zt(e)?t!==t&&e!==e:function(t,e,n,o,r,u){var m=Mt(t),y=Mt(e),C=m?a:xt(t),b=y?a:xt(e),v=(C=C==i?f:C)==f,I=(b=b==i?f:b)==f,A=C==b;
vendor: 6,833 bytes, line 1
1if(A&&jt(t)){if(!jt(e))return!1;m=!0,v=!1}if(A&&!v)return u||(u=new St),m||$t(t)?Rt(t,e,n,o,r,u):function(t,e,n,o,r,i,a){switch(n){case T:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case S:return!(t.byteLength!=e.byteLength||!i(new q(t),new q(e)));case s:case c:case d:return Ft(+t,+e);case l:return t.name==e.name&&t.message==e.message;case h:case E:return t==e+"";case p:var u=N;case _:var f=1&o;if(u||(u=F),t.size!=e.size&&!f)return!1;var m=a.get(t);if(m)return m==e;o|=2,a.set(t,e);var y=Rt(u(t),u(e),o,r,i,a);return a.delete(t),y;case g:if(ht)return ht.call(t)==ht.call(e)}return!1}(t,e,C,n,o,r,u);if(!(1&n)){var O=v&&$.call(t,"__wrapped__"),R=I&&$.call(e,"__wrapped__");if(O||R){var P=O?t.value():t,U=R?e.value():e;return u||(u=new St),r(P,U,n,o,u)}}if(!A)return!1;return u||(u=new St),function(t,e,n,o,r,i){var a=1&n,s=Pt(t),c=s.length,l=Pt(e).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var p=s[u];if(!(a?p in e:$.call(e,p)))return!1}var d=i.get(t);if(d&&i.get(e))return d==e;var f=!0;i.set(t,e),i.set(e,t);var m=a;for(;++u<c;){var h=t[p=s[u]],_=e[p];if(o)var E=a?o(_,h,p,e,t,i):o(h,_,p,t,e,i);if(!(void 0===E?h===_||r(h,_,n,o,i):E)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var g=t.constructor,y=e.constructor;g==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(f=!1)}return i.delete(t),i.delete(e),f}(t,e,n,o,r,u)}(t,e,n,o,It,r))}function At(t){return!(!Ht(t)||function(t){return!!W&&W in t}(t))&&(Bt(t)?Y:C).test(Nt(t))}function Ot(t){if(!function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||G;return t===n}(t))return nt(t);var e=[];for(var n in Object(t))$.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Rt(t,e,n,o,r,i){var a=1&n,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var u=-1,p=!0,d=2&n?new yt:void 0;for(i.set(t,e),i.set(e,t);++u<s;){var f=t[u],m=e[u];if(o)var h=a?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;p=!1;break}if(d){if(!D(e,(function(t,e){if(a=e,!d.has(a)&&(f===t||r(f,t,n,o,i)))return d.push(e);var a}))){p=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){p=!1;break}}return i.delete(t),i.delete(e),p}function Pt(t){return function(t,e,n){var o=e(t);return Mt(t)?o:function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t}(o,n(t))}(t,Wt,Lt)}function Ut(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function wt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return At(n)?n:void 0}_t.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},_t.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_t.prototype.get=function(t){var e=this.__data__;if(ct){var n=e[t];return n===o?void 0:n}return $.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return ct?void 0!==e[t]:$.call(e,t)},_t.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ct&&void 0===e?o:e,this},Et.prototype.clear=function(){this.__data__=[],this.size=0},Et.prototype.delete=function(t){var e=this.__data__,n=Ct(e,t);return!(n<0)&&(n==e.length-1?e.pop():X.call(e,n,1),--this.size,!0)},Et.prototype.get=function(t){var e=this.__data__,n=Ct(e,t);return n<0?void 0:e[n][1]},Et.prototype.has=function(t){return Ct(this.__data__,t)>-1},Et.prototype.set=function(t,e){var n=this.__data__,o=Ct(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this},gt.prototype.clear=function(){this.size=0,this.__data__={hash:new _t,map:new(rt||Et),string:new _t}},gt.prototype.delete=function(t){var e=Ut(this,t).delete(t);return this.size-=e?1:0,e},gt.prototype.get=function(t){return Ut(this,t).get(t)},gt.prototype.has=function(t){return Ut(this,t).has(t)},gt.prototype.set=function(t,e){var n=Ut(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this},yt.prototype.add=yt.prototype.push=function(t){return this.__data__.set(t,o),this},yt.prototype.has=function(t){return this.__data__.has(t)},St.prototype.clear=function(){this.__data__=new Et,this.size=0},St.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Et){var o=n.__data__;if(!rt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new gt(o)}return n.set(t,e),this.size=n.size,this};var Lt=tt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var a=t[n];e(a,n,t)&&(i[r++]=a)}return i}(tt(t),(function(e){return J.call(t,e)})))}:function(){return[]},xt=bt;function Dt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||b.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t){if(null!=t){try{return z.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ft(t,e){return t===e||t!==t&&e!==e}(ot&&xt(new ot(new ArrayBuffer(1)))!=T||rt&&xt(new rt)!=p||it&&xt(it.resolve())!=m||at&&xt(new at)!=_||st&&xt(new st)!=y)&&(xt=function(t){var e=bt(t),n=e==f?t.constructor:void 0,o=n?Nt(n):"";if(o)switch(o){case lt:return T;case ut:return p;case pt:return m;case dt:return _;case ft:return y}return e});var kt=vt(function(){return arguments}())?vt:function(t){return zt(t)&&$.call(t,"callee")&&!J.call(t,"callee")},Mt=Array.isArray;var jt=et||function(){return!1};function Bt(t){if(!Ht(t))return!1;var e=bt(t);return e==u||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Gt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function Ht(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function zt(t){return null!=t&&"object"==typeof t}var $t=x?function(t){return function(e){return t(e)}}(x):function(t){return zt(t)&&Gt(t.length)&&!!v[bt(t)]};function Wt(t){return null!=(e=t)&&Gt(e.length)&&!Bt(e)?Tt(t):Ot(t);var e}t.exports=function(t,e){return It(t,e)}},8618:function(t,e,n){t=n.nmd(t);var o="__lodash_hash_undefined__",r=1/0,i=9007199254740991,a="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",u="[object Error]",p="[object Function]",d="[object Map]",f="[object Number]",m="[object Object]",h="[object Promise]",_="[object RegExp]",E="[object Set]",g="[object String]",y="[object Symbol]",S="[object WeakMap]",T="[object ArrayBuffer]",C="[object DataView]",b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v=/^\w*$/,I=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,R=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,U={};
vendor: 10,136 bytes, line 1
1U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U[a]=U[s]=U[T]=U[c]=U[C]=U[l]=U[u]=U[p]=U[d]=U[f]=U[m]=U[_]=U[E]=U[g]=U[S]=!1;var w="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,x=w||L||Function("return this")(),D=e&&!e.nodeType&&e,N=D&&t&&!t.nodeType&&t,F=N&&N.exports===D&&w.process,k=function(){try{return F&&F.binding("util")}catch(t){}}(),M=k&&k.isTypedArray;function j(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!==e)return function(t,e,n,o){var r=t.length,i=n+(o?1:-1);for(;o?i--:++i<r;)if(e(t[i],i,t))return i;return-1}(t,H,n);var o=n-1,r=t.length;for(;++o<r;)if(t[o]===e)return o;return-1}(t,e,0)>-1}function B(t,e,n){for(var o=-1,r=t?t.length:0;++o<r;)if(n(e,t[o]))return!0;return!1}function G(t,e){for(var n=-1,o=t?t.length:0;++n<o;)if(e(t[n],n,t))return!0;return!1}function H(t){return t!==t}function z(t,e){return t.has(e)}function $(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function W(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n}function V(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Y,Q,K=Array.prototype,q=Function.prototype,J=Object.prototype,X=x["__core-js_shared__"],Z=function(){var t=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),tt=q.toString,et=J.hasOwnProperty,nt=J.toString,ot=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=x.Symbol,it=x.Uint8Array,at=J.propertyIsEnumerable,st=K.splice,ct=(Y=Object.keys,Q=Object,function(t){return Y(Q(t))}),lt=Bt(x,"DataView"),ut=Bt(x,"Map"),pt=Bt(x,"Promise"),dt=Bt(x,"Set"),ft=Bt(x,"WeakMap"),mt=Bt(Object,"create"),ht=Qt(lt),_t=Qt(ut),Et=Qt(pt),gt=Qt(dt),yt=Qt(ft),St=rt?rt.prototype:void 0,Tt=St?St.valueOf:void 0,Ct=St?St.toString:void 0;function bt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function vt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function It(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function At(t){var e=-1,n=t?t.length:0;for(this.__data__=new It;++e<n;)this.add(t[e])}function Ot(t){this.__data__=new vt(t)}function Rt(t,e){var n=Xt(t)||Jt(t)?function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}(t.length,String):[],o=n.length,r=!!o;for(var i in t)!e&&!et.call(t,i)||r&&("length"==i||Ht(i,o))||n.push(i);return n}function Pt(t,e){for(var n=t.length;n--;)if(qt(t[n][0],e))return n;return-1}function Ut(t,e){for(var n=0,o=(e=zt(e,t)?[e]:Ft(e)).length;null!=t&&n<o;)t=t[Yt(e[n++])];return n&&n==o?t:void 0}function wt(t,e){return null!=t&&e in Object(t)}function Lt(t,e,n,o,r){return t===e||(null==t||null==e||!ne(t)&&!oe(e)?t!==t&&e!==e:function(t,e,n,o,r,i){var p=Xt(t),h=Xt(e),S=s,b=s;p||(S=(S=Gt(t))==a?m:S);h||(b=(b=Gt(e))==a?m:b);var v=S==m&&!$(t),I=b==m&&!$(e),A=S==b;if(A&&!v)return i||(i=new Ot),p||ie(t)?Mt(t,e,n,o,r,i):function(t,e,n,o,r,i,a){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!o(new it(t),new it(e)));case c:case l:case f:return qt(+t,+e);case u:return t.name==e.name&&t.message==e.message;case _:case g:return t==e+"";case d:var s=W;case E:var p=2&i;if(s||(s=V),t.size!=e.size&&!p)return!1;var m=a.get(t);if(m)return m==e;i|=1,a.set(t,e);var h=Mt(s(t),s(e),o,r,i,a);return a.delete(t),h;case y:if(Tt)return Tt.call(t)==Tt.call(e)}return!1}(t,e,S,n,o,r,i);if(!(2&r)){var O=v&&et.call(t,"__wrapped__"),R=I&&et.call(e,"__wrapped__");if(O||R){var P=O?t.value():t,U=R?e.value():e;return i||(i=new Ot),n(P,U,o,r,i)}}if(!A)return!1;return i||(i=new Ot),function(t,e,n,o,r,i){var a=2&r,s=ae(t),c=s.length,l=ae(e).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var p=s[u];if(!(a?p in e:et.call(e,p)))return!1}var d=i.get(t);if(d&&i.get(e))return d==e;var f=!0;i.set(t,e),i.set(e,t);var m=a;for(;++u<c;){var h=t[p=s[u]],_=e[p];if(o)var E=a?o(_,h,p,e,t,i):o(h,_,p,t,e,i);if(!(void 0===E?h===_||n(h,_,o,r,i):E)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var g=t.constructor,y=e.constructor;g==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(f=!1)}return i.delete(t),i.delete(e),f}(t,e,n,o,r,i)}(t,e,Lt,n,o,r))}function xt(t){return!(!ne(t)||function(t){return!!Z&&Z in t}(t))&&(te(t)||$(t)?ot:R).test(Qt(t))}function Dt(t){return"function"==typeof t?t:null==t?se:"object"==typeof t?Xt(t)?function(t,e){if(zt(t)&&$t(e))return Wt(Yt(t),e);return function(n){var o=function(t,e,n){var o=null==t?void 0:Ut(t,e);return void 0===o?n:o}(n,t);return void 0===o&&o===e?function(t,e){return null!=t&&function(t,e,n){e=zt(e,t)?[e]:Ft(e);var o,r=-1,i=e.length;for(;++r<i;){var a=Yt(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}if(o)return o;return!!(i=t?t.length:0)&&ee(i)&&Ht(a,i)&&(Xt(t)||Jt(t))}(t,e,wt)}(n,t):Lt(e,o,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=ae(t),n=e.length;for(;n--;){var o=e[n],r=t[o];e[n]=[o,r,$t(r)]}return e}(t);if(1==e.length&&e[0][2])return Wt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,o){var r=n.length,i=r,a=!o;if(null==t)return!i;for(t=Object(t);r--;){var s=n[r];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<i;){var c=(s=n[r])[0],l=t[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in t))return!1}else{var p=new Ot;if(o)var d=o(l,u,c,t,e,p);if(!(void 0===d?Lt(u,l,o,3,p):d))return!1}}return!0}(n,t,e)}}(t):function(t){return zt(t)?(e=Yt(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return Ut(e,t)}}(t);var e}(t)}function Nt(t){if(!function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||J;return t===n}(t))return ct(t);var e=[];for(var n in Object(t))et.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ft(t){return Xt(t)?t:Vt(t)}bt.prototype.clear=function(){this.__data__=mt?mt(null):{}},bt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},bt.prototype.get=function(t){var e=this.__data__;if(mt){var n=e[t];return n===o?void 0:n}return et.call(e,t)?e[t]:void 0},bt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:et.call(e,t)},bt.prototype.set=function(t,e){return this.__data__[t]=mt&&void 0===e?o:e,this},vt.prototype.clear=function(){this.__data__=[]},vt.prototype.delete=function(t){var e=this.__data__,n=Pt(e,t);return!(n<0)&&(n==e.length-1?e.pop():st.call(e,n,1),!0)},vt.prototype.get=function(t){var e=this.__data__,n=Pt(e,t);return n<0?void 0:e[n][1]},vt.prototype.has=function(t){return Pt(this.__data__,t)>-1},vt.prototype.set=function(t,e){var n=this.__data__,o=Pt(n,t);return o<0?n.push([t,e]):n[o][1]=e,this},It.prototype.clear=function(){this.__data__={hash:new bt,map:new(ut||vt),string:new bt}},It.prototype.delete=function(t){return jt(this,t).delete(t)},It.prototype.get=function(t){return jt(this,t).get(t)},It.prototype.has=function(t){return jt(this,t).has(t)},It.prototype.set=function(t,e){return jt(this,t).set(t,e),this},At.prototype.add=At.prototype.push=function(t){return this.__data__.set(t,o),this},At.prototype.has=function(t){return this.__data__.has(t)},Ot.prototype.clear=function(){this.__data__=new vt},Ot.prototype.delete=function(t){return this.__data__.delete(t)},Ot.prototype.get=function(t){return this.__data__.get(t)},Ot.prototype.has=function(t){return this.__data__.has(t)},Ot.prototype.set=function(t,e){var n=this.__data__;if(n instanceof vt){var o=n.__data__;if(!ut||o.length<199)return o.push([t,e]),this;n=this.__data__=new It(o)}return n.set(t,e),this};var kt=dt&&1/V(new dt([,-0]))[1]==r?function(t){return new dt(t)}:function(){};function Mt(t,e,n,o,r,i){var a=2&r,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var u=-1,p=!0,d=1&r?new At:void 0;for(i.set(t,e),i.set(e,t);++u<s;){var f=t[u],m=e[u];if(o)var h=a?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;p=!1;break}if(d){if(!G(e,(function(t,e){if(!d.has(e)&&(f===t||n(f,t,o,r,i)))return d.add(e)}))){p=!1;break}}else if(f!==m&&!n(f,m,o,r,i)){p=!1;break}}return i.delete(t),i.delete(e),p}function jt(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Bt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return xt(n)?n:void 0}var Gt=function(t){return nt.call(t)};function Ht(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<e}function zt(t,e){if(Xt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!re(t))||(v.test(t)||!b.test(t)||null!=e&&t in Object(e))}function $t(t){return t===t&&!ne(t)}function Wt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(lt&&Gt(new lt(new ArrayBuffer(1)))!=C||ut&&Gt(new ut)!=d||pt&&Gt(pt.resolve())!=h||dt&&Gt(new dt)!=E||ft&&Gt(new ft)!=S)&&(Gt=function(t){var e=nt.call(t),n=e==m?t.constructor:void 0,o=n?Qt(n):void 0;if(o)switch(o){case ht:return C;case _t:return d;case Et:return h;case gt:return E;case yt:return S}return e});var Vt=Kt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(re(t))return Ct?Ct.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return I.test(t)&&n.push(""),t.replace(A,(function(t,e,o,r){n.push(o?r.replace(O,"$1"):e||t)})),n}));function Yt(t){if("string"==typeof t||re(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qt(t){if(null!=t){try{return tt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Kt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);
1var a=t.apply(this,o);return n.cache=i.set(r,a),a};return n.cache=new(Kt.Cache||It),n}function qt(t,e){return t===e||t!==t&&e!==e}function Jt(t){return function(t){return oe(t)&&Zt(t)}(t)&&et.call(t,"callee")&&(!at.call(t,"callee")||nt.call(t)==a)}Kt.Cache=It;var Xt=Array.isArray;function Zt(t){return null!=t&&ee(t.length)&&!te(t)}function te(t){var e=ne(t)?nt.call(t):"";return e==p||"[object GeneratorFunction]"==e}function ee(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function ne(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function oe(t){return!!t&&"object"==typeof t}function re(t){return"symbol"==typeof t||oe(t)&&nt.call(t)==y}var ie=M?function(t){return function(e){return t(e)}}(M):function(t){return oe(t)&&ee(t.length)&&!!U[nt.call(t)]};function ae(t){return Zt(t)?Rt(t):Nt(t)}function se(t){return t}t.exports=function(t,e){return t&&t.length?function(t,e,n){var o=-1,r=j,i=t.length,a=!0,s=[],c=s;if(n)a=!1,r=B;else if(i>=200){var l=e?null:kt(t);if(l)return V(l);a=!1,r=z,c=new At}else c=e?[]:s;t:for(;++o<i;){var u=t[o],p=e?e(u):u;
1if(u=n||0!==u?u:0,a&&p===p){for(var d=c.length;d--;)if(c[d]===p)continue t;e&&c.push(p),s.push(u)}else r(c,p,n)||(c!==s&&c.push(p),s.push(u))}return s}(t,Dt(e)):[]}},8858:function(t,e,n){"use strict";n.d(e,{ju:function(){return p},KV:function(){return _}});var o,r=n(7423),i=n(9756),a=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=function(){return(s=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},c=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(e){i(e)}}function s(t){try{c(o.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},l=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(s){i=[6,s],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n},p="__NEXT_REDUX_WRAPPER_HYDRATE__",d=function(){return"undefined"===typeof window},f=function(t,e){var n=(void 0===e?{}:e).deserializeState;return n?n(t):t},m=function(t,e){var n=(void 0===e?{}:e).serializeState;return n?n(t):t},h=function(t){var e=t.makeStore,n=t.context,r=function(){return e(n)};if(d()){var i=n,a=void 0;return i.req&&(a=i.req),i.ctx&&i.ctx.req&&(a=i.ctx.req),a?(a.__nextReduxWrapperStore||(a.__nextReduxWrapperStore=r()),a.__nextReduxWrapperStore):r()}return o||(o=r()),o},_=function(t,e){void 0===e&&(e={});var n=function(n){var o=n.callback,r=n.context;return c(void 0,void 0,void 0,(function(){var n,i,a,s,c;return l(this,(function(l){switch(l.label){case 0:return n=h({context:r,makeStore:t}),e.debug&&console.log("1. getProps created store with state",n.getState()),i=o&&o(n),(s=i)?[4,i(r)]:[3,2];case 1:s=l.sent(),l.label=2;case 2:return a=s||{},e.debug&&console.log("3. getProps after dispatches has store state",n.getState()),c=n.getState(),[2,{initialProps:a,initialState:d()?m(c,e):c}]}}))}))},o=function(t){return function(e){return c(void 0,void 0,void 0,(function(){var o,r,i;return l(this,(function(a){switch(a.label){case 0:return[4,n({callback:t,context:e})];case 1:return o=a.sent(),r=o.initialProps,i=o.initialState,[2,s(s({},r),{props:s(s({},r.props),{initialState:i})})]}}))}))}};return{getServerSideProps:function(t){return function(e){return c(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,o(t)(e)];case 1:return[2,n.sent()]}}))}))}},getStaticProps:o,getInitialAppProps:function(t){return function(e){return c(void 0,void 0,void 0,(function(){var o,r,i;return l(this,(function(a){switch(a.label){case 0:return[4,n({callback:t,context:e})];case 1:return o=a.sent(),r=o.initialProps,i=o.initialState,[2,s(s({},r),{initialState:i})]}}))}))}},getInitialPageProps:function(t){return function(e){return c(void 0,void 0,void 0,(function(){return l(this,(function(o){return"getState"in e?[2,t&&t(e)]:[2,n({callback:t,context:e})]}))}))}},withRedux:function(n){var o,c="withRedux("+(n.displayName||n.name||"Component")+")",l="getInitialProps"in n;return(o=function(o){function l(t,e){var n=o.call(this,t,e)||this;return n.store=null,n.hydrate(t,e),n}return a(l,o),l.prototype.hydrate=function(n,o){var r,i=n.initialState,a=(n.initialProps,u(n,["initialState","initialProps"])),s=null===(r=null===a||void 0===a?void 0:a.pageProps)||void 0===r?void 0:r.initialState;this.store||(this.store=h({makeStore:t,context:o}),e.debug&&console.log("4. WrappedApp created new store with",c,{initialState:i,initialStateFromGSPorGSSR:s})),i&&this.store.dispatch({type:p,payload:f(i,e)}),s&&this.store.dispatch({type:p,payload:f(s,e)})},l.prototype.shouldComponentUpdate=function(t,e,n){var o,r,i,a;return(null===(o=null===t||void 0===t?void 0:t.pageProps)||void 0===o?void 0:o.initialState)===(null===(i=null===(r=this.props)||void 0===r?void 0:r.pageProps)||void 0===i?void 0:i.initialState)&&(null===t||void 0===t?void 0:t.initialState)===(null===(a=this.props)||void 0===a?void 0:a.initialState)||this.hydrate(t,n),!0},l.prototype.render=function(){var t,e,o=this.props,a=(o.initialState,o.initialProps),c=u(o,["initialState","initialProps"]),l=c;return a&&a.pageProps&&(l.pageProps=s(s({},a.pageProps),c.pageProps)),(null===(t=null===c||void 0===c?void 0:c.pageProps)||void 0===t?void 0:t.initialState)&&delete(l=s(s({},c),{pageProps:s({},c.pageProps)})).pageProps.initialState,(null===(e=null===l||void 0===l?void 0:l.pageProps)||void 0===e?void 0:e.initialProps)&&(l.pageProps=s(s({},l.pageProps),l.pageProps.initialProps),delete l.pageProps.initialProps),r.default.createElement(i.zt,{store:this.store},r.default.createElement(n,s({},a,l)))},l}(r.default.Component)).displayName=c,o.getInitialProps=l?n.getInitialProps:void 0,o}}}},2551:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=(n(859),n(2917),n(7347),n(2387),n(868),n(6774));e.default=r.wrapper.withRedux((({Component:t,pageProps:e})=>o.default.createElement(t,e)))},2619:function(t,e,n){"use strict";n.r(e),n.d(e,{showToast:function(){return l},toast:function(){return r.Am},showPromiseToast:function(){return u}});var o=n(7423),r=n(782);n(859);const i=()=>o.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("g",{clipPath:"url(#clip0_444_79)"},o.default.createElement("path",{d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z",fill:"#E96B71",stroke:"#D32029",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.default.createElement("path",{d:"M10 13.9943V14M10 11.7102V6",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),o.default.createElement("defs",null,o.default.createElement("clipPath",{id:"clip0_444_79"},o.default.createElement("rect",{width:"20",height:"20",fill:"white"})))),a=()=>o.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("g",{clipPath:"url(#clip0_403_103)"},o.default.createElement("path",{d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z",fill:"#00CB75",stroke:"#00B341",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.default.createElement("path",{d:"M7 10L9 12L13 8",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),o.default.createElement("defs",null,o.default.createElement("clipPath",{id:"clip0_403_103"},o.default.createElement("rect",{width:"20",height:"20",fill:"white"})))),s=()=>o.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("path",{d:"M9.99999 1.39172C10.7958 1.39172 11.5375 1.78089 11.9917 2.43089L12.0792 2.56422L18.8408 13.8542C19.0463 14.2101 19.1581 14.6124 19.1658 15.0232C19.1734 15.4341 19.0767 15.8402 18.8846 16.2035C18.6925 16.5668 18.4113 16.8754 18.0674 17.1005C17.7235 17.3255 17.3282 17.4595 16.9183 17.4901L16.7558 
117.4967H3.23499C2.82475 17.4921 2.42236 17.3836 2.06539 17.1814C1.70841 16.9792 1.4085 16.6898 1.19363 16.3403C0.978768 15.9908 0.855959 15.5925 0.83667 15.1827C0.817381 14.7729 0.90224 14.3649 1.08333 13.9967L1.16583 13.8426L7.92416 2.56089C8.14055 2.20407 8.44524 1.90903 8.80884 1.70424C9.17244 1.49945 9.58269 1.39182 9.99999 1.39172ZM10.0083 12.5001L9.90249 12.5059C9.69995 12.53 9.51328 12.6275 9.37784 12.78C9.2424 12.9325 9.16759 13.1294 9.16759 13.3334C9.16759 13.5374 9.2424 13.7342 9.37784 13.8868C9.51328 14.0393 9.69995 14.1368 9.90249 14.1609L9.99999 14.1667L10.1058 14.1609C10.3084 14.1368 10.495 14.0393 10.6305 13.8868C10.7659 13.7342 10.8407 13.5374 10.8407 13.3334C10.8407 13.1294 10.7659 12.9325 10.6305 12.78C10.495 12.6275 10.3084 12.53 10.1058 12.5059L10.0083 12.5001ZM9.99999 6.66672C9.79588 6.66675 9.59888 6.74169 9.44635 6.87732C9.29382 7.01295 9.19637 7.19985 9.17249 7.40256L9.16666 7.50006V10.8334L9.17249 10.9309C9.19658 11.1334 9.29412 11.3201 9.44663 11.4555C9.59914 11.591 9.79602 11.6658 9.99999 11.6658C10.204 11.6658 10.4008 11.591 10.5534 11.4555C10.7059 11.3201 10.8034 11.1334 10.8275 10.9309L10.8333 10.8334V7.50006L10.8275 7.40256C10.8036 7.19985 10.7062 7.01295 10.5536 6.87732C10.4011 6.74169 10.2041 6.66675 9.99999 6.66672Z",fill:"#E13942"})),c=({type:t,msg:e})=>{const n="info",r=(p[t||"info"],d[t||"info"],"");let c="error"===t?i:"success"===t?a:"warning"===t?s:"",l=t||n;return o.default.createElement("div",{className:`wrap type-${l}`},o.default.createElement("div",{className:"inner-body"},o.default.createElement("div",{className:"new-icon-wrap",style:{display:"flex"}},"loader"===l?o.default.createElement("div",{className:"css-spinner"}):o.default.createElement(c,{width:"20",height:"20"})),o.default.createElement("p",{className:"text"},e||r)))};function l(t={}){const{type:e,title:n,iconClassName:i,timer:a,msg:s,fullpagewidth:l=!1}=t,u={containerId:"cd-client-toast",hideProgressBar:!0,position:"bottom-center",autoClose:"number"===typeof a?a:"undefined"===typeof a&&4e3,closeButton:!1,className:`cd-client-toast cd-client-toast-v1 ${l?"fullpagewidthbanner":""} type-${e}`,bodyClassName:"cd-client-toast-body",transition:r.LG},p={type:e,title:n,icon:i,msg:s};return(0,r.Am)(o.default.createElement(c,p),{...u})}async function u(t,e={}){const n={hideProgressBar:!0,position:"bottom-center",closeButton:!0,className:"cd-client-toast",bodyClassName:"cd-client-toast-body",transition:r.LG};return await r.Am.promise(t,{pending:"Promise is pending",success:"Promise resolved \ud83d\udc4c",error:"Promise rejected \ud83e\udd2f",...e},n)}const p={info:"Info",success:"Successfully Completed",warning:"Warning",error:"Error"},d={info:"icon-info-circle",success:"icon-check",warning:"icon-alert-triangle",error:"icon-bug-white"}},1717:function(t,e,n){"use strict";n.r(e),n.d(e,{useWhatChanged:function(){return G},getCompleteUrl:function(){return Qe},getUrlParameters:function(){return Je},getTreeListFromForm:function(){return Y},findFormElements:function(){return qe},getFormFieldsAndSubmitPublicForm:function(){return Ke},extractNumber:function(){return We},unlinkVariablesUsedInProjectHelper:function(){return Ye},generateCSSVariablesFromStyleguide:function(){return Ve},isPageUnlisted:function(){return $e},isMobile:function(){return ze},isPartOfComponent:function(){return Be},getCustomizationDataItems:function(){return He},traverseTillTopLevelElementOfComponent:function(){return Ge},findContext:function(){return je},getPlaygroundProject:function(){return Me},getGuestCustomizationDataIdFromLocalStorage:function(){return De},showRightSidebarHelpAlert:function(){return Le},handleCloseRightSidebarHelpAlert:function(){return xe},returnSubdomainFeedback:function(){return Ue},decodeURL:function(){return Pe},getCookie:function(){return Re},getFunctionsUsed:function(){return Ae},preqrequisiteToGeneratingCSS:function(){return Ie},mergeLayoutsAndRemoveDuplicates:function(){return ve},updateUnit:function(){return be},getUnit:function(){return Ce},deleteProperty:function(){return Se},bindHelpersToWindow:function(){return ge},findParentBlockNode:function(){return Ee},initiateColumnIcons:function(){return _e},initiateBuilderHostFunctions:function(){return he},addClassNames:function(){return yt},addComponentModuleToObject:function(){return zt},addMultipleImports:function(){return Gt},addNewItem:function(){return lt},addRemoveOnDragOverClass:function(){return ht},addToHiddenLayouts:function(){return Rt},appendDefaultMeasurementsToLayout:function(){return oe},builderComponentParams:function(){return R}
1,camelCaseToDash:function(){return It},checkIfElementIsPartOfAGroup:function(){return Et},checkIfUndoable:function(){return Wt},checkIfCurrentContextIsLinkedComponentCanvas:function(){return ae},containerHeight:function(){return _t},convertCss:function(){return vt},convertLeftToMarginLeft:function(){return pt},convertTopToMarginTop:function(){return ut},createComponents:function(){return ct},createHeaders:function(){return wt},createLayouts:function(){return st},createUrl:function(){return Lt},deepDiffMapper:function(){return Kt},deleteClassname:function(){return St},doTwoElementsCollide:function(){return qt},duplicateComponent:function(){return re},duplicateComponentHelper:function(){return dt},findAllChildren:function(){return K},findViewFromBreakpoint:function(){return pe},findAllChildrenLayout:function(){return J},findAllParents:function(){return q},findCollisionPercentage:function(){return j},findComponentsWithParent:function(){return tt},findImmediateFormParent:function(){return Nt},findImmediateParentByName:function(){return Dt},findLayout:function(){return B},findMinMaxXY:function(){return et},findOverlapPercentage:function(){return M},findParentFromNode:function(){return W},fixLayoutBeforeDrop:function(){return Bt},generateCSS:function(){return At},generateFormParameters:function(){return Ft},generateSlug:function(){return kt},getChildIdsOfLinkedInstance:function(){return le},getAllHiddenComponents:function(){return Ut},getCanvasIframe:function(){return Xt},getCanvasIframeDocument:function(){return Zt},getCanvasIframeWindow:function(){return te},getClassNamesStyleData:function(){return Ot},getComponentByClientId:function(){return ee},getFlexDirectionFromCSS:function(){return xt},getHorizontalPadding:function(){return nt},getFilteredBlueprints:function(){return ie},getOffsetLeft:function(){return ot},getOffsetTop:function(){return rt},getOffsetBetweenUnrelatedElements:function(){return it},getPaddingObject:function(){return ft},getParentIdByClientId:function(){return ne},getResponsiveFontSize:function(){return Vt},getStatesUsedByClassname:function(){return Ct},getStatesUsedByComponentStyle:function(){return bt},getTreeStructure:function(){return Q},getTreeListArray:function(){return V},getViewFromScreenWidth:function(){return $t},gotoParent:function(){return w},hasChildWithId:function(){return $},importBasicComponents:function(){return Ht},initializeGridLayout:function(){return Mt},innerDimensions:function(){return Qt},isArrayEqual:function(){return N},isChildInsideCanvas:function(){return F},isChildInsideParent:function(){return k},isEmpty:function(){return at},isInstanceOfAnyLinkedComponent:function(){return se},isPartOfLinkedInstance:function(){return ce},mergeTwoLayouts:function(){return Z},removeDragBadge:function(){return Jt},removeFromHiddenLayouts:function(){return Pt},replaceBulk:function(){return X},returnUpdatedUsedBy:function(){return ue},rgba2hex:function(){return gt},setGuideLinesHelper:function(){return z},showPreview:function(){return de},splitString:function(){return mt},triggerMouseEvent:function(){return L},updateClassname:function(){return Tt},updateGridLayout:function(){return jt},whatChanged:function(){return H},sequenceExecutor:function(){return D},isUpdatedValueInText:function(){return fe},isPositionAbsolute:function(){return me},executeEvent:function(){return x},removeEventKey:function(){return U},updateUserRole:function(){return ye},createEvent:function(){return Te},createBadgeForDrag:function(){return Yt},mergeResponsiveLayouts:function(){return Oe},COLORS:function(){return P},isValidPathname:function(){return we},isGuestCustomizationDataLegacyFormat:function(){return Ne},getProjectFromURL:function(){return ke},getCustomizationData:function(){return Fe},cleanupBlueprint:function(){return Xe},handleLinkClickAction:function(){return en},handleHoverLinkAction:function(){return nn}});var o=n(8908),r=n.n(o),i=n(4961),a=n(8697),s=n(2641),c=n.n(s),l=n(1697),u=n.n(l),p=n(3902),d=n(5236),f=n(6774),m=n(7100),h=n(3251),_=n(6811),E=n(6332),g=n(6354),y=n(2307),S=n.n(y),T=n(7423),C=n(8867),b=n(6160),v=n(2619),I=n(8618),A=n.n(I),O=n(4155);const R={stateNames:["default","hover","active","placeholder"]},P={warning900:"#3D2800",warning600:"#F59F00",warning400:"#FFBC3F",blue600:"#0468C5",blue50:"#ECF5FF",neutral0:"#ffffff",neutral25:"#fbfbfb",neutral50:"#f6f6f6",neutral100:"#eeeeee",neutral200:"#e2e2e2",neutral300:"#cbcbcb",neutral400:"#afafaf",neutral500:"#757575",neutral600:"#545454",neutral650:"#444444",neutral700:"#333333",neutral750:"#292929",neutral800:"#1f1f1f",neutral850:"#1a1a1a",neutral900:"#141414",neutral1000:"#000000"},U=t=>{let e=t.split("_");return e.shift(),e=e.join("_"),e},w=(t,e)=>{const{clientId:n,storeCurrentComponentId:o,toggleComponentEditModal:r,iframeDocument:i,documentContext:a}=e;if(t===n)return;let s;s=i||a;let c=s.getElementById(`${t}-customizationParent`);if(!c)return o("Global0007"),void r(!1);setTimeout((()=>{L(c,"mousedown",s),r(!1),r(!0)}))};function L(t,e,n){var o=n.createEvent("MouseEvents");o.initEvent(e,!0,!0),t.dispatchEvent(o)}const x=(t,e,n)=>{if("page"!==n)return;const o=Array.isArray(t[e]),r=t?.[e];o?t?.[e]?.map((t=>{t?.()})):r&&Object.values(r).map((t=>{t?.map((t=>{t?.()}))}))},D=(t,e,n="")=>function(){const{getState:o}=f.clientStore,r=o(),{functionDefinitions:i=[]}=r.functions.data,{context:a}=r.customization.present,{blueprint:s}=r.customization.present.data;let c=i[t]?.sequence;const l=c&&c.flat(1/0);let u;return l&&"object"===typeof l&&l.length>0&&(u=l.map((o=>e[o.name].apply(null,[...o.arguments,s,a,n,t])))),u?.[0]},N=(t,e)=>t.length===e.length&&t.every((function(t,n){return t===e[n]}));function F(t,e,n){let o,r,i,a,s=ot(n,"sl-rgl"),c=rt(n,"sl-rgl");const{offsetHeight:l,offsetWidth:u}=t,{offsetHeight:p,offsetWidth:d}=e;return r=s+u>d,o=s<=0,i=c<=0,a=c+l>
1p,{top:i,right:r,bottom:a,left:o}}function k(t,e){let n,o,r,i;const{offsetTop:a,offsetLeft:s,offsetHeight:c,offsetWidth:l}=t,{offsetHeight:u,offsetWidth:p}=e;return o=s+l>p,n=s<0,r=a<0,i=a+c>u,{top:r,right:o,bottom:i,left:n}}function M(t,e,n){const{offsetTop:o,offsetLeft:r,offsetHeight:i,offsetWidth:a}=t;let{offsetTop:s,offsetLeft:c,offsetHeight:l,offsetWidth:u}=e;n||(c=0,s=0);const p=r+a,d=c+u,f=o+i,m=s+l;return(Math.max(r,c)-Math.min(p,d))*(Math.max(o,s)-Math.min(f,m))/(a*i)*100}function j(t,e,n){return M({offsetTop:t.y,offsetLeft:t.x,offsetHeight:t.h,offsetWidth:t.w},{offsetTop:e.y,offsetLeft:e.x,offsetHeight:e.h,offsetWidth:e.w},n)}function B(t,e){let n={};if(e.components[t]){let o=e.components[t].parent;if("undefined"!==typeof o&&e[o]?Object.keys(e[o]).map((r=>{e[o][r]&&(n[r]=e[o][r].filter((e=>e?.i===t)))})):Object.keys(e.layouts).map((o=>{e.layouts[o]&&(n[o]=e.layouts[o].filter((e=>e?.i===t)))})),Object.keys(n).length>0)return n}return{}}function G(t,e,n){const o=(0,T.useRef)(),r=(0,T.useRef)();(0,T.useEffect)((()=>{const n=o.current,i=r.current;n&&Object.keys(t).forEach((e=>{t[e],n[e]})),i&&Object.keys(e).forEach((t=>{e[t],i[t]})),o.current=t,r.current=e}),[t,e,n])}function H(t,e,n,o,r){Object.keys(t).filter((n=>t[n]!==e[n])).map((t=>!0)),Object.keys(n).filter((t=>n[t]!==o[t])).map((t=>!0))}function z(t,e,n,o,r,i){if(!t&&e&&n&&o){let t,o,a,s,c=e.getBoundingClientRect();return t=c.top+(i?i.top:r.pageYOffset),o=t+c.height,a=r.pageXOffset+c.left+(i?i.left:0),s=a+c.width,{topGuide:{borderTop:"1px solid rgb(255,0,0)",top:`${t}px`,left:"2px",height:"2px",width:"calc(100% - 360px)",position:"absolute"},rightGuide:{borderRight:"1px solid rgb(255,0,0)",top:"52px",left:`${s}px`,width:"2px",maxHeight:"100vh",height:`${n}px`,position:"absolute"},bottomGuide:{borderBottom:"1px solid rgb(255,0,0)",top:`${o}px`,left:"2px",height:"2px",width:"calc(100% - 360px)",position:"absolute"},leftGuide:{borderLeft:"1px solid rgb(255,0,0)",top:"52px",left:`${a}px`,width:"2px",maxHeight:"100vh",height:`${n}px`,position:"absolute"}}}return{topGuide:{},rightGuide:{},bottomGuide:{},leftGuide:{}}}function $(t,e){return null!=e.querySelector(`#${t}`)}function W(t){let e,n=[t],o=0;function r(t){return t.endsWith("-customizationParent")||t.endsWith("-firstChild")||t.endsWith("-labelhead")}if(t.id&&r(t.id))e=t.id.split("-"),e.pop();else for(;n[o].parentNode&&"sl-rgl"!==n[o].parentNode.id;)if(n.push(n[o].parentNode),o+=1,n[o].id&&r(n[o].id)){e=n[o].id.split("-"),e.pop();break}if(e)return e.join("-")}const V=(t,e)=>{const n=[],o=new Set,r=i=>{i.forEach((i=>{o.has(i.i)||(n.push(i.i),o.add(i.i),e[t][i.i]&&r(e[t][i.i].lg))}))};return r(e[t].layouts.lg),n},Y=(t,e)=>{try{const n=[],o=new Set;if(!e||!t[e])return[];const r=e=>{e.forEach((e=>{if(!o.has(e.i)){o.add(e.i);const i=t.components[e.i];i&&i.formElementType&&n.push(i),t[e.i]&&r(t[e.i].lg)}}))};return r(t[e].lg),n}catch(n){return console.error("Error occured parsing the form",n),[]}};function Q(t,e,n=[],o={},r=!0,i=1){try{let a,s=t[e],c=o;if(("undefined"!==typeof s||!s&&r)&&(a=[...Object.keys(t.components).filter((n=>s?t.components[n].parent===e:"undefined"===typeof t.components[n].parent))],a.length>0)){e&&(n=[...n,e]);const o=t.components?.[a[0]]?.parent||"layouts",r="lg",s=t[o]?.[r].filter((t=>a.includes(t.i))).map((t=>t.i));c._children=s.filter((t=>"Global0007"!==t)).map((e=>Q(t,e,n,c[e],!1,i+1)))}const l=t.components[e],u=r?{client_id:"Global0007",name:"Body",displayName:"Body",type:"cd-body",category:"body"}:{...l};return s||r?(c._data=u,c):{_data:u,_children:null}}catch(a){return console.error("Error occured children",a),[]}}function K(t,e,n=[],o,r={}){const i=new Set(n);try{return function e(n){let o=Object.keys(t.components).filter((e=>t.components[e].parent===n));r.returnDirectChildren?o.forEach((t=>i.add(t))):(i.add(n),o.forEach((t=>{e(t)})))}(e),o?Array.from(i):Array.from(i).filter((t=>t!==e))}catch(a){return console.error("Error occurred",a),[]}}function q(t,e,n,o){try{let r=t.components[e]&&t.components[e].parent,i=t.components[e]?.givenName;return null!=r&&(n=q(t,r,n,!0)),r?[...o?[{clientId:e,givenName:i}]:[],...n]:[{clientId:e,givenName:i},...n]}catch(r){return console.error("Error occured warHero",r),[]}}function J(t,e,n,o){let r={};if(o)return o.map((e=>{t[e]&&(r={...r,[e]:t[e]})})),r;for(let i=0;i<r[e][n].length;i++){let o=r[e][n][i].i;if(t[o]){r={...r,[o]:t[o]};for(let e=0;e<r[o][n].length;e++)t[r[o][n][e].i]&&(o=r[o][n][e].i,r={...r,[o]:t[o]})}}return r}function X(t,e,n){var o,r=[],i={};for(o=0;o<e.length;o++)r.push(e[o].replace(/([-[\]{}()*+?.\\^$|#,])/g,"\\$1")),i[e[o]]=n[o];return r=r.join("|"),t=t.replace(new RegExp(r,"g"),(function(t){return i[t]}))}function Z(t,e,n){let o={lg:[],sm:[],md:[],bp_1280:[],bp_1440:[],bp_1920:[]};return Object.keys(t).map((r=>{t[r].map((t=>{let i=[{...t}];n[t?.i]&&(i=[...i,e[r].find((e=>e.i===n[t?.i]))]),o[r]=[...o[r],...i]}))})),o}function tt(t,e){return Object.keys(t.components).filter((n=>t.components[n].parent===e))}function et(t){var e;if(t&&!(t.length<1))return{minX:(e=t,e.reduce(((t,e)=>e.x<t?e.x:t),e[0].x)),maxX:function(t){return t.reduce(((t,e)=>e.x+e.w+(e.x1?e.x1:0)>t?e.x+e.w+(e.x1?e.x1:0):t),t[0].x+t[0].w)}(t),minY:function(t){return t.reduce(((t,e)=>e.y<t?e.y:t),t[0].y)}(t),maxY:function(t){return t.reduce(((t,e)=>e.y+e.h+(e.y1?e.y1:0)>t?e.y+e.h+(e.y1?e.y1:0):t),t[0].y+t[0].h)}(t)}}function nt(t,e){let n=0,o=0;if(t&&t.offsetParent)do{n+=parseFloat(window.getComputedStyle(t,null).getPropertyValue("padding-left")),o+=parseFloat(window.getComputedStyle(t,null).getPropertyValue("padding-right")),t=t.offsetParent}while(e?t&&t.id!==e:t);return{paddingLeft:n,paddingRight:o}}function ot(t,e,n=!1){let o=0;if(t&&t.offsetParent)do{o+=t.offsetLeft,t=t.offsetParent}while(e?t&&t.id!==e:t);return o<0&&!n?0:o}function rt(t,e,n=!1){let o=0;if(t&&t.offsetParent)do{o+=t.offsetTop,t=t.parentNode}while(t&&t.id!==e);return o<0&&!n?0:o}function it(t,e,n,o){function r(t){let e=t.getBoundingClientRect();const o=n.getElementById("heroSection");let r=o.scrollLeft,i=o.scrollTop;return{top:e.top+i,left:e.left+r}}
1let i=r(t),a=r(e);return{x:a.left-i.left,y:a.top-i.top}}const at=t=>null===t||void 0===t||Object.prototype.hasOwnProperty.call(t,"length")&&0===t.length||""===t||t.constructor===Object&&0===Object.keys(t).length;function st(t,e,n,o){let r={lg:[],sm:[],md:[],bp_1280:[],bp_1440:[],bp_1920:[]};return r=lt(e,n,o,t,r),r}const ct=(t,e)=>{let n={author:"Storylens",category:"blocks",components:null,context:["Homepage","something"],custom:!1,props:{componentData:{hideIn:[]}},type:"block"},o={};return t.map(((r,i)=>{o={...o,[r]:{...n,...e,client_id:t[i]}}})),o};function lt(t,e,n,o,r){return Object.keys(t).map((i=>{let a=0,s=0,c=1,l=0,u=t[i].slice(0,t[i].length-1).reduce(((t,e)=>t+e),0);t[i].map(((e,n)=>{t[i].slice(l,n).reduce(((t,e)=>t+e),0)>=12&&(l=n,c+=1)}));let p=n?u<12?n[i][0].h:n[i][0].h/c:10;t[i].map(((n,c)=>{t[i].slice(a,c).reduce(((t,e)=>t+e),0)>=12&&(a=c,s+=1),r[i][c]||(r[i]=[...r[i],{w:n,h:p,y:p*s,x:t[i].slice(a,c).reduce(((t,e)=>t+e),0),parent:e,i:o[c],moved:!1,static:!1}])}))})),r}const ut=(t,e,n)=>{let o=[];for(let c=0,l=t.length;c<l;c++)(0,a.collidesOnYAxis)(t[c],e)&&(o=[...o,t[c]]);o=(0,a.sortLayoutItems)(o,"vertical");let r,i=o.findIndex((t=>t.i===e.i)),s={};if(i&&i>0){let t=o[i-1].y+o[i-1].h+(o[i-1].y1||0);r={difference:o[i].y-t,base:t}}else r={difference:e.y,base:0};if(n){let t=n.clientHeight;s={aDifference:r.difference/t*2*100,aBase:r.base/t*2*100}}return r={...r,...s},r},pt=(t,e)=>{let n=[];for(let r=0,i=t.length;r<i;r++)(0,a.collidesOnXAxis)(t[r],e)&&(n=[...n,t[r]]);n=(0,a.sortLayoutItems)(n,"horizontal");let o=n.findIndex((t=>t.i===e.i));if(o&&0!==o&&o>0){let t=n[o-1].x+n[o-1].w+(n[o-1].x1||0);return{difference:n[o].x-t,base:t}}return{difference:e.x,base:0}},dt=(t,e={})=>{const{blueprint:n,context:o,view:r,clientId:a,classes:s={}}=t,{getState:c}=f.default,l=(c(),n[o].components[a]),p=n[o][a],d=l.parent;let m,h="tablet"===r||"md"===r?"md":"mobile"===r||"sm"===r?"sm":"bp_1280"===r?"bp_1280":"bp_1440"===r?"bp_1440":"bp_1920"===r?"bp_1920":"lg",_=u()(n[o]),E=K(_,a,[],!0).flat(1/0),g=E.map((t=>_.components[t]));if(E?.length>1)m=J(_,a,h,E);else{const t=g[0].parent||"layouts";m={[t]:{}},E.map((e=>{Object.keys(_[t]).map((n=>{m[t][n]=_[t][n].filter((t=>t.i===e))}))}))}let y={};E.map((t=>y[t]=t.substring(0,t.length-4)+(0,i.default)(4)));let S={};g.map((t=>{let e=t.client_id,n=y[t.client_id];t={...t,client_id:n,parent:y[t.parent]||t.parent};let o=JSON.parse(X(JSON.stringify(t),Object.keys(y).map((t=>t.slice(-4))),Object.values(y).map((t=>t.slice(-4)))));S[y[e]]=o})),S=JSON.parse(X(JSON.stringify(S),Object.keys(y),Object.values(y)));let T=JSON.parse(X(JSON.stringify(m),Object.keys(y),Object.values(y))),C=B(a,_);C=JSON.parse(X(JSON.stringify(C),Object.keys(y),Object.values(y))),T[d||"layouts"]=Z(_[d||"layouts"],C,y);let b={},v={},I=[];return Object.values(S).map((t=>{const e=t.classes||[];I=[...I,...e];const n=t?.props?.componentStyle?.global?.fontFamily;n&&(b={...b,[t.client_id]:{clientId:t.client_id,fontFamily:n}})})),I=Array.from(new Set(I)),I.map((t=>{const e=s[t];if(!e)return;const n=e?.props?.componentStyle?.global?.fontFamily;v={...v,[t]:e},n&&(b={...b,[t]:{className:t,fontFamily:n}})})),{isParent:p,newChildrenComponents:S,newLayouts:T,context:o,uniqueId:y[a],classes:v,fonts:b}},ft=(t="")=>{let e,n,o,r,i=t.split(" ");return t&&i&&0!==i.length?(1===i.length?e=n=o=r=parseInt(i[0]||0,10):2===i.length?(e=n=parseInt(i[0]||0,10),o=r=parseInt(i[1]||0,10)):(e=parseInt(i[0]||0,10),o=parseInt(i[1]||0,10),n=parseInt(i[2]||0,10),r=parseInt(i[3]||0,10)),{top:e,bottom:n,right:o,left:r}):{top:0,bottom:0,right:0,left:0}},mt=t=>{let e=t.length-1,n=0,o=0,r=[];for(let i=0;i<=e;i++)if(0!==r.length)if(1!==r.length||"/"!==t[i])if(2!==r.length||" "!==t[i])if(3!==r.length||" "!==t[i])4!==r.length&&5!==r.length||" "!==t[i]?i!==e||(r=[...r,t.substring(o,i+1)],o=i+1):(r=[...r,t.substring(o,i)],o=i+1);else{if("r"===t[i+1]&&"e"===t[i+2]||"r"===t[i+1]&&"o"===t[i+2]||"r"===t[i+1]&&"e"===t[i+2]||"s"===t[i+1]&&"p"===t[i+2]||"n"===t[i+1]&&"o"===t[i+2])continue;r=[...r,t.substring(o,i)],o=i+1}else("r"===t[i+1]&&"e"===t[i+2]||"r"===t[i+1]&&"o"===t[i+2]||"r"===t[i+1]&&"e"===t[i+2]||"s"===t[i+1]&&"p"===t[i+2]||"n"===t[i+1]&&"o"===t[i+2])&&(r=[...r,t.substring(o,i)],o=i+1);else r=[...r,t.substring(o,i)],o=i+1;
1else 0===n&&" "===t[i]?(r=[...r,t.substring(o,i)],o=i+1):"("===t[i]&&0===r.length?n+=1:")"===t[i]&&0===r.length&&(n-=1);return r=r.map((t=>t=(t=t.replace(/^,|,$/g,""))&&t.trim())),r},ht=(t,e,n)=>{let o=(n||document).getElementById(`${t}-customizationParent`);o&&("add"==e?o.classList.add("cd_dragover"):o.classList.remove("cd_dragover"))};function _t(t,e){if(!t)return"100%";return(0,a.bottom)(t)*e+"px"}const Et=(t,e)=>{const n=(0,d.checkNested)(t,"components",e,"props","componentData","groupChildren")&&t.components[e].props.componentData.groupChildren,o=(0,d.checkNested)(t,"components",e,"props","componentData","childOf")&&t.components[e].props.componentData.childOf;return n||o&&o.length>0};function gt(t){var e=t.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i),n=(e&&e[4]||"").trim(),o=e?(256|e[1]).toString(16).slice(1)+(256|e[2]).toString(16).slice(1)+(256|e[3]).toString(16).slice(1):t;return"#"+(o+=(255*(""!==n?n:Number(1))|256).toString(16).slice(1))}const yt=(t="",e,n,o,r)=>{if(t&&e&&n&&o){let i={...e,[n]:{...e[n],components:{...e[n].components,[o]:{...e[n].components[o],classes:e[n].components[o].classes?[...e[n].components[o].classes,t]:[t]}}}};(!i[n].classes||!Object.prototype.hasOwnProperty.call(i[n].classes,t))&&(i={...i,[n]:{...i[n],classes:{...i[n].classes,[t]:{}}}}),r(i)}},St=(t,e,n,o)=>{if(t&&e&&n){let r={};Object.keys(e[n].components).map((o=>{let i=e[n].components[o];if(i.classes){let e=i.classes.filter((e=>e===t));i.classes=e}r={...r,[o]:i}}));let i={...e,[n]:{...e[n],components:r}};delete i[n].classes[t],o(i)}},Tt=(t,e,n,o,r)=>{if(t&&e&&n&&o){let i=n[o].classes[t],a={};Object.keys(n[o].components).map((r=>{let i=n[o].components[r];if(i.classes){let n=i.classes.map((n=>n===t?e:n));i.classes=n}a={...a,[r]:i}}));let s={...n,[o]:{...n[o],components:a,classes:{...n[o].classes,[e]:i}}};delete s[o].classes[t],r(s)}},Ct=(t,e)=>{let n=[];if(e){const o=e[t];o&&o.props&&Object.keys(o.props).map((t=>{if("componentStyle"===t)return;let e=o.props[t],r=!1;"object"===typeof e&&Object.keys(e).length>0&&(Object.keys(e).map((t=>{"object"===typeof e[t]&&Object.keys(e[t]).length})),r=!0),r&&(n=[...n,t])}))}return n},bt=(t,e,n)=>{let o=[];if(t){let r=e[n].components[t]&&e[n].components[t].props||{};const i=R.stateNames.filter((t=>"default"!==t));Object.keys(r).map((t=>{if(!i.includes(t))return;let e=r[t],n=!1;"object"===typeof e&&Object.keys(e).length>0&&(Object.keys(e).map((t=>{"object"===typeof e[t]&&Object.keys(e[t]).length})),n=!0),n&&(o=[...o,t])}))}return o};function vt(t={}){let e={};Object.keys(t).map((n=>{const o=t[n];if("_custom"!==n){if("object"!==typeof o)e[It(n)]="rotate(0deg) scale(1) translateX(0px) translateY(0px) translateZ(0px)"===o?"":o;else if("object"===typeof o&&null!=o)for(const t in o)e[It(t)]=o[t]}else e[n]=o}));const{_custom:n,...o}=e;return e={...o,...n},function(t){let e="";const n=["_custom"];return Object.keys(t).filter((t=>!n.includes(t))).map((n=>{e=e.concat(`${n}:${t[n]};`)})),e}(e)}function It(t){return t.replace(/[^a-zA-Z0-9]+/g,"-").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([^0-9])/g,"$1-$2").replace(/([^0-9])([0-9])/g,"$1-$2").replace(/-+/g,"-").toLowerCase()}function At(t={}){const{id:e,cssCombinedObject:n}=t,{main:o,focus:r,hover:i,active:a,placeholder:s}=n;return`${`[data-clientId="${e}"]{${o}}`} ${r?`[data-clientId="${e}"]:focus{${r}}`:""} ${i?`[data-clientId="${e}"]:hover{${i}}`:""} ${a?`[data-clientId="${e}"]:active{${a}}`:""} ${s?`[data-clientId="${e}"]::placeholder{${s}}`:""}`.trim()}function Ot(t={}){const{extraStyles:e={},classes:n={},component:o={},currentStateName:r="",origin:i="",stateNames:a=[]}=t;let s=!1,c={};o.classes&&o.classes.length>0&&(s=!0,o.classes.map((t=>{c={...c,[t]:n[t]}})));let l={};const u=t=>({...t,...t._custom||{}});a.map((t=>{const e="default"===t?"componentStyle":t;let n=o&&o.props&&o.props[e]||{};Object.keys(n).map((t=>{l[e]={...l[e],[t]:{...l[e]?l[e][t]:{},...u(n[t])}}}))})),s&&Object.keys(c).map((t=>{let e=c[t];a.map((t=>{const n="default"===t?"componentStyle":t;let o=e&&e.props&&e.props[n]||{};Object.keys(o).map((t=>{l[n]={...l[n],[t]:{...l[n]?l[n][t]:{},...u(o[t])}}}))}))}));let p={};const f=l||{},m=f[""===r?"componentStyle":r]||{};let h={global:{...e,...f.componentStyle?f.componentStyle.global:{}},tablet:{...e,...f.componentStyle?f.componentStyle.tablet:{},...m.tablet},mobile:{...e,...f.componentStyle?f.componentStyle.mobile:{},...m.mobile},bp_1920:{...e,...f.componentStyle?f.componentStyle.bp_1920:{},...m.bp_1920},bp_1440:{...e,...f.componentStyle?f.componentStyle.bp_1440:{},...m.bp_1440},bp_1280:{...e,...f.componentStyle?f.componentStyle.bp_1280:{},...m.bp_1280}};"builderCanvas"===i?h={...h,global:{...h.global,...m.global},tablet:{...h.tablet,...m.tablet},mobile:{...h.mobile,...m.mobile},bp_1280:{...h.bp_1280,...m.bp_1280},bp_1440:{...h.bp_1440,...m.bp_1440},bp_1920:{...h.bp_1920,...m.bp_1920}}:Object.keys(f).map((t=>{if(""===t||"default"===t)return;let e=f[t];p={...p,[t]:e}}));let _=h.global.fontSize,E=h.tablet.fontSize?h.tablet.fontSize:_,g=h.mobile.fontSize?h.mobile.fontSize:_;return h={...h,tablet:{...h.tablet,fontSize:E},mobile:{...h.mobile,fontSize:g}},{hasClassesInsideComponent:s,builderStyles:(0,d.clean)(h),stateStyles:"builderCanvas"===i?void 0:(0,d.clean)(p)}}const Rt=(t,e,n)=>{let o=e&&e.hiddenLayouts||{lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]};return o[t].filter((t=>t.i===n.i))[0]?o[t]=o[t].map((t=>t.i===n?n:t)):o={...o,[t]:[...o[t],n]},o},Pt=(t,e,n)=>{let o=e&&e.hiddenLayouts||{lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]};if(o&&o[t])return o[t]=e.hiddenLayouts[t].filter((t=>t.i!==n)),o};function Ut(t,e){const n=t[e].components||{};let o=[];return Object.keys(n).length>0&&Object.keys(n).map((t=>{const e=n[t],{componentData:r}=e.props||{},{hideIn:i=[]}=r||[];if(0==i.length)return;let a={hideIn:i,component:e};o.push(a)})),o}function wt(t){let e=new Headers;return t.headers&&t.headers.map((t=>{e.append(t.key,t.value)})),e}const Lt=t=>{let e={};t.parameters&&t.parameters.map((t=>
1{e[t.key]=t.value}));let n=t.endpoint;return/^https?:\/\//i.test(n)||(n="https://"+n),c()(n,{queryParams:e})};function xt(t,e,n){let o=pe(n);"web"===o&&(o="global");return t.components?.[e]?.props?.componentStyle?.[o]?.flexDirection||t.components?.[e]?.props?.componentStyle?.global?.flexDirection||"row"}function Dt(t,e,n=""){let o;if(!n)return;let r=t;if(t&&e&&e.components&&e.components[r])for(;e.components[r].parent;)if(r=e.components[r].parent,e.components[r].name===n){o=r;break}return o}function Nt(t,e){return Dt(t,e,"Form")}function Ft(t,e){let n=K(e,t,[],!1).flat(1/0)||[];return n=n.filter((t=>["Input","TextArea","Select","Dropdown"].includes(e.components[t].name))).map((t=>e.components[t])).map((t=>{let e=document.getElementById("slPreviewFrame"),n=(e?e.contentDocument:document).querySelector(`[data-clientId=${t.client_id}]`),o=n?n.value:"";return{key:(0,d.checkNested)(t,"props","componentData","name")?t.props.componentData.name:null,value:o}})),n}function kt(t){return t.toString().toLowerCase().trim().replace(/\s+/g,"").replace(/&/g,"and").replace(/[^\w\-]+/g,"").replace(/\-\\\-+/g,"").replace(/-{2,}/g,"")}async function Mt({blueprint:t,updateBlueprintContents:e,type:n,client_id:o,previewContext:i}){let a;a=i||(void 0===window.location.hash||""===window.location.hash?"home":window.location.hash.substr(1));let s,c=t&&t[a]&&t[a].components?t[a].components:{},l=u()(c);s=(t,e)=>t.parent===e;let p={};if("canvas"===n)p=await Ht(l);else{let t=Object.values(l).filter((t=>s(t,o))),e={};t.map((t=>{e[t.client_id]=t})),p=await Ht(l)}const{getState:d}=f.default;(d()||{}).customization.present.data.blueprint;return r().serverLoadedComponents=p,!0}async function jt({prevProps:t,blueprint:e,updateBlueprintContents:n,type:o,context:r,client_id:i}){if(Object.keys(t.blueprint[r].components).length!=Object.keys(e[r].components).length||"canvas"!==o){let t,a=u()(e[r].components),s=[];if("canvas"===o?(t=t=>"undefined"===typeof t.parent&&"Global"!==t.name&&(!t.component||t.component&&0===Object.keys(t.component).length),s=Object.values(a).filter((e=>t(e)))):"gridlayoutchild"===o&&(t=(t,e)=>t.parent===e&&"Global"!==t.name&&(!t.component||t.component&&0===Object.keys(t.component).length),s=Object.values(a).filter((e=>t(e,i)))),!s||s&&0===s.length)return!0;let c={};s.map((t=>{c[t.client_id]=t}));let l=await Ht(a),p=f.default.getState().customization.present.data.blueprint;return n("blueprint",{...p,[r]:{...p[r],components:{...p[r].components,...l}}},!1),!0}}function Bt(t,e){Object.keys(e)}async function Gt(t){return await Promise.all(Object.values(t).map((async t=>(t.component=await n(5031)(`./${t.main}`),t))))}async function Ht(t){const{dispatch:e,getState:o}=f.default,{BASIC_BLOCKS_MAPPING:r}=p.builderConstants,i=o(),{basicComponentsInit:a,basicComponentModules:s}=i.customization.present;if(a)return t=zt(t,r,s);{let o={};if(await Promise.all(Object.keys(r).map((async t=>(o[t]=await n(5031)(`./${r[t]}`),t)))))return e({type:m.customizationConstants.IMPORT_BASIC_COMPONENTS,payload:o}),t=zt(t,r,o)}}function zt(t,e,n){return Object.values(t).map((t=>{const o=Object.keys(e).find((n=>e[n]===t.main));t.component=n[o]})),t}const $t=(t,e={activeBreakpoints:[]})=>{const{activeBreakpoints:n}=e;return t<=480?"mobile":t>480&&t<=1024?"tablet":n&&n.includes("bp_1280")&&t>=1280&&t<1440?"bp_1280":n&&n.includes("bp_1440")&&t>=1440&&t<1920?"bp_1440":n&&n.includes("bp_1920")&&t>=1920?"bp_1920":"web"};function Wt(t="",e={}){const{dispatch:n,getState:o}=f.default,r=o().customization.present.isStoringUndo;return("REQUEST_SAVE_LAYOUT"!==t||!0!==r)&&(!e.isAutomaticAction&&(n({type:m.customizationConstants.UNDOS_REVISION_UPDATE}),void("REQUEST_SAVE_LAYOUT"!==t&&n({type:m.customizationConstants.UNDOS_REVISION_UPDATE_IS_STORING_START}))))}function Vt(t){return t}const Yt=(t,{isLinkedComponent:e})=>{let n=document.createElement("div");n.id="drag-ghost";const o={padding:"4px 4px 4px 4px",background:e?P.warning600:P.blue600,color:e?P.warning900:P.blue50,borderRadius:"1px",fontSize:"12px",fontWeight:"700",lineHeight:"16px",letterSpacing:"0.04em",display:"flex",alignItems:"center",minWidth:"62px",position:"absolute",top:"-999999px"};Object.keys(o).map((t=>{let e=o[t];n.style[t]=e}));const r=document.createElement("img");r.src=e?"/assets/icons/linked-comp-icon.svg":"/assets/icons/cube.svg",r.style.width="16px",r.style.height="16px",r.style.marginRight="4px",r.style.zIndex="1";const i=document.createElement("span");return i.innerHTML=t.displayName||t.name||"Component",n.appendChild(r),n.appendChild(i),document.body.appendChild(n),n},Qt=t=>{if(!t)return;var e=getComputedStyle(t);let n=t.clientWidth,o=t.clientHeight;return o-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),{height:o,width:n}},Kt={VALUE_CREATED:"created",VALUE_UPDATED:"updated",VALUE_DELETED:"deleted",VALUE_UNCHANGED:"unchanged",map:function(t,e){if(this.isFunction(t)||this.isFunction(e))throw"Invalid argument. Function given, object expected.";if(this.isValue(t)||this.isValue(e))return{type:this.compareValues(t,e),data:void 0===t?e:t};var n={};for(let r in t)if(!this.isFunction(t[r])){var o=void 0;void 0!==e[r]&&(o=e[r]),n[r]=this.map(t[r],o)}for(let r in e)this.isFunction(e[r])||void 0!==n[r]||(n[r]=this.map(void 0,e[r]));return n},compareValues:function(t,e){return t===e||this.isDate(t)&&this.isDate(e)&&t.getTime()===e.getTime()?this.VALUE_UNCHANGED:void 0===t?this.VALUE_CREATED:void 0===e?this.VALUE_DELETED:this.VALUE_UPDATED},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isDate:function(t){return"[object Date]"===Object.prototype.toString.call(t)},isObject:function(t){return"[object Object]"===Object.prototype.toString.call(t)},isValue:function(t){return!this.isObject(t)&&!this.isArray(t)}};function qt(t,e){let n={};return n.offsetTop=rt(e,"sl-rgl"),t.offsetBottom=t.offsetTop+t.offsetHeight,t.offsetRight=t.offsetLeft+t.offsetWidth,n.offsetBottom=n.offsetTop+e.offsetHeight,n.offsetRight=e.offsetLeft+e.offsetWidth,!(t.offsetBottom<n.offsetTop||t.offsetTop>n.offsetBottom||t.offsetRight<n.offsetLeft||t.offsetLeft>n.offsetRight)}function Jt(){let t=document.getElementById("drag-ghost");t?.parentNode&&t.parentNode.removeChild(t)}function Xt(){return document.getElementById("iframe-sl-device")}function Zt(){return Xt().contentWindow.document}function te(){return Xt().contentWindow}const ee=t=>{const{getState:e}=f.default,n=e(),{data:o,context:r}=n.customization.present;return o.blueprint[r].components[t]||{}},ne=(t,e,n)=>{if(!e&&!n)return;return e[n].components[t].parent},oe=(t,e,n=[])=>{let o=u()(t);return n.map((t=>{"auto"===Ce(o[t])?o[t]=be(o[t],"auto"):"number"!==typeof parseInt(o[t])&&o[t]?.endsWith(e)||(o[t]=be(o[t],e))})),o},re=async t=>{const{component:e,markUndoStoringCompleted:n,dropStart:o,dropEnd:r}=t,{getState:i,dispatch:a}=f.default,s=i(),{data:c,context:l}=s.customization.present,{blueprint:u,fonts:p,classes:m}=c;Wt("DUPLICATE_COMP"),o(e.parent);let _={...u},E=[],g=dt({...t,classes:m,blueprint:u,context:l});if(!g)return;const{newChildrenComponents:y,newLayouts:S,fonts:T}=g,{components:C,layouts:b,id:v,meta:I,timestamp:A,version:O,...R}=u[l];let P={...S};P.layouts&&(P={...P,layouts:{...b,...P.layouts}}),P={...R,...P};const U=await Gt(y);let w={};U.map((t=>{const e={...y[t.client_id],...t};if(w={...w,[t.client_id]:e},!e?.linkedProps?.linkedComponentMetaId)return;const{linkedComponentMetaId:n,instanceId:o}=e.linkedProps;let r=_[n];const i=r.meta.instances||[];r={...r,meta:{...r.meta,instances:[...i,o]}},_={..._,[n]:r},E=[...E,n]})),_={..._,[l]:{..._[l],...P,components:{...u[l].components,...w},meta:{..._[l].meta}}};const L={...p,...T};a(h.customizationActions.updateBlueprintContents("fonts",L)),a(h.customizationActions.updateActiveFonts()),_=(0,d.cleanupBlueprintData)(_),window.showToast&&window.showToast({type:"success",msg:"Element duplicated successfully"}),a(h.customizationActions.updateBlueprintContents("blueprint",_,!0,{linkedComponents:E})),n(),setTimeout((()=>r()),0)},ie=(t,e)=>{const{getState:n}=f.default,o=n(),r=e||o.customization.present.data.blueprint;let i={};return"linkedComponent"===t||"presetComponent"===t?(Object.keys(r).map((e=>{const{meta:n={}}=r[e];n?.type===t&&(i={...i,[e]:r[e]})})),i):"page"===t?(Object.keys(r).map((t=>{const{meta:e={}}=r[t];"undefined"!=typeof e.type&&e.type||(i={...i,[t]:r[t]})})),i):r},ae=t=>{if(!t)return!1;const e=ie("linkedComponent");return!!(Object.keys(e).length>0&&Object.keys(e).includes(t))},se=t=>{if(!t)return!1;let e=!1;const{getState:n}=f.default,o=n().customization.present.data.blueprint;return Object.values(o).filter((t=>{const{meta:e={}}=t;if(e.type&&"linkedComponent"===e.type)return!0})).map((t=>t.meta.instances||[])).flat(1/0).includes(t)&&(e=!0),e},ce=t=>{let e=!1;if(!t)return!1;const{getState:n}=f.default,o=n();return(o.customization.present.data.blueprint[o.customization.present.context].components[t]||{}).linkedProps?.instanceId?(e=!0,e):void 0},le=t=>{const{getState:e}=f.default,n=e();return(n.customization.present.data.blueprint[n.customization.present.context].components[t]||{}).props?.componentData?.childIdsOfLinkedInstance||[]};function ue(t,e,n){const o=e[t].meta.usedBy,r=n||e[t].meta.instances,i=ie("page",e);let a=[];return o.map((t=>{const e=i[t]?.components||{};let n=!1;Object.keys(e).forEach((t=>{r.includes(t)&&(n=!0)})),n&&a.push(t)})),a}const pe=t=>"tablet"===t||"md"===t?"tablet":"mobile"===t||"sm"===t?"mobile":"bp_1280"===t?"bp_1280":"bp_1440"===t?"bp_1440":"bp_1920"===t?"bp_1920":"global",de=t=>{const{getState:e}=f.default,n=e();t?.preventDefault();try{const t=n.customization.present.project,e=n.customization.present.context;let o=new URL(document.location.href).searchParams.get("user"),r=new URL(document.location.href).searchParams.get("apiType");window.childWindow&&window.childWindow?.parent&&!window.childWindow?.closed?window.childWindow.focus():window.childWindow=window.open(window.location.origin+"/page-preview/"+t+"/"+e+`${o?"?user="+o:""}${r?"&apiType="+r:""}`)}catch(o){console.error(o,"Page preview window opening")}},fe=t=>p.builderConstants.WHITELISTED_TEXT_UNIT_VALUES.includes(t),me=(t,e)=>{let n=["absolute","fixed","sticky"];return"builder"===e&&(n=["absolute","fixed"]),n.includes(t)},he=async()=>({}),_e=async()=>{let t={};try{0}catch(e){console.error("Failed to load module:",e),t={}}return t},Ee=t=>{if(t&&"function"===typeof t.getAttribute)return t&&"grid-layout"===t.getAttribute("data-type")&&!t.id.endsWith("-dragging")?t:Ee(t.parentNode)},ge=()=>{window.codeDesign={helpers:{getWindow:()=>{const{getState:t}=f.clientStore,e=(t(),document.getElementById("slPreviewFrame")?.contentWindow);return e||window},getDocument:()=>{const t=document.getElementById("slPreviewFrame")?.contentWindow?.document;return t||document},getState:()=>{const{getState:t}=f.clientStore;return t().stateManagement},updateState:(t="global",e,n)=>{const{dispatch:o}=f.clientStore;o({type:E.stateManagementConstants.UPDATE_STATE,payload:{parent:t,key:e,value:n}})}}}},ye=()=>{const{getState:t,dispatch:e}=f.default,n=t(),o=n.customization.present.data,r=n.user.data,i=n.workspace?.data;let a="readonly";if((o.userOrGuestId?._id||o.userOrGuestId)===r._id)a="owner";else if(r.isAdmin)a="owner";else{const t=o.projectUsers||[];if(t?.length>0){const e=r.email,n=t.filter((t=>t?.email===e));n.length>0&&(a=n[0].role)}if("readonly"===a&&i?._id){if((i.owner?._id||i.owner)===r._id)a="owner";else{const t=(i.members||[]).find((t=>t.userId===r._id||t.email===r.email));if(t){const e=t.role;"owner"!==e&&"admin"!==e&&"member"!==e||(a="editor")}}}}a&&(e({type:m.customizationConstants.UPDATE_USER_ROLE,payload:a}),"readonly"===a&&e(g.uiActions.toggleElementOutlines(!1)))},Se=({[n]:t,...e},n)=>e,Te=(t,e)=>{try{const{getState:n}=f.clientStore;n();let o={...e};t,window.Intercom("trackEvent",t,o)}catch(n){console.error("An error occured while tacking an event",n)}};function Ce(t){if(p.builderConstants.WHITELISTED_TEXT_UNIT_VALUES.includes(t))return t;if(0===t)return"px";var e=t?.length;if(!t||!e)return"px";for(var n=e;n--;)if(!isNaN(t[n]))return t.slice(n+1,e)||"px";return"px"}function be(t,e){if(p.builderConstants.WHITELISTED_TEXT_UNIT_VALUES.includes(e))return e;if("number"===typeof t&&e)return`${t}${e}`;var n=t?.length;if(!t||!n)return`0${e}`;var o=n;let r="";for(;o--;)isNaN(t[o])||(r=t.slice(o+1,n));if(r){return t.split(r)[0]+e}return"100"+e}const ve=(t,e,n)=>{if("lg"===n)return e;return((t,e,n)=>(t.lg.map(((o,r)=>{let i={};"md"===n&&(i={...t.lg[r]}),"sm"===n&&(i={...t.lg[r],...t.md[r]}),n?.startsWith("bp")&&(i={...t.lg[r]});const a=e.find((t=>o.i===t.i));Object.keys(i).map((t=>{(!a[t]||S()(i[t],a[t])&&"i"!==t)&&delete a[t]}));const s=e.findIndex((t=>t.i===o.i));e[s]=a})),e))(t,e,n)},Ie=(t,e,n)=>{const{small:o,large:r,medium:i,bp_1280:a,bp_1440:s,bp_1920:c}=t,l=o?{...e.global,...e.mobile}:i?{...e.global,...e.tablet}:r?e.global:a?{...e.global,...e.bp_1280}:s?{...e.global,...e.bp_1440}:c?{...e.global,...e.bp_1920}:{},u=n&&n.focus?o?{...n.focus.global,...n.focus.mobile}:i?{...n.focus.global,...n.focus.tablet}:r?n.focus.global:a?{...n.focus.global,...n.focus.bp_1280}:s?{...n.focus.global,...n.focus.bp_1440}:c?{...n.focus.global,...n.focus.bp_1920}:{}:{},p=n&&n.hover?o?{...n.hover.global,...n.hover.mobile}:i?{...n.hover.global,...n.hover.tablet}:r?n.hover.global:a?{...n.hover.global,...n.hover.bp_1280}:s?{...n.hover.global,...n.hover.bp_1440}:c?{...n.hover.global,...n.hover.bp_1920}:{}:{},d=n&&n.active?o?{...n.active.global,...n.active.mobile}:i?{...n.active.global,...n.active.tablet}:r?n.active.global:a?{...n.active.global,...n.active.bp_1280}:s?{...n.active.global,...n.active.bp_1440}:c?{...n.active.global,...n.active.bp_1920}:{}:{};return{reqCssObj:l,hoverStyleObj:p,placeholderStyleObj:n&&n.placeholder?o?{...n.placeholder.global,...n.placeholder.mobile}:i?{...n.placeholder.global,...n.placeholder.tablet}:r?n.placeholder.global:a?{...n.placeholder.global,...n.placeholder.bp_1280}:s?{...n.placeholder.global,...n.placeholder.bp_1440}:c?{...n.placeholder.global,...n.placeholder.bp_1920}:{}:{},hoverStyleObj:p,activeStyleObj:d,focusStyleObj:u}},Ae=(t,e)=>{const n=JSON.stringify(e).match(/(cd_fn_)[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}/g)||[];let o={};return n.map((e=>{t[e]&&(o[e]=t[e])})),o},Oe=(t={},e)=>{let n=[];return"lg"===e?n=t.lg||[]:"md"===e?t.lg?.map(((e,o)=>{n[o]={...t.lg?.[o],...t.md?.find((t=>t&&e&&t.i===e.i))}})):"sm"===e?t.lg?.map(((e,o)=>{n[o]={...t.lg?.[o],...t.md?.find((t=>t&&e&&t.i===e.i)),...t.sm?.find((t=>t&&e&&t.i===e.i))}})):"bp_1280"===e?t.lg?.map(((e,o)=>{n[o]={...t.lg?.[o],...t.bp_1280?.find((t=>t&&e&&t.i===e.i))}})):"bp_1440"===e?t.lg?.map(((e,o)=>{n[o]={...t.lg?.[o],...t.bp_1280?.find((t=>t&&e&&t.i===e.i)),...t.bp_1440?.find((t=>t&&e&&t.i===e.i))}})):"bp_1920"===e&&t.lg?.map(((e,o)=>{n[o]={...t.lg[o],...t.bp_1280?.find((t=>t&&e&&t.i===e.i)),...t.bp_1440?.find((t=>t&&e&&t.i===e.i)),...t.bp_1920?.find((t=>t&&e&&t.i===e.i))}})),n||[]};function Re(t){const e=`; ${document.cookie}`.split(`; ${t}=`);if(2===e.length)return e.pop().split(";").shift()}function Pe(t){return decodeURIComponent(t.replace(/\+/g," "))}const Ue=({debouncedVal:t,isCheckingSubdomain:e,subdomainError:n})=>t?e?T.default.createElement("p",null,"Checking availability..."):n?T.default.createElement("p",{className:"failure"}," Name unavailable"):t.length>100?T.default.createElement("p",{className:"failure"},"Too long"):t.length<4?T.default.createElement("p",{className:"failure"},"Too short"):/^[a-zA-Z0-9-]{4,100}$/.test(t)?T.default.createElement("p",{className:"success"}," Name available "):T.default.createElement("p",{className:"failure"}," ","Invalid characters. Use alphanumeric characters and dashes."):T.default.createElement("p",{className:"failure"},"Please enter a name above");function we(t){if(!t||"string"!==typeof t)return!1;
1const e=/^[a-zA-Z0-9-_]+$/,n=t.split("/").filter(Boolean);for(let o of n){if(!e.test(o))return!1;if(".."===o)return!1}return!(t.startsWith("/")||t.endsWith("/")||t.includes("/"))}const Le=t=>{try{const{id:e}=t,n=localStorage.getItem("codedesignUserPreferences")||null;if(n){let t=JSON.parse(n)||{};return!(t.closedRightSidebarAlerts&&t.closedRightSidebarAlerts.includes(e))}return!0}catch(e){return console.log("something wrong",e),!0}},xe=t=>{try{const{id:e}=t,n=localStorage.getItem("codedesignUserPreferences")||null;if(n){let t=JSON.parse(n)||{};t.closedRightSidebarAlerts=[...t?.closedRightSidebarAlerts||[],e];const o=JSON.stringify(t);localStorage.setItem("codedesignUserPreferences",o)}else localStorage.setItem("codedesignUserPreferences",JSON.stringify({closedRightSidebarAlerts:[e]}))}catch(e){console.log("something wrong",e),localStorage.setItem("codedesignUserPreferences",'{\n      "closedRightSidebarAlerts":[]\n    }')}},De=()=>localStorage.getItem("guestCustomizationDataId");function Ne(){try{return!De()?.startsWith("[")}catch(t){return console.log(t,"Error determining customization data ID format"),!1}}async function Fe(t){const{getByID:e}=t("customization-data"),n=De(),o=Ne(),r=ke(),i=o?n:r||JSON.parse(n).pop();try{const t=await e(i);if(!t)throw new Error(`No customization data found for ID: ${i}`);return{customizationData:t,versionId:i}}catch(a){throw console.error("Error retrieving customization data",a),a}}function ke(){return new URLSearchParams(window.location.search).get("project")}async function Me(t){let e,o;try{e=n(3155)}catch(c){console.error("Context creation failed",c)}try{"deploy"===O.env.REACT_APP_TYPE||(o=e("./index.js"))}catch(l){console.error("Dynamic module import failed",l)}const r=o?.default;await r({databaseName:"guest",version:1,stores:[{name:"customization-data",id:{autoIncrement:!1},indices:[{name:"customizationData",keyPath:"customizationData"}]}]}).catch((t=>console.error("error / unsupported",t)));const{useIndexedDBStore:i}=o,{customizationData:a,versionId:s}=await Fe(i);if(a)return{...a,versionId:s};console.error("Failed to retrieve customization data")}const je=()=>{let t;if(window.location.pathname){if("/playground"===window.location.pathname)return"home";let e=window.location.pathname;if(e.endsWith("/")&&(e=e.slice(0,-1)),e.startsWith("/page-preview")||e.startsWith("/playground-preview")){const n=e.startsWith("/page-preview")?"/page-preview":"/playground-preview",o=e.slice(n.length).split("/").filter(Boolean);t=o.length>=3?o[o.length-2]:o.length>=1?o[o.length-1]:"home"}else{const n=e.split("/").filter(Boolean);t=0===n.length?"home":n[0]}}else t="home";return t},Be=(t,e,n)=>{if(!t||!e)return!1;return!!Ge(t,e,n)},Ge=(t="",e="",n)=>{if(!t||!e)return;if("Global0007"===t)return;const{blueprint:o,context:r}=He(n);let i=o?.[r]?.components?.[t];return i?.componentType===e||"object"===typeof e&&e.includes(i?.componentType)?i:Ge(i?.parent,e)};function He(t={}){const{getState:e}=f.clientStore,{customization:{present:{data:n,context:o}}}=e();return{...{blueprint:n.blueprint,context:o,selectedComponent:n.currentlySelectedComponentId,currentBreakpoint:n.currentBreakpoint},...t}}function ze(){let t=!1;var e;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t}function $e(t,e={}){const{getState:n}=f.default,o=n(),{blueprint:r}=o.customization.present.data,i=(e.blueprint||r)[t]?.meta||{};if(i.unlisted)return!0;const{isPageAiGeneratable:a,aiGenerationCount:s}=i;return a&&!s}function We(t,e={}){let{type:n="float",precision:o}=e;if("number"===typeof t&&(t=t.toString()),"string"===typeof t){let e=t.match(/[\d.]+/);if(!e)return NaN;let r=parseFloat(e[0]);return"integer"===n?Math.round(r):"float"===n&&"number"===typeof o?parseFloat(r.toFixed(o)):r}return NaN}const Ve=(t={})=>{const{styleguide:e={}}=t,{getState:n}=f.default,o=n(),{styleguide:r={}}=o.customization.present.data,i=Object.keys(e).length>1?e:r,a=i?.themes?.[i?.selectedThemeId]||{},s=i?.definitions||{},c=a?.modifiers||{};return Object.entries(s).map((([,t])=>{const e=c[t.variableId]||t.value;return`--${t.variableId}: ${e};`})).join(" ")},Ye=(t="",e="")=>{const n=`var(--${t})`,{getState:o}=f.default,r=o(),{blueprint:i}=r.customization.present.data;let a={...i};Object.keys(i).map((t=>{const{components:o}=i[t];Object.keys(o).map((r=>{const i=o[r],{props:s}=i;if(!s)return;const c=JSON.stringify(s).replace(n,e),l=JSON.parse(c);a[t].components[r].props=l}))}));const{classes:s}=r.customization.present.data;let c={...s};const l=JSON.stringify(s).replace(n,e);return c=JSON.parse(l),{updatedBlueprint:a,updatedClasses:c}};function Qe(t={}){const{linkType:e,pageHash:n="",pageBase:o,url:r,target:i}=t;let a=null;a=window;let s="";const c=a.location.pathname.includes("page-preview"),l=`${a.location.protocol}//${a.location.hostname}${a.location.port?":"+a.location.port:""}`;switch(e){case"page":if(c){s=`${l}${a.location.pathname.split("/").slice(0,3).join("/")}/${o}${n}`}else s=`${l}/${o}${n}`;break;case"internal":if(c){s=`${l}${a.location.pathname.split("/").slice(0,3).join("/")}${r}`}else s=`${l}${r}`;break;case"https://":s=r}return s}const Ke=(t,e)=>{if(window.location.pathname.startsWith("/playground"))return void(0,v.showToast)({type:"warning",msg:e?"Order processing is disabled in preview mode. Please publish your website.":"Form submission is disabled in preview mode. Please publish your website."});const{currentTarget:n}=t,o=n?.id;if(!o)return void console.error("No relevant button found");const{getState:r,dispatch:i}=f.clientStore,a=r(),{data:s,context:c}=a.customization.present,{blueprint:l,integrations:u}=s,{getDocument:p=(()=>document)}=window.codeDesign?.helpers,m=p(),h=Ge(o,"form-component-v1");if(!h)return void console.error("No form component found");const E=Y(l[c],h.client_id),g=E.find((t=>t.client_id===o));if(!E||0===E.length)return void console.error("No form elements found");const{clientInputs:y={}}=a.common,S=E.filter((t=>t.formElementType!==b.FORM_ELEMENT_TYPES.SUBMIT_BUTTON&&"button"!==t.formElementType&&t.formElementType!==b.FORM_ELEMENT_TYPES.BUY_BUTTON)).map((t=>{const{client_id:e,formElementType:n,props:o}=t,r=o.componentData?.fieldName,i=o.componentData?.inputType,a=o.componentData?.properties?.required,s=o.componentData?.properties?.pattern,c=y[e];let l=c||null;if(n===b.FORM_ELEMENT_TYPES.CHECKBOX&&(l=c||!1),"date"===i){const t=new Date(l);l=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}let u=!0;if(s){u=new RegExp(s).test(l)}return{clientId:e,value:l,formElementType:n,fieldName:r,isRequired:a||!1,isInputValAccordingToPattern:u}}));let T,I,A,O=!1;const R={};S.forEach((t=>{const{value:e,fieldName:n,isRequired:o,formElementType:r,isInputValAccordingToPattern:i}=t;n?R[n]?(R[n].count++,R[n].types.push(r)):R[n]={count:1,types:[r]}:I=!0,!1===i&&(A=!0),o&&(r===b.FORM_ELEMENT_TYPES.CHECKBOX?!1!==e&&null!==e&&void 0!==e||(T=!0):e||(T=!0))}));let P="";for(const[f,{count:_,types:C}]of Object.entries(R))if(_>1){O=!0;P=`Duplicate field names are not allowed. Found duplicate field name "${f}" for element types: ${C.map((t=>(0,d.toTitleCase)(t))).join(", ")}`;break}if(g.formElementType===b.FORM_ELEMENT_TYPES.BUY_BUTTON){const t=g.props.componentData,{selectedPaymentMethod:e,selectedProductIdForPayment:n}=t,{stripe:o}=u||{},r=!e||"active"!==o?.status,i=!n;if(r||i)return void(0,v.showToast)({type:"warning",msg:r?"The Buy button doesn't have a valid payment method.":"The Buy button is not associated with any product."})}if(T||I||O||A){let t;return T?t="Please fill all required fields":I?t="Table field cannot be empty. Please update the form.":O?t=P:A&&(t="Invalid input value. Please check the input value and try again."),void(0,v.showToast)({type:"warning",msg:t})}if(window.location.pathname.startsWith("/page-preview/"))return void(0,v.showToast)({type:"warning",msg:e?"Order processing is disabled in preview mode. Please publish your website.":"Form submission is disabled in preview mode. Please publish your website."});const U=Je("orderId");i(C.databaseActions.submitFormData({formData:S,formId:h.client_id,order:e,clickedButtonComponent:g,orderId:U,successCallback:()=>{(()=>{if(g.props.componentData.clearFormAfterSubmit){let t={};
1S.forEach((e=>{const{clientId:n}=e;t[n]="";const o=m.querySelector(`[data-clientid="${n}"]`);o&&(o.value="")})),i(_.commonActions.updateClientInputs(t))}})()}}))};function qe(t,e="",n=[]){try{return function e(o){const r=t.components[o];r&&r.formElementType&&n.push(r),Object.keys(t.components).filter((e=>t.components[e].parent===o)).forEach((t=>{e(t)}))}(e),n}catch(o){return console.error("Error occurred",o),[]}}function Je(t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(window.location.search);return null===e?null:decodeURIComponent(e[1].replace(/\+/g," "))}const Xe=(t,e,n)=>{const o={};for(const i of Object.keys(t[e]))o[i]=A()(t[e][i],"i");let r=0;for(;o.lg&&o.lg[r];){const i=o.lg[r].i;if(t.components[i]){n.components[i]||(n.components[i]=t.components[i],"layouts"===e&&delete n.components[i].parent);for(const t of Object.keys(o)){const r=o[t].find((t=>t.i===i));r&&(n[e]||(n[e]={}),"layouts"===e&&delete r.parent,n[e][t]=n[e][t]||[],n[e][t].push(r))}t[i]&&(n=Xe(t,i,n))}r++}return n},Ze=t=>{const e=t.match(/{([^}]*)}/),n=(e?e[1]:t).split(";").filter(Boolean),o={};return n.forEach((t=>{const[e,n]=t.split(":").map((t=>t.trim()));e&&n&&(o[e]=n)})),o},tn=t=>Object.entries(t).map((([t,e])=>`${t}: ${e};`)).join(" "),en=t=>{if(t.target.closest("a")&&t.currentTarget!==t.target)return;const{getDocument:e=(()=>{})}=window?.codeDesign?.helpers,n=e(),o=t.currentTarget.id,{getState:r}=f.clientStore,i=r(),{data:{blueprint:a},context:s}=i.customization.present,c=a[s]?.meta?.id||s,l=i.customization.present.data.blueprint[c].components[o].props.componentData.linkAction,u=i.customization.present.data.blueprint[c].components[o].parent,p=["margin-left","margin-top","margin-right","margin-bottom","width","height","minWidth","maxWidth","minHeight","maxHeight","display","position"];Object.values(l).forEach((t=>{const{targetElementId:e,cssCode:o,toggleBehaviour:r=!1}=t,i=n.querySelector(`[data-clientId="${e}"]`);if(i){const t=u?`style-section-${u}-${e}`:`style-${e}`;let a=n.querySelector(`#${t}`);const s="data-toggle-state",c="true"===i.getAttribute(s);a||(a=n.createElement("style"),a.id=t,i.appendChild(a));const l=a.textContent||"",d=Ze(l),f=Ze(o);if(r&&c){p.forEach((t=>{i.style[t]&&(i.style[t]=i.getAttribute(`data-original-${t}`)||"",i.removeAttribute(`data-original-${t}`))}));const t=JSON.parse(i.getAttribute("data-original-styles")||"{}");a.textContent=`[data-clientId="${e}"] { ${tn(t)} }`,i.setAttribute(s,"false")}else{r?(p.forEach((t=>{i.style[t]&&i.setAttribute(`data-original-${t}`,i.style[t]||""),f.hasOwnProperty(t)&&(i.setAttribute(`data-original-${t}`,i.style[t]||""),i.style.setProperty(t,f[t]),delete f[t])})),i.setAttribute("data-original-styles",JSON.stringify(d))):p.forEach((t=>{f.hasOwnProperty(t)&&(i.style.setProperty(t,f[t]),delete f[t])}));const t={...d,...f},n=tn(t);a.textContent=`[data-clientId="${e}"] { ${n} }`,r&&i.setAttribute(s,"true")}}}))},nn=t=>{const{getDocument:e=(()=>{})}=window?.codeDesign?.helpers,n=e(),o=t.currentTarget.id,{getState:r}=f.default,i=r(),{data:{blueprint:a},context:s}=i.customization.present,c=a[s]?.meta?.id||s,l=i.customization.present.data.blueprint[c].components[o].props.componentData.linkAction,u=i.customization.present.data.blueprint[c].components[o].parent,p=["margin-left","margin-top","margin-right","margin-bottom","width","height","minWidth","maxWidth","minHeight","maxHeight","display","position"];Object.values(l).forEach((t=>{const e=t?.targetElementId,o=t?.cssCode,r=n.querySelector(`[data-clientId="${e}"]`);if(r){const t=u?`style-section-${u}-${e}-hover`:`style-${e}-hover`;let i=n.querySelector(`#${t}`);i||(i=n.createElement("style"),i.id=t,r.appendChild(i));const a=i.textContent||"",s=Ze(a),c=Ze(o),l={...s,...c},d=tn(l);i.textContent=`[data-clientId="${e}"]:hover { ${d} }`,p.forEach((t=>{c.hasOwnProperty(t)&&(r.style[t]=c[t])}))}})),t.persist(),t.preventDefault()}},4234:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(9756),i=n(6354),a=n(7615),s=n(2005);function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}class l extends o.default.Component{constructor(t){super(t),this.state={done:!1,context:"home"}}async componentDidMount(){const{type:t,blueprint:e,fetchTemplateByKey:n}=this.props;"client-404"===t?e[404]?(this.setState({context:"404"}),this.props.changeContext("404")):(n(t),this.props.changeContext("home")):"deploy-pending"===t&&(n(t),this.props.changeContext("home"))}render=()=>{const{blueprint:t}=this.props,{context:e}=this.state;return t[e]&&t[e].components&&Object.keys(t[e].components).length>0?o.default.createElement(a.default,c({},this.props,{context:e,done:this.state.done,toggleDone:t=>{this.setState({done:t})},pageType:"404"})):o.default.createElement(s.default,null)}}const u=(0,r.$j)((t=>({screenWidth:t.ui.screenWidth,isFetching:t.customization.present.isFetchingHost,gridLayout:t.customization.present.gridLayout,siteData:t.common.data,previewData:t.customization.present.data,isPublishing:t.customization.present.isPublishingPage,blueprint:t.customization.present.data.blueprint,js:t.customization.present.data.js,projectMeta:t.customization.present.data.projectMeta,user:t.user.data,name:t.customization.present.data.name,classes:t.customization.present.data.classes,canvasInit:t.customization.present.canvasInit,storeState:t,analytics:t.customization.present.data.analytics})),(t=>({changeView:e=>{t(i.customizationActions.changeView(e))},updateProjectName:e=>{t(i.customizationActions.updateProjectName(e))},updateBlueprintContents:(e,n,o)=>{t(i.customizationActions.updateBlueprintContents(e,n,o))},initiateCanvas:()=>{t(i.customizationActions.initiateCanvas())},changeContext:e=>{t(i.customizationActions.changeContext(e))},fetchTemplateByKey:e=>{t(i.customizationActions.fetchTemplateByKey(e))}})))(l);e.default=u},98:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(2445),i=n.n(r);const a={},s=(0,r.WidthProvider)(i());class c extends o.default.PureComponent{state={height:""};setHeight=t=>{this.setState({height:t})};render=()=>{const{message:t,history:e}=this.props;return o.default.createElement("div",null,o.default.createElement("div",{className:a["something-went-wrong"]},o.default.createElement("p",{className:a.text},"Oops :( ",o.default.createElement("br",null),t),o.default.createElement("div",{className:a.container},o.default.createElement("div",{className:a.bg},o.default.createElement("div",{className:a.light})),o.default.createElement("div",{className:a.ufo},o.default.createElement("div",{className:a["ufo-bottom"]}),o.default.createElement("div",{className:a["ufo-top"]}),o.default.createElement("div",{className:a["ufo-glass"]},o.default.createElement("div",{className:a.alien},o.default.createElement("div",{className:a["alien-eye"]})))),o.default.createElement("div",{className:a.bed},o.default.createElement("div",{className:a.mattress})),o.default.createElement("div",{className:a.man},o.default.createElement("div",{className:a.foot}),o.default.createElement("div",{className:a.head},o.default.createElement("div",{className:a.face}),o.default.createElement("div",{className:a.hair})),o.default.createElement("div",{className:a["man-body"]}),o.default.createElement("div",{className:a.arm}))),o.default.createElement(s,{rowHeight:30,cols:6,layout:[{i:"try-again",x:2,y:0,w:1,h:4,static:!0},{i:"go-home",x:3.2,y:0,w:1,h:4,static:!0}]},o.default.createElement("div",{key:"try-again"},o.default.createElement("button",{color:"#5294F2",content:"Try Again",onClick:this.forceUpdate},"Success")),o.default.createElement("div",{key:"go-home"},o.default.createElement("button",{color:"#FFA45B",content:"Go Home",onClick:()=>e.push("/")},"Failure")))))}}c.defaultProps={message:"Something went wrong",type:"UNKNOWN_ERROR"},e.default=c},8078:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(9756),i=n(3774),a=n(6113),s=n(1267);class c extends o.default.Component{constructor(t){super(t),this.state={hasError:!1,type:"",message:""}}componentDidMount(){this.debouncedToast=(0,i.debounce)(1500,this.debouncedToast)}debouncedToast=()=>{a.default.track("Error From Error Boundary",{errorMsg:this.state.error.message}),s.default.track("Error From Error Boundary",{errorMsg:this.state.error.message}),window.showToast({type:"error",msg:"An Error was encountered. Please refresh the page to continue"})};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,e){console.log(t,e,"error occured "),this.setState({hasError:!0})}componentDidUpdate(t){const{error:e}=this.props;t.error!==e&&(!e.type||"NETWORK_DOWN"!==String(e.type)&&"INTERNET_DOWN"!==String(e.type)||this.setState({hasError:!0,type:e.type,message:e.message,error:e}))}render(){return this.state.hasError&&window.showToast&&this.debouncedToast(),this.props.children}}
1e.default=(0,r.$j)((t=>({reduxState:t})))(c)},2005:function(t,e,n){"use strict";n.r(e),n.d(e,{ClientLoader:function(){return r}});var o=n(7423);e.default=()=>o.default.createElement("div",{className:"preview-loader-outer"}," ",o.default.createElement("div",{className:"preview-loader"},o.default.createElement("div",{className:"dot"}),o.default.createElement("div",{className:"dot"}),o.default.createElement("div",{className:"dot"}))," ");const r=()=>o.default.createElement("div",{className:"client-loader"})},7615:function(t,e,n){"use strict";n.r(e),n.d(e,{renderMetaTags:function(){return F},scrollToNamedAnchorHash:function(){return k}});var o=n(8908),r=n.n(o),i=n(7423),a=n(2445),s=n(5137),c=n(488),l=n.n(c),u=n(5236),p=n(4742),d=n(3465),f=n.n(d),m=n(4057),h=n(1717),_=n(2005),E=(n(9410),n(9245)),g=n.n(E),y=n(6160),S=n(9756),T=n(85),C=n(2477),b=n(5621),v=n(3703),I=n(1472),A=n(5227),O=n(1982),R=n(6354),P=n(2619),U=n(5017);function w(){return(w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}const L=a.Responsive;class x extends i.default.Component{constructor(t){super(t),this.state={layouts:{},components:[],lazyComponents:[],scrolling:!1,card_container_height:0,card_list:""}}componentWillUnmount(){("preview"===this.status||this.props.isPlaygroundPreview)&&document.body.classList.remove("overflow-hidden"),window.removeEventListener("hashchange",this.handleHashChange)}handleHashChange=()=>{const t=window.namedHashMapOfCurrentPage;k(t,this.props.documentContext)};async componentDidMount(){const{previewData:t,screenWidth:e,changeView:n,isPlaygroundPreview:o=!1}=this.props;if((0,h.bindHelpersToWindow)(),window.location.pathname.startsWith("/page-preview")||o){this.status="preview";let t=window.location.pathname.split("/")[2];this.setState({project:t}),this.props.updateProjectName(t)}else this.status="published";if(("preview"===this.status||o)&&document.body.classList.add("overflow-hidden"),"undefined"!==typeof this.props.previewData.blueprint){let o=(0,h.getViewFromScreenWidth)(e,{activeBreakpoints:[]});n(o);let r="tablet"===o?"md":"mobile"===o?"sm":"bp_1280"===o?"bp_1280":"bp_1440"===o?"bp_1440":"bp_1920"===o?"bp_1920":"lg",i=(0,h.findContext)();!t.blueprint?.[i]&&this.props.context&&(i=this.props.context),this.setState({blueprint:t.blueprint,context:i,currentBreakpoint:r,view:o})}window.addEventListener("hashchange",this.handleHashChange)}async componentDidUpdate(t){const{screenWidth:e,changeView:n,pageType:o,blueprint:r,updateBlueprintContents:i}=this.props;"preview"===this.status&&this.props.context&&this.props.context!==this.state.context&&this.setState({context:this.props.context});const{context:a}=this.state;if(JSON.stringify(t.blueprint[a]&&t.blueprint[a].meta.activeBreakpoints)!==JSON.stringify(r[a]&&r[a].meta.activeBreakpoints)){const{activeBreakpoints:t}=r[a].meta;let o=(0,h.getViewFromScreenWidth)(e,{activeBreakpoints:t});n(o);let i="tablet"===o?"md":"mobile"===o?"sm":"bp_1280"===o?"bp_1280":"bp_1440"===o?"bp_1440":"bp_1920"===o?"bp_1920":"lg";this.setState({currentBreakpoint:i,view:o})}const s="preview"===this.status&&this.props.context?this.props.context:r[a]?a:this.props.context||a;if((r[s]||"404"===o)&&t.screenWidth!==e){const{activeBreakpoints:t}=r[s]?.meta||{};let o=(0,h.getViewFromScreenWidth)(e,{activeBreakpoints:t});n(o);let i="tablet"===o?"md":"mobile"===o?"sm":"bp_1280"===o?"bp_1280":"bp_1440"===o?"bp_1440":"bp_1920"===o?"bp_1920":"lg";this.setState({currentBreakpoint:i,view:o})}const{isFetching:c,previewData:l,initiateCanvas:u,canvasInit:p}=this.props;let d;if(t.isFetching&&!c){const t="preview"===this.status&&this.props.context?this.props.context:(0,h.findContext)();this.setState({blueprint:l.blueprint,context:t})}const f=r[s]&&r[s].version,m=t.blueprint[s]&&t.blueprint[s].version;/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if("preview"===this.status?!this.isUpdatingGrid&&!this.props.done||m!==f:!p&&!this.isUpdatingGrid){if(d=l.blueprint&&l.blueprint[s]&&l.blueprint[s].components,d){this.isUpdatingGrid=!0,await(0,h.initializeGridLayout)({blueprint:this.props.blueprint,updateBlueprintContents:i,type:"canvas",previewContext:s,storeState:this.props.storeState})&&(this.isUpdatingGrid=!1,this.props.toggleDone(!0),p||u(!0))}else;if(("CLIENT"===this.props.origin||"WORDPRESS"===this.props.origin)&&("Client404"===l.name||"404"===l.name||"404"===this.props.context)&&!this.props.done){this.isUpdatingGrid=!0,await(0,h.initializeGridLayout)({blueprint:this.props.blueprint,updateBlueprintContents:i,type:"canvas",previewContext:this.props.context,storeState:this.props.storeState})&&(this.isUpdatingGrid=!1,this.props.toggleDone(!0),p||u(!0))}}if(this.props.done&&!t.done&&"CLIENT"!==this.props.origin&&"WORDPRESS"!==this.props.origin){let t=M({blueprint:this.props.blueprint,context:this.state.context});t&&(window.namedHashMapOfCurrentPage=t),t&&k(t,this.props.documentContext)}if(("CLIENT"===this.props.origin||"WORDPRESS"===this.props.origin)&&"object"!=typeof window.namedHashMapOfCurrentPage&&this.props.blueprint&&this.state.context){let t=M({blueprint:this.props.blueprint,context:this.state.context});t&&(window.namedHashMapOfCurrentPage=t),t&&setTimeout((()=>{k(t,window.document)}),10)}}
1renderComponents(t,e,n,o){const{classes:r,documentContext:a,context:s,origin:c="",windowContext:l,isAdmin:d=!1}=this.props,f="image"===t.type?{width:"100%",height:"100%"}:{},{hasClassesInsideComponent:m,builderStyles:_,stateStyles:E}=(0,h.getClassNamesStyleData)({extraStyles:f,classes:r,component:t,origin:"page",stateNames:h.builderComponentParams.stateNames}),{currentBreakpoint:g}=this.props,S=i.default.createElement(i.Fragment,null,i.default.createElement(p.Z,{targetWindow:"pagePreview"===c&&l?l:window,queries:u.builderMediaQueries},(o=>{const{small:r,medium:s,large:c,bp_1280:l,bp_1440:u,bp_1920:p}=o;let f,g,S,T,C,b;f=r,g=s,S=c,T=l,C=u,b=p;const v=f?{..._.global,..._.mobile}:g?{..._.global,..._.tablet}:S?_.global:T?{..._.global,..._.bp_1280}:C?{..._.global,..._.bp_1440}:b?{..._.global,..._.bp_1920}:{},I=E&&E.focus?f?{...E.focus.global,...E.focus.mobile}:g?{...E.focus.global,...E.focus.tablet}:S?E.focus.global:T?{...E.focus.global,...E.focus.bp_1280}:C?{...E.focus.global,...E.focus.bp_1440}:b?{...E.focus.global,...E.focus.bp_1920}:{}:{},A=E&&E.hover?f?{...E.hover.global,...E.hover.mobile}:g?{...E.hover.global,...E.hover.tablet}:S?E.hover.global:T?{...E.hover.global,...E.hover.bp_1280}:C?{...E.hover.global,...E.hover.bp_1440}:b?{...E.hover.global,...E.hover.bp_1920}:{}:{},O=E&&E.active?f?{...E.active.global,...E.active.mobile}:g?{...E.active.global,...E.active.tablet}:S?E.active.global:T?{...E.active.global,...E.active.bp_1280}:C?{...E.active.global,...E.active.bp_1440}:b?{...E.active.global,...E.active.bp_1920}:{}:{},R=E&&E.placeholder?f?{...E.placeholder.global,...E.placeholder.mobile}:g?{...E.placeholder.global,...E.placeholder.tablet}:S?E.placeholder.global:T?{...E.placeholder.global,...E.placeholder.bp_1280}:C?{...E.placeholder.global,...E.placeholder.bp_1440}:b?{...E.placeholder.global,...E.placeholder.bp_1920}:{}:{},P={main:(0,h.convertCss)(v),focus:(0,h.convertCss)(I),hover:(0,h.convertCss)(A),active:(0,h.convertCss)(O),placeholder:(0,h.convertCss)(R)};let U={};if(d&&t.main===y.builderConstants.BASIC_BLOCKS_MAPPING.HTMLCode){let t=new URLSearchParams(window.location.search);t.get("user")&&(U.showPlaceholder=!0,t.get("enableCode")&&(U.showPlaceholder=!1))}return i.default.createElement(i.Fragment,null,i.default.createElement(e,w({stateManagement:this.props.stateManagement?.global,type:"page",documentContext:a,classNames:m?t.classes&&t.classes.join(" "):"",client_id:t.client_id,name:t.name,category:t.category,compProps:t.props,cssString:P,cssObj:v},t.props,{properties:n},U)),i.default.createElement("style",{id:`style-${t.client_id}`,key:`style-${t.client_id}`},(0,h.generateCSS)({id:t.client_id,cssCombinedObject:P})))}))),T=(0,u.checkNested)(t,"props","componentData","anchor")?t.props.componentData.anchor:{};let{linkType:C,url:b,target:v}=T;"string"===typeof b&&b.includes("{{{$$.")&&o?.contentTemplateData&&(b=(0,I.renderMustacheTemplate)(b,o.contentTemplateData)||b);const A=new URLSearchParams(window.location.search),O=new URLSearchParams;["user","readonly"].forEach((t=>{A?.has(t)&&O.set(t,A.get(t))}));const R=O.toString()?"?"+O.toString():"";if(C&&b){if("preview"!==this.status||"page"!==C&&"dynamicPage"!==C){if("preview"===this.status&&"internal"===C)b=`page-preview/${this.state.project}/${s}${b}${R}`;else if("preview"!==this.status){if("internal"===C){b=`/${("home"===s?"":s).replace(/^\/|\/$/g,"")}/${b.replace(/^\/|\/$/g,"")}`.replace(/\/\/+/g,"/"),b=`${b}${R}`}"page"!==C&&"dynamicPage"!==C||(b=`/${b.replace(/^\/|\/$/g,"")}`.replace(/\bhome\b/,""))}}else b=`page-preview/${this.state.project}/${b}${R}`;return i.default.createElement("a",{rel:"noreferrer",href:`${b}`,onClick:t=>{this.props.isPlayground&&(t.preventDefault(),this.props.setSelectEditModeModal(!0))},target:"on"===v?"_blank":"_parent",className:"anchor-tag-reset cd-padding"},S)}return S}renderLayout=t=>{const{screenWidth:e,gridLayout:n,blueprint:o,context:a,uiState:s,updateUIState:c,documentContext:l}=this.props,{currentBreakpoint:u}=this.state;let p=f()(t);const d=r().serverLoadedComponents?r().serverLoadedComponents:o[a].components;let _=Object.values(d),E={lg:[],sm:[],md:[],bp_1280:[],bp_1440:[],bp_1920:[]};
1if(o[a].layouts){let t=o[a].layouts;Object.keys(t).map((e=>{t[e]&&(E[e]=t[e].filter((t=>{let e=d[t.i]||{};return"undefined"===typeof t.parent&&e.component&&Object.keys(e.component||{}).length>0})))}))}else E=void 0;let S=[];if(E[y.builderConstants.ELEMENT_ORDER_BREAKPOINT]?.map(((t,e)=>{S[e]=_.find((e=>e.client_id===t.i))})),p&&p.background){let t=(0,h.splitString)(p.background);t.pop(),p.background=t.join()}return S.length>0?i.default.createElement(i.Fragment,null,i.default.createElement("section",{id:"heroSection",style:{position:"relative",...p||{}},className:"rgl-container page-preview"},i.default.createElement(L,w({type:"page",documentContext:l,page:o[a],style:{zIndex:"0"},isDraggable:!1,isResizable:!1,className:"layout",breakpoint:this.props.currentBreakpoint||"lg"},this.props.blueprint[a]&&this.props.blueprint[a].meta.gridLayout?this.props.blueprint[a].meta.gridLayout:n,{layouts:E,useCSSTransforms:!1,preventCollision:!1,onDragStart:(t,e,n,o,r)=>this.onDragStart(t,e,n,o,r),onDragStop:(t,e,n)=>this.onDragStop(n),blueprintChanged:this.props.isUpdatingBluePrint||this.state.card_container_height,fetched:this.props.layoutsInitialized}),S.filter((t=>!g()(t))).filter((t=>!!t?.component?.__esModule&&("undefined"===typeof t.parent&&"Global0007"!==t.client_id&&!(null==t.component||t.component&&0===Object.keys(t.component).length)))).map((t=>{const e=t.component.default,n=(t?.classes||[]).join(" "),{tagName:o="div",outProps:r,properties:a,resolvedTemplateData:s}=(0,m.default)(t.main,t,{},{pageLoadedFrom:"page",classNames:n,isElementHiddenInCanvas:!1});return i.default.createElement(o,{...r},i.default.createElement(i.Fragment,null,this.renderComponents(t,e,a,s)))}))),i.default.createElement("style",null,this.props.css))):null};capitalizeFirstLetter=t=>t.charAt(0).toUpperCase()+t.slice(1);renderGivenMetaTags=({title:t,metaDescription:e,metaImage:n,favIcon:o,projectHeadTags:r,pageHeadTags:a,customJS:u})=>{const p={replace:function(t){if("script"===t.name)return i.default.createElement("script",t.attribs,(0,c.domToReact)(t.children))}};return i.default.createElement(s.Helmet,null,i.default.createElement("meta",{charSet:"utf-8",key:"cd-meta-charSet"}),i.default.createElement("title",{key:"cd-page-title"}," ",t," "),"CodeDesign Preview"!==t&&i.default.createElement(i.default.Fragment,null," ",i.default.createElement("meta",{property:"og:title",content:t,key:"cd-page-ogtitle"}),i.default.createElement("meta",{property:"twitter:title",content:t,key:"cd-page-twittertitle"})),e&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"description",content:e,key:"cd-page-metadesc"}),i.default.createElement("meta",{property:"og:description",content:e,key:"cd-page-ogdesc"}),i.default.createElement("meta",{property:"twitter:description",content:e,key:"cd-page-twitterdesc"})),n&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{property:"og:image",content:n,key:"cd-page-ogimage"}),i.default.createElement("meta",{property:"twitter:image",content:n,key:"cd-page-twitterimage"})),o&&i.default.createElement("link",{rel:"icon",href:o}),r&&l()(r,p),a&&l()(a,p),u&&i.default.createElement("script",{type:"text/javascript",id:"custom-js"},u.toString()))};initializeScrollAnimation=()=>{const{windowContext:t,documentContext:e}=this.props;(t||window).requestAnimationFrame((()=>{new T.default({enableCallback:!0,repeat:!1,mirror:!0,threshold:.25,offset:{top:-64,bottom:-150}},t||window,e||document)}))};render=()=>{const{blueprint:t,js:e,windowContext:n,documentContext:o,setShowPaymentPopup:a,showPaymentPopup:c}=this.props;this.props.done&&this.initializeScrollAnimation();let l="home";{const t=window.location.pathname;if("preview"===this.status&&null!=this.props.context&&""!==this.props.context)l=this.props.context;else if(t?.startsWith("/page-preview")||t?.startsWith("/playground-preview"))l=(0,h.findContext)();else{l=(t?.split("/").filter(Boolean)||[]).length>=2&&this.props.context?this.props.context:t?.replace(/^\/|\/$/g,"")}}l||(l="home");const u=r().serverLoadedPageMeta?r().serverLoadedPageMeta:t&&l&&t[l]&&t[l].meta?t&&l&&t[l]&&t[l].meta:{};let p=`try { \n      ${String(e).trim()}\n    } \n    catch(err) { console.error(err)}`;const d=r().serverLoadedProjectMeta?r().serverLoadedProjectMeta:this.props.projectMeta||{};let f,m={name:u.name||"",title:u.title||"",description:u.metaDescription||"",favIcon:u.favIcon||"",headExtras:u.headExtras||"",googleMetaImage:u.googleMetaImage||""},E={title:d.metaTitle||"",description:d.metaDescription||"",favIcon:d.favIcon||"",headExtras:d.headExtras,googleMetaImage:d.googleMetaImage||""},g=m.name||E.name||"",y=m.title||E.title||"",S=m.description||E.description||"",T=m.favIcon||E.favIcon||"",I=E.headExtras||"",R=m.headExtras||"",w=m.googleMetaImage||E.googleMetaImage||"";if(this.props.analytics){const t=this.props.analytics,e="https://analytics-production-api.codedesign.ai/script.
1js";f=i.default.createElement("script",{async:!0,src:e,"data-website-id":t})}const L=d.waterMark,x="undefined"===typeof L||Boolean(L),D=`https://codedesign.ai/?internal=yes&ref=${window.location.host}`,F=t&&l&&t[l]&&t[l].components.Global0007;let k;k=y||(this.props.name&&g?`${this.capitalizeFirstLetter(this.props.name)} | ${this.capitalizeFirstLetter(g)}`:"CodeDesign Preview");let M=F&&F.props&&F.props.componentStyle&&F.props.componentStyle.global;const j="preview"!==this.status&&(!this.props.previewData?.order?.paid||x),B="pagePreview"===this.props.origin,G=this.state.blueprint||t,H=!B||!0!==this.props.isFetching&&G?.[l]?.components;return this.props.done&&(H||this.props.isPlayground)?i.default.createElement("div",{onClick:t=>{this.props.isPlayground&&this.props.setSelectEditModeModal(!0)},style:{cursor:this.props.isPlayground?"pointer":"default"}},i.default.createElement(b.default,{mode:"CLIENT"===this.props.origin?"published":"preview",blueprint:G,currentContext:l,projectId:this.props.previewData?._id??this.state.project}),i.default.createElement(v.default,null),i.default.createElement(s.Helmet,null,i.default.createElement("base",{href:".",target:"_blank"}),i.default.createElement("meta",{name:"version",content:(0,U.returnReactAppVersionOrCommit)(),key:"cd-meta-version"}),"CLIENT"!==this.props.origin&&this.renderGivenMetaTags({title:k,metaDescription:S,metaImage:w,favIcon:T,projectHeadTags:I,pageHeadTags:R,customJS:p}),f,i.default.createElement("body",{style:M?N(M):{}})),this.renderLayout(M),i.default.createElement(C.default,null),c&&i.default.createElement(A.default,{isOpen:c,onClose:()=>{a(!1),(0,P.showToast)({type:"error",msg:"Payment Failed"})}}," ",i.default.createElement(O.default,{token:c})),j&&i.default.createElement("a",{rel:"noreferrer",href:D,target:"_blank",className:"footer-credit",style:{display:x?"block":"none"}},"\ud83d\ude80 Built with CodeDesign.ai")):i.default.createElement(_.default,null)}}const D=(0,S.$j)((t=>({currentBreakpoint:t.customization.present.data.currentBreakpoint,isAdmin:t.user.data.isAdmin,showPaymentPopup:t.ui.showPaymentPopup,dynamicDatalastUpdated:t.common.dynamicData?.lastUpdated})),(t=>({setShowPaymentPopup:e=>t(R.uiActions.showPaymentPopup(e)),setPlaygroundModal:e=>{t(R.uiActions.setPlaygroundModal(e,""))},setSelectEditModeModal:e=>{t(R.uiActions.setSelectEditModeModal(e))}})))(x);function N(t){if(r()&&r().window&&r().window.Option){var e=new(r().window.Option);return Object.keys(t).forEach((function(n){e.style[n]=t[n]})),e.getAttribute("style")}return{}}e.default=D;const F=t=>{const{projectMeta:e,pageMeta:n}=t},k=(t,e=window.document)=>{try{const n=window.location.hash.substring(1);if(!n)return;const o=()=>{let t=e.getElementById(n);t&&t.scrollIntoView()};if(!t)return void o();if(0===Object.keys(t).length)return;const r=t[n];if(!r)return void o();const i=r.split("___");if(3===i.length){const t=i[0],n=i[2]||"";if(!t)return;{const o=e.getElementById(t);if(o){const t={};n&&(t.behavior=n),o.scrollIntoView(t),setTimeout((()=>{history.pushState("",document.title,window.location.pathname+window.location.search)}),2e3)}}}}catch(n){console.log("error occured ",n)}},M=({blueprint:t,context:e})=>{try{if(!t||!e)return;const n=t[e].components;let o={};return Object.keys(n).map((t=>{const e=n[t];if(e.props?.componentData?.hashLinkData?.hashName){const{hashName:t,offsetY:n=0,clientId:r,behavior:i=""}=e.props.componentData.hashLinkData;o={...o,[t]:`${r}___${n}___${i}`}}})),Object.keys(o).length>0?o:void 0}catch(n){}}},5621:function(t,e,n){"use strict";n.r(e),n.d(e,{DynamicDataProvider:function(){return m}});var o=n(7423),r=n(9756),i=n(8919),a=n(6602),s=n(4938),c=n(5857),l=n(9374),u=n(4115);function p(){if(!window.location?.pathname)return!1;const t=window.location.pathname.split("/").filter(Boolean);return t.length>=4&&("page-preview"===t[0]||"playground-preview"===t[0])}function d(){if(!window.location?.pathname)return!1;return window.location.pathname.split("/").filter(Boolean).length>=2}function f(t,e,n,i){const a=(0,r.I0)(),f=(0,r.v9)((t=>t.common?.dynamicData?.cache??{})),m=(0,r.v9)((t=>t.common?.dynamicData?.blueprintIndexes));(0,o.useEffect)((()=>
1{if(!e||!n||!i)return;const o=e[n];if(!o?.components)return;if(!m?.dynamicItemInfo)return;const r=function(t){if(!t?.dynamicItemInfo)return[];const e=new Set;return Object.values(t.dynamicItemInfo).forEach((t=>{t.parentListId&&e.add(t.parentListId)})),Array.from(e)}(m),h=o.components;r.forEach((e=>{const o=h[e];if(!o||"dynamic-list-component-v1"!==o.componentType)return;const r=(0,l.getListFetchParamsFromComponent)(o,m);if(!r?.cacheKey)return void(0,u.trackEvent)("Blog:CacheKeyMissing",{listId:e,context:n,listPath:r?.listPath??null,cmsId:r?.cmsId??null});const c=f[r.cacheKey];(0,l.listRangeSatisfied)(c?.list,r.offset,r.limit,c?.totalCount)||a((0,s.fetchListData)({projectId:i,mergedCacheKey:r.cacheKey,clientId:e,offset:r.offset,limit:r.limit,listPath:r.listPath,cmsId:r.cmsId,sort:r.sort,mode:t}))}));const _=window.location?.pathname?window.location.pathname.split("/").filter(Boolean):[],E=p(),g="published"===t&&d(),y=E||g,S=y?_[_.length-1]:"",T=E?_[_.length-2]:g?_[0]:n,C=e[T]??o;if(("preview"===t||"published"===t)&&y&&!0===C?.meta?.dynamicDataProps?.isDynamicPage&&S){const e=C.meta?.dynamicDataProps?.dataCMSId??C.meta?.dynamicDataProps?.cmsId??"blog",n=(0,c.makeCacheKeyItemBySlug)(e,S);n?f[n]||a((0,s.fetchItemData)({projectId:i,cacheKey:n,slug:S,mode:t})):(0,u.trackEvent)("Blog:PageCacheKeyMissing",{projectId:i,slug:S,cmsId:e,context:T})}}),[t,e,n,i,m,f,a])}function m({mode:t,blueprint:e,currentContext:n,projectId:s}){return function(t,e){const n=(0,r.I0)();(0,o.useEffect)((()=>{if(!t||!e)return;if(!t[e]?.components)return;let o;try{o=(0,i.buildBlueprintIndexes)(t,e)}catch(r){return void(0,u.trackEvent)("Blog:IndexBuildFailed",{context:e,error:r?.message??"Unknown error"})}n((0,a.setBlueprintIndexes)(o))}),[t,e,n])}(e,n),f(t,e,n,s),function(t){const e=(0,r.v9)((t=>t.common?.dynamicData?.pages??{}));(0,o.useEffect)((()=>{if("preview"!==t&&"published"!==t)return;if(!Object.values(e).some((t=>!0===t?.notFound)))return;const n=window.location.pathname.split("/").filter(Boolean);if(n.length<2)return;const o=n[n.length-1];if((0,u.trackEvent)("Blog:404Redirected",{mode:t,slug:o}),"preview"!==t)window.location.href="/404";else{const t=n[0],e=n[1];window.location.href=`/${t}/${e}/404`}}),[t,e])}(t),function(t,e,n,r){const i=(0,o.useRef)(!1);(0,o.useEffect)((()=>{if(i.current)return;if("preview"!==t&&"published"!==t)return;const o=p(),a="published"===t&&d();if(!o&&!a)return;const s=window.location?.pathname?window.location.pathname.split("/").filter(Boolean):[],c=s[s.length-1],l=o?s[s.length-2]:s[0];(e?.[l]??e?.[n])?.meta?.dynamicDataProps?.isDynamicPage&&(i.current=!0,(0,u.trackEvent)("Blog:DynamicPageViewed",{projectId:r,mode:t,slug:c,context:l}))}),[t,e,n,r])}(t,e,n,s),null}e.default=m},3703:function(t,e,n){"use strict";n.r(e),n.d(e,{DynamicPageLoadingOverlay:function(){return a}});var o=n(7423),r=n(9756),i=n(5857);function a(){const{blueprint:t,context:e}=(0,r.v9)((t=>({blueprint:t.customization?.present?.data?.blueprint,context:t.customization?.present?.context}))),n=(0,r.v9)((t=>t.common?.dynamicData?.pages??{}));if(!function(){if(!window.location?.pathname)return!1;const t=window.location.pathname.split("/").filter(Boolean);return t.length>=4&&("page-preview"===t[0]||"playground-preview"===t[0])}())return null;const a=window.location.pathname.split("/").filter(Boolean),s=a[a.length-1],c=t?.[a[a.length-2]]??t?.[e];if(!c?.meta?.dynamicDataProps?.isDynamicPage||!s)return null;const l=c.meta?.dynamicDataProps?.dataCMSId??c.meta?.dynamicDataProps?.cmsId??"blog",u=(0,i.makeCacheKeyItemBySlug)(l,s);if(!u)return null;return!0===n[u]?.isLoading?o.default.createElement("div",{className:"dynamic-page-loading-overlay","aria-busy":"true","aria-live":"polite"}):null}e.default=a},1472:function(t,e,n){"use strict";n.r(e),n.d(e,{renderMustacheTemplate:function(){return r},renderMustacheTemplateEscaped:function(){return i},extractMustacheVariables:function(){return a},validateMustacheTemplate:function(){return s},getValueByPath:function(){return o.getValueByPath},escapeHtml:function(){return o.escapeHtml}});var o=n(996);function r(t,e){return"string"!==typeof t?"":(0,o.render)(t,null!=e?e:{})}function i(t,e){return"string"!==typeof t?"":(0,o.render)(t,null!=e?e:{},{escaped:!0})}function a(t){if("string"!==typeof t)return[];const e=new Set,n=/\{\{\{([^}]+)\}\}\}/g,o=/\{\{([^}]+)\}\}/g;let r;for(;null!==(r=n.exec(t));)e.add(r[1].trim());for(;null!==(r=o.exec(t));)e.add(r[1].trim());return[...e]}function s(t,e){const n=a(t).filter((t=>void 0===(0,o.getValueByPath)(e,t)));return{valid:0===n.length,missing:n}}},8919:function(t,e,n){"use strict";n.r(e),n.d(e,{buildBlueprintIndexes:function(){return a},getStructuralFingerprint:function(){return s},structuralFingerprintEqual:function(){return c}});const o="dynamic-list-component-v1",r="dynamic-item-component-v1";function i(t,e){if(!t)return[];let n;if(e&&"layouts"!==e){const o=t[e];n=o&&o.lg}else n=t.layouts&&t.layouts.lg;return Array.isArray(n)?n.map((t=>
1t&&t.i)).filter(Boolean):[]}function a(t,e){const n={},a={},s={};if(!t||!e)return{dynamicItemInfo:n,nodeToDynamicItemId:a,nodeToDynamicListId:s};const c=t[e];if(!c||!c.components)return{dynamicItemInfo:n,nodeToDynamicItemId:a,nodeToDynamicListId:s};const l=c.components;function u(t,e,n){const p=l[t];if(!p)return;const d=p.componentType===o,f=p.componentType===r,m=d?t:e,h=f?t:n;s[t]=void 0!==m?m:null,a[t]=void 0!==h?h:null;const _=d?t:e,E=f?t:n;i(c,t).forEach((t=>u(t,_,E)))}return i(c,"layouts").forEach((t=>u(t,void 0,void 0))),Object.keys(l).forEach((t=>{l[t].componentType===o&&s[t]===t&&function(t,e,n,a){let s=0;!function c(l){const u=i(t,l);for(let t=0;t<u.length;t++){const i=u[t],l=e[i];l&&(l.componentType===o&&i!==n||(l.componentType===r&&(a[i]={parentListId:n,slotIndex:s},s+=1),c(i)))}}(n)}(c,l,t,n)})),{dynamicItemInfo:n,nodeToDynamicItemId:a,nodeToDynamicListId:s}}function s(t){const e=[],n={},a={};if(!t||!t.components)return{dynamicIds:e,parentMap:n,layoutOrders:a};const s=t.components;function c(e,r,l){const u=s[e];if(!u)return;n[e]=r??"layouts";const p=u.componentType===o,d=l||p,f=i(t,e);d&&f.length>0&&(a[e]=f),f.forEach((t=>c(t,e,d)))}Object.keys(s).forEach((t=>{const n=s[t];!n||n.componentType!==o&&n.componentType!==r||e.push(t)})),e.sort();return i(t,"layouts").forEach((t=>c(t,null,!1))),{dynamicIds:e,parentMap:n,layoutOrders:a}}function c(t,e){if(!t&&!e)return!0;if(!t||!e)return!1;if(JSON.stringify(t.dynamicIds)!==JSON.stringify(e.dynamicIds))return!1;const n=Object.keys(t.parentMap||{}).sort(),o=Object.keys(e.parentMap||{}).sort();if(JSON.stringify(n)!==JSON.stringify(o))return!1;for(let a=0;a<n.length;a++)if((t.parentMap[n[a]]??"")!==(e.parentMap[o[a]]??""))return!1;const r=Object.keys(t.layoutOrders||{}).sort(),i=Object.keys(e.layoutOrders||{}).sort();if(JSON.stringify(r)!==JSON.stringify(i))return!1;for(let a=0;a<r.length;a++){const n=r[a];if(JSON.stringify(t.layoutOrders[n]||[])!==JSON.stringify(e.layoutOrders[n]||[]))return!1}return!0}},5235:function(t,e,n){"use strict";n.r(e),n.d(e,{scanBlueprintLayoutNullish:function(){return d},buildBlueprintIndexingInsights:function(){return m},buildDynamicDataDiagnostics:function(){return h}});var o=n(9590),r=n.n(o),i=n(9394),a=n(8919),s=n(9374),c=n(5857);const l=new Set(["meta","layouts","tempLayouts","components","styles","style","pageSettings"]),u=new Set(["lg","md","sm","xs","xl"]);function p(t){if(!t||"object"!==typeof t||Array.isArray(t))return!1;for(const e of Object.keys(t))if(u.has(e)&&Array.isArray(t[e]))return!0;return!1}function d(t,e){const n=[];if(!t||!e)return{ok:!0,issues:n};const o=t[e];if(!o||"object"!==typeof o)return{ok:!0,issues:n};function r(t,e){if(p(e))for(const o of Object.keys(e)){if(!u.has(o))continue;const r=e[o];Array.isArray(r)&&r.forEach(((e,r)=>{null!==e&&void 0!==e||n.push({path:t,breakpoint:o,index:r})}))}}r("layouts",o.layouts);for(const i of Object.keys(o)){if(l.has(i))continue;const t=o[i];p(t)&&r(i,t)}return{ok:0===n.length,issues:n}}function f(t){if(!t)return"Nothing saved yet";return`${Array.isArray(t.dynamicIds)?t.dynamicIds.length:0} list/item pieces, ${t.parentMap?Object.keys(t.parentMap).length:0} parts on the page, ${t.layoutOrders?Object.keys(t.layoutOrders).length:0} row order inside lists`}function m(t){const e=t?.customization?.present?.data?.blueprint,n=t?.customization?.present?.context,o=e?.[n],s=o?.components??{},c=t?.common?.dynamicData??{},l=c.blueprintIndexes??null,u=c.lastStructuralFingerprint?.[n]??null;if(!e||!n||!o)return{available:!1,reason:e?"No page for this screen.":"No page design loaded."};const p=(0,a.buildBlueprintIndexes)(e,n),d=(0,a.getStructuralFingerprint)(o),m=null!=l&&r()(l,p),h=null!=u?(0,a.structuralFingerprintEqual)(u,d):null,_=p.dynamicItemInfo??{},E=p.nodeToDynamicListId??{},g=p.nodeToDynamicItemId??{},y=[],S=[],T=[],C=[];Object.keys(s).forEach((t=>{const e=s[t]?.componentType;e===i.DYNAMIC_LIST_COMPONENT?y.push(t):e===i.DYNAMIC_ITEM_COMPONENT?S.push(t):e===i.DYNAMIC_LIST_EMPTY_STATE?T.push(t):e===i.DYNAMIC_LIST_ERROR_STATE&&C.push(t)}));const b=y.filter((t=>E[t]===t)),v=y.filter((t=>E[t]!==t)),I=S.filter((t=>null!=_[t])),A=S.filter((t=>null==_[t])),O=Object.keys(E),R=O.filter((t=>null!=E[t])).length,P=Object.keys(g),U=P.filter((t=>null!=g[t])).length,w=T.filter((t=>null!=E[t])),L=C.filter((t=>null!=E[t]));return{available:!0,context:n,storePresent:null!=l,storeSyncedWithRecomputed:m,fingerprint:{storedSummary:f(u),liveSummary:f(d),matchesLive:h,dynamicIdsSample:(d.dynamicIds||[]).slice(0,12)},maps:{dynamicItemInfo:{count:Object.keys(_).length,note:"Each repeating row template gets a number (0, 1, 2\u2026) in depth-first layout order under the list, including nested sections/columns.",entries:Object.keys(_).sort().map((t=>({id:t,..._[t]})))},nodeToDynamicListId:{totalNodes:O.length,nodesWithEnclosingList:R,listRoots:y.filter((t=>E[t]===t)),note:"For each piece on the page: which list it belongs to. The list block points to itself."},nodeToDynamicItemId:{totalNodes:P.length,nodesInsideDynamicItem:U,note:"For each piece: which repeating row it sits inside (used for template data)."}},byType:{lists:{total:y.length,inLayoutTree:b.length,orphaned:v.length},items:{total:S.length,withSlotInIndex:I.length,withoutSlot:A.length},emptyState:{total:T.length,withListBinding:w.length},errorState:{total:C.length,withListBinding:L.length}},orphanedListIds:v,itemIdsMissingSlot:A}}function h(t,e){const n=t?.customization?.present?.data?.blueprint,o=t?.customization?.present?.context,r=n?.[o],a=r?.components??{},l=t?.common?.dynamicData??{},u=l.cache??{},p=l.components??{},d=l.pages??{},f=l.blueprintIndexes??{},m=f.dynamicItemInfo??{},h=f.nodeToDynamicListId??{},_=l.fetchInFlightByKey??{},E=[],g=[],y=[];
1Object.keys(a).forEach((n=>{const o=a[n];if(!o)return;const r=o.componentType;if(r===i.DYNAMIC_LIST_COMPONENT){const t=(0,s.getListCacheKeyFromComponent)(o,f),r=p[n],i=t?u[t]:null,a=Array.isArray(i?.list)?i.list.length:null,c=!0===r?.isLoading||t&&Object.keys(_).some((e=>e.startsWith(t)));E.push({id:n,cacheKey:t||"(none)",isLoading:!0===r?.isLoading,error:r?.error??null,inflight:c,listLength:a,note:e?"While the list is loading, the editor shows sample rows.":"Until the list loads, some rows may stay empty."})}else if(r===i.DYNAMIC_ITEM_COMPONENT){const t=m[n],o=t?.parentListId,r=t?.slotIndex;let i=null,c="";if(o&&a[o]){c=(0,s.getListCacheKeyFromComponent)(a[o],f);const t=c?u[c]?.list:null,e=p[o]?.pagination,n=e?.offset??0,l=null!=r?n+r:null;Array.isArray(t)&&null!=l&&(i=null!=t[l])}const l=!!o&&!0===p[o]?.isLoading;let d="\u2014";d=e?l?"Sample text until the list finishes loading":!1===i?"No data for this row yet (hidden in live site)":!0===i?"Real row data is available":"Waiting for the list request":l?"Shows sample text while loading":!1===i?"Hidden (no row for this slot)":!0===i?"Shows real content":"Waiting for list data",g.push({id:n,parentListId:o??"\u2014",slotIndex:r??"\u2014",hasRow:i,renderHint:d})}else if(r===i.DYNAMIC_LIST_EMPTY_STATE||r===i.DYNAMIC_LIST_ERROR_STATE){const o=h[n],a=o?p[o]:null,s=a?.cacheKey,c=s?u[s]?.list:null,l=s?u[s]?.totalCount:null,d=Array.isArray(c)?c.length:null,f=a?.error??null,m=o?t?.ui?.dynamicListBuilderForce?.[o]:null,_=e&&!!m?.forceEmpty,E=e&&!!m?.forceError;y.push({id:n,kind:r===i.DYNAMIC_LIST_EMPTY_STATE?"empty-state":"error-state",boundListId:o??"\u2014",listLength:d,listError:f,visibilityHint:r===i.DYNAMIC_LIST_EMPTY_STATE?_?"Always shown in the editor (test mode)":a?.isLoading||f||0!==l&&(null!=l||0!==d)?"Hidden for now":"Shown when the list is empty":E?"Always shown in the editor (test mode)":f?"Shown when the request failed":"Hidden for now"})}}));let S=null;if(!0===r?.meta?.dynamicDataProps?.isDynamicPage){let t="";if(window.location?.pathname){const e=window.location.pathname.split("/").filter(Boolean);e.length>=4&&(t=e[e.length-1])}const n=r.meta?.dynamicDataProps?.dataCMSId??r.meta?.dynamicDataProps?.cmsId??"blog",o=t?(0,c.makeCacheKeyItemBySlug)(n,t):"",i=o?d[o]:null,a=o?u[o]?.item:null;S={isDynamicPage:!0,slug:t||"(open a URL with a post slug to test)",pageCacheKey:o||"(needs a slug in the preview link)",isLoading:!0===i?.isLoading,error:i?.error??null,hasItem:null!=a,note:e?"In the editor, page fields use sample blog content.":"On the live preview, page fields fill in after the post loads."}}else S={isDynamicPage:!1,note:"This page is not set up as a single-post template."};return{context:o??"(none)",indexesReady:null!=l.blueprintIndexes,fetchInFlightKeys:Object.keys(_),lists:E,items:g,chrome:y,page:S,cacheKeyCount:Object.keys(u).length}}},5857:function(t,e,n){"use strict";n.r(e),n.d(e,{makeCacheKey:function(){return i},makeCacheKeyList:function(){return a},makeCacheKeyListIdentity:function(){return s},makeCacheKeyItemBySlug:function(){return c},makeCacheKeyItemById:function(){return l},parseCacheKey:function(){return u}});const o="v1",r="::";function i(t,e,n){if(!t||!e)return"";const i=null!=n&&""!==n?String(n):"";return i?[o,t,e,i].join(r):[o,t,e].join(r)}function a(t,e={}){const n=[],{offset:o,limit:a,filters:s,sort:c}=e;return null!=o&&null!=a&&n.push(`page=offset:${Number(o)}&limit:${Number(a)}`),null!=s&&""!==s&&n.push(`filters=${encodeURIComponent(String(s))}`),null!=c&&""!==c&&n.push(`sort=${encodeURIComponent(String(c))}`),i(t,"list",n.join(r))}function s(t,e,n){const o=[],a=null!=e&&""!==e?e:"latest";return o.push(`filters=${encodeURIComponent(String(a))}`),null!=n&&""!==n&&o.push(`sort=${encodeURIComponent(String(n))}`),i(t,"list",o.join(r))}function c(t,e){return null==e||""===e?"":i(t,"item",`slug=${encodeURIComponent(String(e))}`)}function l(t,e){return null==e||""===e?"":i(t,"item",`id=${encodeURIComponent(String(e))}`)}function u(t){if("string"!==typeof t||!t)return null;const e=t.split(r);if(e.length<3)return null;const[n,o,i,...a]=e,s=a.join(r),c={version:n,cmsId:o,type:i,segments:s};if("item"===i&&s){const t={};s.split(r).forEach((e=>{const n=e.indexOf("=");if(n>0){const o=e.slice(0,n),r=e.slice(n+1);try{t[o]=decodeURIComponent(r)}catch{t[o]=r}}})),c.parsedSegments=t}return c}},3838:function(t,e,n){"use strict";n.r(e),n.d(e,{getListComponentCmsKey:function(){return r},getPageCmsKey:function(){return i},isPhase1BlogCollection:function(){return a},itemBelongsToList:function(){return s}});const o="blog";function r(t){if(!t)return null;const e=t.props?.componentData||t.componentData||{},n=e.cmsId??e.cmsType??e.dataCMSId??t.props?.dynamicDataProps?.cmsId??t.dynamicDataProps?.cmsId??o;return String(n||o).toLowerCase()}function i(t){const e=t?.dynamicDataProps;if(!e||!0!==e.isDynamicPage)return null;const n=e.dataCMSId??e.cmsId??o;return String(n||o).toLowerCase()}function a(t){return t===o}function s(t,e,n){if(!t||!e||!n)return!1;let o=t.parent,r=0;for(;o&&"layouts"!==o&&r++<200;){if(o===e.client_id)return!0;o=n[o]?.parent}return!1}},8941:function(t,e,n){"use strict";function o(t){if(null==t)return null;const e=String(t).trim();if(!e)return null;const n=Date.parse(e);return Number.isNaN(n)?null:new Date(n)}function r(t){return null==t?"":String(t)}function i(t,e={}){const n=o(t);if(null==n)return r(t);const{locale:i,timeZone:a,...s}=e;return new Intl.DateTimeFormat(i,{dateStyle:"medium",timeZone:a||void 0,...s}).format(n)}n.r(e),n.d(e,{applyContentPresetFormatter:function(){return l},getRegisteredContentPresetFormatterKeys:function(){return u}
1,BUILDER_CONTENT_PRESET_DROPDOWN_ITEMS:function(){return p},normalizeCmsFieldTypes:function(){return f},cmsFieldKeyLooksImageLike:function(){return h},filterCmsCatalogFieldsForBinding:function(){return g},cmsFieldTypesSupportDateFormatting:function(){return y},extractCmsFieldKeyFromContentTemplate:function(){return S},filterFallbackTemplateItemsForBinding:function(){return T},getCmsFieldTypesForContentTemplate:function(){return C},isDateRelatedFormatterKey:function(){return b},isContentPresetFormatterAllowedForCmsTypes:function(){return v},getContentPresetDropdownItemsForCmsTypes:function(){return I}});const a={plain:r,dateShort:function(t,e={}){const n=o(t);if(null==n)return r(t);const{locale:i,timeZone:a,...s}=e;return new Intl.DateTimeFormat(i,{dateStyle:"short",timeZone:a||void 0,...s}).format(n)},dateMedium:i,dateLong:function(t,e={}){const n=o(t);if(null==n)return r(t);const{locale:i,timeZone:a,...s}=e;return new Intl.DateTimeFormat(i,{dateStyle:"long",timeZone:a||void 0,...s}).format(n)},dateTimeShort:function(t,e={}){const n=o(t);if(null==n)return r(t);const{locale:i,timeZone:a,...s}=e;return new Intl.DateTimeFormat(i,{dateStyle:"short",timeStyle:"short",timeZone:a||void 0,...s}).format(n)},isoDateToLocalMedium:function(t,e){return i(t,e)}},s={dateMediumLegacy:"dateMedium"};function c(t){if(null==t||""===t)return"plain";if("string"!==typeof t)return"plain";const e=t.trim();if(""===e)return"plain";const n=s[e];return n&&a[n]?n:a[e]?e:"plain"}function l(t,e){if(null==e||"object"!==typeof e)return null==t?"":String(t);const n=e.formatter,o=null!=e.options&&"object"===typeof e.options?e.options:{},r=c(n),i=a[r]||a.plain;try{return i(t,o)}catch{return null==t?"":String(t)}}function u(){const t=Object.keys(a),e=Object.keys(s);return[...new Set([...t,...e])].sort()}const p=[{title:"None",value:""},{title:"Date \u2014 short",value:"dateShort"},{title:"Date \u2014 medium",value:"dateMedium"},{title:"Date \u2014 long",value:"dateLong"},{title:"Date & time \u2014 short",value:"dateTimeShort"},{title:"Date \u2014 medium (legacy)",value:"isoDateToLocalMedium"}],d=new Set(["dateShort","dateMedium","dateLong","dateTimeShort","isoDateToLocalMedium"]);function f(t){return Array.isArray(t)?t.filter((t=>"string"===typeof t)).map((t=>t.trim().toLowerCase())):"string"===typeof t&&""!==t.trim()?[t.trim().toLowerCase()]:[]}const m=new Set(["image","asset","media","file"]);function h(t){if("string"!==typeof t||!t.trim())return!1;const e=t.trim();return!!/^featuredImage$/i.test(e)||!!/\.image$/i.test(e)}function _(t){const e=f(t?.type);return e.length>0?e.some((t=>m.has(t))):h(t?.key)}function E(t){const e=f(t?.type);return e.length>0?!e.every((t=>m.has(t))):!h(t?.key)}function g(t,e){if(!Array.isArray(t))return[];const n="image"===e?_:E;return t.filter((t=>t&&n(t)))}function y(t){return!(!t||!t.length)&&t.some((t=>"date"===t||"datetime"===t))}function S(t){if("string"!==typeof t)return null;const e=t.trim(),n=e.match(/^\{\{\{\s*\$\$\.([^}]+?)\s*\}\}\}$/);if(n)return{scope:"list",key:n[1].trim()};const o=e.match(/^\{\{\{\s*\$\$page\.([^}]+?)\s*\}\}\}$/);return o?{scope:"page",key:o[1].trim()}:null}function T(t,e){return Array.isArray(t)?t.filter((t=>{const n=h(S(t.template)?.key||"");return"image"===e?n:!n})):[]}function C(t,e){const n=S(t);if(!n)return null;const o=function(t,e){if(e&&Array.isArray(t))return t.find((t=>t&&"string"===typeof t.key&&t.key===e))}(e,n.key);if(!o)return null;return f(o.type)}function b(t){if(null==t||""===t)return!1;const e=c(String(t).trim());return d.has(e)}function v(t,e){if(null==t||""===t||"plain"===t)return!0;return!b(t)||(null==e||y(e))}function I(t){const e=[{title:"None",value:""}];return null==t?e:y(t)?[...p]:e}},9374:function(t,e,n){"use strict";n.r(e),n.d(e,{getRenderableKeys:function(){return a},makeCacheKey:function(){return r.makeCacheKey},makeCacheKeyList:function(){return r.makeCacheKeyList},makeCacheKeyListIdentity:function(){return r.makeCacheKeyListIdentity},makeCacheKeyItemBySlug:function(){return r.makeCacheKeyItemBySlug},makeCacheKeyItemById:function(){return r.makeCacheKeyItemById},parseCacheKey:function(){return r.parseCacheKey},listRangeSatisfied:function(){return s},mergeListSlice:function(){return c},countDynamicItemsForList:function(){return l},getListFetchParamsFromComponent:function(){return u},getPlaceholderData:function(){return p},convertDynamicPageUrl:function(){return d},getListCacheKeyFromComponent:function(){return f}});var o=n(7484),r=n(5857);function i(t,e,n){if(!t||"object"!==typeof t)return[];const o=[];for(const[r,a]of Object.entries(t))if(null==a||"object"!==typeof a||Array.isArray(a)||a instanceof Date)o.push({label:`${n}: ${r}`,template:`{{{${e}.${r}}}}`});else{const t=i(a,`${e}.${r}`,`${n} \u203a ${r}`);o.push(...t)}return o}function a(){return{listItemKeys:i(o.cardData[0]||{},"$$","List item"),pageKeys:i(o.postData,"$$page","Page")}}function s(t,e,n,o){if(n<=0)return!1;const r="number"===typeof o&&Number.isFinite(o)&&o>=0?o:null;for(let i=0;i<n;i++){const n=e+i;if(null!=r&&n>=r)continue;if(!Array.isArray(t))return!1;const o=t[n];if(void 0===o||null===o)return!1}return!0}function c(t,e,n){const o=Array.isArray(t)?[...t]:[],r=n?.length??0;for(let i=0;i<r;i++){const t=e+i;t>=o.length&&(o.length=t+1),o[t]=n[i]}return o}function l(t,e){const n=t?.dynamicItemInfo;if(!n||!e)return 1;let o=0;
1return Object.values(n).forEach((t=>{t?.parentListId===e&&(o+=1)})),Math.max(1,Math.min(50,o||1))}function u(t,e){if(!t?.client_id)return null;const n=t.props?.dynamicDataProps||t.dynamicDataProps||{},o=n.cmsId??"blog",i=String(n.listPath??n.filterType??"latest").toLowerCase(),a=n.sort??("latest"===i?"publishDate:desc":""),s=Math.max(0,parseInt(n.startIndex,10)||0),c=t.client_id,u=e?l(e,c):Math.max(1,Math.min(50,Number(n.limit)||10));return{cacheKey:(0,r.makeCacheKeyListIdentity)(o,i,String(a)),offset:s,limit:u,listPath:i,cmsId:o,sort:String(a)}}function p(t,e=0){const n="number"===typeof e&&Number.isFinite(e)?Math.max(0,Math.min(Math.floor(e),o.cardData.length-1)):0;return{contentTemplateString:t??"",contentTemplateData:{$$:o.cardData[n]??o.cardData[0],$$page:o.postData}}}function d(t,e="slug"){if(!t||"string"!==typeof t)return"";const n=t.replace(/^\/+|\/+$/g,""),o="{{{$$."+e+"}}}";return n.replace(/:[^/]+/,(()=>o))}function f(t,e){return u(t,e)?.cacheKey??""}},6758:function(t,e,n){"use strict";function o(){return Date.now()}function r(t,e){return{...t,dynamicData:e(t.dynamicData)}}function i(t,e,n){return{...t,cache:{...t.cache,[e]:n},lastUpdated:o()}}function a(t,e,n,r){const i=t[e]&&t[e][n]?t[e][n]:{};return{...t,[e]:{...t[e],[n]:{...i,...r}},lastUpdated:o()}}function s(t,e,n,r,i){const a=t[e]&&t[e][n]?t[e][n]:{},s=a[r]&&"object"===typeof a[r]?a[r]:{};return{...t,[e]:{...t[e],[n]:{...a,[r]:{...s,...i}}},lastUpdated:o()}}function c(t,e,n){if(!e||0===e.length)return{...t,lastUpdated:o()};const[r,...i]=e;if(0===i.length)return{...t,[r]:n,lastUpdated:o()};const a=t[r];return{...t,[r]:l(a,i,n),lastUpdated:o()}}function l(t,e,n){if(!e.length)return n;const[o,...r]=e;return{...t||{},[o]:l(t&&"object"===typeof t?t[o]:void 0,r,n)}}function u(t,e){return{...t,dynamicData:e}}function p(t){return{...t,lastUpdated:o()}}n.r(e),n.d(e,{withDynamic:function(){return r},withCache:function(){return i},upsert:function(){return a},mergeAt:function(){return s},setAtPath:function(){return c},setDynamic:function(){return u},touch:function(){return p}})},5892:function(t,e,n){"use strict";n.r(e),n.d(e,{buildBlueprintIndexes:function(){return o.buildBlueprintIndexes},getStructuralFingerprint:function(){return o.getStructuralFingerprint},structuralFingerprintEqual:function(){return o.structuralFingerprintEqual},makeCacheKey:function(){return r.makeCacheKey},makeCacheKeyItemById:function(){return r.makeCacheKeyItemById},makeCacheKeyItemBySlug:function(){return r.makeCacheKeyItemBySlug},makeCacheKeyList:function(){return r.makeCacheKeyList},makeCacheKeyListIdentity:function(){return r.makeCacheKeyListIdentity},parseCacheKey:function(){return r.parseCacheKey},convertDynamicPageUrl:function(){return i.convertDynamicPageUrl},countDynamicItemsForList:function(){return i.countDynamicItemsForList},getListCacheKeyFromComponent:function(){return i.getListCacheKeyFromComponent},getListFetchParamsFromComponent:function(){return i.getListFetchParamsFromComponent},getPlaceholderData:function(){return i.getPlaceholderData},getRenderableKeys:function(){return i.getRenderableKeys},listRangeSatisfied:function(){return i.listRangeSatisfied},mergeListSlice:function(){return i.mergeListSlice},BUILDER_CONTENT_PRESET_DROPDOWN_ITEMS:function(){return a.BUILDER_CONTENT_PRESET_DROPDOWN_ITEMS},applyContentPresetFormatter:function(){return a.applyContentPresetFormatter},cmsFieldKeyLooksImageLike:function(){return a.cmsFieldKeyLooksImageLike},cmsFieldTypesSupportDateFormatting:function(){return a.cmsFieldTypesSupportDateFormatting},extractCmsFieldKeyFromContentTemplate:function(){return a.extractCmsFieldKeyFromContentTemplate},filterCmsCatalogFieldsForBinding:function(){return a.filterCmsCatalogFieldsForBinding},filterFallbackTemplateItemsForBinding:function(){return a.filterFallbackTemplateItemsForBinding},getCmsFieldTypesForContentTemplate:function(){return a.getCmsFieldTypesForContentTemplate},getContentPresetDropdownItemsForCmsTypes:function(){return a.getContentPresetDropdownItemsForCmsTypes},getRegisteredContentPresetFormatterKeys:function(){return a.getRegisteredContentPresetFormatterKeys},isContentPresetFormatterAllowedForCmsTypes:function(){return a.isContentPresetFormatterAllowedForCmsTypes},isDateRelatedFormatterKey:function(){return a.isDateRelatedFormatterKey},normalizeCmsFieldTypes:function(){return a.normalizeCmsFieldTypes},mergeAt:function(){return s.mergeAt},setAtPath:function(){return s.setAtPath},setDynamic:function(){return s.setDynamic},touch:function(){return s.touch},upsert:function(){return s.upsert},withCache:function(){return s.withCache},withDynamic:function(){return s.withDynamic},escapeHtml:function(){return c.escapeHtml},getValueByPath:function(){return c.getValueByPath},render:function(){return c.render},extractMustacheVariables:function(){return l.extractMustacheVariables},renderMustacheTemplate:function(){return l.renderMustacheTemplate},renderMustacheTemplateEscaped:function(){return l.renderMustacheTemplateEscaped},validateMustacheTemplate:function(){return l.validateMustacheTemplate},resolveDynamicPageLoadingState:function(){return u.resolveDynamicPageLoadingState},resolveListComponentLoadingState:function(){return u.resolveListComponentLoadingState},shouldShowLoadingStateForElement:function(){return u.shouldShowLoadingStateForElement},getHasDataForDynamicItem:function(){return p.getHasDataForDynamicItem},hasDynamicContext:function(){return p.hasDynamicContext},resolveDynamicDataProps:function(){return p.resolveDynamicDataProps},generateMetaTagsHTML:function(){return d.generateMetaTagsHTML},generateMetaTagsReact:function(){return d.generateMetaTagsReact},getDynamicPageMetaTags:function(){return d.getDynamicPageMetaTags},resolveCMSMetaTags:function(){return d.resolveCMSMetaTags},resolvePublicBlogPostSeo:function(){return d.resolvePublicBlogPostSeo}});var o=n(8919),r=n(5857),i=n(9374),a=n(8941),s=n(6758),c=n(996),l=n(1472),u=n(1243),p=n(8283),d=n(4193)},1243:function(t,e,n){"use strict";function o(t,e){if(!t||!e?.common?.dynamicData?.components)return!1;return!0===e.common.dynamicData.components[t]?.isLoading}function r(t,e){if(!t||!e?.common?.dynamicData?.pages)return!1;return!0===e.common.dynamicData.pages[t]?.isLoading}function i(t,e,n={}){const{isBuilder:i,currentPageCacheKey:a}=n??{};if(!0===i)return!1;const s=e?.common?.dynamicData;if(!s)return!1;const{blueprintIndexes:c}=s;if(!c)return!1;const l=t?.client_id;if(!l)return!1;const u=c.nodeToDynamicListId?.[l];return!(!u||!o(u,e))||!(!a||!r(a,e))}n.r(e),n.d(e,{resolveListComponentLoadingState:function(){return o},resolveDynamicPageLoadingState:function(){return r},shouldShowLoadingStateForElement:function(){return i}})},996:function(t,e,n){"use strict";function o(t,e){if(null==t||"string"!==typeof e||""===e)return;const n=e.trim().split(".");let o=t;for(let r=0;r<n.length;r++){if(null==o)return;const t=n[r].trim();if(""===t)return;o=o[t]}return o}function r(t){if(null==t)return"";return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function i(t,e,n={}){if("string"!==typeof t)return"";null==e&&(e={});const i=!0===n.escaped;let a=t;return a=a.replace(/\{\{\{([^}]+)\}\}\}/g,((t,n)=>{const a=o(e,n.trim());return null==a?"":i?r(String(a)):String(a)})),a=a.replace(/\{\{([^}]+)\}\}/g,((t,n)=>{const i=o(e,n.trim());return null==i?"":r(String(i))})),a}n.r(e),n.d(e,{getValueByPath:function(){return o},escapeHtml:function(){return r},render:function(){return i}})},8573:function(t,e,n){"use strict";n.r(e),n.d(e,{fetchPublicBlogPostForSsr:function(){return p},fetchAllPublishedBlogSlugs:function(){return d},collectBlogSitemapEntries:function(){return f},dispatchHydratedBlogPost:function(){return m},hydrateDynamicListsForSsr:function(){return h}});var o=n(4301),r=n.n(o),i=n(5017),a=n(1717),s=n(5857),c=n(9374),l=n(6869);function u(){const t=(0,i.returnAPI)();return t.endsWith("/")?t:`${t}/`}async function p(t,e){if(!t||null==e||""===e)return{error:"Missing project or slug"};const n=encodeURIComponent(String(e)),o=`${u()}api/public/${t}/blog/${n}`,i=await r()(o);if(404===i.status)return{notFound:!0};if(!i.ok)return{error:i.statusText||"Blog fetch failed"};const a=await i.json();return{post:null!=a.data?a.data:a}}async function d(t){const e=[];
1if(!t)return e;let n=0;const o=u();for(;;){const i=`${o}api/public/${t}/blog/latest?limit=50&offset=${n}`,a=await r()(i);if(!a.ok)break;const s=await a.json(),c=s.data||[];for(const t of c)t?.slug&&e.push(String(t.slug));const l=s.pagination?.total??n+c.length;if(n+=c.length,0===c.length||n>=l)break}return e}async function f(t,e,n){const o=e?._id,r=e?.blueprint;if(!o||!r)return[];const i=(0,a.getFilteredBlueprints)("page",r)||{},s=Object.keys(i).filter((t=>{if(i[t]?.meta?.isDraft)return!1;const e=i[t]?.meta?.dynamicDataProps;if(!e?.isDynamicPage)return!1;return"blog"===(e.dataCMSId||e.cmsId||"blog")}));if(0===s.length)return[];const c=await d(o),l=e?.timestamps?.updatedAt||null,u=[];for(const a of s){const e=i[a]?.meta?.dynamicPageUrl;if(e)for(const o of c){const r=e.replace(/:[^/]+/,encodeURIComponent(o));u.push({url:n(t,r),lastModified:l,priority:"0.8"})}}return u}function m(t,{cmsId:e,slug:n,post:o}){const r=(0,s.makeCacheKeyItemBySlug)(e,n);r&&(t({type:l.dynamicDataConstants.SET_CACHE_ENTRY,payload:{cacheKey:r,entry:{item:o,fetchedAt:Date.now()}}}),t({type:l.dynamicDataConstants.SET_PAGE_STATE,payload:{cacheKey:r,state:{cacheKey:r,isLoading:!1,error:null,notFound:!1}}}))}async function h(t,e,{blueprint:n,pageName:o,projectId:i}){if(!i||!n?.[o]?.components)return;const a=e().common?.dynamicData?.blueprintIndexes;if(!a)return;const s=n[o].components,p=function(t){if(!t?.dynamicItemInfo)return[];const e=new Set;return Object.values(t.dynamicItemInfo).forEach((t=>{t.parentListId&&e.add(t.parentListId)})),Array.from(e)}(a);for(const d of p){const n=s[d];if(!n||"dynamic-list-component-v1"!==n.componentType)continue;const o=(0,c.getListFetchParamsFromComponent)(n,a);if(!o?.cacheKey)continue;const{offset:p,limit:f,listPath:m,cacheKey:h}=o,_=(e().common?.dynamicData?.cache??{})[h];if((0,c.listRangeSatisfied)(_?.list,p,f,_?.totalCount))continue;const E=`${u()}api/public/${i}/blog/${m}?limit=${f}&offset=${p}`,g=await r()(E);if(!g.ok)continue;const y=await g.json(),S=y.data??[],T=y.pagination??{},C=T.total??S.length,b=T.totalPages??1,v=T.hasNextPage??T.hasNext??p+S.length<C,I=p,A=e().common?.dynamicData?.components?.[d]?.baseOffset??p,O=!(I<=A)&&(T.hasPreviousPage??T.hasPrev??I>A),R=(e().common?.dynamicData?.cache??{})[h]?.list,P=(0,c.mergeListSlice)(R,p,S);t({type:l.dynamicDataConstants.SET_CACHE_ENTRY,payload:{cacheKey:h,entry:{list:P,totalCount:C,fetchedAt:Date.now(),paginationMeta:{limit:T.limit??f,total:C,totalPages:b,hasNext:v,hasPrev:O}}}});const U=Math.floor((I-A)/f)+1;t({type:l.dynamicDataConstants.SET_COMPONENT_STATE,payload:{clientId:d,state:{cacheKey:h,isLoading:!1,error:null,baseOffset:A,pagination:{currentPage:U,offset:I,limit:f,totalPages:b,totalCount:C,hasNextPage:v,hasPreviousPage:O}}}})}}},8283:function(t,e,n){"use strict";n.r(e),n.d(e,{getHasDataForDynamicItem:function(){return s},hasDynamicContext:function(){return l},resolveDynamicDataProps:function(){return u}});var o=n(6774),r=n(9374),i=n(5857);const a="dynamic-item-component-v1";function s(t,e,n,o){if(!t||t.componentType!==a)return;const r=null!=n?.contentTemplateData&&null!=n.contentTemplateData.$$;if(!e)return r;const i=o?.common?.dynamicData?.blueprintIndexes?.nodeToDynamicListId?.[t.client_id];if(!i)return r;const s=o?.ui?.dynamicListBuilderForce?.[i];return!s?.forceEmpty&&!s?.forceError&&r}function c(t){return t?.props?.dynamicRenderProps??t?.dynamicRenderProps}function l(t){if(!t)return!1;if(!0===c(t)?.isDynamicData)return!0;const e=t.componentType;if("dynamic-list-component-v1"===e||e===a||"dynamic-list-empty-state-v1"===e||"dynamic-list-error-state-v1"===e)return!0;const n=t.client_id;if(!n)return!1;const r=o.default.getState()?.common?.dynamicData?.blueprintIndexes?.nodeToDynamicItemId?.[n];return null!=r}function u(t){const{component:e,isBuilder:n,currentPageCacheKey:a,currentPageSlug:s,allowDynamicPagePlaceholderFallback:u=!1}=t??{};if(!e)return null;if(!l(e))return null;const p=o.default.getState(),d=p?.common?.dynamicData,{isDynamicPage:f}=function(t){const e=t?.customization?.present,n=e?.data?.blueprint,o=e?.context,r=n?.[o]??null;return{page:r,isDynamicPage:!0===r?.meta?.dynamicDataProps?.isDynamicPage}}(p),m=c(e)?.contentTemplate??"",h=function(t){const{component:e,dynamicData:n,contentTemplate:o}=t,{blueprintIndexes:i,cache:a,components:s}=n??{},c=e?.client_id;if(!c||!i)return;const l=i.nodeToDynamicItemId?.[c];if(null==l)return;const u=i.dynamicItemInfo?.[l];if(!u)return;const{parentListId:p,slotIndex:d}=u,f=s?.[p],m=f?.cacheKey,h=(f?.pagination?.offset??0)+d,_=(m?a?.[m]:null)?.list;let E=Array.isArray(_)?_[h]:void 0;!0===(!0===f?.isLoading)&&(E=(0,r.getPlaceholderData)(o??"",d).contentTemplateData?.$$);return E}({component:e,dynamicData:d,contentTemplate:m});let _=a;_||null==s||""===s||(_=(0,i.makeCacheKeyItemBySlug)("blog",s));return{contentTemplateString:m,contentTemplateData:{$$:h,$$page:function(t){const{isBuilder:e,isDynamicPage:n,allowDynamicPagePlaceholderFallback:o,currentPageCacheKey:i,dynamicData:a,contentTemplate:s}=t,{cache:c,pages:l}=a??{},u=()=>(0,r.getPlaceholderData)(s??"",0).contentTemplateData?.$$page;if(e)return n?u():void 0;const p=!0===o&&!0===n;if(!i)return p?u():void 0;const d=l?.[i],f=c?.[i],m=f?.item;return void 0!==m&&null!==m?m:!0===d?.isLoading||p?u():void 0}({isBuilder:n,isDynamicPage:f,allowDynamicPagePlaceholderFallback:u,currentPageCacheKey:_,dynamicData:d,contentTemplate:m})}}}},4193:function(t,e,n){"use strict";n.r(e),n.d(e,{resolveCMSMetaTags:function(){return a},generateMetaTagsHTML:function(){return s},generateMetaTagsReact:function(){return c},resolvePublicBlogPostSeo:function(){return l},getDynamicPageMetaTags:function(){return u}});var o=n(996),r=n(7484),i=n(5857);function a(t){if(null==t||"object"!==typeof t)return{title:"",description:"",canonicalUrl:"",image:""};const e=t.meta&&"object"===typeof t.meta?t.meta:t;return{title:null!=e.title&&""!==String(e.title).trim()?String(e.title).trim():(null!=t.title?String(t.title).trim():"")||"",description:null!=e.description&&""!==String(e.description).trim()?String(e.description).trim():(null!=t.excerpt?String(t.excerpt).trim():"")||"",canonicalUrl:null!=e.canonicalUrl&&""!==String(e.canonicalUrl).trim()?String(e.canonicalUrl).trim():"",image:null!=e.image&&""!==String(e.image).trim()?String(e.image).trim():(null!=t.featuredImage?String(t.featuredImage).trim():"")||""}}function s(t,e={}){if(null==t||"object"!==typeof t)return"";const{title:n,description:r,canonicalUrl:i,image:a}=t,{siteName:s="",twitterSite:c=""}=e,l=[];return n&&l.push(`<title>${(0,o.escapeHtml)(n)}</title>`),r&&l.push(`<meta name="description" content="${(0,o.escapeHtml)(r)}">`),i&&l.push(`<link rel="canonical" href="${(0,o.escapeHtml)(i)}">`),n&&l.push(`<meta property="og:title" content="${(0,o.escapeHtml)(n)}">`),r&&l.push(`<meta property="og:description" content="${(0,o.escapeHtml)(r)}">`),i&&l.push(`<meta property="og:url" content="${(0,o.escapeHtml)(i)}">`),a&&l.push(`<meta property="og:image" content="${(0,o.escapeHtml)(a)}">`),l.push('<meta property="og:type" content="article">'),s&&l.push(`<meta property="og:site_name" content="${(0,o.escapeHtml)(s)}">`),l.push('<meta name="twitter:card" content="summary_large_image">'),n&&l.push(`<meta name="twitter:title" content="${(0,o.escapeHtml)(n)}">`),r&&l.push(`<meta name="twitter:description" content="${(0,o.escapeHtml)(r)}">`),a&&l.push(`<meta name="twitter:image" content="${(0,o.escapeHtml)(a)}">`),c&&l.push(`<meta name="twitter:site" content="${(0,o.escapeHtml)(c)}">`),l.join("\n")}function c(t,e={}){if(null==t||"object"!==typeof t)return[];const{title:n,description:o,canonicalUrl:r,image:i}=t,{siteName:a="",twitterSite:s=""}=e,c=[];return n&&c.push({tag:"title",props:{children:n}}),o&&c.push({tag:"meta",props:{name:"description",content:o}}),r&&c.push({tag:"link",props:{rel:"canonical",href:r}}),n&&c.push({tag:"meta",props:{property:"og:title",content:n}}),o&&c.push({tag:"meta",props:{property:"og:description",content:o}}),r&&c.push({tag:"meta",props:{property:"og:url",content:r}}),i&&c.push({tag:"meta",props:{property:"og:image",content:i}}),c.push({tag:"meta",props:{property:"og:type",content:"article"}}),a&&c.push({tag:"meta",props:{property:"og:site_name",content:a}}),c.push({tag:"meta",props:{name:"twitter:card",content:"summary_large_image"}}),n&&c.push({tag:"meta",props:{name:"twitter:title",content:n}}),o&&c.push({tag:"meta",props:{name:"twitter:description",content:o}}),i&&c.push({tag:"meta",props:{name:"twitter:image",content:i}}),s&&c.push({tag:"meta",props:{name:"twitter:site",content:s}}),c}function l(t){if(null==t||"object"!==typeof t)return null;const e=t.meta&&"object"===typeof t.meta?t.meta:{},n=t.twitterCard&&"object"===typeof t.twitterCard?t.twitterCard:{},o=t.facebookCard&&"object"===typeof t.facebookCard?t.facebookCard:{},r=t=>null!=t&&""!==String(t).trim()?String(t).trim():"",i=r(e.title)||r(t.title)||"",a=r(e.description)||r(t.excerpt)||"",s=r(o.title)||r(e.title)||r(t.title)||"",c=r(o.description)||r(e.description)||r(t.excerpt)||"",l=r(o.image)||r(e.image)||r(t.featuredImage)||"",u=r(n.title)||r(e.title)||r(t.title)||"",p=r(n.description)||r(e.description)||r(t.excerpt)||"";return{title:i||s||u,description:a||c||p,ogTitle:s||i,ogDescription:c||a,ogImage:l,twitterTitle:u||i,twitterDescription:p||a,twitterImage:r(n.image)||r(e.image)||r(t.featuredImage)||""||l,canonicalUrl:r(e.canonicalUrl),publishDate:t.publishDate||t.publishedAt||null}}function u(t,e={}){let n=e.cacheKey;if(n||null==e.slug||null==e.cmsId||(n=(0,i.makeCacheKeyItemBySlug)(e.cmsId,e.slug)),!n||!t?.common?.dynamicData?.cache)return a(r.postData);const o=t.common.dynamicData.cache[n]?.item;return a(null==o||"object"!==typeof o?r.postData:o)}},5570:function(t,e,n){"use strict";n.r(e),n.d(e,{dynamicDataInternalFunctions:function(){return s}});var o=n(6774),r=n(7056);function i(t){return!!t?.classList&&!!t.classList.contains("disabled")}function a(t){const e=t?.currentTarget;if(!e)return null;const n=o.default.getState().common?.dynamicData?.blueprintIndexes,r=n?.nodeToDynamicListId;if(!r||"object"!==typeof r)return null;let i=e;for(;i;){const t=i.getAttribute?.("data-clientid")||i.getAttribute?.("data-clientId");if(t){const e=r[t];if(e)return e}i=i.parentNode}return null}const s={dynamicListLoadNextItemSet:function(t){if(t?.persist?.(),i(t?.currentTarget))return;const e=a(t);e&&o.default.dispatch((0,r.loadNextPage)(e))},dynamicListLoadPreviousItemSet:function(t){if(t?.persist?.(),i(t?.currentTarget))return;const e=a(t);e&&o.default.dispatch((0,r.loadPreviousPage)(e))}}},5651:function(){},5227:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(5697),i=n.n(r);const a=({children:t,isOpen:e,onClose:n})=>e?o.default.createElement("div",{className:"overlay"},o.default.createElement("div",{className:"overlay-content"},o.default.createElement("span",{className:"close-button",onClick:n},"\xd7"),o.default.createElement("div",{className:"content"},t))):null;a.propTypes={children:i().node.isRequired,isOpen:i().bool.isRequired,onClose:i().func.isRequired},e.default=a},1982:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var o=n(7423),r=n(6664),i=n(2859);
1class a extends Error{}function s(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,((t,e)=>{let n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(n){return atob(e)}}a.prototype.name="InvalidTokenError";var c=n(2619),l=n(5017);const{stripePublishableKey:u}=l.default;var p=({token:t})=>{const e=function(t,e){if("string"!==typeof t)throw new a("Invalid token specified: must be a string");e||(e={});const n=!0===e.header?0:1,o=t.split(".")[n];if("string"!==typeof o)throw new a(`Invalid token specified: missing part #${n+1}`);let r;try{r=s(o)}catch(i){throw new a(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new a(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}(t),{orderData:n}=e;console.log(e,"testingkit");const p=(0,i.J)(u,{stripeAccount:n.connectedAccountId}),d={fetchClientSecret:(0,o.useCallback)((async()=>fetch(`${(0,l.returnAPI)()}order/create-checkout-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}).then((t=>t.json())).then((t=>t.clientSecret))),[]),onComplete:()=>{(0,c.showToast)({type:"success",msg:"Payment Successful"})}};return console.log(d,"monark"),o.default.createElement("div",null,o.default.createElement(r.EmbeddedCheckoutProvider,{stripe:p,options:d},o.default.createElement(r.EmbeddedCheckout,{className:"max-h-[80dvh]"})))}},4363:function(t,e,n){"use strict";n.r(e);var o=n(488),r=n.n(o),i=n(7423);class a extends i.Component{constructor(t){super(t),this.state={innerHtml:""}}componentDidUpdate(t){try{this.props.componentData.src===t.componentData.src&&this.props.componentData.autoplay===t.componentData.autoplay||(""===this.props.componentData.src&&this.setState({innerHtml:""}),this.getIframelyHTML(this.props.componentData.src||"","builder"!=this.props.type&&this.props.componentData.autoplay))}catch(e){console.error(e,"Error encountered")}}getIframelyHTML=(t="",e)=>{t&&fetch(`https://iframely.codedesign.app/iframely?url=${t}${e?"&autoplay=1":""}`).then((t=>t.json())).then((t=>this.setState({innerHtml:t.html,init:!0}))).catch((()=>({html:""})))};render(){const{innerHtml:t,init:e}=this.state,{type:n,componentData:o={}}=this.props,a=!t&&{background:"url(https://res.cloudinary.com/storylens/image/upload/v1621073054/static/videoBg.svg)",backgroundPosition:"50% 50%",backgroundSize:"cover",width:"100%",height:"100%"};return e||this.getIframelyHTML(o.src||"","builder"!=n&&o.autoplay),t?i.default.createElement(i.Fragment,null,r()(t)):i.default.createElement("div",{style:a})}}e.default=a},3873:function(){},2044:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(488),i=n.n(r),a=n(8941),s=n(1472);class c extends o.default.PureComponent{render(){const{componentData:t={},compProps:e,resolvedTemplateData:n}=this.props;if(!0===e?.dynamicRenderProps?.isDynamicData&&n){const t=(0,s.renderMustacheTemplate)(n.contentTemplateString,n.contentTemplateData),r=(0,a.applyContentPresetFormatter)(t,e?.dynamicRenderProps?.contentPresetFormatter);return o.default.createElement(o.Fragment,null,i()(r??""))}const{children:r="Simple text here."}=t;return o.default.createElement(o.Fragment,null,i()(r))}}e.default=c},2062:function(t,e,n){"use strict";n.r(e);var o=n(7423);class r extends o.Component{constructor(t){super(t),this.node=o.default.createRef()}state={};applyRef=t=>{this.node=t,this.setState({fakeValue:"hey"})};render(){const{src:t,componentData:e}=this.props,n="object"===typeof e.anchor&&Object.keys(e.anchor).length>0;let r=o.default.createElement("i",{style:{color:"inherit"},className:e?e.icon:t,onMouseDown:t=>t.preventDefault(),alt:"sl"});return o.default.createElement(o.Fragment,null,n&&e.anchor.url?o.default.createElement("a",{rel:"noreferrer",href:e.anchor.url,style:{textDecoration:"none",cursor:"pointer",color:"inherit"},target:"on"===e.anchor.target?"_blank":"_parent"},r):r)}}e.default=r},714:function(t,e,n){"use strict";n.r(e);var o=n(8908),r=n.n(o),i=n(7423),a=n(9756),s=n(2445),c=n(5236),l=n(6354),u=n(9590),p=n.n(u),d=n(3465),f=n.n(d),m=n(7100),h=n(9245),_=n.n(h),E=n(4057),g=n(1472),y=(n(6743),n(1717)),S=n(6160),T=n(9394),C=n(6332);function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}const v=s.Responsive;class I extends i.default.Component{static defaultProps={componentStyle:{global:{backgroundColor:"",borderRadius:"",border:"",boxShadow:"",opacity:"",padding:""}}};constructor(t){super(t),this.state={topGuide:{},rightGuide:{},bottomGuide:{},leftGuide:{},searchText:"",layouts:{}
1,builderLayout:{},highestIndex:0,components:[],resized:!1,lazyComponents:[],breakpoint:"lg",initialRenderComplete:!1,dragStop:!1,layout_history:[],revision_index:1},this.node=i.default.createRef()}shouldComponentUpdate(t,e){try{if(this.props.dynamicDatalastUpdated!==t.dynamicDatalastUpdated)return!0;const{blueprint:n,context:o,selectedComponent:r,client_id:i,formState:a,currentBreakpoint:s,setIsUpdatingBlueprint:c,isFlexResize:l,isLegacyFormUpdating:u={},gridLayoutChildUpdateRequired:d}=this.props;this.prevChildren=[...this.children?this.children:[]];const f=n[o][i]?.[S.builderConstants.ELEMENT_ORDER_BREAKPOINT]?.map((t=>Object.values(n[o].components).find((e=>e.client_id===t.i))?.component?.__esModule)),m=t.blueprint[t.context][i]?.[S.builderConstants.ELEMENT_ORDER_BREAKPOINT]?.map((e=>Object.values(t.blueprint[t.context].components).find((t=>t.client_id===e.i))?.component?.__esModule));return!!f?.some(((t,e)=>!t&&m?.[e]))||(d!==t.gridLayoutChildUpdateRequired||(!p()(u,t.isLegacyFormUpdating)||(!(t.isGeneratingPageUsingAi||!this.props.isGeneratingPageUsingAi)||(!(t.isFlexResize===l||!t.isFlexResize?.includes(i))||(t.isDropping===i||(t.canvasInit!==this.props.canvasInit||(t.currentBreakpoint!==s||(a[i]!=t.formState[i]||(this.state.dragStop!==e.dragStop||(e.initialRenderComplete!=this.state.initialRenderComplete||(this.props.cssObj.padding!==t.cssObj.padding?(c(!0),this.props.updateResizeStatus({resized:!0,recentlyResizedComp:i}),setTimeout((()=>{this.props.updateResizeStatus({resized:!1,recentlyResizedComp:""}),c(!1)}),0),!0):!!(t.blueprint[o][i]&&!this.props.blueprint[o][i]||this.props.blueprint[o][i]&&!t.blueprint[o][i])||(!(!(o&&t.blueprint[o][i]&&this.props.blueprint[o][i])||p()(t.blueprint[o][i][s],this.props.blueprint[o][i][s]))||(JSON.stringify(t.blueprint[o].meta.canvasHiddenElements||[])!==JSON.stringify(this.props.blueprint[o].meta.canvasHiddenElements||[])||(t.resized!==this.props.resized||(t.isUpdatingBluePrint!=this.props.isUpdatingBluePrint||(this.children=(0,y.findAllChildren)(n[o],i,[],!0).flat(1/0),(r!==t.selectedComponent||t.selectedComponent!==i||r!==i)&&(!!this.children.includes(t.selectedComponent)||!(!this.prevChildren||this.children.length===this.prevChildren.length))))))))))))))))))}catch(n){return!1}}async componentDidMount(){const{onComponentDidMount:t=(()=>"")}=this.props;t(),this.layouts=this.props.columnsId||this.props.parent_id||"layouts"}async componentDidUpdate(t,e){const{blueprint:n,context:o,client_id:r,type:i}=this.props;if(e.initialRenderComplete!=this.state.initialRenderComplete&&"page"!==i){const t=document.getElementById("slBuilder");this.canvasHeight=t.offsetHeight,this.canvasWidth=t.offsetWidth}if(!this.state.dragStop||this.props.isUpdatingBluePrint||this.props.isUpdatingLayout)try{const{updateBlueprintContents:e}=this.props;if(this.props.canvasInit&&this.props.isDropping){this.isUpdatingGrid=!0,await(0,y.updateGridLayout)({prevProps:t,blueprint:n,updateBlueprintContents:e,type:"gridlayoutchild",context:o,client_id:r})&&(this.isUpdatingGrid=!1)}}catch(a){console.error(a,"error"),this.props.updateComplete(),this.isUpdatingGrid=!1}}onComponentEdit=t=>{this.setState({components:t})};onDrag=t=>{const{setDragSortedLayouts:e}=this.props;e(t)};onDragStart=(t,e,n,o,r,i)=>{this.props.setDragSortedLayouts(null),this.props.selectedComponent!==n.i&&this.props.storeCurrentComponentId(n.i,4),this.counter=0,this.element=[i],this.setState({dragStop:!0})};onDragStop=t=>{if(this.props.setDragSortedLayouts(null),this.state.dragStop&&this.setState({dragStop:!1}),t){const{blueprint:e,context:n,updateBlueprintContents:o}=this.props;o("blueprint",{...e,[n]:{...t}},!0)}};renderLinks=t=>t&&t.map(((t,e)=>{let n=t.name.charAt(0).toUpperCase()+t.name.slice(1);return i.default.createElement("li",{key:e},i.default.createElement("a",{href:t.url},n))}));handleUserClick=(t={})=>{const{target:e,currentTarget:n}=t,{type:o,blueprint:r,context:i,documentContext:a,updateUIState:s}=this.props,c=r[i],l=a||document;if("page"!==o)return;const u=n.id;if((0,y.findImmediateParentByName)(u,c,"Header")){let t=u;for(;(!t||!t.startsWith("HamburgerContainer"))&&t&&!t.startsWith("HamburgerContainer");)t=(0,y.getParentIdByClientId)(t,r,i);const n=l.getElementById(t);n&&n.contains(e)&&(l.body.style.overflow="hidden",s({hamburgerMenu:!0}))}};renderComponents(t,e,n={},o,r){const{currentBreakpoint:a,client_id:s,documentContext:l,windowContext:u,onStartCapture:p,classes:d,blueprint:f,context:m,type:h,currentStateNameOfComponent:_}=this.props,E="builder"===h?f[m].components[t.client_id]||{}:t,S="image"===t.type?{width:"100%",height:"100%"}:{};f[m].components[s]&&f[m].components[s].name;const T=(0,y.getClassNamesStyleData)({extraStyles:S,classes:d,component:E,
1currentStateName:"builder"===h&&_,origin:"builder"===h?"builderCanvas":"other",stateNames:y.builderComponentParams.stateNames}),{client_id:C}=t,{hasClassesInsideComponent:v,builderStyles:I,stateStyles:A}=T,O="sm"===a?{...I.global,...I.mobile}:"md"===a?{...I.global,...I.tablet}:I.global,R=A&&A.focus?"sm"===a?A.focus.mobile:"md"===a?A.focus.tablet:A.focus.global:{},P=A&&A.hover?"sm"===a?A.hover.mobile:"md"===a?A.hover.tablet:A.hover.global:{},U=A&&A.active?"sm"===a?A.active.mobile:"md"===a?A.active.tablet:A.active.global:{},w=A&&A.placeholder?"sm"===a?A.placeholder.mobile:"md"===a?A.placeholder.tablet:A.placeholder.global:{},L={main:(0,y.convertCss)(O),focus:(0,y.convertCss)(R),hover:(0,y.convertCss)(P),active:(0,y.convertCss)(U),placeholder:(0,y.convertCss)(w)};function x({element:t}){const e=t?.getAttribute("data-clientid");return"slider-component-v1"===f[m].components[e].componentType}this.currentBreakpoint=a,this[`${C}CssString`]=L,this[`${C}classNamesStyleData`]=T,this[`${C}CssObject`]=O,this[`${C}flag`]=v;const D={onMountSliderForAutoplay:t=>{const e=l||document;let n=e.getElementById(t),o=t;for(;n&&!x({element:n});)n=n.parentNode,o=n?.getAttribute("data-clientid");const r=f[m].components[o]||null;if(!r)return;const i=r.componentStructureMap.slidesWrapper,a=e?.getElementById(i),s=a?.getBoundingClientRect?.()?.width,c=[...a?.childNodes||[]];let u=c.length-1;const p=r?.props?.componentData||{},{sliderAutoPlay:d=!1,sliderAutoplayStartDelay:h=2e3,slideDuration:_=2e3,sliderAutoplayStopAfter:E=6e4}=p;if(!d)return;const g=()=>{let t=((this.props.clientState[`${r.client_id}__currentIndex`]||0)+1)%u;this.props.updateIndividualClientState(`${r.client_id}__currentIndex`,t),N({currentIndex:t,slideElements:c,slidesWrapperWidth:s})};setTimeout((()=>{g();const t=setInterval(g,Math.abs(_));setTimeout((()=>{clearInterval(t)}),Math.abs(E))}),Math.abs(h))},showSlide:(t=0,e=[])=>{},nextSlide:t=>{t?.persist();let e=t.currentTarget,n=e?.getAttribute("data-clientid");for(;e&&!x({element:e});)e=e.parentNode,n=e?.getAttribute("data-clientid");const o=f[m].components[n]||null;if(!o)return;const r=o.componentStructureMap.slidesWrapper,i=(l||document)?.getElementById(r),a=i?.getBoundingClientRect?.()?.width,s=[...i?.childNodes||[]];let c=((this.props.clientState[`${o.client_id}__currentIndex`]||0)+1)%(s.length-1);this.props.updateIndividualClientState(`${o.client_id}__currentIndex`,c),N({currentIndex:c,slideElements:s,slidesWrapperWidth:a})},prevSlide:t=>{let e=t.currentTarget,n=e?.getAttribute("data-clientid");for(;e&&!x({element:e});)e=e.parentNode,n=e?.getAttribute("data-clientid");const o=f[m].components[n]||null;if(!o)return;const r=o.componentStructureMap.slidesWrapper,i=(l||document)?.getElementById(r),a=i?.getBoundingClientRect?.()?.width,s=[...i?.childNodes||[]];let c=this.props.clientState[`${o.client_id}__currentIndex`],u=s.length-1,p=((c||0)-1+u)%u;this.props.updateIndividualClientState(`${o.client_id}__currentIndex`,p),N({currentIndex:p,slideElements:s,slidesWrapperWidth:a})}},N=({currentIndex:t,sliderId:e,slideElements:n=[],slidesWrapperWidth:o})=>{"undefined"!==typeof t&&o&&n.forEach((e=>{e.style.transform=`translateX(-${t*o}px)`}))},F=t.executableInternalFunctions?.onMount?.[0],k=t.executableInternalFunctions?.onClick?.[0],M=D[k]||null,j=D[F]||null,B=i.default.createElement(i.Fragment,null,i.default.createElement(e,b({currentIteratingComponent:t,onComponentDidMount:()=>"builder"!==h&&j?.(t.client_id),onUserClick:t=>{"builder"!==h&&M?.(t)},compProps:E.props,classNames:this[`${C}flag`]?E.classes&&E.classes.join(" "):"",type:this.props.type,key:C,client_id:C,clientId:C,cssObj:this[`${C}CssObject`],cssString:this[`${C}CssString`],parent_id:s,name:t.name,category:t.category,documentContext:l,windowContext:u,onStartCapture:p},t.props,null,{properties:n,resolvedTemplateData:o,hasData:r})),i.default.createElement("style",{id:`style-section-${s}-${C}`,key:`style-section-${s}-${C}`},(0,y.generateCSS)({id:C,cssCombinedObject:this[`${C}CssString`]}))),G=(0,c.checkNested)(t,"props","componentData","anchor")?t.props.componentData.anchor:{};let{linkType:H,url:z,target:$}=G||{};if("page"!==this.props.type||!H||!z)return B;"string"===typeof z&&z.includes("{{{$$.")&&(z=(0,g.renderMustacheTemplate)(z,o?.contentTemplateData)||z);{const t=(window.location.href.includes("dev.codedesign.app")||window.location.href.includes("dev.codedesign.ai")||window.location.href.includes("staging-production-jqesv.codedesign.app")||window.location.href.includes("dev.cdsn.me")||window.location.href.includes("localhost:3000"))&&"/playground"===window.location.pathname,e=window.location.href.includes("dev.codedesign.app")||window.location.href.includes("dev.codedesign.ai")||window.location.href.includes("staging-production-jqesv.codedesign.app")||window.location.href.includes("dev.cdsn.me")||window.location.href.includes("localhost:3000"),n=["user","readonly"],o=new URLSearchParams(window.location.search),r=new 
1URLSearchParams;n.forEach((t=>{o.has(t)&&r.set(t,o.get(t))}));const a=r.toString()?"?"+r.toString():"";if(t||!e||"page"!==H&&"dynamicPage"!==H||(z=`page-preview/${this.props.project}/${z}${a}`),!t&&e&&"internal"===H&&(z=`page-preview/${this.props.project}/${m}${z}${a}`),!t||"page"!==H&&"dynamicPage"!==H||(z=`playground/${z}${a}`),!e){if("internal"===H){z=`/${("home"===m?"":m).replace(/^\/|\/$/g,"")}/${z.replace(/^\/|\/$/g,"")}`.replace(/\/\/+/g,"/"),z=`${z}${a}`}"page"!==H&&"dynamicPage"!==H||(z=`/${z.replace(/^\/|\/$/g,"")}`.replace(/\bhome\b/,""))}return i.default.createElement("a",{rel:"noreferrer",href:z,onClick:e=>{t&&(e.preventDefault(),this.props.setSelectEditModeModal(!0))},className:"anchor-tag-reset cd-padding",style:{textDecoration:"none"},target:"on"===$?"_blank":"_parent"},B)}}ungroupComponents=()=>{};onResizeStart=t=>{this.counter=0,this.props.selectedComponent!==t.i&&this.props.storeCurrentComponentId(t.i,5),this.props.updateResizeStatus({resized:!0,recentlyResizedComp:t.i})};onResize=()=>{this.props.toggleShowLayout||this.counter++};onResizeStop=(t,e)=>{this.counter=0,this.setState({resized:!1}),setTimeout((()=>this.props.updateResizeStatus({resized:!1,recentlyResizedComp:""})));const{blueprint:n,context:o,saveLayout:r,currentBreakpoint:i}=this.props;if("Columns"===n[o].components[e.i].name){let t=f()(n[o][e.i]);if(!t||"lg"!==i||!t[i].some((t=>t.y>0))){let n=0;t[i].map((t=>n+=t.w)),n<=12&&t[i].map((t=>t.h=e.h)),r(t,e.i,1)}}};isDragDisabledForElement=t=>{let e=!1;return(this.props.blueprint[this.props.context]?.components[t]?.disabledBuilderFunctions||[]).includes(S.DISABLED_BUILDER_FUNCTIONS.drag)&&(e=!0),e};render=()=>{const{view:t,gridLayout:e,context:n,windowContext:o,documentContext:a,blueprint:s,client_id:l,resized:u,type:p,selectedComponent:d,canvasTransform:m,compProps:h,formState:g,currentBreakpoint:C,onUserClick:I=(()=>{}),selfProps:A={},userRole:O}=this.props,R=r().serverLoadedComponents?r().serverLoadedComponents:s[n].components;let P=Object.values(R),U={lg:[],sm:[],md:[],bp_1280:[],bp_1440:[],bp_1920:[]};const w=(0,y.checkIfElementIsPartOfAGroup)(s[n],l);s[n][l]&&Object.keys(s[n][l]).map((t=>{U[t]=s[n][l][t].filter((t=>{if(t&&t?.i)return!0}))}));let L,x=(0,y.findLayout)(l,s[n]);if((0,c.checkNested)(x,C,0,"h")&&(L=x[C]&&x[C][0].h),!this.props.client_id)throw new Error("client_id is undefined");let D="."+l+"-parent-handle";const N=h&&h.componentData&&h.componentData.isFlex||!1;let F=!1;if(this.props.cssObj&&this.props.cssObj.padding){let t=this.props.cssObj.padding.split(" ");"0px"==t[0]&&"0px"==t[1]&&"0px"==t[2]&&"0px"==t[3]||(F=!0)}let k=[];U[S.builderConstants.ELEMENT_ORDER_BREAKPOINT].map(((t,e)=>{k[e]=P.find((e=>e.client_id===t.i))}));const M="builder"===this.props.type&&s[n].meta.canvasHiddenElements?.join(" ")||"";return U?i.default.createElement(v,b({isLinkedComponentCanvas:this.props.isLinkedComponentCanvas,gridItemUpdateRequired:this.props.gridLayoutChildUpdateRequired,context:n,windowContext:o,documentContext:a,onUserClick:I,usePercentages:F,compCSS:this.props.cssString,page:s[n],compProps:h,dataClientId:l,type:this.props.type,draggableCancel:".non-draggable",dragStop:this.state.dragStop,breakpoint:C,selectedComponent:d,id:l+"grid",style:{zIndex:"3"},maxRows:L,isDraggable:"page"!==p&&O&&"readonly"!==O&&!this.isDragDisabledForElement(l),isResizable:"page"!==p&&O&&"readonly"!==O,className:`rgl-container ${"Container"===this.props?.name&&"page"===this.props?.type&&"container"} layout ${N?"isFlex":""}`,compactType:N?"horizontal":null,layouts:f()(U)},this.props.blueprint[n].meta.gridLayout?this.props.blueprint[n].meta.gridLayout:e,{onLayoutChange:this.handleLayoutChange,useCSSTransforms:!1,preventCollision:!1,onDrag:t=>this.onDrag(t),onDragStart:(t,e,n,o,r,i)=>this.onDragStart(t,e,n,o,r,i),onDragStop:t=>this.onDragStop(t),onResize:(t,e,n,o,r)=>{this.onResize(n)},onResizeStart:(t,e,n,o,r)=>{this.onResizeStart(n)},onResizeStop:(t,e,n,o,r)=>this.onResizeStop(t,n),blueprintChanged:this.props.isUpdatingBluePrint,fetched:this.props.layoutsInitialized,transformScale:"web"===t?m:1,draggableHandle:D}),(0===k.length&&A["data-column"],0===k.length&&"UI/GridLayoutChild/index.js"===this.props.currentIteratingComponent?.main&&(this.props.currentIteratingComponent?.props?.componentStyle?.global?.backgroundImage||this.props.currentIteratingComponent?.props?.componentStyle?.global?.background||this.props.currentIteratingComponent?.props?.componentStyle?.global?.backgroundColor),k.filter((t=>!_()(t))).filter((t=>
1{if(!t?.component?.__esModule)return!1;const e=t.props&&t.props.componentData&&t.props.componentData.hideIn||[];return t.parent===l&&(!(null==t.component||t.component&&0===Object.keys(t.component).length)&&(e&&!e.includes(C)))})).map((t=>{const e=t.component.default,o=(t?.classes||[]).join(" ");let r;try{r=M.search(t.client_id)>-1}catch(h){r=!1}const a=s[n][t.client_id]?s[n][t.client_id]?.lg?.length:0,{tagName:c="div",outProps:l,properties:u,resolvedTemplateData:d,hasData:f}=(0,E.default)(t.main,t,{},{type:this.props.type,pageLoadedFrom:p,classNames:o,isElementHiddenInCanvas:r,isPartOfAGroup:w,blockComponentChildrenLength:a,layouts:s[n][t.parent||"layouts"]?.lg});if(t.componentType===T.DYNAMIC_ITEM_COMPONENT&&!1===f)return null;const m=this.renderComponents(t,e,u,d,f);return i.default.createElement(c,l,m)})))):i.default.createElement("div",null)};handleLayoutChange=(t,e)=>{if("page"===this.props.type)return;e=f()(e),t=f()(t);const{blueprint:n,context:o,saveLayout:r,client_id:i,currentBreakpoint:a}=this.props,s=(0,y.mergeLayoutsAndRemoveDuplicates)(e,t,a);if(e[a]=s,this.state.initialRenderComplete){if(this.props.canvasInit){let s=Object.values(n[o].components);const c=e[a].map((t=>t.i));e[S.builderConstants.ELEMENT_ORDER_BREAKPOINT]=c.map((t=>e[S.builderConstants.ELEMENT_ORDER_BREAKPOINT].find((e=>e.i===t)))),Object.keys(e).map((t=>{e[t]=e[t].filter((t=>s.filter((e=>e.client_id===t.i)).length>0))})),r(e,i,5,t)}}else this.setState({initialRenderComplete:!0})}}const A=(0,a.$j)((t=>({classes:t.customization.present.data.classes,currentStateNameOfComponent:t.customization.present.currentStateNameOfComponent,layoutsInitialized:t.customization.present.layoutsInitialized,view:t.customization.present.data.view,currentBreakpoint:t.customization.present.data.currentBreakpoint,screenWidth:t.ui.screenWidth,blueprint:t.customization.present.data.blueprint,gridLayout:t.customization.present.gridLayout,resized:t.customization.present.resized,recentlyResizedComp:t.customization.present.recentlyResizedComp,deletionKey:t.customization.present.deletionKey,isUpdatingLayout:t.customization.present.isUpdating,isUpdatingBluePrint:t.customization.present.isUpdatingBluePrint,isDeletingComponent:t.customization.present.isDeletingComponent,recentlyAddedComponent:t.customization.present.data.recentlyAddedComponent,recentlyremovedComponentId:t.customization.present.data.recentlyremovedComponentId,selectedComponent:t.customization.present.data.currentlySelectedComponentId,context:t.customization.present.context,componentManifest:t.customization.present.data.componentManifest,recentlyUpdatedComponents:t.customization.present.data.recentlyUpdatedComponents,autoResponsiveComps:t.customization.present.autoResponsiveComps,toggleShowLayout:t.customization.present.showCustomLayout,canvasTransform:t.customization.present.canvasTransform,formState:t.customization.present.formState,canvasInit:t.customization.present.canvasInit,isDropping:t.customization.present.isDropping,windowContext:t.customization.present.windowContext,project:t.customization.present.project,functions:t.functions.data.functionDefinitions,userRole:t.customization.present.userRole,clientState:t.stateManagement,isGeneratingPageUsingAi:t.customization.present.isGeneratingPageUsingAi,isFlexResize:t.ui.isFlexResize,isLegacyFormUpdating:t.ui.isLegacyFormUpdating,gridLayoutChildUpdateRequired:t.ui.gridLayoutChildUpdateRequired,dynamicDatalastUpdated:t.common.dynamicData?.lastUpdated})),(t=>({setDragSortedLayouts:e=>{t(l.uiActions.setDragSortedLayouts(e))},setPlaygroundModal:e=>{t(l.uiActions.setPlaygroundModal(e,""))},setSelectEditModeModal:e=>{t(l.uiActions.setSelectEditModeModal(e))},saveToServer:e=>t(l.customizationActions.saveToServer(e)),setIsUpdatingBlueprint:e=>{t({type:m.customizationConstants.SET_IS_UPDATING_BLUEPRINT,payload:e})},exchangeChildren:(e,n,o,r)=>{t(l.customizationActions.exchangeChildren(e,n,o,r))},showErrorAlert:e=>{t(l.alertActions.error(e.toString()))},saveLayout:(e,n)=>{t(l.customizationActions.saveLayoutToServer(e,n))},saveComponentManifest:(e,n)=>{t(l.customizationActions.saveComponentAsPreset(e,n))},updateComponentManifest:e=>{t(l.customizationActions.updateComponentManifest(e))},updateComplete:()=>{t(l.customizationActions.blueprintAndLayoutUpdateComplete())},ungroupComponents:(e,n,o,r)=>{t(l.customizationActions.ungroupComponents(e,n,o,{currentBreakpoint:r}))},updateComponentProps:e=>{t(l.customizationActions.updateComponentProps(e))},updateResizeStatus:e=>{t(l.customizationActions.updateResizeStatus(e))},storeCurrentComponentId:e=>{t(l.customizationActions.storeCurrentComponentId(e))},toggleComponentEditModal:e=>{t(l.customizationActions.toggleComponentEditModal(e))},updateBlueprintContents:(e,n,o)=>{t(l.customizationActions.updateBlueprintContents(e,n,o))},updateUIState:(e={})=>{t(l.customizationActions.updateUIState(e))},updateIndividualClientState:(e,n)=>{e&&t({type:C.stateManagementConstants.UPDATE_INDIVIDUAL_ITEM,payload:{itemKey:e,itemValue:n}})}})))(I);e.default=A},8538:function(t,e,n){"use strict";n.r(e);var o=n(7423);class r extends o.default.Component{render=()=>o.default.createElement("div",null)}e.default=r},3522:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(488),i=n.n(r),a=n(9994);class s extends o.default.PureComponent{constructor(){super(),this.state={}}componentDidCatch(t){console.log(t,"An error occurred within your HTML Code Component"),this.setState({error:t})}render(){const{componentData:t={},showPlaceholder:e=!1,type:n}=this.props,{htmlCode:r=""}=t,{error:s}=this.state;let c="builder"===n?{pointerEvents:"none"}:{};if(c={...c,height:"100%",width:"100%"},s)return o.default.createElement("div",null," Invalid HTML Code. ",s?.toString()," ");try{const t=((t,e,n=[])=>{if(!t.includes("iframe")||0===n.length)return t;try{const o=(new DOMParser).parseFromString(t,"text/html"),r=o.querySelector("iframe");
1if(r){const t=r.getAttribute("src"),i=new URL(t);return n.forEach((t=>{"autoplay"===t&&"builder"===e&&"1"===i.searchParams.get(t)&&i.searchParams.set(t,"0")})),r.setAttribute("src",i.toString()),o.body.innerHTML}}catch(s){console.error("Error parsing HTML:",s)}return t})(r,n,["autoplay"]),l=i()(t);return!r.trim()||e?o.default.createElement(a.Placeholder,{type:"Code",placeholder:"Add Code from the Right Sidebar"}):o.default.createElement("div",{style:c},o.default.createElement(o.Fragment,null,l))}catch(l){return o.default.createElement("div",{style:c},o.default.createElement(o.Fragment,null,o.default.createElement(a.Placeholder,{type:"Code",placeholder:"Add Code from the Right Sidebar"})))}}}e.default=s},8634:function(t,e,n){"use strict";n.r(e);var o=n(488),r=n.n(o),i=n(6561),a=n(7423);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}class c extends a.Component{constructor(t){super(t),this.state={renderContent:"",hasError:!1}}componentDidMount(){try{const t=this.getIframe(this.props.componentData?.src);this.setState({renderContent:t})}catch(t){console.error(t,"An error has occured ")}}componentDidUpdate(t){const{compProps:{componentData:{src:e}={}}={}}=this.props;if(t.compProps?.componentData?.src!==e)try{let t={renderContent:this.getIframe(this.props.componentData?.src)};this.state.hasError&&(t={...t,hasError:!1}),this.setState({...t})}catch(n){console.error(n,"An error has occured ")}}getIframe=(t="")=>{const e={replace:function(t){if("iframe"===t.name){const{style:e="",...n}=t.attribs||{},r=function(t=""){if(!t)return;for(var e={},n=t.split(";"),o=0;o<n.length;o++){var r=n[o].split(":");const t=r.splice(0,1)[0]?.trim();t&&(e[t]=r.join(":")?.trim())}return e}(e);let i={},c={};return n&&Object.keys(n).forEach((t=>{let e=""===n[t]?"true":n[t],o=l[t]||t;i[o]=e})),r&&Object.keys(r).map((t=>{let e=r[t];c={...c,[u(t)]:e}})),a.default.createElement("iframe",s({},i,{style:c,width:"100%",height:"100%"}),(0,o.domToReact)(t.children))}if("tag"===t.type&&"script"===t.name)return a.default.createElement("script",t.attribs,(0,o.domToReact)(t.children))}};return t?r()(t,e):"placeholder"};componentDidCatch(){this.setState({hasError:!0})}render(){const{compProps:{componentData:{src:t=""}={}}={},type:e}=this.props;let n="";window.location.pathname.startsWith("/page-preview")&&(n="true");const o="builder"===e?{pointerEvents:"none"}:{};return a.default.createElement(i.ZP,{sandbox:"allow-popups allow-modals allow-scripts allow-forms allow-same-origin",width:"100%",height:"100%",head:a.default.createElement(a.Fragment,null,a.default.createElement("link",{rel:"stylesheet",href:"/assets/css/reset.css"}),r()(`<style>\n              body{overflow:hidden;}\n              html,body,.frame-content,.frame-root{\n                height:100%;\n                ${"builder"===e?"pointer-events:none;":""}\n              }\n            </style>`)),style:o},this.state.hasError?"An Error Occured. Check the input. If the error still exists, contact support!":this.state.renderContent)}}e.default=c;const l={allowfullscreen:"allowFullScreen",accesskey:"accessKey",contenteditable:"contentEditable",spellcheck:"spellCheck",tabindex:"tabIndex",frameborder:"frameBorder",referrerpolicy:"referrerPolicy",srcdoc:"srcDoc"};function u(t){return(t=t.replace(/^(\s+)?-(?=ms)/,"").trim()).replace(/(\-\w)/g,(t=>t[1].toUpperCase()))}},9597:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(5697),i=n.n(r),a=n(1472);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}class c extends o.default.PureComponent{constructor(t){super(t),this.state={animationStyle:""}}componentDidMount(){}render(){const{windowContext:t,documentContext:e,client_id:n,classNames:r="",src:i,componentData:c={},properties:l={},resolvedTemplateData:u,compProps:p,...d}=this.props,f=!0===p?.dynamicRenderProps?.isDynamicData,{imgAttr:m={}}=c;let h=i,_="sl";if(f&&u){const{contentTemplateString:t,contentTemplateData:e}=u;h=(0,a.renderMustacheTemplate)(t,e)||i;const n=p?.dynamicRenderProps?.altTemplate;n&&(_=(0,a.renderMustacheTemplate)(n,e)||"sl")}return o.default.createElement(o.Fragment,null,o.default.createElement("img",s({className:r,"data-clientId":n,id:n+"-id",src:h||"https://assets-v2.codedesign.ai/storage/v1/object/public/codedesign_assets/defaultBgImage.svg",onMouseDown:t=>t.preventDefault(),alt:_},l,d)),m.username&&m.userUrl&&o.default.createElement("figcaption",{style:{fontSize:"14px",lineHeight:"20px",fontWeight:"400",textAlign:"center",color:"#757575"}},"Photo by"," ",o.default.createElement("a",{href:m.userUrl,target:"_blank",rel:"noreferrer",style:{textDecoration:"underline"}},"@",m.username," "),"on"," ",o.default.createElement("a",{href:"https://unsplash.com",target:"_blank",rel:"noreferrer",style:{textDecoration:"underline"}},"Unsplash")))}}
1c.propTypes={className:i().string,style:i().object},c.defaultProps={componentStyle:{global:{}}},e.default=c},2866:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(488),i=n.n(r);class a extends o.default.PureComponent{render(){const{componentData:t={}}=this.props,{svg:e=""}=t;try{const t=i()(e);return o.default.createElement(o.Fragment,null,t)}catch(n){return o.default.createElement(o.Fragment,null)}}}e.default=a},2618:function(t,e,n){"use strict";n.r(e);var o=n(6811),r=n(7423),i=n(9756);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}class s extends r.default.PureComponent{static defaultProps={componentStyle:{global:{fontFamily:""}}};componentDidMount(){const{client_id:t,componentData:{inputType:e=""}={},properties:{defaultValue:n}={},clientInputs:o,updateClientInputs:r}=this.props;if("undefined"!==typeof n&&"undefined"===typeof o[t]){let o=n;["datetime-local","date","time"].includes(e)&&o&&(o=this.convertToLocalDateTime(o,e)),r({[t]:o})}}convertToLocalDateTime=(t,e)=>{if(!t)return"";const n=new Date(t),o=n.getTimezoneOffset();switch(n.setMinutes(n.getMinutes()-o),e){case"datetime-local":return n.toISOString().slice(0,16);case"date":return n.toISOString().slice(0,10);case"time":return n.toISOString().slice(11,16);default:return n.toISOString()}};render=()=>{const{type:t,client_id:e,classNames:n,componentData:{placeholder:o={},inputType:i=""}={},properties:s,clientInputs:c,updateClientInputs:l}=this.props;let u=c[e];return["datetime-local","date","time"].includes(i)&&u&&(u=this.convertToLocalDateTime(u,i)),r.default.createElement(r.Fragment,null,r.default.createElement("input",a({onMouseDown:e=>"builder"===t&&e.preventDefault(),"data-clientId":e,type:i||"text",placeholder:"string"===typeof o?o:"",style:{height:"100%",width:"100%",minHeight:"inherit",minWidth:"inherit",maxHeight:"inherit",maxWidth:"inherit"},className:`non-draggable ${n}`,value:u,onChange:t=>{let n="checkbox"===i?!!t.target.checked:t.target.value;if(["datetime-local","date"].includes(i)&&n)n=new Date(t.target.value).toISOString();else if("time"===i&&n){const t=new Date,[e,o]=n.split(":");t.setHours(e),t.setMinutes(o),n=t.toISOString()}l({[e]:n})}},s)))}}e.default=(0,i.$j)((t=>({clientInputs:t.common.clientInputs})),(t=>({updateClientInputs:(e={})=>{t(o.commonActions.updateClientInputs(e))}})))(s)},6053:function(t,e,n){"use strict";n.r(e);var o=n(6811),r=n(7423),i=n(9756);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}class s extends r.default.PureComponent{static defaultProps={componentStyle:{global:{fontFamily:""}}};constructor(t){super(t),this.state={value:""}}componentDidMount(){const{client_id:t,componentData:e={},updateClientInputs:n,properties:{defaultValue:o}={},clientInputs:r}=this.props,{Options:i=[]}=e;let a="";"undefined"!==typeof o&&"undefined"===typeof r[t]?a=o:i&&i.length,n({[t]:a})}render=()=>{const{type:t,componentStyle:e={},componentData:{Options:n=[],placeholder:o=""}={},classNames:i,client_id:s,properties:c={}}=this.props,{optionStyle:l={}}=e;return r.default.createElement(r.Fragment,null,r.default.createElement("select",a({onMouseDown:e=>"builder"===t&&e.preventDefault(),"data-clientId":s,className:`non-draggable ${i}`,style:{height:"100%",width:"100%",minHeight:"inherit",minWidth:"inherit",maxHeight:"inherit",maxWidth:"inherit"},onChange:t=>this.props.updateClientInputs({[s]:t.target.value}),value:this.props.clientInputs[s]||""},c),o?r.default.createElement("option",{value:"",selected:!0,disabled:!0},o):null,n&&n.map(((t,e)=>r.default.createElement("option",{key:e,style:{...l},value:t.value,disabled:t.disabled},t.label)))))}}e.default=(0,i.$j)((t=>({clientInputs:t.common.clientInputs})),(t=>({updateClientInputs:(e={})=>{t(o.commonActions.updateClientInputs(e))}})))(s)},3014:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(6811),i=n(9756);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}class s extends o.default.PureComponent{static defaultProps={componentStyle:{global:{fontFamily:""}}};render=()=>{const{type:t,componentData:{placeholder:e=""}={},classNames:n,client_id:r,properties:i={}}=this.props;return o.default.createElement(o.Fragment,null,o.default.createElement("textarea",a({onMouseDown:e=>"builder"===t&&e.preventDefault(),placeholder:e||"",style:{width:"100%",height:"100%"},className:`non-draggable ${n}`,"data-clientId":r,id:r+"-id",onChange:t=>this.props.updateClientInputs({[r]:t.target.value}),value:this.props.clientInputs[r]},i)))}}e.default=(0,i.$j)((t=>({clientInputs:t.common.clientInputs})),(t=>({updateClientInputs:(e={})=>{t(r.commonActions.updateClientInputs(e))}})))(s)},9994:function(t,e,n){"use strict";n.r(e),n.d(e,{Placeholder:function(){return i}});var o=n(7423),r=n(6265);const i=({type:t,placeholder:e})=>
1{if(!t)return"";switch(t){case"Code":return o.default.createElement(a,{placeholder:e});default:return""}},a=t=>{const e=(0,o.useRef)(null),[n,i]=(0,o.useState)({hideIcon:!1,hideText:!1});return(0,o.useEffect)((()=>{const t=new ResizeObserver((()=>{if(e.current){const t=e.current.parentElement,n=t.offsetHeight,o=t.offsetWidth;i({hideIcon:n<60&&o<60,hideText:n<120||o<300})}}));return e.current&&t.observe(e.current.parentElement),()=>{t.disconnect()}}),[]),o.default.createElement("div",{className:`cd-element-placeholder-wrapper \n                ${n.hideIcon?"hide-icon":""} \n                ${n.hideText?"hide-text":""}`,ref:e},o.default.createElement("img",{className:"cd-element-placeholder-icon",src:r.default}),t.placeholder&&o.default.createElement("span",{className:"cd-element-placeholder-text"},t.placeholder))}},9410:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return c}});var o=n(7423),r=n(2445),i=n(8230);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}const s=r.Responsive;class c extends o.Component{render(){const{handleClose:t,screenWidth:e,blueprint:n,context:r,gridLayout:c,renderComponents:l,lazyComponents:u}=this.props;let p="";const d=u.filter((t=>{if(t.parent&&t.parent.startsWith("NavlinksWrap"))return p||(p=t.parent),!0})),f=n[r][p],m=d.map((t=>`#${t.client_id}`)).join(",");return o.default.createElement("div",{className:"hamburger-menu-expand",style:{background:"#fafafa",height:"100vh",width:"100vw",position:"absolute",top:"0px"}},o.default.createElement("div",{style:{display:"flex",justifyContent:"end",width:"100%"},onClick:t},o.default.createElement("i",{className:"icon-btn-close"}),o.default.createElement("style",null,`.icon-btn-close { margin:16px; cursor:pointer;}\n            .icon-btn-close::after {\n  background-image: url("${i.default}");\n  content: " ";\n  display: block;\n  height: 24px;\n  width: 24px;\n  background-size: 24px; }`)),o.default.createElement("div",{className:"hamburger-content",style:{padding:"0px 32px",width:"100%"}},o.default.createElement(s,a({type:"page",style:{zIndex:"0"},isDraggable:!1,isResizable:!1,className:"layout",verticalCompact:!1,compactType:!1,breakpoint:"sm"},n[r]&&n[r].meta.gridLayout?n[r].meta.gridLayout:c,{layouts:f,useCSSTransforms:!1,preventCollision:!1,width:e}),d.map((t=>{const e=t.component.default;return o.default.createElement("div",{key:`${t.client_id}`,id:`${t.client_id}`,style:{zIndex:String(t.zIndex)}},l(t,e))}))),o.default.createElement("style",null,`${m}{\n        position:static !important;\n    }`)))}}},2477:function(t,e,n){"use strict";n.r(e);var o=n(1717),r=n(7423),i=n(9756);e.default=()=>{const[t,e]=(0,r.useState)(""),n=(0,i.v9)((t=>t.customization.present?.data?.styleguide));return(0,r.useEffect)((()=>{const t=(0,o.generateCSSVariablesFromStyleguide)({styleguide:n});e(t)}),[n]),r.default.createElement("style",null,`:root { ${t} }`)}},6125:function(t,e,n){"use strict";n.r(e);var o=n(7423);class r extends o.default.PureComponent{render=()=>{const{componentStyle:t}=this.props;return o.default.createElement(o.Fragment,null,"Sample component",o.default.createElement("br",null),o.default.createElement("pre",null,JSON.stringify(t,void 0,4)))}}const i=r;e.default=i},2545:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(8908),i=n.n(r),a=n(4742),s=n(488),c=n.n(s),l=n(5236);function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}class p extends o.default.PureComponent{render(){const{windowContext:t,responsiveStyle:e={mobile:{global:{}},tablet:{global:{}}},componentStyle:{global:n},className:r,componentData:{children:s="Simple text here.",responsiveFontSize:p={}},...d}=this.props,f=t||i();let m,h;if("string"!==typeof s)return null;m=s.indexOf('class="paragraph"')>=0?"paragraph":s.indexOf('class="headerOne"')>=0?"headerOne":(s.indexOf('lass="headerTwo'),"headerTwo"),h="headerOne"===m?{web:"52px",tablet:"40px",mobile:"30px"}:"headerTwo"===m?{web:"36px",tablet:"28px",mobile:"22px"}:"paragraph"===m?{web:"18px",tablet:"16px",mobile:"14px"}:{web:"24px",tablet:"30px",mobile:"16px"};const _={web:p.web?p.web:h.web,tablet:p.tablet?p.tablet:h.tablet,mobile:p.mobile?p.mobile:h.mobile};let E=n.animation?n.animation:"";return o.default.createElement(o.Fragment,null,o.default.createElement(a.Z,{targetWindow:f,queries:l.builderMediaQueries},(t=>{const{small:i,medium:a,large:l}=t,p=i&&e.mobile?e.mobile.global.verticalAlign:a?e.tablet&&e.tablet.global.verticalAlign:n.verticalAlign,f={height:"100%",display:"block",minHeight:"inherit",minWidth:"inherit",maxHeight:"inherit",maxWidth:"inherit",lineHeight:n.lineHeight?n.lineHeight:"",letterSpacing:n.letterSpacing?n.letterSpacing:"",padding:n.padding?n.padding:"",textAlign:i?e.mobile&&e.mobile.global.textAlign:a?e.tablet&&e.tablet.global.textAlign:l?n.textAlign:"",fontSize:i?_.mobile:a?_.tablet:_.web,...p||{}};return o.default.createElement(o.Fragment,null,o.default.createElement("span",u({style:f,className:r,"data-aos":E},d),c()(s)))})))}}p.defaultProps={componentStyle:{global:{padding:{value:""},lineHeight:{value:""},letterSpacing:{value:""}}},componentData:{children:"Simple text here ."},className:"",children:"Simple text here"},e.default=p},3042:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(488),i=n.n(r),a=n(8941),s=n(1472);class c extends o.default.PureComponent{render(){const{componentData:t={},compProps:e,resolvedTemplateData:n}=this.props;if(!0===e?.dynamicRenderProps?.isDynamicData&&n){const t=(0,s.renderMustacheTemplate)(n.contentTemplateString,n.contentTemplateData),r=(0,a.applyContentPresetFormatter)(t,e?.dynamicRenderProps?.contentPresetFormatter);return o.default.createElement(o.Fragment,null,i()(r??""))}const{children:r=""}=t;return o.default.createElement(o.Fragment,null,i()(r))}}e.default=c},449:function(t,e,n){"use strict";n.r(e);var o=n(488),r=n.n(o),i=n(7423);class a extends i.Component{constructor(t){super(t),this.state={innerHtml:""}}componentDidUpdate(t){try{this.props.componentData.src===t.componentData.src&&this.props.componentData.autoplay===t.componentData.autoplay&&this.props.componentData.mute===t.componentData.mute||(""===this.props.componentData.src&&this.setState({innerHtml:""}),this.getIframelyHTML(this.props.componentData.src||"","builder"!=this.props.type&&this.props.componentData.autoplay,this.props.componentData.mute))}catch(e){console.error(e,"An error has occured")}}getIframelyHTML=(t="",e,n)=>{t&&fetch(`https://iframely.codedesign.app/iframely?url=${t}${e?"&autoplay=1":""}${n?"&mute=1":""}`).then((t=>t.json())).then((t=>{this.setState({innerHtml:t.html,init:!0})}
1)).catch((()=>({html:""})))};render(){const{innerHtml:t,init:e}=this.state,{type:n,componentData:o={}}=this.props,a=!t&&{background:"url(https://res.cloudinary.com/storylens/image/upload/v1621073054/static/videoBg.svg)",backgroundPosition:"50% 50%",backgroundSize:"cover",width:"100%",height:"100%"};return e||this.getIframelyHTML(o.src||"","builder"!=n&&o.autoplay,o.mute),t?i.default.createElement(i.Fragment,null,r()(t)):i.default.createElement("div",{style:a})}}e.default=a},9423:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(5697),i=n.n(r);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}const s=({windowContext:t,documentContext:e,type:n,client_id:r,classNames:i="",componentData:s={},properties:c={},...l})=>{const{videoEmbed:u={}}=s,{src:p="",seoTitle:d="",poster:f="",controls:m=!1,autoplay:h=!1,loop:_=!1,muted:E=!1}=u,g="builder"===n;return o.default.createElement("video",a({className:i,"data-clientId":r,id:r+"-id",src:p,controls:m,autoPlay:!g&&h,loop:_,muted:E,title:d,poster:f||"https://assets-v2.codedesign.ai/storage/v1/object/public/codedesign_assets/defaultVideoPoster.svg",playsInline:!0},c,l))};s.propTypes={className:i().string,style:i().object},s.defaultProps={componentStyle:{global:{}}},e.default=s},4057:function(t,e,n){"use strict";n.r(e),n.d(e,{matchExact:function(){return f}});var o=n(4177),r=n(1717),i=n(6774),a=n(8283),s=n(1243),c=n(5857),l=n(5570),u=n(9394);const p={onSubmitForm:t=>{(0,r.getFormFieldsAndSubmitPublicForm)(t)},onBuy:t=>{(0,r.getFormFieldsAndSubmitPublicForm)(t,"order")},onLinkClickAction:t=>{(0,r.handleLinkClickAction)(t)},...l.dynamicDataInternalFunctions},d={onHoverLinkAction:t=>{(0,r.handleHoverLinkAction)(t)}};function f(t,e){var n=e.match(t);return n&&e===n[0]}e.default=(t,e={},n={},l={})=>{const m=e.executableInternalFunctions?.onClick?.[0],h=e.executableInternalFunctions?.onHover?.[0],_=p[m]||null,E=d[h]||null,{getState:g}=i.default,y=g(),S=l.pageLoadedFrom,T=window.location?.pathname?.startsWith("/page-preview");let C,b;if("builder"!==S){const t=y.customization?.present?.data?.blueprint;if(window.location?.pathname){const e=window.location.pathname.split("/").filter(Boolean);if(("playground-preview"===e[0]||"page-preview"===e[0])&&e.length>=4){C=e[e.length-1];const n=t?.[e[e.length-2]];if(!0===n?.meta?.dynamicDataProps?.isDynamicPage&&C){const t=n.meta?.dynamicDataProps?.dataCMSId??n.meta?.dynamicDataProps?.cmsId??"blog";b=(0,c.makeCacheKeyItemBySlug)(t,C)}}else if(e.length>=2){let n=t?.[e[0]];if(!n?.meta?.dynamicDataProps?.isDynamicPage){const e=y.common?.dynamicData?.publishedDynamicRoute;e?.templateKey&&(n=t?.[e.templateKey])}if(!0===n?.meta?.dynamicDataProps?.isDynamicPage){C=e[e.length-1];const t=n.meta?.dynamicDataProps?.dataCMSId??n.meta?.dynamicDataProps?.cmsId??"blog";b=(0,c.makeCacheKeyItemBySlug)(t,C)}}}else 0}const v=(0,a.hasDynamicContext)(e)?(0,a.resolveDynamicDataProps)({component:e,isBuilder:"builder"===S,currentPageSlug:C,currentPageCacheKey:b,allowDynamicPagePlaceholderFallback:T||window.location?.pathname?.startsWith("/playground-preview")}):null,I=(0,a.getHasDataForDynamicItem)(e,"builder"===S,v,y),{isFlexResize:A=[],isLegacyFormUpdating:O={}}=y.ui,R=O[e.client_id],P={"UI/Button/index.js":"button","UI/GridLayoutChild/index.js":"div","UI/Input/Input.jsx":"input","UI/Input/Select.jsx":"select","UI/Input/TextArea.jsx":"textarea","UI/Text/index.jsx":"span","UI/Image/index.jsx":"img","UI/IFrame/index.jsx":"section","UI/Fonts/index.jsx":"span","UI/Video/video.jsx":"video"},{events:U,properties:w={}}=e?.props?.componentData||{};let L={};U&&Object.keys(U).map((t=>{Array.isArray(U[t])?L[t]=U[t].map((t=>(0,r.sequenceExecutor)(t,o.default,e.client_id))):(L[t]={},Object.keys(U[t]).map((n=>{L[t][n]=U[t][n].map((t=>(0,r.sequenceExecutor)(t,o.default,e.client_id)))})))}));let x=(()=>{let n="div";P[t]&&(n=P[t]);const o=e?.props?.componentData?.tagName;return o&&(n=o),"form"===n&&"builder"===l.pageLoadedFrom&&(n="div"),n})(),D=!1;["textarea","input","img","select","video"].includes(x)&&(D=!0);const{margin:N,isElementHiddenInCanvas:F,isPartOfAGroup:k,blockComponentChildrenLength:M,layouts:j=[]}=l;let B=l?.classNames?l.classNames.split(" "):[];const{otherAttributes:G={}}=e?.props?.componentData||{};let H,z=[];if(B=B.map((t=>(t.startsWith("internal___")&&z.push(t),t))).filter((t=>!t?.startsWith("internal___"))).join(" "),z=z.map((t=>t?.replace("internal___",""))).join(" "),0===M&&"div"===x&&"UI/GridLayoutChild/index.js"===e.main){const t=j.find((t=>t?.i===e.client_id));(["fit-content","auto"].includes(t?.h)||["fit-content","auto"].includes(t?.measurements?.h?.type))&&(H=!0)}const $="form"===e?.props?.componentData?.tagName&&"form-component-v1"!==e?.componentType,W="builder"===S?{...e.builderAttributes||{}}:{};let V={...{form:{"data-type":"grid-layout",className:(f(/\bcontainer\b/g,B)?"container":"")+" cd-padding",...e?.componentType?{"data-component-type":e.componentType}:{}},div:{"data-type":"grid-layout",className:`${f(/\bcontainer\b/g,B)?"container":""} cd-padding ${H?"cd-empty-div":""} ${A?.includes(e.client_id)?"resizing":""} ${$||R?"legacy-form-overlay-spotlight":""} `,...e?.componentType?{"data-component-type":e.componentType}:{}},button:{style:{},...e?.componentType?{"data-component-type":e.componentType}:{}},audio:{style:{pointerEvents:"builder"===S?"none":"auto"}},iframe:{style:{pointerEvents:"builder"===S?"none":"auto"}},video:{style:{pointerEvents:"builder"===S?"none":"auto"}},select:{style:{"-webkit-appearance":"button"}}
1,input:{},span:{...e?.componentType?{"data-component-type":e.componentType}:{}}}[D?"span":x],...n};const Y=(0,s.shouldShowLoadingStateForElement)(e,y,{isBuilder:"builder"===S,currentPageCacheKey:b})?u.DYNAMIC_DATA_LOADING_CLASS:"",Q=e.componentType===u.DYNAMIC_ITEM_COMPONENT&&!1===I?"dynamic-item-hidden":"",K=e.executableInternalFunctions?.onClick?.[0],q=e.componentType===u.DYNAMIC_LIST_PAGINATION_NEXT||"dynamicListLoadNextItemSet"===K,J=e.componentType===u.DYNAMIC_LIST_PAGINATION_PREVIOUS||"dynamicListLoadPreviousItemSet"===K;let X,Z="";if(q||J){const t=y.customization?.present?.context,n=y.customization?.present?.data?.blueprint,o=y.common?.dynamicData,r=o?.blueprintIndexes?.nodeToDynamicListId?.[e.client_id];Z="dynamic-list-pagination-control";const i=r&&t&&n?.[t]?.components?.[r]?n[t].components[r]:null,a=i?.props?.dynamicDataProps?.paginationEnabled;if(i)if(!1===a)Z+=" dynamic-list-pagination-hidden";else if(!0!==a)Z+=" disabled";else{const t=o?.components?.[r],e=t?.pagination;(!0===t?.isLoading||q&&!1===e?.hasNextPage||J&&!1===e?.hasPreviousPage)&&(Z+=" disabled")}else Z+=" disabled"}const tt=e.componentType;if(tt===u.DYNAMIC_LIST_EMPTY_STATE||tt===u.DYNAMIC_LIST_ERROR_STATE){const t=y.common?.dynamicData,n=t?.blueprintIndexes,o=n?.nodeToDynamicListId?.[e.client_id],r=t?.components?.[o],i=r?.cacheKey,a=i?t?.cache?.[i]:null,s=a?.list,c=a?.totalCount,l=o?y.ui?.dynamicListBuilderForce?.[o]:null,p="builder"===S&&!!l?.forceEmpty,d="builder"===S&&!!l?.forceError;if(tt===u.DYNAMIC_LIST_EMPTY_STATE){const t=Array.isArray(s)?s.filter((t=>null!=t)).length:0;X=p||!r?.isLoading&&!r?.error&&(0===c||null==c&&0===t)?"flex":"none"}else{X=d||!!r?.error?"flex":"none"}}return x=D?"span":x,{tagName:x,outProps:{...G,...W,...V,...D?{}:w,key:`${e.client_id}`,id:`${e.client_id}`,...D?{}:{"data-clientId":`${e.client_id}`},...e.componentType===u.DYNAMIC_ITEM_COMPONENT?{hasData:I}:{},...void 0!==X&&{"data-rgl-preserve-display":X},style:{display:"block",...V.style,zIndex:String(e.zIndex),...N,...F&&{visibility:"hidden"},...void 0!==X&&{display:X}},onLoad:()=>{(0,r.executeEvent)(L,"onLoad",S)},onMouseDown:()=>(0,r.executeEvent)(L,"onClick",S),onMouseEnter:()=>(0,r.executeEvent)(L,"onMouseEnter",S),onMouseLeave:()=>(0,r.executeEvent)(L,"onMouseLeave",S),onMouseOver:()=>(0,r.executeEvent)(L,"onHover",S),onSubmit:t=>{t.preventDefault(),(0,r.executeEvent)(L,"onSubmit",S)},"data-displayName":`${e.givenName||""}`,className:`${D||"builder"===S?"":B} ${k&&"non-draggable"} ${V.className||""} ${z||""} ${Y} ${Q} ${Z}`.trim(),..."builder"!==S&&_?{onMouseDown:_}:{},..."builder"!==S&&E?{onMouseOver:E}:{}},properties:D?w:{},resolvedTemplateData:v,hasData:I}}},6991:function(t,e,n){"use strict";n.r(e),n.d(e,{Block:function(){return o.default},Text:function(){return r.default},TextBlock:function(){return i.default},Image:function(){return a.default},SVG:function(){return s.default},Columns:function(){return o.default},Input:function(){return c.default},Dropdown:function(){return l.default},TextArea:function(){return u.default},Icons:function(){return p.default},Video:function(){return d.default}});var o=n(714),r=n(3042),i=n(2545),a=n(9597),s=n(2866),c=n(2618),l=n(6053),u=n(3014),p=n(2062),d=n(449)},2362:function(t,e,n){"use strict";n.r(e);const o={label:"Flex Box Child Settings",type:"FlexChildEditor",subProperties:["order","flexGrow","flexShrink","flexBasis","alignSelf"],viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},r={label:"Flex Box ",type:"FlexEditor",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],subProperties:["flexDirection","flexWrap","justifyContent","alignItems","columnGap","rowGap"]},i={type:"Overflow",label:"Overflow",group:"Layout",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},a={label:"Border",type:"BorderEditor",subProperties:["borderRadius","borderWidth","borderStyle","borderColor"],viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},s={label:"Background",type:"BackgroundEditor",subProperties:["backgroundColor","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundClip","backgroundOrigin","background","transform"],viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},c={type:"MarginController",label:"Position",group:"Layout",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],subProperties:["x","y","position"]},l={type:"EditorHandler",info:"Typography section",label:"Editor",group:"Typography",child:!0,child_value:"componentData.children"},u={type:"DimensionsController",label:"Size",group:"Layout",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],subProperties:["w","h","minW","minH","maxW","maxH"]},p={type:"AnchorController",label:"Anchor Link",group:"Link",wrap:!0,wrap_value:"componentData.anchor",html:'<a href=# class="link" target="_self"></a>'},d={type:"Padding",label:"Padding",group:"Layout",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},f={group:"Style",type:"BoxShadowEditor2",label:"Shadow",subProperties:["boxShadow"],viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},m={group:"Style",type:"EffectsEditor",label:"Effects",subProperties:["opacity","transform","backdropFilter","filter"],viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},h={type:"FontSizeWeight",value:"",defaultValue:{web:"52px",mobile:"30px",tablet:"40px"},label:"Text Size",subProperties:["fontSize","fontWeight"],viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},_={type:"TextAlign",value:"",label:"Horizontal Align",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],group:"Typography"},E={type:"FontSpacing",label:"Spacing",group:"Typography",subProperties:["letterSpacing","lineHeight"],viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},g={type:"Dropdown",label:"Tagname",dataTitle:n(6160).builderConstants.dataTitles.tagName,options:[{label:"div",value:"div"},{label:"span",value:"span"},{label:"section",value:"section"},{label:"article",value:"article"},{label:"address",value:"address"}],group:"Tag",viewOn:["bp_1920","bp_1440","bp_1280","web"],element:!0,element_value:"componentData.elementType"},y={Body:{renderAsMixed:!0,groupPriority:["body","HiddenElements"],data:{hidden:{group:"HiddenElements",type:"AllHiddenComponents",label:"Showing hidden components"}},style:{global:{border:{...a,group:"body"},background:{...s,group:"body"}}}},Button:{html:"<button data-component='Button'></button>
1",renderAsMixed:!0,groupPriority:["Link","Layout","Typography","Style","FlexChild"],defaultOpenGroup:"Style",data:{margin:{...c},dimensions:{...u},children:{...l},anchor:{...p}},style:{global:{padding:{...d},background:{...s,group:"Style"},boxShadow:{...f},border:{...a,group:"Style"},effects:{...m},fontFamily:{type:"FontFamily",value:"",group:"Typography"},fontSizeWeight:{...h,group:"Typography"},color:{type:"Color",value:"",group:"Typography"},textSpacing:{...E},textAlign:{..._,group:"Typography"},flexBoxChild:{...o,group:"FlexChild"}}}},Icon:{html:"<i data-component='Icon'></i>",renderAsMixed:!0,groupPriority:["Link","Layout","IconSettings","FlexChild"],defaultOpenGroup:"IconSettings",data:{margin:{...c},dimensions:{...u},icon:{group:"IconSettings",type:"IconEditor",attr:"class",attr_value:"componentData.icon"},anchor:{...p}},style:{global:{padding:{...d},color:{type:"Color",value:"",label:"Color",group:"IconSettings"},fontSizeWeight:{...h,subProperties:["fontSize"],group:"IconSettings"},flexBoxChild:{...o,group:"FlexChild"}}}},LinkedComponentInstance:{renderAsMixed:!0,defaultOpenGroup:"Layout",groupPriority:["Layout"],data:{margin:{...c},dimensions:{...u}}},Section:{renderAsMixed:!0,defaultOpenGroup:"Style",groupPriority:["Link","Columns","Layout","Flex","Style"],html:"<div data-component='DivComponent'> </div>",data:{margin:{...c},dimensions:{...u},columns:{group:"Columns",viewOn:["bp_1920","bp_1440","bp_1280","web"],type:"ColumnsGallery"},MultiList:{type:"ColumnItemsEditor",group:"Columns",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],label:"Customize columns",editType:"Custom",validation:[(t,e)=>"web"===e?t.reduce(((t,e)=>t+(e.w||0)),0)<=12:0===t.filter((t=>t.w>12)).length,t=>{let e=!0;return t.map((t=>{t.w<1&&(e=!1)})),e},t=>t.length>=1&&t.length<=12]},elementType:{...g},anchor:{...p}},style:{global:{padding:{...d},overflow:{...i},flexBox:{...r,group:"Flex"},background:{...s,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},boxShadow:{...f},border:{...a,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},effects:{...m}}}},Form:{renderAsMixed:!0,defaultOpenGroup:"Style",groupPriority:["Link","Layout","Flex","Style"],data:{margin:{...c},dimensions:{...u},elementType:{...g},apiIntegration:{label:"APIIntegrations",type:"APIController",group:"APIIntegrations",viewOn:["bp_1920","bp_1440","bp_1280","web"]},form:{label:"Form Settings",type:"FormController",group:"FormSettings",viewOn:["bp_1920","bp_1440","bp_1280","web"]},anchor:{...p}},style:{global:{padding:{...d},overflow:{...i},flexBox:{...r,group:"Flex"},background:{...s,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},boxShadow:{...f},border:{...a,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},effects:{...m}}}},Columns:{html:"<div data-component='Columns'> </div>",renderAsMixed:!0,groupPriority:["Columns","ColumnLayout","Style"],defaultOpenGroup:"Columns",structure:{w:{id:"number",label:"Column",name:"w",default:!0,value:1}},data:{margin:{...c,group:"ColumnLayout"},dimensions:{...u,group:"ColumnLayout"},columns:{group:"Columns",viewOn:["bp_1920","bp_1440","bp_1280","web"],type:"ColumnsGallery"},MultiList:{type:"ColumnItemsEditor",group:"Columns",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],label:"Customize columns",editType:"Custom",validation:[(t,e)=>"web"===e?t.reduce(((t,e)=>t+(e.w||0)),0)<=12:0===t.filter((t=>t.w>12)).length,t=>{let e=!0;return t.map((t=>{t.w<1&&(e=!1)})),e},t=>t.length>=1&&t.length<=12]},horizontalAlign:{group:"Columns",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],type:"HorizontalAlign",info:"Choose one of the column structures below. You can customize it later. ",label:"Horizontal Align"}},style:{global:{padding:{...d,group:"ColumnLayout"},background:{...s,group:"Style"},border:{...a,group:"Style"},boxShadow:{...f},effects:{...m}}}},Image:{renderAsMixed:!0,groupPriority:["Link","Layout","Image","Style","FlexChild"],defaultOpenGroup:"Image",html:"<span> <img data-component='Image'/>
1 </span>",data:{margin:{...c},dimensions:{...u},anchor:{...p},image:{type:"Image",label:"Image",info:"Replace Image",group:"Image",child_attr:["src","alt"],child_attr_value:["src","componentData.properties.data-alt-text"]}},style:{global:{border:{...a,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},boxShadow:{...f},padding:{...d},effects:{...m},objectFit:{group:"Image",type:"ObjectFitSelector",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},flexBoxChild:{...o,group:"FlexChild"}}}},HTMLCode:{html:"<div data-component='HTMLCode'></div>",renderAsMixed:!0,groupPriority:["Link","Code","Layout","Flex","Style"],defaultOpenGroup:"Code",data:{margin:{...c},dimensions:{...u},anchor:{...p},htmlCode:{type:"CodeElementEditor",label:"HTML Code",group:"Code",inputPlaceholder:"Paste your embed codes here...",keyName:"htmlCode",child:!0,child_value:"componentData.htmlCode"}},style:{global:{padding:{...d},overflow:{...i},flexBox:{...r,group:"Flex"},background:{...s,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},boxShadow:{...f,group:"Style"},border:{...a,group:"Style"},effects:{...m},flexBoxChild:{...o,group:"FlexChild"}}}},Svg:{renderAsMixed:!0,groupPriority:["Link","Image","Layout","Flex","Style"],defaultOpenGroup:"Image",data:{margin:{...c},dimensions:{...u},anchor:{...p},svg:{type:"TextareaWithLabel",label:"SVG",svg:!0,group:"Image",keyName:"svg"}},style:{global:{padding:{...d},overflow:{...i},flexBox:{...r,group:"Flex"},background:{...s,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},boxShadow:{...f,group:"Style"},border:{...a,group:"Style"},effects:{...m},flexBoxChild:{...o,group:"FlexChild"}}}},Input:{renderAsMixed:!0,groupPriority:["Layout","Input","Typography","Style","Placeholder","FlexChild"],defaultOpenGroup:"Input",html:"<input data-component='Input'></input>",data:{margin:{...c},dimensions:{...u},inputType:{type:"Dropdown",label:"Input Type",group:"Input",attr:"type",attr_value:"componentData.inputType",options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"email",value:"email"},{label:"checkbox",value:"checkbox"},{label:"date & time",value:"datetime-local"},{label:"date",value:"date"},{label:"time",value:"time"},{label:"password",value:"password"}]},placeholder:{type:"InputText",inputProps:{label:"Placeholder",placeholder:"placeholder here",style:{width:"170px"}},group:"Input",attr:"placeholder",attr_value:"componentData.placeholder"}},style:{global:{padding:{...d},overflow:{...i},fontFamily:{label:"Typography",type:"FontFamily",value:"",group:"Typography"},fontSizeWeight:{...h,group:"Typography"},color:{type:"Color",group:"Typography",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},textSpacing:{...E},textAlign:{..._,group:"Typography"},background:{...s,group:"Style"},border:{...a,group:"Style"},boxShadow:{...f,group:"Style"},effects:{...m,group:"Style"},flexBoxChild:{...o,group:"FlexChild"}}}},Select:{renderAsMixed:!0,groupPriority:["Layout","DropdownSettings","Style","FlexChild"],defaultOpenGroup:"DropdownSettings",html:"<select data-component='Dropdown'> </select>",data:{margin:{...c},dimensions:{...u},placeholder:{type:"InputText",group:"DropdownSettings",inputProps:{label:"Placeholder",placeholder:"placeholder for the dropdown field",style:{width:"180px"}}},MultiList:{group:"DropdownSettings",label:"Add/Edit options",type:"MultiListForOptions",editType:"Options",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"],moreOptions:!1,multilist_html:"<option data-component='Option'></option>",multilist_attr:"value",multilist_attr_value:"value",multilist:"componentData.Options",multilist_child:!0,multilist_child_value:"label",validation:[]}},style:{global:{padding:{...d},fontSizeWeight:{...h,group:"Style"},fontFamily:{type:"FontFamily",label:"Font Family",value:"",group:"Style"},color:{type:"Color",label:"Color",value:"",group:"Style"},background:{...s,group:"Style"},border:{...a,group:"Style"},boxShadow:{...f},flexBoxChild:{...o,group:"FlexChild"}}}},TextArea:{html:"<textarea data-component='TextArea'/>",renderAsMixed:!0,groupPriority:["Layout","TextArea","Typography","Style","Placeholder","FlexChild"],defaultOpenGroup:"TextArea",data:{margin:{...c},dimensions:{...u},placeholder:{type:"InputText",attr:"placeholder",attr_value:"componentData.placeholder",inputProps:{label:"Placeholder",placeholder:"placeholder here",style:{width:"170px"}},group:"TextArea"}},style:{global:{padding:{...d},overflow:{...i},fontSizeWeight:{...h,group:"Typography"},fontFamily:{type:"FontFamily",label:"Typography",value:"",group:"Typography"},color:{type:"Color",group:"Typography",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},textSpacing:{...E},textAlign:{..._,group:"Typography"},background:{...s,group:"Style"},border:{...a,group:"Style"},boxShadow:{...f,group:"Style"},effects:{...m,group:"Style"},flexBoxChild:{...o,group:"FlexChild"}}}}
1,Text:{renderAsMixed:!0,groupPriority:["Link","Layout","Flex","Typography","Style","FlexChild"],defaultOpenGroup:"Typography",html:"<span data-component='Text'></span>",data:{margin:{...c},dimensions:{...u},children:{...l},anchor:{...p}},style:{global:{overflow:{...i},flexBox:{...r,group:"Flex"},fontFamily:{type:"FontFamily",group:"Typography"},fontSizeWeight:{...h,group:"Typography"},color:{type:"Color",group:"Typography",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},padding:{...d},textAlign:{..._,group:"Typography"},textTransform:{type:"TextTransform",value:"",label:"Text Transform",group:"Typography",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},textSpacing:{...E},background:{...s,group:"Style"},boxShadow:{...f,group:"Style"},border:{...a,group:"Style"},effects:{...m,group:"Style"},flexBoxChild:{...o,group:"FlexChild"}}}},TextBlock:{renderAsMixed:!0,groupPriority:["Link","Layout","Typography","global","FlexChild"],data:{margin:{...c},dimensions:{...u},children:{...l,visible:!1},anchor:{...p}},style:{global:{fontFamily:{type:"FontFamily",value:"",group:"Typography"},color:{type:"Color",value:"",group:"Typography"},fontSizeWeight:{...h,group:"Typography"},padding:{...d},textAlign:{..._,group:"Typography"},flexBoxChild:{...o,group:"FlexChild"}}}},Video:{renderAsMixed:!0,groupPriority:["Layout","Video","Style","FlexChild"],html:"<span> <video data-component='Video'/> </span>",defaultOpenGroup:"Video",data:{margin:{...c},dimensions:{...u},video:{type:"Video",label:"Video",info:"Replace Video",group:"Video",child_attr:["src","title","poster","controls","autoplay","loop","muted"],child_attr_value:["componentData.videoEmbed.src","componentData.videoEmbed.seoTitle","componentData.videoEmbed.poster","componentData.videoEmbed.controls","componentData.videoEmbed.autoplay","componentData.videoEmbed.loop","componentData.videoEmbed.muted"]}},style:{global:{effects:{...m},flexBoxChild:{...o,group:"FlexChild"}}}},VideoEmbedElement:{renderAsMixed:!0,groupPriority:["VideoEmbed","Layout","Style","FlexChild"],defaultOpenGroup:"VideoEmbed",data:{margin:{...c},dimensions:{...u}},style:{global:{padding:{...d},overflow:{...i},background:{...s,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},boxShadow:{...f},border:{...a,group:"Style",viewOn:["bp_1920","bp_1440","bp_1280","web","tablet","mobile"]},effects:{...m}}}},Audio:{renderAsMixed:!0,groupPriority:["Layout","Audio","Style","FlexChild"],defaultOpenGroup:"Audio",data:{margin:{...c},dimensions:{...u},src:{type:"InputText",inputProps:{label:"URL",placeholder:"e.g. https://soundcloud.com/paul-de-clerck/stephan-beneking-nocturnes-for-isabella-no-1-in-d-minor"},validation:[],label:"Audio",group:"Audio"},autoplay:{type:"InputCheckbox",label:"Autoplay",group:"Audio"}},style:{global:{effects:{...m},flexBoxChild:{...o,group:"FlexChild"}}}},IFrame:{html:"<div data-component='IFrame'></div>",renderAsMixed:!0,groupPriority:["Layout","IFrame","Style","FlexChild"],defaultOpenGroup:"IFrame",data:{margin:{...c},dimensions:{...u},src:{type:"IframeEditor",group:"IFrame",child:!0,child_value:"componentData.src"}},style:{global:{effects:{...m},flexBoxChild:{...o,group:"FlexChild"}}}}};e.default=y},4099:function(t,e,n){"use strict";n.r(e);const o={addCustomCode:t=>{try{new Function(t)()}catch(e){console.error(e)}}};e.default=o},8146:function(t,e,n){"use strict";n.r(e);e.default={returnString:t=>t}},6512:function(t,e,n){"use strict";n.r(e);var o=n(6774),r=n(8867),i=n(3465),a=n.n(i);const s={postToDatabase:function(t,e,n,i){let s=a()(n);const c=arguments[arguments.length-1],l=arguments[arguments.length-2],{dispatch:u,getState:p}=o.clientStore,d=p(),{clientInputs:f}=d.common,{blueprint:m}=d.customization.present.data,{context:h}=d.customization.present,_=m[h];let E=_?.components?.[l]?.linkedProps?.instanceId;if(E){const t=_?.components?.[E];Object.keys(n).map((e=>{const n=t?.linkedProps?.clientIdMap?.[e];n&&(s[n]=s[e],delete s[e])}))}let g={};Object.keys(s).map((t=>{let e=s[t],n=f[t];g={...g,[`field_${e}`]:n}})),u(r.databaseActions.createPublicRow(g,e,t,i,c,l))}};e.default=s},2695:function(t,e,n){"use strict";n.r(e);const o={updateElementStyle:function(t,e){const n=arguments[arguments.length-1],o=arguments[arguments.length-2],r=arguments[arguments.length-4],i=arguments[arguments.length-3],{getDocument:a}=window.codeDesign.helpers,s=a();let c=s.getElementById(t);if(c||Object.keys(r[i]?.components).find((e=>{const n=r[i]?.components?.[e];let o=n?.linkedProps?.clientIdMap?.[t];o&&(c=s.getElementById(o))})),t&&e?.length>0&&c){let t={};for(var l in e.map((e=>{let{name:r,value:i,toggleProperty:a}=e;if(r&&i)if(a){const e=window?.codeDesign?.state?.[`${n}_${o}_${r}`];if(e)t[r]=e,window?.codeDesign?.state?.[`${n}_${o}_${r}`]&&(window.codeDesign.state[`${n}_${o}_${r}`]=void 0);else{const e=window.getComputedStyle(c)?.[r];e&&(window.codeDesign.state={...window.codeDesign.state,[`${n}_${o}_${r}`]:e},t[r]=i)}}else t[r]=i})),t)c.style[l]=t[l]}}};e.default=o},3095:function(t,e,n){"use strict";n.r(e);const o={galleryFunctions:(t,e)=>{const{getDocument:n}=window.codeDesign.helpers,o=[...n().getElementById(t).children].filter((t=>"relative"===window.getComputedStyle(t)?.position));window?.codeDesign?.state||(window.codeDesign.state={});const r=window?.codeDesign?.state?.[t]?.galleryFunctions?.lastSelection,i=o.length,a=e=>{window.codeDesign.state[t]={...window.codeDesign.state[t],galleryFunctions:{...window.codeDesign.state[t]?.galleryFunctions,lastSelection:e}}};switch(e){case"showFirstElement":o.map(((t,e)=>{0===e?(a(e),t.style.display="block",t.style.width="100%",t.style.height="100%"):t.style.display="none"}));break;case"showNextElement":{let t=r+1;const e=i<=t;o.map(((n,o)=>{e&&(t=i-t),o===t?(n.style.display="block",n.style.width="100%",n.style.height="100%",a(o)):n.style.display="none"}));break}case"showPreviousElement":{let t=r+1;const e=i<=t;o.map(((n,o)=>{e&&(t=i-t),o===t?(n.style.display="block",n.style.width="100%",n.style.height="100%",a(o)):n.style.display="none"}));break}}}};e.default=o},4251:function(t,e,n){"use strict";n.r(e);const o={redirectToPage:t=>{const{getWindow:e}=window.codeDesign.helpers;e().location.href=t}};e.default=o},6743:function(t,e,n){"use strict";n.r(e);var o=n(3465),r=n.n(o),i=n(7100),a=n(6774);const s={getState:(t="global",e)=>{const n=a.default.getState().stateManagement?.[t]?.[e];return n?.value},getAllActiveStates:(t="global")=>
1{const e=a.default.getState();return r()(e.stateManagement?.[t])},createNewState:(t="global",e)=>{const{dispatch:n}=a.default;n({type:i.stateManagementConstants.ADD_STATE,payload:{parent:t,key:e}})},updateState:(t="global",e,n)=>{const{dispatch:o}=a.default;o({type:i.stateManagementConstants.UPDATE_STATE,payload:{parent:t,key:e,value:n}})},updateIndividualState:(t,e)=>{if(!t)return;const{dispatch:n}=a.default;n({type:i.stateManagementConstants.UPDATE_INDIVIDUAL_ITEM,payload:{itemKey:t,itemValue:e}})}};e.default=s},4177:function(t,e,n){"use strict";n.r(e);var o=n(6743),r=n(6512),i=n(4099),a=n(8146),s=n(4251),c=n(2695),l=n(3095);const u={...o.default,...r.default,...i.default,...a.default,...s.default,...c.default,...l.default};e.default=u},8098:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(6113);e.default=()=>{const[t,e]=(0,o.useState)(0);return(0,o.useEffect)((()=>{const n=()=>{const n=document.documentElement.scrollHeight,o=document.documentElement.scrollTop/(n-document.documentElement.clientHeight)*100;o>t&&(e(o),o>=90?r.default.track("Scroll 90% from dashboard on dev.codedesign.ai"):o>=70?r.default.track("Scroll 70% from dashboard on dev.codedesign.ai"):o>=50?r.default.track("Scroll 50% from dashboard on dev.codedesign.ai"):o>=20&&r.default.track("Scroll 20% from dashboard on dev.codedesign.ai"))};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[t]),null}},2827:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(6113);e.default=()=>((0,o.useEffect)((()=>{const t=Date.now(),e=()=>{const e=Date.now()-t,n=Math.floor(e/6e4);20===n?r.default.track("Spent less than 20 mins on Template Library on codedesign.ai"):30===n?r.default.track("Spent less than 30 mins on Template Library on codedesign.ai"):50===n?r.default.track("Spent less than 50 mins on Template Library on codedesign.ai"):60===n&&r.default.track("Spent less than 60 mins on Template Library on codedesign.ai")},n=setInterval(e,6e4),o=()=>{clearInterval(n),e()};return window.addEventListener("beforeunload",o),()=>{clearInterval(n),window.removeEventListener("beforeunload",o)}}),[]),null)},4115:function(t,e,n){"use strict";n.r(e),n.d(e,{trackEvent:function(){return i},identifyUser:function(){return a}});var o=n(1267);const r="builder";function i(t,e={}){try{o.default.track(`Builder:${t}`,{platform:r,...e})}catch(n){}}function a(t,e={}){try{o.default.identify(t,{platform:r,...e})}catch(n){}}},6113:function(t,e,n){"use strict";let o;n.r(e);{const t=n(5122);o=t.default||t}e.default=o},9394:function(t,e,n){"use strict";n.r(e),n.d(e,{DYNAMIC_LIST_COMPONENT:function(){return o},DYNAMIC_ITEM_COMPONENT:function(){return r},DYNAMIC_DATA_LOADING_CLASS:function(){return i},DYNAMIC_LIST_EMPTY_STATE:function(){return a},DYNAMIC_LIST_ERROR_STATE:function(){return s},DYNAMIC_LIST_PAGINATION_NEXT:function(){return c},DYNAMIC_LIST_PAGINATION_PREVIOUS:function(){return l}});const o="dynamic-list-component-v1",r="dynamic-item-component-v1",i="dynamic-data-loading",a="dynamic-list-empty-state-v1",s="dynamic-list-error-state-v1",c="dynamic-list-pagination-next-v1",l="dynamic-list-pagination-previous-v1"},5796:function(t,e,n){"use strict";function o(t=""){return t.match(/.{1,3}/g).map((t=>parseInt(t,16))).join("-")}function r(t=""){if(!t)return"";if(/^[0-9a-fA-F]+$/.test(t))return t;return t.split("-").map((t=>Number(t).toString(16))).join("")}n.r(e),n.d(e,{transformHexId:function(){return o},reverseTransformToHexId:function(){return r}})},7911:function(t,e,n){"use strict";n.r(e),n.d(e,{failure:function(){return r}});var o=n(7100);function r(t,e){let n={message:"Something went wrong",type:t};return"TypeError: Could not connect to the server."===String(e)?n={message:"Either our server is down or your network is!",type:"NETWORK_DOWN"}:"TypeError: The Internet connection appears to be offline."===String(e)&&(n={message:"Your Internet is down",type:"INTERNET_DOWN"}),r=>{r({type:o.errorsConstants.ADD_ERROR,payload:{type:n.type,error:n}}),r({type:t,payload:e})}}},5710:function(t,e,n){"use strict";n.r(e);var o=n(4115);const r=["codedesign.ai","codedesign.app","cdsn.me","cdsn.app"],i=["analytics-proxy"],a=[{label:"slow_3s",threshold:3e3},{label:"slow_10s",threshold:1e4},{label:"slow_30s",threshold:3e4},{label:"slow_60s",threshold:6e4}];function s(t){try{const e="string"===typeof t?new URL(t,window.location.origin).hostname:"";return!i.some((t=>e.includes(t)))&&r.some((t=>e.endsWith(t)))}catch{return!1}}function c(t){try{return new URL(t,window.location.origin).pathname}catch{return String(t)}}function l(t){let e=null;for(const n of a)t>=n.threshold&&(e=n.label);return e}function u(t){return(t?.method||"GET").toUpperCase()}const p=window.fetch;window.fetch=async function(t,e){const n="string"===typeof t?t:t instanceof Request?t.url:String(t);if(!s(n))return p.apply(this,arguments);const r=u(e||(t instanceof Request?t:void 0)),i=c(n),a=performance.now();let d;try{d=await p.apply(this,arguments)}catch(h){const t=Math.round(performance.now()-a);try{(0,o.trackEvent)("RequestToBackend:Failed",{endpoint:i,method:r,status:0,duration_ms:t,error_message:h?.message||"Network error",error_type:"network_error"})}catch{}throw h}const f=Math.round(performance.now()-a);if(!d.ok&&401!==d.status)try{(0,o.trackEvent)("RequestToBackend:Failed",{endpoint:i,method:r,status:d.status,duration_ms:f,error_type:"http_error"})}catch{}const m=l(f);if(m)try{(0,o.trackEvent)("RequestToBackend:Slow",{endpoint:i,method:r,status:d.status,duration_ms:f,tier:m})}catch{}return d}},6865:function(t,e,n){"use strict";n.r(e),n.d(e,{flattenObject:function(){return o}});const o=function(t){var e={};for(var n in t)if(Object.hasOwnProperty.bind(t)(n))if("object"==typeof t[n]){var r=o(t[n]);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}else e[n]=t[n];return e}},4195:function(t,e,n){"use strict";n.r(e),n.d(e,{flattenObj:function(){return o},chunkArray:function(){return r}});const o=(t,e=0)=>{let n=0;return Object.assign({},...function t(o,r="",i=0){return[].concat(...Object.keys(o).map((a=>"object"===typeof o[a]&&i<e?t(o[a],`${r}.${a}`,++n):{[`${r}.${a}`]:o[a]})))}(t))};function r(t,e){let n=0,o=t.length,r=[];for(n=0;n<o;n+=e){let o=t.slice(n,n+e);r.push(o)}return r}},167:function(t,e,n){"use strict";function o(t,e){return t.json().then((n=>{let o;if(o=function(t){try{JSON.parse(t)}catch(e){return!1}return!0}(n)?JSON.parse(n):n,!t.ok){t.status;const n=o&&o.errorMessage||o&&o.message||t.statusText;
1return e?Promise.reject(t):Promise.reject(n)}if(t.status>500){const t="Server is down";return Promise.reject(t)}return o}))}n.r(e),n.d(e,{handleResponse:function(){return o}})},879:function(t,e,n){"use strict";n.r(e),n.d(e,{hasFeature:function(){return s}});var o=n(4055),r=n(6774),i=n(288),a=n(4115);function s(t,e,n){const{getState:s,dispatch:c}=r.default,l=s(),u={usage:l.user.data.order.usage||{},exportNumber:l.user.data.exportNumber,plan:l.user.data.order.plan||"Free",isAdmin:l.user.data.isAdmin,domains:l.common.data.domains,projects:l.customization.present.webBuilders,isLoggedIn:l.user.data._id,user:l.user.data,codedesignPricing:l.admin.siteProfile.data.pricing||[],projectPlan:l.customization.present.data.order||{},userPlan:l.user.data.order||{},currentProject:l.customization.present.data,playground:l.customization.present.playground,workspace:l.workspace?.data||{}},p=()=>u.user?.hasAICompanionEnabled?(u.workspace?.activePlans||[]).length>0:Boolean(u.userPlan?.paid),d=()=>u.projectPlan?.paid||p(),f=u.user.email?.endsWith("codedesign.app")||u.user.isAdmin,m={};u.codedesignPricing.forEach((t=>{const e=t["Plan Name"];if(!e)return;const n=t.hasFeature||[],o={};n.forEach((t=>{const[e,n]=t.split("__");o[e]=n})),m[e]=o}));let h=[],_=[];u.projects.map((t=>{t?.theme?.templateId?_.push(t):h.push(t)}));const E=(e={})=>{const{caseItem:r=""}=e;if("guest"===C&&n?.includes("limitGuest"))(0,a.trackEvent)("Pricing:GateTriggered",{feature:t,userType:C,isPlayground:u.playground,gateType:"guest"}),c(o.uiActions.setGuestModal(!0));else if(u.playground&&n?.includes("limitPlayground"))(0,a.trackEvent)("Pricing:GateTriggered",{feature:t,userType:C,isPlayground:!0,gateType:"playground"}),c(o.uiActions.setSelectEditModeModal(!0));else if(!d()&&n?.includes("limitPremium")){if((0,a.trackEvent)("Pricing:GateTriggered",{feature:t,userType:C,isPlayground:u.playground,gateType:"premium"}),((t="")=>{c(o.uiActions.setShowPricingModal(!0,t))})(r),n?.includes("limitLTD")){const t=u.projectPlan?.plan||"",e=u.userPlan?.plan||"",n=t||e,o=n.includes("LTD"),r=n.toLowerCase().includes("agency"),i=n.toLowerCase().includes("growth");o||r||i||window.showToast({type:"error",msg:"This feature is only available for Lifetime deal, Agency, or Growth plan users"})}}else n()},g=u.plan===i.zo,y=u.plan===i.xf,S=u.plan===i.E5,T=()=>{if(u.isAdmin)return"admin";if(u.isLoggedIn)return g?"basic":y?"premium":S?"advanced":p()?"premium":"free";return localStorage.getItem("token")?"free":"guest"},C=T();switch(t){case"SAVE_AI_PLAYGROUND_PROJECT":return p()?e():E();case"PREMIUM_ELEMENT_DROPPING":return d()?e():E();case"GENERIC_ACTION_ALLOW_ONLY_USER_PLAN_PAID":return p()?e():E();case"ADD_PROJECT":return e();case"DEPLOY_PROJECT":return"guest"===C?E():e();case"GENERIC_ACTION":return"guest"===C||u.playground?E():e();case"DATABASE_AND_SETTINGS":return u.playground?E():e();case"DOMAIN_CONNECTION":case"GENERIC_ACTION_ALLOW_ONLY_PAID":return d()?e():E();case"GENERIC_ACTION_ALLOW_ONLY_PAID_OR_CODEDESIGN_MEMBERS":return d()||f?e():E();case"DB_ACCESS":case"WORKFLOW_ACCESS":case"REACT_EXPORT":return"free"!==T()||d()?e():E();case"WHOLE_PROJECT_EXPORT":return console.log(u,"monarki"),"free"!==T()&&u.projectPlan?.plan?.includes("LTD")?e():E();case"SINGLE_PAGE_EXPORT":{const t=u.projectPlan?.plan||"",n=u.userPlan?.plan||"";let o=t||n;if(u.user?.hasAICompanionEnabled&&u.workspace?.activePlans?.length>0){const t=u.workspace.activePlans[0];o=o||t?.planName||""}console.log(n,t,o,"monarki123");const r=o.includes("LTD")||o.toLowerCase().includes("lifetime"),i=o.toLowerCase().includes("agency"),a=o.toLowerCase().includes("growth");return d()&&(r||i||a)?e():E()}case"REQUEST_EARLY_ACCESS_BUTTON":return d()?e():E();case"REGENERATE_SITE":return p()||f?e():E({caseItem:"REGENERATE_SITE"});case"CREATE_DATABASE":return d()?e():E();case"GENERIC_ACTION_PLAYGROUND_LIMIT":return"guest"===C||u.playground?E():e();case"ADD_PAGE":if("guest"===C||u.playground)return E();{const t=Object.keys(u.currentProject.blueprint||{})?.length;if(t>=3&&!d())return E();e()}break;default:return""}}},5236:function(t,e,n){"use strict";n.r(e),n.d(e,{openInNewTab:function(){return b},formatDate:function(){return C},clean:function(){return E},cleanupBlueprintData:function(){return g},isObject:function(){return h},mergeDeep:function(){return _},builderMediaQueries:function(){return p},checkNested:function(){return d},toTitleCase:function(){return f},capitalizeFirstLetter:function(){return m},swapKeyValues:function(){return y},filterObject:function(){return S},getTimeStr:function(){return T},flattenObject:function(){return a.flattenObject},promisedProperties:function(){return s.promisedProperties},validateInput:function(){return c.validateInput},isValidBase64:function(){return l.isValidBase64},hasFeature:function(){return u.hasFeature}});var o=n(4266),r={};for(var i in o)["default","openInNewTab","formatDate","clean","cleanupBlueprintData","isObject","mergeDeep","builderMediaQueries","checkNested","toTitleCase","capitalizeFirstLetter","swapKeyValues","filterObject","getTimeStr"].indexOf(i)<0&&(r[i]=function(t){return o[t]}.bind(0,i));n.d(e,r);
1var a=n(6865),s=n(5689),c=n(9704),l=n(7501),u=n(879);const p={small:"(max-width: 767px)",medium:"(min-width: 768px) and (max-width: 1199px)",large:"(min-width: 1200px) and (max-width: 1279px)",bp_1280:"(min-width: 1280px) and (max-width: 1439px)",bp_1440:"(min-width: 1440px) and (max-width: 1919px)",bp_1920:"(min-width: 1920px)"};function d(t){if(!t)return!1;try{for(var e=1;e<arguments.length;e++){if(!t||!Object.prototype.hasOwnProperty.call(t,arguments[e]))return!1;t=t[arguments[e]]}return!0}catch(n){return!1}}function f(t){let e=!0,n="";for(let o=0,r=t.length;o<r;o++)" "!=t[o]?(n+=e?t[o].toUpperCase():t[o],e=!1):(e=!0,n+=" ");return n}const m=t=>t.charAt(0).toUpperCase()+t.slice(1);function h(t){return t&&"object"===typeof t&&!Array.isArray(t)}function _(t,...e){if(!e.length)return t;const n=e.shift();if(h(t)&&h(n))for(const o in n)h(n[o])?(t[o]||Object.assign(t,{[o]:{}}),_(t[o],n[o])):Object.assign(t,{[o]:n[o]});return _(t,...e)}function E(t){for(var e in t)""===t[e]||void 0===t[e]||"undefined"===typeof t[e]?delete t[e]:"object"===typeof t[e]&&E(t[e]);return t}function g(t){if(!t||"object"!==typeof t)return t;const e={};return Object.keys(t).forEach((n=>{const o=t[n];o&&"object"===typeof o&&(e[n]={...o},o.layouts&&"object"===typeof o.layouts&&(e[n].layouts={},Object.keys(o.layouts).forEach((t=>{const r=o.layouts[t];Array.isArray(r)&&(e[n].layouts[t]=r.filter((t=>t&&"object"===typeof t&&void 0!==t.i&&null!==t.i&&""!==t.i)))}))),Object.keys(o).forEach((t=>{if("layouts"!==t&&"components"!==t&&"meta"!==t&&"_meta"!==t&&"version"!==t){const r=o[t];r&&"object"===typeof r&&(e[n][t]={},Object.keys(r).forEach((o=>{const i=r[o];Array.isArray(i)&&(e[n][t][o]=i.filter((t=>t&&"object"===typeof t&&void 0!==t.i&&null!==t.i&&""!==t.i)))})))}})),o.components&&"object"===typeof o.components&&(e[n].components={},Object.keys(o.components).forEach((t=>{const r=o.components[t];r&&"object"===typeof r&&void 0!==t&&null!==t&&""!==t&&(e[n].components[t]=E({...r}))}))),o.meta&&"object"===typeof o.meta&&(e[n].meta=E({...o.meta})),void 0!==o._meta&&(e[n]._meta=o._meta))})),e}const y=t=>Object.keys(t).reduce(((e,n)=>(e[t[n]]=n,e)),{});function S(t,e){return Object.fromEntries(Object.entries(t).filter((([t,n])=>e(n,t))))}const T=(t="",e={})=>{const{threeLetterMonth:n=!1,twoLetterYear:o=!1,excludeTime:r=!1,excludeYear:i=!1}=e;let a=[];const s=new Date(t),c=s.getFullYear(),l=["January","February","March","April","May","June","July","August","September","October","November","December"][s.getMonth()],u=("0"+s.getDate()).slice(-2);let p=s.getHours(),d=s.getMinutes(),f=p>=12?"PM":"AM";p%=12,p=p||12,d=d<10?"0"+d:d;let m=p+":"+d+" "+f;a.push(u);let h=n?l.slice(0,3):l;a.push(h);let _=o?`'${String(c).slice(-2)}`:String(c);return i||a.push(_),!r&&a.push(m),a.join(" ")},C=t=>{var e=new Date(t),n=""+(e.getMonth()+1),o=""+e.getDate(),r=e.getFullYear();return n.length<2&&(n="0"+n),o.length<2&&(o="0"+o),[r,n,o].join("-")};function b(t){window.open(t,"_blank")}},9704:function(t,e,n){"use strict";function o(t,e){const n=/^(([^<>()\]\\.,;:\s@"]+(\.[^<>()\]\\.,;:\s@"]+)*)|(".+"))@(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,o=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^\da-zA-Z]).\S{8,25}$/,r=/^[a-zA-Z, .'-]{3,30}$/,i=/^[a-z0-9-]{3,20}$/,a=/^[ A-Za-z0-9_@.\/#&+'"-?!`@$%^&*()[\]{}]*$/,s=/^(?!\s*$).+/,c=/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/,l=/^(((?!-))(xn--|_{1,1})?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.)*(xn--)?([a-z0-9][a-z0-9\-]{0,60}|[a-z0-9-]{1,30}\.[a-z]{2,})$/,u=/^[a-zA-Z0-9][a-zA-Z0-9.-]+[a-zA-Z0-9]$/;let p;switch(t){case"domain":p=!!l.test(e);break;case"subdomain":p=!!u.test(e);break;case"username":p=!i.test(e);break;case"userurl":p=!c.test(e);break;case"name":p=!r.test(e);break;case"email":p=!n.test(e);break;case"password":p=!o.test(e);break;case"forgotPassword":{const{password:t,confirmPassword:n}=e;p={password:!o.test(t),passwordMatch:""===t||t!==n};break}case"title":p=!a.test(e);break;case"content":p=!s.test(e)}return p}n.r(e),n.d(e,{validateInput:function(){return o}})},418:function(){},4961:function(t,e,n){"use strict";n.r(e),e.default=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=n.length,r=0;r<t;r++)e+=n.charAt(Math.floor(Math.random()*o));return e}},1267:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Wa}});var o="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:o,i=Array.prototype,a=i.forEach,s=i.indexOf,c=null==r?void 0:r.navigator,l=null==r?void 0:r.document,u=null==r?void 0:r.location,p=null==r?void 0:r.fetch,d=null!=r&&r.XMLHttpRequest&&"withCredentials"in new r.XMLHttpRequest?r.XMLHttpRequest:void 0,f=null==r?void 0:r.AbortController,m=null==c?void 0:c.userAgent,h=null!=o?o:{},_={DEBUG:!1,LIB_VERSION:"1.256.2"},E="$copy_autocapture",g=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],y=function(t){return t.GZipJS="gzip-js",t.Base64="base64",t}({}),S=["fatal","error","warning","log","info","debug"];function T(t,e){return-1!==t.indexOf(e)}var C=function(t){return t.trim()},b=function(t){return t.replace(/^\$/,"")},v=Array.isArray,I=Object.prototype,A=I.hasOwnProperty,O=I.toString,R=v||function(t){return"[object Array]"===O.call(t)},P=t=>"function"==typeof t,U=t=>t===Object(t)&&!R(t),w=t=>{if(U(t)){for(var e in t)if(A.call(t,e))return!1;return!0}return!1},L=t=>void 0===t,x=t=>"[object String]"==O.call(t),D=t=>x(t)&&0===t.trim().length,N=t=>null===t,F=t=>L(t)||N(t),k=t=>"[object Number]"==O.call(t),M=t=>"[object Boolean]"===O.call(t),j=t=>T(g,t),B=t=>{var e={t:function(e){if(o&&(_.DEBUG||h.POSTHOG_DEBUG)&&!L(o.console)&&o.console){for(var n=("__rrweb_original__"in o.console[e]?o.console[e].__rrweb_original__:o.console[e]),r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];n(t,...i)}},info:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.t("log",...n)},warn:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.t("warn",...n)},error:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.t("error",...n)},critical:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];console.error(t,...n)},uninitializedWarning:t=>{e.error("You must initialize PostHog before calling "+t)},createLogger:e=>B(t+" "+e)};return e},G=B("[PostHog.js]"),H=G.createLogger,z=H("[ExternalScriptsLoader]"),$=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return z.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var o=null==l?void 0:l.querySelectorAll("script");
vendor: 20,365 bytes, line 1
1if(o)for(var r=0;r<o.length;r++)if(o[r].src===e)return n();var i=()=>{if(!l)return n("document not found");var o=l.createElement("script");if(o.type="text/javascript",o.crossOrigin="anonymous",o.src=e,o.onload=t=>n(void 0,t),o.onerror=t=>n(t),t.config.prepare_external_dependency_script&&(o=t.config.prepare_external_dependency_script(o)),!o)return n("prepare_external_dependency_script returned null");var r,i=l.querySelectorAll("body > script");i.length>0?null==(r=i[0].parentNode)||r.insertBefore(o,i[0]):l.body.appendChild(o)};null!=l&&l.body?i():null==l||l.addEventListener("DOMContentLoaded",i)};function W(){return(W=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(null,arguments)}function V(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}h.__PosthogExtensions__=h.__PosthogExtensions__||{},h.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{var o="/static/"+e+".js?v="+t.version;if("remote-config"===e&&(o="/array/"+t.config.token+"/config.js"),"toolbar"===e){var r=3e5;o=o+"&t="+Math.floor(Date.now()/r)*r}var i=t.requestRouter.endpointFor("assets",o);$(t,i,n)},h.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var o=t.requestRouter.endpointFor("api",e);$(t,o,n)};var Y={};function Q(t,e,n){if(R(t))if(a&&t.forEach===a)t.forEach(e,n);else if("length"in t&&t.length===+t.length)for(var o=0,r=t.length;o<r;o++)if(o in t&&e.call(n,t[o],o)===Y)return}function K(t,e,n){if(!F(t)){if(R(t))return Q(t,e,n);if((t=>t instanceof FormData)(t)){for(var o of t.entries())if(e.call(n,o[1],o[0])===Y)return}else for(var r in t)if(A.call(t,r)&&e.call(n,t[r],r)===Y)return}}var q=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return Q(n,(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},J=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return Q(n,(function(e){Q(e,(function(e){t.push(e)}))})),t};function X(t){for(var e=Object.keys(t),n=e.length,o=new Array(n);n--;)o[n]=[e[n],t[e[n]]];return o}var Z=function(t){try{return t()}catch(t){return}},tt=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.apply(this,n)}catch(t){G.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),G.critical(t)}}},et=function(t){var e={};return K(t,(function(t,n){(x(t)&&t.length>0||k(t))&&(e[n]=t)})),e};var nt=["herokuapp.com","vercel.app","netlify.app"];function ot(t){var e=null==t?void 0:t.hostname;if(!x(e))return!1;var n=e.split(".").slice(-2).join(".");for(var o of nt)if(n===o)return!1;return!0}function rt(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function it(t,e,n,o){var{capture:r=!1,passive:i=!0}=null!=o?o:{};null==t||t.addEventListener(e,n,{capture:r,passive:i})}var at="$people_distinct_id",st="__alias",ct="__timers",lt="$autocapture_disabled_server_side",ut="$heatmaps_enabled_server_side",pt="$exception_capture_enabled_server_side",dt="$error_tracking_suppression_rules",ft="$web_vitals_enabled_server_side",mt="$dead_clicks_enabled_server_side",ht="$web_vitals_allowed_metrics",_t="$session_recording_enabled_server_side",Et="$console_log_recording_enabled_server_side",gt="$session_recording_network_payload_capture",yt="$session_recording_masking",St="$session_recording_canvas_recording",Tt="$replay_sample_rate",Ct="$replay_minimum_duration",bt="$replay_script_config",vt="$sesid",It="$session_is_sampled",At="$session_recording_url_trigger_activated_session",Ot="$session_recording_event_trigger_activated_session",Rt="$enabled_feature_flags",Pt="$early_access_features",Ut="$feature_flag_details",wt="$stored_person_properties",Lt="$stored_group_properties",xt="$surveys",Dt="$surveys_activated",Nt="$flag_call_reported",Ft="$user_state",kt="$client_session_props",Mt="$capture_rate_limit",jt="$initial_campaign_params",Bt="$initial_referrer_info",Gt="$initial_person_info",Ht="$epp",zt="__POSTHOG_TOOLBAR__",$t="$posthog_cookieless",Wt=[at,st,"__cmpns",ct,_t,ut,vt,Rt,dt,Ft,Pt,Ut,Lt,wt,xt,Nt,kt,Mt,jt,Bt,Ht,Gt];function Vt(t){return t instanceof Element&&(t.id===zt||!(null==t.closest||!t.closest(".toolbar-global-fade-container")))}function Yt(t){return!!t&&1===t.nodeType}function Qt(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function Kt(t){return!!t&&3===t.nodeType}function qt(t){return!!t&&11===t.nodeType}function Jt(t){return t?C(t).split(/\s+/):[]}function Xt(t){var e=null==o?void 0:o.location.href;return!!(e&&t&&t.some((t=>e.match(t))))}function Zt(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return Jt(e)}function te(t){return F(t)?null:C(t).split(/(\s+)/).filter((t=>fe(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ee(t){var e="";return ie(t)&&!ae(t)&&t.childNodes&&t.childNodes.length&&K(t.childNodes,(function(t){var n;Kt(t)&&t.textContent&&(e+=null!==(n=te(t.textContent))&&void 0!==n?n:"")})),C(e)}function ne(t){return L(t.target)?t.srcElement||null:null!=(e=t.target)&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}var oe=["a","button","form","input","select","textarea","label"];function re(t){var e=t.parentNode;return!(!e||!Yt(e))&&e}function ie(t){for(var e=t;e.parentNode&&!Qt(e,"body");e=e.parentNode){var n=Zt(e);if(T(n,"ph-sensitive")||T(n,"ph-no-capture"))return!1}if(T(Zt(t),"ph-include"))return!0;var o=t.type||"";if(x(o))switch(o.toLowerCase()){case"hidden":case"password":return!1}var r=t.name||t.id||"";return!x(r)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,""))}function ae(t){return!!(Qt(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Qt(t,"select")||Qt(t,"textarea")||"true"===t.getAttribute("contenteditable"))}var se="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ce=new RegExp("^(?:"+se+")$"),le=new RegExp(se),ue="\\d{3}-?\\d{2}-?\\d{4}",pe=new RegExp("^("+ue+")$"),de=new RegExp("("+ue+")");function fe(t,e){if(void 0===e&&(e=!0),F(t))return!1;if(x(t)){if(t=C(t),(e?ce:le).test((t||"").replace(/[- ]/g,"")))return!1;if((e?pe:de).test(t))return!1}return!0}function me(t){var e=ee(t);return fe(e=(e+" "+he(t)).trim())?e:""}function he(t){var e="";return t&&t.childNodes&&t.childNodes.length&&K(t.childNodes,(function(t){var n;if(t&&"span"===(null==(n=t.tagName)?void 0:n.toLowerCase()))try{var o=ee(t);e=(e+" "+o).trim(),t.childNodes&&t.childNodes.length&&(e=(e+" "+he(t)).trim())}catch(t){G.error("[AutoCapture]",t)}})),e}function _e(t){return function(t){return t.map((t=>{var e,n,o="";if(t.tag_name&&(o+=t.tag_name),t.attr_class)for(var r of(t.attr_class.sort(),t.attr_class))o+="."+r.replace(/"/g,"");var i=W({},t.text?{text:t.text}:{},{"nth-child":null!==(e=t.nth_child)&&void 0!==e?e:0,"nth-of-type":null!==(n=t.nth_of_type)&&void 0!==n?n:0},t.href?{href:t.href}:{},t.attr_id?{attr_id:t.attr_id}:{},t.attributes),a={};return X(i).sort(((t,e)=>{var[n]=t,[o]=e;return n.localeCompare(o)})).forEach((t=>{var[e,n]=t;return a[Ee(e.toString())]=Ee(n.toString())})),(o+=":")+X(a).map((t=>{var[e,n]=t;return e+'="'+n+'"'})).join("")})).join(";")}(function(t){return t.map((t=>{var e,n,o={text:null==(e=t.$el_text)?void 0:e.slice(0,400),tag_name:t.tag_name,href:null==(n=t.attr__href)?void 0:n.slice(0,2048),attr_class:ge(t),attr_id:t.attr__id,nth_child:t.nth_child,nth_of_type:t.nth_of_type,attributes:{}};return X(t).filter((t=>{var[e]=t;return 0===e.indexOf("attr__")})).forEach((t=>{var[e,n]=t;return o.attributes[e]=n})),o}))}(t))}function Ee(t){return t.replace(/"|\\"/g,'\\"')}function ge(t){var e=t.attr__class;return e?R(e)?e:Jt(e):void 0}class ye{constructor(){this.clicks=[]}isRageClick(t,e,n){var o=this.clicks[this.clicks.length-1];if(o&&Math.abs(t-o.x)+Math.abs(e-o.y)<30&&n-o.timestamp<1e3){if(this.clicks.push({x:t,y:e,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:t,y:e,timestamp:n}];return!1}}var Se=["localhost","127.0.0.1"],Te=t=>{var e=null==l?void 0:l.createElement("a");return L(e)?null:(e.href=t,e)},Ce=function(t,e){for(var n,o=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),r=0;r<o.length;r++){var i=o[r].split("=");if(i[0]===e){n=i;break}}if(!R(n)||n.length<2)return"";var a=n[1];try{a=decodeURIComponent(a)}catch(t){G.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},be=function(t,e,n){if(!t||!e||!e.length)return t;for(var o=t.split("#"),r=o[0]||"",i=o[1],a=r.split("?"),s=a[1],c=a[0],l=(s||"").split("&"),u=[],p=0;p<l.length;p++){var d=l[p].split("=");R(d)&&(e.includes(d[0])?u.push(d[0]+"="+n):u.push(l[p]))}var f=c;return null!=s&&(f+="?"+u.join("&")),null!=i&&(f+="#"+i),f},ve=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},Ie=H("[AutoCapture]");function Ae(t,e){return e.length>t?e.slice(0,t)+"...":e}function Oe(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do{e=e.previousSibling}while(e&&!Yt(e));return e}function Re(t,e){for(var n,r,{e:i,maskAllElementAttributes:a,maskAllText:s,elementAttributeIgnoreList:c,elementsChainAsString:l}=e,u=[t],p=t;p.parentNode&&!Qt(p,"body");)qt(p.parentNode)?(u.push(p.parentNode.host),p=p.parentNode.host):(u.push(p.parentNode),p=p.parentNode);var d,f=[],m={},h=!1,_=!1;if(K(u,(t=>{var e=ie(t);"a"===t.tagName.toLowerCase()&&(h=t.getAttribute("href"),h=e&&h&&fe(h)&&h),T(Zt(t),"ph-no-capture")&&(_=!0),f.push(function(t,e,n,o){var r=t.tagName.toLowerCase(),i={tag_name:r};oe.indexOf(r)>-1&&!n&&("a"===r.toLowerCase()||"button"===r.toLowerCase()?i.$el_text=Ae(1024,me(t)):i.$el_text=Ae(1024,ee(t)));var a=Zt(t);a.length>0&&(i.classes=a.filter((function(t){return""!==t}))),K(t.attributes,(function(n){var r;if((!ae(t)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==o||!o.includes(n.name))&&!e&&fe(n.value)&&(r=n.name,!x(r)||"_ngcontent"!==r.substring(0,10)&&"_nghost"!==r.substring(0,7))){var a=n.value;"class"===n.name&&(a=Jt(a).join(" ")),i["attr__"+n.name]=Ae(1024,a)}}));for(var s=1,c=1,l=t;l=Oe(l);)s++,l.tagName===t.tagName&&c++;return i.nth_child=s,i.nth_of_type=c,i}(t,a,s,c));var n=function(t){if(!ie(t))return{};var e={};return K(t.attributes,(function(t){if(t.name&&0===t.name.indexOf("data-ph-capture-attribute")){var n=t.name.replace("data-ph-capture-attribute-",""),o=t.value;n&&o&&fe(o)&&(e[n]=o)}})),e}(t);q(m,n)})),_)return{props:{},explicitNoCapture:_};if(s||("a"===t.tagName.toLowerCase()||"button"===t.tagName.toLowerCase()?f[0].$el_text=me(t):f[0].$el_text=ee(t)),h){var E,g;f[0].attr__href=h;var y=null==(E=Te(h))?void 0:E.host,S=null==o||null==(g=o.location)?void 0:g.host;y&&S&&y!==S&&(d=h)}return{props:q({$event_type:i.type,$ce_version:1},l?{}:{$elements:f},{$elements_chain:_e(f)},null!=(n=f[0])&&n.$el_text?{$el_text:null==(r=f[0])?void 0:r.$el_text}:{},d&&"click"===i.type?{$external_click_url:d}:{},m)}}class Pe{constructor(t){this.i=!1,this.o=null,this.rageclicks=new ye,this.h=!1,this.instance=t,this.m=null}get S(){var t,e,n=U(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=null==(t=n.url_allowlist)?void 0:t.map((t=>new RegExp(t))),n.url_ignorelist=null==(e=n.url_ignorelist)?void 0:e.map((t=>new RegExp(t))),n}$(){if(this.isBrowserSupported()){if(o&&l){var t=t=>{t=t||(null==o?void 0:o.event);try{this.k(t)}catch(o){Ie.error("Failed to capture event",o)}};if(it(l,"submit",t,{capture:!0}),it(l,"change",t,{capture:!0}),it(l,"click",t,{capture:!0}),this.S.capture_copied_text){var e=t=>{t=t||(null==o?void 0:o.event),this.k(t,E)};it(l,"copy",e,{capture:!0}),it(l,"cut",e,{capture:!0})}}}else Ie.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.i&&(this.$(),this.i=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.h=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[lt]:!!t.autocapture_opt_out}),this.o=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.m=t}getElementSelectors(t){var e,n=[];return null==(e=this.m)||e.forEach((e=>{var o=null==l?void 0:l.querySelectorAll(e);null==o||o.forEach((o=>{t===o&&n.push(e)}))})),n}get isEnabled(){var t,e,n=null==(t=this.instance.persistence)?void 0:t.props[lt],o=this.o;if(N(o)&&!M(n)&&!this.instance.I())return!1;var r=null!==(e=this.o)&&void 0!==e?e:!!n;return!!this.instance.config.autocapture&&!r}k(t,e){if(void 0===e&&(e="$autocapture"),this.isEnabled){var n,r=ne(t);Kt(r)&&(r=r.parentNode||null),"$autocapture"===e&&"click"===t.type&&t instanceof MouseEvent&&this.instance.config.rageclick&&null!=(n=this.rageclicks)&&n.isRageClick(t.clientX,t.clientY,(new Date).getTime())&&this.k(t,"$rageclick");var i=e===E;if(r&&function(t,e,n,r,i){var a,s,c;if(void 0===n&&(n=void 0),!o||!t||Qt(t,"html")||!Yt(t))return!1;if(null!=(a=n)&&a.url_allowlist&&!Xt(n.url_allowlist))return!1;if(null!=(s=n)&&s.url_ignorelist&&Xt(n.url_ignorelist))return!1;if(null!=(c=n)&&c.dom_event_allowlist){var l=n.dom_event_allowlist;if(l&&!l.some((t=>e.type===t)))return!1}for(var u=!1,p=[t],d=!0,f=t;f.parentNode&&!Qt(f,"body");)if(qt(f.parentNode))p.push(f.parentNode.host),f=f.parentNode.host;else{if(!(d=re(f)))break;if(r||oe.indexOf(d.tagName.toLowerCase())>-1)u=!0;else{var m=o.getComputedStyle(d);m&&"pointer"===m.getPropertyValue("cursor")&&(u=!0)}p.push(d),f=d}if(!function(t,e){var n=null==e?void 0:e.element_allowlist;if(L(n))return!0;var o,r=function(t){if(n.some((e=>t.tagName.toLowerCase()===e)))return{v:!0}};for(var i of t)if(o=r(i))return o.v;return!1}(p,n))return!1;if(!function(t,e){var n=null==e?void 0:e.css_selector_allowlist;if(L(n))return!0;var o,r=function(t){if(n.some((e=>t.matches(e))))return{v:!0}};for(var i of t)if(o=r(i))return o.v;return!1}(p,n))return!1;var h=o.getComputedStyle(t);if(h&&"pointer"===h.getPropertyValue("cursor")&&"click"===e.type)return!0;var _=t.tagName.toLowerCase();switch(_){case"html":return!1;case"form":return(i||["submit"]).indexOf(e.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(e.type)>=0;default:return u?(i||["click"]).indexOf(e.type)>=0:(i||["click"]).indexOf(e.type)>=0&&(oe.indexOf(_)>-1||"true"===t.getAttribute("contenteditable"))}}(r,t,this.S,i,i?["copy","cut"]:void 0)){var{props:a,explicitNoCapture:s}=Re(r,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.S.element_attribute_ignorelist,elementsChainAsString:this.h});if(s)return!1;var c=this.getElementSelectors(r);if(c&&c.length>0&&(a.$element_selectors=c),e===E){var l,u=te(null==o||null==(l=o.getSelection())?void 0:l.toString()),p=t.type||"clipboard";if(!u)return!1;a.$selected_content=u,a.$copy_type=p}return this.instance.capture(e,a),!0}}}isBrowserSupported(){return P(null==l?void 0:l.querySelectorAll)}}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return k(t)&&isFinite(t)&&Math.floor(t)===t});var Ue="0123456789abcdef";class we{constructor(t){if(this.bytes=t,16!==t.length)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,e,n,o){if(!Number.isInteger(t)||!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(o)||t<0||e<0||n<0||o<0||t>0xffffffffffff||e>4095||n>1073741823||o>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=t/Math.pow(2,40),r[1]=t/Math.pow(2,32),r[2]=t/Math.pow(2,24),r[3]=t/Math.pow(2,16),r[4]=t/Math.pow(2,8),r[5]=t,r[6]=112|e>>>8,r[7]=e,r[8]=128|n>>>24,r[9]=n>>>16,r[10]=n>>>8,r[11]=n,r[12]=o>>>24,r[13]=o>>>16,r[14]=o>>>8,r[15]=o,new we(r)}toString(){for(var t="",e=0;e<this.bytes.length;e++)t=t+Ue.charAt(this.bytes[e]>>>4)+Ue.charAt(15&this.bytes[e]),3!==e&&5!==e&&7!==e&&9!==e||(t+="-");if(36!==t.length)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new we(this.bytes.slice(0))}equals(t){return 0===this.compareTo(t)}compareTo(t){for(var e=0;e<16;e++){var n=this.bytes[e]-t.bytes[e];if(0!==n)return Math.sign(n)}return 0}}class Le{constructor(){this.P=0,this.R=0,this.T=new Ne}generate(){var t=this.generateOrAbort();if(L(t)){this.P=0;var e=this.generateOrAbort();if(L(e))throw new Error("Could not generate UUID after timestamp reset");return e}return t}generateOrAbort(){var t=Date.now();if(t>this.P)this.P=t,this.M();else{if(!(t+1e4>this.P))return;this.R++,this.R>4398046511103&&(this.P++,this.M())}return we.fromFieldsV7(this.P,Math.trunc(this.R/Math.pow(2,30)),this.R&Math.pow(2,30)-1,this.T.nextUint32())}M(){this.R=1024*this.T.nextUint32()+(1023&this.T.nextUint32())}}var xe,De=t=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;e<t.length;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};o&&!L(o.crypto)&&crypto.getRandomValues&&(De=t=>crypto.getRandomValues(t));class Ne{constructor(){this.C=new Uint32Array(8),this.F=1/0}nextUint32(){return this.F>=this.C.length&&(De(this.C),this.F=0),this.C[this.F++]}}var Fe=()=>ke().toString(),ke=()=>(xe||(xe=new Le)).generate(),Me="",je=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;var Be={O:()=>!!l,A:function(t){G.error("cookieStore error: "+t)},D:function(t){if(l){try{for(var e=t+"=",n=l.cookie.split(";").filter((t=>t.length)),o=0;o<n.length;o++){for(var r=n[o];" "==r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(e))return decodeURIComponent(r.substring(e.length,r.length))}}catch(t){}return null}},L:function(t){var e;try{e=JSON.parse(Be.D(t))||{}}catch(t){}return e},j:function(t,e,n,o,r){if(l)try{var i="",a="",s=function(t,e){if(e){var n=function(t,e){if(void 0===e&&(e=l),Me)return Me;if(!e)return"";if(["localhost","127.0.0.1"].includes(t))return"";for(var n=t.split("."),o=Math.min(n.length,8),r="dmn_chk_"+Fe();!Me&&o--;){var i=n.slice(o).join("."),a=r+"=1;domain=."+i+";path=/";e.cookie=a+";max-age=3",e.cookie.includes(r)&&(e.cookie=a+";max-age=0",Me=i)}return Me}(t);if(!n){var o=(t=>{var e=t.match(je);return e?e[0]:""})(t);o!==n&&G.info("Warning: cookie subdomain discovery mismatch",o,n),n=o}return n?"; domain=."+n:""}return""}(l.location.hostname,o);if(n){var c=new Date;c.setTime(c.getTime()+24*n*60*60*1e3),i="; expires="+c.toUTCString()}r&&(a="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+i+"; SameSite=Lax; path=/"+s+a;return u.length>3686.4&&G.warn("cookieStore warning: large cookie, len="+u.length),l.cookie=u,u}catch(t){return}},N:function(t,e){try{Be.j(t,"",-1,e)}catch(t){return}}},Ge=null,He={O:function(){if(!N(Ge))return Ge;var t=!0;if(L(o))t=!1;else try{var e="__mplssupport__";He.j(e,"xyz"),'"xyz"'!==He.D(e)&&(t=!1),He.N(e)}catch(o){t=!1}return t||G.error("localStorage unsupported; falling back to cookie store"),Ge=t,t},A:function(t){G.error("localStorage error: "+t)},D:function(t){try{return null==o?void 0:o.localStorage.getItem(t)}catch(o){He.A(o)}return null},L:function(t){try{return JSON.parse(He.D(t))||{}}catch(t){}return null},j:function(t,e){try{null==o||o.localStorage.setItem(t,JSON.stringify(e))}catch(o){He.A(o)}},N:function(t){try{null==o||o.localStorage.removeItem(t)}catch(o){He.A(o)}}},ze=["distinct_id",vt,It,Ht,Gt],$e=W({},He,{L:function(t){try{var e={};try{e=Be.L(t)||{}}catch(t){}var n=q(e,JSON.parse(He.D(t)||"{}"));return He.j(t,n),n}catch(t){}return null},j:function(t,e,n,o,r,i){try{He.j(t,e,void 0,void 0,i);var a={};ze.forEach((t=>{e[t]&&(a[t]=e[t])})),Object.keys(a).length&&Be.j(t,a,n,o,r,i)}catch(t){He.A(t)}},N:function(t,e){try{null==o||o.localStorage.removeItem(t),Be.N(t,e)}catch(o){He.A(o)}}}),We={},Ve={O:function(){return!0},A:function(t){G.error("memoryStorage error: "+t)},D:function(t){return We[t]||null},L:function(t){return We[t]||null},j:function(t,e){We[t]=e},N:function(t){delete We[t]}},Ye=null,Qe={O:function(){if(!N(Ye))return Ye;
1if(Ye=!0,L(o))Ye=!1;else try{var t="__support__";Qe.j(t,"xyz"),'"xyz"'!==Qe.D(t)&&(Ye=!1),Qe.N(t)}catch(o){Ye=!1}return Ye},A:function(t){G.error("sessionStorage error: ",t)},D:function(t){try{return null==o?void 0:o.sessionStorage.getItem(t)}catch(o){Qe.A(o)}return null},L:function(t){try{return JSON.parse(Qe.D(t))||null}catch(t){}return null},j:function(t,e){try{null==o||o.sessionStorage.setItem(t,JSON.stringify(e))}catch(o){Qe.A(o)}},N:function(t){try{null==o||o.sessionStorage.removeItem(t)}catch(o){Qe.A(o)}}},Ke=function(t){return t[t.PENDING=-1]="PENDING",t[t.DENIED=0]="DENIED",t[t.GRANTED=1]="GRANTED",t}({});class qe{constructor(t){this._instance=t}get S(){return this._instance.config}get consent(){return this.U()?Ke.DENIED:this.q}isOptedOut(){return this.consent===Ke.DENIED||this.consent===Ke.PENDING&&this.S.opt_out_capturing_by_default}isOptedIn(){return!this.isOptedOut()}optInOut(t){this.B.j(this.H,t?1:0,this.S.cookie_expiration,this.S.cross_subdomain_cookie,this.S.secure_cookie)}reset(){this.B.N(this.H,this.S.cross_subdomain_cookie)}get H(){var{token:t,opt_out_capturing_cookie_prefix:e}=this._instance.config;return(e||"__ph_opt_in_out_")+t}get q(){var t=this.B.D(this.H);return"1"===t?Ke.GRANTED:"0"===t?Ke.DENIED:Ke.PENDING}get B(){if(!this.W){var t=this.S.opt_out_capturing_persistence_type;this.W="localStorage"===t?He:Be;var e="localStorage"===t?Be:He;e.D(this.H)&&(this.W.D(this.H)||this.optInOut("1"===e.D(this.H)),e.N(this.H,this.S.cross_subdomain_cookie))}return this.W}U(){return!!this.S.respect_dnt&&!!rt([null==c?void 0:c.doNotTrack,null==c?void 0:c.msDoNotTrack,h.doNotTrack],(t=>T([!0,1,"1","yes"],t)))}}var Je=H("[Dead Clicks]"),Xe=()=>!0,Ze=t=>{var e,n=!(null==(e=t.instance.persistence)||!e.get_property(mt)),o=t.instance.config.capture_dead_clicks;return M(o)?o:n};class tn{get lazyLoadedDeadClicksAutocapture(){return this.G}constructor(t,e,n){this.instance=t,this.isEnabled=e,this.onCapture=n,this.startIfEnabled()}onRemoteConfig(t){this.instance.persistence&&this.instance.persistence.register({[mt]:null==t?void 0:t.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.J((()=>{this.V()}))}J(t){var e,n;null!=(e=h.__PosthogExtensions__)&&e.initDeadClicksAutocapture&&t(),null==(n=h.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(e=>{e?Je.error("failed to load script",e):t()}))}V(){var t;if(l){if(!this.G&&null!=(t=h.__PosthogExtensions__)&&t.initDeadClicksAutocapture){var e=U(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};e.__onCapture=this.onCapture,this.G=h.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,e),this.G.start(l),Je.info("starting...")}}else Je.error("`document` not found. Cannot start.")}stop(){this.G&&(this.G.stop(),this.G=void 0,Je.info("stopping..."))}}function en(t,e,n,o,r){return e>n&&(G.warn("min cannot be greater than max."),e=n),k(t)?t>n?(o&&G.warn(o+" cannot be  greater than max: "+n+". Using max value instead."),n):t<e?(o&&G.warn(o+" cannot be less than min: "+e+". Using min value instead."),e):t:(o&&G.warn(o+" must be a number. using max or fallback. max: "+n+", fallback: "+r),en(r||n,e,n,o))}class nn{constructor(t){this.K={},this.Y=()=>{Object.keys(this.K).forEach((t=>{var e=this.X(t)+this.Z;e>=this.tt?delete this.K[t]:this.it(t,e)}))},this.X=t=>this.K[String(t)],this.it=(t,e)=>{this.K[String(t)]=e},this.consumeRateLimit=t=>{var e,n=null!==(e=this.X(t))&&void 0!==e?e:this.tt;if(0===(n=Math.max(n-1,0)))return!0;this.it(t,n);var o,r=0===n;return r&&(null==(o=this.et)||o.call(this,t)),r},this.rt=t,this.et=this.rt.et,this.tt=en(this.rt.bucketSize,0,100,"rate limiter bucket size"),this.Z=en(this.rt.refillRate,0,this.tt,"rate limiter refill rate"),this.st=en(this.rt.refillInterval,0,864e5,"rate limiter refill interval"),setInterval((()=>{this.Y()}),this.st)}}var on=H("[ExceptionAutocapture]");class rn{constructor(t){var e,n,r;this.nt=()=>{var t;if(o&&this.isEnabled&&null!=(t=h.__PosthogExtensions__)&&t.errorWrappingFunctions){var e=h.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,n=h.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=h.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ot&&this.S.capture_unhandled_errors&&(this.ot=e(this.captureException.bind(this))),!this.lt&&this.S.capture_unhandled_rejections&&(this.lt=n(this.captureException.bind(this))),!this.ut&&this.S.capture_console_errors&&(this.ut=r(this.captureException.bind(this)))}catch(o){on.error("failed to start",o),this.ht()}}},this._instance=t,this.dt=!(null==(e=this._instance.persistence)||!e.props[pt]),this.S=this.vt(),this.ct=new nn({refillRate:null!==(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)&&void 0!==n?n:1,bucketSize:null!==(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)&&void 0!==r?r:10,refillInterval:1e4}),this.startIfEnabled()}vt(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return U(t)?e=W({},e,t):(L(t)?this.dt:t)&&(e=W({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.S.capture_console_errors||this.S.capture_unhandled_errors||this.S.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(on.info("enabled"),this.J(this.nt))}J(t){var e,n;null!=(e=h.__PosthogExtensions__)&&e.errorWrappingFunctions&&t(),null==(n=h.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"exception-autocapture",(e=>{if(e)return on.error("failed to load script",e);t()}))}ht(){var t,e,n;null==(t=this.ot)||t.call(this),this.ot=void 0,null==(e=this.lt)||e.call(this),this.lt=void 0,null==(n=this.ut)||n.call(this),this.ut=void 0}onRemoteConfig(t){var e=t.autocaptureExceptions;this.dt=!!e||!1,this.S=this.vt(),this._instance.persistence&&this._instance.persistence.register({[pt]:this.dt}),this.startIfEnabled()}captureException(t){var e,n=this._instance.requestRouter.endpointFor("ui");t.$exception_personURL=n+"/project/"+this._instance.config.token+"/pers
1on/"+this._instance.get_distinct_id();var o=null!==(e=t.$exception_list[0].type)&&void 0!==e?e:"Exception";this.ct.consumeRateLimit(o)?on.info("Skipping exception capture because of client rate limiting.",{exception:t.$exception_list[0].type}):this._instance.exceptions.sendExceptionEvent(t)}}function an(t){return!L(Event)&&sn(t,Event)}function sn(t,e){try{return t instanceof e}catch(t){return!1}}function cn(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object DOMError]":return!0;default:return sn(t,Error)}}function ln(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function un(t){return ln(t,"DOMError")}var pn=/\(error: (.*)\)/,dn="?";function fn(t,e,n,o){var r={platform:"web:javascript",filename:t,function:"<anonymous>"===e?dn:e,in_app:!0};return L(n)||(r.lineno=n),L(o)||(r.colno=o),r}var mn=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_n=/\((\S*)(?::(\d+))(?::(\d+))\)/,En=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=e.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return function(t,e){void 0===e&&(e=0);for(var n=[],r=t.split("\n"),i=e;i<r.length;i++){var a=r[i];if(!(a.length>1024)){var s=pn.test(a)?a.replace(pn,"$1"):a;if(!s.match(/\S*Error: /)){for(var c of o){var l=c(s);if(l){n.push(l);break}}if(n.length>=50)break}}}return function(t){if(!t.length)return[];var e=Array.from(t);return e.reverse(),e.slice(0,50).map((t=>W({},t,{filename:t.filename||Sn(e).filename,function:t.function||dn})))}(n)}}([30,t=>{var e=mn.exec(t);if(e){var[,n,o,r]=e;return fn(n,dn,+o,+r)}var i=hn.exec(t);if(i){if(i[2]&&0===i[2].indexOf("eval")){var a=_n.exec(i[2]);a&&(i[2]=a[1],i[3]=a[2],i[4]=a[3])}var[s,c]=vn(i[1]||dn,i[2]);return fn(c,s,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],[50,t=>{var e=En.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=gn.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}var o=e[3],r=e[1]||dn;return[r,o]=vn(r,o),fn(o,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]);function Sn(t){return t[t.length-1]||{}}var Tn,Cn,bn,vn=(t,e)=>{var n=-1!==t.indexOf("safari-extension"),o=-1!==t.indexOf("safari-web-extension");return n||o?[-1!==t.indexOf("@")?t.split("@")[0]:dn,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},In=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;function An(t,e){void 0===e&&(e=0);var n=t.stacktrace||t.stack||"",o=function(t){return t&&On.test(t.message)?1:0}(t);try{var r=yn,i=function(t,e){var n=function(t){var e=globalThis._posthogChunkIds;if(!e)return{};var n=Object.keys(e);return bn&&n.length===Cn||(Cn=n.length,bn=n.reduce(((n,o)=>{Tn||(Tn={});var r=Tn[o];if(r)n[r[0]]=r[1];else for(var i=t(o),a=i.length-1;a>=0;a--){var s=i[a],c=null==s?void 0:s.filename,l=e[o];if(c&&l){n[c]=l,Tn[o]=[c,l];break}}return n}),{})),bn}(e);return t.forEach((t=>{t.filename&&(t.chunk_id=n[t.filename])})),t}(r(n,o),r);return i.slice(0,i.length-e)}catch(t){}return[]}var On=/Minified React error #\d+;/i;function Rn(t,e){var n=function(t,e){var n,o,r=An(t),i=null===(n=null==e?void 0:e.handled)||void 0===n||n,a=null!==(o=null==e?void 0:e.synthetic)&&void 0!==o&&o;return{type:null!=e&&e.overrideExceptionType?e.overrideExceptionType:t.name,value:function(t){var e=t.message;return e.error&&"string"==typeof e.error.message?String(e.error.message):String(e)}(t),stacktrace:{frames:r,type:"raw"},mechanism:{handled:i,synthetic:a}}}(t,e);return t.cause&&cn(t.cause)&&t.cause!==t?[n,...Rn(t.cause,{handled:null==e?void 0:e.handled,synthetic:null==e?void 0:e.synthetic})]:[n]}function Pn(t,e){return{$exception_list:Rn(t,e),$exception_level:"error"}}function Un(t,e){var n,o,r,i=null===(n=null==e?void 0:e.handled)||void 0===n||n,a=null===(o=null==e?void 0:e.synthetic)||void 0===o||o,s={type:null!=e&&e.overrideExceptionType?e.overrideExceptionType:null!==(r=null==e?void 0:e.defaultExceptionType)&&void 0!==r?r:"Error",value:t||(null==e?void 0:e.defaultExceptionMessage),mechanism:{handled:i,synthetic:a}};if(null!=e&&e.syntheticException){var c=An(e.syntheticException,1);c.length&&(s.stacktrace={frames:c,type:"raw"})}return{$exception_list:[s],$exception_level:"error"}}function wn(t){return x(t)&&!D(t)&&S.indexOf(t)>=0}function Ln(t,e){var{error:n,event:o}=t,r={$exception_list:[]},i=n||o;if(un(i)||function(t){return ln(t,"DOMException")}(i)){var a=i;if(function(t){return"stack"in t}(i))r=Pn(i,e);else{var s=a.name||(un(a)?"DOMError":"DOMException"),c=a.message?s+": "+a.message:s;r=Un(c,W({},e,{overrideExceptionType:un(a)?"DOMError":"DOMException",defaultExceptionMessage:c}))}return"code"in a&&(r.$exception_DOMException_code=""+a.code),r}if(function(t){return ln(t,"ErrorEvent")}(i)&&i.error)return Pn(i.error,e);if(cn(i))return Pn(i,e);if(function(t){return ln(t,"Object")}(i)||an(i))return function(t,e){var n,o,r=null===(n=null==e?void 0:e.handled)||void 0===n||n,i=null===(o=null==e?void 0:e.synthetic)||void 0===o||o,a={type:null!=e&&e.overrideExceptionType?e.overrideExceptionType:an(t)?t.constructor.name:"Error",value:"Non-Error 'exception' captured with keys: "+function(t,e){void 0===e&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var o=n.length;o>0;o--){var r=n.slice(0,o).join(", ");
1if(!(r.length>e))return o===n.length||r.length<=e?r:r.slice(0,e)+"..."}return""}(t),mechanism:{handled:r,synthetic:i}};if(null!=e&&e.syntheticException){var s=An(null==e?void 0:e.syntheticException,1);s.length&&(a.stacktrace={frames:s,type:"raw"})}return{$exception_list:[a],$exception_level:wn(t.level)?t.level:"error"}}(i,e);if(L(n)&&x(o)){var l="Error",u=o,p=o.match(In);return p&&(l=p[1],u=p[2]),Un(u,W({},e,{overrideExceptionType:l,defaultExceptionMessage:u}))}return Un(i,e)}function xn(t,e,n){try{if(!(e in t))return()=>{};var o=t[e],r=n(o);return P(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=r,()=>{t[e]=o}}catch(t){return()=>{}}}class Dn{constructor(t){var e;this._instance=t,this.ft=(null==o||null==(e=o.location)?void 0:e.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(G.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.gt&&this.gt(),this.gt=void 0,G.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(o&&o.history){var n=this;null!=(t=o.history.pushState)&&t.__posthog_wrapped__||xn(o.history,"pushState",(t=>function(e,o,r){t.call(this,e,o,r),n._t("pushState")})),null!=(e=o.history.replaceState)&&e.__posthog_wrapped__||xn(o.history,"replaceState",(t=>function(e,o,r){t.call(this,e,o,r),n._t("replaceState")})),this.bt()}}_t(t){try{var e,n=null==o||null==(e=o.location)?void 0:e.pathname;if(!n)return;n!==this.ft&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:t}),this.ft=n}catch(o){G.error("Error capturing "+t+" pageview",o)}}bt(){if(!this.gt){var t=()=>{this._t("popstate")};it(o,"popstate",t),this.gt=()=>{o&&o.removeEventListener("popstate",t)}}}}function Nn(t){var e,n;return(null==(e=JSON.stringify(t,(n=[],function(t,e){if(U(e)){for(;n.length>0&&n[n.length-1]!==this;)n.pop();return n.includes(e)?"[Circular]":(n.push(e),e)}return e})))?void 0:e.length)||0}function Fn(t,e){if(void 0===e&&(e=6606028.8),t.size>=e&&t.data.length>1){var n=Math.floor(t.data.length/2),o=t.data.slice(0,n),r=t.data.slice(n);return[Fn({size:Nn(o),data:o,sessionId:t.sessionId,windowId:t.windowId}),Fn({size:Nn(r),data:r,sessionId:t.sessionId,windowId:t.windowId})].flatMap((t=>t))}return[t]}var kn=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(kn||{}),Mn=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Mn||{}),jn="[SessionRecording]",Bn="redacted",Gn={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:t=>t,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","analytics.google.com","bam.nr-data.net"]},Hn=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],zn=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],$n=["/s/","/e/","/i/"];function Wn(t,e,n,o){if(F(t))return t;var r=(null==e?void 0:e["content-length"])||function(t){return new Blob([t]).size}(t);return x(r)&&(r=parseInt(r)),r>n?jn+" "+o+" body too large to record ("+r+" bytes)":t}function Vn(t,e){if(F(t))return t;var n=t;return fe(n,!1)||(n=jn+" "+e+" body "+Bn),K(zn,(t=>{var o,r;null!=(o=n)&&o.length&&-1!==(null==(r=n)?void 0:r.indexOf(t))&&(n=jn+" "+e+" body "+Bn+" as might contain: "+t)})),n}class Yn{constructor(t,e){var n,o;void 0===e&&(e={}),this.yt={},this.wt=t=>{if(!this.yt[t]){var e,n;this.yt[t]=!0;var o=this.St(t);null==(e=(n=this.rt).onBlockedNode)||e.call(n,t,o)}},this.$t=t=>{var e=this.St(t);if("svg"!==(null==e?void 0:e.nodeName)&&e instanceof Element){var n=e.closest("svg");if(n)return[this._rrweb.mirror.getId(n),n]}return[t,e]},this.St=t=>this._rrweb.mirror.getNode(t),this.kt=t=>{var e,n,o,r,i,a,s,c;return(null!==(e=null==(n=t.removes)?void 0:n.length)&&void 0!==e?e:0)+(null!==(o=null==(r=t.attributes)?void 0:r.length)&&void 0!==o?o:0)+(null!==(i=null==(a=t.texts)?void 0:a.length)&&void 0!==i?i:0)+(null!==(s=null==(c=t.adds)?void 0:c.length)&&void 0!==s?s:0)},this.throttleMutations=t=>{if(3!==t.type||0!==t.data.source)return t;var e=t.data,n=this.kt(e);e.attributes&&(e.attributes=e.attributes.filter((t=>{var[e]=this.$t(t.id);return!this.ct.consumeRateLimit(e)&&t})));var o=this.kt(e);
vendor: 6,675 bytes, line 1
1return 0!==o||n===o?t:void 0},this._rrweb=t,this.rt=e,this.ct=new nn({bucketSize:null!==(n=this.rt.bucketSize)&&void 0!==n?n:100,refillRate:null!==(o=this.rt.refillRate)&&void 0!==o?o:10,refillInterval:1e3,et:this.wt})}}var Qn=Uint8Array,Kn=Uint16Array,qn=Uint32Array,Jn=new Qn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Xn=new Qn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Zn=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),to=function(t,e){for(var n=new Kn(31),o=0;o<31;++o)n[o]=e+=1<<t[o-1];var r=new qn(n[30]);for(o=1;o<30;++o)for(var i=n[o];i<n[o+1];++i)r[i]=i-n[o]<<5|o;return[n,r]},eo=to(Jn,2),no=eo[0],oo=eo[1];no[28]=258,oo[258]=28;for(var ro=to(Xn,0)[1],io=new Kn(32768),ao=0;ao<32768;++ao){var so=(43690&ao)>>>1|(21845&ao)<<1;so=(61680&(so=(52428&so)>>>2|(13107&so)<<2))>>>4|(3855&so)<<4,io[ao]=((65280&so)>>>8|(255&so)<<8)>>>1}var co=function(t,e,n){for(var o=t.length,r=0,i=new Kn(e);r<o;++r)++i[t[r]-1];var a,s=new Kn(e);for(r=0;r<e;++r)s[r]=s[r-1]+i[r-1]<<1;if(n){a=new Kn(1<<e);var c=15-e;for(r=0;r<o;++r)if(t[r])for(var l=r<<4|t[r],u=e-t[r],p=s[t[r]-1]++<<u,d=p|(1<<u)-1;p<=d;++p)a[io[p]>>>c]=l}else for(a=new Kn(o),r=0;r<o;++r)a[r]=io[s[t[r]-1]++]>>>15-t[r];return a},lo=new Qn(288);for(ao=0;ao<144;++ao)lo[ao]=8;for(ao=144;ao<256;++ao)lo[ao]=9;for(ao=256;ao<280;++ao)lo[ao]=7;for(ao=280;ao<288;++ao)lo[ao]=8;var uo=new Qn(32);for(ao=0;ao<32;++ao)uo[ao]=5;var po=co(lo,9,0),fo=co(uo,5,0),mo=function(t){return(t/8>>0)+(7&t&&1)},ho=function(t,e,n){(null==n||n>t.length)&&(n=t.length);var o=new(t instanceof Kn?Kn:t instanceof qn?qn:Qn)(n-e);return o.set(t.subarray(e,n)),o},_o=function(t,e,n){n<<=7&e;var o=e/8>>0;t[o]|=n,t[o+1]|=n>>>8},Eo=function(t,e,n){n<<=7&e;var o=e/8>>0;t[o]|=n,t[o+1]|=n>>>8,t[o+2]|=n>>>16},go=function(t,e){for(var n=[],o=0;o<t.length;++o)t[o]&&n.push({s:o,f:t[o]});var r=n.length,i=n.slice();if(!r)return[new Qn(0),0];if(1==r){var a=new Qn(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,p=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=r-1;)s=n[n[l].f<n[p].f?l++:p++],c=n[l!=u&&n[l].f<n[p].f?l++:p++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};var d=i[0].s;for(o=1;o<r;++o)i[o].s>d&&(d=i[o].s);var f=new Kn(d+1),m=yo(n[u-1],f,0);if(m>e){o=0;var h=0,_=m-e,E=1<<_;for(i.sort((function(t,e){return f[e.s]-f[t.s]||t.f-e.f}));o<r;++o){var g=i[o].s;if(!(f[g]>e))break;h+=E-(1<<m-f[g]),f[g]=e}for(h>>>=_;h>0;){var y=i[o].s;f[y]<e?h-=1<<e-f[y]++-1:++o}for(;o>=0&&h;--o){var S=i[o].s;f[S]==e&&(--f[S],++h)}m=e}return[new Qn(f),m]},yo=function(t,e,n){return-1==t.s?Math.max(yo(t.l,e,n+1),yo(t.r,e,n+1)):e[t.s]=n},So=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Kn(++e),o=0,r=t[0],i=1,a=function(t){n[o++]=t},s=1;s<=e;++s)if(t[s]==r&&s!=e)++i;else{if(!r&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(r),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(r);i=1,r=t[s]}return[n.subarray(0,o),e]},To=function(t,e){for(var n=0,o=0;o<e.length;++o)n+=t[o]*e[o];return n},Co=function(t,e,n){var o=n.length,r=mo(e+2);t[r]=255&o,t[r+1]=o>>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var i=0;i<o;++i)t[r+i+4]=n[i];return 8*(r+4+o)},bo=function(t,e,n,o,r,i,a,s,c,l,u){_o(e,u++,n),++r[256];for(var p=go(r,15),d=p[0],f=p[1],m=go(i,15),h=m[0],_=m[1],E=So(d),g=E[0],y=E[1],S=So(h),T=S[0],C=S[1],b=new Kn(19),v=0;v<g.length;++v)b[31&g[v]]++;for(v=0;v<T.length;++v)b[31&T[v]]++;for(var I=go(b,7),A=I[0],O=I[1],R=19;R>4&&!A[Zn[R-1]];--R);var P,U,w,L,x=l+5<<3,D=To(r,lo)+To(i,uo)+a,N=To(r,d)+To(i,h)+a+14+3*R+To(b,A)+(2*b[16]+3*b[17]+7*b[18]);if(x<=D&&x<=N)return Co(e,u,t.subarray(c,c+l));if(_o(e,u,1+(N<D)),u+=2,N<D){P=co(d,f,0),U=d,w=co(h,_,0),L=h;var F=co(A,O,0);for(_o(e,u,y-257),_o(e,u+5,C-1),_o(e,u+10,R-4),u+=14,v=0;v<R;++v)_o(e,u+3*v,A[Zn[v]]);u+=3*R;for(var k=[g,T],M=0;M<2;++M){var j=k[M];for(v=0;v<j.length;++v){var B=31&j[v];_o(e,u,F[B]),u+=A[B],B>15&&(_o(e,u,j[v]>>>5&127),u+=j[v]>>>12)}}}else P=po,U=lo,w=fo,L=uo;for(v=0;v<s;++v)if(o[v]>255){B=o[v]>>>18&31,Eo(e,u,P[B+257]),u+=U[B+257],B>7&&(_o(e,u,o[v]>>>23&31),u+=Jn[B]);var G=31&o[v];Eo(e,u,w[G]),u+=L[G],G>3&&(Eo(e,u,o[v]>>>5&8191),u+=Xn[G])}else Eo(e,u,P[o[v]]),u+=U[o[v]];return Eo(e,u,P[256]),u+U[256]},vo=new qn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Io=function(){for(var t=new qn(256),e=0;e<256;++e){for(var n=e,o=9;--o;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t}(),Ao=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function Oo(t,e){void 0===e&&(e={});var n=function(){var t=4294967295;return{p:function(e){for(var n=t,o=0;o<e.length;++o)n=Io[255&n^e[o]]^n>>>8;t=n},d:function(){return 4294967295^t}}}(),o=t.length;n.p(t);var r=function(t,e,n,o,r){return function(t,e,n,o,r,i){var a=t.length,s=new Qn(o+a+5*(1+Math.floor(a/7e3))+r),c=s.subarray(o,s.length-r),l=0;if(!e||a<8)for(var u=0;u<=a;u+=65535){var p=u+65535;p<a?l=Co(c,l,t.subarray(u,p)):(c[u]=i,l=Co(c,l,t.subarray(u,a)))}else{for(var d=vo[e-1],f=d>>>13,m=8191&d,h=(1<<n)-1,_=new Kn(32768),E=new Kn(h+1),g=Math.ceil(n/3),y=2*g,S=function(e){return(t[e]^t[e+1]<<g^t[e+2]<<y)&h},T=new qn(25e3),C=new Kn(288),b=new Kn(32),v=0,I=0,A=(u=0,0),O=0,R=0;u<a;++u){var P=S(u),U=32767&u,w=E[P];if(_[U]=w,E[P]=U,O<=u){var L=a-u;if((v>7e3||A>24576)&&L>423){l=bo(t,c,0,T,C,b,I,A,R,u-R,l),A=v=I=0,R=u;for(var x=0;x<286;++x)C[x]=0;for(x=0;x<30;++x)b[x]=0}var D=2,N=0,F=m,k=U-w&32767;if(L>2&&P==S(u-k))for(var M=Math.min(f,L)-1,j=Math.min(32767,u),B=Math.min(258,L);k<=j&&--F&&U!=w;){if(t[u+D]==t[u+D-k]){for(var G=0;G<B&&t[u+G]==t[u+G-k];++G);if(G>D){if(D=G,N=k,G>M)break;var H=Math.min(k,G-2),z=0;for(x=0;x<H;++x){var $=u-k+x+32768&32767,W=$-_[$]+32768&32767;W>z&&(z=W,w=$)}}}k+=(U=w)-(w=_[U])+32768&32767}if(N){T[A++]=268435456|oo[D]<<18|ro[N];var V=31&oo[D],Y=31&ro[N];I+=Jn[V]+Xn[Y],++C[257+V],++b[Y],O=u+D,++v}else T[A++]=t[u],++C[t[u]]}}l=bo(t,c,i,T,C,b,I,A,R,u-R,l)}return ho(s,0,o+mo(l)+r)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,o,!r)}(t,e,function(t){return 10+(t.filename&&t.filename.length+1||0)}(e),8),i=r.length;return function(t,e){var n=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&Ao(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),n){t[3]=8;for(var o=0;o<=n.length;++o)t[o+10]=n.charCodeAt(o)}}(r,e),Ao(r,i-8,n.d()),Ao(r,i-4,o),r}function Ro(t,e){var n=t.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var o=new Qn(t.length+(t.length>>>1)),r=0,i=function(t){o[r++]=t},a=0;a<n;++a){if(r+5>o.length){var s=new Qn(r+8+(n-a<<1));s.set(o),o=s}var c=t.charCodeAt(a);
1c<128||e?i(c):c<2048?(i(192|c>>>6),i(128|63&c)):c>55295&&c<57344?(i(240|(c=65536+(1047552&c)|1023&t.charCodeAt(++a))>>>18),i(128|c>>>12&63),i(128|c>>>6&63),i(128|63&c)):(i(224|c>>>12),i(128|c>>>6&63),i(128|63&c))}return ho(o,0,r)}var Po="disabled",Uo="sampled",wo="active",Lo="buffering",xo="paused",Do="trigger",No=Do+"_activated",Fo=Do+"_pending",ko=Do+"_"+Po;function Mo(t,e){return e.some((e=>"regex"===e.matching&&new RegExp(e.url).test(t)))}class jo{constructor(t){this.xt=t}triggerStatus(t){var e=this.xt.map((e=>e.triggerStatus(t)));return e.includes(No)?No:e.includes(Fo)?Fo:ko}stop(){this.xt.forEach((t=>t.stop()))}}class Bo{constructor(t){this.xt=t}triggerStatus(t){var e=new Set;for(var n of this.xt)e.add(n.triggerStatus(t));switch(e.delete(ko),e.size){case 0:return ko;case 1:return Array.from(e)[0];default:return Fo}}stop(){this.xt.forEach((t=>t.stop()))}}class Go{triggerStatus(){return Fo}stop(){}}class Ho{constructor(t){this.Et=[],this.It=[],this.urlBlocked=!1,this._instance=t}onRemoteConfig(t){var e,n;this.Et=(null==(e=t.sessionRecording)?void 0:e.urlTriggers)||[],this.It=(null==(n=t.sessionRecording)?void 0:n.urlBlocklist)||[]}Pt(t){var e;return 0===this.Et.length?ko:(null==(e=this._instance)?void 0:e.get_property(At))===t?No:Fo}triggerStatus(t){var e=this.Pt(t),n=e===No?No:e===Fo?Fo:ko;return this._instance.register_for_session({$sdk_debug_replay_url_trigger_status:n}),n}checkUrlTriggerConditions(t,e,n){if(void 0!==o&&o.location.href){var r=o.location.href,i=this.urlBlocked,a=Mo(r,this.It);i&&a||(a&&!i?t():!a&&i&&e(),Mo(r,this.Et)&&n("url"))}}stop(){}}class zo{constructor(t){this.linkedFlag=null,this.linkedFlagSeen=!1,this.Rt=()=>{},this._instance=t}triggerStatus(){var t=Fo;return F(this.linkedFlag)&&(t=ko),this.linkedFlagSeen&&(t=No),this._instance.register_for_session({$sdk_debug_replay_linked_flag_trigger_status:t}),t}onRemoteConfig(t,e){var n;if(this.linkedFlag=(null==(n=t.sessionRecording)?void 0:n.linkedFlag)||null,!F(this.linkedFlag)&&!this.linkedFlagSeen){var o=x(this.linkedFlag)?this.linkedFlag:this.linkedFlag.flag,r=x(this.linkedFlag)?null:this.linkedFlag.variant;this.Rt=this._instance.onFeatureFlags(((t,n)=>{var i=!1;if(U(n)&&o in n){var a=n[o];i=M(a)?!0===a:r?a===r:!!a}this.linkedFlagSeen=i,i&&e(o,r)}))}}stop(){this.Rt()}}class $o{constructor(t){this.Tt=[],this._instance=t}onRemoteConfig(t){var e;this.Tt=(null==(e=t.sessionRecording)?void 0:e.eventTriggers)||[]}Mt(t){var e;return 0===this.Tt.length?ko:(null==(e=this._instance)?void 0:e.get_property(Ot))===t?No:Fo}triggerStatus(t){var e=this.Mt(t),n=e===No?No:e===Fo?Fo:ko;return this._instance.register_for_session({$sdk_debug_replay_event_trigger_status:n}),n}stop(){}}function Wo(t){return t.isRecordingEnabled?Lo:Po}function Vo(t){if(!t.receivedFlags)return Lo;if(!t.isRecordingEnabled)return Po;if(t.urlTriggerMatching.urlBlocked)return xo;var e=!0===t.isSampled,n=new jo([t.eventTriggerMatching,t.urlTriggerMatching,t.linkedFlagMatching]).triggerStatus(t.sessionId);return e?Uo:n===No?wo:n===Fo?Lo:!1===t.isSampled?Po:wo}function Yo(t){if(!t.receivedFlags)return Lo;if(!t.isRecordingEnabled)return Po;if(t.urlTriggerMatching.urlBlocked)return xo;var e=new Bo([t.eventTriggerMatching,t.urlTriggerMatching,t.linkedFlagMatching]).triggerStatus(t.sessionId),n=e!==ko,o=M(t.isSampled);return n&&e===Fo?Lo:n&&e===ko||o&&!t.isSampled?Po:!0===t.isSampled?Uo:wo}var Qo="[SessionRecording]",Ko=H(Qo);function qo(){var t;return null==h||null==(t=h.__PosthogExtensions__)||null==(t=t.rrweb)?void 0:t.record}var Jo=[Mn.MouseMove,Mn.MouseInteraction,Mn.Scroll,Mn.ViewportResize,Mn.Input,Mn.TouchMove,Mn.MediaInteraction,Mn.Drag],Xo=t=>({rrwebMethod:t,enqueuedAt:Date.now(),attempt:1});function Zo(t){return function(t,e){for(var n="",o=0;o<t.length;){var r=t[o++];n+=String.fromCharCode(r)}return n}(Oo(Ro(JSON.stringify(t))))}function tr(t){return t.type===kn.Custom&&"sessionIdle"===t.data.tag}class er{get sessionId(){return this.Ct}get Ft(){return this._instance.config.session_recording.session_idle_threshold_ms||3e5}get started(){return this.Ot}get At(){if(!this._instance.sessionManager)throw new Error(Qo+" must be started with a valid sessionManager.");return this._instance.sessionManager}get Dt(){var t,e;return this.Lt.triggerStatus(this.sessionId)===Fo?6e4:null!==(t=null==(e=this._instance.config.session_recording)?void 0:e.full_snapshot_interval_millis)&&void 0!==t?t:3e5}get jt(){var t=this._instance.get_property(It);return M(t)?t:null}get Nt(){var t,e,n=null==(t=this.C)?void 0:t.data[(null==(e=this.C)?void 0:e.data.length)-1],{sessionStartTimestamp:o}=this.At.checkAndGetSessionAndWindowId(!0);return n?n.timestamp-o:null}get zt(){var t=!!this._instance.get_property(_t),e=!this._instance.config.disable_session_recording;return o&&t&&e}get Ut(){var t=!!this._instance.get_property(Et),e=this._instance.config.enable_recording_console_log;return null!=e?e:t}get qt(){var t,e,n,o,r,i,a=this._instance.config.session_recording.captureCanvas,s=this._instance.get_property(St),c=null!==(t=null!==(e=null==a?void 0:a.recordCanvas)&&void 0!==e?e:null==s?void 0:s.enabled)&&void 0!==t&&t,l=null!==(n=null!==(o=null==a?void 0:a.canvasFps)&&void 0!==o?o:null==s?void 0:s.fps)&&void 0!==n?n:4,u=null!==(r=null!==(i=null==a?void 0:a.canvasQuality)&&void 0!==i?i:null==s?void 0:s.quality)&&void 0!==r?r:.4;if("string"==typeof u){var p=parseFloat(u);u=isNaN(p)?.4:p}return{enabled:c,fps:en(l,0,12,"canvas recording fps",4),quality:en(u,0,1,"canvas recording quality",.4)}}get Bt(){var t,e,n=this._instance.get_property(gt),o={recordHeaders:null==(t=this._instance.config.session_recording)?void 0:t.recordHeaders,recordBody:null==(e=this._instance.config.session_recording)?void 0:e.recordBody},r=(null==o?void 0:o.recordHeaders)||(null==n?void 0:n.recordHeaders),i=(null==o?void 0:o.recordBody)||(null==n?void 0:n.recordBody),a=U(this._instance.config.capture_performance)?this._instance.config.capture_performance.network_timing:this._instance.config.capture_performance,s=!!(M(a)?a:null==n?void 0:n.capturePerformance);return r||i||s?{recordHeaders:r,recordBody:i,recordPerformance:s}:void 0}get Ht(){var t,e,n,o,r,i,a=this._instance.get_property(yt),s={maskAllInputs:null==(t=this._instance.config.session_recording)?void 0:t.maskAllInputs,maskTextSelector:null==(e=this._instance.config.session_recording)?void 0:e.maskTextSelector,blockSelector:null==(n=this._instance.config.session_recording)?void 0:n.blockSelector},c=null!==(o=null==s?void 0:s.maskAllInputs)&&void 0!==o?o:null==a?void 0:a.maskAllInputs,l=null!==(r=null==s?void 0:s.maskTextSelector)&&void 0!==r?r:null==a?void 0:a.maskTextSelector,u=null!==(i=null==s?void 0:s.blockSelector)&&void 0!==i?i:null==a?void 0:a.blockSelector;return L(c)&&L(l)&&L(u)?void 0:{maskAllInputs:null==c||c,maskTextSelector:l,blockSelector:u}}get Wt(){var t=this._instance.get_property(Tt);return k(t)?t:null}get Gt(){var t=this._instance.get_property(Ct);return k(t)?t:null}get status(){return this.Jt?this.Vt({receivedFlags:this.Jt,isRecordingEnabled:this.zt,isSampled:this.jt,urlTriggerMatching:this.Kt,eventTriggerMatching:this.Yt,linkedFlagMatching:this.Xt,sessionId:this.sessionId}):Lo}constructor(t){if(this.Vt=Wo,this.Jt=!1,this.Qt=[],this.Zt="unknown",this.ti=Date.now(),this.Lt=ne
1w Go,this.ii=void 0,this.ei=void 0,this.ri=void 0,this.si=void 0,this.ni=void 0,this._forceAllowLocalhostNetworkCapture=!1,this.oi=()=>{this.ai()},this.li=()=>{this.ui("browser offline",{})},this.hi=()=>{this.ui("browser online",{})},this.di=()=>{if(null!=l&&l.visibilityState){var t="window "+l.visibilityState;this.ui(t,{})}},this._instance=t,this.Ot=!1,this.vi="/s/",this.ci=void 0,this.Jt=!1,!this._instance.sessionManager)throw Ko.error("started without valid sessionManager"),new Error(Qo+" started without valid sessionManager. This is a bug.");if(this._instance.config.__preview_experimental_cookieless_mode)throw new Error(Qo+" cannot be used with __preview_experimental_cookieless_mode.");this.Xt=new zo(this._instance),this.Kt=new Ho(this._instance),this.Yt=new $o(this._instance);var{sessionId:e,windowId:n}=this.At.checkAndGetSessionAndWindowId();this.Ct=e,this.fi=n,this.C=this.pi(),this.Ft>=this.At.sessionTimeoutMs&&Ko.warn("session_idle_threshold_ms ("+this.Ft+") is greater than the session timeout ("+this.At.sessionTimeoutMs+"). Session will never be detected as idle")}startIfEnabledOrStop(t){this.zt?(this.gi(t),it(o,"beforeunload",this.oi),it(o,"offline",this.li),it(o,"online",this.hi),it(o,"visibilitychange",this.di),this.mi(),this.bi(),F(this.ii)&&(this.ii=this._instance.on("eventCaptured",(t=>{try{if("$pageview"===t.event){var e=null!=t&&t.properties.$current_url?this.yi(null==t?void 0:t.properties.$current_url):"";if(!e)return;this.ui("$pageview",{href:e})}}catch(t){Ko.error("Could not add $pageview to rrweb session",t)}}))),this.ei||(this.ei=this.At.onSessionId(((t,e,n)=>{var o,r;n&&(this.ui("$session_id_change",{sessionId:t,windowId:e,changeReason:n}),null==(o=this._instance)||null==(o=o.persistence)||o.unregister(Ot),null==(r=this._instance)||null==(r=r.persistence)||r.unregister(At))})))):this.stopRecording()}stopRecording(){var t,e,n,r;this.Ot&&this.ci&&(this.ci(),this.ci=void 0,this.Ot=!1,null==o||o.removeEventListener("beforeunload",this.oi),null==o||o.removeEventListener("offline",this.li),null==o||o.removeEventListener("online",this.hi),null==o||o.removeEventListener("visibilitychange",this.di),this.pi(),clearInterval(this.wi),null==(t=this.ii)||t.call(this),this.ii=void 0,null==(e=this.ni)||e.call(this),this.ni=void 0,null==(n=this.ei)||n.call(this),this.ei=void 0,null==(r=this.si)||r.call(this),this.si=void 0,this.Yt.stop(),this.Kt.stop(),this.Xt.stop(),Ko.info("stopped"))}Si(){var t;null==(t=this._instance.persistence)||t.unregister(It)}$i(t){var e,n=this.Ct!==t,o=this.Wt;if(k(o)){var r=this.jt,i=n||!M(r),a=i?function(t,e){return function(t){for(var e=0,n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return Math.abs(e)}(t)%100<en(100*e,0,100)}(t,o):r;i&&(a?this.ki(Uo):Ko.warn("Sample rate ("+o+") has determined that this sessionId ("+t+") will not be sent to the server."),this.ui("samplingDecisionMade",{sampleRate:o,isSampled:a})),null==(e=this._instance.persistence)||e.register({[It]:a})}else this.Si()}onRemoteConfig(t){var e,n,o,r;this.ui("$remote_config_received",t),this.xi(t),null!=(e=t.sessionRecording)&&e.endpoint&&(this.vi=null==(r=t.sessionRecording)?void 0:r.endpoint),this.mi(),"any"===(null==(n=t.sessionRecording)?void 0:n.triggerMatchType)?(this.Vt=Vo,this.Lt=new jo([this.Yt,this.Kt])):(this.Vt=Yo,this.Lt=new Bo([this.Yt,this.Kt])),this._instance.register_for_session({$sdk_debug_replay_remote_trigger_matching_config:null==(o=t.sessionRecording)?void 0:o.triggerMatchType}),this.Kt.onRemoteConfig(t),this.Yt.onRemoteConfig(t),this.Xt.onRemoteConfig(t,((t,e)=>{this.ki("linked_flag_matched",{flag:t,variant:e})})),this.Jt=!0,this.startIfEnabledOrStop()}mi(){k(this.Wt)&&F(this.si)&&(this.si=this.At.onSessionId((t=>{this.$i(t)})))}xi(t){if(this._instance.persistence){var e,n=this._instance.persistence,o=()=>{var e,o,r,i,a,s,c,l,u,p=null==(e=t.sessionRecording)?void 0:e.sampleRate,d=F(p)?null:parseFloat(p);F(d)&&this.Si();var f=null==(o=t.sessionRecording)?void 0:o.minimumDurationMilliseconds;n.register({[_t]:!!t.sessionRecording,[Et]:null==(r=t.sessionRecording)?void 0:r.consoleLogRecordingEnabled,[gt]:W({capturePerformance:t.capturePerformance},null==(i=t.sessionRecording)?void 0:i.networkPayloadCapture),[yt]:null==(a=t.sessionRecording)?void 0:a.masking,[St]:{enabled:null==(s=t.sessionRecording)?void 0:s.recordCanvas,fps:null==(c=t.sessionRecording)?void 0:c.canvasFps,quality:null==(l=t.sessionRecording)?void 0:l.canvasQuality},[Tt]:d,[Ct]:L(f)?null:f,[bt]:null==(u=t.sessionRecording)?void 0:u.scriptConfig})};o(),null==(e=this.ri)||e.call(this),this.ri=this.At.onSessionId(o)}}log(t,e){var n;void 0===e&&(e="log"),null==(n=this._instance.sessionRecording)||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:e,trace:[],payload:[JSON.stringify(t)]}},timestamp:Date.now()})}gi(t){var e;L(Object.assign)||L(Array.from)||(this.Ot||this._instance.config.disable_session_recording||this._instance.consent.isOptedOut())||(this.Ot=!0,this.At.checkAndGetSessionAndWindowId(),qo()?this.Ei():null==(e=h.__PosthogExtensions__)||null==e.loadExternalDependency||e.loadExternalDependency(this._instance,this.Ii,(t=>{if(t)return Ko.error("could not load recorder",t);this.Ei()})),Ko.info("starting"),this.status===wo&&this.ki(t||"recording_initialized"))}get Ii(){var t;return(null==(t=this._instance)||null==(t=t.persistence)||null==(t=t.get_property(bt))?void 0:t.script)||"recorder"}Pi(t){var e;return 3===t.type&&-1!==Jo.indexOf(null==(e=t.data)?void 0:e.source)}Ri(t){var e=this.Pi(t);e||this.Zt||t.timestamp-this.ti>this.Ft&&(this.Zt=!0,clearInterval(this.wi),this.ui("sessionIdle",{eventTimestamp:t.timestamp,lastActivityTimestamp:this.ti,threshold:this.Ft,bufferLength:this.C.data.length,bufferSize:this.C.size}),this.ai());var n=!1;if(e&&(this.ti=t.timestamp,this.Zt)){var o="unknown"===this.Zt;this.Zt=!1,o||(this.ui("sessionNoLongerIdle",{reason:"user activity",type:t.type}),n=!0)}if(!this.Zt){var{windowId:r,sessionId:i}=this.At.checkAndGetSessionAndWindowId(!e,t.timestamp),a=this.Ct!==i,s=this.fi!==r;this.fi=r,this.Ct=i,a||s?(this.stopRecording(),this.startIfEnabledOrStop("session_id_changed")):n&&this.Ti()}}Mi(t){try{return t.rrwebMethod(),!0}catch(r){return this.Qt.length<10?this.Qt.push({enqueuedAt:t.enqueuedAt||Date.now(),attempt:t.attempt++,rrwebMethod:t.rrwebMethod}):Ko.warn("could not emit queued rrweb event.",r,t),!1}}ui(t,e){return this.Mi(Xo((()=>qo().addCustomEvent(t,e))))}Ci(){return this.Mi(Xo((()=>qo().takeFullSnapshot())))}Ei(){var t,e,n,o,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{}
1,collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},i=this._instance.config.session_recording;for(var[a,s]of Object.entries(i||{}))a in r&&("maskInputOptions"===a?r.maskInputOptions=W({password:!0},s):r[a]=s);this.qt&&this.qt.enabled&&(r.recordCanvas=!0,r.sampling={canvas:this.qt.fps},r.dataURLOptions={type:"image/webp",quality:this.qt.quality}),this.Ht&&(r.maskAllInputs=null===(e=this.Ht.maskAllInputs)||void 0===e||e,r.maskTextSelector=null!==(n=this.Ht.maskTextSelector)&&void 0!==n?n:void 0,r.blockSelector=null!==(o=this.Ht.blockSelector)&&void 0!==o?o:void 0);var c=qo();if(c){this.Fi=null!==(t=this.Fi)&&void 0!==t?t:new Yn(c,{refillRate:this._instance.config.session_recording.__mutationThrottlerRefillRate,bucketSize:this._instance.config.session_recording.__mutationThrottlerBucketSize,onBlockedNode:(t,e)=>{var n="Too many mutations on node '"+t+"'. Rate limiting. This could be due to SVG animations or something similar";Ko.info(n,{node:e}),this.log(Qo+" "+n,"warn")}});var l=this.Oi();this.ci=c(W({emit:t=>{this.onRRwebEmit(t)},plugins:l},r)),this.ti=Date.now(),this.Zt=M(this.Zt)?this.Zt:"unknown",this.ui("$session_options",{sessionRecordingOptions:r,activePlugins:l.map((t=>null==t?void 0:t.name))}),this.ui("$posthog_config",{config:this._instance.config})}else Ko.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}Ti(){if(this.wi&&clearInterval(this.wi),!0!==this.Zt){var t=this.Dt;t&&(this.wi=setInterval((()=>{this.Ci()}),t))}}Oi(){var t,e,n=[],o=null==(t=h.__PosthogExtensions__)||null==(t=t.rrwebPlugins)?void 0:t.getRecordConsolePlugin;o&&this.Ut&&n.push(o());var r=null==(e=h.__PosthogExtensions__)||null==(e=e.rrwebPlugins)?void 0:e.getRecordNetworkPlugin;return this.Bt&&P(r)&&(!Se.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?n.push(r
1(((t,e)=>{var n,o,r,i={payloadSizeLimitBytes:Gn.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...Gn.performanceEntryTypeToObserve],payloadHostDenyList:[...e.payloadHostDenyList||[],...Gn.payloadHostDenyList]},a=!1!==t.session_recording.recordHeaders&&e.recordHeaders,s=!1!==t.session_recording.recordBody&&e.recordBody,c=!1!==t.capture_performance&&e.recordPerformance,l=(n=i,r=Math.min(1e6,null!==(o=n.payloadSizeLimitBytes)&&void 0!==o?o:1e6),t=>(null!=t&&t.requestBody&&(t.requestBody=Wn(t.requestBody,t.requestHeaders,r,"Request")),null!=t&&t.responseBody&&(t.responseBody=Wn(t.responseBody,t.responseHeaders,r,"Response")),t)),u=e=>{return l(((t,e)=>{var n,o=Te(t.name),r=0===e.indexOf("http")?null==(n=Te(e))?void 0:n.pathname:e;"/"===r&&(r="");var i=null==o?void 0:o.pathname.replace(r||"","");if(!(o&&i&&$n.some((t=>0===i.indexOf(t)))))return t})((o=(n=e).requestHeaders,F(o)||K(Object.keys(null!=o?o:{}),(t=>{Hn.includes(t.toLowerCase())&&(o[t]=Bn)})),n),t.api_host));var n,o},p=P(t.session_recording.maskNetworkRequestFn);return p&&P(t.session_recording.maskCapturedNetworkRequestFn)&&G.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),p&&(t.session_recording.maskCapturedNetworkRequestFn=e=>{var n=t.session_recording.maskNetworkRequestFn({url:e.name});return W({},e,{name:null==n?void 0:n.url})}),i.maskRequestFn=P(t.session_recording.maskCapturedNetworkRequestFn)?e=>{var n,o=u(e);return o&&null!==(n=null==t.session_recording.maskCapturedNetworkRequestFn?void 0:t.session_recording.maskCapturedNetworkRequestFn(o))&&void 0!==n?n:void 0}:t=>function(t){if(!L(t))return t.requestBody=Vn(t.requestBody,"Request"),t.responseBody=Vn(t.responseBody,"Response"),t}(u(t)),W({},Gn,i,{recordHeaders:a,recordBody:s,recordPerformance:c,recordInitialRequests:c})})(this._instance.config,this.Bt))):Ko.info("NetworkCapture not started because we are on localhost.")),n}onRRwebEmit(t){var e;if(this.Ai(),t&&U(t)){if(t.type===kn.Meta){var n=this.yi(t.data.href);if(this.Di=n,!n)return;t.data.href=n}else this.Li();if(this.Kt.checkUrlTriggerConditions((()=>this.ji()),(()=>this.Ni()),(t=>this.zi(t))),!this.Kt.urlBlocked||(o=t).type===kn.Custom&&"recording paused"===o.data.tag){var o;t.type===kn.FullSnapshot&&this.Ti(),t.type===kn.FullSnapshot&&this.Jt&&this.Lt.triggerStatus(this.sessionId)===Fo&&this.pi();var r=this.Fi?this.Fi.throttleMutations(t):t;if(r){var i=function(t){var e=t;if(e&&U(e)&&6===e.type&&U(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));for(var n=[],o=0;o<e.data.payload.payload.length;o++)e.data.payload.payload[o]&&e.data.payload.payload[o].length>2e3?n.push(e.data.payload.payload[o].slice(0,2e3)+"...[truncated]"):n.push(e.data.payload.payload[o]);return e.data.payload.payload=n,t}return t}(r);if(this.Ri(i),!0!==this.Zt||tr(i)){if(tr(i)){var a=i.data.payload;if(a){var s=a.lastActivityTimestamp,c=a.threshold;i.timestamp=s+c}}var l=null===(e=this._instance.config.session_recording.compress_events)||void 0===e||e?function(t){if(Nn(t)<1024)return t;try{if(t.type===kn.FullSnapshot)return W({},t,{data:Zo(t.data),cv:"2024-10"});if(t.type===kn.IncrementalSnapshot&&t.data.source===Mn.Mutation)return W({},t,{cv:"2024-10",data:W({},t.data,{texts:Zo(t.data.texts),attributes:Zo(t.data.attributes),removes:Zo(t.data.removes),adds:Zo(t.data.adds)})});if(t.type===kn.IncrementalSnapshot&&t.data.source===Mn.StyleSheetRule)return W({},t,{cv:"2024-10",data:W({},t.data,{adds:t.data.adds?Zo(t.data.adds):void 0,removes:t.data.removes?Zo(t.data.removes):void 0})})}catch(t){Ko.error("could not compress event - will use uncompressed event",t)}return t}(i):i,u={$snapshot_bytes:Nn(l),$snapshot_data:l,$session_id:this.Ct,$window_id:this.fi};this.status!==Po?this.Ui(u):this.pi()}}}}}Li(){if(!this._instance.config.capture_pageview&&o){var t=this.yi(o.location.href);this.Di!==t&&(this.ui("$url_changed",{href:t}),this.Di=t)}}Ai(){if(this.Qt.length){var t=[...this.Qt];this.Qt=[],t.forEach((t=>{Date.now()-t.enqueuedAt<=2e3&&this.Mi(t)}))}}yi(t){var e=this._instance.config.session_recording;
1if(e.maskNetworkRequestFn){var n,o={url:t};return null==(n=o=e.maskNetworkRequestFn(o))?void 0:n.url}return t}pi(){return this.C={size:0,data:[],sessionId:this.Ct,windowId:this.fi},this.C}ai(){this.qi&&(clearTimeout(this.qi),this.qi=void 0);var t=this.Gt,e=this.Nt,n=k(e)&&e>=0,o=k(t)&&n&&e<t;return this.status===Lo||this.status===xo||this.status===Po||o?(this.qi=setTimeout((()=>{this.ai()}),2e3),this.C):(this.C.data.length>0&&Fn(this.C).forEach((t=>{this.Bi({$snapshot_bytes:t.size,$snapshot_data:t.data,$session_id:t.sessionId,$window_id:t.windowId,$lib:"web",$lib_version:_.LIB_VERSION})})),this.pi())}Ui(t){var e,n=2+((null==(e=this.C)?void 0:e.data.length)||0);!this.Zt&&(this.C.size+t.$snapshot_bytes+n>943718.4||this.C.sessionId!==this.Ct)&&(this.C=this.ai()),this.C.size+=t.$snapshot_bytes,this.C.data.push(t.$snapshot_data),this.qi||this.Zt||(this.qi=setTimeout((()=>{this.ai()}),2e3))}Bi(t){this._instance.capture("$snapshot",t,{_url:this._instance.requestRouter.endpointFor("api",this.vi),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}zi(t){var e;this.Lt.triggerStatus(this.sessionId)===Fo&&(null==(e=this._instance)||null==(e=e.persistence)||e.register({["url"===t?At:Ot]:this.Ct}),this.ai(),this.ki(t+"_trigger_matched"))}ji(){this.Kt.urlBlocked||(this.Kt.urlBlocked=!0,clearInterval(this.wi),Ko.info("recording paused due to URL blocker"),this.ui("recording paused",{reason:"url blocker"}))}Ni(){this.Kt.urlBlocked&&(this.Kt.urlBlocked=!1,this.Ci(),this.Ti(),this.ui("recording resumed",{reason:"left blocked url"}),Ko.info("recording resumed"))}bi(){0!==this.Yt.Tt.length&&F(this.ni)&&(this.ni=this._instance.on("eventCaptured",(t=>{try{this.Yt.Tt.includes(t.event)&&this.zi("event")}catch(t){Ko.error("Could not activate event trigger",t)}})))}overrideLinkedFlag(){this.Xt.linkedFlagSeen=!0,this.Ci(),this.ki("linked_flag_overridden")}overrideSampling(){var t;null==(t=this._instance.persistence)||t.register({[It]:!0}),this.Ci(),this.ki("sampling_overridden")}overrideTrigger(t){this.zi(t)}ki(t,e){this._instance.register_for_session({$session_recording_start_reason:t}),Ko.info(t.replace("_"," "),e),T(["recording_initialized","session_id_changed"],t)||this.ui(t,e)}get sdkDebugProperties(){var{sessionStartTimestamp:t}=this.At.checkAndGetSessionAndWindowId(!0);return{$recording_status:this.status,$sdk_debug_replay_internal_buffer_length:this.C.data.length,$sdk_debug_replay_internal_buffer_size:this.C.size,$sdk_debug_current_session_duration:this.Nt,$sdk_debug_session_start:t}}}var nr=H("[SegmentIntegration]");var or="posthog-js";function rr(t,e){var{organization:n,projectId:o,prefix:r,severityAllowList:i=["error"]}=void 0===e?{}:e;return e=>{var a,s,c,l,u;if("*"!==i&&!i.includes(e.level)||!t.__loaded)return e;e.tags||(e.tags={});var p=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());e.tags["PostHog Person URL"]=p,t.sessionRecordingStarted()&&(e.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var d=(null==(a=e.exception)?void 0:a.values)||[],f=d.map((t=>W({},t,{stacktrace:t.stacktrace?W({},t.stacktrace,{type:"raw",frames:(t.stacktrace.frames||[]).map((t=>W({},t,{platform:"web:javascript"})))}):void 0}))),m={$exception_message:(null==(s=d[0])?void 0:s.value)||e.message,$exception_type:null==(c=d[0])?void 0:c.type,$exception_personURL:p,$exception_level:e.level,$exception_list:f,$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:(null==(l=d[0])?void 0:l.value)||e.message,$sentry_exception_type:null==(u=d[0])?void 0:u.type,$sentry_tags:e.tags};return n&&o&&(m.$sentry_url=(r||"https://sentry.io/organizations/")+n+"/issues/?project="+o+"&query="+e.event_id),t.exceptions.sendExceptionEvent(m),e}}class ir{constructor(t,e,n,o,r){this.name=or,this.setupOnce=function(i){i(rr(t,{organization:e,projectId:n,prefix:o,severityAllowList:r}))}}}var ar=null!=o&&o.location?ve(o.location.hash,"__posthog")||ve(location.hash,"state"):null,sr="_postHogToolbarParams",cr=H("[Toolbar]"),lr=function(t){return t[t.UNINITIALIZED=0]="UNINITIALIZED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED",t}(lr||{});class ur{constructor(t){this.instance=t}Hi(t){h.ph_toolbar_state=t}Wi(){var t;return null!==(t=h.ph_toolbar_state)&&void 0!==t?t:lr.UNINITIALIZED}maybeLoadToolbar(t,e,n){if(void 0===t&&(t=void 0),void 0===e&&(e=void 0),void 0===n&&(n=void 0),!o||!l)return!1;t=null!=t?t:o.location,n=null!=n?n:o.history;try{if(!e){try{o.localStorage.setItem("test","test"),o.localStorage.removeItem("test")}catch(o){return!1}e=null==o?void 0:o.localStorage}var r,i=ar||ve(t.hash,"__posthog")||ve(t.hash,"state"),a=i?Z((()=>JSON.parse(atob(decodeURIComponent(i)))))||Z((()=>JSON.parse(decodeURIComponent(i)))):null;return a&&"ph_authorize"===a.action?((r=a).source="url",r&&Object.keys(r).length>0&&(a.desiredHash?t.hash=a.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((r=JSON.parse(e.getItem(sr)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token)&&(this.loadToolbar(r),!0)}catch(o){return!1}}Gi(t){var e=h.ph_load_toolbar||h.ph_load_editor;!F(e)&&P(e)?e(t,this.instance):cr.warn("No toolbar load function found")}loadToolbar(t){var e=!(null==l||!l.getElementById(zt));if(!o||e)return!1;var n="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,r=W({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(o.localStorage.setItem(sr,JSON.stringify(W({},r,{source:void 0}))),this.Wi()===lr.LOADED)this.Gi(r);else if(this.Wi()===lr.UNINITIALIZED){var i;this.Hi(lr.LOADING),null==(i=h.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",(t=>{if(t)return cr.error("[Toolbar] Failed to load",t),void this.Hi(lr.
vendor: 6,127 bytes, line 1
1UNINITIALIZED);this.Hi(lr.LOADED),this.Gi(r)})),it(o,"turbolinks:load",(()=>{this.Hi(lr.UNINITIALIZED),this.loadToolbar(r)}))}return!0}Ji(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,n){return void 0===t&&(t=void 0),void 0===e&&(e=void 0),void 0===n&&(n=void 0),this.maybeLoadToolbar(t,e,n)}}var pr=H("[TracingHeaders]");class dr{constructor(t){this.Vi=void 0,this.Ki=void 0,this.nt=()=>{var t,e;L(this.Vi)&&(null==(t=h.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchXHR(this._instance.get_distinct_id(),this._instance.sessionManager)),L(this.Ki)&&(null==(e=h.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchFetch(this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}J(t){var e,n;null!=(e=h.__PosthogExtensions__)&&e.tracingHeadersPatchFns&&t(),null==(n=h.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"tracing-headers",(e=>{if(e)return pr.error("failed to load script",e);t()}))}startIfEnabledOrStop(){var t,e;this._instance.config.__add_tracing_headers?this.J(this.nt):(null==(t=this.Vi)||t.call(this),null==(e=this.Ki)||e.call(this),this.Vi=void 0,this.Ki=void 0)}}var fr=H("[Web Vitals]"),mr=9e5;class hr{constructor(t){var e;this.Yi=!1,this.i=!1,this.C={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Xi=()=>{clearTimeout(this.Qi),0!==this.C.metrics.length&&(this._instance.capture("$web_vitals",this.C.metrics.reduce(((t,e)=>W({},t,{["$web_vitals_"+e.name+"_event"]:W({},e),["$web_vitals_"+e.name+"_value"]:e.value})),{})),this.C={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Zi=t=>{var e,n=null==(e=this._instance.sessionManager)?void 0:e.checkAndGetSessionAndWindowId(!0);if(L(n))fr.error("Could not read session ID. Dropping metrics!");else{this.C=this.C||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.te();L(o)||(F(null==t?void 0:t.name)||F(null==t?void 0:t.value)?fr.error("Invalid metric received",t):this.ie&&t.value>=this.ie?fr.error("Ignoring metric with value >= "+this.ie,t):(this.C.url!==o&&(this.Xi(),this.Qi=setTimeout(this.Xi,this.flushToCaptureTimeoutMs)),L(this.C.url)&&(this.C.url=o),this.C.firstMetricTimestamp=L(this.C.firstMetricTimestamp)?Date.now():this.C.firstMetricTimestamp,t.attribution&&t.attribution.interactionTargetElement&&(t.attribution.interactionTargetElement=void 0),this.C.metrics.push(W({},t,{$current_url:o,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.C.metrics.length===this.allowedMetrics.length&&this.Xi()))}},this.nt=()=>{var t,e,n,o,r=h.__PosthogExtensions__;L(r)||L(r.postHogWebVitalsCallbacks)||({onLCP:t,onCLS:e,onFCP:n,onINP:o}=r.postHogWebVitalsCallbacks),t&&e&&n&&o?(this.allowedMetrics.indexOf("LCP")>-1&&t(this.Zi.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&e(this.Zi.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.Zi.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this.Zi.bind(this)),this.i=!0):fr.error("web vitals callbacks not loaded - not starting")},this._instance=t,this.Yi=!(null==(e=this._instance.persistence)||!e.props[ft]),this.startIfEnabled()}get allowedMetrics(){var t,e,n=U(this._instance.config.capture_performance)?null==(t=this._instance.config.capture_performance)?void 0:t.web_vitals_allowed_metrics:void 0;return L(n)?(null==(e=this._instance.persistence)?void 0:e.props[ht])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(U(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get ie(){var t=U(this._instance.config.capture_performance)&&k(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:mr;return 0<t&&t<=6e4?mr:t}get isEnabled(){var t=null==u?void 0:u.protocol;if("http:"!==t&&"https:"!==t)return fr.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=U(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:M(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return M(e)?e:this.Yi}startIfEnabled(){this.isEnabled&&!this.i&&(fr.info("enabled, starting..."),this.J(this.nt))}onRemoteConfig(t){var e=U(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=U(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[ft]:e}),this._instance.persistence.register({[ht]:n})),this.Yi=e,this.startIfEnabled()}J(t){var e,n;null!=(e=h.__PosthogExtensions__)&&e.postHogWebVitalsCallbacks&&t(),null==(n=h.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"web-vitals",(e=>{e?fr.error("failed to load script",e):t()}))}te(){var t=o?o.location.href:void 0;return t||fr.error("Could not determine current URL"),t}}var _r=H("[Heatmaps]");function Er(t){return U(t)&&"clientX"in t&&"clientY"in t&&k(t.clientX)&&k(t.clientY)}class gr{constructor(t){var e;this.rageclicks=new ye,this.Yi=!1,this.i=!1,this.ee=null,this.instance=t,this.Yi=!(null==(e=this.instance.persistence)||!e.props[ut])}get flushIntervalMilliseconds(){var t=5e3;return U(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return L(this.instance.config.capture_heatmaps)?L(this.instance.config.enable_heatmaps)?this.Yi:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.i)return;_r.info("starting..."),this.re(),this.ee=setInterval(this.se.bind(this),this.flushIntervalMilliseconds)}else{var t,e;clearInterval(null!==(t=this.ee)&&void 0!==t?t:void 0),null==(e=this.ne)||e.stop(),this.getAndClearBuffer()}}onRemoteConfig(t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[ut]:e}),this.Yi=e,this.startIfEnabled()}getAndClearBuffer(){var t=this.C;return this.C=void 0,t}oe(t){this.ae(t.originalEvent,"deadclick")}
1re(){o&&l&&(it(o,"beforeunload",this.se.bind(this)),it(l,"click",(t=>this.ae(t||(null==o?void 0:o.event))),{capture:!0}),it(l,"mousemove",(t=>this.le(t||(null==o?void 0:o.event))),{capture:!0}),this.ne=new tn(this.instance,Xe,this.oe.bind(this)),this.ne.startIfEnabled(),this.i=!0)}ue(t,e){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),a=function(t,e,n){for(var r=t;r&&Yt(r)&&!Qt(r,"body");){if(r===n)return!1;if(T(e,null==o?void 0:o.getComputedStyle(r).position))return!0;r=re(r)}return!1}(ne(t),["fixed","sticky"],i);return{x:t.clientX+(a?0:r),y:t.clientY+(a?0:n),target_fixed:a,type:e}}ae(t,e){var n;if(void 0===e&&(e="click"),!Vt(t.target)&&Er(t)){var o=this.ue(t,e);null!=(n=this.rageclicks)&&n.isRageClick(t.clientX,t.clientY,(new Date).getTime())&&this.he(W({},o,{type:"rageclick"})),this.he(o)}}le(t){!Vt(t.target)&&Er(t)&&(clearTimeout(this.de),this.de=setTimeout((()=>{this.he(this.ue(t,"mousemove"))}),500))}he(t){if(o){var e=o.location.href;this.C=this.C||{},this.C[e]||(this.C[e]=[]),this.C[e].push(t)}}se(){this.C&&!w(this.C)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class yr{constructor(t){this._instance=t}doPageView(t,e){var n,r=this.ve(t,e);return this.ce={pathname:null!==(n=null==o?void 0:o.location.pathname)&&void 0!==n?n:"",pageViewId:e,timestamp:t},this._instance.scrollManager.resetContext(),r}doPageLeave(t){var e;return this.ve(t,null==(e=this.ce)?void 0:e.pageViewId)}doEvent(){var t;return{$pageview_id:null==(t=this.ce)?void 0:t.pageViewId}}ve(t,e){var n=this.ce;if(!n)return{$pageview_id:e};var o={$pageview_id:e,$prev_pageview_id:n.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:i,lastScrollY:a,maxScrollY:s,maxContentHeight:c,lastContentY:l,maxContentY:u}=r;if(!(L(i)||L(a)||L(s)||L(c)||L(l)||L(u))){i=Math.ceil(i),a=Math.ceil(a),s=Math.ceil(s),c=Math.ceil(c),l=Math.ceil(l),u=Math.ceil(u);var p=i<=1?1:en(a/i,0,1),d=i<=1?1:en(s/i,0,1),f=c<=1?1:en(l/c,0,1),m=c<=1?1:en(u/c,0,1);o=q(o,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:p,$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:d,$prev_pageview_last_content:l,$prev_pageview_last_content_percentage:f,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:m})}}return n.pathname&&(o.$prev_pageview_pathname=n.pathname),n.timestamp&&(o.$prev_pageview_duration=(t.getTime()-n.timestamp.getTime())/1e3),o}}var Sr=!!d||!!p,Tr="text/plain",Cr=(t,e)=>{var[n,o]=t.split("?"),r=W({},e);null==o||o.split("&").forEach((t=>{var[e]=t.split("=");delete r[e]}));var i=function(t,e){var n,o;void 0===e&&(e="&");var r=[];return K(t,(function(t,e){L(t)||L(e)||"undefined"===e||(n=encodeURIComponent((t=>t instanceof File)(t)?t.name:t.toString()),o=encodeURIComponent(e),r[r.length]=o+"="+n)})),r.join(e)}(r);return n+"?"+(i?(o?o+"&":"")+i:o)},br=(t,e)=>JSON.stringify(t,((t,e)=>"bigint"==typeof e?e.toString():e),e),vr=t=>{var{data:e,compression:n}=t;if(e){if(n===y.GZipJS){var o=Oo(Ro(br(e)),{mtime:0}),r=new Blob([o],{type:Tr});return{contentType:Tr,body:r,estimatedSize:r.size}}if(n===y.Base64){var i=(t=>"data="+encodeURIComponent("string"==typeof t?t:br(t)))(function(t){var e,n,o,r,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,c=0,l="",u=[];if(!t)return t;t=function(t){var e,n,o,r,i="";for(e=n=0,o=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,r=0;r<o;r++){var a=t.charCodeAt(r),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),N(s)||(n>e&&(i+=t.substring(e,n)),i+=s,e=n=r+1)}return n>e&&(i+=t.substring(e,t.length)),i}(t);do{e=(i=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=i>>12&63,o=i>>6&63,r=63&i,u[c++]=a.charAt(e)+a.charAt(n)+a.charAt(o)+a.charAt(r)}while(s<t.length);switch(l=u.join(""),t.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l}(br(e)));return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var a=br(e);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},Ir=[];p&&Ir.push({transport:"fetch",method:t=>{var e,n,{contentType:o,body:r,estimatedSize:i}=null!==(e=vr(t))&&void 0!==e?e:{},a=new Headers;K(t.headers,(function(t,e){a.append(e,t)})),o&&a.append("Content-Type",o);var s=t.url,c=null;if(f){var l=new f;c={signal:l.signal,timeout:setTimeout((()=>l.abort()),t.timeout)}}p(s,W({method:(null==t?void 0:t.method)||"GET",headers:a,keepalive:"POST"===t.method&&(i||0)<52428.8,body:r,signal:null==(n=c)?void 0:n.signal},t.fetchOptions)).then((e=>e.text().then((n=>{var o={statusCode:e.status,text:n};if(200===e.status)try{o.json=JSON.parse(n)}catch(t){G.error(t)}null==t.callback||t.callback(o)}
1)))).catch((e=>{G.error(e),null==t.callback||t.callback({statusCode:0,text:e})})).finally((()=>c?clearTimeout(c.timeout):null))}}),d&&Ir.push({transport:"XHR",method:t=>{var e,n=new d;n.open(t.method||"GET",t.url,!0);var{contentType:o,body:r}=null!==(e=vr(t))&&void 0!==e?e:{};K(t.headers,(function(t,e){n.setRequestHeader(e,t)})),o&&n.setRequestHeader("Content-Type",o),t.timeout&&(n.timeout=t.timeout),n.withCredentials=!0,n.onreadystatechange=()=>{if(4===n.readyState){var e={statusCode:n.status,text:n.responseText};if(200===n.status)try{e.json=JSON.parse(n.responseText)}catch(t){}null==t.callback||t.callback(e)}},n.send(r)}}),null!=c&&c.sendBeacon&&Ir.push({transport:"sendBeacon",method:t=>{var e=Cr(t.url,{beacon:"1"});try{var n,{contentType:o,body:r}=null!==(n=vr(t))&&void 0!==n?n:{},i="string"==typeof r?new Blob([r],{type:o}):r;c.sendBeacon(e,i)}catch(t){}}});var Ar=function(t,e){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch(t){return!1}};function Or(t,e,n){return br({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var Rr={exact:(t,e)=>e.some((e=>t.some((t=>e===t)))),is_not:(t,e)=>e.every((e=>t.every((t=>e!==t)))),regex:(t,e)=>e.some((e=>t.some((t=>Ar(e,t))))),not_regex:(t,e)=>e.every((e=>t.every((t=>!Ar(e,t))))),icontains:(t,e)=>e.map(Pr).some((e=>t.map(Pr).some((t=>e.includes(t))))),not_icontains:(t,e)=>e.map(Pr).every((e=>t.map(Pr).every((t=>!e.includes(t)))))},Pr=t=>t.toLowerCase(),Ur=H("[Error tracking]");class wr{constructor(t){var e,n;this.fe=[],this._instance=t,this.fe=null!==(e=null==(n=this._instance.persistence)?void 0:n.get_property(dt))&&void 0!==e?e:[]}onRemoteConfig(t){var e,n,o=null!==(e=null==(n=t.errorTracking)?void 0:n.suppressionRules)&&void 0!==e?e:[];this.fe=o,this._instance.persistence&&this._instance.persistence.register({[dt]:this.fe})}sendExceptionEvent(t){this.pe(t)?Ur.info("Skipping exception capture because a suppression rule matched"):this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}pe(t){var e=t.$exception_list;if(!e||!R(e)||0===e.length)return!1;var n=e.reduce(((t,e)=>{var{type:n,value:o}=e;return x(n)&&n.length>0&&t.$exception_types.push(n),x(o)&&o.length>0&&t.$exception_values.push(o),t}),{$exception_types:[],$exception_values:[]});return this.fe.some((t=>{var e=t.values.map((t=>{var e,o=Rr[t.operator],r=R(t.value)?t.value:[t.value],i=null!==(e=n[t.key])&&void 0!==e?e:[];return r.length>0&&o(r,i)}));return"OR"===t.type?e.some(Boolean):e.every(Boolean)}))}}var Lr="Mobile",xr="iOS",Dr="Android",Nr="Tablet",Fr=Dr+" "+Nr,kr="iPad",Mr="Apple",jr=Mr+" Watch",Br="Safari",Gr="BlackBerry",Hr="Samsung",zr=Hr+"Browser",$r=Hr+" Internet",Wr="Chrome",Vr=Wr+" "+xr,Yr="Internet Explorer",Qr=Yr+" "+Lr,Kr="Opera",qr="Edge",Jr="Microsoft "+qr,Xr="Firefox",Zr=Xr+" "+xr,ti="Nintendo",ei="PlayStation",ni="Xbox",oi=Dr+" "+Lr,ri=Lr+" "+Br,ii="Windows",ai=ii+" Phone",si="Nokia",ci="Ouya",li="Generic",ui=li+" "+Lr.toLowerCase(),pi=li+" "+Nr.toLowerCase(),di="Konqueror",fi="(\\d+(\\.\\d+)?)",mi=new RegExp("Version/"+fi),hi=new RegExp(ni,"i"),_i=new RegExp(ei+" \\w+","i"),Ei=new RegExp(ti+" \\w+","i"),gi=new RegExp(Gr+"|PlayBook|BB10","i"),yi={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Si=function(t,e){return e=e||"",T(t," OPR/")&&T(t,"Mini")?"Opera Mini":T(t," OPR/")?Kr:gi.test(t)?Gr:T(t,"IE"+Lr)||T(t,"WPDesktop")?Qr:T(t,zr)?$r:T(t,qr)||T(t,"Edg/")?Jr:T(t,"FBIOS")?"Facebook "+Lr:T(t,"UCWEB")||T(t,"UCBrowser")?"UC Browser":T(t,"CriOS")?Vr:T(t,"CrMo")||T(t,Wr)?Wr:T(t,Dr)&&T(t,Br)?oi:T(t,"FxiOS")?Zr:T(t.toLowerCase(),di.toLowerCase())?di:((t,e)=>e&&T(e,Mr)||function(t){return T(t,Br)&&!T(t,Wr)&&!T(t,Dr)}(t))(t,e)?T(t,Lr)?ri:Br:T(t,Xr)?Xr:T(t,"MSIE")||T(t,"Trident/")?Yr:T(t,"Gecko")?Xr:""},Ti={[Qr]:[new RegExp("rv:"+fi)],[Jr]:[new RegExp(qr+"?\\/"+fi)],[Wr]:[new RegExp("(Chrome|CrMo)\\/"+fi)],[Vr]:[new RegExp("CriOS\\/"+fi)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+fi)],[Br]:[mi],[ri]:[mi],[Kr]:[new RegExp("(Opera|OPR)\\/"+fi)],[Xr]:[new RegExp(Xr+"\\/"+fi)],[Zr]:[new RegExp("FxiOS\\/"+fi)],[di]:[new RegExp("Konqueror[:/]?"+fi,"i")],[Gr]:[new RegExp(Gr+" "+fi),mi],[oi]:[new RegExp("android\\s"+fi,"i")],[$r]:[new RegExp(zr+"\\/"+fi)],[Yr]:[new RegExp("(rv:|MSIE )"+fi)],Mozilla:[new RegExp("rv:"+fi)]},Ci=function(t,e){var n=Si(t,e),o=Ti[n];if(L(o))return null;for(var r=0;r<o.length;r++){var i=o[r],a=t.match(i);if(a)return parseFloat(a[a.length-2])}return null},bi=[[new RegExp("Xbox; Xbox (.*?)[);]","i"),t=>[ni,t&&t[1]||""]],[new RegExp(ti,"i"),[ti,""]],[new RegExp(ei,"i"),[ei,""]],[gi,[Gr,""]],[new RegExp(ii,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[ai,""];if(new RegExp(Lr).test(e)&&!/IEMobile\b/.test(e))return[ii+" "+Lr,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var o=n[1],r=yi[o]||"";return/arm/i.test(e)&&(r="RT"),[ii,r]}return[ii,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>{if(t&&t[3]){var e=[t[3],t[4],t[5]||"0"];return[xr,e.join(".")]}return[xr,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=L(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Dr+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Dr+")","i"),t=>{if(t&&t[2]){var e=[t[2],t[3],t[4]||"0"];return[Dr,e.join(".")]}return[Dr,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];if(t&&t[1]){var n=[t[1],t[2],t[3]||"0"];e[1]=n.join(".")}return e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,["Chrome OS",""]],[/Linux|debian/i,["Linux",""]]],vi=function(t){return Ei.test(t)?ti:_i.test(t)?ei:hi.test(t)?ni:new RegExp(ci,"i").test(t)?ci:new RegExp("("+ai+"|WPDesktop)","i").test(t)?ai:/iPad/.test(t)?kr:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?jr:gi.test(t)?Gr:/(kobo)\s(ereader|touch)/i.test(t)?"K
1obo":new RegExp(si,"i").test(t)?si:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?!new RegExp(Lr).test(t)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)?/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Dr:Fr:Dr:new RegExp("(pda|Mobile)","i").test(t)?ui:new RegExp(Nr,"i").test(t)&&!new RegExp(Nr+" pc","i").test(t)?pi:""},Ii="https?://(.*)",Ai=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Oi=J(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],Ai),Ri="<masked>",Pi=["li_fat_id"];function Ui(t,e,n){if(!l)return{};var o,r=e?J([],Ai,n||[]):[],i=wi(be(l.URL,r,Ri),t),a=(o={},K(Pi,(function(t){var e=Be.D(t);o[t]=e||null})),o);return q(a,i)}function wi(t,e){var n=Oi.concat(e||[]),o={};return K(n,(function(e){var n=Ce(t,e);o[e]=n||null})),o}function Li(t){var e=function(t){return t?0===t.search(Ii+"google.([^/?]*)")?"google":0===t.search(Ii+"bing.com")?"bing":0===t.search(Ii+"yahoo.com")?"yahoo":0===t.search(Ii+"duckduckgo.com")?"duckduckgo":null:null}(t),n="yahoo"!=e?"q":"p",o={};if(!N(e)){o.$search_engine=e;var r=l?Ce(l.referrer,n):"";r.length&&(o.ph_keyword=r)}return o}function xi(){return navigator.language||navigator.userLanguage}function Di(){return(null==l?void 0:l.referrer)||"$direct"}function Ni(t,e){var n=t?J([],Ai,e||[]):[],o=null==u?void 0:u.href.substring(0,1e3);return{r:Di().substring(0,1e3),u:o?be(o,n,Ri):void 0}}function Fi(t){var e,{r:n,u:o}=t,r={$referrer:n,$referring_domain:null==n?void 0:"$direct"==n?"$direct":null==(e=Te(n))?void 0:e.host};if(o){r.$current_url=o;var i=Te(o);r.$host=null==i?void 0:i.host,r.$pathname=null==i?void 0:i.pathname;var a=wi(o);q(r,a)}if(n){var s=Li(n);q(r,s)}return r}function ki(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(o){return}}function Mi(){try{return(new Date).getTimezoneOffset()}catch(o){return}}function ji(t,e){if(!m)return{};var n,r,i,a=t?J([],Ai,e||[]):[],[s,c]=function(t){for(var e=0;e<bi.length;e++){var[n,o]=bi[e],r=n.exec(t),i=r&&(P(o)?o(r,t):o);if(i)return i}return["",""]}(m);return q(et({$os:s,$os_version:c,$browser:Si(m,navigator.vendor),$device:vi(m),$device_type:(r=m,i=vi(r),i===kr||i===Fr||"Kobo"===i||"Kindle Fire"===i||i===pi?Nr:i===ti||i===ni||i===ei||i===ci?"Console":i===jr?"Wearable":i?Lr:"Desktop"),$timezone:ki(),$timezone_offset:Mi()}),{$current_url:be(null==u?void 0:u.href,a,Ri),$host:null==u?void 0:u.host,$pathname:null==u?void 0:u.pathname,$raw_user_agent:m.length>1e3?m.substring(0,997)+"...":m,$browser_version:Ci(m,navigator.vendor),$browser_language:xi(),$browser_language_prefix:(n=xi(),"string"==typeof n?n.split("-")[0]:void 0),$screen_height:null==o?void 0:o.screen.height,$screen_width:null==o?void 0:o.screen.width,$viewport_height:null==o?void 0:o.innerHeight,$viewport_width:null==o?void 0:o.innerWidth,$lib:"web",$lib_version:_.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var Bi=H("[FeatureFlags]"),Gi="$active_feature_flags",Hi="$override_feature_flags",zi="$feature_flag_payloads",$i="$override_feature_flag_payloads",Wi="$feature_flag_request_id",Vi=t=>{var e={};for(var[n,o]of X(t||{}))o&&(e[n]=o);return e},Yi=function(t){return t.FeatureFlags="feature_flags",t.Recordings="recordings",t}({}),Qi=new Set(["7c6f7b45","66c1f69c","2727f65a","f3287528","8cc9a311","eb9f671b","c0e1c6f9","057989ec","723f4019","7b102104","563359d3","bad973ea","f6f2c4f4","59454a61","89ad1076","4edd0da1","26c52e72","a970bd2e","89cf4454","16e2b4e7","fba0e7b6","301c8488","bc65d69e","fe66a3c5","37926ca6","52a196df","d32a7577","42c4c9ef","6883bd5a","04809ff7","e59430a8","61be3dd8","7fa5500b","bf027177","8cfdba9b","96f6df5f","569798e9","0ebc61a5","1b5d7b92","17ebb0a4","f97ea965","85cc817b","3044dfc1","0c3fe5c3","b1f95fa3","8a6342e8","72365c68","12d34ad9","733853ec","3beeb69a","0645bb64","32de7f98","5dcbee21","3fe85053","ad960278","9466e5dd","7ca97b2d","2ee2a65c","28fde5f2","85c52f49","0ad823f4","f11b6cc9","aacf8af9","ab3e62b3","3a85ff15","8a67d3c4","f5e91ef1","4b873698","c5dae949","5b643d76","9599c892","34377448","2189e408","3be9ad53","1a14ce7c","2a164ded","8d53ea86","53bdb37d","bfc3f590","8df38ede","bdb81e49","38fde5c0","8d707e6d","73cbc496","f9d8a5ef","d3a9f8c4","a980d8cd","5bcfe086","e4818f68","4f11fb39","a13c6ae3","150c7fbb","98f3d658","f84f7377","1924dd9c","1f6b63b3","24748755","7c0f717c","8a87f11b","49f57f22","3c9e9234","3772f65b","dff631b6","cd609d40","f853c7f7","952db5ee","c5aa8a79","2d21b
16fd","79b7164c","4110e26c","a7d3b43f","84e1b8f6","75cc0998","07f78e33","10ca9b1a","ce441b18","01eb8256","c0ac4b67","8e8e5216","db7943dd","fa133a95","498a4508","21bbda67","7dbfed69","be3ec24c","fc80b8e2"]);class Ki{constructor(t){this.ge=!1,this._e=!1,this.me=!1,this.be=!1,this.ye=!1,this.we=!1,this.Se=!1,this._instance=t,this.featureFlagEventHandlers=[]}flags(){if(this._instance.config.__preview_remote_config)this.we=!0;else{var t=!this.$e&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.ke({disableFlags:t})}}get hasLoadedFlags(){return this._e}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property(Ut),e=this._instance.get_property(Hi),n=this._instance.get_property($i);if(!n&&!e)return t||{};var o=q({},t||{}),r=[...new Set([...Object.keys(n||{}),...Object.keys(e||{})])];for(var i of r){var a,s,c=o[i],l=null==e?void 0:e[i],u=L(l)?null!==(a=null==c?void 0:c.enabled)&&void 0!==a&&a:!!l,p=L(l)?c.variant:"string"==typeof l?l:void 0,d=null==n?void 0:n[i],f=W({},c,{enabled:u,variant:u?null!=p?p:null==c?void 0:c.variant:void 0});u!==(null==c?void 0:c.enabled)&&(f.original_enabled=null==c?void 0:c.enabled),p!==(null==c?void 0:c.variant)&&(f.original_variant=null==c?void 0:c.variant),d&&(f.metadata=W({},null==c?void 0:c.metadata,{payload:d,original_payload:null==c||null==(s=c.metadata)?void 0:s.payload})),o[i]=f}return this.ge||(Bi.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:o}),this.ge=!0),o}getFlagVariants(){var t=this._instance.get_property(Rt),e=this._instance.get_property(Hi);if(!e)return t||{};for(var n=q({},t),o=Object.keys(e),r=0;r<o.length;r++)n[o[r]]=e[o[r]];return this.ge||(Bi.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this.ge=!0),n}getFlagPayloads(){var t=this._instance.get_property(zi),e=this._instance.get_property($i);if(!e)return t||{};for(var n=q({},t||{}),o=Object.keys(e),r=0;r<o.length;r++)n[o[r]]=e[o[r]];return this.ge||(Bi.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:n}),this.ge=!0),n}reloadFeatureFlags(){this.be||this._instance.config.advanced_disable_feature_flags||this.$e||(this.$e=setTimeout((()=>{this.ke()}),5))}xe(){clearTimeout(this.$e),this.$e=void 0}ensureFlagsLoaded(){this._e||this.me||this.$e||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.be=t}ke(t){var e;if(this.xe(),!this._instance.I())if(this.me)this.ye=!0;else{var n={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:W({},(null==(e=this._instance.persistence)?void 0:e.get_initial_props())||{},this._instance.get_property(wt)||{}),group_properties:this._instance.get_property(Lt)};(null!=t&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(n.disable_flags=!0);var o=this._instance.config.__preview_flags_v2&&this._instance.config.__preview_remote_config,r=function(t){var e=function(t){for(var e=2166136261,n=0;n<t.length;n++)e^=t.charCodeAt(n),e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24);return("00000000"+(e>>>0).toString(16)).slice(-8)}(t);return null==Qi?void 0:Qi.has(e)}(this._instance.config.token)?"/decide?v=4":o?"/flags/?v=2":"/flags/?v=2&config=true",i=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",a=this._instance.requestRouter.endpointFor("api",r+i);o&&(n.timezone=ki()),this.me=!0,this._instance.Ee({method:"POST",url:a,data:n,compression:this._instance.config.disable_compression?void 0:y.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:t=>{var e,o,r=!0;if(200===t.statusCode&&(this.ye||(this.$anon_distinct_id=void 0),r=!1),this.me=!1,this.we||(this.we=!0,this._instance.Ie(null!==(o=t.json)&&void 0!==o?o:{})),!n.disable_flags||this.ye)if(this.Se=!r,t.json&&null!=(e=t.json.quotaLimited)&&e.includes(Yi.FeatureFlags))Bi.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset.  Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var i;n.disable_flags||this.receivedFeatureFlags(null!==(i=t.json)&&void 0!==i?i:{},r),this.ye&&(this.ye=!1,this.ke())}}})}}getFeatureFlag(t,e){if(void 0===e&&(e={}),this._e||this.getFlags()&&this.getFlags().length>0){var n=this.getFlagVariants()[t],o=""+n,r=this._instance.get_property(Wi)||void 0,i=this._instance.get_property(Nt)||{};if((e.send_event||!("send_event"in e))&&(!(t in i)||!i[t].includes(o))){var a,s,c,l,u,p,d,f,m;R(i[t])?i[t].push(o):i[t]=[o],null==(a=this._instance.persistence)||a.register({[Nt]:i});var h=this.getFeatureFlagDetails(t),_={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:r,$feature_flag_bootstrapped_response:(null==(s=this._instance.config.bootstrap)||null==(s=s.featureFlags)?void 0:s[t])||null,$feature_flag_bootstrapped_payload:(null==(c=this._instance.config.bootstrap)||null==(c=c.featureFlagPayloads)?void 0:c[t])||null,$used_bootstrap_value:!this.Se};L(null==h||null==(l=h.metadata)?void 0:l.version)||(_.$feature_flag_version=h.metadata.version);var E,g=null!==(u=null==h||null==(p=h.reason)?void 0:p.description)&&void 0!==u?u:null==h||null==(d=h.reason)?void 0:d.code;g&&(_.$feature_flag_reason=g),null!=h&&null!=(f=h.metadata)&&f.id&&(_.$feature_flag_id=h.metadata.id),L(null==h?void 0:h.original_variant)&&L(null==h?void 0:h.original_enabled)||(_.$feature_flag_original_response=L(h.original_variant)?h.original_enabled:h.original_variant),null!=h&&null!=(m=h.metadata)&&m.original_payload&&(_.$feature_flag_original_payload=null==h||null==(E=h.metadata)?void 0:E.original_payload),this._instance.capture("$feature_flag_called",_)}return n}Bi.warn('getFeatureFlag for key "'+t+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,e){var n=this._instance.config.token;this._instance.Ee({method:"POST",url:this._instance.requestRouter.endpointFor("api","/flags/?v=2&config=true"),data:{distinct_id:this._instance.get_distinct_id(),token:n},compression:this._instance.config.disable_compression?void 0:y.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:n=>{var o,r=null==(o=n.json)?void 0:o.featureFlagPayloads;e((null==r?void 0:r[t])||void 0)}})}isFeatureEnabled(t,e){if(void 0===e&&(e={}),this._e||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,e);Bi.warn('isFeatureEnabled for key "'+t+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e){if(this._instance.persistence){this._e=!0;var n=this.getFlagVariants(),o=this.getFlagPayloads(),r=this.getFlagsWithDetails();!function(t,e,n,o,r){void 0===n&&(n={}),void 0===o&&(o={}),void 0===r&&(r={});var i=(t=>{var e=t.flags;return e?(t.featureFlags=Object.fromEntries(Object.keys(e).map((t=>{var n;return[t,null!==(n=e[t].variant)&&void 0!==n?n:e[t].enabled]}))),t.featureFlagPayloads=Object.fromEntries(Object.keys(e).filter((t=>e[t].enabled)).filter((t=>{var n;return null==(n=e[t].metadata)?void 0:n.payload})).map((t=>{var n;return[t,null==(n=e[t].metadata)?void 0:n.payload]})))):Bi.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),t})(t),a=i.flags,s=i.featureFlags,c=i.featureFlagPayloads;if(s){var l=t.requestId;if(R(s)){Bi.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var u={};if(s)for(var p=0;p<s.length;p++)u[s[p]]=!0;e&&e.register({[Gi]:s,[Rt]:u})}else{var d=s,f=c,m=a;t.errorsWhileComputingFlags&&(d=W({},n,d),f=W({},o,f),m=W({},r,m)),e&&e.register(W({[Gi]:Object.keys(Vi(d)),[Rt]:d||{},[zi]:f||{},[Ut]:m||{}},l?{[Wi]:l}:{}))}}}(t,this._instance.persistence,n,o,r),this.Pe(e)}}override(t,e){void 0===e&&(e=!1),Bi.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return Bi.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===t)return this._instance.persistence.unregister(Hi),this._instance.persistence.unregister($i),void this.Pe();if(t&&"object"==typeof t&&("flags"in t||"payloads"in t)){var e,n=t;if(this.ge=Boolean(null!==(e=n.suppressWarning)&&void 0!==e&&e),"flags"in n)if(!1===n.flags)this._instance.persistence.unregister(Hi);else if(n.flags)if(R(n.flags)){for(var o={},r=0;r<n.flags.length;r++)o[n.flags[r]]=!0;this._instance.persistence.register({[Hi]:o})}else this._instance.persistence.register({[Hi]:n.flags});return"payloads"in n&&(!1===n.payloads?this._instance.persistence.unregister($i):n.payloads&&this._instance.persistence.register({[$i]:n.payloads})),void this.Pe()}this.Pe()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this._e){var{flags:e,flagVariants:n}=this.Re();t(e,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e){var n,o=(this._instance.get_property(Pt)||[]).find((e=>e.flagKey===t)),r={["$feature_enrollment/"+t]:e},i={$feature_flag:t,$feature_enrollment:e,$set:r};o&&(i.$early_access_feature_name=o.name),this._instance.capture("$feature_enrollment_update",i),this.setPersonPropertiesForFlags(r,!1);var a=W({},this.getFlagVariants(),{[t]:e});null==(n=this._instance.persistence)||n.register({[Gi]:Object.keys(Vi(a)),[Rt]:a}),this.Pe()}getEarlyAccessFeatures(t,e,n){void 0===e&&(e=!1);var o=this._instance.get_property(Pt),r=n?"&"+n.map((t=>"stage="+t)).join("&"):"";if(o&&!e)return t(o);this._instance.Ee({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+r),method:"GET",callback:e=>{var n;if(e.json){var o=e.json.earlyAccessFeatures;return null==(n=this._instance.persistence)||n.register({[Pt]:o}),t(o)}}})}Re(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((t=>e[t])),flagVariants:Object.keys(e).filter((t=>e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{})}}Pe(t){var{flags:e,flagVariants:n}=this.Re();
1this.featureFlagEventHandlers.forEach((o=>o(e,n,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){void 0===e&&(e=!0);var n=this._instance.get_property(wt)||{};this._instance.register({[wt]:W({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(wt)}setGroupPropertiesForFlags(t,e){void 0===e&&(e=!0);var n=this._instance.get_property(Lt)||{};0!==Object.keys(n).length&&Object.keys(n).forEach((e=>{n[e]=W({},n[e],t[e]),delete t[e]})),this._instance.register({[Lt]:W({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this._instance.get_property(Lt)||{};this._instance.register({[Lt]:W({},e,{[t]:{}})})}else this._instance.unregister(Lt)}}var qi=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Ji{constructor(t){this.S=t,this.props={},this.Te=!1,this.Me=(t=>{var e="";return t.token&&(e=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),t.persistence_name?"ph_"+t.persistence_name:"ph_"+e+"_posthog"})(t),this.B=this.Ce(t),this.load(),t.debug&&G.info("Persistence loaded",t.persistence,W({},this.props)),this.update_config(t,t),this.save()}Ce(t){-1===qi.indexOf(t.persistence.toLowerCase())&&(G.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var e=t.persistence.toLowerCase();return"localstorage"===e&&He.O()?He:"localstorage+cookie"===e&&$e.O()?$e:"sessionstorage"===e&&Qe.O()?Qe:"memory"===e?Ve:"cookie"===e?Be:$e.O()?$e:Be}properties(){var t={};return K(this.props,(function(e,n){if(n===Rt&&U(e))for(var o=Object.keys(e),r=0;r<o.length;r++)t["$feature/"+o[r]]=e[o[r]];else a=n,c=!1,(N(i=Wt)?c:s&&i.indexOf===s?-1!=i.indexOf(a):(K(i,(function(t){if(c||(c=t===a))return Y})),c))||(t[n]=e);var i,a,c})),t}load(){if(!this.Fe){var t=this.B.L(this.Me);t&&(this.props=q({},t))}}save(){this.Fe||this.B.j(this.Me,this.props,this.Oe,this.Ae,this.De,this.S.debug)}remove(){this.B.N(this.Me,!1),this.B.N(this.Me,!0)}clear(){this.remove(),this.props={}}register_once(t,e,n){if(U(t)){L(e)&&(e="None"),this.Oe=L(n)?this.Le:n;var o=!1;if(K(t,((t,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==e||(this.props[n]=t,o=!0)})),o)return this.save(),!0}return!1}register(t,e){if(U(t)){this.Oe=L(e)?this.Le:e;var n=!1;if(K(t,((e,o)=>{t.hasOwnProperty(o)&&this.props[o]!==e&&(this.props[o]=e,n=!0)})),n)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.Te){var t=Ui(this.S.custom_campaign_params,this.S.mask_personal_data_properties,this.S.custom_personal_data_properties);w(et(t))||this.register(t),this.Te=!0}}update_search_keyword(){var t;this.register((t=null==l?void 0:l.referrer)?Li(t):{})}update_referrer_info(){var t;this.register_once({$referrer:Di(),$referring_domain:null!=l&&l.referrer&&(null==(t=Te(l.referrer))?void 0:t.host)||"$direct"},void 0)}set_initial_person_info(){this.props[jt]||this.props[Bt]||this.register_once({[Gt]:Ni(this.S.mask_personal_data_properties,this.S.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};K([Bt,jt],(e=>{var n=this.props[e];n&&K(n,(function(e,n){t["$initial_"+b(n)]=e}))}));var e,n,o=this.props[Gt];if(o){var r=(e=Fi(o),n={},K(e,(function(t,e){n["$initial_"+b(e)]=t})),n);q(t,r)}return t}
1safe_merge(t){return K(this.props,(function(e,n){n in t||(t[n]=e)})),t}update_config(t,e){if(this.Le=this.Oe=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==e.persistence){var n=this.Ce(t),o=this.props;this.clear(),this.B=n,this.props=o,this.save()}}set_disabled(t){this.Fe=t,this.Fe?this.remove():this.save()}set_cross_subdomain(t){t!==this.Ae&&(this.Ae=t,this.remove(),this.save())}set_secure(t){t!==this.De&&(this.De=t,this.remove(),this.save())}set_event_timer(t,e){var n=this.props[ct]||{};n[t]=e,this.props[ct]=n,this.save()}remove_event_timer(t){var e=(this.props[ct]||{})[t];return L(e)||(delete this.props[ct][t],this.save()),e}get_property(t){return this.props[t]}set_property(t,e){this.props[t]=e,this.save()}}class Xi{constructor(){this.je={},this.je={}}on(t,e){return this.je[t]||(this.je[t]=[]),this.je[t].push(e),()=>{this.je[t]=this.je[t].filter((t=>t!==e))}}emit(t,e){for(var n of this.je[t]||[])n(e);for(var o of this.je["*"]||[])o(t,e)}}class Zi{constructor(t){this.Ne=new Xi,this.ze=(t,e)=>this.Ue(t,e)&&this.qe(t,e)&&this.Be(t,e),this.Ue=(t,e)=>null==e||!e.event||(null==t?void 0:t.event)===(null==e?void 0:e.event),this._instance=t,this.He=new Set,this.We=new Set}init(){var t,e;L(null==(t=this._instance)?void 0:t.Ge)||(null==(e=this._instance)||e.Ge(((t,e)=>{this.on(t,e)})))}register(t){var e,n;if(!L(null==(e=this._instance)?void 0:e.Ge)&&(t.forEach((t=>{var e,n;null==(e=this.We)||e.add(t),null==(n=t.steps)||n.forEach((t=>{var e;null==(e=this.He)||e.add((null==t?void 0:t.event)||"")}))})),null!=(n=this._instance)&&n.autocapture)){var o,r=new Set;t.forEach((t=>{var e;null==(e=t.steps)||e.forEach((t=>{null!=t&&t.selector&&r.add(null==t?void 0:t.selector)}))})),null==(o=this._instance)||o.autocapture.setElementSelectors(r)}}on(t,e){var n;null!=e&&0!=t.length&&(this.He.has(t)||this.He.has(null==e?void 0:e.event))&&this.We&&(null==(n=this.We)?void 0:n.size)>0&&this.We.forEach((t=>{this.Je(e,t)&&this.Ne.emit("actionCaptured",t.name)}))}Ve(t){this.onAction("actionCaptured",(e=>t(e)))}Je(t,e){if(null==(null==e?void 0:e.steps))return!1;for(var n of e.steps)if(this.ze(t,n))return!0;return!1}onAction(t,e){return this.Ne.on(t,e)}qe(t,e){if(null!=e&&e.url){var n,o=null==t||null==(n=t.properties)?void 0:n.$current_url;if(!o||"string"!=typeof o)return!1;if(!Zi.Ke(o,null==e?void 0:e.url,(null==e?void 0:e.url_matching)||"contains"))return!1}return!0}static Ke(t,e,n){switch(n){case"regex":return!!o&&Ar(t,e);case"exact":return e===t;case"contains":var r=Zi.Ye(e).replace(/_/g,".").replace(/%/g,".*");return Ar(t,r);default:return!1}}static Ye(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Be(t,e){if((null!=e&&e.href||null!=e&&e.tag_name||null!=e&&e.text)&&!this.Xe(t).some((t=>!(null!=e&&e.href&&!Zi.Ke(t.href||"",null==e?void 0:e.href,(null==e?void 0:e.href_matching)||"exact"))&&(null==e||!e.tag_name||t.tag_name===(null==e?void 0:e.tag_name))&&!(null!=e&&e.text&&!Zi.Ke(t.text||"",null==e?void 0:e.text,(null==e?void 0:e.text_matching)||"exact")&&!Zi.Ke(t.$el_text||"",null==e?void 0:e.text,(null==e?void 0:e.text_matching)||"exact")))))return!1;if(null!=e&&e.selector){var n,o=null==t||null==(n=t.properties)?void 0:n.$element_selectors;if(!o)return!1;if(!o.includes(null==e?void 0:e.selector))return!1}return!0}Xe(t){return null==(null==t?void 0:t.properties.$elements)?[]:null==t?void 0:t.properties.$elements}}var ta=H("[Surveys]"),ea="seenSurvey_",na=(t,e)=>{var n="$survey_"+e+"/"+t.id;return t.current_iteration&&t.current_iteration>0&&(n="$survey_"+e+"/"+t.id+"/"+t.current_iteration),n};class oa{constructor(t){this._instance=t,this.Qe=new Map,this.Ze=new Map}register(t){var e;L(null==(e=this._instance)?void 0:e.Ge)||(this.tr(t),this.ir(t))}ir(t){var e=t.filter((t=>{var e,n;return(null==(e=t.conditions)?void 0:e.actions)&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0}));0!==e.length&&(null==this.er&&(this.er=new Zi(this._instance),this.er.init(),this.er.Ve((t=>{this.onAction(t)}))),e.forEach((t=>{var e,n,o,r,i;t.conditions&&null!=(e=t.conditions)&&e.actions&&null!=(n=t.conditions)&&null!=(n=n.actions)&&n.values&&(null==(o=t.conditions)||null==(o=o.actions)||null==(o=o.values)?void 0:o.length)>0&&(null==(r=this.er)||r.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEac
1h((e=>{if(e&&e.name){var n=this.Ze.get(e.name);n&&n.push(t.id),this.Ze.set(e.name,n||[t.id])}})))})))}tr(t){var e;0!==t.filter((t=>{var e,n;return(null==(e=t.conditions)?void 0:e.events)&&(null==(n=t.conditions)||null==(n=n.events)||null==(n=n.values)?void 0:n.length)>0})).length&&(null==(e=this._instance)||e.Ge(((t,e)=>{this.onEvent(t,e)})),t.forEach((t=>{var e;null==(e=t.conditions)||null==(e=e.events)||null==(e=e.values)||e.forEach((e=>{if(e&&e.name){var n=this.Qe.get(e.name);n&&n.push(t.id),this.Qe.set(e.name,n||[t.id])}}))})))}onEvent(t,e){var n,o=(null==(n=this._instance)||null==(n=n.persistence)?void 0:n.props[Dt])||[];if("survey shown"===t&&e&&o.length>0){var r;ta.info("survey event matched, removing survey from activated surveys",{event:t,eventPayload:e,existingActivatedSurveys:o});var i=null==e||null==(r=e.properties)?void 0:r.$survey_id;if(i){var a=o.indexOf(i);a>=0&&(o.splice(a,1),this.rr(o))}}else this.Qe.has(t)&&(ta.info("survey event matched, updating activated surveys",{event:t,surveys:this.Qe.get(t)}),this.rr(o.concat(this.Qe.get(t)||[])))}onAction(t){var e,n=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[Dt])||[];this.Ze.has(t)&&this.rr(n.concat(this.Ze.get(t)||[]))}rr(t){var e;null==(e=this._instance)||null==(e=e.persistence)||e.register({[Dt]:[...new Set(t)]})}getSurveys(){var t;return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[Dt])||[]}getEventToSurveys(){return this.Qe}sr(){return this.er}}class ra{constructor(t){this.nr=void 0,this.ar=null,this.lr=!1,this.ur=!1,this.hr=[],this._instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){var e=t.surveys;if(F(e))return ta.warn("Flags not loaded yet. Not loading surveys.");var n=R(e);this.nr=n?e.length>0:e,ta.info("flags response received, isSurveysEnabled: "+this.nr),this.loadIfEnabled()}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var n=localStorage.key(e);(null!=n&&n.startsWith(ea)||null!=n&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach((t=>localStorage.removeItem(t)))}loadIfEnabled(){if(!this.ar)if(this.ur)ta.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)ta.info("Disabled. Not loading surveys.");else{var t=null==h?void 0:h.__PosthogExtensions__;if(t){var e=this.nr;if(!L(e)){this.ur=!0;try{var n=t.generateSurveys;if(n)return void this.dr(n,e);var o=t.loadExternalDependency;if(!o)return void this.vr("PostHog loadExternalDependency extension not found.");o(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.vr("Could not load surveys script",n):this.dr(t.generateSurveys,e)}))}catch(t){throw this.vr("Error initializing surveys",t),t}finally{this.ur=!1}}}else ta.error("PostHog Extensions not found.")}}dr(t,e){this.ar=t(this._instance,e),this._surveyEventReceiver=new oa(this._instance),ta.info("Surveys loaded successfully"),this.cr({isLoaded:!0})}vr(t,e){ta.error(t,e),this.cr({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.hr.push(t),this.ar&&this.cr({isLoaded:!0}),()=>{this.hr=this.hr.filter((e=>e!==t))}}getSurveys(t,e){if(void 0===e&&(e=!1),this._instance.config.disable_surveys)return ta.info("Disabled. Not loading surveys."),t([]);var n=this._instance.get_property(xt);if(n&&!e)return t(n,{isLoaded:!0});if(this.lr)return t([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.lr=!0,this._instance.Ee({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:e=>{var n;this.lr=!1;var o=e.statusCode;if(200!==o||!e.json){var r="Surveys API could not be loaded, status: "+o;return ta.error(r),t([],{isLoaded:!1,error:r})}var i,a=e.json.surveys||[],s=a.filter((t=>function(t){return!(!t.start_date||t.end_date)}(t)&&(function(t){var e;return!(null==(e=t.conditions)||null==(e=e.events)||null==(e=e.values)||!e.length)}(t)||function(t){var e;return!(null==(e=t.conditions)||null==(e=e.actions)||null==(e=e.values)||!e.length)}(t))));return s.length>0&&(null==(i=this._surveyEventReceiver)||i.register(s)),null==(n=this._instance.persistence)||n.register({[xt]:a}),t(a,{isLoaded:!0})}})}catch(t){throw this.lr=!1,t}}
1cr(t){for(var e of this.hr)try{t.isLoaded?this.getSurveys(e):e([],t)}catch(t){ta.error("Error in survey callback",t)}}getActiveMatchingSurveys(t,e){if(void 0===e&&(e=!1),!F(this.ar))return this.ar.getActiveMatchingSurveys(t,e);ta.warn("init was not called")}pr(t){var e=null;return this.getSurveys((n=>{var o;e=null!==(o=n.find((e=>e.id===t)))&&void 0!==o?o:null})),e}gr(t){if(F(this.ar))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var e="string"==typeof t?this.pr(t):t;return e?this.ar.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(F(this.ar))return ta.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var e=this.gr(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return F(this.ar)?(ta.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise((n=>{this.getSurveys((e=>{var o,r=null!==(o=e.find((e=>e.id===t)))&&void 0!==o?o:null;if(r){var i=this.gr(r);n({visible:i.eligible,disabledReason:i.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e){if(F(this.ar))ta.warn("init was not called");else{var n=this.pr(t),o=null==l?void 0:l.querySelector(e);n?o?this.ar.renderSurvey(n,o):ta.warn("Survey element not found"):ta.warn("Survey not found")}}}(function(t){t.Button="button",t.Tab="tab",t.Selector="selector"})({}),function(t){t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger"}({}),function(t){t.Popover="popover",t.API="api",t.Widget="widget"}({}),function(t){t.Open="open",t.MultipleChoice="multiple_choice",t.SingleChoice="single_choice",t.Rating="rating",t.Link="link"}({}),function(t){t.NextQuestion="next_question",t.End="end",t.ResponseBased="response_based",t.SpecificQuestion="specific_question"}({}),function(t){t.Once="once",t.Recurring="recurring",t.Always="always"}({});var ia=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t}({}),aa=function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t}({}),sa=H("[RateLimiter]");class ca{constructor(t){var e,n;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=t=>{var e=t.text;if(e&&e.length)try{(JSON.parse(e).quota_limited||[]).forEach((t=>{sa.info((t||"events")+" is quota limited."),this.serverLimits[t]=(new Date).getTime()+6e4}))}catch(t){return void sa.warn('could not rate limit - continuing. Error: "'+(null==t?void 0:t.message)+'"',{text:e})}},this.instance=t,this.captureEventsPerSecond=(null==(e=t.config.rate_limiting)?void 0:e.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null==(n=t.config.rate_limiting)?void 0:n.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(t){var e,n,o;void 0===t&&(t=!1);var r=(new Date).getTime(),i=null!==(e=null==(n=this.instance.persistence)?void 0:n.get_property(Mt))&&void 0!==e?e:{tokens:this.captureEventsBurstLimit,last:r};i.tokens+=(r-i.last)/1e3*this.captureEventsPerSecond,i.last=r,i.tokens>this.captureEventsBurstLimit&&(i.tokens=this.captureEventsBurstLimit);var a=i.tokens<1;return a||t||(i.tokens=Math.max(0,i.tokens-1)),!a||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,null==(o=this.instance.persistence)||o.set_property(Mt,i),{isRateLimited:a,remainingTokens:i.tokens}}isServerRateLimited(t){var e=this.serverLimits[t||"events"]||!1;return!1!==e&&(new Date).getTime()<e}}var la=H("[RemoteConfig]");class ua{constructor(t){this._instance=t}get remoteConfig(){var t;return null==(t=h._POSTHOG_REMOTE_CONFIG)||null==(t=t[this._instance.config.token])?void 0:t.config}_r(t){var e,n;null!=(e=h.__PosthogExtensions__)&&e.loadExternalDependency?null==(n=h.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):(la.error("PostHog Extensions not found. Cannot load remote config."),t())}mr(t){this._instance.Ee({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:e=>{t(e.json)}})}load(){try{if(this.remoteConfig)return la.info("Using preloaded remote config",this.remoteConfig),void this.Ie(this.remoteConfig);if(this._instance.I())return void la.warn("Remote config is disabled. Falling back to local config.");this._r((t=>{if(!t)return la.info("No config found after loading remote JS config. Falling back to JSON."),void this.mr((t=>{this.Ie(t)}));this.Ie(t)}))}catch(o){la.error("Error loading remote config",o)}}Ie(t){t?this._instance.config.__preview_remote_config?(this._instance.Ie(t),!1!==t.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):la.info("__preview_remote_config is disabled. Logging config instead",t):la.error("Failed to fetch remote config from PostHog.")}}var pa=3e3;class da{constructor(t,e){this.br=!0,this.yr=[],this.wr=en((null==e?void 0:e.flush_interval_ms)||pa,250,5e3,"flush interval",pa),this.Sr=t}enqueue(t){this.yr.push(t),this.$r||this.kr()}unload(){this.Er();var t=this.yr.length>0?this.Ir():{},e=Object.values(t);[...e.filter((t=>0===t.url.indexOf("/e"))),...e.filter((t=>0!==t.url.indexOf("/e")))].map((t=>{this.Sr(W({},t,{transport:"sendBeacon"}))}))}enable(){this.br=!1,this.kr()}kr(){var t=this;this.br||(this.$r=setTimeout((()=>
vendor: 10,930 bytes, line 1
1{if(this.Er(),this.yr.length>0){var e=this.Ir(),n=function(){var n=e[o],r=(new Date).getTime();n.data&&R(n.data)&&K(n.data,(t=>{t.offset=Math.abs(t.timestamp-r),delete t.timestamp})),t.Sr(n)};for(var o in e)n()}}),this.wr))}Er(){clearTimeout(this.$r),this.$r=void 0}Ir(){var t={};return K(this.yr,(e=>{var n,o=e,r=(o?o.batchKey:null)||o.url;L(t[r])&&(t[r]=W({},o,{data:[]})),null==(n=t[r].data)||n.push(o.data)})),this.yr=[],t}}var fa=["retriesPerformedSoFar"];class ma{constructor(t){this.Pr=!1,this.Rr=3e3,this.yr=[],this._instance=t,this.yr=[],this.Tr=!0,!L(o)&&"onLine"in o.navigator&&(this.Tr=o.navigator.onLine,it(o,"online",(()=>{this.Tr=!0,this.se()})),it(o,"offline",(()=>{this.Tr=!1})))}get length(){return this.yr.length}retriableRequest(t){var{retriesPerformedSoFar:e}=t,n=V(t,fa);k(e)&&e>0&&(n.url=Cr(n.url,{retry_count:e})),this._instance.Ee(W({},n,{callback:t=>{200!==t.statusCode&&(t.statusCode<400||t.statusCode>=500)&&(null!=e?e:0)<10?this.Mr(W({retriesPerformedSoFar:e},n)):null==n.callback||n.callback(t)}}))}Mr(t){var e=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=e+1;var n=function(t){var e=3e3*Math.pow(2,t),n=e/2,o=Math.min(18e5,e),r=(Math.random()-.5)*(o-n);return Math.ceil(o+r)}(e),o=Date.now()+n;this.yr.push({retryAt:o,requestOptions:t});var r="Enqueued failed request for retry in "+n;navigator.onLine||(r+=" (Browser is offline)"),G.warn(r),this.Pr||(this.Pr=!0,this.Cr())}Cr(){this.Fr&&clearTimeout(this.Fr),this.Fr=setTimeout((()=>{this.Tr&&this.yr.length>0&&this.se(),this.Cr()}),this.Rr)}se(){var t=Date.now(),e=[],n=this.yr.filter((n=>n.retryAt<t||(e.push(n),!1)));if(this.yr=e,n.length>0)for(var{requestOptions:o}of n)this.retriableRequest(o)}unload(){for(var{requestOptions:t}of(this.Fr&&(clearTimeout(this.Fr),this.Fr=void 0),this.yr))try{this._instance.Ee(W({},t,{transport:"sendBeacon"}))}catch(t){G.error(t)}this.yr=[]}}class ha{constructor(t){this.Or=()=>{var t,e,n,o;this.Ar||(this.Ar={});var r=this.scrollElement(),i=this.scrollY(),a=r?Math.max(0,r.scrollHeight-r.clientHeight):0,s=i+((null==r?void 0:r.clientHeight)||0),c=(null==r?void 0:r.scrollHeight)||0;this.Ar.lastScrollY=Math.ceil(i),this.Ar.maxScrollY=Math.max(i,null!==(t=this.Ar.maxScrollY)&&void 0!==t?t:0),this.Ar.maxScrollHeight=Math.max(a,null!==(e=this.Ar.maxScrollHeight)&&void 0!==e?e:0),this.Ar.lastContentY=s,this.Ar.maxContentY=Math.max(s,null!==(n=this.Ar.maxContentY)&&void 0!==n?n:0),this.Ar.maxContentHeight=Math.max(c,null!==(o=this.Ar.maxContentHeight)&&void 0!==o?o:0)},this._instance=t}getContext(){return this.Ar}resetContext(){var t=this.Ar;return setTimeout(this.Or,0),t}startMeasuringScrollPosition(){it(o,"scroll",this.Or,{capture:!0}),it(o,"scrollend",this.Or,{capture:!0}),it(o,"resize",this.Or)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==o?void 0:o.document.documentElement;var t=R(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var e of t){var n=null==o?void 0:o.document.querySelector(e);if(n)return n}}scrollY(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return o&&(o.scrollY||o.pageYOffset||o.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return o&&(o.scrollX||o.pageXOffset||o.document.documentElement.scrollLeft)||0}}var _a=t=>Ni(null==t?void 0:t.config.mask_personal_data_properties,null==t?void 0:t.config.custom_personal_data_properties);class Ea{constructor(t,e,n,o){this.Dr=t=>{var e=this.Lr();if(!e||e.sessionId!==t){var n={sessionId:t,props:this.jr(this._instance)};this.Nr.register({[kt]:n})}},this._instance=t,this.zr=e,this.Nr=n,this.jr=o||_a,this.zr.onSessionId(this.Dr)}Lr(){return this.Nr.props[kt]}getSetOnceProps(){var t,e=null==(t=this.Lr())?void 0:t.props;return e?"r"in e?Fi(e):{$referring_domain:e.referringDomain,$pathname:e.initialPathName,utm_source:e.utm_source,utm_campaign:e.utm_campaign,utm_medium:e.utm_medium,utm_content:e.utm_content,utm_term:e.utm_term}:{}}getSessionProps(){var t={};return K(et(this.getSetOnceProps()),((e,n)=>{"$current_url"===n&&(n="url"),t["$session_entry_"+b(n)]=e})),t}}var ga=H("[SessionId]");class ya{constructor(t,e,n){var o;if(this.Ur=[],!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.__preview_experimental_cookieless_mode)throw new Error("SessionIdManager cannot be used with __preview_experimental_cookieless_mode");this.S=t.config,this.Nr=t.persistence,this.fi=void 0,this.Ct=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.qr=e||Fe,this.Br=n||Fe;var r=this.S.persistence_name||this.S.token,i=this.S.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*en(i,60,36e3,"session_idle_timeout_seconds",1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Hr(),this.Wr="ph_"+r+"_window_id",this.Gr="ph_"+r+"_primary_window_exists",this.Jr()){var a=Qe.L(this.Wr),s=Qe.L(this.Gr);a&&!s?this.fi=a:Qe.N(this.Wr),Qe.j(this.Gr,!0)}if(null!=(o=this.S.bootstrap)&&o.sessionID)try{var c=(t=>{var e=this.S.bootstrap.sessionID.replace(/-/g,"");if(32!==e.length)throw new Error("Not a valid UUID");if("7"!==e[12])throw new Error("Not a UUIDv7");return parseInt(e.substring(0,12),16)})();this.Vr(this.S.bootstrap.sessionID,(new Date).getTime(),c)}catch(t){ga.error("Invalid sessionID in bootstrap",t)}this.Kr()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return L(this.Ur)&&(this.Ur=[]),this.Ur.push(t),this.Ct&&t(this.Ct,this.fi),()=>{this.Ur=this.Ur.filter((e=>e!==t))}}Jr(){return"memory"!==this.S.persistence&&!this.Nr.Fe&&Qe.O()}Yr(t){t!==this.fi&&(this.fi=t,this.Jr()&&Qe.j(this.Wr,t))}Xr(){return this.fi?this.fi:this.Jr()?Qe.L(this.Wr):null}Vr(t,e,n){t===this.Ct&&e===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=e,this.Ct=t,this.Nr.register({[vt]:[e,t,n]}))}Qr(){if(this.Ct&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.Ct,this._sessionStartTimestamp];var t=this.Nr.props[vt];return R(t)&&2===t.length&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.Vr(null,null,null)}Kr(){it(o,"beforeunload",(()=>{this.Jr()&&Qe.N(this.Gr)}),{capture:!1})}checkAndGetSessionAndWindowId(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=null),this.S.__preview_experimental_cookieless_mode)throw new Error("checkAndGetSessionAndWindowId should not be called in __preview_experimental_cookieless_mode");var n=e||(new Date).getTime(),[o,r,i]=this.Qr(),a=this.Xr(),s=k(i)&&i>0&&Math.abs(n-i)>864e5,c=!1,l=!r,u=!t&&Math.abs(n-o)>this.sessionTimeoutMs;l||u||s?(r=this.qr(),a=this.Br(),ga.info("new session ID generated",{sessionId:r,windowId:a,changeReason:{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}}),i=n,c=!0):a||(a=this.Br(),c=!0);var p=0===o||!t||s?n:o,d=0===i?(new Date).getTime():i;return this.Yr(a),this.Vr(r,p,d),t||this.Hr(),c&&this.Ur.forEach((t=>t(r,a,c?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0))),{sessionId:r,windowId:a,sessionStartTimestamp:d,changeReason:c?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0,lastActivityTimestamp:o}}Hr(){clearTimeout(this.Zr),this.Zr=setTimeout((()=>{this.resetSessionId()}),1.1*this.sessionTimeoutMs)}}var Sa=["$set_once","$set"],Ta=H("[SiteApps]");class Ca{constructor(t){this._instance=t,this.ts=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}es(t,e){if(e){var n=this.globalsForEvent(e);this.ts.push(n),this.ts.length>1e3&&(this.ts=this.ts.slice(10))}}get siteAppLoaders(){var t;return null==(t=h._POSTHOG_REMOTE_CONFIG)||null==(t=t[this._instance.config.token])?void 0:t.siteApps}init(){if(this.isEnabled){var t=this._instance.Ge(this.es.bind(this));this.rs=()=>{t(),this.ts=[],this.rs=void 0}}}globalsForEvent(t){var e,n,o,r,i,a,s;if(!t)throw new Error("Event payload is required");var c={},l=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[p,d]of Object.entries(u))c[p]={id:l[p],type:p,properties:d};var{$set_once:f,$set:m}=t;return{event:W({},V(t,Sa),{properties:W({},t.properties,m?{$set:W({},null!==(e=null==(n=t.properties)?void 0:n.$set)&&void 0!==e?e:{},m)}:{},f?{$set_once:W({},null!==(o=null==(r=t.properties)?void 0:r.$set_once)&&void 0!==o?o:{},f)}:{}),elements_chain:null!==(i=null==(a=t.properties)?void 0:a.$elements_chain)&&void 0!==i?i:"",distinct_id:null==(s=t.properties)?void 0:s.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(t){var e=this.apps[t.id],n=()=>{var n;!e.errored&&this.ts.length&&(Ta.info("Processing "+this.ts.length+" events for site app with id "+t.id),this.ts.forEach((t=>null==e.processEvent?void 0:e.processEvent(t))),e.processedBuffer=!0),Object.values(this.apps).every((t=>t.processedBuffer||t.errored))&&(null==(n=this.rs)||n.call(this))},o=!1,r=r=>{e.errored=!r,e.loaded=!0,Ta.info("Site app with id "+t.id+" "+(r?"loaded":"errored")),o&&n()};try{var{processEvent:i}=t.init({posthog:this._instance,callback:t=>{r(t)}});i&&(e.processEvent=i),o=!0}catch(e){Ta.error("Error while initializing PostHog app with config id "+t.id,e),r(!1)}if(o&&e.loaded)try{n()}catch(n){Ta.error("Error while processing buffered events PostHog app with config id "+t.id,n),e.errored=!0}}ss(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}ns(t){if(0!==Object.keys(this.apps).length){var e=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{null==n.processEvent||n.processEvent(e)}catch(e){Ta.error("Error while processing event "+t.event+" for site app "+n.id,e)}}}onRemoteConfig(t){var e,n,o,r=this;if(null!=(e=this.siteAppLoaders)&&e.length)return this.isEnabled?(this.ss(),void this._instance.on("eventCaptured",(t=>this.ns(t)))):void Ta.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(n=this.rs)||n.call(this),null!=(o=t.siteApps)&&o.length)if(this.isEnabled){var i=function(t){var e;h["__$$ph_site_app_"+t]=r._instance,null==(e=h.__PosthogExtensions__)||null==e.loadSiteApp||e.loadSiteApp(r._instance,s,(e=>{if(e)return Ta.error("Error while initializing PostHog app with config id "+t,e)}))};for(var{id:a,url:s}of t.siteApps)i(a)}else Ta.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var ba=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hub
1spot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],va=function(t,e){if(!t)return!1;var n=t.toLowerCase();return ba.concat(e||[]).some((t=>{var e=t.toLowerCase();return-1!==n.indexOf(e)}))},Ia=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&va(n,e))return!0;try{var o=null==t?void 0:t.userAgentData;if(null!=o&&o.brands&&o.brands.some((t=>va(null==t?void 0:t.brand,e))))return!0}catch(t){}return!!t.webdriver},Aa=function(t){return t.US="us",t.EU="eu",t.CUSTOM="custom",t}({}),Oa="i.posthog.com";class Ra{constructor(t){this.os={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===t?"https://us.i.posthog.com":t}get uiHost(){var t,e=null==(t=this.instance.config.ui_host)?void 0:t.replace(/\/$/,"");return e||(e=this.apiHost.replace("."+Oa,".posthog.com")),"https://app.posthog.com"===e?"https://us.posthog.com":e}get region(){return this.os[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.os[this.apiHost]=Aa.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.os[this.apiHost]=Aa.EU:this.os[this.apiHost]=Aa.CUSTOM),this.os[this.apiHost]}endpointFor(t,e){if(void 0===e&&(e=""),e&&(e="/"===e[0]?e:"/"+e),"ui"===t)return this.uiHost+e;if(this.region===Aa.CUSTOM)return this.apiHost+e;var n=Oa+e;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var Pa={icontains:(t,e)=>!!o&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!o&&-1===e.href.toLowerCase().indexOf(t.toLowerCase()),regex:(t,e)=>!!o&&Ar(e.href,t),not_regex:(t,e)=>!!o&&!Ar(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class Ua{constructor(t){var e=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(t){void 0===t&&(t=!1),e.getWebExperiments((t=>{Ua.ls("retrieved web experiments from the server"),e.us=new Map,t.forEach((t=>{if(t.feature_flag_key){var n;e.us&&(Ua.ls("setting flag key ",t.feature_flag_key," to web experiment ",t),null==(n=e.us)||n.set(t.feature_flag_key,t));var o=e._instance.getFeatureFlag(t.feature_flag_key);x(o)&&t.variants[o]&&e.hs(t.name,o,t.variants[o].transforms)}else if(t.variants)for(var r in t.variants){var i=t.variants[r];Ua.ds(i)&&e.hs(t.name,r,i.transforms)}}))}),t)},this._instance=t,this._instance.onFeatureFlags((t=>{this.onFeatureFlags(t)}))}onFeatureFlags(t){if(this._is_bot())Ua.ls("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(F(this.us))return this.us=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Ua.ls("applying feature flags",t),t.forEach((t=>{var e;if(this.us&&null!=(e=this.us)&&e.has(t)){var n,o=this._instance.getFeatureFlag(t),r=null==(n=this.us)?void 0:n.get(t);o&&null!=r&&r.variants[o]&&this.hs(r.name,o,r.variants[o].transforms)}}))}}previewWebExperiment(){var t=Ua.getWindowLocation();if(null!=t&&t.search){var e=Ce(null==t?void 0:t.search,"__experiment_id"),n=Ce(null==t?void 0:t.search,"__experiment_variant");e&&n&&(Ua.ls("previewing web experiments "+e+" && "+n),this.getWebExperiments((t=>{this.vs(parseInt(e),n,t)}),!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,e,n){if(this._instance.config.disable_web_experiments&&!n)return t([]);var o=this._instance.get_property("$web_experiments");if(o&&!e)return t(o);this._instance.Ee({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:e=>{if(200!==e.statusCode||!e.json)return t([]);var n=e.json.experiments||[];return t(n)}})}vs(t,e,n){var o=n.filter((e=>e.id===t));o&&o.length>0&&(Ua.ls("Previewing web experiment ["+o[0].name+"] with variant ["+e+"]"),this.hs(o[0].name,e,o[0].variants[e].transforms))}static ds(t){return!F(t.conditions)&&Ua.cs(t)&&Ua.fs(t)}static cs(t){var e;if(F(t.conditions)||F(null==(e=t.conditions)?void 0:e.url))return!0;var n,o,r,i=Ua.getWindowLocation();return!!i&&(null==(n=t.conditions)||!n.url||Pa[null!==(o=null==(r=t.conditions)?void 0:r.urlMatchType)&&void 0!==o?o:"icontains"](t.conditions.url,i))}
vendor: 6,002 bytes, line 1
1static getWindowLocation(){return null==o?void 0:o.location}static fs(t){var e;if(F(t.conditions)||F(null==(e=t.conditions)?void 0:e.utm))return!0;var n=Ui();if(n.utm_source){var o,r,i,a,s,c,l,u,p=null==(o=t.conditions)||null==(o=o.utm)||!o.utm_campaign||(null==(r=t.conditions)||null==(r=r.utm)?void 0:r.utm_campaign)==n.utm_campaign,d=null==(i=t.conditions)||null==(i=i.utm)||!i.utm_source||(null==(a=t.conditions)||null==(a=a.utm)?void 0:a.utm_source)==n.utm_source,f=null==(s=t.conditions)||null==(s=s.utm)||!s.utm_medium||(null==(c=t.conditions)||null==(c=c.utm)?void 0:c.utm_medium)==n.utm_medium,m=null==(l=t.conditions)||null==(l=l.utm)||!l.utm_term||(null==(u=t.conditions)||null==(u=u.utm)?void 0:u.utm_term)==n.utm_term;return p&&f&&m&&d}return!1}static ls(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];G.info("[WebExperiments] "+t,n)}hs(t,e,n){this._is_bot()?Ua.ls("Refusing to render web experiment since the viewer is a likely bot"):"control"!==e?n.forEach((n=>{if(n.selector){var o;Ua.ls("applying transform of variant "+e+" for experiment "+t+" ",n);var r=null==(o=document)?void 0:o.querySelectorAll(n.selector);null==r||r.forEach((t=>{var e=t;n.html&&(e.innerHTML=n.html),n.css&&e.setAttribute("style",n.css)}))}})):Ua.ls("Control variants leave the page unmodified.")}_is_bot(){return c&&this._instance?Ia(c,this._instance.config.custom_blocked_useragents):void 0}}var wa=H("[PostHog ExternalIntegrations]"),La={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class xa{constructor(t){this._instance=t}J(t,e){var n;null==(n=h.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,t,(t=>{if(t)return wa.error("failed to load script",t);e()}))}startIfEnabledOrStop(){var t=this,e=function(e){var n,r,i;!o||null!=(n=h.__PosthogExtensions__)&&null!=(n=n.integrations)&&n[e]||t.J(La[e],(()=>{var n;null==(n=h.__PosthogExtensions__)||null==(n=n.integrations)||null==(n=n[e])||n.start(t._instance)})),!o&&null!=(r=h.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[e]&&(null==(i=h.__PosthogExtensions__)||null==(i=i.integrations)||null==(i=i[e])||i.stop())};for(var[n,o]of Object.entries(null!==(r=this._instance.config.integrations)&&void 0!==r?r:{})){var r;e(n)}}}var Da={},Na=()=>{},Fa="posthog",ka=!Sr&&-1===(null==m?void 0:m.indexOf("MSIE"))&&-1===(null==m?void 0:m.indexOf("Mozilla")),Ma=t=>{var e;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:ot(null==l?void 0:l.location),persistence:"localStorage+cookie",persistence_name:"",loaded:Na,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:"2025-05-24"!==t||"history_change",capture_pageleave:"if_capture_pageview",defaults:null!=t?t:"unset",debug:u&&x(null==u?void 0:u.search)&&-1!==u.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==o||null==(e=o.location)?void 0:e.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:t=>{var e="Bad HTTP status: "+t.statusCode+" "+t.text;G.error(e)},get_device_id:t=>t,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:pa},error_tracking:{},_onCapture:Na}},ja=t=>{var e={};L(t.process_person)||(e.person_profiles=t.process_person),L(t.xhr_headers)||(e.request_headers=t.xhr_headers),L(t.cookie_name)||(e.persistence_name=t.cookie_name),L(t.disable_cookie)||(e.disable_persistence=t.disable_cookie),L(t.store_google)||(e.save_campaign_params=t.store_google),L(t.verbose)||(e.debug=t.verbose);var n=q({},e,t);return R(t.property_blacklist)&&(L(t.property_denylist)?n.property_denylist=t.property_blacklist:R(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:G.error("Invalid value for property_denylist config: "+t.property_denylist)),n};class Ba{constructor(){this.__forceAllowLocalhost=!1}get ps(){return this.__forceAllowLocalhost}set ps(t){G.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Ga{get decideEndpointWasHit(){var t,e;return null!==(t=null==(e=this.featureFlags)?void 0:e.hasLoadedFlags)&&void 0!==t&&t}get flagsEndpointWasHit(){var t,e;return null!==(t=null==(e=this.featureFlags)?void 0:e.hasLoadedFlags)&&void 0!==t&&t}constructor(){this.webPerformance=new Ba,this.gs=!1,this.version=_.LIB_VERSION,this._s=new Xi,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Ma(),this.SentryIntegration=ir,this.sentryIntegration=t=>function(t,e){var n=rr(t,e);return{name:or,processEvent:t=>n(t)}}(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.bs=!1,this.ys=null,this.ws=null,this.Ss=null,this.featureFlags=new Ki(this),this.toolbar=ne
1w ur(this),this.scrollManager=new ha(this),this.pageViewManager=new yr(this),this.surveys=new ra(this),this.experiments=new Ua(this),this.exceptions=new wr(this),this.rateLimiter=new ca(this),this.requestRouter=new Ra(this),this.consent=new qe(this),this.externalIntegrations=new xa(this),this.people={set:(t,e,n)=>{var o=x(t)?{[t]:e}:t;this.setPersonProperties(o),null==n||n({})},set_once:(t,e,n)=>{var o=x(t)?{[t]:e}:t;this.setPersonProperties(void 0,o),null==n||n({})}},this.on("eventCaptured",(t=>G.info('send "'+(null==t?void 0:t.event)+'"',t)))}init(t,e,n){if(n&&n!==Fa){var o,r=null!==(o=Da[n])&&void 0!==o?o:new Ga;return r._init(t,e,n),Da[n]=r,Da[Fa][n]=r,r}return this._init(t,e,n)}_init(t,e,n){var r,i;if(void 0===e&&(e={}),L(t)||D(t))return G.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return G.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this.$s=e,this.ks=[],e.person_profiles&&(this.ws=e.person_profiles),this.set_config(q({},Ma(e.defaults),ja(e),{name:n,token:t})),this.config.on_xhr_error&&G.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=e.disable_compression?void 0:y.GZipJS,this.persistence=new Ji(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Ji(W({},this.config,{persistence:"sessionStorage"}));var a=W({},this.persistence.props),s=W({},this.sessionPersistence.props);if(this.register({$initialization_time:(new Date).toISOString()}),this.xs=new da((t=>this.Es(t)),this.config.request_queue_config),this.Is=new ma(this),this.__request_queue=[],this.config.__preview_experimental_cookieless_mode||(this.sessionManager=new ya(this),this.sessionPropsManager=new Ea(this,this.sessionManager,this.persistence)),new dr(this).startIfEnabledOrStop(),this.siteApps=new Ca(this),null==(r=this.siteApps)||r.init(),this.config.__preview_experimental_cookieless_mode||(this.sessionRecording=new er(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Pe(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new gr(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new hr(this),this.exceptionObserver=new rn(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new tn(this,Ze),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new Dn(this),this.historyAutocapture.startIfEnabled(),_.DEBUG=_.DEBUG||this.config.debug,_.DEBUG&&G.info("Starting in debug mode",{this:this,config:e,thisC:W({},this.config),p:a,s:s}),this.Ps(),void 0!==(null==(i=e.bootstrap)?void 0:i.distinctID)){var c,l,u=this.config.get_device_id(Fe()),p=null!=(c=e.bootstrap)&&c.isIdentifiedID?u:e.bootstrap.distinctID;this.persistence.set_property(Ft,null!=(l=e.bootstrap)&&l.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:e.bootstrap.distinctID,$device_id:p})}if(this.Rs()){var d,f,m=Object.keys((null==(d=e.bootstrap)?void 0:d.featureFlags)||{}).filter((t=>{var n;return!(null==(n=e.bootstrap)||null==(n=n.featureFlags)||!n[t])})).reduce(((t,n)=>{var o;return t[n]=(null==(o=e.bootstrap)||null==(o=o.featureFlags)?void 0:o[n])||!1,t}),{}),h=Object.keys((null==(f=e.bootstrap)?void 0:f.featureFlagPayloads)||{}).filter((t=>m[t])).reduce(((t,n)=>{var o,r;return null!=(o=e.bootstrap)&&null!=(o=o.featureFlagPayloads)&&o[n]&&(t[n]=null==(r=e.bootstrap)||null==(r=r.featureFlagPayloads)?void 0:r[n]),t}),{});this.featureFlags.receivedFeatureFlags({featureFlags:m,featureFlagPayloads:h})}if(this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:$t,$device_id:null},"");else if(!this.get_distinct_id()){var E=this.config.get_device_id(Fe());this.register_once({distinct_id:E,$device_id:E},""),this.persistence.set_property(Ft,"anonymous")}return it(o,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),e.segment?function(t,e){var n=t.config.segment;if(!n)return e();!function(t,e){var n=t.config.segment;if(!n)return e();var o=n=>{var o=()=>n.anonymousId()||Fe();t.config.get_device_id=o,n.id()&&(t.register({distinct_id:n.id(),$device_id:o()}),t.persistence.set_property(Ft,"identified")),e()},r=n.user();"then"in r&&P(r.then)?r.then((t=>o(t))):o(r)}(t,(()=>{n.register((t=>{Promise&&Promise.resolve||nr.warn("This browser does not have Promise support, and can not use the segment integration");var e=(e,n)=>{if(!n)return e;e.event.userId||e.event.anonymousId===t.get_distinct_id()||(nr.info("No userId set, resetting PostHog"),t.reset()),e.event.userId&&e.event.userId!==t.get_distinct_id()&&(nr.info("UserId set, identifying with PostHog"),t.identify(e.event.userId)
1);var o=t.calculateEventProperties(n,e.event.properties);return e.event.properties=Object.assign({},o,e.event.properties),e};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:t=>e(t,t.event.event),page:t=>e(t,"$pageview"),identify:t=>e(t,"$identify"),screen:t=>e(t,"$screen")}})(t)).then((()=>{e()}))}))}(this,(()=>this.Ts())):this.Ts(),P(this.config._onCapture)&&this.config._onCapture!==Na&&(G.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(t=>this.config._onCapture(t.event,t)))),this.config.ip&&G.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Ie(t){var e,n,o,r,i,a,s,c;if(!l||!l.body)return G.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Ie(t)}),500);this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=T(t.supportedCompression,y.GZipJS)?y.GZipJS:T(t.supportedCompression,y.Base64)?y.Base64:void 0),null!=(e=t.analytics)&&e.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.ws?this.ws:"identified_only"}),null==(n=this.siteApps)||n.onRemoteConfig(t),null==(o=this.sessionRecording)||o.onRemoteConfig(t),null==(r=this.autocapture)||r.onRemoteConfig(t),null==(i=this.heatmaps)||i.onRemoteConfig(t),this.surveys.onRemoteConfig(t),null==(a=this.webVitalsAutocapture)||a.onRemoteConfig(t),null==(s=this.exceptionObserver)||s.onRemoteConfig(t),this.exceptions.onRemoteConfig(t),null==(c=this.deadClicksAutocapture)||c.onRemoteConfig(t)}Ts(){try{this.config.loaded(this)}catch(o){G.critical("`loaded` function failed",o)}this.Ms(),this.config.capture_pageview&&setTimeout((()=>{this.consent.isOptedIn()&&this.Cs()}),1),new ua(this).load(),this.featureFlags.flags()}Ms(){var t;this.has_opted_out_capturing()||this.config.request_batching&&(null==(t=this.xs)||t.enable())}_dom_loaded(){this.has_opted_out_capturing()||Q(this.__request_queue,(t=>this.Es(t))),this.__request_queue=[],this.Ms()}_handle_unload(){var t,e;this.config.request_batching?(this.Fs()&&this.capture("$pageleave"),null==(t=this.xs)||t.unload(),null==(e=this.Is)||e.unload()):this.Fs()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}Ee(t){this.__loaded&&(ka?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Cr(t.url,{ip:this.config.ip?1:0}),t.headers=W({},this.config.request_headers),t.compression="best-available"===t.compression?this.compression:t.compression,t.fetchOptions=t.fetchOptions||this.config.fetch_options,(t=>{var e,n,o,r=W({},t);r.timeout=r.timeout||6e4,r.url=Cr(r.url,{_:(new Date).getTime().toString(),ver:_.LIB_VERSION,compression:r.compression});var i=null!==(e=r.transport)&&void 0!==e?e:"fetch",a=null!==(n=null==(o=rt(Ir,(t=>t.transport===i)))?void 0:o.method)&&void 0!==n?n:Ir[0].method;if(!a)throw new Error("No available transport method");a(r)})(W({},t,{callback:e=>{var n,o;this.rateLimiter.checkForLimiting(e),e.statusCode>=400&&(null==(n=(o=this.config).on_request_error)||n.call(o,e)),null==t.callback||t.callback(e)}}))))}Es(t){this.Is?this.Is.retriableRequest(t):this.Ee(t)}_execute_array(t){var e,n=[],o=[],r=[];Q(t,(t=>{t&&(e=t[0],R(e)?r.push(t):P(t)?t.call(this):R(t)&&"alias"===e?n.push(t):R(t)&&-1!==e.indexOf("capture")&&P(this[e])?r.push(t):o.push(t))}));var i=function(t,e){Q(t,(function(t){if(R(t[0])){var n=e;K(t,(function(t){n=n[t[0]].apply(n,t.slice(1))}))}else this[t[0]].apply(this,t.slice(1))}),e)};i(n,this),i(o,this),i(r,this)}Rs(){var t,e;return(null==(t=this.config.bootstrap)?void 0:t.featureFlags)&&Object.keys(null==(e=this.config.bootstrap)?void 0:e.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,e,n){var o;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.xs){if(!this.consent.isOptedOut())if(!L(t)&&x(t)){if(this.config.opt_out_useragent_filter||!this._is_bot()){var r=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==r||!r.isRateLimited){null!=e&&e.$current_url&&!x(null==e?void 0:e.$current_url)&&(G.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==e||delete e.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var i=new Date,a=(null==n?void 0:n.timestamp)||i,s=Fe(),c={uuid:s,event:t,properties:this.calculateEventProperties(t,e||{},a,s)};r&&(c.properties.$lib_rate_limit_remaining_tokens=r.remainingTokens),(null==n?void 0:n.$set)&&(c.$set=null==n?void 0:n.$set);var l,u,p=this.Os(null==n?void 0:n.$set_once);if(p&&(c.$set_once=p),(c=function(t,e){return n=t,o=t=>x(t)&&!N(e)?t.slice(0,e):t,r=new Set,function t(e,n){return e!==Object(e)?o?o(e):e:r.has(e)?void 0:(r.add(e),R(e)?(i=[],Q(e,(e=>{i.push(t(e))}))):(i={},K(e,((e,n)=>{r.has(e)||(i[n]=t(e,n))}))),i);var i}(n);var n,o,r}(c,null!=n&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=a,L(null==n?void 0:n.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=i),t===ia.DISMISSED||t===ia.SENT){var d=null==e?void 0:e[aa.SURVEY_ID],f=null==e?void 0:e[aa.SURVEY_ITERATION];localStorage.setItem((u=""+ea+(l={id:d,current_iteration:f}).id,l.current_iteration&&l.current_iteration>0&&(u=""+ea+l.id+"_"+l.current_iteration),u),"true"),c.$set=W({},c.$set,{[na({id:d,current_iteration:f},t===ia.SENT?"responded":"dismissed")]:!0})}var m=W({},c.properties.$set,c.$set);if(w(m)||this.setPersonPropertiesForFlags(m),!F(this.config.before_send)){var h=this.As(c);if(!h)return;c=h}this._s.emit("eventCaptured",c);var _={method:"POST",url:null!==(o=null==n?void 0:n._url)&&void 0!==o?o:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this.Es(_):this.xs.enqueue(_),c}G.critical("This capture call is ignored due to client rate limiting.")}}else G.error("No event name provided to posthog.capture")}else G.uninitializedWarning("posthog.capture")}Ge(t){return this.on("eventCaptured",(e=>t(e.event,e)))}calculateEventProperties(t,e,n,o,r){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return e;var i=r?void 0:this.persistence.remove_event_timer(t),a=W({},e);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,this.config.__preview_experimental_cookieless_mode&&(a.$cookieless_mode=!0),"$snapshot"===t){var s=W({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=s.distinct_id,(!x(a.distinct_id)&&!k(a.distinct_id)||D(a.distinct_id))&&G.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var c,u=ji(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:p,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(r,n.getTime());a.$session_id=p,a.$window_id=d}this.sessionPropsManager&&q(a,this.sessionPropsManager.getSessionProps());try{var f;this.sessionRecording&&q(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=null==(f=this.Is)?void 0:f.length}catch(t){a.$sdk_debug_error_capturing_properties=String(t)}if(this.requestRouter.region===Aa.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),c="$pageview"!==t||r?"$pageleave"!==t||r?this.pageViewM
vendor: 12,780 bytes, line 1
1anager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,o),a=q(a,c),"$pageview"===t&&l&&(a.title=l.title),!L(i)){var h=n.getTime()-i;a.$duration=parseFloat((h/1e3).toFixed(3))}m&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=q({},u,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),R(this.config.property_denylist)?K(this.config.property_denylist,(function(t){delete a[t]})):G.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var _=this.config.sanitize_properties;_&&(G.error("sanitize_properties is deprecated. Use before_send instead"),a=_(a,t));var E=this.Ds();return a.$process_person_profile=E,E&&!r&&this.Ls("_calculate_event_properties"),a}Os(t){var e;if(!this.persistence||!this.Ds())return t;if(this.gs)return t;var n=this.persistence.get_initial_props(),o=null==(e=this.sessionPropsManager)?void 0:e.getSetOnceProps(),r=q({},n,o||{},t||{}),i=this.config.sanitize_properties;return i&&(G.error("sanitize_properties is deprecated. Use before_send instead"),r=i(r,"$set_once")),this.gs=!0,w(r)?void 0:r}register(t,e){var n;null==(n=this.persistence)||n.register(t,e)}register_once(t,e,n){var o;null==(o=this.persistence)||o.register_once(t,e,n)}register_for_session(t){var e;null==(e=this.sessionPersistence)||e.register(t)}unregister(t){var e;null==(e=this.persistence)||e.unregister(t)}unregister_for_session(t){var e;null==(e=this.sessionPersistence)||e.unregister(t)}js(t,e){this.register({[t]:e})}getFeatureFlag(t,e){return this.featureFlags.getFeatureFlag(t,e)}getFeatureFlagPayload(t){var e=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(e)}catch(t){return e}}isFeatureEnabled(t,e){return this.featureFlags.isFeatureEnabled(t,e)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,e){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,e)}getEarlyAccessFeatures(t,e,n){return void 0===e&&(e=!1),this.featureFlags.getEarlyAccessFeatures(t,e,n)}on(t,e){return this._s.on(t,e)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSurveysLoaded(t){return this.surveys.onSurveysLoaded(t)}onSessionId(t){var e,n;return null!==(e=null==(n=this.sessionManager)?void 0:n.onSessionId(t))&&void 0!==e?e:()=>{}}getSurveys(t,e){void 0===e&&(e=!1),this.surveys.getSurveys(t,e)}getActiveMatchingSurveys(t,e){void 0===e&&(e=!1),this.surveys.getActiveMatchingSurveys(t,e)}renderSurvey(t,e){this.surveys.renderSurvey(t,e)}canRenderSurvey(t){return this.surveys.canRenderSurvey(t)}canRenderSurveyAsync(t,e){return void 0===e&&(e=!1),this.surveys.canRenderSurveyAsync(t,e)}identify(t,e,n){if(!this.__loaded||!this.persistence)return G.uninitializedWarning("posthog.identify");if(k(t)&&(t=t.toString(),G.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t)if(["distinct_id","distinctid"].includes(t.toLowerCase()))G.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(t!==$t){if(this.Ls("posthog.identify")){var o=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var r=o;this.register_once({$had_persisted_distinct_id:!0,$device_id:r},"")}t!==o&&t!==this.get_property(st)&&(this.unregister(st),this.register({distinct_id:t}));var i="anonymous"===(this.persistence.get_property(Ft)||"anonymous");t!==o&&i?(this.persistence.set_property(Ft,"identified"),this.setPersonPropertiesForFlags(W({},n||{},e||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:o},{$set:e||{},$set_once:n||{}}),this.Ss=Or(t,e,n),this.featureFlags.setAnonymousDistinctId(o)):(e||n)&&this.setPersonProperties(e,n),t!==o&&(this.reloadFeatureFlags(),this.unregister(Nt))}}else G.critical('The string "'+$t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else G.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,e){if((t||e)&&this.Ls("posthog.setPersonProperties")){var n=Or(this.get_distinct_id(),t,e);this.Ss!==n?(this.setPersonPropertiesForFlags(W({},e||{},t||{})),this.capture("$set",{$set:t||{},$set_once:e||{}}),this.Ss=n):G.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,e,n){if(t&&e){if(this.Ls("posthog.group")){var o=this.getGroups();o[t]!==e&&this.resetGroupPropertiesForFlags(t),this.register({$groups:W({},o,{[t]:e})}),n&&(this.capture("$groupidentify",{$group_type:t,$group_key:e,$group_set:n}),this.setGroupPropertiesForFlags({[t]:n})),o[t]===e||n||this.reloadFeatureFlags()}}else G.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,e){void 0===e&&(e=!0),this.featureFlags.setPersonPropertiesForFlags(t,e)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,e){void 0===e&&(e=!0),this.Ls("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,e)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var e,n,o,r;if(G.info("reset"),!this.__loaded)return G.uninitializedWarning("posthog.reset");var i=this.get_property("$device_id");if(this.consent.reset(),null==(e=this.persistence)||e.clear(),null==(n=this.sessionPersistence)||n.clear(),this.surveys.reset(),null==(o=this.persistence)||o.set_property(Ft,"anonymous"),null==(r=this.sessionManager)||r.resetSessionId(),this.Ss=null,this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:$t,$device_id:null},"");else{var a=this.config.get_device_id(Fe());this.register_once({distinct_id:a,$device_id:t?a:i},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,e;return null!==(t=null==(e=this.sessionManager)?void 0:e.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==t?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:e,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),o=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+e);if(null!=t&&t.withTimestamp&&n){var r,i=null!==(r=t.timestampLookBack)&&void 0!==r?r:10;if(!n)return o;o+="?t="+Math.max(Math.floor(((new Date).getTime()-n)/1e3)-i,0)}return o}alias(t,e){return t===this.get_property(at)?(G.critical("Attempting to create alias for existing People user - aborting."),-2):this.Ls("posthog.alias")?(L(e)&&(e=this.get_distinct_id()),t!==e?(this.js(st,t),this.capture("$create_alias",{alias:t,distinct_id:e})):(G.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var e,n,o,r,i,a=W({},this.config);U(t)&&(q(this.config,ja(t)),null==(e=this.persistence)||e.update_config(this.config,a),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Ji(W({},this.config,{persistence:"sessionStorage"})),He.O()&&"true"===He.D("ph_debug")&&(this.config.debug=!0),this.config.debug&&(_.DEBUG=!0,G.info("set_config",{config:t,oldConfig:a,newConfig:W({},this.config)})),null==(n=this.sessionRecording)||n.startIfEnabledOrStop(),null==(o=this.autocapture)||o.startIfEnabled(),null==(r=this.heatmaps)||r.startIfEnabled(),this.surveys.loadIfEnabled(),this.Ps(),null==(i=this.externalIntegrations)||i.startIfEnabledOrStop())}startSessionRecording(t){var e,n,o,r,i,a=!0===t,s={sampling:a||!(null==t||!t.sampling),linked_flag:a||!(null==t||!t.linked_flag),url_trigger:a||!(null==t||!t.url_trigger),event_trigger:a||!(null==t||!t.event_trigger)};Object.values(s).some(Boolean)&&(null==(e=this.sessionManager)||e.checkAndGetSessionAndWindowId(),s.sampling&&(null==(n=this.sessionRecording)||n.overrideSampling()),s.linked_flag&&(null==(o=this.sessionRecording)||o.overrideLinkedFlag()),s.url_trigger&&(null==(r=this.sessionRecording)||r.overrideTrigger("url")),s.event_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("event")));this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!(null==(t=this.sessionRecording)||!t.started)}captureException(t,e){var n=new Error("PostHog syntheticException");this.exceptions.sendExceptionEvent(W({},Ln((t=>t instanceof Error)(t)?{error:t,event:t.message}:{event:t},{syntheticException:n}),e))}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var e;return null==(e=this.persistence)?void 0:e.props[t]}getSessionProperty(t){var e;return null==(e=this.sessionPersistence)?void 0:e.props[t]}toString(){var t,e=null!==(t=this.config.name)&&void 0!==t?t:Fa;return e!==Fa&&(e=Fa+"."+e),e}_isIdentified(){var t,e;return"identified"===(null==(t=this.persistence)?void 0:t.get_property(Ft))||"identified"===(null==(e=this.sessionPersistence)?void 0:e.get_property(Ft))}Ds(){var t,e;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&w(this.getGroups())&&(null==(t=this.persistence)||null==(t=t.props)||!t[st])&&(null==(e=this.persistence)||null==(e=e.props)||!e[Ht]))}Fs(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.Ds()||this.Ls("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Ls(t){return"never"===this.config.person_profiles?(G.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.js(Ht,!0),!0)}Ps(){var t,e,n,o,r=this.consent.isOptedOut(),i=this.config.opt_out_persistence_by_default,a=this.config.disable_persistence||r&&!!i;(null==(t=this.persistence)?void 0:t.Fe)!==a&&(null==(n=this.persistence)||n.set_disabled(a)),(null==(e=this.sessionPersistence)?void 0:e.Fe)!==a&&(null==(o=this.sessionPersistence)||o.set_disabled(a))}opt_in_capturing(t){var e;this.consent.optInOut(!0),this.Ps(),(L(null==t?void 0:t.captureEventName)||null!=t&&t.captureEventName)&&this.capture(null!==(e=null==t?void 0:t.captureEventName)&&void 0!==e?e:"$opt_in",null==t?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Cs()}opt_out_capturing(){this.consent.optInOut(!1),this.Ps()}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}clear_opt_in_out_capturing(){this.consent.reset(),this.Ps()}_is_bot(){return c?Ia(c,this.config.custom_blocked_useragents):void 0}Cs(){l&&("visible"===l.visibilityState?this.bs||(this.bs=!0,this.capture("$pageview",{title:l.title},{send_instantly:!0}),this.ys&&(l.removeEventListener("visibilitychange",this.ys),this.ys=null)):this.ys||(this.ys=this.Cs.bind(this),it(l,"visibilitychange",this.ys)))}debug(t){!1===t?(null==o||o.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==o||o.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}I(){var t,e,n,o,r,i,a=this.$s||{};return"advanced_disable_flags"in a?!!a.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(G.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",!1,o=G,r=(e="advanced_disable_flags")in(t=a)&&!L(t[e]),i=n in t&&!L(t[n]),r?t[e]:!!i&&(o&&o.warn("Config field '"+n+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),t[n]))}As(t){if(F(this.config.before_send))return t;var e=R(this.config.before_send)?this.config.before_send:[this.config.before_send],n=t;for(var o of e){if(n=o(n),F(n)){var r="Event '"+t.event+"' was rejected in beforeSend function";return j(t.event)?G.warn(r+". This can cause unexpected behavior."):G.info(r),null}n.properties&&!w(n.properties)||G.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var t;
1return null==(t=this.pageViewManager.ce)?void 0:t.pageViewId}captureTraceFeedback(t,e){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:e})}captureTraceMetric(t,e,n){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:e,$ai_metric_value:String(n)})}}!function(t,e){for(var n=0;n<e.length;n++)t.prototype[e[n]]=tt(t.prototype[e[n]])}(Ga,["identify"]);var Ha,za=(Ha=Da[Fa]=new Ga,function(){function t(){t.done||(t.done=!0,ka=!1,K(Da,(function(t){t._dom_loaded()})))}null!=l&&l.addEventListener?"complete"===l.readyState?t():it(l,"DOMContentLoaded",t,{capture:!1}):o&&G.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),Ha),$a=n(4155);var Wa=new class{constructor(){this.isInitialized=!1,this.isEnabled=!1}init(){const t=$a.env.REACT_APP_POSTHOG_API_KEY,e=window.location.host.includes("127.0.0.1")||window.location.host.includes("localhost"),n="true"===$a.env.REACT_APP_POSTHOG_FORCE_ENABLE;if(t)if(!e||n)try{za.init(t,{api_host:"https://analytics-proxy-api.codedesign.ai/ph",cross_subdomain_cookie:!0,respect_dnt:!0}),this.isInitialized=!0,this.isEnabled=!0,console.log("PostHog initialized successfully")}catch(o){console.error("Failed to initialize PostHog:",o)}else console.log("PostHog disabled in development environment");else console.warn("PostHog API key not found. PostHog analytics disabled.")}track(t,e={}){if(this.isEnabled&&this.isInitialized)try{const n=`${t}`;za.capture(n,{...e,source:"codedesign-frontend",timestamp:(new Date).toISOString()})}catch(n){console.error("PostHog track error:",n)}}identify(t,e={}){if(this.isEnabled&&this.isInitialized)try{za.identify(t,{...e,source:"codedesign-frontend"})}catch(n){console.error("PostHog identify error:",n)}}page(t={}){if(this.isEnabled&&this.isInitialized)try{za.capture("$pageview",{...t,source:"codedesign-frontend"})}catch(e){console.error("PostHog page error:",e)}}getUser(){if(!this.isEnabled||!this.isInitialized)return null;try{return{userId:za.get_distinct_id(),properties:za.get_property("$set")||{}}}catch(t){return console.error("PostHog getUser error:",t),null}}reset(){if(this.isEnabled&&this.isInitialized)try{za.reset()}catch(t){console.error("PostHog reset error:",t)}}setEnabled(t){this.isEnabled=t,this.isInitialized&&(t?za.opt_in_capturing():za.opt_out_capturing())}isAvailable(){return this.isEnabled&&this.isInitialized}}},5689:function(t,e,n){"use strict";function o(t){let e=[];const n=Object.keys(t);return n.forEach((n=>e.push(t[n]))),Promise.all(e).then((e=>e.reduce(((t,e,o)=>(t[n[o]]=e,t)),t)))}n.r(e),n.d(e,{promisedProperties:function(){return o}})},5809:function(t,e,n){"use strict";n.r(e);e.default=(t,e,n,o)=>{const r=(t+(o||"")).toString().includes("%");if("string"===typeof t?[t,e,n,o]=t.match(/(0?\.?\d{1,3})%?\b/g).map(Number):void 0!==o&&(o=parseFloat(o)),"number"!==typeof t||"number"!==typeof e||"number"!==typeof n||t>255||e>255||n>255)throw new TypeError("Expected three numbers below 256");if("number"===typeof o){if(!r&&o>=0&&o<=1)o=Math.round(255*o);else{if(!(r&&o>=0&&o<=100))throw new TypeError(`Expected alpha value (${o}) as a fraction or percentage`);o=Math.round(255*o/100)}o=(256|o).toString(16).slice(1)}else o="";return(n|e<<8|t<<16|1<<24).toString(16).slice(1)+o}},9972:function(t,e,n){"use strict";n.r(e),n.d(e,{getToken:function(){return o},getGuestToken:function(){return r},getUsername:function(){return i},getUserId:function(){return a},getItem:function(){return s},setItem:function(){return c},removeItem:function(){return l}});const o=()=>{if("undefined"!==typeof localStorage)return localStorage.getItem("token")&&localStorage.getItem("token")},r=()=>{if("undefined"!==typeof localStorage)return localStorage.getItem("guestToken")&&localStorage.getItem("guestToken")},i=()=>
1{if("undefined"!==typeof localStorage)return localStorage.getItem("username")&&localStorage.getItem("username")},a=()=>{if("undefined"!==typeof localStorage)return localStorage.getItem("uRI")&&localStorage.getItem("uRI")},s=t=>{if("undefined"!==typeof localStorage)return localStorage.getItem(t)&&localStorage.getItem(t)},c=(t,e)=>{if("undefined"!==typeof localStorage)return localStorage.setItem(t,e)},l=t=>{if("undefined"!==typeof localStorage)return localStorage.removeItem(t)}},5169:function(t,e,n){"use strict";n.r(e),n.d(e,{handle3DSecure:function(){return a}});var o=n(2859),r=n(5017);const{stripePublishableKey:i}=r.default;async function a(t){const{clientSecret:e,connectedAccountId:n,paymentMethodId:r}=t;try{const t=(0,o.J)(i,{stripeAccount:n}),a=await t;console.log(e,n,"testingkito");const{error:s,paymentIntent:c}=await a.confirmCardPayment(e,{payment_method:r},{stripeAccount:n});return s?(console.error("Error during 3D Secure authentication:",s),"order_failed_3d_secure"):"succeeded"===c.status?"order_success":"order_failed_3d_secure"}catch(a){return console.error(a,"Something went wrong with the payment"),"order_failed_3d_secure"}}},4266:function(){},4527:function(t,e,n){"use strict";n.r(e);var o=n(5017),r=n(9972);const i=`${o.default.apiUrl}guest/user-journey/update-event`;e.default=async(t,e)=>{"production"?.startsWith("dev")||window.requestIdleCallback((async()=>{try{const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({eventName:t,value:e})};await fetch(i,n)}catch(n){console.error("Error tracking event:",n)}}))}},9805:function(t,e,n){"use strict";function o(t,e){let n,o=!1;try{n=new URL(t)}catch(i){if(o=!0,"string"===typeof t){const e=window.location.origin;n=new URL(`${e}/${t.replace(/^\/|\/$/g,"")}`)}else n=new URL(window.location.href)}const r="string"===typeof t?e:t;if(r?.queryParams)for(const a in r.queryParams)if(Object.prototype.hasOwnProperty.call(r.queryParams,a)){const t=r.queryParams[a];t?n.searchParams.set(a,t):n.searchParams.delete(a)}return r?.path&&(n.pathname=r.path),null===r?.path&&(n.pathname=""),r?.hash&&(n.hash=r.hash),o&&!r?.returnAbsoluteUrl?n.pathname+n.search+n.hash:n.toString()}n.r(e),n.d(e,{default:function(){return o}})},7192:function(t,e,n){"use strict";n.r(e);var o=n(7423);e.default=(t,e,n)=>{(0,o.useEffect)((()=>{const e=setTimeout((()=>t()),n);return()=>clearTimeout(e)}),[...e||[],n])}},8051:function(t,e,n){"use strict";n.r(e);var o=n(7423);e.default=function(t,e,n=window){const r=(0,o.useRef)();(0,o.useEffect)((()=>{r.current=e}),[e]),(0,o.useEffect)((()=>{if(!(n&&n.addEventListener))return;const e=t=>r.current(t);return n.addEventListener(t,e),()=>{n.removeEventListener(t,e)}}),[t,n])}},2614:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var o=n(7423);function r(t){const e=(0,o.useRef)();return(0,o.useEffect)((()=>{e.current=t}),[t]),e.current}},7501:function(t,e,n){"use strict";function o(t){return/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)}n.r(e),n.d(e,{isValidBase64:function(){return o}})},2471:function(t,e,n){"use strict";n.r(e),n.d(e,{databaseActions:function(){return u}});var o=n(2619),r=n(4055),i=n(7911),a=n(2307),s=n.n(a),c=n(3902),l=n(9262);const u={createDatabase:function(t){return(e,n)=>{n();e(m(c.databaseConstants.CREATE_DATABASE_REQUEST));const o={project:t};l.databaseService.createDatabase(o).then((t=>{window.showToast({type:"success",msg:"Database created successfully"}),e(h(c.databaseConstants.CREATE_DATABASE_SUCCESS,t))}),(t=>{window.showToast({type:"error",msg:"Error creating database. Please try again later"}),e((0,i.failure)(c.databaseConstants.CREATE_DATABASE_FAILURE,t))}))}},setCurrentActiveTable:p,initialDatabaseFetch:function(t,e){return(n,o)=>{const r=o();n(m(c.databaseConstants.DATABASE_MINIMAL_FETCH_REQUEST));const{_id:i}=r.customization.present.data,{databaseId:a}=r.database.data;(a||e)&&l.databaseService.initialDatabaseFetch({project:i||t,databaseId:a||e}).then((t=>{n(h(c.databaseConstants.DATABASE_MINIMAL_FETCH_SUCCESS,t));const e=t?.[0]?.id;e&&(n(d(e,{disableToast:!0})),n(p(e)))}))}},getTable:d,createTable:f,deleteTable:function(t){return(e,n)=>{const o=n(),a=o.database.currentActiveTable,s=o.database.data.tables.filter((e=>e.id!==t)),{_id:u}=o.customization.present.data;e(m(c.databaseConstants.DELETE_TABLE_REQUEST)),l.databaseService.deleteTable({tableId:t,project:u}).then((n=>
1{e(h(c.databaseConstants.DELETE_TABLE_SUCCESS,s)),e(r.uiActions.setDeleteTableAlert("")),window.showToast({type:"success",msg:"Table deleted successfully"}),s.length>0?a===t&&(e(d(s[0].id)),e(p(s[0].id))):e(p(""))}),(t=>{e((0,i.failure)(c.databaseConstants.DELETE_TABLE_FAILURE,t)),window.showToast({type:"error",msg:"Error deleting table. Please try again later"})}))}},duplicateTable:function(t){return(e,n)=>{const o=n().database.data.tables.find((e=>e.id===t))||{},{name:r,description:i,fields:a=[]}=o;e(f({name:r,description:i,fields:a},{type:"duplicate"}))}},updateTable:function(t){return(e,n)=>{e(h(c.databaseConstants.UPDATE_TABLE_REQUEST,o));const o=n().database.data.tables.map((e=>e.id===t.id?{...e,...t}:e));e(h(c.databaseConstants.UPDATE_TABLE_SUCCESS,o))}},deleteRow:function(t,e){return(n,o)=>{n(m(c.databaseConstants.DELETE_ROW_REQUEST));const a=o(),s=a.database.data.tables.find((e=>e.id===t)),{_id:u}=a.customization.present.data,p={project:u,tableId:t,rowId:e},d=s.results;l.databaseService.deleteRow(p).then((o=>{const i=d.filter((t=>t.id!==e)),l={...s,results:i,count:s.count-1},u=a.database.data.tables.map((e=>e.id===t?l:e));n(h(c.databaseConstants.DELETE_ROW_SUCCESS,u)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"success",msg:"Row deleted successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.DELETE_ROW_FAILURE,t)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"failure",msg:"Row deletion failed"})}))}},deleteRows:function(t,e){return(n,o)=>{n(m(c.databaseConstants.DELETE_ROW_REQUEST));const a=o(),s=a.database.data.tables.find((e=>e.id===t)),{_id:u}=a.customization.present.data,p={project:u,tableId:t,rowIds:e},d=s.results;l.databaseService.deleteRows(p).then((o=>{const i=d.filter((t=>!e.includes(t.id))),l={...s,results:i,count:s.count-1},u=a.database.data.tables.map((e=>e.id===t?l:e));n(h(c.databaseConstants.DELETE_ROW_SUCCESS,u)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"success",msg:"Row deleted successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.DELETE_ROW_FAILURE,t)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"failure",msg:"Row deletion failed"})}))}},createRow:function(t,e){return(n,o)=>{n(m(c.databaseConstants.CREATE_ROW_REQUEST));const r=o(),a=r.database.data.tables.find((t=>t.id===e)),s=a.results,{_id:u}=r.customization.present.data,p={rowData:t,project:u,tableId:e};l.databaseService.createRow(p).then((t=>{const o=[...s,t],i={...a,results:o,count:a.count+1},l=r.database.data.tables.map((t=>t.id===e?i:t));n(h(c.databaseConstants.CREATE_ROW_SUCCESS,l)),window.showToast({type:"success",msg:"Row created successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.CREATE_ROW_FAILURE,t)),window.showToast({type:"error",msg:"Error creating row. Please try again later"})}))}},updateRow:function(t,e){return(n,o)=>{n(m(c.databaseConstants.UPDATE_ROW_REQUEST));const r=o(),{_id:a}=r.customization.present.data,{id:s}=t,u={rowData:t,project:a,tableId:e,rowId:s},p=r.database.data.tables.find((t=>t.id===e)),d=p.results;l.databaseService.updateRow(u).then((o=>{const i=d.map((e=>e.id===t.id?{...e,...t}:e)),a={...p,results:i},s=r.database.data.tables.map((t=>t.id===e?a:t));n(h(c.databaseConstants.UPDATE_ROW_SUCCESS,s)),window.showToast({type:"success",msg:"Row updated successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.UPDATE_ROW_FAILURE,t)),window.showToast({type:"error",msg:"Error updating row. Please try again later"})}))}},updateFields:function(t,e){return(n,o)=>{n(m(c.databaseConstants.UPDATE_FIELDS_REQUEST));const r=o(),{_id:a}=r.customization.present.data,u=r.database.data.tables.find((e=>e.id===t)),p=u.fields;let f=[],_=[],E=[];f=e.filter((t=>!p.some((e=>e.id===t.id)))),_=p.filter((t=>!e.some((e=>e.id===t.id)))),E=e.filter((t=>p.some((e=>((t,e)=>t.id===e.id&&!s()(t,e))(t,e)))));const g={...u,fields:e},y=r.database.data.tables.map((e=>e.id===t?g:e)),S={project:a,tableId:t,fields:{addedFields:f,removedFields:_,updatedFields:E}};l.databaseService.updateFields(S).then((e=>{e?(e?.createNewFieldResponse?.length>0&&(g.fields=g.fields.map((t=>{const n=e.createNewFieldResponse.find((e=>e.oldId===t.id));return n||t}))),n(h(c.databaseConstants.UPDATE_FIELDS_SUCCESS,y)),n(d(t,{disableToast:!0})),window.showToast({type:"success",msg:"Fields updated successfully"})):(n((0,i.failure)(c.databaseConstants.UPDATE_FIELDS_FAILURE,"Some fields could not be updated")),window.showToast({type:"error",msg:"Some fields could not be updated"}))}),(t=>{n((0,i.failure)(c.databaseConstants.UPDATE_FIELDS_FAILURE,t)),window.showToast({type:"error",msg:"Error updating fields. Please try again later"})}))}},reset:function(){return t=>t({type:c.databaseConstants.RESET_DB_STATE})},createPublicRow:function(t,e,n,r,a,s){return(n,u)=>{n(m(c.databaseConstants.CREATE_ROW_REQUEST));const p=u();let d;if(s){const{getDocument:t=(()=>{})}=window.codeDesign?.helpers,e=t()?.getElementById(s);e&&(d=e.querySelector('button[type="submit"]'),d&&(d.disabled=!0))}const{_id:f}=p.customization.present.data,_={rowData:t,project:f,tableId:e,functionId:a};(0,o.showPromiseToast)(l.databaseService.createPublicRow(_).then((t=>{if(n(h(c.databaseConstants.CREATE_ROW_SUCCESS)),d&&(d.disabled=!1),r)try{const t=new URL(r);window.location.href=t}catch(e){try{const t=`${window.location.protocol}//${window.location.host}/`;r=r.replace(/^\/|\/$/g,"");const e=new URL(r,t);window.location.href=e}catch(e){console.error(e)}}}),(t=>(n((0,i.failure)(c.databaseConstants.CREATE_ROW_FAILURE,t)),d&&(d.disabled=!1),Promise.reject(t)))),{pending:"Form is being submitted...",success:"Form submission successful \ud83d\udc4c",error:"Form submission failed \ud83e\udd2f"})}}};function p(t){return e=>{e({type:c.databaseConstants.SET_CURRENT_ACTIVE_TABLE,payload:t})}}function d(t,e={}){return(n,o)=>{const{search:r}=e,a=o(),{_id:s}=a.customization.present.data,{databaseId:u,tables:p}=a.database.data;n(m(c.databaseConstants.GET_TABLE_REQUEST,t));const d=p.find((e=>e.id===t));l.databaseService.getTable({tableId:t,project:s,databaseId:u,options:{search:r}}).then((o=>{!e.disableToast&&window.showToast({type:"success",msg:`Table "${d.name}" loaded successfully`}),n(h(c.databaseConstants.GET_TABLE_SUCCESS,{tableId:t,data:o}))}),(t=>{!e.disableToast&&window.showToast({type:"error",msg:`Something went wrong while loading table ${d.name||""}`}),n((0,i.failure)(c.databaseConstants.GET_TABLE_FAILURE,t))}))}}function f(t,e={}){return(n,o)=>{const{name:r,description:a,fields:s=[]}=t,p=o(),{_id:d}=p.customization.present.data,{databaseId:f}=p.database.data;if(!f)return void window.showToast({type:"error",msg:"Failed to create table. Please try again later."});p.database.data.tables.length;n(m(c.databaseConstants.CREATE_TABLE_REQUEST)),l.databaseService.createTable({name:r,description:a,fields:s,databaseId:f,project:d}).then((o=>{window.showToast({type:"success",msg:`Table "${r}" ${"duplicate"===e.type?"duplicated":"created"} successfully`}),n(h(c.databaseConstants.CREATE_TABLE_SUCCESS,{...t,id:o.id})),n(u.setCurrentActiveTable(o.id))}),(t=>{window.showToast({type:"error",msg:`Something went wrong while ${"duplicate"===e.type?"duplicating":"creating"} the table`}),n((0,i.failure)(c.databaseConstants.CREATE_TABLE_FAILURE,t))}))}}function m(t,e){return{type:t,payload:e||null}}function h(t,e,n={}){return o=>{o({type:t,payload:e,options:n}),o({type:c.errorsConstants.REMOVE_ERROR})}}},8867:function(t,e,n){"use strict";n.r(e),n.d(e,{databaseActions:function(){return f}});var o=n(2619),r=n(4055),i=n(7911),a=n(2307),s=n.n(a),c=n(3902),l=n(9262),u=n(6160),p=n(1717),d=n(5169);const f={createDatabase:function(t){return(e,n)=>{n();e(E(c.databaseConstants.CREATE_DATABASE_REQUEST));const o={project:t};l.databaseService.createDatabase(o).then((t=>{window.showToast({type:"success",msg:"Database created successfully"}),e(g(c.databaseConstants.CREATE_DATABASE_SUCCESS,t)),e(r.uiActions.setShowCreateTableModal(!0))}),(t=>{window.showToast({type:"error",msg:"Error creating database. Please try again later"}),e((0,i.failure)(c.databaseConstants.CREATE_DATABASE_FAILURE,t))}))}},setCurrentActiveTable:m,initialDatabaseFetch:function(t,e){return(n,o)=>{const r=o();n(E(c.databaseConstants.DATABASE_MINIMAL_FETCH_REQUEST));const{_id:i,blueprint:a}=r.customization.present.data,{databaseId:s}=r.database.data;(s||e)&&l.databaseService.initialDatabaseFetch({project:i||t,databaseId:s||e}).then(((t={})=>{const{tables:e,models:o}=t;n(g(c.databaseConstants.DATABASE_MINIMAL_FETCH_SUCCESS,{tables:e,models:o})),e.forEach(((t,e)=>
1{t.id&&(n(h(t.id,{disableToast:!0})),0===e&&n(m(t.id)))}))}))}},getTable:h,createTable:_,deleteTable:function(t){return(e,n)=>{const o=n(),a=o.database.currentActiveTable,s=o.database.data.tables.filter((e=>e.id!==t)),{_id:u}=o.customization.present.data;e(E(c.databaseConstants.DELETE_TABLE_REQUEST)),l.databaseService.deleteTable({tableId:t,project:u}).then((n=>{e(g(c.databaseConstants.DELETE_TABLE_SUCCESS,s)),e(r.uiActions.setDeleteTableAlert("")),window.showToast({type:"success",msg:"Table deleted successfully"}),s.length>0?a===t&&(e(h(s[0].id)),e(m(s[0].id))):e(m(""))}),(t=>{e((0,i.failure)(c.databaseConstants.DELETE_TABLE_FAILURE,t)),window.showToast({type:"error",msg:"Error deleting table. Please try again later"})}))}},duplicateTable:function(t){return(e,n)=>{const o=n().database.data.tables.find((e=>e.id===t))||{},{name:r,description:i,fields:a=[]}=o;e(_({name:r,description:i,fields:a},{type:"duplicate"}))}},updateTable:function(t){return(e,n)=>{e(g(c.databaseConstants.UPDATE_TABLE_REQUEST,o));const o=n().database.data.tables.map((e=>e.id===t.id?{...e,...t}:e));e(g(c.databaseConstants.UPDATE_TABLE_SUCCESS,o))}},createTableFromSocket:function(t){return(e,n)=>{e(g(c.databaseConstants.UPDATE_TABLE_REQUEST));const o=[...n().database.data.tables,{...t}];e(g(c.databaseConstants.UPDATE_TABLE_SUCCESS,o))}}
1,updateFieldFromSocket:function(t){const{fields:e}=t;return(n,o)=>{n(g(c.databaseConstants.UPDATE_TABLE_REQUEST));const r=o().database.data.tables.map((n=>{if(n.id===t.id){return n.fields=[...e],{...n}}return n}));n(g(c.databaseConstants.UPDATE_TABLE_SUCCESS,r))}},updateRowFromSocket:function(t){return(e,n)=>{e(g(c.databaseConstants.UPDATE_TABLE_REQUEST));const o=n().database.data.tables.map((e=>{if(e.id===t.tableId){const n=e.fields.reduce(((t,e)=>(t[e.name]=e.id,t)),{}),o=e.results.map((e=>{if(e[`field_${n.OrderId}`]===t.OrderId){const o={...e};for(const[e,r]of Object.entries(t))if("tableId"!==e){const t=n[e];t&&(o[`field_${t}`]=r)}return o}return e}));return{...e,results:o}}return e}));e(g(c.databaseConstants.UPDATE_TABLE_SUCCESS,o))}},createRowFromSocket:function(t){return(e,n)=>{e(g(c.databaseConstants.UPDATE_TABLE_REQUEST));const o=n().database.data.tables.map((e=>{if(e.id===t.id){const n={};return e.fields.forEach((e=>{t.hasOwnProperty(e.name)&&(n[`field_${e.id}`]=t[e.name])})),{...e,results:[...e.results,{...n,id:t.id,order:t.order}]}}return e}));e(g(c.databaseConstants.UPDATE_TABLE_SUCCESS,o))}},deleteRow:function(t,e){return(n,o)=>{n(E(c.databaseConstants.DELETE_ROW_REQUEST));const a=o(),s=a.database.data.tables.find((e=>e.id===t)),{_id:u}=a.customization.present.data,p={project:u,tableId:t,rowId:e},d=s.results;l.databaseService.deleteRow(p).then((o=>{const i=d.filter((t=>t.id!==e)),l={...s,results:i,count:s.count-1},u=a.database.data.tables.map((e=>e.id===t?l:e));n(g(c.databaseConstants.DELETE_ROW_SUCCESS,u)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"success",msg:"Row deleted successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.DELETE_ROW_FAILURE,t)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"failure",msg:"Row deletion failed"})}))}},deleteRows:function(t,e){return(n,o)=>{n(E(c.databaseConstants.DELETE_ROW_REQUEST));const a=o(),s=a.database.data.tables.find((e=>e.id===t)),{_id:u}=a.customization.present.data,p={project:u,tableId:t,rowIds:e},d=s.results;l.databaseService.deleteRows(p).then((o=>{const i=d.filter((t=>!e.includes(t.id))),l={...s,results:i,count:s.count-1},u=a.database.data.tables.map((e=>e.id===t?l:e));n(g(c.databaseConstants.DELETE_ROW_SUCCESS,u)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"success",msg:"Row deleted successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.DELETE_ROW_FAILURE,t)),n(r.uiActions.setDeleteRowAlert("")),window.showToast({type:"failure",msg:"Row deletion failed"})}))}},createRow:function(t,e){return(n,o)=>{n(E(c.databaseConstants.CREATE_ROW_REQUEST));const r=o(),a=r.database.data.tables.find((t=>t.id===e)),s=a.results,{_id:u}=r.customization.present.data,p={rowData:t,project:u,tableId:e};l.databaseService.createRow(p).then((t=>{const o=[...s,t],i={...a,results:o,count:a.count+1},l=r.database.data.tables.map((t=>t.id===e?i:t));n(g(c.databaseConstants.CREATE_ROW_SUCCESS,l)),window.showToast({type:"success",msg:"Row created successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.CREATE_ROW_FAILURE,t)),window.showToast({type:"error",msg:"Error creating row. Please try again later"})}))}},updateRow:function(t,e){return(n,o)=>{n(E(c.databaseConstants.UPDATE_ROW_REQUEST));const r=o(),{_id:a}=r.customization.present.data,{id:s}=t,u={rowData:t,project:a,tableId:e,rowId:s},p=r.database.data.tables.find((t=>t.id===e)),d=p.results;l.databaseService.updateRow(u).then((o=>{const i=d.map((e=>e.id===t.id?{...e,...t}:e)),a={...p,results:i},s=r.database.data.tables.map((t=>t.id===e?a:t));n(g(c.databaseConstants.UPDATE_ROW_SUCCESS,s)),window.showToast({type:"success",msg:"Row updated successfully"})}),(t=>{n((0,i.failure)(c.databaseConstants.UPDATE_ROW_FAILURE,t)),window.showToast({type:"error",msg:"Error updating row. Please try again later"})}))}},updateFields:function(t,e){return(n,o)=>{n(E(c.databaseConstants.UPDATE_FIELDS_REQUEST));const r=o(),{_id:a}=r.customization.present.data,u=r.database.data.tables.find((e=>e.id===t)),p=u.fields;let d=[],f=[],m=[];d=e.filter((t=>!p.some((e=>e.id===t.id)))),f=p.filter((t=>!e.some((e=>e.id===t.id)))),m=e.filter((t=>p.some((e=>((t,e)=>t.id===e.id&&!s()(t,e))(t,e)))));const _={...u,fields:e},y=r.database.data.tables.map((e=>e.id===t?_:e)),S={project:a,tableId:t,fields:{addedFields:d,removedFields:f,updatedFields:m}};l.databaseService.updateFields(S).then((e=>{e?(e?.createNewFieldResponse?.length>0&&(_.fields=_.fields.map((t=>{const n=e.createNewFieldResponse.find((e=>e.oldId===t.id));return n||t}))),n(g(c.databaseConstants.UPDATE_FIELDS_SUCCESS,y)),n(h(t,{disableToast:!0})),window.showToast({type:"success",msg:"Fields updated successfully"})):(n((0,i.failure)(c.databaseConstants.UPDATE_FIELDS_FAILURE,"Some fields could not be updated")),window.showToast({type:"error",msg:"Some fields could not be updated"}))}),(t=>{n((0,i.failure)(c.databaseConstants.UPDATE_FIELDS_FAILURE,t)),window.showToast({type:"error",msg:"Error updating fields. Please try again later"})}))}},reset:function(){return t=>t({type:c.databaseConstants.RESET_DB_STATE})},createPublicRow:function(t,e,n,r,a,s){return(n,u)=>{n(E(c.databaseConstants.CREATE_ROW_REQUEST));const p=u();let d;if(s){const{getDocument:t=(()=>{})}=window.codeDesign?.helpers,e=t()?.getElementById(s);e&&(console.log("formElement",e),d=e.querySelector('button[type="submit"]'),d&&(d.disabled=!0))}const{_id:f}=p.customization.present.data,m={rowData:t,project:f,tableId:e,functionId:a};(0,o.showPromiseToast)(l.databaseService.createPublicRow(m).then((t=>{if(n(g(c.databaseConstants.CREATE_ROW_SUCCESS)),d&&(d.disabled=!1),r)try{const t=new URL(r);window.location.href=t}catch(e){try{const t=`${window.location.protocol}//${window.location.host}/`;r=r.replace(/^\/|\/$/g,"");const e=new URL(r,t);window.location.href=e}catch(e){console.error(e)}}}),(t=>(n((0,i.failure)(c.databaseConstants.CREATE_ROW_FAILURE,t)),d&&(d.disabled=!1),Promise.reject(t)))),{pending:"Form is being submitted...",success:"Form submission successful \ud83d\udc4c",error:"Form submission failed \ud83e\udd2f"})}},submitFormData:function({formData:t,formId:e,urlRedirect:n,order:a=!1,clickedButtonComponent:s,orderId:u,successCallback:f}){return(m,h)=>{m(E(c.databaseConstants.CREATE_ROW_REQUEST));const _=h();let y;if(e){const{getDocument:t=(()=>{})}=window.codeDesign?.helpers,n=t()?.getElementById(e);n&&(y=n.querySelector('button[type="submit"]'),y&&(y.disabled=!0))}const{_id:S}=_.customization.present.data,{context:T}=_.customization.present;if(s)if(a){const{paymentSuccessRedirectProps:t}=s?.props?.componentData||{},e=(0,p.getCompleteUrl)(t);e&&(n=e)}else{const{submitRedirectProps:t}=s?.props?.componentData||{},e=(0,p.getCompleteUrl)(t);e&&(n=e)}if(a){let s;s=(0,o.showToast)({type:"loader",msg:"Processing...",timer:!1}),l.databaseService.submitFormData({formData:t,formId:e,project:S,context:T,order:a,urlRedirect:n,orderId:u}).then((async(t={})=>
1{m(g(c.databaseConstants.CREATE_ROW_SUCCESS)),console.log(t,"testingjog");const e=t.identifier,{token:n,redirectUrl:i,connectedAccountId:a,paymentIntentClientSecret:l,paymentMethodId:u}=t;switch(e){case"order_session_checkout_initiated":m(r.uiActions.showPaymentPopup(n)),s&&o.toast.dismiss(s);break;case"order_offscreen_payment_succesful":s&&o.toast.dismiss(s),(0,o.showToast)({type:"success",msg:"Payment Success. "+(i?" Redirecting...":"")}),i&&setTimeout((()=>{window.location.href=i}),500);break;case"order_offscreen_payment_failed":(0,o.showToast)({type:"error",msg:"Payment Failed"});break;case"order_offscreen_payment_authentication_required":const t=await(0,d.handle3DSecure)({connectedAccountId:a,clientSecret:l,paymentMethodId:u});t&&s&&o.toast.dismiss(s),"order_success"===t?((0,o.showToast)({type:"success",msg:"Payment Success."+(i?" Redirecting...":"")}),i&&setTimeout((()=>{window.location.href=i}),500)):(0,o.showToast)({type:"error",msg:"Payment Failed"})}y&&(y.disabled=!1)}),(t=>(m((0,i.failure)(c.databaseConstants.CREATE_ROW_FAILURE,t)),y&&(y.disabled=!1),Promise.reject(t)))).catch((t=>{s&&o.toast.dismiss(s),(0,o.showToast)({type:"error",msg:"Something went wrong"})}))}else{let r;r=(0,o.showToast)({type:"loader",msg:"Submitting...",timer:!1}),l.databaseService.submitFormData({formData:t,formId:e,project:S,context:T,order:a,urlRedirect:n,orderId:u}).then((t=>{r&&o.toast.dismiss(r),m(g(c.databaseConstants.CREATE_ROW_SUCCESS)),y&&(y.disabled=!1),(0,o.showToast)({type:"success",msg:"Form submitted successfully."+(n?" Redirecting...":"")}),f&&f(),n&&setTimeout((()=>{window.location.href=n}),500)}),(t=>(r&&o.toast.dismiss(r),m((0,i.failure)(c.databaseConstants.CREATE_ROW_FAILURE,t)),y&&(y.disabled=!1),Promise.reject(t)))).catch((t=>{r&&o.toast.dismiss(r),(0,o.showToast)({type:"error",msg:"Something went wrong when submitting. Please try again or contact support."})}))}}},addProduct:function(t){return(e,n)=>{let o=n().customization.present.data._id;e(E(c.databaseConstants.ADD_PRODUCT_REQUEST)),l.databaseService.addProduct(t,{project:o}).then((t=>{window.showToast({type:"success",msg:"Product added successfully"}),e(g(c.databaseConstants.ADD_PRODUCT_SUCCESS,t))}),(t=>{window.showToast({type:"error",msg:"Error adding product. Please try again later"}),e((0,i.failure)(c.databaseConstants.ADD_PRODUCT_FAILURE,t))}))}},getPresetTable:function(t,e={}){const{PresetTables:n}=u.builderConstants;return Object.freeze(n),(o,r)=>{if(!Object.values(n).includes(t))throw new Error(`Invalid preset table: ${t}`);const a=t,{search:s}=e,u=r(),{_id:p}=u.customization.present.data,{databaseId:d,tables:f}=u.database.data;o(E(c.databaseConstants.GET_TABLE_REQUEST,a));const m=f.find((t=>t.id===a||t.name===a));l.databaseService.getTable({tableId:a,project:p,databaseId:d,options:{search:s}}).then((t=>{!e.disableToast&&window.showToast({type:"success",msg:`Table "${m.name}" loaded successfully`}),o(g(c.databaseConstants.GET_TABLE_SUCCESS,{tableId:m.id,data:t}))}),(t=>{!e.disableToast&&window.showToast({type:"error",msg:`Something went wrong while loading table ${m?.name||""}`}),o((0,i.failure)(c.databaseConstants.GET_TABLE_FAILURE,t))}))}},updateOverviewData:function(t){return e=>{e({type:c.databaseConstants.OVERVIEW_DATA,payload:t})}},updateTableDetails:function(t){return e=>{e({type:c.databaseConstants.TABLE_DETAILS,payload:t})}}};function m(t){return e=>{e({type:c.databaseConstants.SET_CURRENT_ACTIVE_TABLE,payload:t})}}function h(t,e={}){return(n,o)=>{const{search:r,page:a,size:s}=e,u=o(),{_id:p}=u.customization.present.data,{databaseId:d,tables:f}=u.database.data;n(E(c.databaseConstants.GET_TABLE_REQUEST,t));f.find((e=>e.id===t));l.databaseService.getTable({tableId:t,project:p,databaseId:d,options:{search:r,page:a,size:s}}).then((e=>{n(g(c.databaseConstants.GET_TABLE_SUCCESS,{tableId:t,data:e}))}),(t=>{n((0,i.failure)(c.databaseConstants.GET_TABLE_FAILURE,t))}))}}function _(t,e={}){return(n,o)=>{const{name:r,description:a,fields:s=[]}=t,u=o(),{_id:p}=u.customization.present.data,{databaseId:d}=u.database.data;if(!d)return void window.showToast({type:"error",msg:"Failed to create table. Please try again later."});u.database.data.tables.length;n(E(c.databaseConstants.CREATE_TABLE_REQUEST)),l.databaseService.createTable({name:r,description:a,fields:s,databaseId:d,project:p}).then((o=>{window.showToast({type:"success",msg:`Table "${r}" ${"duplicate"===e.type?"duplicated":"created"} successfully`}),n(g(c.databaseConstants.CREATE_TABLE_SUCCESS,{...t,id:o.id})),n(f.setCurrentActiveTable(o.id))}),(t=>{window.showToast({type:"error",msg:`Something went wrong while ${"duplicate"===e.type?"duplicating":"creating"} the table`}),n((0,i.failure)(c.databaseConstants.CREATE_TABLE_FAILURE,t))}))}}function E(t,e){return{type:t,payload:e||null}}function g(t,e,n={}){return o=>{o({type:t,payload:e,options:n}),o({type:c.errorsConstants.REMOVE_ERROR})}}},6961:function(t,e,n){"use strict";n.r(e),n.d(e,{siteProfileActions:function(){return a.siteProfileActions},orderActions:function(){return s.orderActions},userListActions:function(){return c.userListActions},databaseActions:function(){return l.databaseActions},workspaceActions:function(){return u.workspaceActions}});var o=n(1660),r={};for(var i in o)"default"!==i&&(r[i]=function(t){return o[t]}.bind(0,i));n.d(e,r);var a=n(6120),s=n(8435),c=n(7379),l=n(8867),u=n(3844)},1660:function(){},8435:function(t,e,n){"use strict";n.r(e),n.d(e,{orderActions:function(){return s}});var o=n(7100),r=n(7878),i=n(3902),a=n(3655);const s={createOrder:function(t,e){return(n,r)=>{const s=r();n({type:o.userConstants.REQUEST_CREATE_ORDER}),a.orderService.createOrder(t,s,e).then((t=>{n(function(t){return e=>{e({type:o.userConstants.SUCCESS_CREATE_ORDER,payload:t}),e({type:i.errorsConstants.REMOVE_ERROR})}}(t))}),(t=>{n(function(t){return e=>{e({type:i.errorsConstants.ADD_ERROR,payload:{type:"CREATE_ORDER_FAILURE",error:t}}),e({type:o.userConstants.FAILURE_CREATE_ORDER,payload:t})}}(t.toString()))}
1))}},verifyOrder:function(t){return(e,n)=>{const r=n();e({type:o.userConstants.REQUEST_VERIFY_ORDER}),a.orderService.verifyOrder(t,r).then((t=>{e(function(t){return e=>{e({type:o.userConstants.SUCCESS_VERIFY_ORDER,payload:t}),e({type:i.errorsConstants.REMOVE_ERROR})}}(t))}),(t=>{e(function(t){return e=>{e({type:i.errorsConstants.ADD_ERROR,payload:{type:"VERIFY_ORDER_FAILURE",error:t}}),e({type:o.userConstants.FAILURE_VERIFY_ORDER,payload:t})}}(t.toString()))}))}},createOrderLink:function(t,e,n){return(o,s)=>{const c=s();let l=n||c.customization.present.data._id;const u=c.user.data._id;o({type:r.uiConstants.REQUEST_CREATE_ORDER_LINK}),a.orderService.createOrderLink(t,e,l,u).then((t=>{t.url&&(window.location.href=t.url,o(function(t){return e=>{e({type:r.uiConstants.SUCCESS_CREATE_ORDER_LINK,payload:t}),e({type:i.errorsConstants.REMOVE_ERROR})}}()))}),(t=>{o(function(t){return e=>{e({type:i.errorsConstants.ADD_ERROR,payload:{type:"CREATE_ORDER_FAILURE",error:t}}),e({type:r.uiConstants.FAILURE_CREATE_ORDER_LINK,payload:t})}}(t.toString()))}))}}}},6120:function(t,e,n){"use strict";n.r(e),n.d(e,{siteProfileActions:function(){return a}});var o=n(3655),r=n(3902),i=n(7911);const a={getSiteProfileDetails:function(){return t=>{t(s(r.siteProfileConstants.REQUEST_FETCH)),o.siteProfileService.getSiteProfileDetails().then((e=>{t(c(r.siteProfileConstants.SUCCESS_FETCH,e))}),(e=>{t((0,i.failure)(r.siteProfileConstants.FAILURE_FETCH,e.toString()))}))}},setSiteProfileDetails:function(t){return e=>{e(s(r.siteProfileConstants.REQUEST_UPDATE,t)),o.siteProfileService.setSiteProfileDetails(t).then((t=>{e(c(r.siteProfileConstants.SUCCESS_UPDATE,t))}),(t=>{e((0,i.failure)(r.siteProfileConstants.FAILURE_UPDATE,t.toString()))}))}},saveContent:function(t,e){return n=>{n(s(r.siteProfileConstants.REQUEST_CUSTOMIZE_CONTENT));const o={id:t,html:e};setTimeout((()=>{n(c(r.siteProfileConstants.SUCCESS_CUSTOMIZE_CONTENT,o))}),1e3)}},getContent:function(){return null},changeView:function(t){return e=>{e({type:r.siteProfileConstants.CHANGE_VIEW,payload:t})}},changeContext:function(t){return e=>{e({type:r.siteProfileConstants.CHANGE_CONTEXT,payload:t})}},savezIndex:function(t,e){return n=>{n({type:r.siteProfileConstants.CHANGE_ZINDEX,payload:{[e]:t}})}},getPageListDetails:function(){return t=>{t(s(r.siteProfileConstants.REQUEST_FETCH_PAGE_LIST)),o.siteProfileService.getPageListDetails().then((e=>{t(c(r.siteProfileConstants.SUCCESS_FETCH_PAGE_LIST,e))}),(e=>{t((0,i.failure)(r.siteProfileConstants.FAILURE_FETCH_PAGE_LIST,e.toString()))}))}},getCategoryListDetails:function(){return t=>{t(s(r.siteProfileConstants.REQUEST_FETCH_CATEGORY_LIST)),o.siteProfileService.getCategoryListDetails().then((e=>{t(c(r.siteProfileConstants.SUCCESS_FETCH_CATEGORY_LIST,e))}),(e=>{t((0,i.failure)(r.siteProfileConstants.FAILURE_FETCH_CATEGORY_LIST,e.toString()))}))}},storeImageComponentId:function(t,e){let n={compId:t,url:e};return{type:r.siteProfileConstants.STORE_IMAGE_COMP_ID_AND_URL,payload:n}},blueprintAndLayout:function(){return t=>{t({type:r.siteProfileConstants.BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE})}},updateComponentProps:function(t){const{client_id:e,props:n,context:o,zIndex:i}=t;return(t,a)=>{const s=a();let c={...s.admin.siteProfile.data.blueprint[o][e],props:{...s.admin.siteProfile.data.blueprint[o][e].props,...n},zIndex:i};t({type:r.siteProfileConstants.UPDATE_COMPONENT_PROPS,payload:c})}},storeCroppedImg:function(t){const e=t;return t=>{t(s(r.siteProfileConstants.REQUEST_SAVE_CROPPED_IMAGE)),setTimeout((()=>{t(c(r.siteProfileConstants.SUCCESS_SAVE_CROPPED_IMAGE,e))}),100)}},uploadCroppedImage:function(t,e){let n={alt:"storyLens-Builder",author:"storyLens",name:e,createdAt:t.created_at,height:t.height,width:t.width,src:t.secure_url,tags:[],type:"image",main:"UI/Image/index.jsx"};return t=>{t(s(r.siteProfileConstants.REQUEST_SAVE_CROPPED_IMAGE)),o.siteProfileService.uploadCroppedImage(n).then((()=>{t(c(r.siteProfileConstants.SUCCESS_SAVE_CROPPED_IMAGE,n))}),(e=>{t((0,i.failure)(r.siteProfileConstants.FAILURE_SAVE_CROPPED_IMAGE,e.toString()))}))}},cacheClear:function(){return t=>{t(s(r.siteProfileConstants.REQUEST_CLEAR_CACHE)),o.siteProfileService.cacheClear().then((e=>{t(c(r.siteProfileConstants.SUCCESS_CLEAR_CACHE,e))}),(e=>{t((0,i.failure)(r.siteProfileConstants.FAILURE_CLEAR_CACHE,e.toString()))}
1))}},addPlugins:function(t){return e=>{e(s(r.siteProfileConstants.REQUEST_ADD_PLUGINS)),o.siteProfileService.addPlugins(t).then((t=>{e(c(r.siteProfileConstants.SUCCESS_ADD_PLUGINS,t))}),(t=>{e((0,i.failure)(r.siteProfileConstants.FAILURE_ADD_PLUGINS,t.toString()))}))}},updatePlugins:function(t){return e=>{e(s(r.siteProfileConstants.REQUEST_UPDATE_PLUGINS)),o.siteProfileService.updatePlugins(t).then((t=>{e(c(r.siteProfileConstants.SUCCESS_UPDATE_PLUGINS,t))}),(t=>{e((0,i.failure)(r.siteProfileConstants.FAILURE_UPDATE_PLUGINS,t.toString()))}))}},removePlugins:function(t){return e=>{e(s(r.siteProfileConstants.REQUEST_REMOVE_PLUGINS)),o.siteProfileService.removePlugins(t).then((t=>{e(c(r.siteProfileConstants.SUCCESS_REMOVE_PLUGINS,t))}),(t=>{e((0,i.failure)(r.siteProfileConstants.FAILURE_REMOVE_PLUGINS,t.toString()))}))}}};function s(t,e){return{type:t,payload:e||null}}function c(t,e){return n=>{n({type:t,payload:e}),n({type:r.errorsConstants.REMOVE_ERROR})}}},7379:function(t,e,n){"use strict";n.r(e),n.d(e,{userListActions:function(){return a}});var o=n(3902),r=n(7100),i=n(3655);const a={fetchUserList:function(t){return e=>{e({type:o.userListConstants.REQUEST_USER_LIST}),i.userListService.fetchUserList(t).then((t=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_USER_LIST,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})}))}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"USERLIST_FETCH_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_USER_LIST,payload:t})}}(t.toString()))}))}},clearSearchResults:function(){return{type:o.userListConstants.CLEAR_SEARCH_RESULTS}},searchUser:function(t,e){return n=>{n({type:o.userListConstants.SET_SEARCH_TEXT,payload:t}),n({type:o.userListConstants.SEARCH_REQUEST}),i.userListService.searchUser(t,e).then((t=>{n(function(t){return e=>{e({type:o.userListConstants.SEARCH_SUCCESS,payload:t}),e({type:r.errorsConstants.REMOVE_ERROR})}}(t))}),(t=>{n(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"FAILURE_USERLIST_SEARCH",error:t}}),e({type:o.userListConstants.SEARCH_FAILURE,payload:t})}}(t.toString()))}))}},deleteUser:function(t){return e=>{e({type:o.userListConstants.REQUEST_DELETE_USER}),i.userListService.deleteUser(t).then((()=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_DELETE_USER,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})}))}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"USER_DELETE_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_DELETE_USER,payload:t})}}(t.toString()))}))}},restoreUser:function(t){return e=>{e({type:o.userListConstants.REQUEST_RESTORE_USER}),i.userListService.restoreUser(t).then((()=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_RESTORE_USER,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})}))}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"USER_RESTORE_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_RESTORE_USER,payload:t})}}(t.toString()))}))}},blockUser:function(t){return e=>{e({type:o.userListConstants.REQUEST_BLOCK_USER}),window.showToast({type:"info",msg:"Blocking user..."}),i.userListService.blockUser(t).then((()=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_BLOCK_USER,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})})),window.showToast({type:"success",msg:"User blocked successfully"})}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"USER_BLOCK_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_BLOCK_USER,payload:t})}}(t.toString())),window.showToast({type:"error",msg:"Failed to block user"})}))}},editStory:function(t,e){let n={showOnMainPage:e};return e=>{e({type:o.userListConstants.REQUEST_EDIT_STORY_ITEM}),i.userListService.editStory(t,n).then((t=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_EDIT_STORY_ITEM,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})}))}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"STORY_EDIT_STORY_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_EDIT_STORY_ITEM,payload:t})}}(t))}))}},updateUser:function(t,e,n){return s=>{if(s({type:o.userListConstants.REQUEST_UPDATE_USER}),"register"===n){let t=e.language&&e.language.map((t=>t.id));e=Object.assign({},e,{language:t}),i.userListService.userRegister(e).then((t=>{s(a(t)),s({type:o.userListConstants.REFRESH_REQUESTED})}))}else i.userListService.updateUser(t,e).then((t=>{s(a(t))}),(t=>{s(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"UPDATE_USER_FETCH_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_UPDATE_USER,payload:t})}}(t.toString()))}
1))};function a(t){return e=>{e({type:o.userListConstants.SUCCESS_UPDATE_USER,payload:t}),e({type:r.errorsConstants.REMOVE_ERROR})}}},fetchProjectList:function(t){return e=>{e({type:o.userListConstants.REQUEST_PROJECT_LIST}),i.userListService.fetchProjectList(t).then((t=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_PROJECT_LIST,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})}))}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"USERLIST_FETCH_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_PROJECT_LIST,payload:t})}}(t.toString()))}))}},fetchDomainList:function(t){return e=>{e({type:o.userListConstants.REQUEST_DOMAIN_LIST}),i.userListService.fetchDomainList(t).then((t=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_DOMAIN_LIST,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})}))}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"USERLIST_FETCH_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_DOMAIN_LIST,payload:t})}}(t.toString()))}))}},fetchSubdomainList:function(t){return e=>{e({type:o.userListConstants.REQUEST_SUBDOMAIN_LIST}),i.userListService.fetchSubdomainList(t).then((t=>{var n;e((n=t,t=>{t({type:o.userListConstants.SUCCESS_SUBDOMAIN_LIST,payload:n}),t({type:r.errorsConstants.REMOVE_ERROR})}))}),(t=>{e(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"USERLIST_FETCH_FAILURE",error:t}}),e({type:o.userListConstants.FAILURE_SUBDOMAIN_LIST,payload:t})}}(t.toString()))}))}},searchProject:function(t,e){let n=new URL(document.location.href).searchParams.get("apiType");return a=>{a({type:o.userListConstants.SET_SEARCH_TEXT,payload:t}),a({type:o.userListConstants.SEARCH_REQUEST}),i.userListService.searchProject(t,{...e,apiType:n}).then((t=>{a(function(t){return e=>{e({type:o.userListConstants.SEARCH_SUCCESS,payload:t}),e({type:r.errorsConstants.REMOVE_ERROR})}}(t))}),(t=>{a(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"FAILURE_USERLIST_SEARCH",error:t}}),e({type:o.userListConstants.SEARCH_FAILURE,payload:t})}}(t.toString()))}))}},searchSubdomain:function(t,e){let n=new URL(document.location.href).searchParams.get("apiType");return a=>{a({type:o.userListConstants.SET_SEARCH_TEXT,payload:t}),a({type:o.userListConstants.SEARCH_REQUEST}),i.userListService.searchSubdomain(t,{...e,apiType:n}).then((t=>{a(function(t){return e=>{e({type:o.userListConstants.SEARCH_SUCCESS,payload:t}),e({type:r.errorsConstants.REMOVE_ERROR})}}(t))}),(t=>{a(function(t){return e=>{e({type:r.errorsConstants.ADD_ERROR,payload:{type:"FAILURE_USERLIST_SEARCH",error:t}}),e({type:o.userListConstants.SEARCH_FAILURE,payload:t})}}(t.toString()))}))}},clearUserData:function(){return t=>{t({type:o.userListConstants.CLEAR_USER_DATA})}},getTemplateUser:function(){return t=>{i.userListService.getTemplateUser().then((e=>{t({type:o.userListConstants.FETCH_TEMPLATE_USER,payload:e.data})}),(t=>{console.error("Couldn't fetch template User",t)}))}},assignProjectLicense:function(t,e){return n=>{i.userListService.assignProjectLicense(t,e).then((t=>{n({type:o.userListConstants.ASSIGN_PROJECT_LICENSE,payload:t.data}),window.location.reload()}),(t=>{console.error("Couldn't update",t)}))}},validateDomain:function(t,e){return n=>{i.userListService.validateDomain(t,e).then((t=>{n({type:o.userListConstants.VALIDATE_DOMAIN,payload:t.data}),window.location.reload()}),(t=>{console.error("Couldn't update",t)}))}},unpublishSite:function(t,e){return n=>{i.userListService.unpublishSite(t,e).then((t=>{n({type:o.userListConstants.UNPUBLISH_SITE,payload:t.data}),window.location.reload()}),(t=>{console.error("Couldn't unpublish site",t)}))}}}},3844:function(t,e,n){"use strict";n.r(e),n.d(e,{workspaceActions:function(){return a}});var o=n(3655),r=n(3902),i=n(7911);const a={deleteWorkspace:function(t,e){return n=>{n(s(r.workspaceConstants.REQUEST_DELETE_WORKSPACE));const a=t||"default";o.workspaceService.deleteWorkspace(a).then((t=>{n(c(r.workspaceConstants.SUCCESS_DELETE_WORKSPACE,t)),"function"===typeof e&&e(),window?.showToast&&window.showToast({type:"success",msg:"Workspace successfully deleted."})}),(t=>{n((0,i.failure)(r.workspaceConstants.FAILURE_DELETE_WORKSPACE,t.toString())),window?.showToast&&window.showToast({type:"failure",msg:"Failed to delete workspace. Please try again later or contact support."})}))}},getWorkspace:function(t){return(e,n)=>
1{const a=n(),{isFetchingWorkspace:l,data:u}=a.workspace||{},p=a.user?.data?._id;if(!p)return;if(l||u?._id)return void("function"===typeof t&&u&&t(u));let d;d=new URLSearchParams(window.location.search).get("workspaceId")||void 0;e(s(r.workspaceConstants.REQUEST_GET_WORKSPACE)),o.workspaceService.getWorkspace(d).then((n=>{e(c(r.workspaceConstants.SUCCESS_GET_WORKSPACE,n)),"function"===typeof t&&t(n)}),(t=>{e((0,i.failure)(r.workspaceConstants.FAILURE_GET_WORKSPACE,t.toString())),window?.showToast&&window.showToast({type:"failure",msg:"Failed to fetch workspace. Please try again later or contact support."})}))}}};function s(t,e){return{type:t,payload:e||null}}function c(t,e){return n=>{n({type:t,payload:e}),n({type:r.errorsConstants.REMOVE_ERROR})}}},6160:function(t,e,n){"use strict";n.r(e),n.d(e,{builderConstants:function(){return o},INTERCOM_ARTICLE_IDS:function(){return r},RIGHT_SIDEBAR_HELP_ALERT_DATA:function(){return i},RESTRICTED_BUILDER_FUNCTIONS:function(){return a},DISABLED_BUILDER_FUNCTIONS:function(){return s},FORM_ELEMENT_TYPES:function(){return c}});const o={LIST_OF_COMPONENT_TYPES_HAVING_EMPTY_STATE_PRESETS:["form-component-v1","dynamic-list-empty-state-v1","dynamic-list-error-state-v1"],GLOBAL_ELEMENT:"Global0007",CANVAS_TEXT_FIX:"<style>:not(.content-editor) h1,\n:not(.content-editor) h2,\n:not(.content-editor) h3,\n:not(.content-editor) h4,\n:not(.content-editor) h5,\n:not(.content-editor) h6,\n:not(.content-editor) p {\n  line-height: inherit;\n  margin: 0.1rem 0;\n  white-space:pre-wrap;\n  tab-size:4;\n}\n:not(.content-editor) h1 a,\n:not(.content-editor) h1 a:active,\n:not(.content-editor) h2 a,\n:not(.content-editor) h2 a:active,\n:not(.content-editor) h3 a,\n:not(.content-editor) h3 a:active,\n:not(.content-editor) h4 a,\n:not
1(.content-editor) h4 a:active,\n:not(.content-editor) h5 a,\n:not(.content-editor) h5 a:active,\n:not(.content-editor) h6 a,\n:not(.content-editor) h6 a:active,\n:not(.content-editor) p a,\n:not(.content-editor) p a:active {\n  color: inherit;\n  font-weight: inherit;\n  text-decoration: none;\n}\n:not(.content-editor) h1 a:hover,\n:not(.content-editor) h1 a:active:hover,\n:not(.content-editor) h2 a:hover,\n:not(.content-editor) h2 a:active:hover,\n:not(.content-editor) h3 a:hover,\n:not(.content-editor) h3 a:active:hover,\n:not(.content-editor) h4 a:hover,\n:not(.content-editor) h4 a:active:hover,\n:not(.content-editor) h5 a:hover,\n:not(.content-editor) h5 a:active:hover,\n:not(.content-editor) h6 a:hover,\n:not(.content-editor) h6 a:active:hover,\n:not(.content-editor) p a:hover,\n:not(.content-editor) p a:active:hover {\n  color: inherit;\n  text-decoration: underline;\n}\n:not(.content-editor) .cd-paragraph-clean :not(:first-child) {\n  margin-top: 16px;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n  font-size: inherit;\n  font-weight: inherit;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n  line-height: inherit;\n}\nh1 a,\nh1 a:active,\nh2 a,\nh2 a:active,\nh3 a,\nh3 a:active,\nh4 a,\nh4 a:active,\nh5 a,\nh5 a:active,\nh6 a,\nh6 a:active,\np a,\np a:active {\n  color: inherit;\n  text-decoration: none;\n}\nh1 a:hover,\nh1 a:active:hover,\nh2 a:hover,\nh2 a:active:hover,\nh3 a:hover,\nh3 a:active:hover,\nh4 a:hover,\nh4 a:active:hover,\nh5 a:hover,\nh5 a:active:hover,\nh6 a:hover,\nh6 a:active:hover,\np a:hover,\np a:active:hover {\n  color: inherit;\n  text-decoration: underline;\n}\n</style>",BREAKPOINT_KEYS:["bp_1920","bp_1440","bp_1280","lg","md","sm"],INITIAL_GRADIENT_BG:"linear-gradient(0deg,rgb(255,222,233)0%,rgb(181,255,252)100%)",ELEMENT_ORDER_BREAKPOINT:"lg",WHITELISTED_TEXT_UNIT_VALUES:["auto","fit-content","none"],CANVAS_LABEL_HEIGHT:24,HEROSECTION_MARGIN_TOP:-24,HEROSECTION_PADDING_TOP:24,CUSTOMIZATIONPARENT_BOX_SHADOW_SE:-1.75,CUSTOMIZATIONPARENT_BOX_SHADOW_NW:1.75,CUSTOMIZATIONPARENT_BOX_SHADOW_LIGHTER_SE:-.75,CUSTOMIZATIONPARENT_BOX_SHADOW_LIGHTER_NW:.75,MOVE_ELEMENT_SNAP_OFFSET:2,MOVE_ELEMENT_SNAP_TIMER:500,MARGIN_HELPER_MAX_ZINDEX:2147483647,CANVAS_SIDEMENU_WIDTH:220,CANVAS_SIDEMENU_OFFSET:2,AI_PREVIEW_CUSTOMIZE_WIDTH_EXCLUDED:322,CANVAS_WIDTH_EXCLUDED:304,CANVAS_HEIGHT_EXCLUDED:36,CANVAS_SCREEN_SIZE_MOBILE:480,CANVAS_SCREEN_SIZE_TABLET:780,DROPPING_POSITION_TOP_OFFSET:24,DROPPING_POSITION_LEFT_OFFSET:2,CONTAINER_WIDTH_LG:1135,DRAG_PLACEHOLDER_ID_IFRAME:"placeholderABCD",ACTIVE_OVERLAY_ELEMENT:".cd-element-overlay.active",ROW_HEIGHT:2,BASIC_BLOCKS_MAPPING:{blocks:"UI/GridLayoutChild/index.js",block:"UI/GridLayoutChild/index.js",image:"UI/Image/index.jsx",svg:"UI/Image/svg.jsx",text:"UI/Text/index.jsx",columns:"UI/GridLayoutChild/index.js",button:"UI/Button/index.js",fonts:"UI/Fonts/index.jsx",video:"UI/Video/video.jsx",audio:"UI/Audio/index.jsx",iframe:"UI/IFrame/index.jsx",HTMLCode:"UI/HTMLCode/index.jsx",input:"UI/Input/Input.jsx",dropdown:"UI/Input/Select.jsx",textarea:"UI/Input/TextArea.jsx"},RESIZE_HANDLERS:{RIGHT_ONLY:["e"],BOTTOM_ONLY:["s"],BOTTOM_RIGHT_ONLY:["se"],RIGHT_AND_BOTTOM:["s","e"],NONE:[]},TEMPLATE_TITLES:{"landing-page":"Landing Page",cta:"Call to Action",popup:"Pop-up",pricing:"Pricing",team:"Team",testimonial:"Testimonial"},errorpages:{client:"client-404",deploy:"deploy-pending",host:"host-404"},BOOKMARK_PRESET_TAB:"BOOKMARK_PRESET_TAB",BOOKMARK_LINKEDCOMPONENT_TAB:"BOOKMARK_LINKEDCOMPONENT_TAB",DB_TAB_APP_DATA:"DB_TAB_APP_DATA",DB_TAB_PRIVACY:"DB_TAB_PRIVACY",DB_TAB_FIELDS:"DB_TAB_FIELDS",DB_TAB_WEBHOOKS:"DB_TAB_WEBHOOKS",PresetTables:{PRODUCTS:"_products",ORDERS:"_orders",CONTACTS:"_contacts"},APP_SETTINGS_TAB_GENERAL:"APP_SETTINGS_TAB_GENERAL",APP_SETTINGS_TAB_DOMAIN:"APP_SETTINGS_TAB_DOMAIN",APP_SETTINGS_TAB_USERS:"APP_SETTINGS_TAB_USERS",APP_SETTINGS_TAB_DELETE:"APP_SETTINGS_TAB_DELETE",APP_SETTINGS_TAB_EMAILNOTIFY:"APP_SETTINGS_TAB_EMAILNOTIFY",APP_SETTINGS_TAB_INTEGRATIONS:"APP_SETTINGS_TAB_INTEGRATIONS",dataTitles:{padding:"An element's padding is the space between its content and its border",zIndex:"This property specifies the stack order of an element",pos_static:"The element is positioned according to the normal flow of the document",pos_absolute:"The element is positioned relative to its parent block. Allows placing one element on top of another",pos_relative:"The element is positioned according to the normal flow of the document, and then offset relative to itself based on the values of top, right, bottom, and left.",pos_fixed:"The element is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled",pos_sticky:'The element is treated as relatively positioned until its containing block crosses a specified threshold value within its flow root (or the container it scrolls within), at which point it is treated as "stuck" until meeting the opposite edge of its containing block. ',display_block:"The element is treated as a block element",display_inline_block:"The element is treated as an inline-block element",display_flex:"The element is treated as a flex container",allSides:"Apply to all sides",individualSides:"Apply to individual sides",paragraph:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",italics:"Italics",bold:"Bold",underline:"Underline",textAlignLeft:"Aligns the content to the left",textAlignRight:"Aligns the content to the right",textAlignCenter:"Centers the content horizontally",textAlignJustify:"Stretches the lines so that each line has equal width",textTransformNone:"No transformation applied to the text",textTransformUppercase:"Converts all characters to uppercase",textTransformLowercase:"Converts all characters to lowercase",textTransformCapitalize:"Capitalizes the first letter of each word",verticalAlignTop:"Vertically aligns the text to top",verticalAlignCenter:"Centers the text vertically",verticalAlignBottom:"Vetically aligns the text to bottom",fontSize:"Sets the font-size",fontWeight:"Set
1s how thick or thin characters in text should be displayed",letterSpacing:"The space between characters in a text",lineHeight:"The property specifies the height of a line",flexJustifyContent:"The property aligns the flexible container's items when the items do not use all available space on the main-axis",flexJustifyContentStart:"Default value. Items are positioned at the beginning of the container",flexJustifyContentEnd:"Items are positioned at the end of the container",flexJustifyContentCenter:"Items are positioned in the center of the container",flexJustifyContentSpaceBetween:"Items will have space between them",flexJustifyContentSpaceAround:"Items will have space before, between, and after them",flexJustifyContentSpaceEvenly:"Items will have equal space around them",flexDirection:"This property specifies the direction of the items inside flexible container",flexDirectionRow:"Default value. The flexible items are displayed horizontally, as a row",flexDirectionColumn:"The flexible items are displayed vertically, as a column",flexDirectionRowReverse:"Same as row, but in reverse order",flexDirectionColumnReverse:"Same as column, but in reverse order",flexWrap:"This property specifies whether the flexible items should wrap or not",flexWrapNoWrap:"Default value. Specifies that the flexible items will not wrap",flexWrapWrap:"Specifies that the flexible items will wrap if necessary",flexWrapWrapReverse:"Specifies that the flexible items will wrap, if necessary, in reverse order",flexAlignItems:"This property specifies the default alignment for items inside the flexible container",flexAlignItemsStretch:"Default. Items are stretched to fit the container",flexAlignItemsStart:"Items are positioned at the beginning of the container",flexAlignItemsEnd:"Items are positioned at the end of the container",flexAlignItemsCenter:"Items are positioned at the center of the container",flexAlignItemsBaseline:"Items are positioned at the baseline of the container",tagName:"Sets the type of html tag this element should render",imgObjectFit:"property is used to specify how an image should be resized to fit its container",imgObjectFitFill:"The replaced content is sized to fill the element's content box. If necessary, the object will be stretched or squished to fit",imgObjectFitContain:"The replaced content is scaled to maintain its aspect ratio while fitting within the element's content box",imgObjectFitCover:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box. The object will be clipped to fit",imgObjectFitScaleDown:"The content is sized as if none or contain were specified (would result in a smaller concrete object size)",addBg:"Add an image or gradient to the background",shadow:"Attaches shadow to an element",shadowNil:"No shadow",shadowLight:"Light shadow",shadowDark:"Dark shadow",shadowCustom:"Add a custom shadow",borderRadius:"Defines the radius of the element's corners",borderSolid:"Solid border",borderDashed:"Dashed border",borderTop:"Border on the top side",borderRight:"Border on the right side",borderBottom:"Border on the bottom side",borderLeft:"Border on the left side",linkExternal:"Link to an external page",linkAnchor:"Anchor link to an element in the page",linkPage:"Link to another page of current project",linkMailto:"Email link",linkTel:"Telephone link",hideInLarge:"Hide element in large screens (desktop)",hideInMedium:"Hide element in medium screens (tablet)",hideInSmall:"Hide element in small screens (mobile)",overflow:"Sets the desired behavior for an element's overflow, when content is too big to fit in",backgroundSize:"This property specifies the size of the background images",backgroundSizeAuto:"The background image is displayed in its original size",backgroundSizeCover:"Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges",backgroundSizeContain:"Resize the background image to make sure the image is fully visible",backgroundSizeCustom:"Sets the width and height of the background image in either pixel or percent of the parent element. Eg: 400px 200px or 80% 20%",draggable:"Move and reorder by clicking and dragging",deleteItem:"Click to remove this item",backgroundClip:"This property defines how far the background (color or image) should extend within an element",backgroundOrigin:"This property specifies the origin position (the background positioning area) of a background image",backgroundAttachment:"This property sets whether a background image scrolls with the rest of the page, or is fixed",deployDomain:"Deploy to Subdomain or Your own domain!",deployGithub:"Deploy to GitHub",deployFirebase:"Deploy to Firebase",deployCodes
1andbox:"Deploy to CodeSandbox",addDropdownOption:"Add an option item to the drop-down list",addColumnItem:"Add a column to the row"},TEXT_COMPONENT_SOURCE:"UI/Text/index.jsx",BUTTON_COMPONENT_SOURCE:"UI/Button/index.js",HTML_CODE_COMPONENT_SOURCE:"UI/HTMLCode/index.jsx",HTML_CODE_IFRAME_COMPONENT_SOURCE:"UI/Iframe/index.jsx",IMAGE_COMPONENT_SOURCE:"UI/Image/index.jsx",INPUT_COMPONENT_SOURCE:"UI/Input/Input.jsx",SELECT_COMPONENT_SOURCE:"UI/Input/Select.jsx",TEXTAREA_COMPONENT_SOURCE:"UI/Input/TextArea.jsx",BLOCK_COMPONENT_SOURCE:"UI/GridLayoutChild/index.js",ICON_COMPONENT_SOURCE:"UI/Fonts/index.jsx",IFRAME_COMPONENT_SOURCE:"UI/Iframe/index.jsx"},r={domainConnection:6331567,builderFunctionTab:6324502},i={"layers-panel":{id:"layers-panel",text:"Learn more about working with Layers Panel",linkText:"Watch Video (1 min)",linkUrl:"https://youtu.be/zEzipOlI_pc",icon:void 0},"preset-components":{id:"preset-components",text:"Learn more about Re-usable Preset Elements",linkText:"Watch Video (2 min)",linkUrl:"https://youtu.be/HqdXYTzPGbM",icon:void 0},"linked-components":{id:"linked-components",text:"Learn more about Linked Components",linkText:"Watch Video (3 min)",linkUrl:"https://youtu.be/qu8VoitMZZ0",icon:void 0},"flex-box-settings":{id:"flex-box-settings",text:"Learn more about Flexbox Alignment Settings",linkText:"Watch Video (3 min)",linkUrl:"https://youtu.be/sYCLp34bqiw",icon:void 0},"image-settings":{id:"image-settings",text:"Learn more about Image Settings",linkText:"Watch Video (2 min)",linkUrl:"https://youtu.be/mYkC_6kR7dU",icon:void 0},"layout-settings":{id:"layout-settings",text:"Learn more about Layout Settings",linkText:"Watch Video (3 min)",linkUrl:"https://youtu.be/ER675irGksg",icon:void 0},"typography-settings":{id:"typography-settings",text:"Learn more about Typography Settings",linkText:"Watch Video (2 min)",linkUrl:"https://youtu.be/Y0Qfac9EErs",icon:void 0},"style-settings":{id:"style-settings",text:"Learn more about Style Settings",linkText:"Watch Video (3 min)",linkUrl:"https://youtu.be/XqmZVu4jWwE",icon:void 0},"video-settings":{id:"video-settings",text:"Learn more about Video Settings",linkText:"Watch Video (2 min)",linkUrl:"https://www.youtube.com/@codedesignai",icon:void 0}},a={delete:"delete"},s={delete:"delete",copy:"copy",paste:"paste",duplicate:"duplicate",changeParent:"changeParent",createLinkedComponent:"createLinkedComponent",createPreset:"createPreset",drag:"drag",drop:"drop"},c={TEXT:"text",EMAIL:"email",NUMBER:"number",FIRST_NAME:"firstName",LAST_NAME:"lastName",DATE:"date",FULL_NAME:"fullName",PHONE:"phone",BUY_BUTTON:"buy",SUBMIT_BUTTON:"submit",SELECT:"select",CHECKBOX:"checkbox",TEXTAREA:"textarea",URL:"url"}},3168:function(t,e,n){"use strict";n.r(e),n.d(e,{databaseConstants:function(){return o}});const o={DATABASE_MINIMAL_FETCH_REQUEST:"DATABASE_MINIMAL_FETCH_REQUEST",DATABASE_MINIMAL_FETCH_SUCCESS:"DATABASE_MINIMAL_FETCH_SUCCESS",DATABASE_MINIMAL_FETCH_FAILURE:"DATABASE_MINIMAL_FETCH_FAILURE",CREATE_TABLE_REQUEST:"CREATE_TABLE_REQUEST",CREATE_TABLE_SUCCESS:"CREATE_TABLE_SUCCESS",CREATE_TABLE_FAILURE:"CREATE_TABLE_FAILURE",GET_TABLE_REQUEST:"GET_TABLE_REQUEST",GET_TABLE_SUCCESS:"GET_TABLE_SUCCESS",GET_TABLE_FAILURE:"GET_TABLE_FAILURE",CREATE_DATABASE_REQUEST:"CREATE_DATABASE_REQUEST",CREATE_DATABASE_SUCCESS:"CREATE_DATABASE_SUCCESS",CREATE_DATABASE_FAILURE:"CREATE_DATABASE_FAILURE",UPDATE_DATABASE_ID:"UPDATE_DATABASE_ID",CREATE_TABLE_REQUEST:"CREATE_TABLE_REQUEST",CREATE_TABLE_SUCCESS:"CREATE_TABLE_SUCCESS",CREATE_TABLE_FAILURE:"CREATE_TABLE_FAILURE",DELETE_TABLE_REQUEST:"DELETE_TABLE_REQUEST",DELETE_TABLE_SUCCESS:"DELETE_TABLE_SUCCESS",DELETE_TABLE_FAILURE:"DELETE_TABLE_FAILURE",UPDATE_TABLE_REQUEST:"UPDATE_TABLE_REQUEST",UPDATE_TABLE_SUCCESS:"UPDATE_TABLE_SUCCESS",UPDATE_TABLE_FAILURE:"UPDATE_TABLE_FAILURE",DELETE_ROW_REQUEST:"DELETE_ROW_REQUEST",DELETE_ROW_SUCCESS:"DELETE_ROW_SUCCESS",DELETE_ROW_FAILURE:"DELETE_ROW_FAILURE",CREATE_ROW_REQUEST:"CREATE_ROW_REQUEST",CREATE_ROW_SUCCESS:"CREATE_ROW_SUCCESS",CREATE_ROW_FAILURE:"CREATE_ROW_FAILURE",UPDATE_ROW_REQUEST:"UPDATE_ROW_REQUEST",UPDATE_ROW_SUCCESS:"UPDATE_ROW_SUCCESS",UPDATE_ROW_FAILURE:"UPDATE_ROW_FAILURE",UPDATE_FIELDS_REQUEST:"UPDATE_FIELDS_REQUEST",UPDATE_FIELDS_SUCCESS:"UPDATE_FIELDS_SUCCESS",UPDATE_FIELDS_FAILURE:"UPDATE_FIELDS_FAILURE",SET_CURRENT_ACTIVE_TABLE:"SET_CURRENT_ACTIVE_TABLE",RESET_DB_STATE:"RESET_DB_STATE",DATE_DATA_TYPES:["created_on","last_modified","date"],READONLY_DATA_TYPES:["created_on","last_modified"],ADD_PRODUCT_REQUEST:"ADD_PRODUCT_REQUEST",ADD_PRODUCT_SUCCESS:"ADD_PRODUCT_SUCCESS",ADD_PRODUCT_FAILURE:"ADD_PRODUCT_FAILURE",OVERVIEW_DATA:"OVERVIEW_DATA",TABLE_DETAILS:"TABLE_DETAILS"}},7182:function(t,e,n){"use strict";n.r(e),n.d(e,{errorsConstants:function(){return o}});
1const o={ADD_ERROR:"ADD_ERROR",REMOVE_ERROR:"REMOVE_ERROR"}},3902:function(t,e,n){"use strict";n.r(e),n.d(e,{notificationsConstants:function(){return o.notificationsConstants},siteProfileConstants:function(){return r.siteProfileConstants},errorsConstants:function(){return i.errorsConstants},orderConstants:function(){return a.orderConstants},DISABLED_BUILDER_FUNCTIONS:function(){return s.DISABLED_BUILDER_FUNCTIONS},FORM_ELEMENT_TYPES:function(){return s.FORM_ELEMENT_TYPES},INTERCOM_ARTICLE_IDS:function(){return s.INTERCOM_ARTICLE_IDS},RESTRICTED_BUILDER_FUNCTIONS:function(){return s.RESTRICTED_BUILDER_FUNCTIONS},RIGHT_SIDEBAR_HELP_ALERT_DATA:function(){return s.RIGHT_SIDEBAR_HELP_ALERT_DATA},builderConstants:function(){return s.builderConstants},userListConstants:function(){return c.userListConstants},databaseConstants:function(){return l.databaseConstants},workspaceConstants:function(){return u.workspaceConstants}});var o=n(522),r=n(5663),i=n(7182),a=n(9809),s=n(6160),c=n(3727),l=n(3168),u=n(8747)},522:function(t,e,n){"use strict";n.r(e),n.d(e,{notificationsConstants:function(){return o}});const o={REQUEST_NOTIFICATIONS:"REQUEST_FETCH_ADMIN_NOTIFICATIONS",SUCCESS_NOTIFICATIONS:"SUCCESS_FETCH_ADMIN_NOTIFICATIONS",FAILURE_NOTIFICATIONS:"FAILURE_FETCH_ADMIN_NOTIFICATIONS",REQUEST_READ_NOTIFICATION:"REQUEST_READ_ADMIN_NOTIFICATION",SUCCESS_READ_NOTIFICATION:"SUCCESS_READ_ADMIN_NOTIFICATION",FAILURE_READ_NOTIFICATION:"FAILURE_READ_ADMIN_NOTIFICATION",REQUEST_UNREAD_NOTIFICATION:"REQUEST_UNREAD_ADMIN_NOTIFICATION",SUCCESS_UNREAD_NOTIFICATION:"SUCCESS_UNREAD_ADMIN_NOTIFICATION",FAILURE_UNREAD_NOTIFICATION:"FAILURE_UNREAD_ADMIN_NOTIFICATION",REQUEST_READ_ALL_NOTIFICATIONS:"REQUEST_READ_ALL_ADMIN_NOTIFCATIONS",SUCCESS_READ_ALL_NOTIFICATIONS:"SUCCESS_READ_ALL_ADMIN_NOTIFCATIONS",FAILURE_READ_ALL_NOTIFICATIONS:"FAILURE_READ_ALL_ADMIN_NOTIFCATIONS",CLEAR_NOTIFICATION_LIST:"CLEAR_NOTIFICATION_LIST"}},9809:function(t,e,n){"use strict";n.r(e),n.d(e,{orderConstants:function(){return o}});const o={REQUEST_CREATE_ORDER:"REQUEST_CREATE_ORDER",SUCCESS_CREATE_ORDER:"SUCCESS_CREATE_ORDER",FAILURE_CREATE_ORDER:"FAILURE_CREATE_ORDER",REQUEST_VERIFY_ORDER:"REQUEST_VERIFY_ORDER",SUCCESS_VERIFY_ORDER:"SUCCESS_VERIFY_ORDER",FAILURE_VERIFY_ORDER:"FAILURE_VERIFY_ORDER"}},5663:function(t,e,n){"use strict";n.r(e),n.d(e,{siteProfileConstants:function(){return o}});const o={REQUEST_FETCH:"REQUEST_FETCH_SITE_DETAILS",SUCCESS_FETCH:"SUCCESS_FETCH_SITE_DETAILS",FAILURE_FETCH:"FAILURE_FETCH_SITE_DETAILS",REQUEST_UPDATE:"REQUEST_UPDATE_SITE_DETAILS",SUCCESS_UPDATE:"SUCCESS_UPDATE_SITE_DETAILS",FAILURE_UPDATE:"FAILURE_UPDATE_SITE_DETAILS",REQUEST_SAVE_LAYOUT:"REQUEST_SAVE_LAYOUT",SUCCESS_SAVE_LAYOUT:"SUCCESS_SAVE_LAYOUT",FAILURE_SAVE_LAYOUT:"FAILURE_SAVE_LAYOUT",REQUEST_FETCH_LAYOUT:"REQUEST_FETCH_LAYOUT",SUCCESS_FETCH_LAYOUT:"SUCCESS_FETCH_LAYOUT",FAILURE_FETCH_LAYOUT:"FAILURE_FETCH_LAYOUT",LAYOUT_MISMATCH:"LAYOUT_MISMATCH_WITH_LOCAL_STORAGE",LAYOUT_MISMATCH_RESOLVED:"LAYOUT_MISMATCH_WITH_LOCAL_STORAGE_RESOLVED",REQUEST_CUSTOMIZE_CONTENT:"REQUEST_CUSTOMIZE_CONTENT",SUCCESS_CUSTOMIZE_CONTENT:"SUCCESS_CUSTOMIZE_CONTENT",FAILURE_CUSTOMIZE_CONTENT:"FAILURE_CUSTOMIZE_CONTENT",CHANGE_VIEW:"CHANGE_BUILDER_VIEW",CHANGE_ZINDEX:"CHANGE_ZINDEX",REQUEST_FETCH_PAGE_LIST:"REQUEST_FETCH_PAGE_DETAILS",SUCCESS_FETCH_PAGE_LIST:"SUCCESS_FETCH_PAGE_DETAILS",FAILURE_FETCH_PAGE_LIST:"FAILURE_FETCH_PAGE_DETAILS",REQUEST_FETCH_CATEGORY_LIST:"REQUEST_FETCH_CATEGORY_DETAILS",SUCCESS_FETCH_CATEGORY_LIST:"SUCCESS_FETCH_CATEGORY_DETAILS",FAILURE_FETCH_CATEGORY_LIST:"FAILURE_FETCH_CATEGORY_DETAILS",REQUEST_FETCH_STATIC_MEDIA:"REQUEST_FETCH_STATIC_MEDIA",SUCCESS_FETCH_STATIC_MEDIA:"SUCCESS_FETCH_STATIC_MEDIA",FAILURE_FETCH_STATIC_MEDIA:"FAILURE_FETCH_STATIC_MEDIA",REQUEST_SAVE_CROPPED_IMAGE:"REQUEST_SAVE_CROPPED_IMAGE",SUCCESS_SAVE_CROPPED_IMAGE:"SUCCESS_SAVE_CROPPED_IMAGE",FAILURE_SAVE_CROPPED_IMAGE:"FAILURE_SAVE_CROPPED_IMAGE",STORE_IMAGE_COMP_ID_AND_URL:"STORE_IMAGE_COMP_ID_AND_URL",CHANGE_LAYOUT:"CHANGE_LAYOUT_ON_DROP",UPDATE_BLUEPRINT:"UPDATE_BLUEPRINT",BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE:"BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETR",UPDATE_COMPONENT_PROPS:"UPDATE_COMPONENT_PROPS_OLD",UPDATE_COMPONENT_PROPS_DONE:"UPDATE_COMPONENT_PROPS_DONE",REQUEST_DELETE_COMPONENT:"REQUEST_DELETE_COMPONENT",SUCCESS_DELETE_COMPONENT:"SUCCESS_DELETE_COMPONENT",REQUEST_CLEAR_CACHE:"REQUEST_CLEAR_CACHE",SUCCESS_CLEAR_CACHE:"SUCCESS_CLEAR_CACHE",FAILURE_CLEAR_CACHE:"FAILURE_CLEAR_CACHE",REQUEST_ADD_PLUGINS:"REQUEST_ADD_PLUGINS",SUCCESS_ADD_PLUGINS:"SUCCESS_ADD_PLUGINS",FAILURE_ADD_PLUGINS:"FAILURE_ADD_PLUGINS",REQUEST_UPDATE_PLUGINS:"REQUEST_UPDATE_PLUGINS",SUCCESS_UPDATE_PLUGINS:"SUCCESS_UPDATE_PLUGINS",FAILURE_UPDATE_PLUGINS:"FAILURE_UPDATE_PLUGINS",REQUEST_REMOVE_PLUGINS:"REQUEST_REMOVE_PLUGINS",SUCCESS_REMOVE_PLUGINS:"SUCCESS_REMOVE_PLUGINS",FAILURE_REMOVE_PLUGINS:"FAILURE_REMOVE_PLUGINS"}},3727:function(t,e,n){"use strict";n.r(e),n.d(e,{userListConstants:function(){return o}});const o={REQUEST_USER_LIST:"REQUEST_FETCH_USER_LIST",SUCCESS_USER_LIST:"SUCCESS_FETCH_USER_LIST",FAILURE_USER_LIST:"FAILURE_FETCH_USER_LIST",REQUEST_PROJECT_LIST:"REQUEST_FETCH_PROJECT_LIST",SUCCESS_PROJECT_LIST:"SUCCESS_FETCH_PROJECT_LIST",FAILURE_PROJECT_LIST:"FAILURE_FETCH_PROJECT_LIST",REQUEST_DOMAIN_LIST:"REQUEST_FETCH_DOMAIN_LIST",SUCCESS_DOMAIN_LIST:"SUCCESS_FETCH_DOMAIN_LIST",FAILURE_DOMAIN_LIST:"FAILURE_FETCH_DOMAIN_LIST",REQUEST_SUBDOMAIN_LIST:"REQUEST_FETCH_SUBDOMAIN_LIST",SUCCESS_SUBDOMAIN_LIST:"SUCCESS_FETCH_SUBDOMAIN_LIST",FAILURE_SUBDOMAIN_LIST:"FAILURE_FETCH_SUBDOMAIN_LIST",REQUEST_UPDATE_USER:"REQUEST_UPDATE_USER",SUCCESS_UPDATE_USER:"SUCCESS_UPDATE_USER",FAILURE_UPDATE_USER:"FAILURE_UPDATE_USER",REQUEST_EDIT_STORY_ITEM:"REQUEST_EDIT_STORY_ITEM",SUCCESS_EDIT_STORY_ITEM:"SUCCESS_EDIT_STORY_ITEM",FAILURE_EDIT_STORY_ITEM:"FAILURE_EDIT_STORY_ITEM",SET_SEARCH_TEXT:"SET_USER_LIST_SEARCH_TEXT",CLEAR_SEARCH_RESULTS:"CLEAR_USER_LIST_SEARCH_RESULTS",SEARCH_REQUEST:"REQUEST_USER_LIST_SEARCH",SEARCH_SUCCESS:"SUCCESS_USER_LIST_SEARCH",SEARCH_FAILURE:"FAILURE_USER_LIST_SEARCH",REQUEST_DELETE_USER:"REQUEST_DELETE_USER_LIST_ITEM",SUCCESS_DELETE_USER:"SUCCESS_DELETE_USER_LIST_ITEM",FAILURE_DELETE_USER:"FAILURE_DELETE_USER_LIST_ITEM",REQUEST_RESTORE_USER:"REQUEST_RESTORE_USER",SUCCESS_RESTORE_USER:"SUCCESS_RESTORE_USER",FAILURE_RESTORE_USER:"FAILURE_RESTORE_USER",REQUEST_BLOCK_USER:"REQUEST_BLOCK_USER",SUCCESS_BLOCK_USER:"SUCCESS_BLOCK_USER",FAILURE_BLOCK_USER:"FAILURE_BLOCK_USER",REFRESH_REQUESTED:"REFRESH_REQUESTED",CLEAR_USER_DATA:"CLEAR_USER_DATA",FETCH_TEMPLATE_USER:"FETCH_TEMPLATE_USER",ASSIGN_PROJECT_LICENSE:"ASSIGN_PROJECT_LICENSE",VALIDATE_DOMAIN:"VALIDATE_DOMAIN",UNPUBLISH_SITE:"UNPUBLISH_SITE"}},8747:function(t,e,n){"use strict";n.r(e),n.d(e,{workspaceConstants:function(){return o}});const o={REQUEST_DELETE_WORKSPACE:"REQUEST_DELETE_WORKSPACE",SUCCESS_DELETE_WORKSPACE:"SUCCESS_DELETE_WORKSPACE",FAILURE_DELETE_WORKSPACE:"FAILURE_DELETE_WORKSPACE",REQUEST_GET_WORKSPACE:"REQUEST_GET_WORKSPACE",SUCCESS_GET_WORKSPACE:"SUCCESS_GET_WORKSPACE",FAILURE_GET_WORKSPACE:"FAILURE_GET_WORKSPACE"}},2668:function(t,e,n){"use strict";n.r(e),n.d(e,{database:function(){return i}});var o=n(3902);
1const r={isFetching:!1,isFetchingTable:!1,isCreatingDB:!1,isCreatingTable:!1,isDeletingRow:!1,isAddingRow:!1,currentActiveTable:"",tableDetails:{},data:{tables:[]},overviewData:{fetched:!1,current:"Today"}};function i(t=r,e){switch(e.type){case o.databaseConstants.ADD_PRODUCT_REQUEST:return{...t,isAddingProduct:!0};case o.databaseConstants.ADD_PRODUCT_SUCCESS:case o.databaseConstants.ADD_PRODUCT_FAILURE:return{...t,isAddingProduct:!1};case o.databaseConstants.CREATE_DATABASE_REQUEST:return{...t,isFetching:!0,isCreatingDB:!0};case o.databaseConstants.UPDATE_DATABASE_ID:return{...t,data:{...t.data,databaseId:e.payload.id}};case o.databaseConstants.CREATE_DATABASE_SUCCESS:return{...t,isCreatingDB:!1,data:{...t.data,databaseId:e.payload.id},isFetching:!1};case o.databaseConstants.CREATE_DATABASE_FAILURE:return{...t,isFetching:!1,isCreatingDB:!1};case o.databaseConstants.SET_CURRENT_ACTIVE_TABLE:return{...t,currentActiveTable:e.payload};case o.databaseConstants.DATABASE_MINIMAL_FETCH_REQUEST:return{...t,isFetching:!0};case o.databaseConstants.DATABASE_MINIMAL_FETCH_SUCCESS:return{...t,data:{...t.data,tables:e.payload.tables,models:e.payload.models},isFetching:!1};case o.databaseConstants.DATABASE_MINIMAL_FETCH_FAILURE:return{...t,isFetching:!1};case o.databaseConstants.GET_TABLE_REQUEST:return{...t,isFetching:!0,isFetchingTable:!0};case o.databaseConstants.GET_TABLE_SUCCESS:return{...t,isFetchingTable:!1,data:{...t.data,tables:t.data.tables.map((t=>t.id===e.payload.tableId?{...t,...e.payload.data}:t))},isFetching:!1};case o.databaseConstants.GET_TABLE_FAILURE:return{...t,isFetching:!1,isFetchingTable:!1};case o.databaseConstants.CREATE_TABLE_REQUEST:return{...t,isFetching:!0,isCreatingTable:!0};case o.databaseConstants.CREATE_TABLE_SUCCESS:return{...t,isCreatingTable:!1,data:{...t.data,tables:[...t.data.tables,e.payload]},isFetching:!1};case o.databaseConstants.CREATE_TABLE_FAILURE:return{...t,isFetching:!1,isCreatingTable:!1};case o.databaseConstants.DELETE_TABLE_REQUEST:return{...t,isFetching:!0,isDeletingTable:!0};case o.databaseConstants.DELETE_TABLE_SUCCESS:return{...t,isDeletingTable:!1,data:{...t.data,tables:e.payload},isFetching:!1};case o.databaseConstants.DELETE_TABLE_FAILURE:return{...t,isFetching:!1,isDeletingTable:!1};case o.databaseConstants.UPDATE_TABLE_REQUEST:return{...t,isFetching:!0};case o.databaseConstants.UPDATE_TABLE_SUCCESS:return{...t,data:{...t.data,tables:e.payload},isFetching:!1};case o.databaseConstants.UPDATE_TABLE_FAILURE:return{...t,isFetching:!1};case o.databaseConstants.DELETE_ROW_REQUEST:return{...t,isDeletingRow:!0};case o.databaseConstants.DELETE_ROW_SUCCESS:return{...t,isDeletingRow:!1,data:{...t.data,tables:e.payload}};case o.databaseConstants.DELETE_ROW_FAILURE:return{...t,isDeletingRow:!1};case o.databaseConstants.CREATE_ROW_REQUEST:return{...t,isFetching:!0,isAddingRow:!0};case o.databaseConstants.CREATE_ROW_SUCCESS:return{...t,isAddingRow:!1,data:{...t.data,tables:e.payload}};case o.databaseConstants.CREATE_ROW_FAILURE:return{...t,isFetching:!1,isAddingRow:!1};case o.databaseConstants.UPDATE_ROW_REQUEST:return{...t,isFetching:!0,isUpdatingRow:!0};case o.databaseConstants.UPDATE_ROW_SUCCESS:return{...t,isUpdatingRow:!1,data:{...t.data,tables:e.payload}};case o.databaseConstants.UPDATE_ROW_FAILURE:return{...t,isFetching:!1,isUpdatingRow:!1};case o.databaseConstants.UPDATE_FIELDS_REQUEST:return{...t,isFetching:!0,isUpdatingFields:!0};case o.databaseConstants.UPDATE_FIELDS_SUCCESS:return{...t,isUpdatingFields:!1,data:{...t.data,tables:e.payload},isFetching:!1};case o.databaseConstants.UPDATE_FIELDS_FAILURE:return{...t,isFetching:!1,isUpdatingFields:!1};case o.databaseConstants.RESET_DB_STATE:return{...t,currentActiveTable:"",data:{tables:[]}};case o.databaseConstants.OVERVIEW_DATA:return{...t,overviewData:e.payload};case o.databaseConstants.TABLE_DETAILS:return{...t,tableDetails:e.payload};default:return t}}},5558:function(t,e,n){"use strict";n.r(e),n.d(e,{admin:function(){return c}});var o=n(5217),r=n(4966),i=n(1669),a=n(6731),s=n(7450);const c=(0,o.UY)({notifications:r.notifications,siteProfile:i.siteProfile,userList:a.userList,workspace:s.workspace})},4966:function(t,e,n){"use strict";n.r(e),n.d(e,{notifications:function(){return i}});var o=n(3902);
1const r={isFetchingNotifications:!1,isReadingNotification:!1,data:[],totalNotificationCount:"",count:0};function i(t=r,e){switch(e.type){case o.notificationsConstants.REQUEST_NOTIFICATIONS:return{...t,isFetchingNotifications:!0};case o.notificationsConstants.SUCCESS_NOTIFICATIONS:return{...t,isFetchingNotifications:!1,data:[...t.data,...e.payload],totalNotificationCount:e.payload.count,count:t.count+e.payload.length};case o.notificationsConstants.FAILURE_NOTIFICATIONS:return{...t,isFetchingNotifications:!1};case o.notificationsConstants.REQUEST_READ_NOTIFICATION:return{...t,isReadingNotification:!0};case o.notificationsConstants.SUCCESS_READ_NOTIFICATION:{const n=t.data.map(((n,o)=>n._id===e.payload?(t.data[o].read=!0,t.data[o]):t.data[o]));return{...t,data:n,isReadingNotification:!1}}case o.notificationsConstants.FAILURE_READ_NOTIFICATION:return{...t,isReadingNotification:!1};case o.notificationsConstants.REQUEST_UNREAD_NOTIFICATION:return{...t,isReadingNotification:!0};case o.notificationsConstants.SUCCESS_UNREAD_NOTIFICATION:{const n=t.data.map(((n,o)=>n._id===e.payload?(t.data[o].read=!1,t.data[o]):t.data[o]));return{...t,data:n,isReadingNotification:!1}}case o.notificationsConstants.FAILURE_UNREAD_NOTIFICATION:return{...t,isReadingNotification:!1};case o.notificationsConstants.REQUEST_READ_ALL_NOTIFICATIONS:return{...t,isReadingNotification:!0};case o.notificationsConstants.SUCCESS_READ_ALL_NOTIFICATIONS:{const e=t.data.map(((e,n)=>(t.data[n].read=!0,t.data[n])));return{...t,data:e,isReadingNotification:!1}}case o.notificationsConstants.FAILURE_READ_ALL_NOTIFICATIONS:return{...t,isReadingNotification:!1};case o.notificationsConstants.CLEAR_NOTIFICATION_LIST:return r;default:return t}}},1669:function(t,e,n){"use strict";n.r(e),n.d(e,{siteProfile:function(){return i}});var o=n(5663);const r={tempFieldForLayout:"heroTwo",isFetching:!1,isFetchingComponents:!1,isUpdating:!1,layoutsInitialized:!1,componentsInitialized:!1,mismatchActionRequired:!1,gridLayout:{cols:{lg:20,md:16,sm:8},breakpoints:{lg:1200,md:768,sm:479},margin:[0,0],containerPadding:[0,0],rowHeight:30},data:{logo:{horizontal:"",round:""},layouts:{},plans:{free:{},premium:{}},components:[],view:"web",staticMedia:[],currentUpdatedImage:[],selectedData:{url:"",compId:""},blueprint:{},recentlyremovedComponentId:"",tourData:{initialTour:!1,secondTour:!1,thirdTour:!1,fourthTour:!1},order:""},cacheClear:{},isUpdatingProps:!1,isUpdatingBluePrint:!1,isUpdatingLayout:!1,isDeletingComponent:!1,isCustomizing:!1,custom:{},isFetchingCategory:!1,tableHeaders:{},Pagedata:{},categorydata:{},isUploadingImage:!1,isFetchingCache:!1,isUpdatingPlugins:!1,isRemovingPlugins:!1,isAddingPlugins:!1};function i(t=r,e){switch(e.type){case o.siteProfileConstants.REQUEST_ADD_PLUGINS:return{...t,isAddingPlugins:!0};case o.siteProfileConstants.SUCCESS_ADD_PLUGINS:return{...t,isAddingPlugins:!1,data:{...t.data,plugins:e.payload}};case o.siteProfileConstants.FAILURE_ADD_PLUGINS:return{...t,isAddingPlugins:!1};case o.siteProfileConstants.REQUEST_UPDATE_PLUGINS:return{...t,isUpdatingPlugins:!0};case o.siteProfileConstants.SUCCESS_UPDATE_PLUGINS:return{...t,isUpdatingPlugins:!1,data:{...t.data,plugins:e.payload}};case o.siteProfileConstants.FAILURE_UPDATE_PLUGINS:return{...t,isUpdatingPlugins:!1};case o.siteProfileConstants.REQUEST_REMOVE_PLUGINS:return{...t,isRemovingPlugins:!0};case o.siteProfileConstants.SUCCESS_REMOVE_PLUGINS:return{...t,isRemovingPlugins:!1,data:{...t.data,plugins:e.payload}};case o.siteProfileConstants.FAILURE_REMOVE_PLUGINS:return{...t,isRemovingPlugins:!1};case o.siteProfileConstants.UPDATE_COMPONENT_PROPS_DONE:return{...t};case o.siteProfileConstants.REQUEST_FETCH:return{...t,isFetching:!0,componentsInitialized:!1};case o.siteProfileConstants.SUCCESS_FETCH:return{...t,data:{...t.data,...e.payload},tableHeaders:e.payload.selectedTableHeaders?e.payload.selectedTableHeaders:t.tableHeaders,isFetching:!1,layoutsInitialized:!0,componentsInitialized:!0};case o.siteProfileConstants.FAILURE_FETCH:return{...t,isFetching:!1};case o.siteProfileConstants.STORE_IMAGE_COMP_ID_AND_URL:return{...t,data:{...t.data,selectedData:e.payload}};case o.siteProfileConstants.REQUEST_SAVE_CROPPED_IMAGE:return{...t,isUploadingImage:!0};case o.siteProfileConstants.SUCCESS_SAVE_CROPPED_IMAGE:return{...t,isUploadingImage:!1,
1croppedImageProps:e.payload};case o.siteProfileConstants.FAILURE_SAVE_CROPPED_IMAGE:return{...t,isUploadingImage:!1};case o.siteProfileConstants.REQUEST_UPDATE:return{...t,isUpdating:!0,...e.payload};case o.siteProfileConstants.SUCCESS_UPDATE:return{...t,data:{...t.data,...e.payload},isUpdating:!1};case o.siteProfileConstants.FAILURE_UPDATE:return{...t,isUpdating:!1};case o.siteProfileConstants.LAYOUT_MISMATCH:return{...t,mismatchActionRequired:!0};case o.siteProfileConstants.LAYOUT_MISMATCH_RESOLVED:return{...t,mismatchActionRequired:!1};case o.siteProfileConstants.REQUEST_CUSTOMIZE_CONTENT:return{...t,isCustomizing:!0};case o.siteProfileConstants.SUCCESS_CUSTOMIZE_CONTENT:{const n=t.data.components.map((t=>t.id===e.payload.id?{...t,html:e.payload.html}:t));return{...t,isCustomizing:!1,data:{...t.data,components:0===t.data.components.length?[...e.payload]:n}}}case o.siteProfileConstants.CHANGE_VIEW:return{...t,data:{...t.data,view:e.payload}};case o.siteProfileConstants.CHANGE_ZINDEX:return{...t,zIndex:{...t.zIndex,...e.payload}};case o.siteProfileConstants.REQUEST_FETCH_PAGE_LIST:return{...t,isShowing:!0};case o.siteProfileConstants.SUCCESS_FETCH_PAGE_LIST:return{...t,Pagedata:e.payload,isShowing:!1};case o.siteProfileConstants.FAILURE_FETCH_PAGE_LIST:return{...t,isShowing:!1};case o.siteProfileConstants.REQUEST_FETCH_CATEGORY_LIST:return{...t,isFetchingCategory:!0};case o.siteProfileConstants.SUCCESS_FETCH_CATEGORY_LIST:return{...t,categorydata:e.payload,isFetchingCategory:!1};case o.siteProfileConstants.FAILURE_FETCH_CATEGORY_LIST:return{...t,isFetchingCategory:!1};case o.siteProfileConstants.REQUEST_ADD_COMPONENT:return{...t};case o.siteProfileConstants.SUCCESS_ADD_COMPONENT:return{...t,data:{...t.data,components:e.payload}};case o.siteProfileConstants.FAILURE_ADD_COMPONENT:return{...t};case o.siteProfileConstants.REQUEST_CLEAR_CACHE:return{...t,isFetchingCache:!0};case o.siteProfileConstants.SUCCESS_CLEAR_CACHE:return{...t,cacheClear:e.payload,isFetchingCache:!1};case o.siteProfileConstants.FAILURE_CLEAR_CACHE:return{...t,isFetchingCache:!1};default:return t}}},6731:function(t,e,n){"use strict";n.r(e),n.d(e,{userList:function(){return i}});var o=n(3902);const r={isUpdating:!1,isUpdatingStory:!1,isFetching:!1,isDeleting:!1,isRestoring:!1,isBlocking:!1,data:{},TotalCount:"",count:0,searchText:"",isSearching:!1,searchResults:{data:{},count:0},contentCheck:{},refreshRequested:!1};function i(t=r,e){switch(e.type){case o.userListConstants.REQUEST_USER_LIST:return{...t,isFetching:!0,refreshRequested:!1};case o.userListConstants.SUCCESS_USER_LIST:return{...t,data:e.payload.userData,isFetching:!1,TotalCount:e.payload.usersCount,count:t.count+Object.keys(e.payload).length};case o.userListConstants.FAILURE_USER_LIST:return{...t,isFetching:!1};case o.userListConstants.REQUEST_UPDATE_USER:return{...t,isUpdating:!0};case o.userListConstants.SUCCESS_UPDATE_USER:{let n;return Object.keys(t.data).map((o=>(n=o===e.payload._id?{...n,[o]:e.payload}:{...n,[o]:t.data[o]},null))),{...t,data:n,isUpdating:!1,contentCheck:e.payload}}case o.userListConstants.FAILURE_UPDATE_USER:return{...t,isUpdating:!1};case o.userListConstants.REFRESH_REQUESTED:return{...t,refreshRequested:!0};case o.userListConstants.SET_SEARCH_TEXT:return{...t,searchText:e.payload};case o.userListConstants.CLEAR_SEARCH_RESULTS:return{...t,searchResults:{data:{},count:0},searchText:""};case o.userListConstants.SEARCH_REQUEST:return{...t,isSearching:!0};case o.userListConstants.SEARCH_SUCCESS:return{...t,isSearching:!1,searchResults:{...t.searchResults,data:e.payload,count:t.searchResults.count+Object.keys(e.payload).length}};case o.userListConstants.SEARCH_FAILURE:return{...t,isSearching:!1};case o.userListConstants.REQUEST_DELETE_USER:return{...t,isDeleting:!0};case o.userListConstants.SUCCESS_DELETE_USER:{const n={...t.data[e.payload],isListed:!1};return{...t,data:{...t.data,[e.payload]:n},isDeleting:!1}}case o.userListConstants.FAILURE_DELETE_USER:return{...t,...e.payload,isDeleting:!1};case o.userListConstants.REQUEST_RESTORE_USER:return{...t,isRestoring:!0};case o.userListConstants.SUCCESS_RESTORE_USER:{let n={...t.data[e.payload],isListed:!0};return{...t,data:{...t.data,[e.payload]:n},isRestoring:!1}}case o.userListConstants.FAILURE_RESTORE_USER:return{...t,isRestoring:!1};case o.userListConstants.REQUEST_BLOCK_USER:return{...t,isBlocking:!0};case o.userListConstants.SUCCESS_BLOCK_USER:{let n={...t.data[e.payload],isBlocked:!0};return{...t,data:{...t.data,[e.payload]:n},isBlocking:!1}}case o.userListConstants.FAILURE_BLOCK_USER:return{...t,isBlocking:!1};case o.userListConstants.REQUEST_EDIT_STORY_ITEM:return{...t,isUpdatingStory:!0};case o.userListConstants.SUCCESS_EDIT_STORY_ITEM:{let n;return Object.keys(t.data).map((o=>(t.data[o].stories.map((r=>(r._id===e.payload._id&&(r.showOnMainPage=e.payload.showOnMainPage),n={...n,[o]:t.data[o]},null))),null))),{...t,isUpdatingStory:!1,data:n}}case o.userListConstants.FAILURE_EDIT_STORY_ITEM:return{...t,isUpdatingStory:!1};case o.userListConstants.CLEAR_USER_DATA:return{...t,contentCheck:{}};case o.userListConstants.FETCH_TEMPLATE_USER:return{...t,templateUser:e.payload};case o.userListConstants.REQUEST_PROJECT_LIST:return{...t,isFetching:!0,refreshRequested:!1};case o.userListConstants.SUCCESS_PROJECT_LIST:return{...t,data:e.payload.projectData,isFetching:!1,TotalCount:e.payload.projectCount,count:t.count+Object.keys(e.payload).length};case o.userListConstants.FAILURE_PROJECT_LIST:return{...t,isFetching:!1};case o.userListConstants.REQUEST_DOMAIN_LIST:return{...t,isFetching:!0,refreshRequested:!1};case o.userListConstants.SUCCESS_DOMAIN_LIST:return{...t,data:e.payload.domainData,isFetching:!1,TotalCount:e.payload.domainCount,count:t.count+Object.keys(e.payload).length};case o.userListConstants.FAILURE_DOMAIN_LIST:return{...t,isFetching:!1};case o.userListConstants.REQUEST_SUBDOMAIN_LIST:return{...t,isFetching:!0,refreshRequested:!1};case o.userListConstants.SUCCESS_SUBDOMAIN_LIST:return{...t,data:e.payload.subdomainData,isFetching:!1,TotalCount:e.payload.subdomainCount,count:t.count+Object.keys(e.payload).length};case o.userListConstants.FAILURE_SUBDOMAIN_LIST:return{...t,isFetching:!1};default:return t}}},7450:function(t,e,n){"use strict";n.r(e),n.d(e,{workspace:function(){return i}});var o=n(8747);
1const r={isDeletingWorkspace:!1,isFetchingWorkspace:!1,data:{},workspaceId:null};function i(t=r,e){switch(e.type){case o.workspaceConstants.REQUEST_GET_WORKSPACE:return{...t,isFetchingWorkspace:!0};case o.workspaceConstants.SUCCESS_GET_WORKSPACE:return{...t,isFetchingWorkspace:!1,data:e.payload,workspaceId:e.payload?._id||null};case o.workspaceConstants.FAILURE_GET_WORKSPACE:return{...t,isFetchingWorkspace:!1};case o.workspaceConstants.REQUEST_DELETE_WORKSPACE:return{...t,isDeletingWorkspace:!0};case o.workspaceConstants.SUCCESS_DELETE_WORKSPACE:return{...t,isDeletingWorkspace:!1,data:e.payload};case o.workspaceConstants.FAILURE_DELETE_WORKSPACE:return{...t,isDeletingWorkspace:!1};default:return t}}},9262:function(t,e,n){"use strict";n.r(e),n.d(e,{databaseService:function(){return s}});var o=n(5017),r=n(9972),i=n(9805);const a=(t,e={})=>{const n=new URL(document.location.href).searchParams.get("apiType"),r=new URL(document.location.href).searchParams.get("user");return(0,i.default)(`${(0,o.returnAPI)()}${t}`,{returnAbsoluteUrl:!0,queryParams:{...e,apiType:n,user:r}})},s={listAllTables:function(){return Promise.resolve([{id:0,name:"First Table",order:1231230,database_id:0},{id:1,name:"Second Table",order:1231231,database_id:0},{id:2,name:"Third Table",order:1231232,database_id:0},{id:3,name:"Fourth Table",order:1231233,database_id:0},{id:4,name:"Fifth Table",order:1231234,database_id:0}])},createTable:function(t){const{name:e,description:n,fields:o,project:i,databaseId:s}=t,l={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({name:e,description:n,fields:o})};let u=a(`guest/database/${i}/tables/database/${s}`);return fetch(u,l).then(c).then((t=>t.data))},createDatabase:function(t){const{project:e}=t,n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=a(`guest/database/${e}`);return fetch(o,n).then(c).then((t=>t.data))},initialDatabaseFetch:function(t){const{project:e,databaseId:n}=t,o={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=a(`guest/database/${e}/tables/database/${n}`);return fetch(i,o).then(c).then((t=>t.data)).catch((t=>{console.error("The user doesn't have acces to the database",t)}))},getTable:function(t){const{project:e,tableId:n,options:o}=t,{search:i,page:s,size:l}=o,u={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let p=`guest/database/${e}/tables/database/table/${n}`;const d=new URLSearchParams;i&&d.append("search",i);s&&d.append("page",s);l&&d.append("size",l);const f=d.toString();p=f?`${p}?${f}`:p;let m=a(p);return fetch(m,u).then(c).then((t=>t.data))},createRow:function(t){const{tableId:e,project:n,rowData:o}=t,i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(o)};let s=a(`guest/database/${n}/database/rows/table/${e}`);return fetch(s,i).then(c).then((t=>t.data))},updateRow:function(t){const{tableId:e,project:n,rowData:o,rowId:i}=t,s={method:"PATCH",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(o)};let l=a(`guest/database/${n}/database/rows/table/${e}/${i}`);return fetch(l,s).then(c).then((t=>t.data))},deleteRow:function(t){const{tableId:e,project:n,rowId:o}=t,i={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let s=a(`guest/database/${n}/database/rows/table/${e}/${o}`);return fetch(s,i).then(c).then((t=>t.data))},deleteRows:function(t){const{tableId:e,project:n,rowIds:o}=t,i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({row_ids:o})};let s=a(`guest/database/${n}/database/rows/table/${e}/batch-delete`);return fetch(s,i).then(c).then((t=>t.data))},updateFields:function(t){const{tableId:e,project:n,fields:o}=t,i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(o)};let s=a(`guest/database/${n}/database/fields/table/${e}`);return fetch(s,i).then(c).then((t=>t.data))},deleteTable:function(t){const{tableId:e,project:n}=t,o={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=a(`guest/database/${n}/database/tables/${e}/`);return fetch(i,o).then(c).then((t=>t.data))},createPublicRow:function(t){const{tableId:e,functionId:n,rowData:o,databaseId:i,project:s}=t,l={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:s,...o})};let u=a(`guest/function/${n}/database/${i}/rows/table/${e}`);return fetch(u,l).then(c).then((t=>t.data))},submitFormData:function(t){const{formData:e,formId:n,project:o,context:i,order:s,urlRedirect:l,orderId:u}=t,p={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:o,formData:e,context:i,order:s,urlRedirect:l,orderId:u})};let d=a(`guest/database/${o}/database/${n}`);return fetch(d,p).then(c).then((t=>(console.log("testingjog0",t),{identifier:t.identifier,...t.data})))},addProduct:function(t,e){const{project:n}=e,o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(t)};let i=a(`guest/database/${n}/database/product`);return fetch(i,o).then(c).then((t=>t.data))},sendWebhooksToDatabase:function(t,e,n){const o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(n)};let i=a(`guest/database/${t}/database/tables/${e}/webhooks`);return fetch(i,o).then(c).then((t=>(console.log(t,"res"),t.data)))},exportTable:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=a(`guest/database/${t}/database/tables/${e}/export`);return fetch(o,n).then(c).then((t=>(console.log(t,"res from export table"),t)))},downloadTable:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}},o=a(`guest/database/${t}/database/tables/${e}/download`);return fetch(o,n).then((t=>{if(!t.ok)throw new Error("Failed to download the table");return t.blob()})).catch((t=>{throw console.error("Error downloading table:",t),t}))},testWebhookEndpoint:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=a(`guest/database/${t}/database/tables/${e}/test/webhook`);return fetch(o,n).then(c).then((t=>(console.log(t,"res from test webhook"),t)))}};function c(t){return t.json().then((e=>{if(!t.ok){const n=e.errorMessage||e.message||t.statusText;throw new Error(n)}return e})).catch((e=>{throw 429===t.status?new Error("Too Many Requests"):new Error(e.message||"Something went wrong")}))}},3655:function(t,e,n){"use strict";n.r(e),n.d(e,{userProfileService:function(){return o.userProfileService},notificationsService:function(){return r.notificationsService},siteProfileService:function(){return i.siteProfileService},orderService:function(){return a.orderService},userListService:function(){return s.userListService},workspaceService:function(){return c.workspaceService}});var o=n(3474),r=n(3558),i=n(1096),a=n(7380),s=n(3884),c=n(589)},3558:function(t,e,n){"use strict";n.r(e),n.d(e,{notificationsService:function(){return i}});var o=n(5017),r=n(9972);const i={fetchNotifications:function(t){(0,r.getToken)();(0,o.returnAPI)(),(0,r.getUsername)(),t.offset,t.limit},readNotification:function(t){(0,r.getToken)();(0,o.returnAPI)(),(0,r.getUsername)()},unreadNotification:function(t){(0,r.getToken)();(0,o.returnAPI)(),(0,r.getUsername)()},markNotificationsAsRead:function(t){(0,r.getToken)();(0,o.returnAPI)(),(0,r.getUsername)()}}},7380:function(t,e,n){"use strict";n.r(e),n.d(e,{orderService:function(){return i}});var o=n(5017),r=n(9972);const i={createOrder:function(t,e,n){t.type=n;const i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(t)};let s=`${o.default.storylensioUrl}order/${e.user.data._id+"/"+e.common.data.uniqueId}`;return fetch(s,i).then(a).then((t=>t.data))},verifyOrder:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(t)};let i=`${o.default.storylensioUrl}order/${e.user.data._id+"/"+e.common.data.uniqueId}/verify`;return fetch(i,n).then(a).then((t=>t.data))},placeOrder:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(e)},i=`${(0,o.returnAPI)()}order/${t}`;return fetch(i,n).then(a).then((t=>t))},createOrderLink:function(t,e,n,i){const s={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({plan:t,period:e,project:n})},c=`${(0,o.returnAPI)()}order/${i}`;return fetch(c,s).then(a).then((t=>t.data))}};function a(t){return t.json().then((e=>{const n=e;if(!t.ok){const e=n&&n.errorMessage||n&&n.message||t.statusText;return Promise.reject(e)}return n}))}},1096:function(t,e,n){"use strict";n.r(e),n.d(e,{siteProfileService:function(){return i}});var o=n(5017),r=n(9972);const i={getSiteProfileDetails:function(){const t={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let e=`${(0,o.returnAPI)()}site-profile`;return fetch(e,t).then(a).then((t=>t.data))},setSiteProfileDetails:function(t){const e={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(t)};let n=`${(0,o.returnAPI)()}admin/site-profile`;return fetch(n,e).then(a).then((t=>t.data))},saveLayoutToServer:function(t){const e={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(t)};let n=`${(0,o.returnAPI)()}admin/site-profile`;return fetch(n,e).then(a).then((t=>t.data.layouts))},getPageListDetails:function(){const t={method:"GET",headers:{"Content-Type":"application.json","x-access-token":(0,r.getToken)()}};let e=`${(0,o.returnAPI)()}admin/site-profile/page-list`;return fetch(e,t).then(a).then((t=>t.data))},getCategoryListDetails:function(){const t={method:"GET",headers:{"Content-Type":"application.json","x-access-token":(0,r.getToken)()}};let e=`${(0,o.returnAPI)()}admin/site-profile/category-list`;return fetch(e,t).then(a).then((t=>t.data))},storeComponents:function(t){const e={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(t)};let n=`${(0,o.returnAPI)()}admin/site-profile`;return fetch(n,e).then(a).then((t=>t.data.components))},uploadCroppedImage:function(t){const e={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({staticMedia:t})};let n=`${(0,o.returnAPI)()}admin/site-profile`;return fetch(n,e).then(a).then((t=>t.data.staticMedia))},cacheClear:function(){const t={method:"GET",headers:{"Content-Type":"application.json","x-access-token":(0,r.getToken)()}};let e=`${(0,o.returnAPI)()}admin/cache/clear`;return fetch(e,t).then(a).then((t=>t))},addPlugins:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({plugins:t})};let n=`${(0,o.returnAPI)()}admin/site-profile/add-plugin`;return fetch(n,e).then(a).then((t=>t.data.plugins))},updatePlugins:function(t){const e={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({plugins:t})};let n=`${(0,o.returnAPI)()}admin/site-profile/update-plugin`;return fetch(n,e).then(a).then((t=>t.data.plugins))},removePlugins:function(t){const e={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({plugins:t})};let n=`${(0,o.returnAPI)()}admin/site-profile/delete-plugin`;return fetch(n,e).then(a).then((t=>t.data.plugins))}};function a(t){return t.json().then((e=>{const n=e;if(!t.ok){const e=n&&n.errorMessage||n&&n.message||t.statusText;return Promise.reject(e)}return n}))}},3884:function(t,e,n){"use strict";n.r(e),n.d(e,{userListService:function(){return a}});var o=n(5017),r=n(9972),i=n(1717);const a={fetchUserList:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}admin/user/list?offset=${t.offset}&limit=${t.limit}&sortColumn=${t.sortColumn}&sortType=${t.sortType}&apiType=${t.apiType}`;return fetch(n,e).then(s).then((t=>({userData:t.data,usersCount:t.usersCount})))},searchUser:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=`${(0,o.returnAPI)()}admin/user/search?q=${t}&offset=${e.offset}&limit=${e.limit}&sortColumn=${e.sortColumn}&sortType=${e.sortType}`;return fetch(i,n).then(s).then((t=>t.data))},deleteUser:function(t){const e={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}user/${t}`;return fetch(n,e).then(s).then((t=>t))},restoreUser:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}user/${t}/restore`;return fetch(n,e).then(s).then((t=>t.data))},blockUser:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}user/${t}/block`;return fetch(n,e).then(s).then((t=>t.data))},updateUser:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(e)};let i=`${(0,o.returnAPI)()}admin/user/${t}`;return fetch(i,n).then(s).then((t=>t.data))},editStory:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(e)};let i=`${(0,o.returnAPI)()}story/${t}/`;return fetch(i,n).then(s).then((t=>t.data))},userRegister:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)()},body:JSON.stringify(t)};let n=`${(0,o.returnAPI)()}admin/user/register`;return fetch(n,e).then(s).then((t=>t.data))},getTemplateUser:function(){const t={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let e=`${(0,o.returnAPI)()}admin/user/template-user`;return fetch(e,t).then(s).then((t=>({data:t.data})))},fetchProjectList:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}},n={endpoint:`${(0,o.returnAPI)()}admin/project/list`,parameters:Object.keys(t).map((e=>({key:e,value:t[e]})))};let a=(0,i.createUrl)(n);return fetch(a,e).then(s).then((t=>({projectData:t.data,projectCount:t.projectsCount})))},searchProject:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=`${(0,o.returnAPI)()}admin/project/search?q=${t}&offset=${e.offset}&limit=${e.limit}&sortColumn=${e.sortColumn}&sortType=${e.sortType}&apiType=${e.apiType}&searchType=project`;return fetch(i,n).then(s).then((t=>t.data))},searchSubdomain:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=`${(0,o.returnAPI)()}admin/project/search?q=${t}&offset=${e.offset}&limit=${e.limit}&sortColumn=${e.sortColumn}&sortType=${e.sortType}&apiType=${e.apiType}&searchType=subdomain`;return fetch(i,n).then(s).then((t=>t.data))},fetchDomainList:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}admin/domain/list?offset=${t.offset}&limit=${t.limit}&sortColumn=${t.sortColumn}&sortType=${t.sortType}&apiType=${t.apiType}`;return fetch(n,e).then(s).then((t=>({domainData:t.data,domainCount:t.domainsCount})))},fetchSubdomainList:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}admin/subdomain/list?offset=${t.offset}&limit=${t.limit}&sortColumn=${t.sortColumn}&sortType=${t.sortType}&apiType=${t.apiType}`;return fetch(n,e).then(s).then((t=>({subdomainData:t.data,subdomainCount:
1t.subdomainsCount})))},assignProjectLicense:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:t,order:e})};let i=`${(0,o.returnAPI)()}admin/project/assign-license`;return fetch(i,n).then(s).then((t=>({data:t.data})))},validateDomain:function(t,e){console.log(t,e,"testingkit000");const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:t,domain:e})};let i=`${(0,o.returnAPI)()}admin/project/validate-domain`;return fetch(i,n).then(s).then((t=>({data:t.data})))},unpublishSite:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:t,domain:e})};let i=`${(0,o.returnAPI)()}admin/project/unpublish-site`;return fetch(i,n).then(s).then((t=>({data:t.data})))}};function s(t){return t.json().then((e=>{const n=e;if(!t.ok){const e=n&&n.errorMessage||n&&n.message||t.statusText;return Promise.reject(e)}return n}))}},3474:function(t,e,n){"use strict";n.r(e),n.d(e,{userProfileService:function(){return i}});var o=n(5017),r=n(9972);const i={fetchUserProfileDetails:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}user/${t}/public/`;return fetch(n,e).then(a).then((t=>t.data))},postUserProfileDetails:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)()},body:JSON.stringify(e)};let i=`${(0,o.returnAPI)()}user/${t}/`;return fetch(i,n).then(a).then((t=>t.data?t.data:t.user))}};function a(t){return t.json().then((e=>{const n=e;if(!t.ok){const e=n&&n.errorMessage||n&&n.message||t.statusText;return Promise.reject(e)}return n}))}},589:function(t,e,n){"use strict";n.r(e),n.d(e,{workspaceService:function(){return i}});var o=n(5017),r=n(9972);const i={deleteWorkspace:function(t){const e={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=`${(0,o.returnAPI)()}workspaces/${t}`;return fetch(n,e).then(a).then((t=>t.data))},getWorkspace:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}},n=t||"default";let i=`${(0,o.returnAPI)()}workspaces/${n}`;return fetch(i,e).then(a).then((t=>t.data))}};function a(t){return t.json().then((e=>{const n=e;if(!t.ok){const e=n&&n.errorMessage||n&&n.message||t.statusText;return Promise.reject(e)}return n}))}},5017:function(t,e,n){"use strict";n.r(e),n.d(e,{returnAPI:function(){return f},returnAPIForSuperUser:function(){return g},returnAIAPI:function(){return h},returnAICompanionAPI:function(){return _},returnCacheAPI:function(){return m},returnReactAppVersionOrCommit:function(){return E},returnAccountsUrl:function(){return y},returnDashboardUrl:function(){return S},useLocalAuth:function(){return T}});var o=n(8908),r=n.n(o),i=n(4155);const a=i.env.REACT_APP_FRONTEND_URL||"https://dev.codedesign.ai/",s={s3:{BUCKET:"YOUR_DEV_S3_UPLOADS_BUCKET_NAME"},accountsUrl:"https://accounts.cdsn.me",dashboardUrl:"https://dashboard.cdsn.me",storylensioUrl:"https://beta-api.codedesign.app/",microappsApiUrl:"https://microapps-api.codedesign.app",aiApiUrl:"https://beta-api.codedesign.app/",aiCompanionUrl:"https://ai-companion-beta.codedesign.app",nonCloudflareProxyEndpoint:"https://beta-api.codedesign.app/",exportCodeApiUrl:"https://export-code-api.codedesign.app/",cloudflareApiUrl:"https://production-api.codedesign.ai/",apiUrl:"https://beta-api.codedesign.app/",frontendUrl:"http://localhost:3000/",url:"http://localhost:3000",cloudinaryApiUrl:"https://res.cloudinary.com/drihmlyza",CLOUDINARY_UPLOAD_PRESET:"d2h7au2r",ClOUD_NAME:"drihmlyza",CLOUDINARY_MAIN_DIRECTORY:"storylens-dev",CLOUDINARY_UPLOAD_URL:"https://api.cloudinary.com/v1_1/drihmlyza/image/upload",cache:!0,env:"development",stripePublishableKey:"pk_test_51L29TCBN6KZ8dA5BKkMaA5qKA4aDSSQ0lEAFikYWJ3OCZYujJuy7OmBoBSptMDmXi8ouoKM8K1dum9ieBDwZ3XD600l0VfNqTM",pricingIframeUrl:"http://localhost:5173"},c={s3:{BUCKET:"YOUR_DEV_S3_UPLOADS_BUCKET_NAME"},accountsUrl:"https://accounts.codedesign.ai",dashboardUrl:"https://dashboard.codedesign.ai",storylensioUrl:"https://beta-api.codedesign.app/",microappsApiUrl:"https://microapps-api.codedesign.app",aiApiUrl:"https://production-api.codedesign.app/",exportCodeApiUrl:"https://export-code-api.codedesign.app/",aiCompanionUrl:"https://ai-companion-api.codedesign.ai",nonCloudflareProxyEndpoint:"https://production-api.codedesign.app/",cloudflareApiUrl:"https://production-api.codedesign.ai/",apiUrl:"https://production-api.codedesign.ai/",frontendUrl:"https://dev.codedesign.ai/",url:"http://localhost:3000",cloudinaryApiUrl:"https://res.cloudinary.com/drihmlyza",CLOUDINARY_UPLOAD_PRESET:"d2h7au2r",ClOUD_NAME:"drihmlyza",CLOUDINARY_MAIN_DIRECTORY:"storylens-dev",CLOUDINARY_UPLOAD_URL:"https://api.cloudinary.com/v1_1/drihmlyza/image/upload",cache:!0,env:"development",stripePublishableKey:"pk_test_51L29TCBN6KZ8dA5BKkMaA5qKA4aDSSQ0lEAFikYWJ3OCZYujJuy7OmBoBSptMDmXi8ouoKM8K1dum9ieBDwZ3XD600l0VfNqTM",pricingIframeUrl:"https://nocode-pricing-components.pages.dev/"},l={...c,accountsUrl:"https://accounts.cdsn.me",dashboardUrl:"https://dashboard.cdsn.me"},u={s3:{BUCKET:"YOUR_DEV_S3_UPLOADS_BUCKET_NAME"},accountsUrl:"http://localhost:3002",dashboardUrl:"http://localhost:3003",aiApiUrl:"https://ai-api.codedesign.ai/",aiCompanionUrl:"https://ai-companion-beta.codedesign.app/",apiUrl:"http://localhost:3001/",url:"http://localhost:3000",storylensioUrl:"http://localhost:3003/",cloudinaryApiUrl:"https://res.cloudinary.com/lensbird",CLOUDINARY_UPLOAD_PRESET:"tiwecp6e",ClOUD_NAME:"lensbird",CLOUDINARY_MAIN_DIRECTORY:"storylens-dev",CLOUDINARY_UPLOAD_URL:"https://api.cloudinary.com/v1_1/lensbird/image/upload",cache:!1,env:"local",pricingIframeUrl:"http://localhost:5173"},p=i.env.REACT_APP_STAGE?.trim()||"production"?.trim(),d=p&&"production"===p?c:p&&"local"===p?u:p&&"test"===p?l:s;function f(){return d.apiUrl}function m(){return d.cloudflareApiUrl}function h(){return d.aiApiUrl}function _(){return d.aiCompanionUrl}function E(){const t=r().location.href.includes(a),e=t?`App Version: ${i.env.REACT_APP_VERSION}`:`Commit ID: ${i.env.REACT_APP_COMMIT_ID}`;return r().appVersionOrCommit=t?i.env.REACT_APP_VERSION:i.env.REACT_APP_COMMIT_ID,e}function g(t){return"beta"===t?s.apiUrl:"production"===t?c.apiUrl:d.apiUrl}function y(){return d.accountsUrl}function S(){return d.dashboardUrl}function T(){return"true"===i.env.REACT_APP_USE_LOCAL_AUTH?.trim()||"true"===i.env.NEXT_PUBLIC_REACT_APP_USE_LOCAL_AUTH?.trim()}e.default={MAX_ATTACHMENT_SIZE:5e6,...d,GOOGLE_CLIENT_ID:"781747190459-7lo9rki62sfi0kuc0p5ot3ctl7belr2o.apps.googleusercontent.com",FACEBOOK_APP_ID:"2490344927869658",GOOGLE_DEV_API_KEY:"AIzaSyCeP71ANSEQI-KwqEomT1nVIubf7IdyQnA",INTERCOM_APP_ID:"mi73h8ob",env:p}},750:function(t,e,n){"use strict";
1t.exports=n(1729).default,t.exports.utils=n(8697),t.exports.Responsive=n(6072).default,t.exports.Responsive.utils=n(2079),t.exports.WidthProvider=n(1488).default},2445:function(t,e,n){"use strict";t.exports=n(1729).default,t.exports.utils=n(8697),t.exports.Responsive=n(6072).default,t.exports.Responsive.utils=n(2079),t.exports.WidthProvider=n(1488).default,t.exports.calcWH=n(6955).calcWH,t.exports.getBreakpointFromWidth=n(2079).getBreakpointFromWidth},5188:function(){},6955:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var o=n(7423),r=n(3967),i=n.n(r),a=n(9590),s=n.n(a),c=n(3465),l=n.n(c),u=n(1717),p=n(4177);class d extends o.default.Component{elementRef=o.default.createRef();state={resizing:null,dragging:null,className:""};createStyle(){const{dynamicProps:t,type:e}=this.props;let n,o;n={},o={};let r={x:"margin-left",y:"margin-top",x1:"margin-right",y1:"margin-bottom",w:"width",h:"height",minW:"minWidth",maxW:"maxWidth",minH:"minHeight",maxH:"maxHeight",display:"display",position:"position"},i={...this.props.layout};return"builder"===e&&(0,u.isPositionAbsolute)(i,e)&&(i.position="absolute"),i.x1||(i.x1=0),i.y1||(i.y1=0),(0,u.isPositionAbsolute)(i.position,e)&&(r.x="left",r.y="top",r.x1="right",r.y1="bottom"),Object.keys(i).map((e=>{if(Object.keys(r).includes(e)){let o=(0,u.getUnit)(i[e])||"px";n[r[e]]=(0,u.isUpdatedValueInText)(o)?o:i[e],t&&Object.keys(t).map((e=>{const o=t[e]?.[0];o&&(n[r[e]]=(0,u.sequenceExecutor)(o,p.default)())}))}})),o=l()(n),o.position=o.position||"relative",o}shouldComponentUpdate(t,e){return this.props.gridItemUpdateRequired!==t.gridItemUpdateRequired||(t.breakpoint!==this.props.breakpoint||(!s()(this.props?.children?.props?.style,t?.children?.props?.style)||(this.props?.children?.props?.["data-rgl-preserve-display"]!==t?.children?.props?.["data-rgl-preserve-display"]||(!s()(this.props.layout,t.layout)||(!(s()(this.state.resizing,e.resizing)&&s()(this.props.w,t.w)&&s()(this.props.h,t.h)&&s()(this.props.x,t.x)&&s()(this.props.y,t.y))||(t.selectedComponent===this.props.selectedComponent||t.selectedComponent===this.props.i||this.props.selectedComponent===this.props.i)&&(!s()(t.compStyles,this.props.compStyles)||(t.dragStop!==this.props.dragStop||!s()(t.children,this.props.children))))))))}applyRglDisplayOverride(){const t=o.default.Children.only(this.props.children).props?.["data-rgl-preserve-display"],e=this.elementRef?.current;!e||"flex"!==t&&"none"!==t||e.style.setProperty("display",t,"important")}componentDidMount(){this.applyRglDisplayOverride()}componentDidUpdate(){this.applyRglDisplayOverride()}render(){const{isDraggable:t,useCSSTransforms:e,transformDirection:n,layout:r={},type:a,compStyles:s,onUserClick:c,i:l,placeholder:u}=this.props,p=o.default.Children.only(this.props.children),d=this.createStyle(),f={...this.props.style,...p.props.style,...d,...s,..."fixed"===r.position&&"page"===a?{position:"fixed"}:{}},m=p.props?.["data-rgl-preserve-display"];"flex"!==m&&"none"!==m||(f.display=m);let h=o.default.cloneElement(p,{id:u?l+"-dragging":l,ref:this.elementRef,"data-rgl-preserve-display":p.props?.["data-rgl-preserve-display"],className:i()("react-grid-item",n,p.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":t,"react-draggable-dragging":Boolean(this.state.dragging),cssTransforms:e}),style:f,onClick:t=>c&&c(t)});return o.default.createElement(o.Fragment,null,h)}}},1729:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var o=n(7423),r=n(9590),i=n.n(r),a=n(3967),s=n.n(a),c=n(8697),l=n(6955),u=n(1717);class p extends o.default.Component{static displayName="ReactGridLayout";state={isDragging:null,layout:(0,c.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.compactType(),{page:this.props.page,breakpoint:this.props.breakpoint,count:0}),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null};shouldComponentUpdate(t){return this.props.dragStop!==t.dragStop||null!==t.layout&&(this.props.dragStop,!0)}componentDidUpdate(t){try{let e;if(i()(this.props.layout,t.layout)&&this.props.compactType===t.compactType&&(0,c.childrenEqual)(t.children,this.props.children)||(e=this.props.layout),this.props.layout.length-t.layout.length===1&&this.props.children.length-t.children.length===0);else if(e){const t=(0,c.synchronizeLayoutWithChildren)(e,this.props.children,this.compactType(this.props),{page:this.props.page,breakpoint:this.props.breakpoint,count:1});this.setState({layout:t})}this.props.documentContext&&this.props.playgroundDocumentHeadFlag!==t.playgroundDocumentHeadFlag&&setTimeout((()=>{let t;t=this.props.documentContext.getElementById("placeholder-lastElement")?.offsetTop,t&&this.state.canvasHeight!==t&&this.setState({canvasHeight:t})}),1e3)}catch(e){}}compactType(t){return t||(t=this.props),!1===t.verticalCompact?null:t.compactType}processGridItem(t,e,n){const{margin:r,containerPadding:i,isDraggable:a,isResizable:s,useCSSTransforms:p,transformScale:d,transformDirection:f,draggableCancel:m,draggableHandle:h,dragStop:_,selectedComponent:E,horizontalAlign:g,onUserClick:y,documentContext:S,breakpoint:T}=this.props,{mounted:C,isDragging:b,layout:v,oldLayout:I,xYMeasurements:A}=this.state;if(!t||!t.key)return null;let O=(0,c.getLayoutItem)(I&&!n?I:v,String(t.key));if(!O)return null;let R=null;if(n){const t=S.getElementById(O.i);if(t){const{offsetTop:e,offsetLeft:n,offsetHeight:o,offsetWidth:r}=t;R={offsetTop:e,offsetLeft:n,offsetHeight:o,offsetWidth:r,node:t}}}const P=(0,u.getComponentByClientId)(O.i),{gridItemStyle:U={},noLabel:w}=P.metaProps||{},L=Boolean(!w&&!O.static&&a&&(O.isDraggable||null==O.isDraggable)),x=Boolean(!O.static&&s&&(O.isResizable||null==O.isResizable)),D=E!==O.i?[]:["s","e","se"],N={...U};return o.default.createElement(l.default,{gridItemUpdateRequired:this.props.gridItemUpdateRequired,breakpoint:T,xYMeasurements:A,extraProps:{},isDragging:b,actualElementSettings:R,documentContext:S,placeholder:n,zerothElement:0===e,selectedComponent:E,
1compStyles:N,layout:O,type:this.props.type,margin:r,containerPadding:i||r,cancel:m,handle:h,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:L,isResizable:x,useCSSTransforms:p&&C,transformScale:d,transformDirection:f,dragStop:_,w:O.w,h:O.h,x:O.x,y:O.y,i:O.i,minH:O.minH,minW:O.minW,maxH:O.maxH,maxW:O.maxW,static:O.static,resizeHandles:D,horizontalAlign:g,onUserClick:y},t)}render(){const{className:t,style:e,id:n="",horizontalAlign:r,dragPlaceholder:i,documentContext:a,addAColumnToCanvas:c,breakpoint:l}=this.props,{canvasHeight:u}=this.state;let p=s()("react-grid-layout",t);r&&["center","right"].includes(r)&&(p=s()(p,`column-align-${r}`)),"sl-rgl"===n&&window.requestIdleCallback((()=>{let t;t=a.getElementById("placeholder-lastElement")?.offsetTop,t&&u!==t&&this.setState({canvasHeight:t})}));const d={...e,...this.state.stoppingDrag?{opacity:0}:{opacity:1},height:"sl-rgl"===n&&"lg"===l?`${u+("/playground"===window.location.pathname?0:300)}px`:"100%"};return"sl-rgl"===n||"jsoneditor"===n?o.default.createElement("div",{id:n,className:`${p} ${"sl-rgl"===n?"builder-absolute":""}`,style:d},o.default.createElement(o.Fragment,null,o.default.createElement("div",{id:"placeholderABCD-dragging",style:{display:i?"block":"none",height:"10px",width:"10px",position:"absolute",top:i?.y,left:i?.x,background:"transparent",zIndex:10}}),o.default.Children.map(this.props.children,((t,e)=>t&&t.key?this.processGridItem(t,e):t)),"sl-rgl"===n&&"lg"===l&&o.default.createElement("div",{id:"placeholder-lastElement",style:{display:"flex",visibility:"visible",height:"100vh",width:"100%",position:"relative",justifyContent:"center",flexDirection:"column",alignItems:"center",pointerEvents:"none",background:"#f9f9f9",opacity:this.props.dragStatus?.3:1,transition:"opacity 0.2s ease-out",...this.props.isLinkedComponentCanvas?{backgroundColor:"#afafaf"}:{},..."/playground"===window.location.pathname?{maxHeight:"0px",overflow:"hidden"}:{}}},null))):o.default.createElement(o.Fragment,null,o.default.Children.map(this.props.children,((t,e)=>t&&t.key?this.processGridItem(t,e):t)))}}},5055:function(t,e,n){"use strict";n.r(e);var o=n(5697),r=n.n(o),i=n(7423);e.default={className:r().string,style:r().object,width:r().number,autoSize:r().bool,cols:r().number,draggableCancel:r().string,draggableHandle:r().string,compactType:r().oneOf(["vertical","horizontal"]),layout:function(t){var e=t.layout;void 0!==e&&n(8697).validateLayout(e,"layout")},margin:r().arrayOf(r().number),containerPadding:r().arrayOf(r().number),rowHeight:r().number,maxRows:r().number,isDraggable:r().bool,isResizable:r().bool,preventCollision:r().bool,useCSSTransforms:r().bool,transformScale:r().number,isDroppable:r().bool,onLayoutChange:r().func,onDragStart:r().func,onDrag:r().func,onDragStop:r().func,onResizeStart:r().func,onResize:r().func,onResizeStop:r().func,onDrop:r().func,droppingItem:r().shape({i:r().string.isRequired,w:r().number.isRequired,h:r().number.isRequired}),children:function(t,e){var n=t[e],o={};i.default.Children.forEach(n,(function(t){if(o[t.key])throw new Error('Duplicate child key "'+t.key+'" found! This will cause problems in ReactGridLayout.');o[t.key]=!0}))},innerRef:r().any}},6072:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(1729),i=n(1717);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}e.default=t=>{const{breakpoints:e,cols:n,layouts:s,onBreakpointChange:c,onLayoutChange:l,onWidthChange:u,...p}=t;let d=(0,i.mergeResponsiveLayouts)(s,t.breakpoint);return o.default.createElement(r.default,a({},p,{onLayoutChange:(e,n)=>{try{l(e,{...s,[t.breakpoint]:e},n)}catch(o){}},layout:d}))}},6550:function(){},1488:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return s}});var o=n(7423),r=n(5697),i=n.n(r);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function s(t){return class extends o.Component{static defaultProps={measureBeforeMount:!1};static propTypes={measureBeforeMount:i().bool};state={width:1280};mounted=!1;componentDidMount(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}componentWillUnmount(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)}onWindowResize=()=>{if(!this.mounted)return;const t=o.default.findDOMNode(this);t instanceof HTMLElement&&this.setState({width:t.offsetWidth})};render(){const{measureBeforeMount:e,...n}=this.props;return e&&!this.mounted?o.createElement("div",{className:this.props.className,style:this.props.style}):o.createElement(t,a({},n,this.state))}}}},3236:function(){},2079:function(t,e,n){"use strict";
1n.r(e),n.d(e,{getBreakpointFromWidth:function(){return r},getColsFromBreakpoint:function(){return i},findOrGenerateResponsiveLayout:function(){return a},sortBreakpoints:function(){return s}});var o=n(8697);function r(t,e){const n=s(t);let o=n[0];const r=n[n.length-1];for(let i=1,a=n.length;i<a;i++){const a=n[i];(e>t[r]||e<t[a])&&(o=a)}return o}function i(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function a(t,e,n,r,i,a){if(t[n])return(0,o.cloneLayout)(t[n]);let c=t[r];const l=s(e),u=l.slice(l.indexOf(n));for(let o=0,s=u.length;o<s;o++){const e=u[o];if(t[e]){c=t[e];break}}return c=(0,o.cloneLayout)(c||[]),(0,o.compact)((0,o.correctBounds)(c,{cols:i}),a,i)}function s(t){return Object.keys(t).sort((function(e,n){return t[e]-t[n]}))}},8697:function(t,e,n){"use strict";n.r(e),n.d(e,{bottom:function(){return p},cloneLayout:function(){return d},cloneLayoutItem:function(){return f},childrenEqual:function(){return m},fastRGLPropsEqual:function(){return h},fastPositionEqual:function(){return _},collides:function(){return E},collidesOnYAxis:function(){return g},collidesOnXAxis:function(){return y},compact:function(){return S},resolveCompactionCollision:function(){return C},compactItem:function(){return b},correctBounds:function(){return v},modifyLayout:function(){return I},getLayoutItem:function(){return A},getFirstCollision:function(){return O},getAllCollisions:function(){return R},getStatics:function(){return P},isABlock:function(){return U},getFirstBlockCollision:function(){return L},moveElement:function(){return D},perc:function(){return N},setTransform:function(){return F},setTopLeft:function(){return k},sortLayoutItems:function(){return M},sortLayoutItemsByOffsetValues:function(){return j},arrangeInlineElements:function(){return B},sortLayoutItemsByRowCol:function(){return G},sortLayoutItemsByRowColWithFlex:function(){return H},sortLayoutItemsByColRow:function(){return z},sortLayoutItemsByColRowWithFlex:function(){return $},synchronizeLayoutWithChildren:function(){return W},validateLayout:function(){return V},autoBindHandlers:function(){return Y},noop:function(){return Q},createDragApiRef:function(){return K},insert:function(){return q},move:function(){return J},updateIthElement:function(){return X},convertToPxLogic:function(){return Z}});var o=n(9590),r=n.n(o),i=n(7423),a=n(1717),s=n(6774),c=n(3465),l=n.n(c),u=n(6160);n(7878);function p(t){let e,n=0;for(let o=0,r=t.length;o<r;o++)t[o]&&(e=t[o].y+t[o].h,e>n&&(n=e));return n}function d(t){const e=Array(t.length);for(let n=0,o=t.length;n<o;n++)null!=t[n]?e[n]=f(t[n]):e[n]=t[n];return e}function f(t){return{...t,parent:t.parent,w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:Boolean(t.moved),static:Boolean(t.static),isDraggable:t.isDraggable,isResizable:t.isResizable}}function m(t,e){return r()(i.default.Children.map(t,(t=>t.key)),i.default.Children.map(e,(t=>t.key)))}const h=n(3236);function _(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height}function E(t,e,n){const{ignoreAbsolutePosition:o,absolutePosition:r}=n||{},i=s.default.getState().customization.present.documentContext;if(("absolute"===e.position||"fixed"===e.position)&&!o)return!1;if(r&&("absolute"===t.position||"fixed"===t.position)&&!o)return!1;if(t.i===e.i)return!1;if(t===e)return!1;const a=i.getElementById(t.i),c=i.getElementById(e.i+"-dragging")||i.getElementById(e.i);if(!a||!c)return!1;const l=a.getBoundingClientRect(),u=c.getBoundingClientRect();return!!!(l.right<u.left||l.left>u.right||l.bottom<u.top||l.top>u.bottom)}function g(t,e){return!(t.x+t.w+(t.x1?t.x1:0)<=e.x)&&!(t.x>=e.x+e.w+(e.x1?e.x1:0))}function y(t,e){return!(t.y+t.h+(t.y1?t.y1:0)<=e.y)&&!(t.y>=e.y+e.h+(e.y1?e.y1:0))}function S(t,e,n,o,r,i){return t}const T={x:"w",y:"h"};function C(t,e,n,o){const r=T[o];e[o]+=1;for(let i=t.findIndex((t=>t&&t.i===e.i))+1;i<t.length;i++){const a=t[i];if(a&&!a.static){if(a.y>e.y+e.h)break;E(e,a)&&C(t,a,n+e[r],o)}}e[o]=n}function b(t,e,n,o,r,i,a){const s="vertical"===n,c="horizontal"===n;if(isNaN(e.x)||isNaN(e.w))return e;if("lg"===a)return e;if(s)for(e.y=Math.min(p(t),e.y);e.y>0&&!O(t,e);)e.y--;else if(c)for(e.y=Math.min(p(t),e.y);e.x>0&&!O(t,e);)e.x--;let l;for(;l=O(t,e,{absolutePosition:!0});)c?C(r,e,l.x+l.w+(l.x1?l.x1:0),"x"):C(r,e,l.y+l.h+(l.y1?l.y1:0),"y"),c&&e.x+e.w+(e.x1?e.x1:0)>o&&(e.x=o-e.w-(e.x1?e.x1:0),e.y++);return e}function v(t,e){const n=P(t);for(let o=0,r=t.length;o<r;o++){const r=t[o];if(r)if(r.x+r.w+(r.x1?r.x1:0)>e.cols&&(r.x=e.cols-r.w-(r.x1?r.x1:0)),r.x<0&&(r.x=0,r.w=e.cols-r.x1),r.static)for(;O(n,r);)r.y++;else n.push(r)}return t}function I(t,e){const n=Array(t.length);for(let o=0,r=t.length;o<r;
1o++)t[o]&&e.i===t[o].i?n[o]=e:n[o]=t[o];return n}function A(t,e){for(let n=0,o=t.length;n<o;n++)if(t[n]&&t[n].i===e)return t[n]}function O(t,e,n){for(let o=0,r=t.length;o<r;o++)if(t[o]&&E(t[o],e,n))return t[o]}function R(t,e,n){return t.filter((t=>t&&E(t,e,n)))}function P(t){return t.filter((t=>t&&t.static))}function U(t={}){return"UI/GridLayoutChild/index.js"===t.main}const w=(t,e)=>{const{offsetTop:n,offsetLeft:o,offsetWidth:r,offsetHeight:i}=t;return{node:t,y:n,x:o,w:r,h:i,i:e.i,display:e.display||"block",position:e.position||"relative"}};function L(t,e,n){let o=n.elementsFromPoint(t,e).filter((t=>{if("grid-layout"===t.getAttribute("data-type")&&!t.id.endsWith("-dragging"))return!0}));return{immediateBlockParent:o[0],immediateBlockParents:o}}let x;function D(t,e,n,o,r,i={}){const{isDragging:c=!1,breakpoint:p,fromOutsideIframe:d=!1,xYMeasurements:f={},canvasTransform:m=1}=i;if(e.static)return t;c||(x=null);const{getState:h,dispatch:_}=s.default,E=h(),{x:g,y:y}=f;let S,T,C;e.x=n,e.y=o,e.moved=!0,t=I(t,e);const b=E.customization.present.documentContext||document;let v={};t.map((t=>{let n=b.getElementById(t.i);if(e.i===t.i){let e;e=b.getElementById(`${t.i}-dragging`),n=e||n}n&&(v[t.i]=w(n,t))}));const A=b.getElementById("overlay-labelhead-draggable");if(A&&!d){const t=b.getElementById("sl-rgl"),n=(0,a.getOffsetBetweenUnrelatedElements)(t,A,b,m);v["overlay-labelhead-draggable"]=w(A,{i:"overlay-labelhead-draggable"}),v["overlay-labelhead-draggable"].x=n.x/m,v["overlay-labelhead-draggable"].y=n.y/m,v[e.i]=v["overlay-labelhead-draggable"]}let O;v[e.i+"-viewport"]={...v[e.i]},O=d?v[e.i].node.getBoundingClientRect():v["overlay-labelhead-draggable"]?.node.getBoundingClientRect();const{y:R,x:P}=v[e.i+"-viewport"];let U,D=L(O.left+1,O.top+1,b),{immediateBlockParent:N,immediateBlockParents:F}=D,k=N?.getAttribute("id"),M=(0,a.findParentBlockNode)(v[e.i]?.node.parentNode);if(v["sl-rgl"]=w(b.getElementById("sl-rgl"),{i:"sl-rgl"}),M&&(v[M?.id]=w(M,{i:M?.id}),v[M?.id+"-viewport"]={...v[M?.id],y:(0,a.getOffsetTop)(v[M?.id].node,"sl-rgl"),x:(0,a.getOffsetLeft)(v[M?.id].node,"sl-rgl")}),k){const t=(0,a.findAllChildren)(r,e.i,[],!0).flat(1/0);let n=1;for(;k&&t.includes(k);)N=F[n],k=N?.getAttribute("id"),n+=1}if(k){const t=(0,a.findLayout)(k,r);t.lg[0]&&(v[k]=w(N,t.lg[0]))}e.parent;let B,G,H,z;if(k&&(v[k+"-viewport"]={...v[k],tag:"parent",y:(0,a.getOffsetTop)(v[k].node,"sl-rgl"),x:(0,a.getOffsetLeft)(v[k].node,"sl-rgl")}),k&&(H=v[k]?.display?.includes("flex"),z=H?(0,a.getFlexDirectionFromCSS)(r,k,p):"",H&&k===e.parent?B=!0:H&&k!==e.parent&&(G=!0)),(k||"layouts")!==e.i){const t={...e,y:v[e.i+"-viewport"].y-(k?v[k+"-viewport"]?.y:0),x:v[e.i+"-viewport"].x-(k?v[k+"-viewport"]?.x:0),dragging:!0};U=r[k||"layouts"]?.[p]||[],U&&(U.map((t=>{let e=b.getElementById(t.i);e&&(v[t.i]=w(e,t))})),U=[...U,t],v[e.i]={...v[e.i],y:t.y,x:t.x})}T=l()(t),B=d?G:B,S=j(t,v,{isFlex:B,flexDirection:z}),U&&(C=j(U,v,{isFlex:G,flexDirection:z}));let $=S;const W=C?"donor":"host";"donor"===W&&($=C);const V=$.findIndex((t=>t.i===e.i)),Y=t.findIndex((t=>t.i===e.i));t[Y];e.i;let Q=$[V],K=function(t,e){for(let n=e-1;n>=0;n--)if(t[n]&&("relative"===t[n].position||"static"===t[n].position||!t[n].position))return t[n].i}($,V);let q=$[V+1]?.i,J=k;K&&v[K]&&(v[`${K}-viewport`]={...v[K],tag:"previous",y:(0,a.getOffsetTop)(v[K].node,"sl-rgl"),x:(0,a.getOffsetLeft)(v[K].node,"sl-rgl")}),q&&v[q]&&(v[`${q}-viewport`]={...v[q],tag:"next",y:(0,a.getOffsetTop)(v[q].node,"sl-rgl"),x:(0,a.getOffsetLeft)(v[q].node,"sl-rgl")});const tt=v[`${e.i}-viewport`].y,et=v[`${e.i}-viewport`].x,nt=v[`${e.i}-viewport`].w,ot=v[`${e.i}-viewport`].h,rt=K&&v[`${K}-viewport`]?v[`${K}-viewport`].y+v[`${K}-viewport`].h:J&&v[`${J}-viewport`]?v[`${J}-viewport`].y:0,it=K&&v[`${K}-viewport`]?v[`${K}-viewport`].w:J?v[`${J}-viewport`].w:0,at=K&&v[K]?v[K].h:0,st=K&&v[K]?v[K].w:0,ct=K&&v[K]?v[K].x:0,lt=v[`${K}-viewport`],ut=v[`${J}-viewport`],pt=lt&&lt.x+lt.w!==0?lt.x+lt.w:ut?ut.x:0,dt=J&&v[`${J}-viewport`].x;let ft,mt=K&&v[`${K}`]?v[`${K}`]?.display:"",ht=v[`${e.i}`]?.display;if(ft=z&&z?.startsWith("row")||"inline-block"===mt&&"inline-block"===ht?"horizontal":"vertical",!c&&!(0,a.isPositionAbsolute)(Q.position,"builder")){const t=K&&v[K];"inline-block"===Q.display&&(Q.x="inline-block"!==t?.display&&K?v[`${e.i}-viewport`].x-(dt||0):v[`${e.i}-viewport`].x-pt),"inline-block"===Q.display&&"inline-block"===t?.display?Q.y=0:Q.y=v[`${e.i}-viewport`].y-rt}if(!c&&!(0,a.isPositionAbsolute)(Q.position,"builder")){const t=v[`${e.i}-viewport`]?.x,n=v[`${e.i}-viewport`]?.y;0===t&&(Q.x=0),0===n&&(Q.y=0)}if(!c&&!(0,a.isPositionAbsolute)(Q.position,"builder")){const t=N||b.getElementById("sl-rgl"),{offsetWidth:n}=t;v[`${e.i}-viewport`]?.x+v[`${e.i}-viewport`]?.w>(v?.[`${k}
1-viewport`]?.x||0)+n&&(Q.x=Math.max(0,n-v[`${e.i}-viewport`]?.w))}if(!c&&N){let t=parseFloat(window.getComputedStyle(N)?.paddingLeft)||0,e=parseFloat(window.getComputedStyle(N)?.paddingTop)||0;.05===e&&(e=0),U&&(Q.x=Q.x-t),K||(Q.y=Q.y-e)}if(!c){let t={},n=g||(0,a.getUnit)(e.x);t=Z(y||(0,a.getUnit)(e.y),n,v[`${e.i}`].node?.parentNode,{top:Q.y,left:Q.x,i:Q.i,y:Q.y,action:"drag"}),Q.y=t?.top||Q.y,Q.x=t?.left||Q.x}if((!Q.position||"relative"===Q.position||"static"===Q.position)&&!c&&(Q.y=Math.max(0,Q.y)),c||(0,a.isPositionAbsolute)(Q.position,"builder")||(B||G)&&(Q.x=0,Q.y=0),c){Q.x=0,Q.y=0;const t=(t=>{let e={};return Object.values(t).map((t=>{t.tag&&(e[t.tag]=t),e.canvasTop={},e.canvasLeft={},e.canvasRight={}})),e})(v);let e=T.find((t=>t.i===Q.i));const r=15,i=d?o-u.builderConstants.HEROSECTION_PADDING_TOP:o,a=n,{w:s,h:c}=v[Q.i],l=v[`${M?.id}-viewport`]?.y||0,p=v[`${M?.id}-viewport`]?.x||0,f=v["sl-rgl"]?.w;Object.keys(t).map((n=>{const{x:o,y:u,w:d,h:m}=t[n];switch(n){case"previous":{const t=i+l-(u+m);t<=r&&t>=0?e.y=u+m-l:t<=-r&&(e.y=i);const n=a+p-(o+d);n<=r&&n>=0?e.x=o+d-p:n<=-r&&(e.x=a);break}case"parent":{const t=i+l-rt,n=m-i-c;e.y=t<=r&&t>=0?rt-l:n<=r&&n>=0?m-c:i;const u=a+p-dt,f=d-a-s;e.x=u<=r&&u>=0?o-p:f<=r&&f>=0?d-s:a;break}case"canvasTop":{const t="undefined"===typeof N&&i+l;e.y=t<=r&&t>=0?0-l:i;break}case"canvasRight":{const t="undefined"===typeof N&&f-(p+s+a),n="undefined"===typeof N&&a+p;e.x="number"===typeof t&&t<=r&&t>=0?f-p-s:"number"===typeof n&&n<=r&&n>=0?0-p:a;break}}}))}return y&&(Q.y=`${Q.y}${y}`),g&&(Q.x=`${Q.x}${g}`),!c&&d&&(Q.y="0px",S=X(Q,S,Q.i)),{fromOutsideIframe:d,previousLayout:T,currentHostSortedLayout:S,currentDonorSortedLayout:C,immediateBlockParent:v[k],immediateBlockParentId:k,layoutObjectWithPositionData:v,type:W,nextElementId:q,previousElementId:K,previousOrBaseTop:rt,previousOrBaseLeft:pt,previousHeight:at,previousWidth:st,previousLeft:ct,previousOrBaseWidth:it,baseWidth:v[`${J}-viewport`]?.w,baseHeight:v[`${J}-viewport`]?.h,baseTop:v[`${J}-viewport`]?.y,baseLeft:dt,direction:ft,previousElementId:K,baseElementId:J,currentTopViewport:tt,currentLeftViewport:et,currentWidth:nt,currentHeight:ot,currentElement:Q,isFlex:G||B}}function N(t){return 100*t+"%"}function F({top:t,left:e,width:n,height:o},r){const i=`translate(${"rtl"===r?-e:e}px,${t}px)`;return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:`${n}px`,height:`${o}px`,position:"absolute"}}function k({top:t,left:e,width:n,height:o},r){return{top:`${t}px`,left:`${"rtl"===r?-e:e}px`,width:`${n}px`,height:`${o}px`,position:"absolute"}}function M(t,e,n){return"horizontal"===e?z(t):G(t)}function j(t,e,n){const{isFlex:o,flexDirection:r}=n;return[].concat(t).sort((function(t,n){if(!e[t.i]?.node||!e[n.i]?.node)return 0;const{y:o,x:i,w:a,h:s,i:c,display:l}=e[t.i],{y:u,x:p,w:d,h:f,i:m,display:h}=e[n.i];return r&&r.startsWith("row")||"inline-block"===l&&"inline-block"===h?i<=d/2+p?-1:1:o<f/2+u?-1:1}))}function B(t,e){return t.map(((n,o)=>{let r;const{y:i,x:a,w:s,h:c,d:l,p:u}=e[n.i];0===o&&(r=o+1),t.map(((t,n)=>{if(o===n)return;const{y:l,x:u,w:p,h:d,d:f,p:m}=e[t.i];l>=i&&u>=a+s&&l<=i+c&&(r+=1)}))})),t}function G(t){return[].concat(t).sort((function(t,e){return t.y>e.y+e.h+2||t.y>=e.y&&t.y<=e.y+e.h-12&&t.x>e.x+e.w?1:t.y===e.y&&t.x===e.x?0:-1}))}function H(t,e){return[].concat(t).sort((function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?t.moved?-1:0:-1}))}function z(t){return[].concat(t).sort((function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1}))}function $(t,e){return[].concat(t).sort((function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:t.y===e.y&&t.x===e.x?t.moved?1:0:-1}))}function W(t,e,n,o){t=t||[];const{isDisplayFlex:r=!1,breakpoint:a,count:s}=o;if(r)return t;let c=[];return i.default.Children.forEach(e,((e,n)=>{if(null==e)return;const r=A(t,String(e.key));if(r)c[n]=f(r);else{0;const t=e.props["data-grid"]||e.props._grid;if(t)c[n]=f({...t,i:e.key});else{const{page:t,breakpoint:r}=o;let i;if(t&&t.hiddenLayouts&&t.hiddenLayouts[r]&&(i=t.hiddenLayouts[r].filter((t=>t.i===e.key))[0]),i)c[n]=f(i);else{const o=t&&t.components&&t.components[e.key]&&t.components[e.key].parent;c[n]=f({w:5,h:5,x:0,y:p(c),i:String(e.key),parent:o})}}}})),c}function V(t,e="Layout"){const n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(let o=0,r=t.length;o<r;o++){const r=t[o];if(null!=r){for(let t=0;t<n.length;t++)if("number"!==typeof r[n[t]])throw new Error("ReactGridLayout: "+e+"["+o+"]."+n[t]+" must be a number!");if(r.i&&"string"!==typeof r.i)throw new Error("ReactGridLayout: "+e+"["+o+"].i must be a string!");if(void 0!==r.static&&"boolean"!==typeof r.static)throw new Error("ReactGridLayout: "+e+"["+o+"].static must be a boolean!")}}}function Y(t,e){e.forEach((e=>t[e]=t[e].bind(t)))}const Q=()=>{},K=()=>({value:null}),q=(t=[],e,n)=>[...t.slice(0,e),n,...t.slice(e)],J=(t,e,n)=>{const o=Math.min(e,n),r=Math.max(e,n);
1return[...t.slice(0,o),...e<n?t.slice(o+1,r+1):[],t[e],...e>n?t.slice(o,r):[],...t.slice(r+1)]},X=(t,e,n)=>{const o=e.findIndex((t=>t.i===n));return o>=0&&(e[o]=t),e};function Z(t,e,n,o){const r="em"===t||"em"===e,i="rem"===t||"rem"===e,a="vh"===t||"vw"===t||"vh"===e||"vw"===e;let s,c,l,u,p,d,f=n,m={};if("%"===t||"%"===e){const t=window.getComputedStyle(f);s=parseInt(t.width);const e="drag"===o.action?t.width:t.height;c=parseInt(e)}if(a){let t=function(t){var e,n;"undefined"!=typeof t.innerWidth&&(e=t.innerWidth,n=t.innerHeight);return{viewPortWidth:e,viewPortHeight:n}}(n.ownerDocument.defaultView);l=t.viewPortWidth,u=t.viewPortHeight}if(r){const t=n.ownerDocument;p=window.getComputedStyle(t.body).getPropertyValue("font-size"),p=parseInt(p)}switch(i&&(d=window.getComputedStyle(f).getPropertyValue("font-size"),d=parseInt(d)),e){case"%":s&&"number"===typeof s&&(m.left=o.left/s*100);break;case"vw":l&&"number"===typeof l&&(m.left=o.left/l*100);break;case"vh":u&&"number"===typeof u&&(m.left=o.left/u*100);break;case"em":p&&"number"===typeof p&&(m.left=o.left/p);break;case"rem":d&&"number"===typeof d&&(m.left=o.left/d)}switch(t){case"%":c&&"number"===typeof c&&(m.top=o.top/c*100);break;case"vw":l&&"number"===typeof l&&(m.top=o.top/l*100);break;case"vh":u&&"number"===typeof u&&(m.top=o.top/u*100);break;case"em":p&&"number"===typeof p&&(m.top=o.top/p);break;case"rem":d&&"number"===typeof d&&(m.top=o.top/d)}return m}},5137:function(t,e,n){"use strict";function o(t){return t&&"object"===typeof t&&"default"in t?t.default:t}Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(5697)),i=o(n(3524)),a=o(n(9590)),s=o(n(7423)),c=o(n(6086)),l="bodyAttributes",u="htmlAttributes",p="titleAttributes",d={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},f=(Object.keys(d).map((function(t){return d[t]})),"charset"),m="cssText",h="href",_="http-equiv",E="innerHTML",g="itemprop",y="name",
1S="property",T="rel",C="src",b="target",v={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",A="defer",O="encodeSpecialCharacters",R="onChangeClientState",P="titleTemplate",U=Object.keys(v).reduce((function(t,e){return t[v[e]]=e,t}),{}),w=[d.NOSCRIPT,d.SCRIPT,d.STYLE],L="data-react-helmet",x="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},N=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),F=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},k=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},M=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},j=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},B=function(t){var e=W(t,d.TITLE),n=W(t,P);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var o=W(t,I);return e||o||void 0},G=function(t){return W(t,R)||function(){}},H=function(t,e){return e.filter((function(e){return"undefined"!==typeof e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return F({},t,e)}),{})},z=function(t,e){return e.filter((function(t){return"undefined"!==typeof t[d.BASE]})).map((function(t){return t[d.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var o=Object.keys(n),r=0;r<o.length;r++){var i=o[r].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},$=function(t,e,n){var o={};return n.filter((function(e){return!!Array.isArray(e[t])||("undefined"!==typeof e[t]&&K("Helmet: "+t+' should be of type "Array". Instead found type "'+x(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var r={};n.filter((function(t){for(var n=void 0,i=Object.keys(t),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===e.indexOf(c)||n===T&&"canonical"===t[n].toLowerCase()||c===T&&"stylesheet"===t[c].toLowerCase()||(n=c),-1===e.indexOf(s)||s!==E&&s!==m&&s!==g||(n=s)}if(!n||!t[n])return!1;if(t&&n in t&&"string"===typeof t[n])var l=t[n].toLowerCase();return o[n]||(o[n]={}),r[n]||(r[n]={}),!o[n][l]&&(r[n][l]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(r),a=0;a<i.length;a++){var s=i[a],l=c({},o[s],r[s]);o[s]=l}return t}),[]).reverse()},W=function(t,e){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o.hasOwnProperty(e))return o[e]}return null},V=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout((function(){V(e)}),0)}}(),Y=window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||V,Q=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){return clearTimeout(t)},K=function(t){return console&&"function"===typeof console.warn&&console.warn(t)},q=null,J=function(t,e){var n=t.baseTag,o=t.bodyAttributes,r=t.htmlAttributes,i=t.linkTags,a=t.metaTags,s=t.noscriptTags,c=t.onChangeClientState,l=t.scriptTags,u=t.styleTags,p=t.title,f=t.titleAttributes;tt(d.BODY,o),tt(d.HTML,r),Z(p,f);var m={baseTag:et(d.BASE,n),linkTags:et(d.LINK,i),metaTags:et(d.META,a),noscriptTags:et(d.NOSCRIPT,s),scriptTags:et(d.SCRIPT,l),styleTags:et(d.STYLE,u)},h={},_={};Object.keys(m).forEach((function(t){var e=m[t],n=e.newTags,o=e.oldTags;n.length&&(h[t]=n),o.length&&(_[t]=m[t].oldTags)})),e&&e(),c(t,h,_)},X=function(t){return Array.isArray(t)?t.join(""):t},Z=function(t,e){"undefined"!==typeof t&&document.title!==t&&(document.title=X(t)),tt(d.TITLE,e)},tt=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var o=n.getAttribute(L),r=o?o.split(","):[],i=[].concat(r),a=Object.keys(e),s=0;s<a.length;s++){var c=a[s],l=e[c]||"";n.getAttribute(c)!==l&&n.setAttribute(c,l),-1===r.indexOf(c)&&r.push(c);var u=i.indexOf(c);-1!==u&&i.splice(u,1)}for(var p=i.length-1;p>=0;p--)n.removeAttribute(i[p]);r.length===i.length?n.removeAttribute(L):n.getAttribute(L)!==a.join(",")&&n.setAttribute(L,a.join(","))}},et=function(t,e){var n=document.head||document.querySelector(d.HEAD),o=n.querySelectorAll(t+"["+"data-react-helmet]"),r=Array.prototype.slice.call(o),i=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var o in e)if(e.hasOwnProperty(o))if(o===E)n.innerHTML=e.innerHTML;else if(o===m)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var s="undefined"===typeof e[o]?"":e[o];n.setAttribute(o,s)}n.setAttribute(L,"true"),r.some((function(t,e){return a=e,n.isEqualNode(t)}))?r.splice(a,1):i.push(n)})),r.forEach((function(t){return t.parentNode.removeChild(t)}
1)),i.forEach((function(t){return n.appendChild(t)})),{oldTags:r,newTags:i}},nt=function(t){return Object.keys(t).reduce((function(e,n){var o="undefined"!==typeof t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+o:o}),"")},ot=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[v[n]||n]=t[n],e}),e)},rt=function(t,e,n){switch(t){case d.TITLE:return{toComponent:function(){return function(t,e,n){var o,r=((o={key:e})[L]=!0,o),i=ot(n,r);return[s.createElement(d.TITLE,i,e)]}(0,e.title,e.titleAttributes)},toString:function(){return function(t,e,n,o){var r=nt(n),i=X(e);return r?"<"+t+' data-react-helmet="true" '+r+">"+j(i,o)+"</"+t+">":"<"+t+' data-react-helmet="true">'+j(i,o)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case l:case u:return{toComponent:function(){return ot(e)},toString:function(){return nt(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var o,r=((o={key:n})[L]=!0,o);return Object.keys(e).forEach((function(t){var n=v[t]||t;if(n===E||n===m){var o=e.innerHTML||e.cssText;r.dangerouslySetInnerHTML={__html:o}}else r[n]=e[t]})),s.createElement(t,r)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,o){var r=Object.keys(o).filter((function(t){return!(t===E||t===m)})).reduce((function(t,e){var r="undefined"===typeof o[e]?e:e+'="'+j(o[e],n)+'"';return t?t+" "+r:r}),""),i=o.innerHTML||o.cssText||"",a=-1===w.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+r+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}},it=function(t){var e=t.baseTag,n=t.bodyAttributes,o=t.encode,r=t.htmlAttributes,i=t.linkTags,a=t.metaTags,s=t.noscriptTags,c=t.scriptTags,p=t.styleTags,f=t.title,m=void 0===f?"":f,h=t.titleAttributes;return{base:rt(d.BASE,e,o),bodyAttributes:rt(l,n,o),htmlAttributes:rt(u,r,o),link:rt(d.LINK,i,o),meta:rt(d.META,a,o),noscript:rt(d.NOSCRIPT,s,o),script:rt(d.SCRIPT,c,o),style:rt(d.STYLE,p,o),title:rt(d.TITLE,{title:m,titleAttributes:h},o)}},at=function(t){var e,n;return n=e=function(e){function n(){return D(this,n),M(this,e.apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n.prototype.shouldComponentUpdate=function(t){return!a(this.props,t)},n.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case d.SCRIPT:case d.NOSCRIPT:return{innerHTML:e};case d.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,o=t.arrayTypeChildren,r=t.newChildProps,i=t.nestedChildren;return F({},o,((e={})[n.type]=[].concat(o[n.type]||[],[F({},r,this.mapNestedChildrenToProps(n,i))]),e))},n.prototype.mapObjectTypeChildren=function(t){var e,n,o=t.child,r=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(o.type){case d.TITLE:return F({},r,((e={})[o.type]=a,e.titleAttributes=F({},i),e));case d.BODY:return F({},r,{bodyAttributes:F({},i)});case d.HTML:return F({},r,{htmlAttributes:F({},i)})}return F({},r,((n={})[o.type]=F({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=F({},e);return Object.keys(t).forEach((function(e){var o;n=F({},n,((o={})[e]=t[e],o))})),n}
1,n.prototype.warnOnInvalidChildren=function(t,e){return!0},n.prototype.mapChildrenToProps=function(t,e){var n=this,o={};return s.Children.forEach(t,(function(t){if(t&&t.props){var r=t.props,i=r.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[U[n]||n]=t[n],e}),e)}(k(r,["children"]));switch(n.warnOnInvalidChildren(t,i),t.type){case d.LINK:case d.META:case d.NOSCRIPT:case d.SCRIPT:case d.STYLE:o=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:o,newChildProps:a,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:i})}}})),e=this.mapArrayTypeChildrenToProps(o,e)},n.prototype.render=function(){var e=this.props,n=e.children,o=k(e,["children"]),r=F({},o);return n&&(r=this.mapChildrenToProps(n,r)),s.createElement(t,r)},N(n,null,[{key:"canUseDOM",set:function(e){t.canUseDOM=e}}]),n}(s.Component),e.propTypes={base:r.object,bodyAttributes:r.object,children:r.oneOfType([r.arrayOf(r.node),r.node]),defaultTitle:r.string,defer:r.bool,encodeSpecialCharacters:r.bool,htmlAttributes:r.object,link:r.arrayOf(r.object),meta:r.arrayOf(r.object),noscript:r.arrayOf(r.object),onChangeClientState:r.func,script:r.arrayOf(r.object),style:r.arrayOf(r.object),title:r.string,titleAttributes:r.object,titleTemplate:r.string},e.defaultProps={defer:!0,encodeSpecialCharacters:!0},e.peek=t.peek,e.rewind=function(){var e=t.rewind();return e||(e=it({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},n}(i((function(t){return{baseTag:z([h,b],t),bodyAttributes:H(l,t),defer:W(t,A),encode:W(t,O),htmlAttributes:H(u,t),linkTags:$(d.LINK,[T,h],t),metaTags:$(d.META,[y,f,_,S,g],t),noscriptTags:$(d.NOSCRIPT,[E],t),onChangeClientState:G(t),scriptTags:$(d.SCRIPT,[C,E],t),styleTags:$(d.STYLE,[m],t),title:B(t),titleAttributes:H(p,t)}}),(function(t){q&&Q(q),t.defer?q=Y((function(){J(t,(function(){q=null}))})):(J(t),q=null)}),it)((function(){return null})));at.renderStatic=at.rewind,e.Helmet=at,e.default=at},4584:function(t,e,n){"use strict";n.r(e);var o=n(7423),r=n(5697),i=n.n(r),a=n(5933),s=n.n(a),c=n(562),l=n(2307),u=n.n(l);class p extends o.default.Component{state={status:void 0};handleLoading=()=>{this.setState({status:c.default.loading})};handleActive=()=>{this.setState({status:c.default.active})};handleInactive=()=>{this.setState({status:c.default.inactive})};loadFonts=async()=>{s()&&"function"===typeof s().load&&s().load({...this.props.config,loading:this.handleLoading,active:this.handleActive,inactive:this.handleInactive})};componentDidMount(){this.loadFonts()}componentDidUpdate(t,e){const{onStatus:n,config:o}=this.props;e.status!==this.state.status&&n(this.state.status),u()(t.config,o)||this.loadFonts()}render(){const{children:t}=this.props;return t||null}}p.propTypes={config:i().object.isRequired,children:i().element,onStatus:i().func.isRequired},p.defaultProps={onStatus:()=>{}},e.default=p},562:function(t,e,n){"use strict";n.r(e),e.default={inactive:"inactive",active:"active",loading:"loading"}},3855:function(t,e,n){"use strict";n.r(e),n.d(e,{alertActions:function(){return r}});var o=n(7100);const r={success:function(t){return{type:o.alertConstants.SUCCESS,message:t}},error:function(t){return{type:o.alertConstants.ERROR,message:t}},clear:function(){return{type:o.alertConstants.CLEAR}}}},6602:function(t,e,n){"use strict";n.r(e),n.d(e,{setBlueprintIndexes:function(){return r},setPublishedDynamicRoute:function(){return i}});var o=n(6869);function r(t){return{type:o.dynamicDataConstants.SET_BLUEPRINT_INDEXES,payload:t}}function i(t){return{type:o.dynamicDataConstants.SET_PUBLISHED_DYNAMIC_ROUTE,payload:t}}},5690:function(t,e,n){"use strict";n.r(e),n.d(e,{cloudinaryActions:function(){return i}});var o=n(7100),r=n(6774);const i={updateProgressPercentage:function(t){r.default.dispatch({type:o.cloudinaryConstants.IMAGE_UPLOAD_PERCENT,payload:{value:t}})}}},6811:function(t,e,n){"use strict";n.r(e),n.d(e,{commonActions:function(){return c}});var o=n(7100),r=n(5654),i=n(7911),a=n(6354),s=n(5236);const c={getSiteProfile:function(){return t=>
1{t(l(o.commonConstants.REQUEST_FETCH_SITE)),r.commonServices.fetchsiteProfile().then((e=>{e.blueprint&&(e={...e,blueprint:{...e.blueprint,home:{...e.blueprint.home,layouts:{...e.blueprint.home.layouts}}}}),t(u(o.commonConstants.SUCCESS_FETCH_SITE,e))}),(e=>{t((0,i.failure)(o.commonConstants.FAILURE_FETCH_SITE,e.toString()))}))}},updateSite:function(t){return e=>{e({type:o.commonConstants.SUCCESS_UPDATE_SITE,payload:{name:t.name,tag:t.tag,description:t.description,logo:t.logo}})}},toggleRefreshRequired:function(){return t=>{t({type:o.commonConstants.TOGGLE_REFRESH_REQUIRED})}},getPage:function(t,e,n){return a=>{a(l(o.commonConstants.REQUEST_FETCH_PAGE)),r.commonServices.fetchPage(t,e,n).then((t=>{t.blueprint&&((t={...t,blueprint:{...t.blueprint,[n]:{...t.blueprint[n],layouts:{...t.blueprint[n].layouts}}}}).blueprint=(0,s.cleanupBlueprintData)(t.blueprint)),a(u(o.commonConstants.SUCCESS_FETCH_PAGE,t))}),(t=>{a((0,i.failure)(o.commonConstants.FAILURE_FETCH_PAGE,t.toString()))}))}},resetDomainDetails:function(){return t=>{t({type:o.commonConstants.RESET_DOMAIN_DETAILS})}},getverificationStatus:function(t){return(e,n)=>{let s=n(),c=s.user.data._id,p=s.customization.present.project;e(l(o.commonConstants.REQUEST_VERIFICATION_STATUS)),r.commonServices.getVerificationStatus(c,t,p).then(((t={})=>{if(t.dnsVerified&&t.txtVerified){const n=s.customization.present.data?.name;n&&e(a.customizationActions.addDomainToProject(t.domain,n))}e(u(o.commonConstants.SUCCESS_VERIFICATION_STATUS,t.data))}),(t=>{e((0,i.failure)(o.commonConstants.FAILURE_VERIFICATION_STATUS,t.toString()))}))}},getDomainDetails:function(t,e){return(n,a)=>{let s=a(),c=s.user.data._id||localStorage.getItem("uRI"),p=s.customization.present.project;n(l(o.commonConstants.REQUEST_DOMAIN_LIST_OF_USER)),r.commonServices.getDomainDetails(c,t,e,p).then((t=>{const{domains:e=[],domainWithNs:r=[]}=t,i=[...e,...r.map((t=>({...t,domain:t.domain_name,isDomainWithNs:!0})))];n(u(o.commonConstants.SUCCESS_DOMAIN_LIST_OF_USER,i))}),(t=>{n((0,i.failure)(o.commonConstants.FAILURE_DOMAIN_LIST_OF_USER,t.toString()))}))}},setDomainDetails:function(t){return(e,n)=>{let a=n(),s=a.user.data._id,c=a.customization.present.project;e(l(o.commonConstants.REQUEST_ADD_DOMAIN)),r.commonServices.setDomainDetails(t,s,c).then((t=>{t?t.data&&(t.data.status=1,e(u(o.commonConstants.SUCCESS_ADD_DOMAIN,t.data))):e((0,i.failure)(o.commonConstants.FAILURE_ADD_DOMAIN,"Something went wrong"))}),(t=>{e((0,i.failure)(o.commonConstants.FAILURE_ADD_DOMAIN,t.toString()))}))}},clearError:function(){return t=>{t({type:o.commonConstants.CLEAR_COMMON_ERROR})}},deleteDomain:function(t,e){return(n,a)=>{let s=a(),c=s.customization.present.project,p=s.user.data._id;n(l(o.commonConstants.REQUEST_DELETE_DOMAIN)),r.commonServices.deleteDomain(t,p,c).then((()=>{n(u(o.commonConstants.SUCCESS_DELETE_DOMAIN,t)),e&&e()}),(t=>{n((0,i.failure)(o.commonConstants.FAILURE_DELETE_DOMAIN,t.toString()))}))}},checkSubdomainExists:function(t,e){return(n,a)=>{let s=a();const c=s.customization.present.data.subdomain;let p=s.user.data._id;t&&(t!==c||e)&&(e&&t===c||(n(l(o.commonConstants.REQUEST_SUBDOMAIN_CHECK)),r.commonServices.checkSubdomainExists(t,p).then((()=>{n(u(o.commonConstants.SUCCESS_SUBDOMAIN_CHECK,t))}),(t=>{n((0,i.failure)(o.commonConstants.FAILURE_SUBDOMAIN_CHECK,t.toString()))}))))}},clearSubdomainError:function(){return t=>{t({type:o.commonConstants.CLEAR_SUBDOMAIN_ERROR})}},updateClientInputs:function(t){return e=>{const n={...t};e({type:o.commonConstants.UPDATE_CLIENT_INPUTS,payload:n})}}};function l(t,e){return{type:t,payload:e}}function u(t,e){return n=>{n({type:t,payload:e}),n({type:o.errorsConstants.REMOVE_ERROR})}}},3251:function(t,e,n){"use strict";n.r(e),n.d(e,{customizationActions:function(){return M},mergeAndReplaceBlueprintWithLatestLinkedComponentValues:function(){return _t},returnHostName:function(){return Et},updateBlueprintAfterDeleteAsset:function(){return j}});var o=n(6774),r=n(7100),i=n(782),a=n(1969),s=n(6160),c=n(7911),l=n(5654),u=n(5236),p=n(3465),d=n.n(p),f=n(4961),m=n(7632),h=n(6113),_=n(1267),E=n(1717),g=n(5809),y=n(3774);function S(t){let e,n,o,r=!1;return function(i){void 0===e?(e=i,n=0,o=-1):e=function(t,e){const n=new Uint8Array(t.length+e.length);return n.set(t),n.set(e,t.length),n}(e,i);const a=e.length;let s=0;for(;n<a;){r&&(10===e[n]&&(s=++n),r=!1);let i=-1;for(;n<a&&-1===i;++n)switch(e[n]){case 58:-1===o&&(o=n-s);break;case 13:r=!0;case 10:i=n}if(-1===i)break;t(e.subarray(s,i),o),s=n,o=-1}s===a?e=void 0:0!==s&&(e=e.subarray(s),n-=s)}}var T=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o
1]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};const C="text/event-stream",b="last-event-id";function v(t,e){var{signal:n,headers:o,onopen:r,onmessage:i,onclose:a,onerror:s,openWhenHidden:c,fetch:l}=e,u=T(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((e,p)=>{const d=Object.assign({},o);let f;function m(){f.abort(),document.hidden||T()}d.accept||(d.accept=C),c||document.addEventListener("visibilitychange",m);let h=1e3,_=0;function E(){document.removeEventListener("visibilitychange",m),window.clearTimeout(_),f.abort()}null===n||void 0===n||n.addEventListener("abort",(()=>{E(),e()}));const g=null!==l&&void 0!==l?l:window.fetch,y=null!==r&&void 0!==r?r:I;async function T(){var n;f=new AbortController;try{const n=await g(t,Object.assign(Object.assign({},u),{headers:d,signal:f.signal}));await y(n),await async function(t,e){const n=t.getReader();let o;for(;!(o=await n.read()).done;)e(o.value)}(n.body,S(function(t,e,n){let o={data:"",event:"",id:"",retry:void 0};const r=new TextDecoder;return function(i,a){if(0===i.length)null===n||void 0===n||n(o),o={data:"",event:"",id:"",retry:void 0};else if(a>0){const n=r.decode(i.subarray(0,a)),s=a+(32===i[a+1]?2:1),c=r.decode(i.subarray(s));switch(n){case"data":o.data=o.data?o.data+"\n"+c:c;break;case"event":o.event=c;break;case"id":t(o.id=c);break;case"retry":const n=parseInt(c,10);isNaN(n)||e(o.retry=n)}}}}((t=>{t?d[b]=t:delete d[b]}),(t=>{h=t}),i))),null===a||void 0===a||a(),E(),e()}catch(o){if(!f.signal.aborted)try{const t=null!==(n=null===s||void 0===s?void 0:s(o))&&void 0!==n?n:h;window.clearTimeout(_),_=window.setTimeout(T,t)}catch(r){E(),p(r)}}}T()}))}function I(t){const e=t.headers.get("content-type");if(!(null===e||void 0===e?void 0:e.startsWith(C)))throw new Error(`Expected content-type to be text/event-stream, Actual: ${e}`)}var A=n(5017),O=n(9972);var R=n(6354),P=n(8867),U=n(9245),w=n.n(U),L=n(3168),x=(n(4527),n(3476)),D=n(7878),N=n(8919),F=n(6602),k=n(6869);const M={disconnectStripe:function(){return(t,e)=>{let n=e().customization.present.project;t({type:r.customizationConstants.REQUEST_DISCONNECT_STRIPE}),l.customBuilderService.disconnectStripe(n).then((e=>{t(ft(r.customizationConstants.SUCCESS_DISCONNECT_STRIPE,e))}),(e=>{window?.showToast({type:"error",msg:"Couldn't remove Stripe integration. Please contact support if the issue persists"}),t((0,c.failure)(r.customizationConstants.FAILURE_DISCONNECT_STRIPE))}))}},connectWithStripe:function(){return(t,e)=>{let n=e().customization.present.project;t({type:r.customizationConstants.REQUEST_CONNECT_STRIPE}),l.customBuilderService.connectWithStripe(n).then((e=>{t(ft(r.customizationConstants.SUCCESS_CONNECT_STRIPE,e)),e.redirectURL&&(window.location.href=e.redirectURL)}),(e=>{window?.showToast({type:"error",msg:"Couldn't add Stripe integration. Please contact support if the issue persists"}),t((0,c.failure)(r.customizationConstants.FAILURE_CONNECT_STRIPE))}))}},addAnalyticsToProject:function(){return(t,e)=>{let n=e().customization.present.project;t({type:r.customizationConstants.REQUEST_ADD_ANALYTICS_TO_PROJECT}),l.customBuilderService.addAnalyticsToProject(n).then((e=>{t(ft(r.customizationConstants.SUCCESS_ADD_ANALYTICS_TO_PROJECT,e))}),(e=>{window?.showToast({type:"error",msg:""}),t((0,c.failure)(r.customizationConstants.FAILURE_ADD_ANALYTICS_TO_PROJECT))}))}},updateCurrentStateNameOfComponent:function(t=""){return e=>{e({type:r.customizationConstants.STORE_SELECTED_STATENAME,payload:t})}},removeProperty:function(t,e){return n=>{n({type:r.customizationConstants.REMOVE_PROPERTY,payload:[t],context:e})}},removeMultipleComponents:at,addMultipleComponents:Q,addMultipleLayouts:function(t,e,n={}){return(o,i)=>{const{pageMeta:a={}}=n,s=i(),c=s.customization.present.data.blueprint[e].meta;if(s.customization.present.layoutsInitialized){let n,i=s.customization.present.project;n={...s.customization.present.data.blueprint,[e]:{...s.customization.present.data.blueprint[e],...t,meta:{...c,...a}}},o(dt(r.customizationConstants.REQUEST_SAVE_LAYOUT,n)),(0,E.checkIfUndoable)("REQUEST_SAVE_LAYOUT");let l={[e]:{...n[e]}};l=(0,u.cleanupBlueprintData)(l),mt(l,i);const p=ht({data:l});setTimeout((()=>{o(ft(r.customizationConstants.SUCCESS_SAVE_LAYOUT,p))}),200)}}},toggleCustomization:function(){return t=>{t({type:r.customizationConstants.TOGGLE_CUSTOMIZATION})}},toggleImageEditModal:function(){return document.body.classList.toggle("sl-image-edit-modal--backdrop"),{type:r.customizationConstants.TOGGLE_IMAGE_EDIT_MODAL}},storeImageComponentId:function(t,e){let n={compId:t,url:e};return{type:r.customizationConstants.STORE_IMAGE_COMP_ID_AND_URL,payload:n}},toggleComponentEditModal:function(t){return{type:r.customizationConstants.TOGGLE_COMPONENT_EDIT_MODAL,payload:t}},changeView:Z,changeContext:function(t){return(e,n)=>{const o=n()?.customization?.present?.data?.currentlySelectedComponentId||"";o&&"Global0007"!==o&&e(X("Global0007")),e({type:r.customizationConstants.CHA
1NGE_CONTEXT,payload:t}),e(((t,e)=>{const n=e(),{blueprint:o}=n.customization.present.data,i=_t({blueprint:o}),a=(0,u.cleanupBlueprintData)(i);t({type:r.customizationConstants.UPDATE_BP_ONLY,payload:a})}))}},saveLayoutToServer:function(t,e,n){return(o,i)=>{Object.keys(t).map((e=>{t[e].filter((function(t){return delete t.moved,!0}))}));const a=i();if(a.customization.present.layoutsInitialized){let i,s=a.customization.present.project,c=a.customization.present.context;if(JSON.stringify(t)===JSON.stringify(a.customization.present.data.blueprint[c][e||"layouts"]))return;i=e&&"layouts"!==e?{...a.customization.present.data.blueprint,[c]:{...a.customization.present.data.blueprint[c],[e]:{...t}}}:{...a.customization.present.data.blueprint,[c]:{...a.customization.present.data.blueprint[c],layouts:{...t}}},o(dt(r.customizationConstants.REQUEST_SAVE_LAYOUT,i)),(0,E.checkIfUndoable)("REQUEST_SAVE_LAYOUT",n),e&&"layouts"!==e&&Object.keys(t).map((e=>t[e].filter((t=>{t.parent}))));let l={[c]:{...i[c]}};l=(0,u.cleanupBlueprintData)(l),mt(l,s);const p=ht({data:l});setTimeout((()=>{o(ft(r.customizationConstants.SUCCESS_SAVE_LAYOUT,p))}),200)}}},updateBlueprintContents:ut,updateSelectedBlueprint:function(t,e){return(n,o)=>{const r=o(),i=r.customization.present.context,a=r.customization.present.data.blueprint;let s=a[i];if(!e||!s[e])return null;let c={...a,[i]:{...a[i],[e]:{...a[i][e],...t}}};c=(0,u.cleanupBlueprintData)(c),n(ut("blueprint",c))}},blueprintAndLayoutUpdateComplete:function(t,e,n){return o=>{let i={};i=n?{type:r.customizationConstants.BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE_WM,payload:e,name:t,context:n}:{type:r.customizationConstants.BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE},o(i),o({type:r.customizationConstants.EXCHANGE_END})}},getWebBuilderDetails:function(t,e,o,i={}){o||(o="preview");return async(s,p)=>{"builder"===o&&(s(R.uiActions.setLoaderMessage("Starting up your project")),s(R.uiActions.setInitialLoadingStatus(!1)));const d=p();s(dt(r.customizationConstants.REQUEST_FETCH_WEB_BUILDER));try{let c;const{isPlayground:E}=i;if(E){const t=new URLSearchParams(window.location.search),r=t.get("templateId")||"",a=t.get("fromPrompt")||"",u=t.get("id")||"",p=t.get("chosenAICompanionMode"),h=null!==p?"true"===p:void 0;if(u)try{s(R.uiActions.setLoaderMessage("Preparing your design...")),s(R.uiActions.setLoaderIndefinite(!0));const t=await l.customBuilderService.fetchPlaygroundByAiLogId(u);let e,o;try{const t=n(3681);e=t.saveProjectToIndexedDB,o=t.updateGuestCustomizationDataId}catch(f){throw console.error("Failed to load BuilderComponents.host:",f),new Error("Failed to initialize playground storage")}const r=d.user?.data?._id||null;void 0!==h&&(t.chosenAICompanionMode=h);o(await e(t,r));const i=new URL(window.location.href);i.searchParams.delete("id"),i.searchParams.delete("chosenAICompanionMode"),i.searchParams.set("fromPrompt","true"),window.history.replaceState({},"",i),c=t,c.playground=!0,c.fromPrompt=!0,s(R.uiActions.setLoaderIndefinite(!1))}catch(m){return console.error("Failed to fetch playground by aiLogId:",m),s(R.uiActions.setLoaderIndefinite(!1)),void(window.location.href="/a/dashboard")}else r?c=await l.customBuilderService.fetchTemplateByKey(r,e,o,i):a&&Object.keys(d.customization.present.tempAIPromptData).length?(c=d.customization.present.tempAIPromptData,c.playground=!0,c.fromPrompt=!0):(localStorage.guestCustomizationDataId,setTimeout((()=>{window.location.href="/a/dashboard"}),500));t.delete("fromPrompt"),delete i.isPlayground}else if(c=await l.customBuilderService.getWebBuilderDetails(t,e,o,i),c.aiCompanionMode&&"builder"===o){s(ot()),s(R.uiActions.setLoaderIndefinite(!0)),s(R.uiActions.setLoaderMessage("Preparing your AI Canvas"));let t=null,e=null;t=setTimeout((()=>{"Preparing your AI Canvas"===p().ui.loaderMessage&&(s(R.uiActions.setLoaderMessage("Installing dependencies...")),e=setTimeout((()=>{"Installing dependencies..."===p().ui.loaderMessage&&s(R.uiActions.setLoaderMessage("Starting dev server..."))}),2e4))}),2e4);try{const n=c.sandbox,o=n&&(n.id||n.url);await s(et(c._id,c.aiCompanionMetaData,{skipTemplateName:o})),t&&clearTimeout(t),e&&clearTimeout(e),s(R.uiActions.setLoaderMessage("Finishing things up"));const r=c.aiCompanionMetaData;if(r&&(void 0===r.initialEditDone||!1===r.initialEditDone)){const t=r.enhancedDesignPrompt||r.prompt;t&&"string"===typeof t&&t.trim()?console.log("\ud83d\ude80 [getWebBuilderDetails] Initiating auto-chat with prompt (initialEditDone is false/undefined)"):console.warn("\u26a0\ufe0f [getWebBuilderDetails] Prompt is missing or invalid in aiCompanionMetaData:",r)}}catch(m){t&&clearTimeout(t),e&&clearTimeout(e),console.error("Failed to setup AI companion sandbox:",m),s(nt(!0)),s(R.uiActions.setLoaderMessage("Sandbox failed to load"))}}if(0===(d.customization.present.activeFonts||[]).length||E){let t=new Set;c.fonts&&Object.keys(c.fonts).filter((e=>e&&c.fonts[e]&&c.fonts[e].fontFamily&&t.add(`${c.fonts[e].fontFamily}:100,200,300,400,500,600,700,800,900`))),t=Array.from(t)||[],s({type:r.customizationConstants.UPDATE_ACTIVE_FONTS,payload:t})}c.blueprint||(h.default.track("Builder redirection condition executed ",{project:t,page:e,type:o,isPlayground:E,optionsParams:i}
1),_.default.track("Builder redirection condition executed ",{project:t,page:e,type:o,isPlayground:E,optionsParams:i}),setTimeout((()=>{window.location.href=window.location.origin}),1e3)),null==c.blueprint.home.components&&(c.blueprint.home.components={});let g=d.customization.present.data.blueprint||{[e]:{}};if(c.blueprint=_t(c),c.blueprint=(0,u.cleanupBlueprintData)(c.blueprint),"preview"===o&&c.blueprint[e]&&g[e]&&c.blueprint[e].version===g[e].version)s(ft(r.customizationConstants.SUCCESS_POLL_WEB_BUILDER));else{"preview"===o||Object.keys(c.blueprint).map((t=>{c.blueprint[t].components&&Object.values(c.blueprint[t].components).map((t=>{t.component&&(t.component=null)}))}));{const t={};c.componentManifest&&Object.keys(c.componentManifest).filter((e=>{"true"===c.componentManifest[e].custom&&(t[e]=c.componentManifest[e])})),c.componentManifest={...t}}if(s(ft(r.customizationConstants.SUCCESS_FETCH_WEB_BUILDER,c)),c.database&&!w()(c.database)&&"builder"===o?(s({type:L.databaseConstants.UPDATE_DATABASE_ID,payload:{id:c.database}}),s(P.databaseActions.initialDatabaseFetch(c._id,c.database))):s({type:L.databaseConstants.UPDATE_DATABASE_ID,payload:{id:""}}),"builder"===o){window.location.pathname.includes("/playground")||s(R.functionActions.initialFunctionsFetch(c._id));const t=window.location.pathname.includes("/playground")?c.supabaseBucketId:c._id,e=window.location.pathname.includes("/playground"),n=["_blog","ai-generated"],o=(t=[])=>t.filter((t=>!n.some((e=>t.file_path?.startsWith(`${e}/`)||t.file_path===e))));a.supabaseService.fetchProjectAssets(t,void 0,void 0,e).then((({assets:t=[],total:e,current_storage:n})=>{s({type:D.uiConstants.SET_PROJECT_ASSETS,payload:o(t)}),s(R.uiActions.updateTotalImages(e)),s({type:D.uiConstants.UPDATE_STORAGE_INFO,payload:n})})).catch((t=>console.error("Background asset fetch failed:",t))),a.supabaseService.fetchProjectImages(t,e).then((({assets:t})=>{s(R.uiActions.setProjectImages(o(t)))})).catch((t=>console.error("Background image fetch failed:",t))),a.supabaseService.fetchProjectVideos(t,e).then((({assets:t})=>{s(R.uiActions.setProjectVideos(o(t)))})).catch((t=>console.error("Background video fetch failed:",t)))}"builder"===o&&(c.aiCompanionMode||(s(R.uiActions.setLoaderMessage("Finishing things up")),setTimeout((()=>{s(R.uiActions.setInitialLoadingStatus(!0))}),3e3)))}}catch(m){if(s((0,c.failure)(r.customizationConstants.FAILURE_FETCH_WEB_BUILDER,m.toString())),"builder"===o){const t=p().customization.present.aiCompanionMode;s(R.uiActions.setLoaderMessage("Finishing things up"));setTimeout((()=>{s(R.uiActions.setInitialLoadingStatus(!0))}),t?1e4:3e3)}}}},previewStreaming:function(t,e,n,o,i,a=!0){n||(n="preview");return async(s,c)=>{const l=c();if(l.customization.present.aiCompanionMode)return void console.log("[previewStreaming] Skipping request - aiCompanionMode is already active");-1!=navigator.userAgent.indexOf("Safari")&&navigator.userAgent.indexOf("Chrome");if(l.customization.present.isFetching)s({type:"REQUEST_PENDING"});else{s(dt(r.customizationConstants.REQUEST_FETCH_WEB_BUILDER));class l extends Error{}
1class p extends Error{}const d={method:"GET",headers:{"Content-Type":"text/event-stream","x-access-token":(0,O.getToken)(),"guest-token":""+(0,O.getGuestToken)()}};let f=`${(0,A.returnAPI)()}guest/web-builder/preview-streaming?project=${t}&page=${e}&type=${n}${o?"&user="+o:""}${i?"&public=true":""}`;a&&window.location?.href&&(f+=`&resolveFromURL=true&url=${encodeURIComponent(window.location.href)}&previewMetaIdFallback=true`);v(f,{...d,openWhenHidden:!1,async onopen(t){if(!t.ok)throw t.status>=400&&t.status<500&&429!==t.status?new p:new l},async onmessage(t){let o;if("update"!==t.event)throw new l;try{o=JSON.parse(t.data),o&&(o.blueprint=_t(o),o.blueprint&&(o.blueprint=(0,u.cleanupBlueprintData)(o.blueprint)),pt(o,n,s,c,e))}catch(r){throw new l}},onclose(){throw new l},onerror(t){t instanceof p&&(window.location="/a/dashboard")}})}}},moveToBlueprintFromWB:function(t){return e=>{e(dt(r.customizationConstants.REQUEST_FETCH_WEB_BUILDER)),null!==t.blueprint&&null!=t.blueprint.home.components||(t.blueprint.home.components={}),e(ft(r.customizationConstants.SUCCESS_FETCH_WEB_BUILDER,t))}},updateComponentProps:st,removeComponent:it,storeCroppedImg:function(t){const e=t;return t=>{t(dt(r.customizationConstants.REQUEST_SAVE_CROPPED_IMAGE)),setTimeout((()=>{t(ft(r.customizationConstants.SUCCESS_SAVE_CROPPED_IMAGE,e))}),100)}},storeCurrentComponentId:X,togglePhotosPanel:function(t,e,n="normal"){return async(o,i)=>{const a=i().customization.present.editorMode,s=t?n:"normal";o(R.uiActions.setPhotosPanelMode(s)),o({type:r.customizationConstants.TOGGLE_PHOTOS_PANEL,payload:t,callback:e}),o(R.uiActions.setPhotosPanelLoading(!0));try{"basic"===a&&t&&o(R.uiActions.setRightSideEditPopupType("photos"))}catch(c){console.error("Error fetching project assets:",c)}finally{o(R.uiActions.setPhotosPanelLoading(!1))}}},setStyleSettingsFoldableBlock:V,storeMultipleComponentIds:function(t){if(t!==[])return(e,n)=>{let o,i=n();"string"===typeof t?o=[...i.customization.present.data.currentlySelectedComponentArray,t]:"number"===typeof t&&(o=[]);let a=[...new Set(o)];e({type:r.customizationConstants.STORE_SELECTED_COMPONENT_INTO_ARRAY,payload:a})}},ungroupComponents:function(t,e,n,o){return(i,a)=>{let s=a().customization.present.data.blueprint[n].components[t],c={};s.components&&s.components.map((t=>{t&&t.props&&t.props.componentData&&t.props.componentData.hideIn&&(t.props.componentData.hideIn=t.props.componentData.hideIn.filter((t=>t!==o.currentBreakpoint))),c={...c,[t.uniqueId]:t}})),i(it(t,n,{ungroup:!0})),i(Q(c,n)),e&&i({type:r.customizationConstants.CHANGE_LAYOUT,payload:e,currentView:n}),i(q(c,n,o))}},groupComponents:function(t,e,n,o,i){null==i&&(i={});let a=(0,f.default)(4),s=e.name+a,c={width:e.layouts[i.currentBreakpoint].w,height:e.layouts[i.currentBreakpoint].h},l=e.zIndex?e.zIndex:"navbar"===e.category?500:50;const{currentBreakpoint:u}=i;return t=>{let a,p={author:"Storylens",category:e.category,context:["Homepage",n],custom:!1,main:e.main,name:e.name,props:e.props,client_id:s,type:e.type,tags:e.tags,zIndex:l,components:e.components?e.components:null,wrapper:e.wrapper},d={};"true"===e.wrapper&&(a={lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]},d=function(t,e,n,o){let r={lg:[{w:"duplicate"===o.type||"number"===typeof n.w&&!isNaN(n.w)?n.w.lg||n.w:t.layouts&&t.layouts.lg?t.layouts.lg.w:e.width,h:"duplicate"===o.type?n.h.lg||n.h:t.layouts&&t.layouts.lg?t.layouts.lg.h:e.height,x:"number"!==typeof n.x.lg||isNaN(n.x.lg)?n.x:n.x.lg,y:"number"!==typeof n.y.lg||isNaN(n.y.lg)?n.y:n.y.lg,i:n.c,moved:!1,static:!1,parent:o.parent}],md:[{w:"duplicate"===o.type?n.w.md||n.w:t.layouts&&t.layouts.md?t.layouts.md.w:e.width,h:"duplicate"===o.type?n.h.md||n.h:t.layouts&&t.layouts.md?t.layouts.md.h:e.height,x:"number"!==typeof n.x.md||isNaN(n.x.md)?n.x:n.x.md,y:"number"!==typeof n.y.md||isNaN(n.y.md)?n.y:n.y.md,i:n.c,moved:!1,static:!1,parent:o.parent}],sm:[{w:"duplicate"===o.type?n.w.sm||n.w:t.layouts&&t.layouts.sm?t.layouts.sm.w:e.width,h:"duplicate"===o.type?n.h.sm||n.h:t.layouts&&t.layouts.sm?t.layouts.sm.h:e.height,x:"number"!==typeof n.x.sm||isNaN(n.x.sm)?n.x:n.x.sm,
1y:"number"!==typeof n.y.sm||isNaN(n.y.sm)?n.y:n.y.sm,i:n.c,moved:!1,static:!1,parent:o.parent}]};return["bp_1920","bp_1440","bp_1280"].map((t=>{r={...r,[t]:r.lg}})),r}(e,c,{x:e.layouts[i.currentBreakpoint].x,y:e.layouts[i.currentBreakpoint].y,w:e.layouts[i.currentBreakpoint].w,h:e.layouts[i.currentBreakpoint].h,c:s},i),e.components.map((t=>{a[i.currentBreakpoint]=[...a[i.currentBreakpoint],t.layouts[i.currentBreakpoint]]}))),t({type:r.customizationConstants.CLEAR_SELECTED_COMPONENTS_ARRAY}),t({type:r.customizationConstants.CHANGE_LAYOUT,payload:d,currentView:n}),"true"===e.wrapper&&t({type:r.customizationConstants.ADD_TEMP_LAYOUT,payload:a,currentView:n}),t(at(o,n,u)),t({type:r.customizationConstants.UPDATE_BLUEPRINT,payload:p,currentView:n,currentBreakpoint:u})}},removeLayoutsFromTempLayouts:q,removeComponentFromWrappers:function(t,e){if(t&&t.components.length>1){let n=t.components.map((t=>t.client_id));return(t,o)=>{let r=o(),i=JSON.parse(JSON.stringify(r.customization.present.data.blueprint[e].components)),a={};Object.keys(i).map((t=>{"true"!==i[t].wrapper||!0!==i[t].wrapper?a={...a,[t]:i[t]}:i[t].components&&i[t].components.item((t=>!n.includes(t.client_id)))}))}}},addNewPage:tt,deletePage:function(t){return(e,n)=>{let o=n(),i=o.customization.present.project,a=o.customization.present.data.blueprint;delete a[t],e(dt(r.customizationConstants.REQUEST_DELETE_PAGE,a)),l.customBuilderService.deletePage(t,i).then((t=>{e(ft(r.customizationConstants.SUCCESS_DELETE_PAGE,t))}),(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_DELETE_PAGE,t.toString()))}))}},addNewProject:function(t){return e=>{e(dt(r.customizationConstants.REQUEST_ADD_PROJECT,t)),l.customBuilderService.addNewProject(t).then((n=>
1{e(ft(r.customizationConstants.SUCCESS_ADD_PROJECT,n)),e(tt({name:"Home",url:"/home"},t.uniqueUrl,void 0,{isAddedNewProject:!0,redirect:!1}))}),(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_ADD_PROJECT,t.toString()))}))}},getAllProjects:function(t=1,e="all",n={}){return o=>{o(dt(r.customizationConstants.REQUEST_FETCH_WEB_BUILDERS)),l.customBuilderService.getAllProjects(t,e,n).then((t=>{o(t?ft(r.customizationConstants.SUCCESS_FETCH_WEB_BUILDERS,{data:t.data,pagination:{counts:t.pagination.counts,currentPage:t.pagination.currentPage,totalPages:t.pagination.totalPages,totalItems:t.pagination.totalItems,itemsPerPage:t.pagination.itemsPerPage,hasNextPage:t.pagination.hasNextPage,hasPreviousPage:t.pagination.hasPreviousPage}}):(0,c.failure)(r.customizationConstants.FAILURE_FETCH_WEB_BUILDERS,"Project unavailable"))}),(t=>{o((0,c.failure)(r.customizationConstants.FAILURE_FETCH_WEB_BUILDERS,t.toString()))}))}},deleteProject:function(t,e,n){return(o,i)=>{let a=i(),s=a.customization.present.webBuilders;const u=t._id;let p=n||a.customization.present.project;"undefined"!==typeof u&&(window?.showToast({type:"info",msg:"We're deleting your project. Please wait..."}),o(dt(r.customizationConstants.REQUEST_DELETE_PROJECT,u)),l.customBuilderService.deleteProject(u,p).then((()=>{let t=s.filter((t=>t._id!==u));"function"===typeof e&&e(),window?.showToast({type:"success",msg:"Project successfully deleted."}),o(ft(r.customizationConstants.SUCCESS_DELETE_PROJECT,t))}),(t=>{window?.showToast({type:"info",msg:"Something went wrong. Please try again later or contact support."}),o((0,c.failure)(r.customizationConstants.FAILURE_DELETE_PROJECT,t.toString()))})))}},updateProjectName:function(t){return e=>{e({type:r.customizationConstants.UPDATE_PROJECT_NAME,payload:t})}},updateWebBuilderAdmin:ct,optimizeProject:function(){function t(t){const e=new Blob([JSON.stringify(t)]).size;return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(2)+" KB":(e/1048576).toFixed(2)+" MB"}return(e,n)=>{const o=n(),r=o.customization.present.data.blueprint,i=o.customization.present.data._id,a=t(r);let s={};Object.keys(r).map((t=>{const e=r[t];let n={components:{Global0007:{category:"global",name:"Global",client_id:"Global0007",type:"global"}},layouts:{lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]}};n.meta=e.meta,n.version=e.version,s[t]=(0,E.cleanupBlueprint)(e,"layouts",n)}));const c=t(s);console.log(a,c,i,s,"objectsize"),e(ct({blueprint:s},i))}},saveComponentAsPreset:function(t,e,n){if(t&&e)return(o,i)=>{let a=i().customization.present.project;o(dt(r.customizationConstants.REQUEST_SAVE_AS_PRESET,e)),o(R.uiActions.toggleIsLoading(!0)),l.customBuilderService.saveComponentAsPreset(t,e,n,a).then((t=>{o(ft(r.customizationConstants.SUCCESS_SAVE_AS_PRESET,t.componentManifest)),o(R.uiActions.setDockSidebarActiveMenu("bookmarks")),o(R.uiActions.toggleBookmarkInnerTabs(s.builderConstants.BOOKMARK_PRESET_TAB)),o(R.uiActions.toggleIsLoading(!1))}),(t=>{o((0,c.failure)(r.customizationConstants.FAILURE_SAVE_AS_PRESET,t.toString()))}))}},publishPage:J,prePublishPage:function(t){return(e,n)=>{const o=n(),i=o.customization.present.data,a=o.customization.present.context;let s=o.customization.present.project,l=d()(i.blueprint[a]);l.meta.published=t;const u={[a]:l};e(dt(r.customizationConstants.PUBLISH_PAGE_LAYOUT,t)),mt(u,s,(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_PUBLISH_PAGE_LAYOUT,t.toString()))}));const p=ht({data:u});setTimeout((()=>{e(ft(r.customizationConstants.SUCCESS_PUBLISH_PAGE_LAYOUT,p))}),200)}},toggleShowGrid:function(t){return{type:r.customizationConstants.TOGGLE_SHOW_GRID,payload:t}},updateGoogleFonts:function(t){return{type:r.customizationConstants.SUCCESS_FETCH_GOOGLE_FONTS,payload:[...t]}},fetchGoogleFonts:function(t="trending"){return e=>{e(dt(r.customizationConstants.REQUEST_FETCH_GOOGLE_FONTS)),l.customBuilderService.fetchGoogleFonts(t).then((t=>{const{items:n}=t,o=n.map((t=>t.family));e(ft(r.customizationConstants.SUCCESS_FETCH_GOOGLE_FONTS,o))}),(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_FETCH_GOOGLE_FONTS,t))}))}},resetGoogleFonts:function(){return{type:r.customizationConstants.RESET_GOOG
1LE_FONTS}},updateFontsUsedInSite:K,updateActiveFonts:function(){return(t,e)=>{let n=e().customization.present.data.fonts||[],o=new Set;n&&Object.keys(n).filter((t=>t&&n[t]&&n[t].fontFamily&&o.add(`${n[t].fontFamily}:100,200,300,400,500,600,700,800,900`))),o=Array.from(o)||[],t({type:r.customizationConstants.UPDATE_ACTIVE_FONTS,payload:o})}},updateFontImports:function(t){return e=>{e(dt(r.customizationConstants.REQUEST_IMPORT_FONTS_USED_IN_TEXT_MANIFEST)),setTimeout((()=>{e(ft(r.customizationConstants.SUCCESS_IMPORT_FONTS_USED_IN_TEXT_MANIFEST,[...t]))}),5)}},setFontIsLoading:function(t){return{type:r.customizationConstants.SET_FONT_LOADING_STATUS,payload:t}},saveToServer:function(t,e={}){return(n,o)=>{const i=o();if(i.customization.present.layoutsInitialized){let o=i.customization.present.project,a=i.customization.present.context,s={...i.customization.present.data.blueprint,[a]:{...i.customization.present.data.blueprint[a],layouts:{...i.customization.present.data.blueprint[a].layouts},meta:{...i.customization.present.data.blueprint[a].meta,name:t&&t.name?t.name:i.customization.present.data.blueprint[a].meta.name,description:t&&t.description?t.description:i.customization.present.data.blueprint[a].meta.description,activeBreakpoints:t&&t.activeBreakpoints?t.activeBreakpoints:i.customization.present.data.blueprint[a].meta.activeBreakpoints,autoResponsiveComponents:t&&t.autoResponsiveComponents?t.autoResponsiveComponents:i.customization.present.data.blueprint[a].meta.autoResponsiveComponents}}};n(dt(r.customizationConstants.REQUEST_SAVE_LAYOUT,s)),n(R.uiActions.setCustomizationIsUpdatingFlag(!0)),(0,E.checkIfUndoable)("REQUEST_SAVE_LAYOUT");let c={[a]:{...s[a]}},l={};e.updateLinkedComponent&&e.updatedLinkedComponents&&(c={...c,...e.updatedLinkedComponents},l={linkedComponents:Object.keys(e.updatedLinkedComponents)}),c=(0,u.cleanupBlueprintData)(c),mt(c,o,null,l);const p=ht({data:c});setTimeout((()=>{n(R.uiActions.setCustomizationIsUpdatingFlag(!1)),n(ft(r.customizationConstants.SUCCESS_SAVE_LAYOUT,p))}),200)}}},toggleShowLayout:function(t){return{type:r.customizationConstants.TOGGLE_SHOW_CUSTOM_LAYOUT,payload:t}},setGuidelines:function(t){return{type:r.customizationConstants.UPDATE_GUIDELINES,payload:t}},updateResizeStatus:function(t){return{type:r.customizationConstants.UPDATE_RESIZE_STATUS,payload:t}},updateRecentlySelectedBlock:function(t){return{type:r.customizationConstants.UPDATE_SELECTED_BLOCK,payload:t}},setBuilderCanvasRef:function(t){return e=>{e({type:r.customizationConstants.SET_BUILDER_CANVAS_REF,payload:t})}},setBuilderContainerRef:function(t){return e=>{e({type:r.customizationConstants.SET_BUILDER_CONTAINER_REF,payload:t})}},updateCanvasTransform:Y,updateSidePopupMenu:function(t){return e=>{e({type:r.customizationConstants.UPDATE_SIDE_POPUP_MENU,payload:t})}},updatePreviewImage:function(t,e,n,o){return i=>{i({type:r.customizationConstants.REQUEST_UPDATE_PREVIEW_IMAGE,payload:{url:t,context:e}}),l.customBuilderService.updatePreviewImage(t,e,n,o).then((t=>{i(ft(r.customizationConstants.SUCCESS_UPDATE_PREVIEW_IMAGE,t))}),(t=>{i((0,c.failure)(r.customizationConstants.FAILURE_UPDATE_PREVIEW_IMAGE,t.toString()))}))}},updateColorPalette:function(t){if(!t)return;t.includes("rgb")&&((t=(0,g.default)(t)).startsWith("#")||(t=`#${t}
1`),9===t.length&&(t=t.substring(0,t.length-2)));return(e,n)=>{const o=n();let{context:i,project:a,playground:s}=o.customization.present,c=o.customization.present.data.colorPalette;c=[t,...c];let u=[...new Set(c)];u.length>11&&(u.length=11),l.customBuilderService.updateBlueprint("colorPalette",u,a,i,{playground:s}).then((()=>{e({type:r.customizationConstants.UPDATE_COLOR_PALETTE,payload:u})}))}},fetchKBArticles:function(t){const e="edbsn736ce6759a3bba02110ca436347f0bd6ea236db6f8a3426ebb9fbdd37f021ce1",n="https://desk.zoho.com/portal/api/kbArticles";if(!t)return;return async o=>{o({type:r.customizationConstants.REQUEST_FETCH_KB_ARTICLE,payload:t});const i=`${n}?categoryId=490283000000921001&portalId=${e}&sortBy=createdTime`;l.customBuilderService.fetchKBArticles(i).then((async t=>{if(!t||t&&!t.data)o((0,c.failure)(r.customizationConstants.FAILURE_FETCH_KB_ARTICLE,"Couldn't fetch help articles"));else try{if(t.data.length>0){const i=(await Promise.all(t.data.map((t=>{const o=`${n}/${t.id}?portalId=${e}`;return l.customBuilderService.fetchKBArticles(o)})))).map((t=>({title:t.title,content:t.answer})));i&&i.length>0?o(ft(r.customizationConstants.SUCCESS_FETCH_KB_ARTICLE,i)):o((0,c.failure)(r.customizationConstants.FAILURE_FETCH_KB_ARTICLE,"No articles found"))}}catch(i){o((0,c.failure)(r.customizationConstants.FAILURE_FETCH_KB_ARTICLE,i))}}),(t=>{o((0,c.failure)(r.customizationConstants.FAILURE_FETCH_KB_ARTICLE,t))}))}},toggleGlobalShiftKey:function(t){return(e,n)=>{const o=n().customization.present.globalShiftKey;(t||o&&!t)&&e({type:r.customizationConstants.TOGGLE_GLOBAL_SHIFT_KEY,payload:t})}},setTempFontFamilies:function(t=[]){return{type:r.customizationConstants.SET_TEMP_FONT_FAMILIES,payload:t}},copyProject:function(t,e){return n=>{n(dt(r.customizationConstants.REQUEST_COPY_PROJECT)),l.customBuilderService.copyProject(t,e).then((()=>{n(dt(r.customizationConstants.SUCCESS_COPY_PROJECT))})).catch((t=>{n((0,c.failure)(r.customizationConstants.FAILURE_COPY_PROJECT,t.toString()))}))}},fetchClient:function(t,e){return(n,o)=>{let i=o().customization.present.activeFonts||[];function a(t){if(0===i.length){let e=new Set;t.fonts&&Object.keys(t.fonts).filter((n=>n&&t.fonts[n]&&t.fonts[n].fontFamily&&!t.fonts[n].fontFamily?.startsWith("var(--")&&e.add(`${t.fonts[n].fontFamily}:100,200,300,400,500,600,700,800,900`))),e=Array.from(e)||[],n({type:r.customizationConstants.UPDATE_ACTIVE_FONTS,payload:e})}let e={};if(t.functions){const o=t.functions;Array.isArray(o)||Object.keys(o).map((t=>{e[t]={...o[t]}})),n(ft(r.functionConstants.FUNCTION_FETCH_SUCCESS,e)),delete t.functions}t&&t.blueprint&&(t.blueprint=(0,u.cleanupBlueprintData)(t.blueprint)),n(ft(r.customizationConstants.SUCCESS_FETCH_HOST,t||{}))}n(dt(r.customizationConstants.REQUEST_FETCH_HOST)),window.ccData?.fetchedData?a(window.ccData?.fetchedData):l.commonServices.fetchClient(t,e).then((t=>{a(t)}),(t=>{400===t.status&&n({type:r.customizationConstants.CLIENT_DEPLOY_PENDING}),n((0,c.failure)(r.customizationConstants.FAILURE_FETCH_HOST,t.statusText))}))}},toggleHostStatus:function(t){return e=>{e({type:r.customizationConstants.TOGGLE_HOST_STATUS,payload:t})}},addDomainToProject:function(t,e){return(n,o)=>{let i=o().user.data._id;n(dt(r.customizationConstants.REQUEST_ADD_DOMAIN_TO_PROJECT)),l.customBuilderService.addDomainToProject(t,e,i).then((()=>{n(ft(r.customizationConstants.SUCCESS_ADD_DOMAIN_TO_PROJECT,{domain:t}))})).catch((t=>{n((0,c.failure)(r.customizationConstants.FAILURE_ADD_DOMAIN_TO_PROJECT,t.toString()))}))}},addSubdomainToProject:function(t,e,n={}){return(o,i)=>{const a=i();let s=a.user.data._id;const u=a.customization.present.context;o(dt(r.customizationConstants.REQUEST_ADD_SUB_DOMAIN_TO_PROJECT)),l.customBuilderService.addSubdomainToProject(t,e,s).then((()=>{o(R.uiActions.setPublishSiteLoadingStatus(!1)),o(ft(r.customizationConstants.SUCCESS_ADD_SUB_DOMAIN_TO_PROJECT,t)),n&&n.publishAfterAdd&&o(J(u,e,n.activeStatus))})).catch((t=>{o(R.uiActions.setPublishSiteLoadingStatus(!1)),o((0,c.failure)(r.customizationConstants.FAILURE_ADD_SUB_DOMAIN_TO_PROJECT,t.toString()))}
1))}},updateActiveStatus:function(t,e){return n=>{n("domain"===t?{type:r.customizationConstants.UPDATE_DOMAIN_ACTIVE_STATUS,payload:e}:{type:r.customizationConstants.UPDATE_SUB_DOMAIN_ACTIVE_STATUS,payload:e})}},saveCustomCode:function(t,e){return(n,o)=>{if(!t||!["js","css"].includes(t))return;const i=o();let{project:a,context:s,playground:u}=i.customization.present;n(dt(r.customizationConstants.REQUEST_SAVE_CUSTOM_CODE)),l.customBuilderService.updateBlueprint(t.toLowerCase(),e,a,s,{playground:u}).then((()=>{setTimeout((()=>n(ft(r.customizationConstants.SUCCESS_SAVE_CUSTOM_CODE,{[t]:e||("css"===t?"/*\n\n                  Note: For display flex to work, you have to add \n                  \n                  .your-class-name{\n                    display:flex;\n                  }\n                  \n                  .your-class-name > div {\n                    position: static !important;\n                  }\n                  \n                  */\n                  \n                  /* place css code */":"js"===t?"// Add your JS here":"")}))),1e3)})).catch((t=>{n((0,c.failure)(r.customizationConstants.FAILURE_SAVE_CUSTOM_CODE,t.toString())),setTimeout((()=>n({type:r.customizationConstants.CLEAR_CUSTOM_CODE_ERROR})),5e3)}))}},toggleAPIEditor:function(t){return e=>{e({type:r.customizationConstants.TOGGLE_API_EDITOR,payload:t})}},updateFormState:W,updateHiddenLayouts:function(t){return(e,n)=>{const o=n(),i=o.customization.present.context;let a=o.customization.present.project,s={};s[i]={...o.customization.present.data.blueprint[i],hiddenLayouts:t},mt(s,a,null),e({type:r.customizationConstants.UPDATE_HIDDEN_LAYOUTS,payload:t,context:i})}},makeExternalRequest:$,submitGenericForm:function(t){return(e,n)=>{const o=n(),i=o.customization.present.context;const a=d()(o.customization.present.data.blueprint)[i];let s=(0,E.findImmediateFormParent)(t,a);if(s){let t,n=(0,E.generateFormParameters)(s,a)||[],i=(0,u.checkNested)(a,"components",s,"props","componentData","apiIntegration")&&a.components[s].props.componentData.apiIntegration,l=(0,u.checkNested)(a,"components",s,"props","componentData","form","successUrl")&&a.components[s].props.componentData.form.successUrl,p=o.customization.present.data.apiIntegrations;p&&Object.keys(p).map((e=>{p[e].find((t=>t.id===i))&&(t=e)})),e(t&&i&&n?$({id:i},t,n,{clientId:s,updateState:!0,successUrl:l}):(0,c.failure)(r.customizationConstants.FAILURE_GENERIC_API_CALL,{status:400,ok:!1,json:{message:"Couldn't initiate call"},text:JSON.stringify({message:"Couldn't initiate call"})}))}}},openWorkflow:function(t){return e=>{const n=window.location.host,o=`${window.location.protocol}//${n}/workflow/${t}`;e({type:r.customizationConstants.OPEN_WORKFLOW,payload:t}),window.open(o,"_blank")}},initiateCanvas:function(){return t=>{t({type:r.customizationConstants.INITIATE_CANVAS})}},setContentLimitation:function(t=""){return e=>{e({type:r.customizationConstants.SET_CONTENT_LIMITATION_BUILDER,payload:t})}},updateIframeDocument:function(t){return e=>{e({type:r.customizationConstants.UPDATE_IFRAME_DOCUMENT,payload:{...t}})}},markUndoStoringCompleted:z,fetchTemplates:function(){return t=>{t(dt(r.customizationConstants.REQUEST_FETCH_TEMPLATES)),l.customBuilderService.fetchTemplates().then(((e={})=>{const{featured:n,recommended:o,...i}=e;t(ft(r.customizationConstants.SUCCESS_FETCH_TEMPLATES,i))}),(e=>{t((0,c.failure)(r.customizationConstants.FAILURE_FETCH_TEMPLATES,e.toString()))}))}},fetchComponentManifest:function(){return t=>{t(dt(r.customizationConstants.REQUEST_FETCH_COMPONENT_MANIFEST)),l.customBuilderService.fetchComponentManifest().then(((e={})=>{const{featured:n,recommended:o,...i}=e?.data||{};let a={};Object.keys(i).map((t=>{a[t]={...i[t],...e.extras||{}}})),t(ft(r.customizationConstants.SUCCESS_FETCH_COMPONENT_MANIFEST,a))}),(e=>{t((0,c.failure)(r.customizationConstants.FAILURE_FETCH_COMPONENT_MANIFEST,e.toString()))}))}},onetime:function(t,e,n={}){return e?(o,i)=>{const a=i();let{project:s,context:c,playground:u}=a.customization.present,p="blueprint"===t?"data":t;l.customBuilderService.updateBlueprint(p,e,s,c,{...n,playground:u}).then((()=>{o({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT_SUCCESS}),window.location.reload()}),(t=>{o({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT_FAILURE,payload:t.toString()}),console.error("error occured",t)}))}:null},fetchTemplateByKey:function(t){return(e,n)=>{e(dt(r.customizationConstants.REQUEST_FETCH_TEMPLATE_BY_KEY)),l.customBuilderService.fetchTemplateByKey(t).then((t=>{e(ft(r.customizationConstants.SUCCESS_FETCH_TEMPLATE_BY_KEY,t)),pt(t,"preview",e,n,"home")}),(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_FETCH_TEMPLATE_BY_KEY,t.toString()))}
1))}},fetchVersionHistory:function(t=0,e=10){return(n,o)=>{const i=o(),a=i.customization.present.context;let s=i.customization.present.project;n(dt(r.customizationConstants.REQUEST_FETCH_VERSIONS)),l.customBuilderService.fetchVersions(s,a,t,e).then((t=>{n(ft(r.customizationConstants.SUCCESS_FETCH_VERSIONS,t))}),(t=>{n((0,c.failure)(r.customizationConstants.FAILURE_FETCH_VERSIONS,t.toString()))}))}},updateUIState:function(t={}){return e=>{e({type:r.customizationConstants.UPDATE_UI_STATE,payload:t})}},exitBuilderTasks:function(){return t=>{t(R.uiActions.reset()),t(R.uiActions.setInitialLoadingStatus(!1)),t(P.databaseActions.reset()),t(R.functionActions.reset()),t({type:r.customizationConstants.RESET_CUSTOMIZATION_STATE}),window.childWindow=null}},toggleTextEditorOutline:function(t){return e=>{e({type:r.customizationConstants.TOGGLE_TEXT_EDITOR_OUTLINE,payload:t})}},updateDragPlaceholder:function(t){return e=>{e({type:r.customizationConstants.UPDATE_DRAG_PLACEHOLDER,payload:t})}},dropStart:function(t){return e=>{e({type:r.customizationConstants.DROP_UPDATE,payload:t})}},dropEnd:function(){return t=>{t({type:r.customizationConstants.DROP_UPDATE,payload:!1})}},storeBgImageTemp:function(t){return{type:r.customizationConstants.STORE_BG_IMAGE,payload:t}},setTempBgImageChangedIndex:function(t){return{type:r.customizationConstants.SET_BG_IMAGE_CHANGED_INDEX,payload:t}},setBackgroundMultilistExpandedIds:function(t){return{type:r.customizationConstants.SET_BG_MULTILIST_EXPANDED_IDS,payload:t}},fetchTemplatesV2:function(t){return e=>{e(dt(r.customizationConstants.REQUEST_FETCH_TEMPLATES_V2)),l.customBuilderService.fetchTemplatesV2(t).then(((t=[])=>{e(ft(r.customizationConstants.SUCCESS_FETCH_TEMPLATES_V2,t))}),(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_FETCH_TEMPLATES_V2,t.toString()))}))}},fetchComponentLibraryV2:function(){return t=>{t(dt(r.customizationConstants.REQUEST_FETCH_COMPONENT_LIBRARY_V2)),l.customBuilderService.fetchTemplatesV2("components").then(((e=[])=>{t(ft(r.customizationConstants.SUCCESS_FETCH_COMPONENT_LIBRARY_V2,e))}),(e=>{t((0,c.failure)(r.customizationConstants.FAILURE_FETCH_COMPONENT_LIBRARY_V2,e.toString()))}))}},updateDatabaseTablesWithNotificationEnabled:function(t){return(e,n)=>{e(M.updateBlueprintContents("databaseTablesWithNotificationEnabled",t,!0))}},updateWebHooks:function(t,e){if(!e)return;return(n,o)=>{const r={...o().customization.present.data.databaseWebHooks,[e]:t};n(M.updateBlueprintContents("databaseWebHooks",r,!0))}},transferProjectOwnership:function(t,e=(()=>{})){return async(n,o)=>{let i=o().customization.present.project;n(dt(r.customizationConstants.REQUEST_TRANSFER_OWNERSHIP_START));try{const o=await l.customBuilderService.transferProjectOwnership(t,i);n(dt(r.customizationConstants.SUCCESS_TRANSFER_OWNERSHIP_START,o)),e()}catch(a){n(dt(r.customizationConstants.FAILURE_TRANSFER_OWNERSHIP_START))}}},moveGuestProjectToDashboard:function(t,e={}){const{subdomain:n}=e;return async t=>{0}},saveGuestProjectToAICompanion:function(t,e={}){return async t=>{0}},setupAICompanionSandbox:et,archiveAICompanionSandbox:function(t){return async e=>{try{const e=await l.customBuilderService.archiveAICompanionSandbox(t);if(!e&&!1===e?.success)throw new Error("Archive request did not return success");return window.location.reload(),e}catch(n){throw console.error("Failed to archive AI companion sandbox:",n),n}}},setAICanvasOverlay:function(t){return console.log("[setAICanvasOverlay] Setting overlay to:",t),{type:r.customizationConstants.SET_AI_CANVAS_OVERLAY,payload:t}},setAICompanionIframeContext:function(t){return{type:r.customizationConstants.SET_AI_COMPANION_IFRAME_CONTEXT,payload:t}},clearAICompanionNavigationLoading:function(){return{type:r.customizationConstants.CLEAR_AI_COMPANION_NAVIGATION_LOADING}},refreshAICompanionPages:function(){return{type:r.customizationConstants.REFRESH_AI_COMPANION_PAGES}},setAICompanionMode:function(t){return{type:r.customizationConstants.SET_AI_COMPANION_MODE,payload:t}},setAICompanionIframeLoaded:function(t){return{type:r.customizationConstants.SET_AI_COMPANION_IFRAME_LOADED,payload:t}},setAICompanionIframeLoadError:nt,resetAICompanionIframeLoadState:ot,setAICompanionSelectedElement:function(t){return{type:r.customizationConstants.SET_AI_COMPANION_SELECTED_ELEMENT,payload:t}}
1,addAICompanionClickedElement:function(t){return{type:r.customizationConstants.ADD_AI_COMPANION_CLICKED_ELEMENT,payload:t}},removeAICompanionClickedElement:function(t){return{type:r.customizationConstants.REMOVE_AI_COMPANION_CLICKED_ELEMENT,payload:t}},clearAICompanionClickedElements:function(){return{type:r.customizationConstants.CLEAR_AI_COMPANION_CLICKED_ELEMENTS}},setAICompanionChatInteractionEnabled:function(t){return{type:r.customizationConstants.SET_AI_COMPANION_CHAT_INTERACTION_ENABLED,payload:t}},setAICompanionLiveEditStatus:function(t){return{type:r.customizationConstants.SET_AI_COMPANION_LIVE_EDIT_STATUS,payload:t}},setAICompanionPreviewMode:function(t){return{type:r.customizationConstants.SET_AI_COMPANION_PREVIEW_MODE,payload:t}},setProjectPrompt:function(t){return{type:r.customizationConstants.STORE_PROJECT_PROMPT,payload:t}},setTryProjectPromptAgainFlag:function(t){return{type:r.customizationConstants.STORE_FLAG_TO_TRY_PROMPT_AGAIN,payload:t}},assignLifetimeLicense:function(t){return(e,n)=>{let o=n().customization.present.project;e({type:r.customizationConstants.REQUEST_ASSIGN_LICENSE}),l.customBuilderService.assignLicense(t,"lifetime",o).then(((n={})=>{e(ft(r.customizationConstants.SUCCESS_ASSIGN_LICENSE,n));const o="add"===t?"assigned":"removed";window?.showToast({type:"success",msg:`License ${o} successfully!`}),window.location&&window.location.reload()}),(t=>{window?.showToast({type:"error",msg:"Something went wrong. Please try again later or contact support"}),e((0,c.failure)(r.customizationConstants.FAILURE_ASSIGN_LICENSE))}))}},assignWorkspaceLicense:function(t){return(e,n)=>{let o=n().customization.present.project;e({type:r.customizationConstants.REQUEST_ASSIGN_LICENSE}),l.customBuilderService.assignWorkspaceLicense(t,"lifetime",o).then(((n={})=>{e(ft(r.customizationConstants.SUCCESS_ASSIGN_LICENSE,n));const o="add"===t?"assigned":"removed";window?.showToast({type:"success",msg:`License ${o} successfully!`}),window.location&&window.location.reload()}),(t=>{window?.showToast({type:"error",msg:"Something went wrong. Please try again later or contact support"}),e((0,c.failure)(r.customizationConstants.FAILURE_ASSIGN_LICENSE))}))}},assignSubscriptionLicense:function(t){return(e,n)=>{let o=n().customization.present.project;e({type:r.customizationConstants.REQUEST_ASSIGN_LICENSE}),l.customBuilderService.assignLicense(t,"subscription",o).then(((t=[])=>{window.location.reload(),e(ft(r.customizationConstants.SUCCESS_ASSIGN_LICENSE,t))}),(t=>{window?.showToast({type:"error",msg:"Something went wrong. Please try again later or contact support"}),e((0,c.failure)(r.customizationConstants.FAILURE_ASSIGN_LICENSE))}))}},duplicateProject:function(t){return(e,n)=>{n();e({type:r.customizationConstants.REQUEST_DUPLICATE_PROJECT});window?.showToast({type:"info",msg:"We're duplicating your project. Please wait..."}),l.customBuilderService.duplicateProject(t).then(((t=[])=>{{const t="Project successfully duplicated. Reloading... ";window?.showToast({type:"success",msg:t}),setTimeout((()=>{window.location.reload()}),2e3)}e(ft(r.customizationConstants.SUCCESS_DUPLICATE_PROJECT,t))}),(t=>{window?.showToast({type:"error",msg:"Something went wrong. Please try again later or contact support"}),e((0,c.failure)(r.customizationConstants.FAILURE_DUPLICATE_PROJECT))}))}},duplicatePage:function(t){return(e,n)=>{let o=n().customization.present.project;e({type:r.customizationConstants.REQUEST_DUPLICATE_PAGE});window?.showToast({type:"info",msg:"We're duplicating your page. Please wait..."}),l.customBuilderService.duplicatePage(t,o).then(((t=[])=>{{const t="Page successfully duplicated. Reloading...";window?.showToast({type:"success",msg:t}),setTimeout((()=>{window.location.reload()}),2e3)}e(ft(r.customizationConstants.SUCCESS_DUPLICATE_PAGE,t))}),(t=>{window?.showToast({type:"error",msg:"Something went wrong. Please try again later or contact support"}),e((0,c.failure)(r.customizationConstants.FAILURE_DUPLICATE_PAGE))}))}},setRecentlyEditedComponent:function(t){return e=>{e({type:r.customizationConstants.SET_RECENTLY_EDITED_COMPONENT,payload:t})}},updateBackupName:function(t,e){return(n,o)=>{let i=o().customization.present.project;n({type:r.customizationConstants.REQUEST_UPDATE_BACKUP_NAME}),l.customBuilderService.updateBackupName(i,e,t).then(((t=[])=>{n(ft(r.customizationConstants.SUCCESS_UPDATE_BACKUP_NAME,t))}),(t=>{window?.showToast({type:"error",msg:"Couldn't update backup name. Please try again later or contact support"}),n((0,c.failure)(r.customizationConstants.FAILURE_UPDATE_BACKUP_NAME))}))}},clearVersionHistory:function(){return t=>{t({type:r.customizationConstants.CLEAR_VERSION_HISTORY})}},restoreBackup:function(t){return(e,n)=>{let o=n().customization.present.project;e({type:r.customizationConstants.REQUEST_RESTORE_BACKUP});const a=window?.showToast({type:"info",msg:"Restore in progress...",timer:5e3});l.customBuilderService.restoreBackup(o,t).then(((t=[])=>{i.Am.dismiss(a),window?.showToast({type:"success",msg:"Restore completed successfully! Reloading...",timer:5e3}),setTimeout((()=>{window.location.reload()}),3e3),e(ft(r.customizationConstants.SUCCESS_RESTORE_BACKUP,t))}),(t=>{showToast({type:"error",msg:"Restore failed. Contact support if this persists",timer:5e3,updateId:a}),e((0,c.failure)(r.customizationConstants.FAILURE_RESTORE_BACKUP))}))}},deleteBackup:function(t){return(e,n)=>{let o=n().customization.present.project;e({type:r.customizationConstants.REQUEST_DELETE_BACKUP}),l.customBuilderService.deleteBackup(o,t).then(((n=[])=>{e(ft(r.customizationConstants.SUCCESS_DELETE_BACKUP,t))}),(t=>{window?.showToast({type:"error",msg:"Couldn't delete backup. Please try again later or contact support"}),e((0,c.failure)(r.customizationConstants.FAILURE_DELETE_BACKUP))}))}},hideElementsOfPage:function(t){return(e,n)=>{const o=n(),{blueprint:i}=o.customization.present.data;let a=i[t];Object.keys(a.components).map((t=>{let e=a.components[t];(e.isElementCanvasHidden||!1)&&((a.meta.canvasHiddenElements||[]).includes(e.client_id)||(a={...a,meta:{...a.meta,canvasHiddenElements:[...a.meta.canvasHiddenElements||[],e.client_id]}}))})),e({type:r.customizationConstants.UPDATE_BP_ONLY,payload:{...i,[t]:a}})}},generateWordPressAPIKey:function(){return(t,e)=>{let n=e().customization.present.project;t({type:r.customizationConstants.REQUEST_GENERATE_WP_API_KEY}),l.customBuilderService.generateWordPressAPIKey(n).then((e=>{t(ft(r.customizationConstants.SUCCESS_GENERATE_WP_API_KEY,e))}),(e=>{window?.showToast({type:"error",msg:"Couldn't generate WordPress API key. Please try again later or contact support"}),t((0,c.failure)(r.customizationConstants.FAILURE_GENERATE_WP_API_KEY))}))}},disconnectWordpress:function(t){return(e,n)=>{let o=n().customization.present.project;e({type:r.customizationConstants.REQUEST_DISCONNECT_WORDPRESS}),l.customBuilderService.disconnectWordpress(t,o).then((t=>{e(ft(r.customizationConstants.SUCCESS_DISCONNECT_WORDPRESS,t))}),(t=>{window?.showToast({type:"error",msg:"Couldn't generate WordPress API key. Please try again later or contact support"}),e((0,c.failure)(r.customizationConstants.FAILURE_DISCONNECT_WORDPRESS))}))}},markAsHomePage:function(t){return(e,n)=>{const o=n().customization.present.project;window?.showToast({type:"info",msg:"Please wait while we are moving the pages..."}),l.customBuilderService.markAsHomePage(o,t).then((t=>{window.location.href=window.location.origin+`/app/builder?project=${o}#home`,window.location.reload(!0)}),(t=>{window?.showToast({type:"error",msg:"There was an error moving pages... Please try again later or contact support."})}))}},generateAIForPage:function(t="",e=""){return(n,o)=>{const i=o(),a=i.customization.present.data.uniqueUrl,s=i.customization.present.context;n({type:r.customizationConstants.REQUEST_GENERATE_AI_FOR_PAGE}),l.customBuilderService.generateAIForPage(a,s,t,e).then((async t=>{let e={};const o=_t({blueprint:t.blueprint});Object.keys(o||{}).map((t=>{let n=o?.[t]||{};"linkedComponent"===n?.meta?.type&&(e[t]=n)}));const i=o?.[s],a=await(0,E.importBasicComponents)(i.components);i.components={...i.components,...a},n(ft(r.customizationConstants.SUCCESS_GENERATE_AI_FOR_PAGE,{context:s,page:i,linkedComponentBlueprints:e})),n(R.uiActions.setShowGeneratePageModal(!1))}),(t=>{window?.showToast({type:"error",msg:"Something went wrong. Please try again later or contact support"}),n((0,c.failure)(r.customizationConstants.FAILURE_GENERATE_AI_FOR_PAGE))}))}},unlinkVariablesUsedInProject:function(t,e,n=(()=>"")){return(o,i)=>{const a=i().customization.present.data.uniqueUrl;o(dt(r.customizationConstants.REQUEST_UNLINK_VARIABLES_USED_IN_PROJECT)),window?.showToast({type:"info",msg:"deleting variable and unlinking all references..."}),l.customBuilderService.unlinkVariablesUsedInProject(a,t,e).then((()=>{const{updatedBlueprint:i,updatedClasses:a}=(0,E.unlinkVariablesUsedInProjectHelper)(t,e);o(ft(r.customizationConstants.SUCCESS_UNLINK_VARIABLES_USED_IN_PROJECT,{blueprint:i,classes:a})),n(),window?.showToast({type:"success",msg:"variable deleted successfully"})}),(t=>{o((0,c.failure)(r.customizationConstants.FAILURE_UNLINK_VARIABLES_USED_IN_PROJECT)),window?.showToast({type:"error",msg:"Something went wrong. Please try again later or contact support"})}))}},updateComponentFieldMappingFromSocket:function(t){return(e,n)=>{const o=n();let r=d()(o.customization.present.data.blueprint);const{componentFieldMapping:i={},context:a,...s}=t,{isLinkedComponentInstance:c,linkedComponentMetaId:l,linkedComponentMapping:u}=s;let p=r[a];c&&(p=r[l]),Object.keys(i).map((t=>{p.components[t].props.componentData={...p.components[t].props.componentData,fieldId:i[t]}})),e(ut("blueprint",r,!1))}},updateNotificationEmailSettings:function(t,e,n={}){const{makeAPICall:o=!0}=n;return(n,r)=>{const i={...r().customization.present.data.notificationEmailSettings,formNotifications:e,emailAddresses:t};n(R.uiActions.updatingEmailNotify(!0)),n(M.updateBlueprintContents("notificationEmailSettings",i,o,{},{},(()=>{n(R.uiActions.updatingEmailNotify(!1))})))}},switchEditorMode:function(t,e=null){return(n,o)=>
1{if(n({type:r.customizationConstants.SWITCH_EDITOR_MODE,payload:t}),n(R.uiActions.setAddElementFlag(!1)),n(R.uiActions.setAddElementFromCanvasBodyFlag(!1)),"basic"===t)n(Y(1)),n(R.uiActions.setShowElementFloatingPopup(!1)),n(R.uiActions.setRightSideEditPopupType(null));else{const t=o().customization.present.data.view;n(Z(t))}n(R.uiActions.layoutShiftRequired("edit-panel")),requestIdleCallback((()=>{n(R.uiActions.setDockSidebarActiveMenu(e||"componentEdit"))}))}},updatePlaygroundDocumentHeadFlag:function(t){return e=>{e({type:r.customizationConstants.UPDATE_PLAYGROUND_DOCUMENT_HEAD_FLAG,payload:t})}},setAiOnboarding:G,generateMetaFromPrompt:B,createProjectFromPrompt:H,createCustomAIWorkflowFromPrompt:function(t,e={}){const n=e.notionTemplate||"custom-ai-workflow-template",o=t?.trim?.()||"";return t=>(t({type:r.customizationConstants.REQUEST_CREATE_CUSTOM_AI_WORKFLOW}),l.customBuilderService.createCustomAIWorkflowFromPrompt({prompt:o,notionTemplate:n,extras:e.extras,apiType:e.apiType}).then((e=>{const n=e?.uniqueUrl||e?.data?.uniqueUrl,o=e?.exportCompleted||e?.data?.exportCompleted;return t(ft(r.customizationConstants.SUCCESS_CREATE_CUSTOM_AI_WORKFLOW,{uniqueUrl:n,exportCompleted:!!o})),e}),(e=>{const n="string"===typeof e?e:e?.message||"Something went wrong.";throw t((0,c.failure)(r.customizationConstants.FAILURE_CREATE_CUSTOM_AI_WORKFLOW,n)),e})))},checkTemplate:function(t){return(e,n)=>{e({type:r.customizationConstants.REQUEST_CHECK_TEMPLATE}),l.customBuilderService.checkTemplate(t).then((t=>{e(ft(r.customizationConstants.SUCCESS_CHECK_TEMPLATE,t))}),(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_CHECK_TEMPLATE))}))}},handleRegenerateAIProject:function(){return(t,e)=>{let n={...e().customization.present.aiOnboarding,...JSON.parse(localStorage.getItem("aiOnboardingLS"))};if(h.default.track("aiOnboardV2 - Regenerating AI Project",{previousLogId:n.logId,category:n.category,businessName:n.businessName,location:n.location,keywords:n.keywords,projectName:n.projectName,language:n.language,isFunnel:n.isFunnel,aiService:n.aiService,objective:n.objective,prompt:n.prompt,templateId:n.templateId}),_.default.track("aiOnboardV2 - Regenerating AI Project",{previousLogId:n.logId,category:n.category,businessName:n.businessName,location:n.location,keywords:n.keywords,projectName:n.projectName,language:n.language,isFunnel:n.isFunnel,aiService:n.aiService,objective:n.objective,prompt:n.prompt,templateId:n.templateId}),n?.objective||n?.templateId){if(n?.businessName&&n?.category){const e=(0,m.Z)();return t(G({...n,logId:e,currentStep:"loading-screen",hasErrorOnCreateProjectFromPrompt:!1,errorMsgOnCreateProjectFromPrompt:""})),void t(H(n.prompt,n.templateId,{logId:e,category:n.category,businessName:n.businessName,location:n.location,keywords:n.keywords,projectName:n.projectName,language:n.language,isFunnel:n.isFunnel,aiService:n.aiService,objective:n.objective,setting:"default",errorAction:e=>{t(G({...n,currentStep:"loading-screen",hasErrorOnCreateProjectFromPrompt:!0,errorMsgOnCreateProjectFromPrompt:e}))}}))}return t(G({...n,currentStep:"2"})),void t(B({prompt:n.prompt,objective:n.objective,isFunnel:n.isFunnel,aiService:n.aiService,language:n.language}))}t(G({...n,currentStep:"0"}))}},updateStaticMedia:function(t,e){return(n,o)=>{const i=function(t,e,n){return t.map((t=>t.src===e?null===n?{...t,src:""}:{...t,...n}:t)).filter((t=>""!==t.src))}(o().customization.present.data.staticMedia,t,e);n({type:r.customizationConstants.UPDATE_STATIC_MEDIA,payload:i})}},searchProjects:function(t,e){return async(n,o)=>{try{n(yt()),n({type:r.customizationConstants.REQUEST_SEARCH_PROJECTS});o().user.data._id;const i=await l.customBuilderService.getAllProjects(1,e,{searchTerm:t});i.data&&i.data.length>0?n(gt(i.data)):n(gt([]))}catch(i){console.error("[Search] Error:",i),n(function(t){return{type:r.customizationConstants.FAILURE_SEARCH_PROJECTS,payload:t}}(i))}}},clearSearchResults:yt,disconnectZapier:function(){return(t,e)=>{let n=e().customization.present.project;t({type:r.customizationConstants.REQUEST_DISCONNECT_ZAPIER}),l.customBuilderService.disconnectZapier(n).then((e=>{t(ft(r.customizationConstants.SUCCESS_DISCONNECT_ZAPIER,e))}),(e=>{window?.showToast({type:"error",msg:"Couldn't remove Zapier integration. Please contact support if the issue persists"}),t((0,c.failure)(r.customizationConstants.FAILURE_DISCONNECT_ZAPIER))}))}},connectWithZapier:function(){return(t,e)=>{let n=e().customization.present.project;t({type:r.customizationConstants.REQUEST_CONNECT_ZAPIER}),l.customBuilderService.connectWithZapier(n).then((e=>{t(ft(r.customizationConstants.SUCCESS_CONNECT_ZAPIER,e)),e.redirectURL&&(window.location.href=e.redirectURL)}),(e=>{window?.showToast({type:"error",msg:"Couldn't add Zapier integration. Please contact support if the issue persists"}),t((0,c.failure)(r.customizationConstants.FAILURE_CONNECT_ZAPIER))}))}},executeAICommand:function(t,e,n,o={}){return i=>{i({type:r.customizationConstants.REQUEST_AI_COMMAND_EXECUTE}),i(R.uiActions.setCommandPaletteState(Tt)),_.default.track("aiMagicV2 - start execute ai command",{commandType:t,projectId:e,input:n,options:o,timestamp:(new Date).toISOString()}),l.customBuilderService.executeAICommand(t,e,n,o).then((t=>{if(!t.success)throw new Error(t.message||"AI command failed");_.default.track("aiMagicV2 - success execute ai command",{commandType:t.commandType,projectId:e,input:n,options:o,response:t,usage:t.usage,timestamp:t.timestamp}),i({type:r.customizationConstants.SUCCESS_AI_COMMAND_EXECUTE,payload:{...t.data,commandType:t.commandType,requiresAcceptance:t.requiresAcceptance,usage:t.usage,timestamp:t.timestamp}}),i(R.uiActions.setCommandPaletteState(Ct))})).catch((a=>{_.default.track("aiMagicV2 - failure execute ai command",{commandType:t,projectId:e,input:n,options:o,error:a,errorFlag:a?.errorFlag||"UNKNOWN_ERROR",timestamp:(new Date).toISOString()}),i({type:r.customizationConstants.FAILURE_AI_COMMAND_EXECUTE,payload:{errorFlag:a?.errorFlag||"UNKNOWN_ERROR",message:a?.message||a?.error||"AI command failed"}}),i(R.uiActions.setCommandPaletteState(bt))}))}},acceptAIResult:function({projectId:t,commandType:e,resultData:n,saveToAssets:o=!0,replaceImageComponentSrc:i=!1}){return(a,s)=>{a({type:r.customizationConstants.REQUEST_AI_COMMAND_RESULT_ACCEPT}),l.customBuilderService.acceptAIResult(t,e,n,o).then((n=>{if(!n.success)throw new Error(n.message||"Failed to accept result");if(a({type:r.customizationConstants.SUCCESS_AI_COMMAND_RESULT_ACCEPT,payload:n.data}),i){const t=n?.data?.imageUrl,e=s(),o=e.customization.present.data.blueprint,r=e.customization.present.context,i=e.customization.present.data.currentlySelectedComponentId;if(t&&i&&o[r]?.components[i]){const e=o[r].components[i],n={client_id:i,context:r,props:{...e.props,src:t},zIndex:e.zIndex};a(st(n))}}else if(o){const t=n.data;let e={asset_id:t.path||t.imageUrl,name:t.path?.split("/").pop()||"ai-generated-image.png",height:t.height,width:t.width,secure_url:t.imageUrl,file_path:t.path,file_size:null,mime_type:t.mimeType,thumbnail_path:null,duration:null,created_at:(new Date).toISOString()};a(R.uiActions.appendProjectAsset(e)),window?.showToast({type:"success",msg:"Image saved to assets"})}a(R.uiActions.setAICommandInput("")),a(R.uiActions.closeCommandPalette()),_.default.track("aiMagicV2 - success accept ai command result",{commandType:e,projectId:t,saveToAssetsFlag:o,replaceImageComponentSrcFlag:i,response:n.data,imageUrl:n?.data?.imageUrl,timestamp:(new Date).toISOString()})})).catch((n=>{_.default.track("aiMagicV2 - failure accept ai command result",{commandType:e,projectId:t,saveToAssetsFlag:o,replaceImageComponentSrcFlag:i,errorFlag:n?.errorFlag||"UNKNOWN_ERROR",errorMessage:n?.message||n?.error||"Failed to accept result",timestamp:(new Date).toISOString(),error:n});const s=n?.message||n?.error||"Failed to accept result";window?.showToast({type:"error",msg:s}),a({type:r.customizationConstants.FAILURE_AI_COMMAND_RESULT_ACCEPT,payload:{errorFlag:n?.errorFlag||"UNKNOWN_ERROR",message:s}})}))}},discardAIResult:function(t,e,n){return o=>{o(R.uiActions.setAICommandInput("")),o(R.uiActions.closeCommandPalette()),o(R.uiActions.setCommandPaletteState(St)),l.customBuilderService.discardAIResult(t,e,n).then((()=>{o({type:r.customizationConstants.SUCCESS_AI_COMMAND_RESULT_DISCARD})})).catch((t=>{console.error("Failed to discard result:",t)}))}}};const j=(t,e,n={})=>(o,r)=>{const i=r().customization.present.data,a="https://assets-v2.codedesign.ai/storage/v1/object/public/codedesign_assets/defaultBgImage.svg",s=["global","mobile","tablet"];if(!i.blueprint)return;let c=d()(i.blueprint);
1Object.keys(c).forEach((o=>{const r=c[o];r&&r.components&&t.forEach((t=>{const o=r.components[t];o&&o.props&&(n.isVideo?o.props.componentData?.videoEmbed&&(o.props.componentData.videoEmbed.src="",o.props.componentData.videoEmbed.poster="https://assets-v2.codedesign.ai/storage/v1/object/public/codedesign_assets/defaultVideoPoster.svg",o.props.componentData.videoEmbed.thumbnail_name=""):o.props.componentData?.videoEmbed?(o.props.componentData.videoEmbed.poster="https://assets-v2.codedesign.ai/storage/v1/object/public/codedesign_assets/defaultVideoPoster.svg",o.props.componentData.videoEmbed.thumbnail_name=""):o.props.src=a,o.props.componentStyle&&s.forEach((t=>{if(o.props.componentStyle[t]?.backgroundImage&&o.props.componentStyle[t].backgroundImage.includes(e)){const n=o.props.componentStyle[t].backgroundImage.split(/(?=linear-gradient|radial-gradient|\burl\()/g).map((t=>{if(t.trim().startsWith("url(")&&t.includes(e)){const e=t.includes("'")?"'":t.includes('"')?'"':"";return`url(${e}${a}${e})${t.slice(t.indexOf(")")+1)}`}return t}));o.props.componentStyle[t].backgroundImage=n.join(""),modified=!0}})))}))})),o(ut("blueprint",c,!1,{},{executeCallbackWhenAPICallIsFalse:!0},(()=>{o(R.uiActions.gridLayoutChildUpdateRequired())})))};function B(t){return(e,n)=>{e({type:r.customizationConstants.REQUEST_GENERATE_META_FROM_PROMPT});const o=n();h.default.track("aiOnboardV2 - Generating Meta from Prompt",{...t}),_.default.track("aiOnboardV2 - Generating Meta from Prompt",{...t});const i=o.customization.present.aiOnboarding;l.customBuilderService.generateMetaFromPrompt(t).then((n=>{h.default.track("aiOnboardV2 - Meta Generated Successfully",{objective:t.objective,prompt:t.prompt,businessName:n?.businessName,category:n?.category,location:n?.location,aiService:n?.aiService?.name,language:n?.languageCode,isFunnel:n?.meta?.isFunnel}),_.default.track("aiOnboardV2 - Meta Generated Successfully",{objective:t.objective,prompt:t.prompt,businessName:n?.businessName,category:n?.category,location:n?.location,aiService:n?.aiService?.name,language:n?.languageCode,isFunnel:n?.meta?.isFunnel}),e(G({...i,businessName:n?.businessName,category:n?.category,location:n?.location,aiService:n?.aiService?.name,keywords:n?.keywords||[],language:n?.languageCode,isFunnel:n?.meta?.isFunnel,objective:n?.meta?.objective,categoryData:n?.meta?.categoryData,projectName:n?.projectName,currentStep:3,hasErrorOnGeneratingMetaFromPrompt:!1,errorMsgOnGeneratingMetaFromPrompt:""})),e(ft(r.customizationConstants.SUCCESS_GENERATE_META_FROM_PROMPT))}),(n=>{h.default.track("aiOnboardV2 - Meta Generation Failed",{prompt:t.prompt,objective:t.objective,error:n}),_.default.track("aiOnboardV2 - Meta Generation Failed",{prompt:t.prompt,objective:t.objective,error:n}),e((0,c.failure)(r.customizationConstants.FAILURE_GENERATE_META_FROM_PROMPT,`${n}. Refresh the page and try again.`))}))}}function G(t){return e=>{e({type:r.customizationConstants.SET_AI_ONBOARDING,payload:t})}}function H(t,e,n={}){const{logId:o,language:i,setting:a,category:s,businessName:u,location:p,keywords:d,subCategory:f,projectName:m,websiteType:E,aiService:g,objective:y,isFunnel:S,mockError:T}=n;return(C,b)=>{const v=b(),I=v.user.data?.preferences,A=I?.p_attempt||0,O=v?.customization?.present?.aiOnboarding||{},P=v?.ui?.aiFailureAttempt||0;localStorage.setItem("aiOnboardingLS",JSON.stringify({...O})),C(dt(r.customizationConstants.REQUEST_CREATE_PROJECT_FROM_PROMPT)),h.default.track("aiOnboardV2 - Creating Project from Prompt",{logId:o,language:i,setting:a,category:s,businessName:u,location:p,keywords:d,subCategory:f,projectName:m,websiteType:E,aiService:g,objective:y,isFunnel:S,mockError:T,aiFailureAttempt:P}),_.default.track("aiOnboardV2 - Creating Project from Prompt",{logId:o,language:i,setting:a,category:s,businessName:u,location:p,keywords:d,subCategory:f,projectName:m,websiteType:E,aiService:g,objective:y,isFunnel:S,mockError:T,aiFailureAttempt:P}),l.customBuilderService.createProjectFromPrompt({prompt:t,templateId:e,category:s,businessName:u,location:p,logId:o,language:i,setting:a,keywords:d,subCategory:f,projectName:m,websiteType:E,aiService:g,objective:y,isFunnel:S,aiFailureAttempt:P,variant:O.variant}).then(((t=[])=>{h.default.track("aiOnboardV2 - Successfully Created Project from Prompt",{userChosenTemplateId:e||"n
1one",templateId:t._id,templateName:t.designName,logId:o,aiLogId:t.aiLogId,language:i,setting:a,category:s,businessName:u,location:p,keywords:d,subCategory:f,projectName:m,websiteType:E,aiService:t.aiService,objective:y,isFunnel:S,aiFailureAttempt:P,variant:O.variant}),_.default.track("aiOnboardV2 - Successfully Created Project from Prompt",{userChosenTemplateId:e||"none",templateId:t._id,templateName:t.designName,logId:o,aiLogId:t.aiLogId,language:i,setting:a,category:s,businessName:u,location:p,keywords:d,subCategory:f,projectName:m,websiteType:E,aiService:t.aiService,objective:y,isFunnel:S,aiFailureAttempt:P,variant:O.variant}),C(R.uiActions.setAIFailureAttempt(0)),C(x.userActions.updateUserFields({preferences:{...I,p_attempt:A+1}})),C(ft(r.customizationConstants.SUCCESS_CREATE_PROJECT_FROM_PROMPT,t))}),(t=>{const l="Something went wrong. Please try again with a different prompt.";h.default.track("aiOnboardV2 - Error in Creating Project from Prompt",{userChosenTemplateId:e||"none",logId:o,language:i,setting:a,category:s,businessName:u,location:p,keywords:d,subCategory:f,projectName:m,websiteType:E,objective:y,isFunnel:S,error:t,aiFailureAttempt:P,variant:O.variant}),_.default.track("aiOnboardV2 - Error in Creating Project from Prompt",{userChosenTemplateId:e||"none",logId:o,language:i,setting:a,category:s,businessName:u,location:p,keywords:d,subCategory:f,projectName:m,websiteType:E,objective:y,isFunnel:S,error:t,aiFailureAttempt:P,variant:O.variant}),C(R.uiActions.setAIFailureAttempt()),n.errorAction?.(l),C((0,c.failure)(r.customizationConstants.FAILURE_CREATE_PROJECT_FROM_PROMPT,l.toString()))}))}}function z(){return t=>{t({type:r.customizationConstants.UNDOS_REVISION_UPDATE_COMPLETED})}}function $(t,e,n,o={}){const{updateState:i,successUrl:a,clientId:s}=o;let{id:u=""}=t;return(t,o)=>{let p=o().customization.present.project;t(dt(r.customizationConstants.REQUEST_GENERIC_API_CALL)),l.customBuilderService.makeExternalRequest(p,u,e,n).then((e=>{e&&e.data&&e.data.ok?(t(ft(r.customizationConstants.SUCCESS_GENERIC_API_CALL,e.data)),i&&(t(W(s,"success")),a&&setTimeout((()=>{window.location.href=a}),500))):(t(ft(r.customizationConstants.FAILURE_GENERIC_API_CALL,e.data)),i&&t(W(s,"error")))})).catch((e=>{t((0,c.failure)(r.customizationConstants.FAILURE_GENERIC_API_CALL,{status:400,ok:!1,json:e,text:JSON.stringify(e)})),i&&t(W(s,"error"))}))}}function W(t,e){return n=>{n({type:r.customizationConstants.UPDATE_FORM_STATE,payload:{name:t,value:e}})}}function V(t){return e=>{e({type:r.customizationConstants.SET_STYLE_SETTINGS_FOLDABLE_BLOCK,payload:t})}}function Y(t){return(e,n)=>{const o=n().customization.present.documentContext;if(o){var i=o.querySelector(":root");const{CANVAS_LABEL_HEIGHT:e,HEROSECTION_MARGIN_TOP:n,CUSTOMIZATIONPARENT_BOX_SHADOW_SE:r,CUSTOMIZATIONPARENT_BOX_SHADOW_NW:a,CUSTOMIZATIONPARENT_BOX_SHADOW_LIGHTER_SE:c,CUSTOMIZATIONPARENT_BOX_SHADOW_LIGHTER_NW:l}=s.builderConstants,u=-e/t+"px",p=n*t+"px",d=a/t+"px",f=r/t+"px",m=l/t+"px",h=c/t+"px";i.style.setProperty("--zoom-inverse-top",u),i.style.setProperty("--herosection-margin-top",p),i.style.setProperty("--customizationParent-box-shadow-nw",d),i.style.setProperty("--customizationParent-box-shadow-se",f),i.style.setProperty("--customizationParent-box-shadow-lighter-nw",m),i.style.setProperty("--customizationParent-box-shadow-lighter-se",h),i.style.setProperty("--zoom-inverse",1/t)}e({type:r.customizationConstants.UPDATE_CANVAS_TRANSFORM_VALUE,payload:t})}}function Q(t,e){return async n=>{let o=await(0,E.addMultipleImports)(t,e),i={};return o.map((t=>{i[t.client_id]=t})),n({type:r.customizationConstants.UPDATE_BLUEPRINT_WITH_MULTIPLE_COMPONENTS,payload:i,currentView:e}),o}}function K(t){return(e,n)=>{if(!t.clientId)return void e((0,c.failure)(r.customizationConstants.FAILURE_UPDATE_SITE_FONTS));const o=n();let i=o.customization.present.project;if(t.fontFamily){let n=d()(o.customization.present.activeFonts),i=new Set(n);i.add(`${t.fontFamily}:100,200,300,400,500,600,700,800,900`),n=[...i],e({type:r.customizationConstants.UPDATE_ACTIVE_FONTS,payload:n})}const a=d()(o.customization.present.data.fonts);a[t.clientId]={...a[t.clientId],...t},e(dt(r.customizationConstants.REQUEST_UPDATE_SITE_FONTS,a)),l.customBuilderService.updateFontsUsedInSite(a,i).then((()=>{e(ft(r.customizationConstants.SUCCESS_UPDATE_SITE_FONTS,t))}),(t=>{e((0,c.failure)(r.customizationConstants.FAILURE_UPDATE_SITE_FONTS,t))}))}}function q(t,e,n){return(o,i)=>{let a=i(),s=d()(a.customization.present.data.blueprint[e][n.name?n.name:"tempLayouts"]),c={...s};n.allLayouts?Object.keys(s).map((e=>{c[e]=[],c[e]=s[e].filter((e=>!Object.keys(t).includes(e.i)))}
1)):(c[n.currentBreakpoint]=[],c[n.currentBreakpoint]=s[n.currentBreakpoint].filter((e=>!Object.keys(t).includes(e.i)))),o({type:r.customizationConstants.REMOVE_LAYOUTS_FROM_TEMP_LAYOUTS,payload:c,currentView:e,name:n.name?n.name:"tempLayouts"})}}function J(t,e,n,o){return i=>{i({type:r.customizationConstants.REQUEST_PUBLISH_PROJECT}),o&&i({type:r.customizationConstants.UPDATE_SUBDOMAIN_NAME,payload:o}),l.customBuilderService.publishPage(t,e,n,o).then((t=>{i(R.uiActions.setPublishSiteLoadingStatus(!1)),i(ft(r.customizationConstants.SUCCESS_PUBLISH_PROJECT,t))}),(t=>{i(R.uiActions.setPublishSiteLoadingStatus(!1)),i((0,c.failure)(r.customizationConstants.FAILURE_PUBLISH_PROJECT,t.toString()))}))}}function X(t){return(e,n)=>{const o=n();e(R.uiActions.hideAllEditPopups()),e(R.uiActions.setIsHoveringInsideForElementAddition(!1)),o?.customization?.present?.showStyleSettingsFoldableBlockCondition&&e(V(!1));if(o.customization.present.showAPIEditor)return;if(o.customization.present.data.currentlySelectedComponentId===t)return;try{let n=o.customization.present.data.blueprint,r=o.customization.present.context,i=n[r].components[t].props.componentData.childOf;if(i&&i[0]){if(!!(0,u.checkNested)(n,r,"components",i[0],"props","componentData","groupChildren")&&n[r].components[i[0]].props.componentData.groupChildren)return void e(X(i[0]))}}catch(a){}try{let n=o.customization.present.data.blueprint[o.customization.present.context].components[t].linkedProps?.instanceId;if((0,E.isInstanceOfAnyLinkedComponent)(n))return void e({type:r.customizationConstants.STORE_SELECTED_COMPONENT,payload:n})}catch(s){}e({type:r.customizationConstants.STORE_SELECTED_COMPONENT,payload:t});const i=o.customization.present.documentContext;if(i){const e=i.getElementById(t);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}e({type:r.customizationConstants.UPDATE_RENDER_KEY,payload:t+"_"+(0,f.default)(6)})}}function Z(t){const{getState:e}=o.default,n=e(),{getState:i}=o.clientStore,a=i(),c=n.ui.screenWidth,l=n.customization.present.editorMode,u=a.ui.viewSetFromSSR;let p=!1;const d=u||t;window.location.pathname?.includes("/playground-preview")&&(p=!0);let f="bp_1280"===d?"bp_1280":"bp_1440"===d?"bp_1440":"bp_1920"===d?"bp_1920":"tablet"===d?"md":"mobile"===d?"sm":"lg";return t=>{if("mobile"!==d&&"tablet"!==d||t(Y(1)),"web"===d&&c)if("basic"===l)t(Y(1));else{const e=(c-(p?s.builderConstants.AI_PREVIEW_CUSTOMIZE_WIDTH_EXCLUDED:s.builderConstants.CANVAS_WIDTH_EXCLUDED))/c;"number"===typeof e&&t(Y(e))}t({type:r.customizationConstants.CHANGE_VIEW,payload:d,breakpoint:f})}}function tt(t,e,n,o={}){return(i,a)=>{const s=a().customization.present.data.blueprint.home;let u,p;if(s){let t=[],e=[];Object.keys(s.components).filter((n=>("navbar"===s.components[n].category&&(t=[...t,n]),"footer"===s.components[n].category&&(e=[...e,n]),"")));let n={lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]};t&&t[0]&&Object.keys(s.layouts).map((e=>{n[e]=[...n[e],...s.layouts[e].filter((e=>e.i===t[0]))]})),e&&e[0]&&Object.keys(s.layouts).map((t=>{n[t]=[...n[t],...s.layouts[t].filter((t=>t.i===e[0]))]})),u={[t[0]]:s.components[t[0]],[e[0]]:s.components[e],Global0007:{author:"Storylens",category:"global",context:["Homepage","something"],custom:!1,main:null,name:"Global",props:{componentData:{hideIn:[]}},client_id:"Global0007",type:"global",zIndex:200,components:null,isStatic:!0,parent:void 0,component:{}}},p=n,delete u.undefined}const d=Boolean(t.isDynamicPage),f=(t.url||"").replace(/^\//,"").toLowerCase(),m=d?`dynamicPage_${f}`:f||t.url.substr(1),h={name:t.name,id:m,previewImage:"",activeBreakpoints:["lg","md","sm"],autoResponsiveComponents:{md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]}};d&&(h.url=`/dynamicPage--${f}`,h.dynamicPageUrl=`/${f}/:slug`,h.dynamicDataProps={isDynamicPage:!0,dataCMSId:t.selectedCMS||"blog",itemIdentifier:"slug"});const _={[m]:{components:u,layouts:p,meta:h}};i(dt(r.customizationConstants.REQUEST_ADD_PAGE,_)),l.customBuilderService.addNewPage(_,e,n,o).then((()=>{i(ft(r.customizationConstants.SUCCESS_ADD_PAGE,_,{isAddedNewProject:o.isAddedNewProject}))}),(t=>
1{i((0,c.failure)(r.customizationConstants.FAILURE_ADD_PAGE,t.toString()))}))}}function et(t,e,n={}){return async o=>{try{o(dt(r.customizationConstants.REQUEST_SETUP_AI_COMPANION_SANDBOX,{projectId:t}));const i=await l.customBuilderService.setupAICompanionSandbox(t,e,n);return o(ft(r.customizationConstants.SUCCESS_SETUP_AI_COMPANION_SANDBOX,i)),i}catch(i){throw o((0,c.failure)(r.customizationConstants.FAILURE_SETUP_AI_COMPANION_SANDBOX,i.toString())),i}}}function nt(t){return{type:r.customizationConstants.SET_AI_COMPANION_IFRAME_LOAD_ERROR,payload:t}}function ot(){return{type:r.customizationConstants.RESET_AI_COMPANION_IFRAME_LOAD_STATE}}function rt(t,e,n){const{dispatch:r}=o.default,i=t.blueprint[e].components[n];if(i&&("text"===i.type||"navbar"===i.category)){let e=t.fonts;delete e[n],r(K(e))}}function it(t,e,n){return null==n&&(n={}),(o,i)=>{const a=i(),s=d()(a.customization.present.data);if((0,E.checkIfCurrentContextIsLinkedComponentCanvas)(e)){const n=s.blueprint[e]?.layouts?.lg?.[0]?.i;if(t===n)return void window.showToast({msg:"This component can't be deleted",type:"warning"})}const c=s.blueprint[e]?.components?.[t]||{};let l={};if(c.linkedProps?.linkedComponentMetaId){const t=c.linkedProps.instanceId,e=c.linkedProps.linkedComponentMetaId,n=s.blueprint[e],o=n.meta.instances.filter((e=>e!==t)),r=(0,E.returnUpdatedUsedBy)(e,s.blueprint,o);l={updateLinkedComponent:!0,linkedComponentMetaId:e,updatedLinkedComponents:{[e]:{...n,meta:{...n.meta,instances:o,usedBy:r}}}}}const p=s.blueprint[e][t];let f=[];"undefined"!==typeof p?(f=(0,E.findAllChildren)(s.blueprint[e],t,[],!0).flat(1/0),f=f.map((t=>(rt(s,e,t),t)))):f=[t],rt(s,e,t);let m=d()(s.blueprint[e]);const h=m.components[t]?.parent||"layouts";Object.keys(m.components).map((t=>{f.includes(t)&&delete m.components[t]})),Object.keys(m).map((t=>{f.includes(t)&&delete m[t]}));let _={};m[h]&&Object.keys(m[h]).map((e=>{_[e]=m[h][e].filter((e=>e?.i!==t))})),m[h]=_;let g={};const{autoResponsiveComponents:y={}}=s.blueprint[e].meta;["sm","md","bp_1280","bp_1440","bp_1920"].map((t=>{const e=y[t]||[];let n=[...e];n=e.filter((t=>!f.includes(t))),g={...g,[t]:n}})),m.meta.autoResponsiveComponents=g;const S={...s.blueprint,[e]:m,...l.updateLinkedComponent?l.updatedLinkedComponents:{}},T=(0,u.cleanupBlueprintData)(S);o(ut("blueprint",T,void 0,{origin:"removeCompoent",linkedComponents:l.updateLinkedComponent?[l.linkedComponentMetaId]:void 0})),o({type:r.customizationConstants.REQUEST_DELETE_COMPONENT}),o({type:r.customizationConstants.SUCCESS_DELETE_COMPONENT,payload:{clientId:t,blueprint:S}}),n.newSelectedComponent?o(X(n.newSelectedComponent)):o(X("Global0007")),o({type:r.customizationConstants.UNDOS_REVISION_UPDATE}),o(z()),o(R.uiActions.layoutShiftRequired()),o(R.uiActions.gridLayoutChildUpdateRequired())}}function at(t,e,n,o){return i=>{o&&o.delete?(i({type:r.customizationConstants.REQUEST_DELETE_COMPONENT}),i({type:r.customizationConstants.SUCCESS_DELETE_MULTIPLE_COMPONENTS,payload:t,currentView:e,currentBreakpoint:n,options:o})):(i({type:r.customizationConstants.REQUEST_HIDE_COMPONENT}),i({type:r.customizationConstants.SUCCESS_HIDE_MULTIPLE_COMPONENTS,payload:t,currentView:e,currentBreakpoint:n,options:o}))}}function st(t,e={},n={}){const{client_id:o,props:i,context:a,zIndex:s}=t;return(t,c)=>{const l=c(),p=l.customization.present.data;let f=l.customization.present.project;if(!p.blueprint[a].components[o])return;let m=e.updatedComponent?{...e.updatedComponent}:{...p.blueprint[a].components[o],props:{...p.blueprint[a].components[o].props,...i},zIndex:s},h=d()(p.blueprint[a]);h.components[o]=m;let _={[a]:h};_=(0,u.cleanupBlueprintData)(_),mt(_,f,void 0,void 0,n),e.updatedComponent&&t({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT,payload:{dataname:"blueprint",content:{...p.blueprint,[a]:h}}}),t({type:r.customizationConstants.UPDATE_COMPONENT_PROPS,payload:m,context:a}),t({type:r.customizationConstants.UNDOS_REVISION_UPDATE})}}function ct(t,e){return t?(n,o)=>{o().user.data.isAdmin&&(n({type:r.customizationConstants.REQUEST_ADMIN_WEBBUILDER_UPDATE}),l.customBuilderService.updateWebBuilderAdmin(t,e).then((e=>{!e||e&&e.error?(setTimeout((()=>{n({type:r.customizationConstants.CLEAR_ADMIN_UPDATE_WEBBUILDER_ERROR})}),5e3),n({type:r.customizationConstants.FAILURE_ADMIN_WEBBUILDER_UPDATE,payload:"Something went wrong"})):(setTimeout((()=>window.location.reload()),3e3),n({type:r.customizationConstants.SUCCESS_ADMIN_WEBBUILDER_UPDATE,payload:t}))}),(t=>{n({type:r.customizationConstants.FAILURE_ADMIN_WEBBUILDER_UPDATE,payload:t.toString()}),setTimeout((()=>{n({type:r.customizationConstants.CLEAR_ADMIN_UPDATE_WEBBUILDER_ERROR})}),5e3)})))}:null}const lt=(0,y.debounce)(1e3,(t=>t()));function ut(t,e,n=!0,o={},i={},a=(()=>{})){return e?(s,c)=>{const p=c();
1let{project:d,context:f,playground:m}=p.customization.present;i?.pageNameBeingUpdated&&(f=i.pageNameBeingUpdated);let h="blueprint"===t?"data":t;if(s({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT_REQUEST}),"blueprint"===t&&e&&(e=(0,u.cleanupBlueprintData)(e)),s({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT,payload:{dataname:t,content:e}}),"blueprint"===t){s((_=i?.pageNameBeingUpdated??f,(t,e)=>{const n=e(),o=n.customization?.present?.data?.blueprint,r=_??n.customization?.present?.context;if(!o||!r)return;const i=o[r];if(!i)return;const a=(0,N.getStructuralFingerprint)(i),s=n.common?.dynamicData?.lastStructuralFingerprint?.[r];if((0,N.structuralFingerprintEqual)(s,a))return;const c=(0,N.buildBlueprintIndexes)(o,r);t((0,F.setBlueprintIndexes)(c)),t({type:k.dynamicDataConstants.SET_LAST_STRUCTURAL_FINGERPRINT,payload:{context:r,fingerprint:a}})}))}var _;if("functions"===t&&s({type:r.functionConstants.UPDATE_FUNCTION_CONTENT,payload:e}),n){s(R.uiActions.setCustomizationIsUpdatingFlag(!0)),i.apiRequestMsg&&window.showToast&&window.showToast({type:"info",msg:i.apiRequestMsg});const t=()=>l.customBuilderService.updateBlueprint(h,e,d,f,{...o,playground:m}).then((t=>{s(R.uiActions.setCustomizationIsUpdatingFlag(!1));const e={};void 0!==t.version&&(e.version=t.version),void 0!==t.backupVersion&&(e.backupVersion=t.backupVersion),a(),o.successCallback&&o.successCallback(),s({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT_SUCCESS,payload:e}),o.skipUndoUpdate||s({type:r.customizationConstants.UNDOS_REVISION_UPDATE}),i.apiSuccessMsg&&window.showToast&&window.showToast({type:"success",msg:i.apiSuccessMsg})}),(t=>{s(R.uiActions.setCustomizationIsUpdatingFlag(!1)),s({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT_FAILURE,payload:t.toString()}),i.apiFailureMsg&&window.showToast&&window.showToast({type:"error",msg:i.apiFailureMsg}),o.failureCallback&&o.failureCallback(),console.error("error occured",t)}));i.debounceApiCall?lt(t):t()}else s({type:r.customizationConstants.UPDATE_BLUEPRINT_CONTENT_SUCCESS}),o.skipUndoUpdate||s({type:r.customizationConstants.UNDOS_REVISION_UPDATE}),i.executeCallbackWhenAPICallIsFalse&&a()}:null}async function pt(t,e,n,o,i){const a=o();if(0===(a.customization.present.activeFonts||[]).length){let e=new Set;t.fonts&&Object.keys(t.fonts).filter((n=>n&&t.fonts[n]&&t.fonts[n].fontFamily&&e.add(`${t.fonts[n].fontFamily}:100,200,300,400,500,600,700,800,900`))),e=Array.from(e)||[],n({type:r.customizationConstants.UPDATE_ACTIVE_FONTS,payload:e})}t.blueprint.home&&null==t.blueprint.home?.components&&(t.blueprint.home.components={});let s=a.customization.present.data.blueprint||{[i]:{}};const c=t.returnContext||i;if("preview"===e&&t.blueprint[c]&&s[c]&&t.blueprint[c].version===s[c].version)n(ft(r.customizationConstants.SUCCESS_POLL_WEB_BUILDER));else{"preview"===e||Object.keys(t.blueprint).map((e=>{t.blueprint[e].components&&Object.values(t.blueprint[e].components).map((t=>{t.component&&(t.component=null)}))}));{const e={};t.componentManifest&&Object.keys(t.componentManifest).filter((n=>{"true"===t.componentManifest[n].custom&&(e[n]=t.componentManifest[n])})),t.componentManifest={...e}}if(t.functions&&Object.keys(t.functions).length>0){let e=t.functions;n(ft(r.functionConstants.FUNCTION_FETCH_SUCCESS,e))}t&&t.blueprint&&(t.blueprint=(0,u.cleanupBlueprintData)(t.blueprint)),n(ft(r.customizationConstants.SUCCESS_FETCH_WEB_BUILDER,t))}}function dt(t,e){return{type:t,payload:e||null}}function ft(t,e,n={}){return o=>{o({type:t,payload:e,options:n}),o({type:r.errorsConstants.REMOVE_ERROR})}}const mt=(0,y.debounce)(500,(async(t,e,n,i,a={})=>{const{dispatch:s,getState:u}=o.default,p=u(),{playground:d,context:f}=p.customization.present;l.customBuilderService.saveLayoutToServer({data:t},e,f,i).then((()=>{a.successCallback&&a.successCallback(),a.apiSuccessMsg&&window.showToast&&window.showToast({type:"success",msg:a.apiSuccessMsg})}),(t=>{n?n(t):s((0,c.failure)(r.customizationConstants.FAILURE_SAVE_LAYOUT,t.toString())),a.failureCallback&&a.failureCallback(),a.apiFailureMsg&&window.showToast&&window.showToast({type:"error",msg:a.apiFailureMsg})}))}));function ht(t={}){const{getState:e}=o.default;let n=e().customization.present.data;return n="object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"data")?{...n,blueprint:{...n.blueprint,...t}}:{...n,...t},n}const _t=t=>{const{blueprint:e}=t;let n={...e};const o=(0,E.getFilteredBlueprints)("linkedComponent",n);return Object.keys(o).map((t=>
1{const e=o[t],{meta:r,version:i=1,components:a={},layouts:s,...c}=e,{Global0007:l,...p}=a;if(0==Object.keys(p).length||!p)return;let d={};Object.keys(p).forEach((t=>{d[t]=void 0}));const{usedBy:m=[],instances:h=[],id:_}=r;m.map(((t,e)=>{const o=(r=n,(0,E.getFilteredBlueprints)("page",r));var r;if(!o[t])return;const{meta:i,version:a,components:s={},layouts:l,...m}=o[t],{Global0007:g,...y}=s,S=Object.keys(y);let T={};S.forEach((t=>{h.includes(t)&&y[t]?.linkedProps?.linkedComponentMetaId===_&&(T[t]=y[t])}));let C={};Object.keys(T).forEach((t=>{let e={};const n=T[t],{clientIdMap:o={}}=n.linkedProps||{};Object.keys(d).forEach((t=>{Object.prototype.hasOwnProperty.call(o,t)?e[t]=o[t]:e[t]=t.substring(0,t.length-4)+(0,f.default)(4)})),C[t]=e}));let b={},v={};Object.keys(T).forEach((t=>{const e=Object.keys(C[t]),n=Object.values(C[t]);let o=JSON.parse((0,E.replaceBulk)(JSON.stringify(p),e,n));Object.keys(o).forEach((e=>{let n={linkedProps:{instanceId:t}};e===t&&(n={linkedProps:{instanceId:t,clientIdMap:C[t],linkedComponentMetaId:_},...y[t]?.parent?{parent:y[t]?.parent}:{}}),o[e]={...o[e],...n}})),b[t]=o;let r=JSON.parse((0,E.replaceBulk)(JSON.stringify(c),e,n));v[t]=r}));const I=Object.entries(b).map((([t,e])=>e)).reduce(((t,e)=>({...t,...e})),{}),A={...(0,u.filterObject)(s,((t,e)=>!Object.keys(I).includes(e))),...I},O=Object.entries(v).map((([t,e])=>e)).reduce(((t,e)=>({...t,...e})),{}),R={...(0,u.filterObject)(m,((t,e)=>!Object.keys(O).includes(e))),...O};n={...n,[t]:{...n[t],components:A,...R}}}))})),(0,u.cleanupBlueprintData)(n)};const Et=()=>window&&window.location.origin;function gt(t){return{type:r.customizationConstants.SUCCESS_SEARCH_PROJECTS,payload:t}}function yt(){return{type:r.customizationConstants.CLEAR_SEARCH_RESULTS}}const St="initial",Tt="processing",Ct="result",bt="error"},4938:function(t,e,n){"use strict";n.r(e),n.d(e,{fetchListData:function(){return l},fetchItemData:function(){return u},cleanupDynamicData:function(){return p}});var o=n(5017),r=n(6869),i=n(5857),a=n(9374),s=n(4115);function c(){const t=(0,o.returnAPI)();return t.endsWith("/")?t:`${t}/`}function l(t){const{projectId:e,clientId:n,offset:o=0,limit:l=10,listPath:u="latest",cmsId:p="blog",sort:d="",mergedCacheKey:f,paginationNavigate:m,mode:h}=t;return(t,_)=>{const E=_(),g=E.common?.dynamicData?.cache??{},y=E.common?.dynamicData?.fetchInFlightByKey??{},S=f||(0,i.makeCacheKeyListIdentity)(p,u,d),T=function(t,e,n){return`${t}::__slice__${e}_${n}`}(S,o,l),C=g[S];if((0,a.listRangeSatisfied)(C?.list,o,l,C?.totalCount))return;if(y[T])return;const b=E.common?.dynamicData?.components?.[n],v=b?.baseOffset??o;t({type:r.dynamicDataConstants.REQUEST_FETCH_LIST,payload:{clientId:n,cacheKey:S,requestKey:T}});const I=`${c()}api/public/${e}/blog/${u}?limit=${l}&offset=${o}`;return fetch(I).then((t=>{if(!t.ok)throw new Error(t.statusText||"List fetch failed");return t.json()})).then((i=>{const c=i.data??[],p=i.pagination??{},d=p.total??c.length,f=p.totalPages??1,E=p.hasNextPage??p.hasNext??o+c.length<d,g=m?.offset??o,y=!(g<=v)&&(p.hasPreviousPage??p.hasPrev??g>v),C=(_().common?.dynamicData?.cache??{})[S]?.list,b=(0,a.mergeListSlice)(C,o,c);t({type:r.dynamicDataConstants.SET_CACHE_ENTRY,payload:{cacheKey:S,entry:{list:b,totalCount:d,fetchedAt:Date.now(),paginationMeta:{limit:p.limit??l,total:d,totalPages:f,hasNext:E,hasPrev:y}}}});const I=m?.currentPage??Math.floor((g-v)/l)+1;t({type:r.dynamicDataConstants.SET_COMPONENT_STATE,payload:{clientId:n,state:{cacheKey:S,isLoading:!1,error:null,baseOffset:v,pagination:{currentPage:I,offset:g,limit:l,totalPages:f,totalCount:d,hasNextPage:E,hasPreviousPage:y}}}}),t({type:r.dynamicDataConstants.SUCCESS_FETCH_LIST,payload:{clientId:n,cacheKey:S,requestKey:T}}),(0,s.trackEvent)("Blog:ListFetched",{projectId:e,listPath:u,offset:o,totalCount:d,...h?{mode:h}:{}})})).catch((i=>{t({type:r.dynamicDataConstants.SET_COMPONENT_STATE,payload:{clientId:n,state:{cacheKey:S,isLoading:!1,error:i?.message??"Failed to load list",baseOffset:v,pagination:{currentPage:1,offset:v,limit:l,totalPages:1,hasNextPage:!1,hasPreviousPage:!1}}}}),t({type:r.dynamicDataConstants.FAILURE_FETCH_LIST,payload:{clientId:n,cacheKey:S,requestKey:T,error:i?.message}}),(0,s.trackEvent)("Blog:ListFetchFailed",{projectId:e,listPath:u,offset:o,error:i?.message??"Unknown error",...h?{mode:h}:{}}
1)}))}}function u(t){const{projectId:e,cacheKey:n,slug:o,mode:i}=t;return(t,a)=>{const l=a(),u=l.common?.dynamicData?.cache??{},p=l.common?.dynamicData?.fetchInFlightByKey??{};if(u[n])return;if(p[n])return;t({type:r.dynamicDataConstants.REQUEST_FETCH_ITEM,payload:{cacheKey:n}});const d=encodeURIComponent(o),f=`${c()}api/public/${e}/blog/${d}`;return fetch(f).then((t=>{if(404===t.status)return t.json().then((t=>{const e=new Error(t?.message||"Not found");throw e.notFound=!0,e})).catch((t=>{if(t.notFound)throw t;const e=new Error("Not found");throw e.notFound=!0,e}));if(!t.ok)throw new Error(t.statusText||"Item fetch failed");return t.json()})).then((a=>{const c=a.data??a;t({type:r.dynamicDataConstants.SET_CACHE_ENTRY,payload:{cacheKey:n,entry:{item:c,fetchedAt:Date.now()}}}),t({type:r.dynamicDataConstants.SET_PAGE_STATE,payload:{cacheKey:n,state:{cacheKey:n,isLoading:!1,error:null}}}),t({type:r.dynamicDataConstants.SUCCESS_FETCH_ITEM,payload:{cacheKey:n}}),(0,s.trackEvent)("Blog:PostFetched",{projectId:e,slug:o,...i?{mode:i}:{}})})).catch((a=>{t({type:r.dynamicDataConstants.SET_PAGE_STATE,payload:{cacheKey:n,state:{cacheKey:n,isLoading:!1,error:a?.message??"Failed to load page",notFound:!0===a?.notFound}}}),t({type:r.dynamicDataConstants.FAILURE_FETCH_ITEM,payload:{cacheKey:n,error:a?.message}}),a?.notFound?(0,s.trackEvent)("Blog:PostNotFound",{projectId:e,slug:o,...i?{mode:i}:{}}):(0,s.trackEvent)("Blog:PostFetchFailed",{projectId:e,slug:o,error:a?.message??"Unknown error",...i?{mode:i}:{}})}))}}function p(){return{type:r.dynamicDataConstants.CLEANUP_DYNAMIC_DATA}}},283:function(t,e,n){"use strict";n.r(e),n.d(e,{functionActions:function(){return m}});var o=n(7100),r=n(5654),i=n(7911),a=n(6354),s=n(6332),c=n(3465),l=n.n(c),u=n(7632),p=n(3778),d=n.n(p),f=n(1717);const m={createNewFunction:function(t,e,n){const{selectedEvent:r,uniqueId:i}=n;return(n,s)=>{if("setter"===e&&!r)return;const c=s(),l=c.customization.present.context,p=c.customization.present.data.blueprint,d=c.customization.present.data.currentlySelectedComponentId;let f=new Set(t.usedBy||[]);f.add(d),t.usedBy=[...f],n(h(o.functionConstants.REQUEST_CREATE_NEW_FUNCTION));let m=i||(0,u.Z)();m.startsWith("cd_fn_")||(m=`cd_fn_${m}`),t={...t,_id:m};const E={[m]:{...t,_id:m}},g={...c.functions.data.functionDefinitions,...E};if(n(a.customizationActions.updateBlueprintContents("functions",g,!0)),n(_(o.functionConstants.SUCCESS_CREATE_NEW_FUNCTION,E)),"setter"===e){const t=r?.id,e=p[l].components[d]?.props?.componentData;let o;const i=e?.events?.[t];if(Array.isArray(i)){if(i.length>0){o={[`cd_event_${(0,u.Z)()}`]:i}}}else o=i;const s={[`cd_event_${(0,u.Z)()}`]:[m]};o={...o,...s};const c={...e?.events||{},[t]:{...o}},f={client_id:d,context:l,props:{componentData:{...e,events:c}}};n(a.customizationActions.updateComponentProps(f))}if("getter"===e){const{blueprint:e}=c.customization.present.data,o=c.customization.present.context;let r=e[o].components[d];const i={client_id:d,context:o,props:{componentStyle:{...r.props?.componentStyle,global:{...r.props?.componentStyle?.global,display:[`${t._id}`]}}}};n(a.customizationActions.updateComponentProps(i))}}},updateFunction:function(t){const{_id:e}=t;return(n,r)=>{const i=r();n(h(o.functionConstants.REQUEST_UPDATE_FUNCTION,t));const s=e;let c=i.functions.data.functionDefinitions;c[s]=t,n(a.customizationActions.updateBlueprintContents("functions",c,!0)),n(_(o.functionConstants.SUCCESS_UPDATE_FUNCTION,c))}},initialFunctionsFetch:function(t){return(e,n)=>{const a=n();e(h(o.functionConstants.FUNCTION_FETCH_REQUEST));const{_id:c}=a.customization.present.data;r.functionService.initialFunctionsFetch({project:c||t}).then((t=>{if(!t)return;let n=t;const r=Object.values(n).map((t=>t.sequence)).flat(1/0);let i={};r.filter((t=>"createNewState"===t?.name)).map((t=>{t.arguments&&t.arguments[0]&&t.arguments[1]&&(i[t.arguments[0]]||(i[t.arguments[0]]={}),i[t.arguments[0]]={...i[t.arguments[0]],[t.arguments[1]]:{value:t.arguments[2]||""}})})),e(_(s.stateManagementConstants.LOAD_INITIAL_STATE,i)),e(_(o.functionConstants.FUNCTION_FETCH_SUCCESS,n))}),(t=>{e((0,i.failure)(o.functionConstants.FUNCTION_FETCH_FAILURE,t))}))}},removeFunctionFromEvent:function(t,e,n){return(o,r)=>{if(!e||!t)return;const i=r(),s=i.customization.present.context,c=i.customization.present.data.currentlySelectedComponentId,u=i.customization.present.data.blueprint[s].components[c]?.props?.componentData;let p=i.functions.data.functionDefinitions[t],f=new Set(p.usedBy||[]);f.delete(c),p.usedBy=[...f];let m=l()(u.events);d()(m[e])?m[e]=m[e].filter((function(e){return e!==t})):delete m[e][n];const h={client_id:c,context:s,props:{componentData:{...u,events:m}}};o(a.customizationActions.updateComponentProps(h))}},removeEventId:function(t,e){return(n,o)=>
1{if(!e)return;const r=o(),i=r.customization.present.context,s=r.customization.present.data.currentlySelectedComponentId,c=r.customization.present.data.blueprint[i].components[s]?.props?.componentData;let u=l()(c.events);d()(u[t])||delete u[t][e];const p={client_id:s,context:i,props:{componentData:{...c,events:u}}};n(a.customizationActions.updateComponentProps(p))}},appendFunctionToComponent:function(t,e,n={}){const{selectedEvent:r,selectedEventId:i}=n;return(n,s)=>{const c=s();if("setter"===e&&!r)return;const{_id:l}=t,u=c.customization.present.context,p=c.customization.present.data.blueprint,f=c.customization.present.data.currentlySelectedComponentId;let m,E=new Set(t.usedBy||[]);if(E.add(f),t.usedBy=[...E],"setter"===e){const e=r?.id,s=p[u].components[f]?.props?.componentData,E=s?.events?.[e];m=d()(E)?[...s?.events?.[e]||[],t._id]:{...s?.events?.[e]||{},[i]:[...s?.events?.[e]?.[i]||[],t._id]};const g={...s?.events||{},[e]:m},y={client_id:f,context:u,props:{componentData:{...s,events:g}}};n(h(o.functionConstants.REQUEST_UPDATE_FUNCTION,t));const S=l;let T=c.functions.data.functionDefinitions;T[S]=t,n(_(o.functionConstants.SUCCESS_UPDATE_FUNCTION,T)),n(a.customizationActions.updateBlueprintContents("functions",T,!0)),n(a.customizationActions.updateComponentProps(y))}}},reset:function(){return t=>{t({type:o.functionConstants.RESET})}},deleteFunction:function(t){return(e,n)=>{const r=n();e(h(o.functionConstants.REQUEST_DELETE_FUNCTION));let i=r.functions.data.functionDefinitions;const s=(0,f.deleteProperty)({...i},t);e(a.customizationActions.updateBlueprintContents("functions",s,!0)),setTimeout((()=>e(a.uiActions.setDeleteFunctionAlert(""))),900),e(_(o.functionConstants.SUCCESS_DELETE_FUNCTION,i))}}};function h(t,e){return{type:t,payload:e||null}}function _(t,e,n={}){return r=>{r({type:t,payload:e,options:n}),r({type:o.errorsConstants.REMOVE_ERROR})}}},1507:function(t,e,n){"use strict";n.r(e),n.d(e,{guestActions:function(){return a}});var o=n(7100),r=n(5654),i=n(7911);const a={getIdenticon:function(){return t=>{t(s(o.guestConstants.FETCH_IDENTICON)),r.guestServices.fetchIdenticon().then((e=>{localStorage.setItem("guestIdenticon",e.identicon),localStorage.setItem("guestToken",e.token),t(c(o.guestConstants.FETCH_IDENTICON_SUCCESS,e.identicon))}),(e=>{t((0,i.failure)(o.guestConstants.FETCH_IDENTICON_FAILURE,e))}))}},fetchIdenticonFromStorage:function(t){return e=>{e(c(o.guestConstants.FETCH_IDENTICON_SUCCESS,t))}},subscribeEmail:function(t){return e=>{e(s(o.guestConstants.SUBSCRIBE_EMAIL)),r.guestServices.subscribeEmail(t).then((()=>{e(c(o.guestConstants.SUBSCRIBE_EMAIL_SUCCESS,"Successfully subscribed"))}),(t=>{let n={type:"SUBSCRIBE_EMAIL_FAILURE",error:t};e(c(o.errorsConstants.ADD_ERROR,n)),e((0,i.failure)(o.guestConstants.SUBSCRIBE_EMAIL_FAILURE,t))}))}},clearSubscribeEmailMessage:function(){return t=>{t(c(o.guestConstants.CLEAR_SUBSCRIBE_EMAIL_MESSAGE))}}};function s(t){return{type:t}}function c(t,e){return n=>{n({type:t,payload:e})}}},6354:function(t,e,n){"use strict";n.r(e),n.d(e,{alertActions:function(){return o.alertActions},userActions:function(){return r.userActions},builderCmsFieldsCacheKey:function(){return i.builderCmsFieldsCacheKey},uiActions:function(){return i.uiActions},cloudinaryActions:function(){return a.cloudinaryActions},guestActions:function(){return s.guestActions},commonActions:function(){return p.commonActions},customizationActions:function(){return d.customizationActions},mergeAndReplaceBlueprintWithLatestLinkedComponentValues:function(){return d.mergeAndReplaceBlueprintWithLatestLinkedComponentValues},returnHostName:function(){return d.returnHostName},updateBlueprintAfterDeleteAsset:function(){return d.updateBlueprintAfterDeleteAsset},functionActions:function(){return f.functionActions},cleanupDynamicData:function(){return m.cleanupDynamicData},fetchItemData:function(){return m.fetchItemData},fetchListData:function(){return m.fetchListData},loadNextPage:function(){return h.loadNextPage},loadPreviousPage:function(){return h.loadPreviousPage},setBlueprintIndexes:function(){return _.setBlueprintIndexes},setPublishedDynamicRoute:function(){return _.setPublishedDynamicRoute}});var o=n(3855),r=n(3476),i=n(4055),a=n(5690),s=n(1507),c=n(7280),l={};for(var u in c)["default","alertActions","userActions","builderCmsFieldsCacheKey","uiActions","cloudinaryActions","guestActions"].indexOf(u)<0&&(l[u]=function(t){return c[t]}.bind(0,u));n.d(e,l);var p=n(6811),d=n(3251),f=n(283),m=n(4938),h=n(7056),_=n(6602)},7280:function(){},7056:function(t,e,n){"use strict";n.r(e),n.d(e,{loadNextPage:function(){return s},loadPreviousPage:function(){return c}});var o=n(6869),r=n(4938),i=n(9374);function a(t,e){const n=t.customization?.present?.context,o=t.customization?.present?.data?.blueprint;return o?.[n]?.components?.[e]??null}function s(t){return(e,n)=>{const s=n(),c=a(s,t);if(!(!0===c?.props?.dynamicDataProps?.paginationEnabled))return;const l=s.common?.dynamicData?.components?.[t];if(!l?.pagination)return;const{currentPage:u,limit:p,totalPages:d,offset:f,hasNextPage:m}=l.pagination,h=l.baseOffset??0;if(!1===m)return;const _=l.cacheKey,E=s.common?.dynamicData?.cache??{},g=E[_]?.list,y=E[_]?.totalCount,S=f+p,T=u+1;if(null!=y&&S>=y)return;if(null!=d&&u>=d)return;if((0,i.listRangeSatisfied)(g,S,p,y)){const n=null!=d?T>=d:null!=y&&S+p>=y;return void e({type:o.dynamicDataConstants.SET_LIST_PAGINATION,payload:{clientId:t,currentPage:T,offset:S,hasNextPage:!n,hasPreviousPage:S>h}})}const C=s.customization?.present?.data?._id;if(!C||!_)return;const b=c?.props?.dynamicDataProps||{},v=b.cmsId??"blog",I=String(b.listPath??b.filterType??"latest").toLowerCase(),A=b.sort??("latest"===I?"publishDate:desc":"");e((0,r.fetchListData)({projectId:C,clientId:t,mergedCacheKey:_,offset:S,limit:p,listPath:I,cmsId:v,sort:String(A),paginationNavigate:{currentPage:T,offset:S}}))}}function c(t){return(e,n)=>{const s=n(),c=a(s,t);if(!(!0===c?.props?.dynamicDataProps?.paginationEnabled))return;const l=s.common?.dynamicData?.components?.[t];if(!l?.pagination)return;const{currentPage:u,limit:p,offset:d,hasPreviousPage:f}=l.pagination,m=l.baseOffset??0;if(!1===f)return;if(u<=1)return;const h=d-p;if(h<m)return;const _=u-1,E=l.cacheKey,g=s.common?.dynamicData?.cache??{},y=g[E]?.list,S=g[E]?.totalCount;if((0,i.listRangeSatisfied)(y,h,p,S))return void e({type:o.dynamicDataConstants.SET_LIST_PAGINATION,payload:{clientId:t,currentPage:_,offset:h,hasNextPage:!0,hasPreviousPage:h>m}});const T=s.customization?.present?.data?._id;if(!T||!E)return;const C=c?.props?.dynamicDataProps||{},b=C.cmsId??"blog",v=String(C.listPath??C.filterType??"latest").toLowerCase(),I=C.sort??("latest"===v?"publishDate:desc":"");e((0,r.fetchListData)({projectId:T,clientId:t,mergedCacheKey:E,offset:h,limit:p,listPath:v,cmsId:b,sort:String(I),paginationNavigate:{currentPage:_,offset:h}}))}}},4055:function(t,e,n){"use strict";n.r(e),n.d(e,{uiActions:function(){return f},builderCmsFieldsCacheKey:function(){return y}});var o=n(4961),r=n(9972),i=n(5017),a=n(7878),s=n(3855),c=n(6774),l=n(2033),u=n(3251);function p(t){return{type:a.uiConstants.SET_SHOW_AI_COMPANION_POPUP,payload:t}}function d(t){return{type:a.uiConstants.SET_AI_COMPANION_POPUP_MINIMIZED,payload:t}}const f={toggleAuthenticationModal:function(){return t=>(t(s.alertActions.clear()),t({type:a.uiConstants.CLEAR_AUTHENTICATION_MODAL_TABS}),t({type:a.uiConstants.TOGGLE_AUTHENTICATION_MODAL_VISIBILITY}))},switchAuthenticationModalTabs:function(t){return{type:a.uiConstants.SWITCH_AUTHENTICATION_MODAL_TABS,name:t}},toggleNavigationDropdownMenu:function(){return{type:a.uiConstants.TOGGLE_NAVIGATION_DROPDOWN_MENU}},toggleSignUpModal:function(t){return{type:a.uiConstants.TOGGLE_SIGNUP_MODAL,message:t}},clearSignupModalMessage:function(){return{type:a.uiConstants.CLEAR_SIGNUP_MODAL_MESSAGE}},toggleStatsModalWindow:function(){return t=>{t({type:a.uiConstants.TOGGLE_STATS_MODAL_WINDOW})}},toggleSearchButton:function(){return t=>{t({type:a.uiConstants.TOGGLE_SEARCH_BUTTON})}},toggleDraftPublishModal:function(){return t=>{t({type:a.uiConstants.TOGGLE_DRAFT_PUBLISH_MODAL})}},toggleSideNav:function(){return{type:a.uiConstants.TOGGLE_SIDE_NAV}}
1,setView:function(t,e){return n=>{n({type:a.uiConstants.SET_SCREEN_VIEW,payload:{view:t,width:e}})}},setPremiumModal:function(t){return e=>{e({type:a.uiConstants.SET_PREMIUM_MODAL,payload:t})}},setGuestModal:function(t){return e=>{e({type:a.uiConstants.SET_GUEST_MODAL,payload:t})}},toggleElementOutlines:function(t){return e=>{e({type:a.uiConstants.SET_ELEMENT_OUTLINE_VISIBILITY,payload:t})}},toggleBookmarkInnerTabs:function(t){return e=>{e({type:a.uiConstants.TOGGLE_BOOKMARK_INNER_TAB,payload:t})}},toggleIsLoading:function(t){return{type:a.uiConstants.TOGGLE_IS_LOADING,payload:t}},changeDBTab:function(t){return e=>{e({type:a.uiConstants.CHANGE_DB_TAB,payload:t})}},changeAppSettingsTab:function(t){return e=>{e({type:a.uiConstants.CHANGE_APP_SETTINGS_TAB,payload:t})}},setInitialLoadingStatus:function(t){return{type:a.uiConstants.SET_INITIAL_LOADING_STATUS,payload:t}},setLoaderMessage:function(t){return{type:a.uiConstants.SET_LOADER_MESSAGE,payload:t}},setLoaderIndefinite:function(t){return{type:a.uiConstants.SET_LOADER_INDEFINITE,payload:t}},setPublishSiteLoadingStatus:function(t){return{type:a.uiConstants.SET_PUBLISH_SITE_LOADING_STATUS,payload:t}},setShowCreateTableModal:function(t){return e=>{e({type:a.uiConstants.SET_SHOW_CREATE_TABLE_MODAL,payload:t})}},setShowAddDataModal:function(t){return e=>{e({type:a.uiConstants.SET_SHOW_ADD_DATA_MODAL,payload:t})}},setDeleteRowAlert:function(t){return e=>{e({type:a.uiConstants.SET_DELETE_ROW_ALERT,payload:t})}},setDeleteTableAlert:function(t){return e=>{e({type:a.uiConstants.SET_DELETE_TABLE_ALERT,payload:t})}},setDeleteFunctionAlert:function(t){return e=>{e({type:a.uiConstants.SET_DELETE_FUNCTION_ALERT,payload:t})}},setDragSortedLayouts:function(t){return e=>{e({type:a.uiConstants.SET_DRAG_SORTED_LAYOUTS,payload:t})}},setDragStatus:function(t){return{type:a.uiConstants.SET_DRAG_STATUS,payload:t}},setDockSidebarActiveMenu:function(t=""){return e=>{e({type:a.uiConstants.SET_DOCK_SIDEBAR_ACTIVE_MENU,payload:t||"headers"})}},setCustomizationIsUpdatingFlag:function(t){return{type:a.uiConstants.CUSTOMIZATION_IS_UPDATING_FLAG,payload:t}},updateElementCollidingWithBreadcrumbs:function(t){const{getState:e}=c.default,n=e();if(n.ui.elementCollidingWithBreadcrumbs!==t)return{type:a.uiConstants.ELEMENT_COLLIDING_WITH_BREADCRUMBS,payload:t}},switchWorkspaceTab:function(t){return{type:a.uiConstants.SWITCH_WORKSPACE,payload:t}},setShowCustomComponentStyleModal:function(t){return{type:a.uiConstants.SHOW_CUSTOM_COMPONENT_STYLE_MODAL,payload:t}},setShowPricingModal:function(t,e="",n=!1){return{type:a.uiConstants.SHOW_PRICING_MODAL,payload:t,caseItem:e,hideLicenseAssignment:n}},setShowPricingIframeModal:function(t){return{type:a.uiConstants.SHOW_PRICING_IFRAME_MODAL,payload:t}},setShowChooseProjectForUpgradeModal:function(t){return{type:a.uiConstants.SHOW_CHOOSE_PROJECT_FOR_UPGRADE_MODAL,payload:t}},setPlaygroundModal:function(t,e=""){return n=>{n({type:a.uiConstants.SET_PLAYGROUND_MODAL,payload:t,caseItem:e})}},setSelectEditModeModal:function(t){return e=>{e({type:a.uiConstants.SET_SELECT_EDIT_MODE_MODAL,payload:t})}},showSaveAndPublishPopupPlayground:function(t){return{type:a.uiConstants.SHOW_SAVE_AND_PUBLISH_POPUP_IN_PLAYGROUND,payload:t}},hideAllEditPopups:function(){return t=>{t(h(!1)),t({type:a.uiConstants.HIDE_ALL_EDIT_POPUPS})}},setShowElementFloatingPopup:function(t){return{type:a.uiConstants.SET_SHOW_ELEMENT_FLOATING_POPUP,payload:t}},setDoubleClickedPosition:function(t){return{type:a.uiConstants.SET_DOUBLE_CLICKED_POSITION,payload:t}},setShowFeatureUpdateModalFromBuilder:function(t){return{type:a.uiConstants.SHOW_FEATURE_UPDATE_MODAL_FROM_BUILDER,payload:t}},setComponentEditPanelInnerTabKey:function(t){return{type:a.uiConstants.SET_COMPONENT_EDIT_PANEL_INNER_TAB_KEY,payload:t}},toggleBuilderContextMenuVisibility:function(t){return{type:a.uiConstants.TOGGLE_BUILDER_CONTEXT_MENU_VISIBILITY,payload:t}},toggleSettingsContextAlertBox:function(t){return{type:a.uiConstants.TOGGLE_SETTINGS_CONTEXT_ALERT_BOX,payload:t}},setShowGeneratePageModal:function(t){return{type:a.uiConstants.SHOW_GENERATE_PAGE_MODAL,payload:t}},showPaymentPopup:function(t){return{type:a.uiConstants.SHOW_PAYMENT_POPUP,payload:t}},toggleExitModal:function(t){return{type:a.uiConstants.SHOW_EXIT_MODAL,payload:t}},setRightClickSideMenuStatus:function(t,e){return{type:a.uiConstants.SET_RIGHT_CLICK_SIDE_MENU_STATUS,payload:{status:t,position:e}}},setAISidebarStatus:function(t){return{type:a.uiConstants.SET_AI_SIDE_BAR_STATUS,payload:t}},layoutShiftRequired:function(t="generic"){return{type:a.uiConstants.LAYOUT_SHIFT_REQUIRED,payload:`${t}${(0,o.default)(8)}`}},gridLayoutChildUpdateRequired:g,updateHoverElementPositionData:function(t){return{type:a.uiConstants.UPDATE_HOVER_ELEMENT_POSITION_DATA,payload:t}},setLegacyFormUpdating:function(t,e){if(!t)return;return{type:a.uiConstants.SET_LEGACY_FORM_UPDATING,payload:{clientId:t,val:e}}},setAddElementFlag:function(t,e){return{type:a.uiConstants.SET_ADD_ELEMENT_FLAG,payload:t,options:e}},setAddElementFromCanvasBodyFlag:function(t){return{type:a.uiConstants.SET_ADD_ELEMENT_FROM_CANVAS_BODY_FLAG,payload:t}},setAddElementHelperIds:function(t,e){return{type:a.uiConstants.SET_ADD_ELEMENT_HELPER_IDS,payload:{startId:t,endId:e}}},setIsHoveringInsideForElementAddition:function(t){return{type:a.uiConstants.SET_IS_HOVERING_INSIDE_FOR_ELEMENT_ADDITION,payload:t}}
1,showSyncChangesModal:function(){return{type:a.uiConstants.SHOW_SYNC_CHANGES_MODAL,payload:!0}},setShowAdvancedOptions:function(){return{type:a.uiConstants.SHOW_ADVANCED_OPTIONS,payload:!0}},updatingEmailNotify:function(t){return{type:a.uiConstants.UPDATING_EMAIL_NOTIFY,payload:t}},triggerDoubleClick:function(t){return{type:a.uiConstants.TRIGGER_DOUBLE_CLICK,payload:t}},triggerShiftUpOrDown:function(t){return{type:a.uiConstants.TRIGGER_SHIFT_UP_OR_DOWN,payload:t}},setShowAICompanionPopup:p,setRightSideEditPopupType:E,setIsHoveringOnPlusForElementAddition:function(t){return{type:a.uiConstants.SET_IS_HOVERING_ON_PLUS_FOR_ELEMENT_ADDITION,payload:t}},setIsPaddingDragging:function(t){return{type:a.uiConstants.IS_PADDING_DRAGGING,payload:t}},setPlaygroundSavingFlag:function(t){return{type:a.uiConstants.SET_PLAYGROUND_SAVING_FLAG,payload:t}},setAIFailureAttempt:function(t=null){return{type:a.uiConstants.SET_AI_FAILURE_ATTEMPT,setShowAICompanionPopup:p,payload:t}},toggleReferralPopup:function(t){return{type:a.uiConstants.TOGGLE_REFERRAL_POPUP,payload:t}},uploadImageFile:function(t){let e={asset_id:t.asset_id,name:t.name,height:t.height,width:t.width,src:t.secure_url,file_path:t.file_path,file_size:t.file_size,mime_type:t.mime_type,thumbnail_path:t.thumbnail_path,video_duration:t.duration,createdAt:t.created_at};return{type:a.uiConstants.SUCCESS_SAVE_IMAGE,payload:e}},failureSaveImage:function(t){return{type:a.uiConstants.FAILURE_SAVE_IMAGE,payload:t}},updateFileStorageInfo:function(t){return{type:a.uiConstants.UPDATE_STORAGE_INFO,payload:t}},updateProjectAsset:function(t,e){const{getState:n}=c.default,o=function(t,e,n){return t.map((t=>t.src===e?null===n?{...t,src:"",thumbnail_path:t.mime_type?.startsWith("video/")?"":t.thumbnail_path}:{...t,...n}:t)).filter((t=>""!==t.src))}(n().ui.projectAssets,t,e);return{type:a.uiConstants.SET_PROJECT_ASSETS,payload:o}},deleteImage:function(t,e,n={}){return o=>{o({type:a.uiConstants.DELETE_IMAGE_REQUEST,payload:t}),l.customBuilderService.deleteImageReferences(t,e,n).then((e=>{const r=e?.matchedClientIds||[];r.length>0&&(o((0,u.updateBlueprintAfterDeleteAsset)(r,t,n)),o(_()))})).catch((t=>{console.error("Error in deleteImage action:",t),o(_())}))}},resetDeletedImage:_,setIsDeletingImage:function(t){return async e=>{await e({type:a.uiConstants.IS_DELETING_IMAGE,payload:t})}},updateTotalImages:function(t){return{type:a.uiConstants.UPDATE_TOTAL_IMAGES,payload:t}},setPhotosPanelMode:function(t){return{type:a.uiConstants.SET_PHOTOS_PANEL_MODE,payload:t}},setProjectAssets:function(t){return{type:a.uiConstants.SET_PROJECT_ASSETS,payload:t}},setPhotosPanelLoading:function(t){return{type:a.uiConstants.SET_PHOTOS_PANEL_LOADING,payload:t}},reset:function(){return{type:a.uiConstants.UI_RESET}},updateProjectImage:function(t,e){const{getState:n}=c.default,o=function(t,e,n){return t.map((t=>t.src===e?null===n?{...t,src:""}:{...t,...n}:t)).filter((t=>""!==t.src))}(n().ui.projectImages,t,e);return{type:a.uiConstants.SET_PROJECT_IMAGES,payload:o}},updateProjectVideo:function(t,e){const{getState:n}=c.default,o=function(t,e,n){return t.map((t=>t.src===e?null===n?{...t,src:"",thumbnail_path:""}:{...t,...n}:t)).filter((t=>""!==t.src))}
1(n().ui.projectVideos,t,e);return{type:a.uiConstants.SET_PROJECT_VIDEOS,payload:o}},setProjectImages:function(t){return{type:a.uiConstants.SET_PROJECT_IMAGES,payload:t}},setProjectVideos:function(t){return{type:a.uiConstants.SET_PROJECT_VIDEOS,payload:t}},appendProjectAsset:function(t){let e={asset_id:t.asset_id,name:t.name,height:t.height,width:t.width,src:t.secure_url,file_path:t.file_path,file_size:t.file_size,mime_type:t.mime_type,thumbnail_path:t.thumbnail_path,duration:t.duration,createdAt:t.created_at};return{type:a.uiConstants.APPEND_PROJECT_ASSET,payload:{asset:e}}},setHideThemeVariables:h,setAICompanionPopupMinimized:d,sendToAiCompanionPrompt:function(t){return(e,n)=>{n().ui.aiCompanionPopupMinimized&&(e(d(!1)),e(p(!0)),e(E("aiCompanion"))),e({type:a.uiConstants.SEND_TO_AI_COMPANION_PROMPT,payload:t})}},setShowPublishPopup:function(t){return{type:a.uiConstants.SET_SHOW_PUBLISH_POPUP,payload:t}},openCommandPalette:function(){return{type:a.uiConstants.OPEN_COMMAND_PALETTE}},closeCommandPalette:function(){return t=>{t({type:a.uiConstants.CLOSE_COMMAND_PALETTE}),t(m(""))}},setCommandPaletteState:function(t){return{type:a.uiConstants.SET_COMMAND_PALETTE_STATE,payload:t}},setCommandPaletteStep:function(t){return{type:a.uiConstants.SET_COMMAND_PALETTE_STEP,payload:t}},setAICommandInput:m,clearAICommandResult:function(){return{type:a.uiConstants.CLEAR_AI_COMMAND_RESULT}},ensureBuilderCmsFieldsLoaded:function(t,e){return(n,o)=>
1{if(!e||!t)return;const s=y(t,"blog"),{entries:c,inFlight:l}=o().ui.cmsFields||{entries:{},inFlight:{}};if(c[s]?.loaded)return;if(l[s])return;n({type:a.uiConstants.CMS_FIELDS_REQUEST,payload:{cacheKey:s}});const u=((0,i.returnAPI)()||"").replace(/\/+$/,"");fetch(`${u}/api/projects/${t}/cms-fields/blog?public=true`,{method:"GET",headers:{"x-access-token":(0,r.getToken)()||"",Accept:"application/json"}}).then((t=>{if(!t.ok)throw new Error(t.statusText||String(t.status));return t.json()})).then((t=>{const e=Array.isArray(t.fields)?t.fields:t.data?.fields||[];n({type:a.uiConstants.CMS_FIELDS_SUCCESS,payload:{cacheKey:s,fields:e}})})).catch((t=>{n({type:a.uiConstants.CMS_FIELDS_FAILURE,payload:{cacheKey:s,error:t?.message||"CMS fields request failed"}})}))}},resetCmsFieldsCache:function(){return{type:a.uiConstants.CMS_FIELDS_RESET}},setDynamicListBuilderForce:function(t){return e=>{e(g()),e({type:a.uiConstants.SET_DYNAMIC_LIST_BUILDER_FORCE,payload:t})}}};function m(t){return{type:a.uiConstants.SET_AI_COMMAND_INPUT,payload:t}}function h(t){return{type:a.uiConstants.SET_HIDE_THEME_VARIABLES,payload:t}}function _(){return{type:a.uiConstants.RESET_DELETED_IMAGE}}function E(t){return{type:a.uiConstants.SET_RIGHT_SIDE_EDIT_POPUP_TYPE,payload:t}}function g(){return{type:a.uiConstants.GRID_LAYOUT_CHILD_UPDATE_REQUIRED,payload:(0,o.default)(8)}}function y(t,e="blog"){return`${t}::${e}`}},3476:function(t,e,n){"use strict";n.r(e),n.d(e,{userActions:function(){return u}});var o=n(7100),r=n(5654),i=n(6354),a=n(9972),s=n(7911),c=n(6113),l=n(1267);const u={login:function(t,e,n){return c=>{c(f(o.userConstants.VERIFY_USER)),c(f(o.userConstants.LOGIN_REQUEST)),r.userService.login(t,e,n).then((t=>{t.emailVerification.isEmailVerified?!0===t.temporaryPasswordGenerated?c(m(o.userConstants.VERIFICATION_SUCCESS,t)):(c(m(o.userConstants.VERIFICATION_SUCCESS,t)),setTimeout((()=>{c(i.alertActions.clear())}),2e3)):(c(m(o.userConstants.VERIFICATION_SUCCESS,t)),!t.temporaryPasswordGenerated&&c(i.alertActions.success("Welcome back! You will need to confirm your email first"))),c(m(o.userConstants.LOGIN_SUCCESS,null))}),(t=>{c(m(o.userConstants.LOGIN_FAILURE,null)),c((0,s.failure)(o.userConstants.VERIFICATION_FAILURE,t.toString())),(0,a.removeItem)("token"),c(i.alertActions.error(t.toString())),setTimeout((()=>{c(i.alertActions.clear())}),5e3)}))}},logout:p,register:function(t){return e=>{e(f(o.userConstants.REGISTER_REQUEST)),r.userService.register(t).then((t=>{e(m(o.userConstants.REGISTER_SUCCESS,t))}),(t=>{e((0,s.failure)(o.userConstants.REGISTER_FAILURE,t.toString())),e(i.alertActions.error(t.toString())),setTimeout((()=>{e(i.alertActions.clear())}),5e3)}))}},removeUser:function(t){return e=>{e(f(o.userConstants.REQUEST_DELETE_USER)),r.userService.deleteUserAccount(t).then((t=>{e(p()),e(m(o.userConstants.SUCCESS_DELETE_USER,t))}),(t=>{e((0,s.failure)(o.userConstants.FAILURE_DELETE_USER,t))}))}},googleRegister:function(t,e,n){return a=>{a(f(o.userConstants.REGISTER_REQUEST)),r.userService.googleAuthentication(t,e,n.provider).then((t=>{a(m(o.userConstants.REGISTER_SUCCESS,t)),a(i.alertActions.success("Registration Successful")),setTimeout((()=>{a(i.alertActions.clear())}),2e3)}),(t=>{a((0,s.failure)(o.userConstants.REGISTER_FAILURE,t.toString())),a(i.alertActions.error(t.toString())),setTimeout((()=>{a(i.alertActions.clear())}),5e3)}))}},facebookRegister:function(t,e){return n=>{n(f(o.userConstants.REGISTER_REQUEST)),r.userService.facebookAuthentication(t,e).then((t=>{n(m(o.userConstants.REGISTER_SUCCESS,t)),n(i.alertActions.success("Registration Successful")),setTimeout((()=>{n(i.alertActions.clear())}),2e3)}),(t=>{n((0,s.failure)(o.userConstants.REGISTER_FAILURE,t.toString())),n(i.alertActions.error(t.toString())),setTimeout((()=>{n(i.alertActions.clear())}),5e3)}))}},googleLogin:function(t){return e=>{e(f(o.userConstants.LOGIN_REQUEST)),r.userService.googleAuthentication(t).then((t=>{e(m(o.userConstants.LOGIN_SUCCESS,t)),window.location.reload(),setTimeout((()=>{e(i.alertActions.clear())}),2e3)}),(t=>{window.showToast({type:"error",msg:"Error logging you in, try again later"}),e((0,s.failure)(o.userConstants.LOGIN_FAILURE,t.toString())),e(i.alertActions.error(t.toString())),setTimeout((()=>{e(i.alertActions.clear())}),5e3)}))}},facebookLogin:function(t,e){return n=>{n(f(o.userConstants.LOGIN_REQUEST));r.userService.facebookAuthentication(t,e,!0).then((t=>{n(m(o.userConstants.LOGIN_SUCCESS,t)),n(i.alertActions.success("Welcome back "+t.name.charAt(0)+"!")),setTimeout((()=>{n(i.alertActions.clear())}),2e3)}),(t=>{n((0,s.failure)(o.userConstants.LOGIN_FAILURE,t.toString())),n(i.alertActions.error(t.toString())),setTimeout((()=>{n(i.alertActions.clear())}),5e3)}))}}
1,resendVerificationEmail:d,verifyEmailCode:function(t,e){return n=>{n(f(o.userConstants.REQUEST_OTP)),r.userService.verifyEmailCode(t,e).then((t=>{n(m(o.userConstants.SUCCESS_OTP,t)),n(i.alertActions.success(" Your account has been verified.")),setTimeout((()=>{n(i.alertActions.clear())}),2e3)}),(t=>{n((0,s.failure)(o.userConstants.FAILURE_OTP)),n(i.alertActions.error(t.toString())),setTimeout((()=>{n(i.alertActions.clear())}),5e3)}))}},getUserDetails:function(t){return e=>{e(f(o.userConstants.FETCH_USER)),r.userService.fetchUserDetails(t).then((t=>{e(m(o.userConstants.SUCCESS_FETCH_USER,t))}),(t=>{e((0,s.failure)(o.userConstants.REGISTER_FAILURE,t.toString()))}))}},saveUserDetails:function(t,e,n){return i=>{i(f(o.userConstants.SAVE_USER)),r.userService.postAuthorDetails(t,e).then((e=>{i(m(o.userConstants.SUCCESS_SAVE_USER,e)),n&&d(t),i({type:o.errorsConstants.REMOVE_ERROR}),window.showToast?.({type:"success",msg:"Successfully updated profile."}),i({type:o.alertConstants.SUCCESS,message:"Status successfully updated"})}),(t=>{window.showToast?.({type:"error",msg:"Failed to updated profile. Contact support if the issue persists"}),i({type:o.errorsConstants.ADD_ERROR,payload:{type:"USER_UPDATE_FAILED",error:t}}),i((0,s.failure)(o.userConstants.FAILURE_SAVE_USER,t.toString()))}))}},reportUser:function(t,e){return n=>{n({type:o.userConstants.REPORT_USER}),r.userService.reportUser(t,e).then((()=>{n({type:o.userConstants.REPORT_USER_SUCCESS,payload:"Successfully reported"})}),(t=>{n({type:o.errorsConstants.ADD_ERROR,payload:{type:"USER_REPORT_FAILURE",error:t}}),n({type:o.userConstants.REPORT_USER_FAILURE,payload:t})}))}},requestTempPassword:function(t){return e=>{e(f(o.userConstants.REQUEST_FORGOT_PASSWORD)),r.userService.requestTempPassword(t).then((t=>{t.token?((0,a.setItem)("fpToken",t.token),e(m(o.userConstants.SUCCESS_FORGOT_PASSWORD,t))):e((0,s.failure)("Something went wrong. Report the issue to [email protected]"))}),(t=>{e((0,s.failure)(o.userConstants.FAILURE_FORGOT_PASSWORD,t.toString()))}))}},clearUserReportMessage:function(){return t=>{t({type:o.userConstants.CLEAR_USER_REPORT_MESSAGE})}},updatePassword:function(t){return(e,n)=>{let i=n().user.data;e(f(o.userConstants.REQUEST_CONFIRM_PASSWORD)),r.userService.updatePassword(t,i).then((t=>{e(m(o.userConstants.SUCCESS_CONFIRM_PASSWORD,t)),(0,a.removeItem)("fpToken")}),(t=>{e((0,s.failure)(o.userConstants.FAILURE_CONFIRM_PASSWORD,t.toString()))}))}},fetchReferralList:function(){return(t,e)=>{let n=e().user.data._id||localStorage.getItem("uRI");t(f(o.userConstants.REQUEST_REFERRAL_LIST)),r.userService.fetchReferralList(n).then((e=>{t(m(o.userConstants.SUCCESS_REFERRAL_LIST,e))}),(e=>{t((0,s.failure)(o.userConstants.FAILURE_REFERRAL_LIST,e.toString()))}))}},updateUserFields:function(t={}){return(e,n)=>{let i=n().user.data;e(f(o.userConstants.REQUEST_UPDATE_USER_DATA)),r.userService.updateUserFields(i._id,t).then((t=>{e(m(o.userConstants.SUCCESS_UPDATE_USER_DATA,t))}),(t=>{e((0,s.failure)(o.userConstants.FAILURE_UPDATE_USER_DATA,t.toString()))}))}},updateTourTimer:function(t,e){return n=>{n({type:o.userConstants.UPDATE_TOUR_TIMER,payload:{tour:t,timer:e}})}},setIsPartOfCodeDesignTeam:function(t){return{type:o.userConstants.IS_PART_OF_CODE_DESIGN_TEAM,payload:t}},validateSocialReferForAI:function(t,e){return(n,i)=>{const a=i().user.data._id;n({type:o.userConstants.REQUEST_VALIDATE_SOCIAL_REFER_FOR_AI}),c.default.track("AI Onboard Referral - Handling Social Post Validation",{platform:t,postUrl:e}),l.default.track("AI Onboard Referral - Handling Social Post Validation",{platform:t,postUrl:e}),r.userService.validateSocialReferForAI(a,t,e).then((r=>{const{socialReferForAI:i}=r;c.default.track("AI Onboard Referral - Success Handling Social Post Validation",{platform:t,postUrl:e,socialReferForAI:i}),l.default.track("AI Onboard Referral - Success Handling Social Post Validation",{platform:t,postUrl:e,socialReferForAI:i}),n(m(o.userConstants.SUCCESS_VALIDATE_SOCIAL_REFER_FOR_AI,{...i,[t]:"inProgress"}))}),(r=>{c.default.track("AI Onboard Referral - Failure Handling Social Post Validation",{platform:t,postUrl:e,error:r.toString()}),l.default.track("AI Onboard Referral - Failure Handling Social Post Validation",{platform:t,postUrl:e,error:r.toString()}),n((0,s.failure)(o.userConstants.FAILURE_VALIDATE_SOCIAL_REFER_FOR_AI,{[t]:"false",error:r.toString()}))}))}}};function p(){return t=>{r.userService.logout(),t({type:o.userConstants.LOGOUT})}}function d(t){return e=>{r.userService.resendVerificationEmail(t).then((()=>{e(i.alertActions.success("Email sent!")),setTimeout((()=>{e(i.alertActions.clear())}),5e3)}),(t=>{e(i.alertActions.error(t.toString())),setTimeout((()=>{e(i.alertActions.clear())}),5e3)}))}}function f(t){return{type:t}}function m(t,e){return n=>{n({type:t,user:e})}}},9329:function(t,e,n){"use strict";n.r(e),n.d(e,{alertConstants:function(){return o}});const o={SUCCESS:"ALERT_SUCCESS",ERROR:"ALERT_ERROR",CLEAR:"ALERT_CLEAR"}},2212:function(t,e,n){"use strict";n.r(e),n.d(e,{cloudinaryConstants:function(){return o}});
1const o={IMAGE_UPLOAD_PERCENT:"IMAGE_UPLOAD_PERCENT",REQUEST_CLOUDINARY:"REQUEST_CLOUDINARY",SUCCESS_CLOUDINARY:"SUCCESS_CLOUDINARY",FAILURE_CLOUDINARY:"FAILURE_CLOUDINARY"}},641:function(t,e,n){"use strict";n.r(e),n.d(e,{commonConstants:function(){return o}});const o={REQUEST_FETCH_SITE:"REQUEST_FETCH_SITE_PROFILE",SUCCESS_FETCH_SITE:"SUCCESS_FETCH_SITE_PROFILE",FAILURE_FETCH_SITE:"FAILURE_FETCH_SITE_PROFILE",REQUEST_FETCH_PAGE:"REQUEST_FETCH_PAGE",SUCCESS_FETCH_PAGE:"SUCCESS_FETCH_PAGE",FAILURE_FETCH_PAGE:"FAILURE_FETCH_PAGE",TOGGLE_REFRESH_REQUIRED:"TOGGLE_REFRESH_REQUIRED",SUCCESS_UPDATE_SITE:"SUCCESS_UPDATE_SITE",REQUEST_ADD_DOMAIN:"REQUEST_ADD_DOMAIN",SUCCESS_ADD_DOMAIN:"SUCCESS_ADD_DOMAIN",FAILURE_ADD_DOMAIN:"FAILURE_ADD_DOMAIN",REQUEST_DOMAIN_LIST_OF_USER:"REQUEST_DOMAIN_LIST_OF_USER",SUCCESS_DOMAIN_LIST_OF_USER:"SUCCESS_DOMAIN_LIST_OF_USER",FAILURE_DOMAIN_LIST_OF_USER:"FAILURE_DOMAIN_LIST_OF_USER",REQUEST_VERIFICATION_STATUS:"REQUEST_VERIFICATION_STATUS",SUCCESS_VERIFICATION_STATUS:"SUCCESS_VERIFICATION_STATUS",FAILURE_VERIFICATION_STATUS:"FAILURE_VERIFICATION_STATUS",CLEAR_COMMON_ERROR:"CLEAR_COMMON_ERROR",CLEAR_SUBDOMAIN_ERROR:"CLEAR_SUBDOMAIN_ERROR",REQUEST_DELETE_DOMAIN:"REQUEST_DELETE_DOMAIN",SUCCESS_DELETE_DOMAIN:"SUCCESS_DELETE_DOMAIN",FAILURE_DELETE_DOMAIN:"FAILURE_DELETE_DOMAIN",REQUEST_SUBDOMAIN_CHECK:"REQUEST_SUBDOMAIN_CHECK",SUCCESS_SUBDOMAIN_CHECK:"SUCCESS_SUBDOMAIN_CHECK",FAILURE_SUBDOMAIN_CHECK:"FAILURE_SUBDOMAIN_CHECK",UPDATE_CLIENT_INPUTS:"UPDATE_CLIENT_INPUTS"}},9857:function(t,e,n){"use strict";n.r(e),n.d(e,{customizationConstants:function(){return o}});const o={UPDATE_STATIC_MEDIA:"UPDATE_STATIC_MEDIA",REQUEST_CHECK_TEMPLATE:"REQUEST_CHECK_TEMPLATE",SUCCESS_CHECK_TEMPLATE:"SUCCESS_CHECK_TEMPLATE",FAILURE_CHECK_TEMPLATE:"FAILURE_CHECK_TEMPLATE",SET_TITLES_FOR_AI_SECTIONS_USED_IN_BUILDER:"SET_TITLES_FOR_AI_SECTIONS_USED_IN_BUILDER",SET_AI_ONBOARDING:"SET_AI_ONBOARDING",RESET_AI_ONBOARDING:"RESET_AI_ONBOARDING",REQUEST_GENERATE_META_FROM_PROMPT:"REQUEST_GENERATE_META_FROM_PROMPT",SUCCESS_GENERATE_META_FROM_PROMPT:"SUCCESS_GENERATE_META_FROM_PROMPT",FAILURE_GENERATE_META_FROM_PROMPT:"FAILURE_GENERATE_META_FROM_PROMPT",SET_PROJECT_FROM_PROMPT_TRANSFERRED:"SET_PROJECT_FROM_PROMPT_TRANSFERRED",SET_STYLE_SETTINGS_FOLDABLE_BLOCK:"SET_STYLE_SETTINGS_FOLDABLE_BLOCK",TRIGGER_COMPONENT_EDIT_PANEL_UPDATE:"TRIGGER_COMPONENT_EDIT_PANEL_UPDATE",UPDATE_PLAYGROUND_DOCUMENT_HEAD_FLAG:"UPDATE_PLAYGROUND_DOCUMENT_HEAD_FLAG",REQUEST_UNLINK_VARIABLES_USED_IN_PROJECT:"REQUEST_UNLINK_VARIABLES_USED_IN_PROJECT",SUCCESS_UNLINK_VARIABLES_USED_IN_PROJECT:"SUCCESS_UNLINK_VARIABLES_USED_IN_PROJECT",FAILURE_UNLINK_VARIABLES_USED_IN_PROJECT:"FAILURE_UNLINK_VARIABLES_USED_IN_PROJECT",REQUEST_GENERATE_AI_FOR_PAGE:"REQUEST_GENERATE_AI_FOR_PAGE",SUCCESS_GENERATE_AI_FOR_PAGE:"SUCCESS_GENERATE_AI_FOR_PAGE",FAILURE_GENERATE_AI_FOR_PAGE:"FAILURE_GENERATE_AI_FOR_PAGE",AI_FEEDBACK_TOAST_PENDING:"AI_FEEDBACK_TOAST_PENDING",SET_RECENTLY_EDITED_COMPONENT:"SET_RECENTLY_EDITED_COMPONENT",STORE_PROJECT_PROMPT:"STORE_PROJECT_PROMPT",STORE_FLAG_TO_TRY_PROMPT_AGAIN:"STORE_FLAG_TO_TRY_PROMPT_AGAIN",UPDATE_UI_STATE:"UPDATE_UI_STATE",CLIENT_DEPLOY_PENDING:"CLIENT_DEPLOY_PENDING",UPDATE_BP_ONLY:"UPDATE_BP_ONLY",REQUEST_FETCH_COMPONENT_MANIFEST:"REQUEST_FETCH_COMPONENT_MANIFEST",SUCCESS_FETCH_COMPONENT_MANIFEST:"SUCCESS_FETCH_COMPONENT_MANIFEST",FAILURE_FETCH_COMPONENT_MANIFEST:"FAILURE_FETCH_COMPONENT_MANIFEST",REQUEST_FETCH_TEMPLATES:"REQUEST_FETCH_TEMPLATES",SUCCESS_FETCH_TEMPLATES:"SUCCESS_FETCH_TEMPLATES",FAILURE_FETCH_TEMPLATES:"FAILURE_FETCH_TEMPLATES",REQUEST_FETCH_TEMPLATES_V2:"REQUEST_FETCH_TEMPLATES_V2",SUCCESS_FETCH_TEMPLATES_V2:"SUCCESS_FETCH_TEMPLATES_V2",FAILURE_FETCH_TEMPLATES_V2:"FAILURE_FETCH_TEMPLATES_V2",REQUEST_FETCH_COMPONENT_LIBRARY_V2:"REQUEST_FETCH_COMPONENT_LIBRARY_V2",SUCCESS_FETCH_COMPONENT_LIBRARY_V2:"SUCCESS_FETCH_COMPONENT_LIBRARY_V2",FAILURE_FETCH_COMPONENT_LIBRARY_V2:"FAILURE_FETCH_COMPONENT_LIBRARY_V2",REQUEST_FETCH_TEMPLATE_BY_KEY:"REQUEST_FETCH_TEMPLATE_BY_KEY",SUCCESS_FETCH_TEMPLATE_BY_KEY:"SUCCESS_FETCH_TEMPLATE_BY_KEY",FAILURE_FETCH_TEMPLATE_BY_KEY:"FAILURE_FETCH_TEMPLATE_BY_KEY",REFRESH_CANVAS:"REFRESH_CANVAS",SET_TEMP_FONT_FAMILIES:"SET_TE
1MP_FONT_FAMILIES",TOGGLE_CUSTOMIZATION:"TOGGLE_CUSTOMIZATION",TOGGLE_IMAGE_EDIT_MODAL:"TOGGLE_IMAGE_EDIT_MODAL",TOGGLE_COMPONENT_EDIT_MODAL:"TOGGLE_COMPONENT_EDIT_MODAL",STORE_IMAGE_COMP_ID:"STORE_IMAGE_COMPONENT_ID",UPDATE_AUTO_RESPONSIVE_COMPS:"UPDATE_AUTO_RESPONSIVE_COMPS",REQUEST_FETCH_WEB_BUILDER:"REQUEST_FETCH_WEBBUILDER",SUCCESS_FETCH_WEB_BUILDER:"SUCCESS_FETCH_WEBBUILDER",FAILURE_FETCH_WEB_BUILDER:"FAILURE_FETCH_WEBBUILDER",REQUEST_UPDATE_PREVIEW_IMAGE:"REQUEST_UPDATE_PREVIEW_IMAGE",SUCCESS_UPDATE_PREVIEW_IMAGE:"SUCCESS_UPDATE_PREVIEW_IMAGE",FAILURE_UPDATE_PREVIEW_IMAGE:"FAILURE_UPDATE_PREVIEW_IMAGE",SUCCESS_POLL_WEB_BUILDER:"SUCCESS_POLL_WEBBUILDER",REQUEST_FETCH_WEB_BUILDERS:"REQUEST_FETCH_WEBBUILDERS",SUCCESS_FETCH_WEB_BUILDERS:"SUCCESS_FETCH_WEBBUILDERS",FAILURE_FETCH_WEB_BUILDERS:"FAILURE_FETCH_WEBBUILDERS",REQUEST_SAVE_LAYOUT:"REQUEST_SAVE_LAYOUT",SUCCESS_SAVE_LAYOUT:"SUCCESS_SAVE_LAYOUT",FAILURE_SAVE_LAYOUT:"FAILURE_SAVE_LAYOUT",CHANGE_VIEW:"CHANGE_BUILDER_VIEW",CHANGE_CONTEXT:"CHANGE_BUILDER_CONTEXT",CHANGE_ZINDEX:"CHANGE_ZINDEX",REQUEST_SAVE_CROPPED_IMAGE:"REQUEST_SAVE_CROPPED_IMAGE",SUCCESS_SAVE_CROPPED_IMAGE:"SUCCESS_SAVE_CROPPED_IMAGE",FAILURE_SAVE_CROPPED_IMAGE:"FAILURE_SAVE_CROPPED_IMAGE",STORE_IMAGE_COMP_ID_AND_URL:"STORE_IMAGE_COMP_ID_AND_URL",CHANGE_LAYOUT:"CHANGE_LAYOUT_ON_DROP",CHANGE_LAYOUT_CHILD:"CHANGE_LAYOUT_CHILD",DROP_UPDATE:"DROP_UPDATE",REPLACE_LAYOUT:"REPLACE_LAYOUT",REPLACE_TEMP_LAYOUT:"REPLACE_TEMP_LAYOUT",ADD_TEMP_LAYOUT:"ADD_TEMP_LAYOUT_ON_GROUP",UPDATE_BLUEPRINT:"UPDATE_BLUEPRINT",UPDATE_BLUEPRINT_WITH_MULTIPLE_COMPONENTS:"UPDATE_BLUEPRINT_WITH_MULTIPLE_COMPONENTS",BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE:"BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE",BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE_WM:"BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE_WM",UPDATE_COMPONENT_PROPS:"UPDATE_COMPONENT_PROPS",UPDATE_COMPONENT_PROPS_DONE:"UPDATE_COMPONENT_PROPS_DONE",REQUEST_DELETE_COMPONENT:"REQUEST_DELETE_COMPONENT",SUCCESS_DELETE_COMPONENT:"SUCCESS_DELETE_COMPONENT",SUCCESS_DELETE_MULTIPLE_COMPONENTS:"SUCCESS_DELETE_MULTIPLE_COMPONENTS",FAILURE_DELETE_COMPONENT:"FAILURE_DELETE_COMPONENT",REQUEST_HIDE_COMPONENT:"REQUEST_HIDE_COMPONENT",SUCCESS_HIDE_MULTIPLE_COMPONENTS:"SUCCESS_HIDE_MULTIPLE_COMPONENTS",REQUEST_DELETE_COMPONENT_FROM_MANIFEST:"REQUEST_DELETE_COMPONENT_FROM_MANIFEST",SUCCESS_DELETE_COMPONENT_FROM_MANIFEST:"SUCCESS_DELETE_COMPONENT_FROM_MANIFEST",FAILURE_DELETE_COMPONENT_FROM_MANIFEST:"FAILURE_DELETE_COMPONENT_FROM_MANIFEST",STORE_SELECTED_COMPONENT:"STORE_SELECTED_COMPONENT",STORE_SELECTED_COMPONENT_INTO_ARRAY:"STORE_SELECTED_COMPONENT_INTO_ARRAY",CLEAR_SELECTED_COMPONENTS_ARRAY:"REMOVE_SELECTED_COMPONENT_FROM_ARRAY",CREATE_TEMPLATE:"CREATE_NEW_TEMPLATE",UPDATE_TEMPLATE:"UPDATE_TEMPLATE",DELETE_TEMPLATE:"DELETE",TOGGLE_SHOW_GRID:"TOGGLE_SHOW_GRID",CHANGE_GRID_DENSITY:"CHANGE_GRID_DENSITY",REQUEST_ADD_PAGE:"REQUEST_ADD_PAGE_TO_TEMPLATE",SUCCESS_ADD_PAGE:"SUCCESS_ADD_PAGE_TO_TEMPLATE",FAILURE_ADD_PAGE:"FAILURE_ADD_PAGE_TO_TEMPLATE",DELETE_ADD_PAGE:"DELETE_ADD_PAGE_TO_TEMPLATE",REQUEST_ADD_PROJECT:"REQUEST_ADD_PROJECT",SUCCESS_ADD_PROJECT:"SUCCESS_ADD_PROJECT",FAILURE_ADD_PROJECT:"FAILURE_ADD_PROJECT",REQUEST_DELETE_PAGE:"REQUEST_DELETE_PAGE_FROM_TEMPLATE",SUCCESS_DELETE_PAGE:"SUCCESS_DELETE_PAGE_FROM_TEMPLATE",FAILURE_DELETE_PAGE:"FAILURE_DELETE_PAGE_FROM_TEMPLATE",REQUEST_SAVE_AS_PRESET:"REQUEST_SAVE_AS_PRESET",SUCCESS_SAVE_AS_PRESET:"SUCCESS_SAVE_AS_PRESET",FAILURE_SAVE_AS_PRESET:"FAILURE_SAVE_AS_PRESET",UPDATE_COMPONENTMANIFEST_LOCALLY:"UPDATE_COMPONENTMANIFEST_PROPS_LOCALLY",REQUEST_DELETE_PROJECT:"REQUEST_DELETE_PROJECT",SUCCESS_DELETE_PROJECT:"SUCCESS_DELETE_PROJECT",FAILURE_DELETE_PROJECT:"FAILURE_DELETE_PROJECT",UPDATE_PROJECT_NAME:"UPDATE_PROJECT_NAME",UPDATE_PAGE:"UPDATE_PAGE",UPDATE_BLUEPRINT_BROADCAST:"UPDATE_BLUEPRINT_BROADCAST",REQUEST_SEND_URL:"REQUEST_SEND_URL",SUCCESS_SEND_URL:"SUCCESS_SEND_URL",FAILURE_SEND_URL:"FAILURE_SEND_URL",REQUEST_VERIFY_URL:"REQUEST_VERIFY_URL",SUCCESS_VERIFY_URL:"SUCCESS_VERIFY_URL",FAILURE_VERIFY_URL:"FAILURE_VERIFY_URL",UNDO_ACTION:"UNDO_ACTION",UNDO_ACTION_COMPLETE:"UNDO_ACTION_COMPLETE",SET_SAVELAYOUT_HISTORY:"SET_SAVELAYOUT_HISTORY",PUBLISH_PAGE_LAYOUT:"PUBLISH_PAGE_LAYOUT",SUCCESS_PUBLISH_PAGE_LAYOUT:"SUCCESS_PUBLISH_PAGE_LAYOUT",FAILURE_PUBLISH_PAGE_LAYOUT:"FAILURE_PUBLISH_PAGE_LAYOUT",SET_FONT_LOADING_STATUS:"SET_FONT_LOADING_STATUS",REQUEST_UPDATE_TEXT_MANIFEST:"REQUEST_UPDATE_TEXT_MANIFEST",SUCCESS_UPDATE_TEXT_MANIFEST:"SUCCESS_UPDATE_TEXT_MANIFEST",FAILURE_UPDATE_TEXT_MANIFEST:"FAILURE_UPDATE_TEXT_MANIFEST",REQUEST_FETCH_GOOGLE_FONTS:"REQUEST_FETCH_GOOGLE_FONTS",SUCCESS_FETCH_GOOGLE_FONTS:"SUCCESS_FETCH_GOOGLE_FONTS",FAILURE_FETCH_GOOGLE_FONTS:"FAILURE_FETCH_GOOGLE_FONTS",RESET_GOOG
1LE_FONTS:"RESET_GOOGLE_FONTS",REQUEST_IMPORT_FONTS_USED_IN_TEXT_MANIFEST:"REQUEST_IMPORT_FONTS_USED_IN_TEXT_MANIFEST",SUCCESS_IMPORT_FONTS_USED_IN_TEXT_MANIFEST:"SUCCESS_IMPORT_FONTS_USED_IN_TEXT_MANIFEST",REQUEST_UPDATE_SITE_FONTS:"REQUEST_UPDATE_SITE_FONTS",SUCCESS_UPDATE_SITE_FONTS:"SUCCESS_UPDATE_SITE_FONTS",FAILURE_UPDATE_SITE_FONTS:"FAILURE_UPDATE_SITE_FONTS",REQUEST_FETCH_TAGS:"REQUEST_FETCH_TAGS",SUCCESS_FETCH_TAGS:"SUCCESS_FETCH_TAGS",FAILURE_FETCH_TAGS:"FAILURE_FETCH_TAGS",REMOVE_LAYOUTS_FROM_TEMP_LAYOUTS:"REMOVE_LAYOUTS_FROM_TEMP_LAYOUTS",RESET_DOMAIN_DETAILS:"RESET_DOMAIN_DETAILS",REQUEST_FETCH_VERSIONS:"REQUEST_FETCH_VERSIONS",SUCCESS_FETCH_VERSIONS:"SUCCESS_FETCH_VERSIONS",FAILURE_FETCH_VERSIONS:"FAILURE_FETCH_VERSIONS",REQUEST_UPDATE_WITH_NEW_TEMPLATE:"REQUEST_UPDATE_WITH_NEW_TEMPLATE",SUCCESS_UPDATE_WITH_NEW_TEMPLATE:"SUCCESS_UPDATE_WITH_NEW_TEMPLATE",FAILURE_UPDATE_WITH_NEW_TEMPLATE:"REQUEST_UPDATE_WITH_NEW_TEMPLATE",TOGGLE_SHOW_CUSTOM_LAYOUT:"TOGGLE_SHOW_CUSTOM_LAYOUT",UPDATE_GUIDELINES:"UPDATE_GUIDELINES",UPDATE_RESIZE_STATUS:"UPDATE_RESIZE_STATUS",UPDATE_SELECTED_BLOCK:"UPDATE_SELECTED_BLOCK",EXCHANGE_START:"EXCHANGE_START",EXCHANGE_END:"EXCHANGE_END",EXCHANGE_CHILDREN:"EXCHANGE_CHILDREN",REMOVE_PROPERTY:"REMOVE_PROPERTY",UNDO:"UNDO",REDO:"REDO",UNDOS_REVISION_UPDATE:"UNDOS_REVISION_UPDATE",UNDOS_REVISION_UPDATE_COMPLETED:"UNDOS_REVISION_UPDATE_COMPLETED",UNDOS_REVISION_UPDATE_IS_STORING_START:"UNDOS_REVISION_UPDATE_IS_STORING_START",REQUEST_EXPORT_CODE:"REQUEST_EXPORT_CODE",SUCCESS_EXPORT_CODE:"SUCCESS_EXPORT_CODE",FAILURE_EXPORT_CODE:"FAILURE_EXPORT_CODE",TOGGLE_PARENT_OUTLINE:"TOGGLE_PARENT_OUTLINE",SET_BUILDER_CANVAS_REF:"SET_BUILDER_CANVAS_REF",SET_BUILDER_CONTAINER_REF:"SET_BUILDER_CONTAINER_REF",UPDATE_CANVAS_TRANSFORM_VALUE:"UPDATE_CANVAS_TRANSFORM_VALUE",UPDATE_SIDE_POPUP_MENU:"UPDATE_SIDE_POPUP_MENU",START_POLLING:"START_POLLING",STOP_POLLING:"STOP_POLLING",UPDATE_COLOR_PALETTE:"UPDATE_COLOR_PALETTE",REQUEST_FETCH_KB_ARTICLE:"REQUEST_FETCH_KB_ARTICLE",SUCCESS_FETCH_KB_ARTICLE:"SUCCESS_FETCH_KB_ARTICLE",FAILURE_FETCH_KB_ARTICLE:"FAILURE_FETCH_KB_ARTICLE",TOGGLE_GLOBAL_SHIFT_KEY:"TOGGLE_GLOBAL_SHIFT_KEY",UPDATE_RESPONSIVE_VIEW_FLAG:"UPDATE_RESPONSIVE_VIEW_FLAG",REQUEST_COPY_PROJECT:"REQUEST_COPY_PROJECT",SUCCESS_COPY_PROJECT:"SUCCESS_COPY_PROJECT",FAILURE_COPY_PROJECT:"FAILURE_COPY_PROJECT",TOGGLE_PHOTOS_PANEL:"TOGGLE_PHOTOS_PANEL",REQUEST_ADD_DOMAIN_TO_PROJECT:"REQUEST_ADD_DOMAIN_TO_PROJECT",SUCCESS_ADD_DOMAIN_TO_PROJECT:"SUCCESS_ADD_DOMAIN_TO_PROJECT",FAILURE_ADD_DOMAIN_TO_PROJECT:"FAILURE_ADD_DOMAIN_TO_PROJECT",REQUEST_ADD_SUB_DOMAIN_TO_PROJECT:"REQUEST_ADD_SUB_DOMAIN_TO_PROJECT",SUCCESS_ADD_SUB_DOMAIN_TO_PROJECT:"SUCCESS_ADD_SUB_DOMAIN_TO_PROJECT",FAILURE_ADD_SUB_DOMAIN_TO_PROJECT:"FAILURE_ADD_SUB_DOMAIN_TO_PROJECT",REQUEST_PUBLISH_PROJECT:"REQUEST_PUBLISH_PROJECT",SUCCESS_PUBLISH_PROJECT:"SUCCESS_PUBLISH_PROJECT",FAILURE_PUBLISH_PROJECT:"FAILURE_PUBLISH_PROJECT",REQUEST_FETCH_HOST:"REQUEST_FETCH_HOST",SUCCESS_FETCH_HOST:"SUCCESS_FETCH_HOST",FAILURE_FETCH_HOST:"FAILURE_FETCH_HOST",TOGGLE_HOST_STATUS:"TOGGLE_HOST_STATUS",UPDATE_DOMAIN_ACTIVE_STATUS:"UPDATE_DOMAIN_ACTIVE_STATUS",UPDATE_SUB_DOMAIN_ACTIVE_STATUS:"UPDATE_SUB_DOMAIN_ACTIVE_STATUS",UPDATE_BLUEPRINT_CONTENT_REQUEST:"UPDATE_BLUEPRINT_CONTENT_REQUEST",UPDATE_BLUEPRINT_CONTENT_SUCCESS:"UPDATE_BLUEPRINT_CONTENT_SUCCESS",UPDATE_BLUEPRINT_CONTENT_FAILURE:"UPDATE_BLUEPRINT_CONTENT_FAILURE",UPDATE_BLUEPRINT_CONTENT:"UPDATE_BLUEPRINT_CONTENT",STORE_SELECTED_STATENAME:"STORE_SELECTED_STATENAME",UPDATE_ACTIVE_FONTS:"UPDATE_ACTIVE_FONTS",REQUEST_SAVE_CUSTOM_CODE:"REQUEST_SAVE_CUSTOM_CODE",SUCCESS_SAVE_CUSTOM_CODE:"SUCCESS_SAVE_CUSTOM_CODE",FAILURE_SAVE_CUSTOM_CODE:"FAILURE_SAVE_CUSTOM_CODE",CLEAR_CUSTOM_CODE_ERROR:"CLEAR_CUSTOM_CODE_ERROR",TOGGLE_API_EDITOR:"TOGGLE_API_EDITOR",REQUEST_UPDATE_INTEGRATION:"REQUEST_UPDATE_INTEGRATION",SUCCESS_UPDATE_INTEGRATION:"SUCCESS_UPDATE_INTEGRATION",FAILURE_UPDATE_INTEGRATION:"FAILURE_UPDATE_INTEGRATION",CLEAR_UPDATE_INTEGRATION_ERROR:"CLEAR_UPDATE_INTEGRATION_ERROR",UPDATE_FORM_STATE:"UPDATE_FORM_STATE",UPDATE_HIDDEN_LAYOUTS:"UPDATE_HIDDEN_LAYOUTS",REQUEST_GENERIC_API_CALL:"REQUEST_GENERIC_API_CALL",SUCCESS_GENERIC_API_CALL:"SUCCESS_GENERIC_API_CALL",FAILURE_GENERIC_API_CALL:"FAILURE_GENERIC_API_CALL",REQUEST_ADMIN_WEBBUILDER_UPDATE:"REQUEST_ADMIN_WEBBUILDER_UPDATE",SUCCESS_ADMIN_WEBBUILDER_UPDATE:"SUCCESS_ADMIN_WEBBUILDER_UPDATE",FAILURE_ADMIN_WEBBUILDER_UPDATE:"FAILURE_ADMIN_WEBBUILDER_UPDATE",CLEAR_ADMIN_UPDATE_WEBBUILDER_ERROR:"CLEAR_ADMIN_UPDATE_WEBBUILDER_ERROR",IMPORT_BASIC_COMPONENTS:"IMPORT_BASIC_COMPONENTS",OPEN_WORKFLOW:"OPEN_WORKFLOW",INITIALIZE_RESIZE_OBSERVER:"INITIALIZE_RESIZE_OBSERVER",UPDATE_RESIZE_OBSERVED_COMPONENTS:"UPDATE_RESIZE_OBSERVED_COMPONENTS",INITIATE_CANVAS:"INITIATE_CANVAS",SET_CONTENT_LIMITATION_BUILDER:"SET_CONTENT_LIMITATION_BUILDER",RESET_CUSTOMIZATION_STATE:"RESET_CUSTOMIZATION_STATE",UPDATE_IFRAME_DOCUMENT:"UPDATE_IFRAME_DOCUMENT",RESET_UNDO_STATE:"RESET_UNDO_STATE",SET_IS_UPDATING_BLUEPRINT:"SET_IS_UPDATING_BLUEPRINT",TRANSFER_COMPONENT_FROM_DOCK_TO_CANVAS:"TRANSFER_COMPONENT_FROM_DOCK_TO_CANVAS",TOGGLE_TEXT_EDITOR_OUTLINE:"TOGGLE_TEXT_EDITOR_OUTLINE",UPDATE_DRAG_PLACEHOLDER:"UPDATE_DRAG_PLACEHOLDER",STORE_BG_IMAGE:"STORE_BG_IMAGE",SET_BG_MULTILIST_EXPANDED_IDS:"SET_BG_MULTILIST_EXPANDED_IDS",SET_BG_IMAGE_CHANGED_INDEX:"SET_BG_IMAGE_CHANGED_INDEX",UPDATE_PROJECT_USERS:"UPDATE_PROJECT_USERS",UPDATE_USER_ROLE:"UPDATE_USER_ROLE",REQUEST_TRANSFER_OWNERSHIP_START:"REQUEST_TRANSFER_OWNERSHIP_START",SUCCESS_TRANSFER_OWNERSHIP_START:"SUCCESS_TRANSFER_OWNERSHIP_START",FAILURE_TRANSFER_OWNERSHIP_START:"FAILURE_TRANSFER_OWNERSHIP_START",CLEAR_PERMISSION_ERROR:"CLEAR_PERMISSION_ERROR",IN_PLAYGROUND_MODE:"IN_PLAYGROUND_MODE",REQUEST_MOVE_GUEST_PROJECT:"REQUEST_MOVE_GUEST_PROJECT",SUCCESS_MOVE_GUEST_PROJECT:"SUCCESS_MOVE_GUEST_PROJECT",FAILURE_MOVE_GUEST_PROJECT:"FAILURE_MOVE_GUEST_PROJECT",REQUEST_SAVE_GUEST_PROJECT_TO_AI:"REQUEST_SAVE_GUEST_PROJECT_TO_AI",SUCCESS_SAVE_GUEST_PROJECT_TO_AI:"SUCCESS_SAVE_GUEST_PROJECT_TO_AI",FAILURE_SAVE_GUEST_PROJECT_TO_AI:"FAILURE_SAVE_GUEST_PROJECT_TO_AI",REQUEST_CREATE_CUSTOM_AI_WORKFLOW:"REQUEST_CREATE_CUSTOM_AI_WORKFLOW",SUCCESS_CREATE_CUSTOM_AI_WORKFLOW:"SUCCESS_CREATE_CUSTOM_AI_WORKFLOW",FAILURE_CREATE_CUSTOM_AI_WORKFLOW:"FAILURE_CREATE_CUSTOM_AI_WORKFLOW",REQUEST_SETUP_AI_COMPANION_SANDBOX:"REQUEST_SETUP_AI_COMPANION_SANDBOX",SUCCESS_SETUP_AI_COMPANION_SANDBOX:"SUCCESS_SETUP_AI_COMPANION_SANDBOX",FAILURE_SETUP_AI_COMPANION_SANDBOX:"FAILURE_SETUP_AI_COMPANION_SANDBOX",SET_AI_CANVAS_OVERLAY:"SET_AI_CANVAS_OVERLAY",REQUEST_FETCH_AI_COMPANION_PAGES:"REQUEST_FETCH_AI_COMPANION_PAGES",SUCCESS_FETCH_AI_COMPANION_PAGES:"SUCCESS_FETCH_AI_COMPANION_PAGES",FAILURE_FETCH_AI_COMPANION_PAGES:"FAILURE_FETCH_AI_COMPANION_PAGES",SET_AI_COMPANION_IFRAME_CONTEXT:"SET_AI_COMPANION_IFRAME_CONTEXT",CLEAR_AI_COMPANION_NAVIGATION_LOADING:"CLEAR_AI_COMPANION_NAVIGATION_LOADING",SET_AI_COMPANION_MODE:"SET_AI_COMPANION_MODE",SET_AI_COMPANION_SELECTED_ELEMENT:"SET_AI_COMPANION_SELECTED_ELEMENT",ADD_AI_COMPANION_CLICKED_ELEMENT:"ADD_AI_COMPANION_CLICKED_ELEMENT",REMOVE_AI_COMPANION_CLICKED_ELEMENT:"REMOVE_AI_COMPANION_CLICKED_ELEMENT",CLEAR_AI_COMPANION_CLICKED_ELEMENTS:"CLEAR_AI_COMPANION_CLICKED_ELEMENTS",SET_AI_COMPANION_CHAT_INTERACTION_ENABLED:"SET_AI_COMPANION_CHAT_INTERACTION_ENABLED",REFRESH_AI_COMPANION_PAGES:"REFRESH_AI_COMPANION_PAGES",SET_AI_COMPANION_LIVE_EDIT_STATUS:"SET_AI_COMPANION_LIVE_EDIT_STATUS",SET_AI_COMPANION_PREVIEW_MODE:"SET_AI_COMPANION_PREVIEW_MODE",SET_AI_COMPANION_IFRAME_LOADED:"SET_AI_COMPANION_IFRAME_LOADED",SET_AI_COMPANION_IFRAME_LOAD_ERROR:"SET_AI_COMPANION_IFRAME_LOAD_ERROR",RESET_AI_COMPANION_IFRAME_LOAD_STATE:"RESET_AI_COMPANION_IFRAME_LOAD_STATE",REQUEST_CREATE_PROJECT_FROM_PROMPT:"REQUEST_CREATE_PROJECT_FROM_PROMPT",SUCCESS_CREATE_PROJECT_FROM_PROMPT:"SUCCESS_CREATE_PROJECT_FROM_PROMPT",FAILURE_CREATE_PROJECT_FROM_PROMPT:"FAILURE_CREATE_PROJECT_FROM_PROMPT",REQUEST_ASSIGN_LICENSE:"REQUEST_ASSIGN_LICENSE",SUCCESS_ASSIGN_LICENSE:"SUCCESS_ASSIGN_LICENSE",FAILURE_ASSIGN_LICENSE:"FAILURE_ASSIGN_LICENSE",REQUEST_DUPLICATE_PROJECT:"REQUEST_DUPLICATE_PROJECT",SUCCESS_DUPLICATE_PROJECT:"SUCCESS_DUPLICATE_PROJECT",FAILURE_DUPLICATE_PROJECT:"FAILURE_DUPLICATE_PROJECT",REQUEST_DUPLICATE_PAGE:"REQUEST_DUPLICATE_PAGE",SUCCESS_DUPLICATE_PAGE:"SUCCESS_DUPLICATE_PAGE",FAILURE_DUPLICATE_PAGE:"FAILURE_DUPLICATE_PAGE",UPDATE_SUBDOMAIN_NAME:"UPDATE_SUBDOMAIN_NAME",REQUEST_UPDATE_BACKUP_NAME:"REQUEST_UPDATE_BACKUP_NAME",SUCCESS_UPDATE_BACKUP_NAME:"SUCCESS_UPDATE_BACKUP_NAME",FAILURE_UPDATE_BACKUP_NAME:"FAILURE_UPDATE_BACKUP_NAME",CLEAR_VERSION_HISTORY:"CLEAR_VERSION_HISTORY",REQUEST_RESTORE_BACKUP:"REQUEST_RESTORE_BACKUP",SUCCESS_RESTORE_BACKUP:"SUCCESS_RESTORE_BACKUP",FAILURE_RESTORE_BACKUP:"FAILURE_RESTORE_BACKUP",REQUEST_DELETE_BACKUP:"REQUEST_DELETE_BACKUP",SUCCESS_DELETE_BACKUP:"SUCCESS_DELETE_BACKUP",FAILURE_DELETE_BACKUP:"FAILURE_DELETE_BACKUP",REQUEST_GENERATE_WP_API_KEY:"REQUEST_GENERATE_WP_API_KEY",SUCCESS_GENERATE_WP_API_KEY:"SUCCESS_GENERATE_WP_API_KEY",FAILURE_GENERATE_WP_API_KEY:"FAILURE_GENERATE_WP_API_KEY",REQUEST_DISCONNECT_WORDPRESS:"REQUEST_DISCONNECT_WORDPRESS",SUCCESS_DISCONNECT_WORDPRESS:"SUCCESS_DISCONNECT_WORDPRESS",FAILURE_DISCONNECT_WORDPRESS:"FAILURE_DISCONNECT_WORDPRESS",REQUEST_DISCONNECT_STRIPE:"REQUEST_DISCONNECT_STRIPE",SUCCESS_DISCONNECT_STRIPE:"SUCCESS_DISCONNECT_STRIPE",FAILURE_DISCONNECT_STRIPE:"FAILURE_DISCONNECT_STRIPE",REQUEST_ADD_ANALYTICS_TO_PROJECT:"REQUEST_ADD_ANALYTICS_TO_PROJECT",SUCCESS_ADD_ANALYTICS_TO_PROJECT:"SUCCESS_ADD_ANALYTICS_TO_PROJECT",FAILURE_ADD_ANALYTICS_TO_PROJECT:"FAILURE_ADD_ANALYTICS_TO_PROJECT",SUCCESS_CONNECT_STRIPE:"SUCCESS_CONNECT_STRIPE",REQUEST_CONNECT_STRIPE:"REQUEST_CONNECT_STRIPE",FAILURE_CONNECT_STRIPE:"FAILURE_CONNECT_STRIPE",SWITCH_EDITOR_MODE:"SWITCH_EDITOR_MODE",UPDATE_RENDER_KEY:"UPDATE_RENDER_KEY",REQUEST_SEARCH_PROJECTS:"REQUEST_SEARCH_PROJECTS",SUCCESS_SEARCH_PROJECTS:"SUCCESS_SEARCH_PROJECTS",FAILURE_SEARCH_PROJECTS:"FAILURE_SEARCH_PROJECTS",CLEAR_SEARCH_RESULTS:"CLEAR_SEARCH_RESULTS",REQUEST_DISCONNECT_ZAPIER:"REQUEST_DISCONNECT_ZAPIER",SUCCESS_DISCONNECT_ZAPIER:"SUCCESS_DISCONNECT_ZAPIER",FAILURE_DISCONNECT_ZAPIER:"FAILURE_DISCONNECT_ZAPIER",SUCCESS_CONNECT_ZAPIER:"SUCCESS_CONNECT_ZAPIER",REQUEST_CONNECT_ZAPIER:"REQUEST_CONNECT_ZAPIER",FAILURE_CONNECT_ZAPIER:"FAILURE_CONNECT_ZAPIER",REQUEST_AI_COMMAND_EXECUTE:"REQUEST_AI_COMMAND_EXECUTE",SUCCESS_AI_COMMAND_EXECUTE:"SUCCESS_AI_COMMAND_EXECUTE",FAILURE_AI_COMMAND_EXECUTE:"FAILURE_AI_COMMAND_EXECUTE",REQUEST_AI_COMMAND_RESULT_ACCEPT:"REQUEST_AI_COMMAND_RESULT_ACCEPT",SUCCESS_AI_COMMAND_RESULT_ACCEPT:"SUCCESS_AI_COMMAND_RESULT_ACCEPT",FAILURE_AI_COMMAND_RESULT_ACCEPT:"FAILURE_AI_COMMAND_RESULT_ACCEPT",SUCCESS_AI_COMMAND_RESULT_DISCARD:"SUCCESS_AI_COMMAND_RESULT_DISCARD"}},6869:function(t,e,n){"use strict";n.r(e),n.d(e,{dynamicDataConstants:function(){return o}});const o={SET_BLUEPRINT_INDEXES:"DYNAMIC_DATA_SET_BLUEPRINT_INDEXES",SET_CACHE_ENTRY:"DYNAMIC_DATA_SET_CACHE_ENTRY",SET_COMPONENT_STATE:"DYNAMIC_DATA_SET_COMPONENT_STATE",SET_PAGE_STATE:"DYNAMIC_DATA_SET_PAGE_STATE",REQUEST_FETCH_LIST:"DYNAMIC_DATA_REQUEST_FETCH_LIST",SUCCESS_FETCH_LIST:"DYNAMIC_DATA_SUCCESS_FETCH_LIST",FAILURE_FETCH_LIST:"DYNAMIC_DATA_FAILURE_FETCH_LIST",REQUEST_FETCH_ITEM:"DYNAMIC_DATA_REQUEST_FETCH_ITEM",SUCCESS_FETCH_ITEM:"DYNAMIC_DATA_SUCCESS_FETCH_ITEM",FAILURE_FETCH_ITEM:"DYNAMIC_DATA_FAILURE_FETCH_ITEM",SET_LIST_PAGINATION:"DYNAMIC_DATA_SET_LIST_PAGINATION",CLEANUP_DYNAMIC_DATA:"DYNAMIC_DATA_CLEANUP",SET_LAST_STRUCTURAL_FINGERPRINT:"DYNAMIC_DATA_SET_LAST_STRUCTURAL_FINGERPRINT",SET_PUBLISHED_DYNAMIC_ROUTE:"DYNAMIC_DATA_SET_PUBLISHED_DYNAMIC_ROUTE"}},7899:function(t,e,n){"use strict";n.r(e),n.d(e,{errorsConstants:function(){return o}});
1const o={ADD_ERROR:"ADD_ERROR",REMOVE_ERROR:"REMOVE_ERROR"}},5495:function(t,e,n){"use strict";n.r(e),n.d(e,{functionConstants:function(){return o}});const o={REQUEST_CREATE_NEW_FUNCTION:"REQUEST_CREATE_NEW_FUNCTION",SUCCESS_CREATE_NEW_FUNCTION:"SUCCESS_CREATE_NEW_FUNCTION",FAILURE_CREATE_NEW_FUNCTION:"FAILURE_CREATE_NEW_FUNCTION",REQUEST_UPDATE_FUNCTION:"REQUEST_UPDATE_FUNCTION",SUCCESS_UPDATE_FUNCTION:"SUCCESS_UPDATE_FUNCTION",FAILURE_UPDATE_FUNCTION:"FAILURE_UPDATE_FUNCTION",UPDATE_FUNCTION_CONTENT:"UPDATE_FUNCTION_CONTENT",FUNCTION_FETCH_REQUEST:"FUNCTION_FETCH_REQUEST",FUNCTION_FETCH_SUCCESS:"FUNCTION_FETCH_SUCCESS",FUNCTION_FETCH_FAILURE:"FUNCTION_FETCH_FAILURE",UPDATE_FUNCTION:"UPDATE_FUNCTION",DELETE_FUNCTION:"DELETE_FUNCTION",RESET:"RESET_FUNCTIONS",REQUEST_DELETE_FUNCTION:"REQUEST_DELETE_FUNCTION",SUCCESS_DELETE_FUNCTION:"SUCCESS_DELETE_FUNCTION",FAILURE_DELETE_FUNCTION:"FAILURE_DELETE_FUNCTION"}},7588:function(t,e,n){"use strict";n.r(e),n.d(e,{guestConstants:function(){return o}});const o={FETCH_IDENTICON:"FETCH_IDENTICON",FETCH_IDENTICON_SUCCESS:"FETCH_IDENTICON_SUCCESS",FETCH_IDENTICON_FAILURE:"FETCH_IDENTICON_FAILURE",SUBSCRIBE_EMAIL:"SUBSCRIBE_EMAIL",SUBSCRIBE_EMAIL_SUCCESS:"SUBSCRIBE_EMAIL_SUCCESS",SUBSCRIBE_EMAIL_FAILURE:"SUBSCRIBE_EMAIL_FAILURE",CLEAR_SUBSCRIBE_EMAIL_MESSAGE:"CLEAR_SUBSCRIBE_EMAIL_MESSAGE"}},7100:function(t,e,n){"use strict";n.r(e),n.d(e,{alertConstants:function(){return o.alertConstants},userConstants:function(){return r.userConstants},uiConstants:function(){return i.uiConstants},lensConstants:function(){return a.lensConstants},errorsConstants:function(){return s.errorsConstants},cloudinaryConstants:function(){return c.cloudinaryConstants},guestConstants:function(){return l.guestConstants},notificationsConstants:function(){return u.notificationsConstants},commonConstants:function(){return p.commonConstants},customizationConstants:function(){return d.customizationConstants},stateManagementConstants:function(){return f.stateManagementConstants},functionConstants:function(){return m.functionConstants},dynamicDataConstants:function(){return h.dynamicDataConstants}});var o=n(9329),r=n(6562),i=n(7878),a=n(822),s=n(7899),c=n(2212),l=n(7588),u=n(9346),p=n(641),d=n(9857),f=n(6332),m=n(5495),h=n(6869)},822:function(t,e,n){"use strict";n.r(e),n.d(e,{lensConstants:function(){return o}});const o={FETCH_REQUEST:"FETCH_LATEST_STORIES_REQUEST",FETCH_SUCCESS:"FETCH_LATEST_STORIES_SUCCESS",FETCH_FAILURE:"FETCH_LATEST_STORIES_FAILURE",SEARCH_REQUEST:"SEARCH_STORIES_REQUEST",SEARCH_SUCCESS:"SEARCH_STORIES_SUCCESS",SEARCH_FAILURE:"SEARCH_STORIES_FAILURE",CLEAR_SEARCH_RESULTS:"CLEAR_STORIES_SEARCH_RESULTS",SET_SEARCH_TEXT:"SET_SEARCH_TEXT",CLEAR_STORYLIST:"CLEAR_STORYLIST",REQUEST_FETCH_POPULAR_STORIES:"REQUEST_FETCH_POPULAR_STORIES",SUCCESS_FETCH_POPULAR_STORIES:"SUCCESS_FETCH_POPULAR_STORIES",FAILURE_FETCH_POPULAR_STORIES:"FAILURE_FETCH_POPULAR_STORIES",REQUEST_FETCH_POPULAR_TAGS:"REQUEST_FETCH_POPULAR_TAGS",SUCCESS_FETCH_POPULAR_TAGS:"SUCCESS_FETCH_POPULAR_TAGS",FAILURE_FETCH_POPULAR_TAGS:"FAILURE_FETCH_POPULAR_TAGS",SUCCESS_STORY_LIKE:"SUCCESS_LENS_STORY_LIKE",SUCCESS_STORY_UNLIKE:"SUCCESS_LENS_STORY_UNLIKE",SUCCESS_STORY_ADD_BOOKMARK:"SUCCESS_LENS_STORY_ADD_BOOKMARK",SUCCESS_STORY_REMOVE_BOOKMARK:"SUCCESS_LENS_STORY_REMOVE_BOOKMARK",SUCCESS_FETCH_CARD_CONTENT:"SUCCESS_FETCH_CARD_CONTENT",FAILURE_FETCH_CARD_CONTENT:"FAILURE_FETCH_CARD_CONTENT",STORE_LOCATION:"STORE_LOCATION_OF_CURRENT_PAGE"}},9346:function(t,e,n){"use strict";n.r(e),n.d(e,{notificationsConstants:function(){return o}});const o={REQUEST_NOTIFICATIONS:"REQUEST_FETCH_USER_NOTIFICATIONS",SUCCESS_NOTIFICATIONS:"SUCCESS_FETCH_USER_NOTIFICATIONS",FAILURE_NOTIFICATIONS:"FAILURE_FETCH_USER_NOTIFICATIONS",REQUEST_READ_NOTIFICATION:"REQUEST_READ_USER_NOTIFICATION",SUCCESS_READ_NOTIFICATION:"SUCCESS_READ_USER_NOTIFICATION",FAILURE_READ_NOTIFICATION:"FAILURE_READ_USER_NOTIFICATION",REQUEST_UNREAD_NOTIFICATION:"REQUEST_UNREAD_USER_NOTIFICATION",SUCCESS_UNREAD_NOTIFICATION:"SUCCESS_UNREAD_USER_NOTIFICATION",FAILURE_UNREAD_NOTIFICATION:"FAILURE_UNREAD_USER_NOTIFICATION",REQUEST_READ_ALL_NOTIFICATIONS:"REQUEST_READ_ALL_USER_NOTIFCATIONS",SUCCESS_READ_ALL_NOTIFICATIONS:"SUCCESS_READ_ALL_USER_NOTIFCATIONS",FAILURE_READ_ALL_NOTIFICATIONS:"FAILURE_READ_ALL_USER_NOTIFCATIONS"}},6332:function(t,e,n){"use strict";n.r(e),n.d(e,{stateManagementConstants:function(){return o}});
1const o={ADD_STATE:"ADD_STATE",DELETE_STATE:"DELETE_STATE",UPDATE_STATE:"UPDATE_STATE",LOAD_INITIAL_STATE:"LOAD_INITIAL_STATE",UPDATE_INDIVIDUAL_ITEM:"UPDATE_INDIVIDUAL_ITEM"}},7878:function(t,e,n){"use strict";n.r(e),n.d(e,{uiConstants:function(){return o}});const o={SET_SHOW_AI_COMPANION_POPUP:"SET_SHOW_AI_COMPANION_POPUP",SET_AI_COMPANION_POPUP_MINIMIZED:"SET_AI_COMPANION_POPUP_MINIMIZED",SEND_TO_AI_COMPANION_PROMPT:"SEND_TO_AI_COMPANION_PROMPT",SET_HIDE_THEME_VARIABLES:"SET_HIDE_THEME_VARIABLES",SET_PHOTOS_PANEL_MODE:"SET_PHOTOS_PANEL_MODE",UPDATE_TOTAL_IMAGES:"UPDATE_TOTAL_IMAGES",IS_DELETING_IMAGE:"IS_DELETING_IMAGE",DELETE_IMAGE_REQUEST:"DELETE_IMAGE_REQUEST",RESET_DELETED_IMAGE:"RESET_DELETED_IMAGE",UPDATE_STORAGE_INFO:"UPDATE_STORAGE_INFO",FAILURE_SAVE_IMAGE:"FAILURE_SAVE_IMAGE",SUCCESS_SAVE_IMAGE:"SUCCESS_SAVE_IMAGE",SET_PROJECT_ASSETS:"SET_PROJECT_ASSETS",SET_PROJECT_IMAGES:"SET_PROJECT_IMAGES",SET_PROJECT_VIDEOS:"SET_PROJECT_VIDEOS",APPEND_PROJECT_ASSET:"APPEND_PROJECT_ASSET",UI_RESET:"UI_RESET",SET_PLAYGROUND_SAVING_FLAG:"SET_PLAYGROUND_SAVING_FLAG",SHOW_GENERATE_PAGE_MODAL:"SHOW_GENERATE_PAGE_MODAL",SET_COMPONENT_EDIT_PANEL_INNER_TAB_KEY:"SET_COMPONENT_EDIT_PANEL_INNER_TAB_KEY",SET_DOUBLE_CLICKED_POSITION:"SET_DOUBLE_CLICKED_POSITION",SET_SHOW_TEXT_EDIT_POPUP:"SET_SHOW_TEXT_EDIT_POPUP",HIDE_ALL_EDIT_POPUPS:"HIDE_ALL_EDIT_POPUPS",SET_SHOW_IMAGE_EDIT_POPUP:"SET_SHOW_IMAGE_EDIT_POPUP",SET_SHOW_CODE_EDIT_POPUP:"SET_SHOW_CODE_EDIT_POPUP",SHOW_CHOOSE_PROJECT_FOR_UPGRADE_MODAL:"SHOW_CHOOSE_PROJECT_FOR_UPGRADE_MODAL",SHOW_PRICING_MODAL:"SHOW_PRICING_MODAL",SHOW_PRICING_IFRAME_MODAL:"SHOW_PRICING_IFRAME_MODAL",SHOW_CUSTOM_COMPONENT_STYLE_MODAL:"SHOW_CUSTOM_COMPONENT_STYLE_MODAL",TOGGLE_AUTHENTICATION_MODAL_VISIBILITY:"TOGGLE_AUTHENTICATION_MODAL_VISIBILITY",SWITCH_AUTHENTICATION_MODAL_TABS:"SWITCH_AUTHENTICATION_MODAL_TABS",CLEAR_AUTHENTICATION_MODAL_TABS:"CLEAR_AUTHENTICATION_MODAL_TABS",TOGGLE_NAVIGATION_DROPDOWN_MENU:"TOGGLE_NAVIGATION_DROPDOWN_MENU",TOGGLE_SIGNUP_MODAL:"TOGGLE_SIGNUP_MODAL",CLEAR_SIGNUP_MODAL_MESSAGE:"CLEAR_SIGNUP_MODAL_MESSGAGE",TOGGLE_STATS_MODAL_WINDOW:"TOGGLE_STATS_MODAL_WINDOW",TOGGLE_SEARCH_BUTTON:"TOGGLE_SEARCH_BUTTON",CLEAR_DROPDOWN_STATE:"CLEAR_DROPDOWN_STATE",TOGGLE_DRAFT_PUBLISH_MODAL:"TOGGLE_DRAFT_PUBLISH_MODAL",TOGGLE_FEATURED_IMAGE_IN_DRAFT:"TOGGLE_FEATURED_IMAGE_IN_DRAFT",TOGGLE_SIDE_NAV:"TOGGLE_SIDE_NAV",SET_SCREEN_VIEW:"SET_SCREEN_VIEW",SET_PREMIUM_MODAL:"SET_PREMIUM_MODAL",SET_GUEST_MODAL:"SET_GUEST_MODAL",SET_PLAYGROUND_MODAL:"SET_PLAYGROUND_MODAL",SET_SELECT_EDIT_MODE_MODAL:"SET_SELECT_EDIT_MODE_MODAL",TOGGLE_REFERRAL_POPUP:"TOGGLE_REFERRAL_POPUP",SET_ELEMENT_OUTLINE_VISIBILITY:"SET_ELEMENT_OUTLINE_VISIBILITY",TOGGLE_BOOKMARK_INNER_TAB:"TOGGLE_BOOKMARK_INNER_TAB",TOGGLE_IS_LOADING:"TOGGLE_IS_LOADING",CHANGE_DB_TAB:"CHANGE_DB_TAB",CHANGE_APP_SETTINGS_TAB:"CHANGE_APP_SETTINGS_TAB",SET_INITIAL_LOADING_STATUS:"SET_INITIAL_LOADING_STATUS",SET_LOADER_MESSAGE:"SET_LOADER_MESSAGE",SET_LOADER_INDEFINITE:"SET_LOADER_INDEFINITE",SET_PUBLISH_SITE_LOADING_STATUS:"SET_PUBLISH_SITE_LOADING_STATUS",SET_SHOW_CREATE_TABLE_MODAL:"SET_SHOW_CREATE_TABLE_MODAL",SET_SHOW_ADD_DATA_MODAL:"SET_SHOW_ADD_DATA_MODAL",SET_DELETE_FUNCTION_ALERT:"SET_DELETE_FUNCTION_ALERT",SET_DELETE_ROW_ALERT:"SET_DELETE_ROW_ALERT",SET_DELETE_TABLE_ALERT:"SET_DELETE_TABLE_ALERT",SET_DRAG_SORTED_LAYOUTS:"SET_DRAG_SORTED_LAYOUTS",SET_DOCK_SIDEBAR_ACTIVE_MENU:"SET_DOCK_SIDEBAR_ACTIVE_MENU",CUSTOMIZATION_IS_UPDATING_FLAG:"CUSTOMIZATION_IS_UPDATING_FLAG",ELEMENT_COLLIDING_WITH_BREADCRUMBS:"ELEMENT_COLLIDING_WITH_BREADCRUMBS",UPDATE_MOVE_ELEMENT_STATE:"UPDATE_MOVE_ELEMENT_STATE",SWITCH_WORKSPACE:"SWITCH_WORKSPACE",REQUEST_CREATE_ORDER_LINK:"REQUEST_CREATE_ORDER_LINK",SUCCESS_CREATE_ORDER_LINK:"SUCCESS_CREATE_ORDER_LINK",FAILURE_CREATE_ORDER_LINK:"FAILURE_CREATE_ORDER_LINK",SHOW_SAVE_AND_PUBLISH_POPUP_IN_PLAYGROUND:"SHOW_SAVE_AND_PUBLISH_POPUP_IN_PLAYGROUND",SHOW_FEATURE_UPDATE_MODAL_FROM_BUILDER:"SHOW_FEATURE_UPDATE_MODAL_FROM_BUILDER",TOGGLE_BUILDER_CONTEXT_MENU_VISIBILITY:"TOGGLE_BUILDER_CONTEXT_MENU_VISIBILITY",TOGGLE_SETTINGS_CONTEXT_ALERT_BOX:"TOGGLE_SETTINGS_CONTEXT_ALERT_BOX",SHOW_PAYMENT_POPUP:"SHOW_PAYMENT_POPUP",SHOW_EXIT_MODAL:"SHOW_EXIT_MODAL",SET_IS_RESIZING_START:"SET_IS_RESIZING_START",SET_IS_RESIZING_STOP:"SET_IS_RESIZING_STOP",SET_IS_FLEX_RESIZE:"SET_IS_FLEX_RESIZE",SET_DRAG_STATUS:"SET_DRAG_STATUS",SET_RIGHT_CLICK_SIDE_MENU_STATUS:"SET_RIGHT_CLICK_SIDE_MENU_STATUS",SET_AI_SIDE_BAR_STATUS:"SET_AI_SIDE_BAR_STATUS",LAYOUT_SHIFT_REQUIRED:"LAYOUT_SHIFT_REQUIRED",GRID_LAYOUT_CHILD_UPDATE_REQUIRED:"GRID_LAYOUT_CHILD_UPDATE_REQUIRED",UPDATE_HOVER_ELEMENT_POSITION_DATA:"UPDATE_HOVER_ELEMENT_POSITION_DATA",SET_LEGACY_FORM_UPDATING:"SET_LEGACY_FORM_UPDATING",SET_ADD_ELEMENT_FLAG:"SET_ADD_ELEMENT_FLAG",SET_ADD_ELEMENT_FROM_CANVAS_BODY_FLAG:"SET_ADD_ELEMENT_FROM_CANVAS_BODY_FLAG",SET_ADD_ELEMENT_HELPER_IDS:"SET_ADD_ELEMENT_HELPER_IDS",SET_IS_HOVERING_INSIDE_FOR_ELEMENT_ADDITION:"SET_IS_HOVERING_INSIDE_FOR_ELEMENT_ADDITION",SHOW_SYNC_CHANGES_MODAL:"SHOW_SYNC_CHANGES_MODAL",SHOW_ADVANCED_OPTIONS:"SHOW_ADVANCED_OPTIONS",UPDATING_EMAIL_NOTIFY:"UPDATING_EMAIL_NOTIFY",SET_SHOW_ELEMENT_FLOATING_POPUP:"SET_SHOW_ELEMENT_FLOATING_POPUP",TRIGGER_DOUBLE_CLICK:"TRIGGER_DOUBLE_CLICK",TRIGGER_SHIFT_UP_OR_DOWN:"TRIGGER_SHIFT_UP_OR_DOWN",SET_RIGHT_SIDE_
1EDIT_POPUP_TYPE:"SET_RIGHT_SIDE_EDIT_POPUP_TYPE",SET_IS_HOVERING_ON_PLUS_FOR_ELEMENT_ADDITION:"SET_IS_HOVERING_ON_PLUS_FOR_ELEMENT_ADDITION",IS_PADDING_DRAGGING:"IS_PADDING_DRAGGING",SET_AI_FAILURE_ATTEMPT:"SET_AI_FAILURE_ATTEMPT",SET_PHOTOS_PANEL_LOADING:"SET_PHOTOS_PANEL_LOADING",SET_SHOW_PUBLISH_POPUP:"SET_SHOW_PUBLISH_POPUP",OPEN_COMMAND_PALETTE:"OPEN_COMMAND_PALETTE",CLOSE_COMMAND_PALETTE:"CLOSE_COMMAND_PALETTE",SET_COMMAND_PALETTE_STATE:"SET_COMMAND_PALETTE_STATE",SET_COMMAND_PALETTE_STEP:"SET_COMMAND_PALETTE_STEP",SET_AI_COMMAND_INPUT:"SET_AI_COMMAND_INPUT",CLEAR_AI_COMMAND_RESULT:"CLEAR_AI_COMMAND_RESULT",CMS_FIELDS_REQUEST:"UI_CMS_FIELDS_REQUEST",CMS_FIELDS_SUCCESS:"UI_CMS_FIELDS_SUCCESS",CMS_FIELDS_FAILURE:"UI_CMS_FIELDS_FAILURE",CMS_FIELDS_RESET:"UI_CMS_FIELDS_RESET",SET_DYNAMIC_LIST_BUILDER_FORCE:"SET_DYNAMIC_LIST_BUILDER_FORCE"}},6562:function(t,e,n){"use strict";n.r(e),n.d(e,{userConstants:function(){return o}});const o={REQUEST_VALIDATE_SOCIAL_REFER_FOR_AI:"REQUEST_VALIDATE_SOCIAL_REFER_FOR_AI",SUCCESS_VALIDATE_SOCIAL_REFER_FOR_AI:"SUCCESS_VALIDATE_SOCIAL_REFER_FOR_AI",FAILURE_VALIDATE_SOCIAL_REFER_FOR_AI:"FAILURE_VALIDATE_SOCIAL_REFER_FOR_AI",REQUEST_UPDATE_USER_DATA:"REQUEST_UPDATE_USER_DATA",SUCCESS_UPDATE_USER_DATA:"SUCCESS_UPDATE_USER_DATA",FAILURE_UPDATE_USER_DATA:"FAILURE_UPDATE_USER_DATA",REQUEST_CONFIRM_PASSWORD:"REQUEST_CONFIRM_PASSWORD",SUCCESS_CONFIRM_PASSWORD:"SUCCESS_CONFIRM_PASSWORD",FAILURE_CONFIRM_PASSWORD:"FAILURE_CONFIRM_PASSWORD",REQUEST_FORGOT_PASSWORD:"REQUEST_FORGOT_PASSWORD",SUCCESS_FORGOT_PASSWORD:"SUCCESS_FORGOT_PASSWORD",FAILURE_FORGOT_PASSWORD:"FAILURE_FORGOT_PASSWORD",REGISTER_REQUEST:"REGISTER_REQUEST",REGISTER_SUCCESS:"REGISTER_SUCCESS",REGISTER_FAILURE:"REGISTER_FAILURE",REQUEST_OTP:"REQUEST_OTP",SUCCESS_OTP:"SUCCESS_OTP",FAILURE_OTP:"FAILURE_OTP",LOGIN_REQUEST:"LOGIN_REQUEST",LOGIN_SUCCESS:"LOGIN_SUCCESS",LOGIN_FAILURE:"LOGIN_FAILURE",LOGOUT:"LOGOUT",VERIFY_USER:"VERIFY_USER",VERIFICATION_SUCCESS:"VERIFICATION_SUCCESS",VERIFICATION_FAILURE:"VERIFICATION_FAILURE",FETCH_USER:"FETCH_USER",SUCCESS_FETCH_USER:"SUCCESS_FETCH_USER",FAILURE_FETCH_USER:"FAILURE_FETCH_USER",SAVE_USER:"SAVE_USER",SUCCESS_SAVE_USER:"SUCCESS_SAVE_USER",FAILURE_SAVE_USER:"FAILURE_SAVE_USER",REQUEST_DELETE_USER:"REQUEST_DELETE_AUTHOR",SUCCESS_DELETE_USER:"SUCCESS_DELETE_AUTHOR",FAILURE_DELETE_USER:"FAILURE_DELETE_AUTHOR",REPORT_USER:"REPORT_USER",REPORT_USER_SUCCESS:"REPORT_USER_SUCCESS",REPORT_USER_FAILURE:"REPORT_USER_FAILURE",CLEAR_USER_REPORT_MESSAGE:"CLEAR_USER_REPORT_MESSAGE",STORE_LOCATION_BEFORE_LOGIN:"STORE_LOCATION_BEFORE_LOGIN",UPDATE_EXPORT_CODE_COUNT:"UPDATE_EXPORT_CODE_COUNT",REQUEST_CREATE_ORDER:"REQUEST_CREATE_ORDER",SUCCESS_CREATE_ORDER:"SUCCESS_CREATE_ORDER",FAILURE_CREATE_ORDER:"FAILURE_CREATE_ORDER",REQUEST_VERIFY_ORDER:"REQUEST_VERIFY_ORDER",SUCCESS_VERIFY_ORDER:"SUCCESS_VERIFY_ORDER",FAILURE_VERIFY_ORDER:"FAILURE_VERIFY_ORDER",REQUEST_REFERRAL_LIST:"REQUEST_REFERRAL_LIST",SUCCESS_REFERRAL_LIST:"SUCCESS_REFERRAL_LIST",FAILURE_REFERRAL_LIST:"FAILURE_REFERRAL_LIST",UPDATE_TOUR_TIMER:"UPDATE_TOUR_TIMER",IS_PART_OF_CODE_DESIGN_TEAM:"IS_PART_OF_CODE_DESIGN_TEAM"}},6162:function(t,e,n){"use strict";n.r(e),n.d(e,{alerts:function(){return i}});var o=n(7100);const r={};function i(t=r,e){switch(e.type){case o.alertConstants.SUCCESS:return{type:"alert-success",message:e.message};case o.alertConstants.ERROR:return{type:"alert-danger",message:e.message};case o.alertConstants.CLEAR:return{};default:return t}}},2787:function(t,e,n){"use strict";n.r(e),n.d(e,{cloudinaryImage:function(){return i}});var o=n(7100);const r={requestStatus:!1,cloudinaryImage:"",uploadPercentage:0};function i(t=r,e){switch(e.type){case o.cloudinaryConstants.REQUEST_CLOUDINARY:return Object.assign({},t,{requestStatus:!0,cloudinaryImage:""});case o.cloudinaryConstants.SUCCESS_CLOUDINARY:return Object.assign({},t,{requestStatus:!1,cloudinaryImage:e.payload});case o.cloudinaryConstants.FAILURE_CLOUDINARY:return Object.assign({},t,{requestStatus:!1});case o.cloudinaryConstants.IMAGE_UPLOAD_PERCENT:return Object.assign({},t,{uploadPercentage:e.payload});default:return t}}},1700:function(t,e,n){"use strict";n.r(e),n.d(e,{common:function(){return c}});var o=n(8858),r=n(7100),i=n(6758);const a={cache:{}
1,components:{},pages:{},blueprintIndexes:null,publishedDynamicRoute:null,lastUpdated:0,lastStructuralFingerprint:{},fetchInFlightByKey:{}},s={isFetchingDomains:!1,isDeletingDomain:!1,refreshRequired:!1,dynamicData:a,clientInputs:{},data:{domains:[],error:"",subdomainError:"",blueprint:{home:{meta:{name:"",description:"",previewImage:""},layouts:{lg:{},md:{},sm:{}},tempLayouts:{lg:{},md:{},sm:{}},components:[]}}}};function c(t=s,e){switch(e.type){case o.ju:{const n=e.payload?.common?.dynamicData;return n?{...t,dynamicData:{...t.dynamicData,...n,fetchInFlightByKey:{...n.fetchInFlightByKey,...t.dynamicData.fetchInFlightByKey}}}:t}case r.commonConstants.REQUEST_SUBDOMAIN_CHECK:return{...t,isCheckingSubdomain:!0};case r.commonConstants.SUCCESS_SUBDOMAIN_CHECK:return{...t,isCheckingSubdomain:!1,data:{...t.data,subdomainError:""}};case r.commonConstants.FAILURE_SUBDOMAIN_CHECK:return{...t,isCheckingSubdomain:!1,data:{...t.data,subdomainError:e.payload}};case r.commonConstants.REQUEST_DELETE_DOMAIN:return{...t,isDeletingDomain:!0};case r.commonConstants.SUCCESS_DELETE_DOMAIN:return{...t,isDeletingDomain:!1,data:{...t.data,error:"",subdomainError:"",domains:t.data.domains.filter((t=>t.domain!==e.payload))}};case r.commonConstants.FAILURE_DELETE_DOMAIN:return{...t,isDeletingDomain:!1};case r.commonConstants.TOGGLE_REFRESH_REQUIRED:return{...t,refreshRequired:!0};case r.commonConstants.REQUEST_DOMAIN_LIST_OF_USER:return{...t,isFetchingDomains:!0};case r.commonConstants.FAILURE_DOMAIN_LIST_OF_USER:return{...t,isFetchingDomains:!1};case r.commonConstants.SUCCESS_DOMAIN_LIST_OF_USER:return{...t,isFetchingDomains:!1,data:{...t.data,domains:e.payload}};case r.commonConstants.REQUEST_ADD_DOMAIN:return{...t,isAddingDomain:!0};case r.commonConstants.SUCCESS_ADD_DOMAIN:return{...t,isAddingDomain:!1,data:{...t.data,domains:[...t.data.domains,e.payload]}};case r.commonConstants.FAILURE_ADD_DOMAIN:return{...t,isAddingDomain:!1,data:{...t.data,error:e.payload}};case r.commonConstants.REQUEST_VERIFICATION_STATUS:return{...t,isVerifyingDomain:!0};case r.commonConstants.SUCCESS_VERIFICATION_STATUS:return{...t,isVerifyingDomain:!1,data:{...t.data,domains:[...t.data.domains.filter((t=>t.domain!=e.payload.domain)),e.payload]}};case r.commonConstants.FAILURE_VERIFICATION_STATUS:return{...t,data:{...t.data,error:e.payload}};case r.commonConstants.CLEAR_COMMON_ERROR:return{...t,data:{...t.data,error:""}};case r.commonConstants.CLEAR_SUBDOMAIN_ERROR:return{...t,data:{...t.data,subdomainError:""}};case r.commonConstants.UPDATE_CLIENT_INPUTS:return{...t,clientInputs:{...t.clientInputs,...e.payload}};case r.dynamicDataConstants.SET_BLUEPRINT_INDEXES:return(0,i.withDynamic)(t,(t=>({...t,blueprintIndexes:e.payload,lastUpdated:Date.now()})));case r.dynamicDataConstants.SET_CACHE_ENTRY:{const{cacheKey:n,entry:o}=e.payload;return(0,i.withDynamic)(t,(t=>(0,i.withCache)(t,n,o)))}case r.dynamicDataConstants.SET_COMPONENT_STATE:{const{clientId:n,state:o}=e.payload;return(0,i.withDynamic)(t,(t=>(0,i.upsert)(t,"components",n,o)))}case r.dynamicDataConstants.SET_PAGE_STATE:{const{cacheKey:n,state:o}=e.payload;return(0,i.withDynamic)(t,(t=>(0,i.upsert)(t,"pages",n,o)))}case r.dynamicDataConstants.REQUEST_FETCH_LIST:{const{clientId:n,cacheKey:o,requestKey:r}=e.payload,a=r||o;return(0,i.withDynamic)(t,(t=>{const e=(0,i.upsert)(t,"components",n,{cacheKey:o,isLoading:!0,error:null});return{...e,fetchInFlightByKey:{...e.fetchInFlightByKey,[a]:!0}}}))}case r.dynamicDataConstants.SUCCESS_FETCH_LIST:case r.dynamicDataConstants.FAILURE_FETCH_LIST:{const{requestKey:n,cacheKey:o}=e.payload,r=n||o;return(0,i.withDynamic)(t,(t=>{const e={...t.fetchInFlightByKey||{}};return r&&delete e[r],{...(0,i.touch)(t),fetchInFlightByKey:e}}))}case r.dynamicDataConstants.REQUEST_FETCH_ITEM:{const{cacheKey:n}=e.payload;return(0,i.withDynamic)(t,(t=>{const e=(0,i.upsert)(t,"pages",n,{cacheKey:n,isLoading:!0,error:null});return{...e,fetchInFlightByKey:{...e.fetchInFlightByKey,[n]:!0}}}))}case r.dynamicDataConstants.SUCCESS_FETCH_ITEM:case r.dynamicDataConstants.FAILURE_FETCH_ITEM:{const{cacheKey:n}=e.payload;return(0,i.withDynamic)(t,(t=>{const e={...t.fetchInFlightByKey||{}};return n&&delete e[n],{...(0,i.touch)(t),fetchInFlightByKey:e}}))}case r.dynamicDataConstants.SET_LIST_PAGINATION:{const{clientId:n,currentPage:o,offset:r,hasNextPage:a,hasPreviousPage:s,totalPages:c}=e.payload;if(!t.dynamicData.components[n]?.pagination)return t;const l={currentPage:o,offset:r};return void 0!==a&&(l.hasNextPage=a),void 0!==s&&(l.hasPreviousPage=s),void 0!==c&&(l.totalPages=c),(0,i.withDynamic)(t,(t=>(0,i.mergeAt)(t,"components",n,"pagination",l)))}case r.dynamicDataConstants.CLEANUP_DYNAMIC_DATA:return(0,i.setDynamic)(t,{...a});case r.dynamicDataConstants.SET_LAST_STRUCTURAL_FINGERPRINT:{const{context:n,fingerprint:o}=e.payload;return(0,i.withDynamic)(t,(t=>({...t,lastStructuralFingerprint:{...t.lastStructuralFingerprint||{},[n]:o},lastUpdated:Date.now()})))}case r.dynamicDataConstants.SET_PUBLISHED_DYNAMIC_ROUTE:return(0,i.withDynamic)(t,(t=>({...t,publishedDynamicRoute:e.payload,lastUpdated:Date.now()})));default:return t}}},5925:function(t,e,n){"use strict";n.r(e),n.d(e,{customization:function(){return d}});var o=n(3465),r=n.n(o),i=n(8858),a=n(7100),s=n(7878);const c={currentStep:0,isFunnel:!1,objective:"",language:"en",aiService:"gpt4o-mini",prompt:"",websiteName:"",category:"",location:"",businessName:"",categoryData:[],keywords:[],logId:"",hasErrorOnGeneratingMetaFromPrompt:!1,errorMsgOnGeneratingMetaFromPrompt:"",hasErrorOnCreateProjectFromPrompt:!1,errorMsgOnCreateProjectFromPrompt:""},l={cols:{bp_1920:100,bp_1440:100,bp_1280:100,lg:100,md:100,sm:100},breakpoints:{bp_1920:1920,bp_1440:1440,bp_1280:1280,lg:1200,md:768,sm:480},margin:[0,0],containerPadding:[0,0],rowHeight:2},u={cols:{lg:20,md:20,sm:20},breakpoints:{lg:1200,md:768,sm:480},margin:[0,0],containerPadding:[0,0],rowHeight:30},p={fontFamiliesUsedInProjectHelper:{},uiState:{},deployPending:!1,isStoringUndo:!1,isSavingBlueprintContent:!1,contentLimitationView:null,currentStateNameOfComponent:"",tempFontFamilies:[],showComponentEditModal:!1,customizationEnabled:!1,kbArticles:[],activeFonts:[],versionHistory:[],dragPlaceholder:{},data:{existingComponentsNew:{},styleguide:{},projectUsers:[],colorPalette:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],templates:[],recentlyUpdatedComponents:[],gridDensity:"default",gridLayout:{cols:{lg:20,md:20,sm:20},breakpoints:{lg:1200,md:768,sm:480},margin:[0,0],containerPadding:[0,0],rowHeight:30},css:"/*\n\n    Note: For display flex to work, you have to add \n    \n    .your-class-name{\n      display:flex;\n    }\n    \n    .your-class-name > div {\n      position: static !important;\n    }\n    \n    */\n    \n    /* place css code */\n\n\n\n\n",js:"//Add your JS here\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",blueprint:{home:{meta:{name:"",description:"",previewImage:"",activeBreakpoints:["lg","md","sm"],autoResponsiveComponents:{}},layouts:{lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]},tempLayouts:{lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[]},hiddenLayouts:{lg:[],sm:[],md:[],bp_1280:[],bp_1440:[],bp_1920:[]},components:[]}},staticMedia:[],selectedData:{url:"",compId:""},currentlySelectedComponentId:"Global0007",currentlySelectedComponentArray:[],view:"web",currentBreakpoint:"lg",fonts:{}},webBuilders:[],guidelines:{topGuide:{},leftGuide:{},rightGuide:{},bottomGuide:{}},revisiondata:0,layoutdata:[],newUrl:"",verificationData:{data:{}},windowContext:null,documentContext:null,context:"home",project:"",gridLayout:{cols:{lg:20,md:20,sm:20},breakpoints:{lg:1200,md:768,sm:480},margin:[0,0],containerPadding:[0,0],rowHeight:30},isExportingCode:!1,tagData:[],recentlyUndone:!1,isUpdatingProps:!1,isUpdatingBluePrint:!1,isExchangingChildren:!1,isUpdatingLayout:!1,isUpdating:!1,isUpdatingManifest:!1,isDeletingComponent:!1,isHidingComponent:!1,isDeletingComponentFromManifest:!1,isImageUploaded:!1,isSavingUrl:!1,isVerifiedStatus:!1,isCu
1stomizing:!1,isAddingNewPage:!1,isAddedPage:!1,isDeletingPage:!1,isFetching:!1,isFetchingComponents:!1,aiCompanionMode:!1,isSettingUpAICompanion:!1,aiCompanionIframeUrl:null,aiCompanionIframeLoaded:!1,aiCompanionIframeLoadError:!1,showAICanvasOverlay:!1,aiCompanionPreviewMode:!1,aiCompanionData:{pages:[],total:0,projectId:null,iframeContext:null,mode:"chat",selectedElement:null,clickedElements:[],chatInteractionEnabled:!1,pagesRefreshTrigger:0,liveEditStatus:"idle"},isFetchingAICompanionPages:!1,isNavigatingAICompanionPage:!1,isundoAction:!1,layoutsInitialized:!1,componentsInitialized:!1,mismatchActionRequired:!1,googleFonts:[],isFetchingGoogleFonts:!1,isUpdatingSiteFonts:!1,isUpdatingTextManifest:!1,isLoadingFontsOfTextManifest:!1,fontsUsedInTextManifest:[],isLoadingGoogleFonts:!1,isPublishingPage:!1,showGridLines:!1,showAPIEditor:!1,showCustomLayout:!1,isFetchingTemplates:!1,isGeneratingWordPressAPIKey:!1,isUpdatingTemplate:!1,resized:!1,recentlyResizedComp:"",recentlySelectedBlock:"",deletionKey:"",globalShiftKey:!1,isAddingNewProject:!1,isDeletingProject:!1,canvasTransform:"1",canvasTransformMaxLimit:1,showSidePopup:!1,showPhotosPanel:!1,invalidHost:!1,isFetchingHost:!1,isAddingSubdomain:!1,isAddingDomain:!1,formState:{},genericAPICall:"",isDropping:!1,refreshCanvas:!1,photosPanelClickToSelectModeCallback:"",bgImageTempUrl:"",bgMultilistExpandedIds:[],tempBgImageChangedIndex:null,templates:{isFetching:!1,data:[]},isCreatingProjectFromPrompt:!1,isCreatingCustomAIProject:!1,customAIProjectUniqueUrl:"",customAIProjectExportCompleted:!1,customAIProjectError:"",tempBuilderUIState:{},tempAIPromptData:{},projectPrompt:"",tryProjectPromptAgainFlag:!1,isCheckingTemplate:!1,aiOnboarding:c,recentlyEditedComponent:{client_id:"",props:{componentStyle:{},componentData:{}}},isFeedbackToastPending:!1,isGeneratingPageUsingAi:!1,editorMode:"basic",triggerComponentEditPanelUpdate:"",playgroundDocumentHeadFlag:"",showStyleSettingsFoldableBlockCondition:!1,rerenderKey:"",searchState:{isSearching:!1,results:[],error:null},aiCommandResult:null,aiCommandError:null,isAIProcessing:!1,aiCommandType:null,aiRequiresAcceptance:!1,aiUsageInfo:null,aiCommandTempData:null};function d(t=p,e){switch(e.type){case i.ju:return{...t,...e.payload.customization.present};case a.customizationConstants.UPDATE_RENDER_KEY:return{...t,rerenderKey:e.payload};case"SET_FONT_FAMILIES_USED_IN_PROJECT_HELPER":return{...t,fontFamiliesUsedInProjectHelper:e.payload};case a.customizationConstants.REQUEST_CHECK_TEMPLATE:return{...t,isCheckingTemplate:!0};case a.customizationConstants.SUCCESS_CHECK_TEMPLATE:return e?.payload?.isAI?{...t,isCheckingTemplate:!1,aiOnboarding:{...t.aiOnboarding,templateId:e.payload.templateId,variant:e.payload.variant,templateInfo:e.payload}}:{...t,isCheckingTemplate:!1,aiOnboarding:{...t.aiOnboarding,templateId:"",currentStep:"0",templateInfo:{}}};case a.customizationConstants.FAILURE_CHECK_TEMPLATE:return{...t,isCheckingTemplate:!1,aiOnboarding:{...t.aiOnboarding,templateId:"",currentStep:"0",templateInfo:{}}};case a.customizationConstants.REQUEST_GENERATE_META_FROM_PROMPT:return{...t,isGeneratingMetaFromPrompt:!0};case a.customizationConstants.SUCCESS_GENERATE_META_FROM_PROMPT:return{...t,isGeneratingMetaFromPrompt:!1,aiOnboarding:{...t.aiOnboarding,hasErrorOnGeneratingMetaFromPrompt:!1,errorMsgOnGeneratingMetaFromPrompt:""}};case a.customizationConstants.FAILURE_GENERATE_META_FROM_PROMPT:return{...t,isGeneratingMetaFromPrompt:!1,aiOnboarding:{...t.aiOnboarding,hasErrorOnGeneratingMetaFromPrompt:!0,errorMsgOnGeneratingMetaFromPrompt:e.payload}};case a.customizationConstants.RESET_AI_ONBOARDING:return{...t,isCreatingCustomAIProject:!1,customAIProjectUniqueUrl:"",customAIProjectExportCompleted:!1,customAIProjectError:"",aiOnboarding:c};case a.customizationConstants.SET_AI_ONBOARDING:return{...t,aiOnboarding:{...t.aiOnboarding,...e.payload}};case a.customizationConstants.SET_TITLES_FOR_AI_SECTIONS_USED_IN_BUILDER:return{...t,aiSectionTitles:e.payload};case a.customizationConstants.SET_STYLE_SETTINGS_FOLDABLE_BLOCK:return{...t,showStyleSettingsFoldableBlockCondition:e.payload};case a.customizationConstants.UPDATE_PLAYGROUND_DOCUMENT_HEAD_FLAG:return{...t,playgroundDocumentHeadFlag:e.payload};case a.customizationConstants.SWITCH_EDITOR_MODE:return{...t,editorMode:e.payload};case a.customizationConstants.REQUEST_CONNECT_STRIPE:return{...t,isConnectingStripe:!0};case a.customizationConstants.SUCCESS_CONNECT_STRIPE:case a.customizationConstants.FAILURE_CONNECT_STRIPE:return{...t,isConnectingStripe:!1};case a.customizationConstants.REQUEST_UNLINK_VARIABLES_USED_IN_PROJECT:return{...t};case a.customizationConstants.SUCCESS_UNLINK_VARIABLES_USED_IN_PROJECT:return{...t,data:{...t.data,blueprint:{...t.data.blueprint,...e.payload.blueprint},classes:{...t.data.classes,...e.payload.classes}}};case a.customizationConstants.FAILURE_UNLINK_VARIABLES_USED_IN_PROJECT:return{...t};case a.customizationConstants.TRIGGER_COMPONENT_EDIT_PANEL_UPDATE:return{...t,triggerComponentEditPanelUpdate:e.payload};case a.customizationConstants.REQUEST_GENERATE_AI_FOR_PAGE:return{...t,isGeneratingPageUsingAi:!0};case a.customizationConstants.SUCCESS_GENERATE_AI_FOR_PAGE:return{...t,isGeneratingPageUsingAi:!1,data:{...t.data,blueprint:{...t.data.blueprint,[e.payload.context]:e.payload.page,...e.payload.linkedComponentBlueprints}}};case a.customizationConstants.FAILURE_GENERATE_AI_FOR_PAGE:return{...t,isGeneratingPageUsingAi:!1};case a.customizationConstants.REQUEST_ADD_ANALYTICS_TO_PROJECT:return{...t,isAddingAnalyticsToProject:!0};case a.customizationConstants.SUCCESS_ADD_ANALYTICS_TO_PROJECT:return{...t,isAddingAnalyticsToProject:!1,data:{...t.data,analytics:e.payload?.id}};case a.customizationConstants.FAILURE_ADD_ANALYTICS_TO_PROJECT:return{...t,isAddingAnalyticsToProject:!1};
1case a.customizationConstants.SET_RECENTLY_EDITED_COMPONENT:return{...t,recentlyEditedComponent:e.payload};case a.customizationConstants.UPDATE_SUBDOMAIN_NAME:return{...t,data:{...t.data,subdomain:e.payload}};case a.customizationConstants.REQUEST_GENERATE_WP_API_KEY:return{...t,isGeneratingWordPressAPIKey:!0};case a.customizationConstants.SUCCESS_GENERATE_WP_API_KEY:return{...t,isGeneratingWordPressAPIKey:!1,data:{...t.data,integrations:{...t.data.integrations,wordpressPlugin:{...t.data.integrations.wordpressPlugin,...e.payload}}}};case a.customizationConstants.FAILURE_GENERATE_WP_API_KEY:return{...t,isGeneratingWordPressAPIKey:!1};case a.customizationConstants.REQUEST_DISCONNECT_WORDPRESS:return{...t,wordpressPluginBeingDisconnected:!0};case a.customizationConstants.FAILURE_DISCONNECT_WORDPRESS:return{...t,wordpressPluginBeingDisconnected:!1};case a.customizationConstants.SUCCESS_DISCONNECT_WORDPRESS:return{...t,wordpressPluginBeingDisconnected:!1,data:{...t.data,integrations:{...t.data.integrations,wordpressPlugin:{apiKey:t.data.integrations.wordpressPlugin.apiKey,status:"plugin-activation-pending"}}}};case a.customizationConstants.REQUEST_DISCONNECT_STRIPE:return{...t,isDisconnectingStripe:!0};case a.customizationConstants.FAILURE_DISCONNECT_STRIPE:return{...t,isDisconnectingStripe:!1};case a.customizationConstants.SUCCESS_DISCONNECT_STRIPE:return{...t,wordpressPluginBeingDisconnected:!1,data:{...t.data,integrations:{...t.data.integrations,stripe:null}}};case a.customizationConstants.REQUEST_ASSIGN_LICENSE:return{...t,isAssigningLifetimeLicense:!0};case a.customizationConstants.SUCCESS_ASSIGN_LICENSE:case a.customizationConstants.FAILURE_ASSIGN_LICENSE:return{...t,isAssigningLifetimeLicense:!1};case a.customizationConstants.STORE_FLAG_TO_TRY_PROMPT_AGAIN:return{...t,tryProjectPromptAgainFlag:e.payload};case a.customizationConstants.STORE_PROJECT_PROMPT:return{...t,projectPrompt:e.payload};case a.customizationConstants.REQUEST_CREATE_CUSTOM_AI_WORKFLOW:return{...t,isCreatingCustomAIProject:!0,customAIProjectUniqueUrl:"",customAIProjectExportCompleted:!1,customAIProjectError:""};case a.customizationConstants.SUCCESS_CREATE_CUSTOM_AI_WORKFLOW:return{...t,isCreatingCustomAIProject:!1,customAIProjectUniqueUrl:e.payload?.uniqueUrl||"",customAIProjectExportCompleted:!!e.payload?.exportCompleted,customAIProjectError:""};case a.customizationConstants.FAILURE_CREATE_CUSTOM_AI_WORKFLOW:return{...t,isCreatingCustomAIProject:!1,customAIProjectError:e.payload};case a.customizationConstants.REQUEST_CREATE_PROJECT_FROM_PROMPT:return{...t,isCreatingProjectFromPrompt:!0,tempAIPromptData:{}};case a.customizationConstants.SET_PROJECT_FROM_PROMPT_TRANSFERRED:return{...t,projectFromPromptTransferred:e.payload};case a.customizationConstants.SUCCESS_CREATE_PROJECT_FROM_PROMPT:return{...t,isCreatingProjectFromPrompt:!1,projectFromPromptTransferred:!0,tempAIPromptData:e.payload,isFeedbackToastPending:!0};case a.customizationConstants.FAILURE_CREATE_PROJECT_FROM_PROMPT:return{...t,isCreatingProjectFromPrompt:!1};case a.customizationConstants.AI_FEEDBACK_TOAST_PENDING:return{...t,isFeedbackToastPending:e.payload};case a.customizationConstants.REQUEST_MOVE_GUEST_PROJECT:return{...t,transferingGuestProject:!0};case a.customizationConstants.SUCCESS_MOVE_GUEST_PROJECT:case a.customizationConstants.FAILURE_MOVE_GUEST_PROJECT:return{...t,transferingGuestProject:!1};case a.customizationConstants.IN_PLAYGROUND_MODE:return{...t,playground:e.payload};case a.customizationConstants.REQUEST_TRANSFER_OWNERSHIP_START:return{...t,isTransferingProject:!0};case a.customizationConstants.SUCCESS_TRANSFER_OWNERSHIP_START:return{...t,isTransferingProject:!1,data:{...t.data,transferStatus:e.payload.transferStatus}};case a.customizationConstants.FAILURE_TRANSFER_OWNERSHIP_START:return{...t,isTransferingProject:!1};case a.customizationConstants.UPDATE_PROJECT_USERS:return{...t,projectUsers:e.payload};case a.customizationConstants.UPDATE_DRAG_PLACEHOLDER:return{...t,dragPlaceholder:e.payload};case a.customizationConstants.TOGGLE_TEXT_EDITOR_OUTLINE:return{...t,showTextEditorOutline:e.payload};case a.customizationConstants.UPDATE_USER_ROLE:return{...t,userRole:e.payload};case a.customizationConstants.TRANSFER_COMPONENT_FROM_DOCK_TO_CANVAS:return{...t,transferredComponent:e.payload};case a.customizationConstants.REFRESH_CANVAS:return{...t,refreshCanvas:!0};case a.customizationConstants.SET_IS_UPDATING_BLUEPRINT:return{...t,isUpdatingBlueprint:e.payload};case a.customizationConstants.DROP_UPDATE:return{...t,isDropping:e.payload};case a.customizationConstants.UNDOS_REVISION_UPDATE_IS_STORING_START:return{...t,isStoringUndo:!0};case a.customizationConstants.UNDOS_REVISION_UPDATE_COMPLETED:return{...t,isStoringUndo:!1,canvasInit:!0};case a.customizationConstants.UPDATE_IFRAME_DOCUMENT:return{...t,windowContext:e.payload.windowContext,documentContext:e.payload.documentContext};case a.customizationConstants.RESET_CUSTOMIZATION_STATE:return{...p,isFetching:!1,officialCDHost:!0,webBuilders:t.webBuilders};case a.customizationConstants.INITIATE_CANVAS:return{...t,canvasInit:!0,refreshCanvas:!1};case a.customizationConstants.IMPORT_BASIC_COMPONENTS:return{...t,basicComponentsInit:!0,basicComponentModules:e.payload};case a.customizationConstants.SET_CONTENT_LIMITATION_BUILDER:return{...t,contentLimitationView:e.payload};case a.customizationConstants.REQUEST_GENERIC_API_CALL:return{...t,isMakingGenericAPICall:!0};case a.customizationConstants.SUCCESS_GENERIC_API_CALL:case a.customizationConstants.FAILURE_GENERIC_API_CALL:return{...t,genericAPICall:e.payload,isMakingGenericAPICall:!1};case a.customizationConstants.UPDATE_HIDDEN_LAYOUTS:{const{context:n,payload:o}=e;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],hiddenLayouts:o}}}}}case a.customizationConstants.UPDATE_FORM_STATE:return{...t,formState:{...t.formState,[e.payload.name]:e.payload.value}};case a.customizationConstants.TOGGLE_API_EDITOR:return{...t,showAPIEditor:e.payload};case a.customizationConstants.REQUEST_UPDATE_INTEGRATION:return{...t,isUpdatingIntegration:!0};case a.customizationConstants.SUCCESS_UPDATE_INTEGRATION:return{...t,isUpdatingIntegration:!1,data:{...t.data,...e.payload}};case a.customizationConstants.FAILURE_UPDATE_INTEGRATION:return{...t,isUpdatingIntegration:!1,integrationError:e.payload};case a.customizationConstants.CLEAR_UPDATE_INTEGRATION_ERROR:return{...t,integrationError:""};case a.customizationConstants.REQUEST_ADMIN_WEBBUILDER_UPDATE:return{...t,isAdminU
1pdatingWebBuilder:!0};case a.customizationConstants.SUCCESS_ADMIN_WEBBUILDER_UPDATE:return{...t,isAdminUpdatingWebBuilder:!1};case a.customizationConstants.FAILURE_ADMIN_WEBBUILDER_UPDATE:return{...t,isAdminUpdatingWebBuilder:!1,adminUpdateWebBuilderError:e.payload};case a.customizationConstants.CLEAR_ADMIN_UPDATE_WEBBUILDER_ERROR:return{...t,adminUpdateWebBuilderError:""};case a.customizationConstants.REQUEST_SAVE_CUSTOM_CODE:return{...t,isSavingCustomCode:!0};case a.customizationConstants.SUCCESS_SAVE_CUSTOM_CODE:return{...t,isSavingCustomCode:!1,data:{...t.data,...e.payload}};case a.customizationConstants.FAILURE_SAVE_CUSTOM_CODE:return{...t,isSavingCustomCode:!1,customCodeError:e.payload};case a.customizationConstants.CLEAR_CUSTOM_CODE_ERROR:return{...t,customCodeError:""};case a.customizationConstants.UPDATE_ACTIVE_FONTS:return{...t,activeFonts:e.payload};case a.customizationConstants.UPDATE_DOMAIN_ACTIVE_STATUS:return{...t,data:{...t.data,active:{...t.data.active,domain:e.payload}}};case a.customizationConstants.UPDATE_SUB_DOMAIN_ACTIVE_STATUS:return{...t,data:{...t.data,active:{...t.data.active,subdomain:e.payload}}};case a.customizationConstants.REQUEST_ADD_SUB_DOMAIN_TO_PROJECT:return{...t,isAddingSubdomain:!0};case a.customizationConstants.SUCCESS_ADD_SUB_DOMAIN_TO_PROJECT:return{...t,isAddingSubdomain:!1,data:{...t.data,subdomain:e.payload,subdomainUpdatedAt:(new Date).toISOString(),active:{...t.data.active,subdomain:"true"}}};case a.customizationConstants.FAILURE_ADD_SUB_DOMAIN_TO_PROJECT:return{...t,isAddingSubdomain:!1};case a.customizationConstants.REQUEST_ADD_DOMAIN_TO_PROJECT:return{...t,isAddingDomain:!0};case a.customizationConstants.SUCCESS_ADD_DOMAIN_TO_PROJECT:return{...t,isAddingDomain:!1,data:{...t.data,domain:e.payload}};case a.customizationConstants.FAILURE_ADD_DOMAIN_TO_PROJECT:return{...t,isAddingDomain:!1};case a.customizationConstants.TOGGLE_HOST_STATUS:return{...t,officialCDHost:!0};case a.customizationConstants.REQUEST_FETCH_HOST:return{...t,isFetchingHost:!0,officialCDHost:!1,deployPending:!1};case a.customizationConstants.SUCCESS_FETCH_HOST:return{...t,isFetchingHost:!1,data:{...t.data,...e.payload}};case a.customizationConstants.FAILURE_FETCH_HOST:return{...t,isFetchingHost:!1,invalidHost:!0};case a.customizationConstants.CLIENT_DEPLOY_PENDING:return{...t,deployPending:!0};case a.customizationConstants.REQUEST_FETCH_KB_ARTICLE:return{...t,isFetchingKBArticle:!0};case a.customizationConstants.TOGGLE_PHOTOS_PANEL:return{...t,showPhotosPanel:e.payload,photosPanelClickToSelectModeCallback:e.callback};case a.customizationConstants.STORE_BG_IMAGE:return{...t,bgImageTempUrl:e.payload};case a.customizationConstants.UNDO_ACTION:return{...t,recentlyUndone:!0};case a.customizationConstants.UNDO_ACTION_COMPLETE:return{...t,recentlyUndone:!1};case a.customizationConstants.SUCCESS_FETCH_KB_ARTICLE:return{...t,isFetchingKBArticle:!1,kbArticles:e.payload};case a.customizationConstants.FAILURE_FETCH_KB_ARTICLE:return{...t,isFetchingKBArticle:!1};case a.customizationConstants.REQUEST_EXPORT_CODE:return{...t,isExportingCode:!0};case a.customizationConstants.SUCCESS_EXPORT_CODE:case a.customizationConstants.FAILURE_EXPORT_CODE:return{...t,isExportingCode:!1};case a.customizationConstants.UPDATE_COLOR_PALETTE:return{...t,data:{...t.data,colorPalette:e.payload}};case a.customizationConstants.UPDATE_SIDE_POPUP_MENU:return{...t,showSidePopup:e.payload};case a.customizationConstants.SET_BUILDER_CONTAINER_REF:return{...t,builderContainerRef:e.payload};case a.customizationConstants.SET_BUILDER_CANVAS_REF:return{...t,builderCanvasRef:e.payload};case a.customizationConstants.TOGGLE_GLOBAL_SHIFT_KEY:return{...t,globalShiftKey:e.payload};case a.customizationConstants.EXCHANGE_START:return{...t,isExchangingChildren:!0};case a.customizationConstants.EXCHANGE_END:return{...t,isExchangingChildren:!1};case a.customizationConstants.EXCHANGE_CHILDREN:return{...t,isUpdatingBluePrint:!0,isExchangingChildren:!1,deletionKey:e.key,data:{...t.data,blueprint:e.payload}};case a.customizationConstants.TOGGLE_SHOW_GRID:return{...t,showGridLines:e.payload};case a.customizationConstants.TOGGLE_SHOW_CUSTOM_LAYOUT:return{...t,showCustomLayout:e.payload};
1case a.customizationConstants.CHANGE_GRID_DENSITY:return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[e.context]:{...t.data.blueprint[e.context],meta:{...t.data.blueprint[e.context].meta,gridDensity:e.payload,gridLayout:"compact"===e.payload?l:u}}}}};case a.customizationConstants.UPDATE_RESIZE_STATUS:return{...t,...e.payload};case a.customizationConstants.UPDATE_PROJECT_NAME:return{...t,project:e.payload};case a.customizationConstants.UPDATE_SELECTED_BLOCK:return{...t,recentlySelectedBlock:e.payload};case a.customizationConstants.UPDATE_GUIDELINES:return{...t,guidelines:e.payload};case a.customizationConstants.UPDATE_AUTO_RESPONSIVE_COMPS:return{...t};case a.customizationConstants.SET_FONT_LOADING_STATUS:return{...t,isLoadingGoogleFonts:e.payload};case a.customizationConstants.REQUEST_SAVE_AS_PRESET:return{...t,isUpdatingManifest:!0};case a.customizationConstants.SUCCESS_SAVE_AS_PRESET:return{...t,isUpdatingManifest:!1,data:{...t.data,componentManifest:{...t.data.componentManifest,...e.payload}}};case a.customizationConstants.FAILURE_SAVE_AS_PRESET:return{...t,isUpdatingManifest:!1};case a.customizationConstants.REQUEST_IMPORT_FONTS_USED_IN_TEXT_MANIFEST:return{...t,isLoadingFontsOfTextManifest:!0};case a.customizationConstants.SUCCESS_IMPORT_FONTS_USED_IN_TEXT_MANIFEST:return{...t,isLoadingFontsOfTextManifest:!1,fontsUsedInTextManifest:e.payload};case a.customizationConstants.REQUEST_UPDATE_TEXT_MANIFEST:return{...t,isUpdatingTextManifest:!0};case a.customizationConstants.SUCCESS_UPDATE_TEXT_MANIFEST:return{...t,isUpdatingTextManifest:!1,data:{...t.data,textManifest:e.payload}};case a.customizationConstants.REQUEST_UPDATE_SITE_FONTS:return{...t,isUpdatingSiteFonts:!0,data:{...t.data,fonts:e.payload}};case a.customizationConstants.SUCCESS_UPDATE_SITE_FONTS:return{...t,isUpdatingSiteFonts:!1};case a.customizationConstants.UPDATE_CANVAS_TRANSFORM_VALUE:return{...t,canvasTransform:e.payload};case a.customizationConstants.FAILURE_UPDATE_SITE_FONTS:return{...t};case a.customizationConstants.RESET_GOOGLE_FONTS:return{...t,isFetchingGoogleFonts:!1,googleFonts:[]};case a.customizationConstants.REQUEST_FETCH_GOOGLE_FONTS:return{...t,isFetchingGoogleFonts:!0};case a.customizationConstants.SUCCESS_FETCH_GOOGLE_FONTS:return{...t,isFetchingGoogleFonts:!1,googleFonts:[...new Set([...t.googleFonts||[],...e.payload])]};case a.customizationConstants.FAILURE_FETCH_GOOGLE_FONTS:case a.customizationConstants.REQUEST_FETCH_TAGS:case a.customizationConstants.FAILURE_FETCH_TAGS:return{...t};case a.customizationConstants.REQUEST_SEND_URL:return{...t,isSavingUrl:!0};case a.customizationConstants.SUCCESS_SEND_URL:return{...t,isSavingUrl:!1,verificationData:e.payload};case a.customizationConstants.FAILURE_SEND_URL:return{...t,isSavingUrl:!1};case a.customizationConstants.FAILURE_VERIFY_URL:return{...t,verificationData:{...t.verificationData,data:{...t.verificationData.data,error:!0,message:"Failed to verify. Please try again in a few minutes"},error:!0,message:"Failed to verify. Please try again in a few minutes"}};case a.customizationConstants.STORE_SELECTED_COMPONENT:return{...t,data:{...t.data,currentlySelectedComponentId:e.payload}};case a.customizationConstants.CLEAR_SELECTED_COMPONENTS_ARRAY:return{...t,data:{...t.data,currentlySelectedComponentArray:[]}};case a.customizationConstants.STORE_SELECTED_COMPONENT_INTO_ARRAY:return 0===e.payload.length?{...t,data:{...t.data,currentlySelectedComponentArray:[]}}:{...t,data:{...t.data,currentlySelectedComponentArray:e.payload}};case a.customizationConstants.REQUEST_DELETE_COMPONENT:return{...t,isDeletingComponent:!0};case a.customizationConstants.REQUEST_HIDE_COMPONENT:return{...t,isHidingComponent:!0};case a.customizationConstants.REMOVE_PROPERTY:{const n=e.context;let o=r()(t.data.blueprint[n]);return e.payload.length?e.payload.map((t=>(delete o[t],!0))):delete o[e.payload],{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:o}},isDeletingComponent:!0}}case a.customizationConstants.SUCCESS_DELETE_COMPONENT:{const{blueprint:n,clientId:o}=e.payload;return{...t,isDeletingComponent:!1,data:{...t.data,...e.options&&!1!==e.options.changeSelectedComponent?{currentlySelectedComponentId:"Global0007"}:{},blueprint:n,recentlyremovedComponentId:o}}}case a.customizationConstants.SUCCESS_DELETE_MULTIPLE_COMPONENTS:{let n=e.currentView,o={};const{payload:i}=e;let a=r()(t.data.blueprint[t.context].components);return i&&i.map((r=>(Object.keys(t.data.blueprint[n].layouts).map((e=>{const i=t.data.blueprint[n].layouts[e].filter((t=>t.i!==r));return o={...o,[e]:i},!0})),Object.prototype.hasOwnProperty.call(a,r)&&e.options&&e.options.delete&&delete a[r],!0))),{...t,isDeletingComponent:!1,data:{...t.data,...!1!==e.options.changeSelectedComponent?{currentlySelectedComponentId:"Global0007"}:{},blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],components:a}},recentlyremovedComponentId:e.payload}}}case a.customizationConstants.SUCCESS_HIDE_MULTIPLE_COMPONENTS:{let n=e.currentView,o={};const{payload:i}=e;let a=r()(t.data.blueprint[t.context].components);return i&&i.map((r=>{if(Object.keys(t.data.blueprint[n].layouts).map((e=>{const i=t.data.blueprint[n].layouts[e].filter((t=>t.i!==r));return o={...o,[e]:i},!0})),Object.prototype.hasOwnProperty.call(a,r)){let t=a[r].props.componentData.hideIn;a[r].props.componentData.hideIn=[...new Set([...t||[],e.currentBreakpoint])],e.options&&e.options.delete&&delete a[r]}return!0})),{...t,isHidingComponent:!1,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],components:a}},recentlyUpdatedComponents:i,recentlyremovedComponentId:e.payload}}}case a.customizationConstants.UPDATE_COMPONENT_PROPS:{const{context:n,payload:o}=e;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],components:{...t.data.blueprint[n].components,[o.client_id]:o}}}}}}case a.customizationConstants.RESET_DOMAIN_DETAILS:return{...t,verificationData:{...t.verificationData,data:{error:!1}}};case a.customizationConstants.TOGGLE_CUSTOMIZATION:return{...t,customizationEnabled:!t.customizationEnabled};case a.customizationConstants.TOGGLE_IMAGE_EDIT_MODAL:return{...t,showImageEditModal:!t.showImageEditModal};case a.customizationConstants.TOGGLE_COMPONENT_EDIT_MODAL:return{...t,showComponentEditModal:void 0===e.payload?!t.showComponentEditModal:e.payload};case a.customizationConstants.STORE_IMAGE_COMP_ID_AND_URL:return{...t,data:{...t.data,selectedData:e.payload}};
1case a.customizationConstants.CHANGE_LAYOUT:{let n=e.currentView;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],layouts:{...t.data.blueprint[n].layouts,lg:[...new Set([...t.data.blueprint[n].layouts.lg||[],...e.payload.lg])],md:[...new Set([...t.data.blueprint[n].layouts.md||[],...e.payload.md])],sm:[...new Set([...t.data.blueprint[n].layouts.sm||[],...e.payload.sm])],bp_1280:[...new Set([...t.data.blueprint[n].layouts.bp_1280||[],...e.payload.bp_1280])],bp_1440:[...new Set([...t.data.blueprint[n].layouts.bp_1440||[],...e.payload.bp_1440])],bp_1920:[...new Set([...t.data.blueprint[n].layouts.bp_1920||[],...e.payload.bp_1920])]}}}}}}case a.customizationConstants.CHANGE_LAYOUT_CHILD:{let n=e.currentView,o=e.parent;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],[o]:{lg:[],md:[],sm:[],bp_1280:[],bp_1440:[],bp_1920:[],...t.data.blueprint[n][o],lg:[...new Set([...t.data.blueprint[n][o]?t.data.blueprint[n][o].lg:{},...e.payload.lg])],md:[...new Set([...t.data.blueprint[n][o]?t.data.blueprint[n][o].md:{},...e.payload.md])],sm:[...new Set([...t.data.blueprint[n][o]?t.data.blueprint[n][o].sm:{},...e.payload.sm])],bp_1280:[...new Set([...t.data.blueprint[n][o]?t.data.blueprint[n][o].bp_1280:{},...e.payload.bp_1280])],bp_1440:[...new Set([...t.data.blueprint[n][o]?t.data.blueprint[n][o].bp_1440:{},...e.payload.bp_1440])],bp_1920:[...new Set([...t.data.blueprint[n][o]?t.data.blueprint[n][o].bp_1920:{},...e.payload.bp_1920])]}}}}}}case a.customizationConstants.REPLACE_LAYOUT:{let n=e.currentView;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],layouts:{...t.data.blueprint[n].layouts,lg:[...new Set([...e.payload.lg])],md:[...new Set([...e.payload.md])],sm:[...new Set([...e.payload.sm])],bp_1280:[...new Set([...e.payload.bp_1280])],bp_1440:[...new Set([...e.payload.bp_1440])],bp_1920:[...new Set([...e.payload.bp_1920])]}}}}}}case a.customizationConstants.REPLACE_TEMP_LAYOUT:{let n=e.currentView;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],tempLayouts:{...t.data.blueprint[n].tempLayouts,lg:[...new Set([...e.payload.lg])],md:[...new Set([...e.payload.md])],sm:[...new Set([...e.payload.sm])],bp_1280:[...new Set([...e.payload.bp_1280])],bp_1440:[...new Set([...e.payload.bp_1440])],bp_1920:[...new Set([...e.payload.bp_1920])]}}}}}}case a.customizationConstants.REMOVE_LAYOUTS_FROM_TEMP_LAYOUTS:{let n=e.currentView,o=e.name;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],[o]:e.payload}}}}}case a.customizationConstants.ADD_TEMP_LAYOUT:{let n=e.currentView;return{...t,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],tempLayouts:{lg:[...t.data.blueprint[n].tempLayouts&&t.data.blueprint[n].tempLayouts.lg||[],...e.payload.lg],md:[...t.data.blueprint[n].tempLayouts&&t.data.blueprint[n].tempLayouts.md||[],...e.payload.md],sm:[...t.data.blueprint[n].tempLayouts&&t.data.blueprint[n].tempLayouts.sm||[],...e.payload.sm],bp_1280:[...t.data.blueprint[n].tempLayouts&&t.data.blueprint[n].tempLayouts.bp_1280||[],...e.payload.bp_1280],bp_1440:[...t.data.blueprint[n].tempLayouts&&t.data.blueprint[n].tempLayouts.bp_1440||[],...e.payload.bp_1440],bp_1920:[...t.data.blueprint[n].tempLayouts&&t.data.blueprint[n].tempLayouts.bp_1920||[],...e.payload.bp_1920]}}}}}}case a.customizationConstants.UPDATE_BP_ONLY:return{...t,data:{...t.data,blueprint:e.payload}};case a.customizationConstants.UPDATE_BLUEPRINT:return{...t,isUpdatingBluePrint:!1,data:{...t.data,blueprint:{...t.data.blueprint,[e.currentView]:{...t.data.blueprint[e.currentView],components:{...t.data.blueprint[e.currentView].components,[e.payload.client_id]:e.payload}}}}};case a.customizationConstants.UPDATE_BLUEPRINT_WITH_MULTIPLE_COMPONENTS:return{...t,isUpdatingBluePrint:!1,isDeletingComponent:!1,data:{...t.data,blueprint:{...t.data.blueprint,[e.currentView]:{...t.data.blueprint[e.currentView],components:{...t.data.blueprint[e.currentView].components,...e.payload}}}}};case a.customizationConstants.REQUEST_PUBLISH_PROJECT:return{...t,isPublishingProject:!0};case a.customizationConstants.SUCCESS_PUBLISH_PROJECT:{const{subdomainUpdatedAt:n,domainUpdatedAt:o,active:r,subdomain:i,domain:a}=e.payload;return{...t,isPublishingProject:!1,data:{...t.data,subdomainUpdatedAt:n,domainUpdatedAt:o,...r&&{active:r},...i&&{subdomain:i},...a&&{domain:a}}}}case a.customizationConstants.FAILURE_PUBLISH_PROJECT:return{...t,isPublishingProject:!1};case a.customizationConstants.FAILURE_PUBLISH_PAGE_LAYOUT:return{...t,isPublishingPage:!1};case a.customizationConstants.PUBLISH_PAGE_LAYOUT:return{...t,isPublishingPage:!0};case a.customizationConstants.SUCCESS_PUBLISH_PAGE_LAYOUT:return{...t,isPublishingPage:!1,data:{...t.data,blueprint:e.payload.blueprint}};case a.customizationConstants.UPDATE_UI_STATE:return{...t,uiState:{...t.uiState,...e.payload}};case a.customizationConstants.BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE:return{...t,deletionKey:"",isUpdatingLayout:!1,isUpdatingBluePrint:!1,data:{...t.data,recentlyAddedComponent:{},recentlyUpdatedComponents:[]}};case a.customizationConstants.BLUEPRINT_AND_LAYOUT_UPDATE_COMPLETE_WM:{const{context:n,name:o,payload:r}=e;return{...t,deletionKey:"",isUpdatingLayout:!1,isUpdatingBluePrint:!1,data:{...t.data,blueprint:{...t.data.blueprint,[n]:{...t.data.blueprint[n],components:{...t.data.blueprint[n].components,[o]:{...t.data.blueprint[n].components[o],component:r}}}},recentlyAddedComponent:{},recentlyUpdatedComponents:[]}}}case a.customizationConstants.REQUEST_SAVE_LAYOUT:return{...t,isUpdating:!0,data:{...t.data,blueprint:e.payload},guidelines:{topGuide:{},leftGuide:{},rightGuide:{},bottomGuide:{}}};case a.customizationConstants.SUCCESS_SAVE_LAYOUT:case a.customizationConstants.FAILURE_SAVE_LAYOUT:return{...t,isUpdating:!1};case a.customizationConstants.REQUEST_FETCH_WEB_BUILDER:return{...t,isFetching:!0,componentsInitialized:!1};case a.customizationConstants.SUCCESS_POLL_WEB_BUILDER:return{...t,isFetching:!1};case a.customizationConstants.SUCCESS_FETCH_WEB_BUILDER:{const{returnContext:n,...o}=e.payload||{};return{...t,...null!=n&&""!==n?{context:n}:{},data:{...t.data,...o},componentsInitialized:!0,isFetching:!1,layoutsInitialized:!0,canvasInit:!1,aiCompanionMode:e.payload?.aiCompanionMode??t.aiCompanionMode}}case a.customizationConstants.FAILURE_FETCH_WEB_BUILDER:return{...t,permissionError:!0,isFetching:!1};case a.customizationConstants.REQUEST_SETUP_AI_COMPANION_SANDBOX:return{...t,isSettingUpAICompanion:!0,aiCompanionMode:!0};case a.customizationConstants.SUCCESS_SETUP_AI_COMPANION_SANDBOX:return{...t,isSettingUpAICompanion:!1,aiCompanionIframeUrl:e.payload.iframeUrl};case a.customizationConstants.FAILURE_SETUP_AI_COMPANION_SANDBOX:return{...t,isSettingUpAICompanion:!1};case a.customizationConstants.SET_AI_CANVAS_OVERLAY:return{...t,showAICanvasOverlay:e.payload};case a.customizationConstants.REQUEST_FETCH_AI_COMPANION_PAGES:return{...t,isFetchingAICompanionPages:!0};case a.customizationConstants.SUCCESS_FETCH_AI_COMPANION_PAGES:{const n=e.payload.pages||[],o=[],r=new Set;
1return n.forEach((t=>{"file-based"===t.type&&(o.push(t),r.add(t.path))})),n.forEach((t=>{"react-router"!==t.type||r.has(t.path)||(o.push(t),r.add(t.path))})),{...t,isFetchingAICompanionPages:!1,aiCompanionData:{pages:o,total:o.length,projectId:e.payload.projectId||null,iframeContext:t.aiCompanionData.iframeContext}}}case a.customizationConstants.FAILURE_FETCH_AI_COMPANION_PAGES:return{...t,isFetchingAICompanionPages:!1};case a.customizationConstants.REFRESH_AI_COMPANION_PAGES:return{...t,aiCompanionData:{...t.aiCompanionData,pagesRefreshTrigger:(t.aiCompanionData.pagesRefreshTrigger||0)+1}};case a.customizationConstants.SET_AI_COMPANION_IFRAME_CONTEXT:return{...t,aiCompanionData:{...t.aiCompanionData,iframeContext:e.payload},isNavigatingAICompanionPage:!0};case a.customizationConstants.CLEAR_AI_COMPANION_NAVIGATION_LOADING:return{...t,isNavigatingAICompanionPage:!1};case a.customizationConstants.SET_AI_COMPANION_IFRAME_LOADED:return{...t,aiCompanionIframeLoaded:e.payload,aiCompanionIframeLoadError:!1};case a.customizationConstants.SET_AI_COMPANION_IFRAME_LOAD_ERROR:return{...t,aiCompanionIframeLoadError:e.payload,aiCompanionIframeLoaded:!1};case a.customizationConstants.RESET_AI_COMPANION_IFRAME_LOAD_STATE:return{...t,aiCompanionIframeLoaded:!1,aiCompanionIframeLoadError:!1};case a.customizationConstants.SET_AI_COMPANION_MODE:return{...t,aiCompanionData:{...t.aiCompanionData,mode:e.payload,selectedElement:null,clickedElements:[]},aiCompanionMode:null!=e.payload||t.aiCompanionMode};case a.customizationConstants.SET_AI_COMPANION_SELECTED_ELEMENT:return{...t,aiCompanionData:{...t.aiCompanionData,selectedElement:e.payload}};case a.customizationConstants.ADD_AI_COMPANION_CLICKED_ELEMENT:{const n=t.aiCompanionData.clickedElements||[];
1if(n.some((t=>t.tagName===e.payload.tagName&&t.className===e.payload.className&&t.elementId===e.payload.id&&t.textContent===e.payload.textContent)))return t;let o=n;if("edit"===t.aiCompanionData.mode&&n.length>0&&(o=[]),"chat"===t.aiCompanionData.mode&&n.length>=4)return t;const r={id:`${e.payload.tagName}_${e.payload.id}_${e.payload.className}_${Date.now()}`,name:e.payload.tagName||"Unknown Element",tagName:e.payload.tagName,className:e.payload.className,elementId:e.payload.id,textContent:e.payload.textContent,elementType:e.payload.elementType,attributes:e.payload.attributes,timestamp:Date.now(),originalElement:e.payload};return{...t,aiCompanionData:{...t.aiCompanionData,clickedElements:[...o,r]}}}case a.customizationConstants.REMOVE_AI_COMPANION_CLICKED_ELEMENT:{const n=t.aiCompanionData.clickedElements||[];return{...t,aiCompanionData:{...t.aiCompanionData,clickedElements:n.filter((t=>t.id!==e.payload))}}}case a.customizationConstants.CLEAR_AI_COMPANION_CLICKED_ELEMENTS:return{...t,aiCompanionData:{...t.aiCompanionData,clickedElements:[]}};case a.customizationConstants.SET_AI_COMPANION_CHAT_INTERACTION_ENABLED:return{...t,aiCompanionData:{...t.aiCompanionData,chatInteractionEnabled:e.payload}};case a.customizationConstants.SET_AI_COMPANION_LIVE_EDIT_STATUS:return{...t,aiCompanionData:{...t.aiCompanionData,liveEditStatus:e.payload}};case a.customizationConstants.SET_AI_COMPANION_PREVIEW_MODE:return{...t,aiCompanionPreviewMode:e.payload};case a.customizationConstants.CLEAR_PERMISSION_ERROR:return{...t,permissionError:!1};case a.customizationConstants.FAILURE_FETCH:return{...t,isFetching:!1};case a.customizationConstants.REQUEST_FETCH_WEB_BUILDERS:return{...t,isFetching:!0};case a.customizationConstants.SUCCESS_FETCH_WEB_BUILDERS:return{...t,webBuilders:[...e.payload.data],pagination:e.payload.pagination,isFetching:!1};case a.customizationConstants.FAILURE_FETCH_WEB_BUILDERS:return{...t,isFetching:!1};case a.customizationConstants.REQUEST_SAVE_CROPPED_IMAGE:return{...t,isUploadingImage:!0};case a.customizationConstants.SUCCESS_SAVE_CROPPED_IMAGE:return{...t,isUploadingImage:!1,croppedImageProps:e.payload};case a.customizationConstants.FAILURE_SAVE_CROPPED_IMAGE:return{...t,isUploadingImage:!1};case a.customizationConstants.REQUEST_SAVE_IMAGE:return{...t,isImageUploaded:!0};case a.customizationConstants.FAILURE_SAVE_IMAGE:return{...t,isImageUploaded:!1};case a.customizationConstants.CHANGE_VIEW:return{...t,data:{...t.data,view:e.payload,currentBreakpoint:e.breakpoint},isUpdatingView:!0};case a.customizationConstants.UPDATE_RESPONSIVE_VIEW_FLAG:return{...t,isUpdatingView:e.payload};case a.customizationConstants.CHANGE_CONTEXT:return{...t,context:e.payload};case a.customizationConstants.REQUEST_ADD_PAGE:return{...t,isAddingNewPage:!0,isAddedPage:!1};case a.customizationConstants.SUCCESS_ADD_PAGE:{const n=Object.keys(e.payload)[0];return{...t,data:{...t.data,blueprint:{...t.data.blueprint,...e.payload}},isAddingNewPage:!1,isAddedPage:!0,newlyAddedPage:n,isAddedNewProject:e.options&&e.options.isAddedNewProject}}case a.customizationConstants.FAILURE_ADD_PAGE:return{...t,isAddingNewPage:!1,isAddedPage:!1};case a.customizationConstants.REQUEST_DELETE_PAGE:return{...t,data:{...t.data,blueprint:e.payload},isDeletingPage:!0};case a.customizationConstants.SUCCESS_DELETE_PAGE:case a.customizationConstants.FAILURE_DELETE_PAGE:return{...t,isDeletingPage:!1};case a.customizationConstants.REQUEST_DELETE_PROJECT:return{...t,isDeletingProject:!0};case a.customizationConstants.SUCCESS_DELETE_PROJECT:return{...t,webBuilders:e.payload,isDeletingProject:!1};case a.customizationConstants.FAILURE_DELETE_PROJECT:return{...t,isDeletingProject:!1};case a.customizationConstants.REQUEST_ADD_PROJECT:return{...t,isAddingNewProject:!0};case a.customizationConstants.SUCCESS_ADD_PROJECT:return{...t,isAddingNewProject:!1,webBuilders:[...t.webBuilders,e.payload]};case a.customizationConstants.FAILURE_ADD_PROJECT:return{...t,isAddingNewProject:!1};case a.customizationConstants.UPDATE_BLUEPRINT_BROADCAST:return{...t,data:{...t.data,blueprint:{...t.data.blueprint,...e.payload}}};case a.customizationConstants.REQUEST_FETCH_TEMPLATE_BY_KEY:return{...t,isFetchingTemplateByKey:!0};case a.customizationConstants.SUCCESS_FETCH_TEMPLATE_BY_KEY:return{...t,isFetchingTemplateByKey:!1,data:{...t.data,...e.payload}};case a.customizationConstants.FAILURE_FETCH_TEMPLATE_BY_KEY:return{...t,isFetchingTemplateByKey:!1};case a.customizationConstants.REQUEST_FETCH_TEMPLATES_V2:return{...t,templates:{...t.templates,isFetchingTemplates:!0}};case a.customizationConstants.SUCCESS_FETCH_TEMPLATES_V2:return{...t,templates:{...t.templates,isFetchingTemplates:!1,data:e.payload}};case a.customizationConstants.FAILURE_FETCH_TEMPLATES_V2:return{...t,templates:{...t.templates,isFetchingTemplates:!1}};case a.customizationConstants.REQUEST_FETCH_COMPONENT_LIBRARY_V2:return{...t,isFetchingComponentLibrary:!0,data:{...t.data}};case a.customizationConstants.SUCCESS_FETCH_COMPONENT_LIBRARY_V2:return{...t,isFetchingComponentLibrary:!1,data:{...t.data,templates:e.payload}};case a.customizationConstants.FAILURE_FETCH_COMPONENT_LIBRARY_V2:return{...t,isFetchingComponentLibrary:!1};case a.customizationConstants.REQUEST_FETCH_COMPONENT_MANIFEST:return{...t,isFetchingComponentManifest:!0};case a.customizationConstants.SUCCESS_FETCH_COMPONENT_MANIFEST:{let n={...e.payload,htmlCode:{...f},videoEmbed:{...m}};return{...t,isFetchingComponentManifest:!1,data:{...t.data,existingComponentsNew:n}}}case a.customizationConstants.FAILURE_FETCH_COMPONENT_MANIFEST:return{...t,isFetchingComponentManifest:!1};case a.customizationConstants.REQUEST_FETCH_VERSIONS:return{...t,isFetchingVersionHistory:!0};case a.customizationConstants.SUCCESS_FETCH_VERSIONS:{let n=e.payload;return{...t,isFetchingVersionHistory:!1,versionHistory:[...t.versionHistory,...n],lastFetchedVersionHistoryCount:n.length,totalVersionCount:n.length+t.ver
1sionHistory?.length}}case a.customizationConstants.SUCCESS_DELETE_BACKUP:return{...t,versionHistory:t.versionHistory.filter((t=>t.docId!==e.payload))};case a.customizationConstants.CLEAR_VERSION_HISTORY:return{...t,isFetchingVersionHistory:!1,versionHistory:[],lastFetchedVersionHistoryCount:null,totalVersionCount:null};case a.customizationConstants.FAILURE_FETCH_VERSIONS:return{...t,isFetchingVersionHistory:!1};case a.customizationConstants.REQUEST_UPDATE_WITH_NEW_TEMPLATE:return{...t,isUpdatingTemplate:!0};case a.customizationConstants.SUCCESS_UPDATE_WITH_NEW_TEMPLATE:return{...t,isUpdatingTemplate:!1};case a.customizationConstants.SET_TEMP_FONT_FAMILIES:return{...t,tempFontFamilies:e.payload};case a.customizationConstants.UPDATE_BLUEPRINT_CONTENT_REQUEST:return{...t,isSavingBlueprintContent:!0};case a.customizationConstants.UPDATE_BLUEPRINT_CONTENT_SUCCESS:return{...t,isSavingBlueprintContent:!1,data:{...t.data,...e.payload}};case a.customizationConstants.UPDATE_BLUEPRINT_CONTENT_FAILURE:return{...t,isSavingBlueprintContent:!1,errorSavingBlueprintContentMsg:e.payload};case a.customizationConstants.UPDATE_BLUEPRINT_CONTENT:return{...t,data:{...t.data,[e.payload.dataname]:e.payload.content}};case a.customizationConstants.UPDATE_STATIC_MEDIA:return{...t,data:{...t.data,staticMedia:e.payload}};case a.customizationConstants.STORE_SELECTED_STATENAME:return{...t,currentStateNameOfComponent:e.payload};case a.customizationConstants.SET_BG_MULTILIST_EXPANDED_IDS:return{...t,bgMultilistExpandedIds:e.payload};case a.customizationConstants.SET_BG_IMAGE_CHANGED_INDEX:return{...t,tempBgImageChangedIndex:e.payload};case a.customizationConstants.REQUEST_SEARCH_PROJECTS:return{...t,searchState:{...t.searchState,isSearching:!0,error:null}};case a.customizationConstants.SUCCESS_SEARCH_PROJECTS:return{...t,searchState:{...t.searchState,isSearching:!1,results:e.payload,error:null}};case a.customizationConstants.FAILURE_SEARCH_PROJECTS:return{...t,searchState:{...t.searchState,isSearching:!1,error:e.payload}};case a.customizationConstants.CLEAR_SEARCH_RESULTS:return{...t,searchState:{isSearching:!1,results:[],error:null}};case a.customizationConstants.REQUEST_DISCONNECT_ZAPIER:return{...t,isDisconnectingZapier:!0};case a.customizationConstants.FAILURE_DISCONNECT_ZAPIER:return{...t,isDisconnectingZapier:!1};case a.customizationConstants.SUCCESS_DISCONNECT_ZAPIER:return{...t,isDisconnectingZapier:!1,data:{...t.data,integrations:{...t.data.integrations,zapier:null}}};case a.customizationConstants.REQUEST_CONNECT_ZAPIER:return{...t,isConnectingZapier:!0};case a.customizationConstants.SUCCESS_CONNECT_ZAPIER:return{...t,isConnectingZapier:!1,data:{...t.data,integrations:{...t.data.integrations,zapier:{...e.payload?.zapier}}}};case a.customizationConstants.FAILURE_CONNECT_ZAPIER:return{...t,isConnectingZapier:!1};case a.customizationConstants.REQUEST_AI_COMMAND_EXECUTE:return{...t,isAIProcessing:!0,aiCommandError:null};case a.customizationConstants.SUCCESS_AI_COMMAND_EXECUTE:return{...t,isAIProcessing:!1,aiCommandResult:e.payload,aiCommandError:null,aiCommandType:e.payload.commandType,aiRequiresAcceptance:e.payload.requiresAcceptance,aiUsageInfo:e.payload.usage,aiCommandTempData:e.payload.requiresAcceptance?{tempBucketId:e.payload.tempBucketId,tempImagePath:e.payload.tempImagePath}:null};case a.customizationConstants.FAILURE_AI_COMMAND_EXECUTE:return{...t,isAIProcessing:!1,aiCommandError:e.payload};case a.customizationConstants.REQUEST_AI_COMMAND_RESULT_ACCEPT:return{...t,isAIProcessing:!0};case a.customizationConstants.SUCCESS_AI_COMMAND_RESULT_ACCEPT:return{...t,isAIProcessing:!1,aiCommandResult:{...t.aiCommandResult,imageUrl:e.payload.imageUrl,bucketId:e.payload.bucketId,path:e.payload.path},aiCommandTempData:null};case a.customizationConstants.FAILURE_AI_COMMAND_RESULT_ACCEPT:return{...t,isAIProcessing:!1,aiCommandError:e.payload};case a.customizationConstants.SUCCESS_AI_COMMAND_RESULT_DISCARD:return{...t,aiCommandTempData:null};case s.uiConstants.CLEAR_AI_COMMAND_RESULT:return{...t,aiCommandResult:null,aiCommandError:null,aiCommandType:null,aiRequiresAcceptance:!1,aiUsageInfo:null,aiCommandTempData:null};default:return t}}const f={layouts:{layouts:{lg:[{x:"0px",y:"0px",w:"100%",i:"HTMLCode1pqr",h:"300px",static:!1}],sm:[{i:"HTMLCode1pqr"}],md:[{i:"HTMLCode1pqr"}],bp_1920:[{i:"HTMLCode1pqr"}],bp_1440:[{i:"HTMLCode1pqr"}],bp_1280:[{i:"HTMLCode1pqr"}]},version:17},components:{HTMLCode1pqr:{uniqueId:"HTMLCode1pqr",zIndex:"",author:"Storylens",isListed:"true",isStatic:!1,name:"HTMLCode",main:"UI/HTMLCode/index.jsx",type:"component",category:"Text",client_id:"HTMLCode1pqr",givenName:"HTML Code"}}
1,isPremiumElement:!0,name:"HTMLCode",displayName:"HTML Code",category:"Text",subCategory:"Embed",subCategoryOrder:"2",description:"html code component without iframe wrapper",custom:"true",isListed:"true",isStatic:!1,main:"UI/HTMLCode/index.jsx",thumbnail:{src:"https://res.cloudinary.com/dbyioi2qq/q_auto/v1667671648/static/iframesvg_1667671647_13432.svg"},uniqueId:"HTMLCode1pqr",fonts:{},classes:{},functions:{}},m={layouts:{layouts:{lg:[{x:"0px",y:"0px",w:"640px",i:"Videoklm8",h:"360px",static:!1}],sm:[{i:"Videoklm8"}],md:[{i:"Videoklm8"}],bp_1920:[{i:"Videoklm8"}],bp_1440:[{i:"Videoklm8"}],bp_1280:[{i:"Videoklm8"}]},version:17},components:{Videoklm8:{uniqueId:"Videoklm8",author:"Storylens",isListed:"true",isStatic:!1,name:"Video",main:"UI/Video/video.jsx",type:"videoEmbed",category:"Text",client_id:"Videoklm8",givenName:"Video Embed",componentType:"video-embed-v1",settingsRenderer:"Builder/ElementSettingsRenderer/video-embed-v1.jsx",props:{componentStyle:{global:{width:"100%",height:"100%",objectFit:"cover"}},componentData:{videoEmbed:{src:"",poster:"https://assets-v2.codedesign.ai/storage/v1/object/public/codedesign_assets/defaultVideoPoster.svg",autoplay:!1,controls:!1,loop:!1,muted:!1,seoTitle:"",thumbnail_name:""}}}}},isPremiumElement:!1,name:"Video",displayName:"Video Embed",category:"Text",subCategory:"Embed",subCategoryOrder:"2",description:"Video embed component v1",custom:"true",isListed:"true",componentType:"video-embed-v1",isStatic:!1,main:"UI/Video/video.jsx",thumbnail:{src:"https://res.cloudinary.com/dbyioi2qq/q_auto/v1692697983/static/youtubesvg_1692697981_98093.svg"},uniqueId:"Videoklm8",fonts:{},classes:{},functions:{}}},4303:function(t,e,n){"use strict";n.r(e),n.d(e,{errors:function(){return a}});var o=n(7100),r=n(5017);const i={};function a(t=i,e){switch(e.type){case o.errorsConstants.ADD_ERROR:return Object.assign({},t,{errorType:e.payload.type,error:e.payload.error,env:(0,r.returnAPI)()});case o.errorsConstants.REMOVE_ERROR:return Object.assign({},t,{errorType:"",error:""});default:return t}}},7772:function(t,e,n){"use strict";n.r(e),n.d(e,{functions:function(){return a}});var o=n(7100),r=n(8858);const i={data:{functionDefinitions:{}},isFetching:!1,isDeletingFunction:!1};function a(t=i,e){switch(e.type){case r.ju:return{...t,...e.payload.functions};case o.functionConstants.REQUEST_DELETE_FUNCTION:return{...t,isDeletingFunction:!0};case o.functionConstants.SUCCESS_DELETE_FUNCTION:case o.functionConstants.FAILURE_DELETE_FUNCTION:return{...t,isDeletingFunction:!1};case o.functionConstants.FUNCTION_FETCH_REQUEST:return{...t,isFetching:!0};case o.functionConstants.FUNCTION_FETCH_SUCCESS:return{...t,isFetching:!1,data:{functionDefinitions:e.payload}};case o.functionConstants.FUNCTION_FETCH_FAILURE:return{...t,isFetching:!1};case o.functionConstants.REQUEST_CREATE_NEW_FUNCTION:return{...t,isFetching:!0};case o.functionConstants.SUCCESS_CREATE_NEW_FUNCTION:return{...t,isFetching:!1,data:{...t.data,functionDefinitions:{...t.data.functionDefinitions,...e.payload}}};case o.functionConstants.FAILURE_CREATE_NEW_FUNCTION:return{...t,isFetching:!1};case o.functionConstants.REQUEST_UPDATE_FUNCTION:return{...t,isFetching:!0};case o.functionConstants.SUCCESS_UPDATE_FUNCTION:return{...t,isFetching:!1,data:{...t.data,functionDefinitions:{...e.payload}}};case o.functionConstants.FAILURE_UPDATE_FUNCTION:return{...t,isFetching:!1};case o.functionConstants.DELETE_FUNCTION:return{...t};case o.functionConstants.UPDATE_FUNCTION_CONTENT:return{...t,data:{...t.data,functionDefinitions:{...e.payload}}};case o.functionConstants.RESET:return{...i};default:return t}}},778:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return B}});var o=n(5217),r=n(3905),i=n(4399),a=n(6162),s=n(7520),c=n(4303),l=n(2787),u=n(3239),p=n(5558),d=n(1700),f=n(6569),m=n(7772),h=n(5925);const _="@@redux-undo/UNDO",E="@@redux-undo/REDO",g="@@redux-undo/JUMP_TO_FUTURE",y="@@redux-undo/JUMP_TO_PAST",S="@@redux-undo/JUMP",T="@@redux-undo/CLEAR_HISTORY";function C(t,e=[]){return Array.isArray(t)?t:"string"==typeof t?[t]:e}function b(t,e,n,o=null){return{past:t,present:e,future:n,group:o,_latestUnfiltered:e,index:t.length,limit:t.length+n.length+1}}let v,I;const A="#9E9E9E",O="#03A9F4",R="#4CAF50";function P(t,e,n){return[`%c${t}`,`color: ${e}; font-weight: bold`,n]}function U(t,e){I={header:[],prev:[],action:[],next:[],msgs:[]},v&&(console.group?(I.header=["%credux-undo","font-style: italic","action",t.type],I.action=P("action",O,t),I.prev=P("prev history",A,e)):(I.header=["redux-undo action",t.type],I.action=["action",t],I.prev=["prev history",e]))}function w(t){v&&(console.group?I.next=P("next history",R,t):I.next=["next history",t],function(){const{header:t,prev:e,next:n,action:o,msgs:r}=I;console.group?(console.groupCollapsed(...t),console.log(...e),console.log(...o),console.log(...n),console.log(...r),console.groupEnd()):(console.log(...t),console.log(...e),console.log(...o),console.log(...n),console.log(...r))}())}function L(...t){v&&(I.msgs=I.msgs.concat([...t,"\n"]))}function x(t,e){const n=b([],t,[]);return e&&(n._latestUnfiltered=null),n}function D(t,e){if(e<0||e>=t.future.length)return t;const{past:n,future:o,_latestUnfiltered:r}=t;return b([...n,r,...o.slice(0,e)],o[e],o.slice(e+1))}function N(t,e){if(e<0||e>=t.past.length)return t;const{past:n,future:o,_latestUnfiltered:r}=t,i=n.slice(0,e),a=[...n.slice(e+1),r,...o];return b(i,n[e],a)}function F(t,e){return e>0?D(t,e-1):e<0?N(t,t.past.length+e):t}var k=n(7100),M=n(2668),j=n(7450);var B=(0,o.UY)({user:r.user,ui:i.ui,alerts:a.alerts,lens:s.lens,errors:c.errors,cloudinaryImage:l.cloudinaryImage,notifications:u.notifications,admin:p.admin,common:d.common,stateManagement:f.stateManagement,customization:function(t,e={}){!function(t){v=t}(e.debug);const n={limit:void 0,filter:()=>!0,groupBy:()=>null,undoType:_,redoType:E,jumpToPastType:y,jumpToFutureType:g,jumpType:S,neverSkipReducer:!1,ignoreInitialState:!1,syncFilter:!1,...e,initTypes:C(e.initTypes,["@@redux-undo/INIT"]),clearHistoryType:C(e.clearHistoryType,[T])},o=n.neverSkipReducer?(e,n,...o)=>({...e,present:t(e.present,n,...o)}):t=>t;let r;return(e=r,i={},...a)=>{U(i,e);let s,c=e;if(!r){if(L("history is uninitialized"),void 0===e){return c=x(t(e,{type:"@@redux-undo/CREATE_HISTORY"},...a),n.ignoreInitialState),L("do not set initialState on probe actions"),w(c),c}!function(t){return typeof t.present<"u"&&typeof t.future<"u"&&typeof t.past<"u"&&Array.isArray(t.future)&&Array.isArray(t.past)}(e)?(c=r=x(e,n.ignoreInitialState),L("initialHistory initialized: initialState is not a history",r)):(c=r=n.ignoreInitialState?e:b(e.past,e.present,e.future),L("initialHistory initialized: initialState is a history",r))}switch(i.type){case void 0:return c;case n.undoType:return s=F(c,-1),L("perform undo"),w(s),o(s,i,...a);case n.redoType:return s=F(c,1),L("perform redo"),w(s),o(s,i,...a);case n.jumpToPastType:return s=N(c,i.index),L(`perform jumpToPast to ${i.index}`),w(s),o(s,i,...a);case n.jumpToFutureType:return s=D(c,i.index),L(`perform jumpToFuture to ${i.index}`),w(s),o(s,i,...a);case n.jumpType:return s=F(c,i.index),L(`perform jump to ${i.index}`),w(s),o(s,i,...a);case function(t,e){return e.indexOf(t)>-1?t:!t}(i.type,n.clearHistoryType):return s=x(c.present,n.ignoreInitialState),L("perform clearHistory"),w(s),o(s,i,...a);default:if(s=t(c.present,i,...a),n.initTypes.some((t=>t===i.type)))return L("reset history due to init action"),w(r),r;if(c._latestUnfiltered===s)return c;
1if("function"==typeof n.filter&&!n.filter(i,s,c)){const t=b(c.past,s,c.future,c.group);return n.syncFilter||(t._latestUnfiltered=c._latestUnfiltered),L("filter ignored action, not storing it in past"),w(t),t}const e=n.groupBy(i,s,c);if(null!=e&&e===c.group){const t=b(c.past,s,c.future,c.group);return L("groupBy grouped the action with the previous action"),w(t),t}return c=function(t,e,n,o){const r=t.past.length+1;L("inserting",e),L("new free: ",n-r);const{past:i,_latestUnfiltered:a}=t,s=n&&n<=r,c=i.slice(s?1:0);return b(null!=a?[...c,a]:c,e,[],o)}(c,s,n.limit,e),L("inserted new state into history"),w(c),c}}}(h.customization,{undoType:k.customizationConstants.UNDO,redoType:k.customizationConstants.REDO,ignoreInitialState:!0,filter:function(t,e,n){let{past:o,present:r}=n;if([k.customizationConstants.UNDOS_REVISION_UPDATE].includes(t.type)){const t=o[o.length-1];return!t||JSON.stringify(t.data.blueprint)!==JSON.stringify(r.data.blueprint)}},clearHistoryType:k.customizationConstants.RESET_UNDO_STATE}),database:M.database,functions:m.functions,workspace:j.workspace})},7520:function(t,e,n){"use strict";n.r(e),n.d(e,{lens:function(){return i}});var o=n(7100);const r={fetching:!1,stories:[],cardContent:{},popularStories:{stories:[{author:{},title:"",slug:"",readTime:"",content:{}},{author:{},title:"",slug:"",readTime:"",content:{}},{author:{},title:"",slug:"",readTime:"",content:{}},{author:{},title:"",slug:"",readTime:"",content:{}},{author:{},title:"",slug:"",readTime:"",content:{}}],count:0,isFetching:!1},popularTags:{tags:[],count:0,isFetching:!1},initialFetchTime:Date.now(),count:0,searchResults:{stories:[],count:0,totalCount:0,isFetching:!1},searchText:"",pageLocation:""};function i(t=r,e){switch(e.type){case o.lensConstants.SUCCESS_FETCH_CARD_CONTENT:return{...t,cardContent:{...t.cardContent,[e.payload.parameter]:[...t.cardContent[e.payload.parameter]?t.cardContent[e.payload.parameter]:[],...e.payload.data]}};case o.lensConstants.STORE_LOCATION:return{...t,pageLocation:e.payload};case o.lensConstants.FETCH_REQUEST:return Object.assign({},t,{fetching:!0});case o.lensConstants.FETCH_SUCCESS:return Object.assign({},t,{fetching:!1,stories:[...t.stories,...e.payload],count:t.count+e.payload.length});case o.lensConstants.FETCH_FAILURE:return Object.assign({},t,{fetching:!1});case o.lensConstants.REQUEST_FETCH_POPULAR_STORIES:return Object.assign({},t,{popularStories:{...t.popularStories,isFetching:!0}});case o.lensConstants.SUCCESS_FETCH_POPULAR_STORIES:return Object.assign({},t,{popularStories:{...t.popularStories,isFetching:!1,stories:e.payload,count:e.payload.length}});case o.lensConstants.FAILURE_FETCH_POPULAR_STORIES:return Object.assign({},t,{popularStories:{...t.popularStories,isFetching:!1}});case o.lensConstants.REQUEST_FETCH_POPULAR_TAGS:return Object.assign({},t,{popularTags:{isFetching:!0}});case o.lensConstants.SUCCESS_FETCH_POPULAR_TAGS:return Object.assign({},t,{popularTags:{...t.popularTags,isFetching:!1,tags:[...e.payload],count:t.popularTags.count+e.payload.length}});case o.lensConstants.FAILURE_FETCH_POPULAR_TAGS:return Object.assign({},t,{popularTags:{isFetching:!1}});case o.lensConstants.CLEAR_STORYLIST:return Object.assign({},t,{stories:[]});case o.lensConstants.SEARCH_REQUEST:return{...t,searchResults:{...t.searchResults,isFetching:!0}};case o.lensConstants.SEARCH_SUCCESS:return{...t,searchResults:{...t.searchResults,isFetching:!1,stories:[...t.searchResults.stories,...e.payload.data],count:t.searchResults.count+e.payload.count,totalCount:e.payload.totalCount?e.payload.totalCount:t.searchResults.totalCount}};case o.lensConstants.SEARCH_FAILURE:return{...t,searchResults:{...t.searchResults,isFetching:!1}};case o.lensConstants.CLEAR_SEARCH_RESULTS:return{...t,searchResults:{...r.searchResults}};case o.lensConstants.SUCCESS_STORY_LIKE:{const n=t.stories.map((t=>t._id===e.payload.storyId?{...t,likesCount:t.likesCount+1,likes:[...t.likes,{userId:e.payload.userId}],isLiked:!0}:t));return{...t,stories:n}}case o.lensConstants.SUCCESS_STORY_UNLIKE:{const n=t.stories.map((t=>{if(t._id===e.payload.storyId){let n=t.likes.filter((t=>t.userId!==e.payload.userId));return{...t,likesCount:t.likesCount-1,likes:n,isLiked:!1}}return t}));return{...t,stories:n}}case o.lensConstants.SUCCESS_STORY_ADD_BOOKMARK:{const n=t.stories.map((t=>t._id===e.payload.storyId?{...t,bookmarksCount:t.bookmarksCount+1,bookmarks:[...t.bookmarks,{userId:e.payload.userId}],isBookmarked:!0}:t));return{...t,stories:n}}case o.lensConstants.SUCCESS_STORY_REMOVE_BOOKMARK:{const n=t.stories.map((t=>{if(t._id===e.payload.storyId){let n=t.bookmarks.filter((t=>t.userId!==e.payload.userId));return{...t,bookmarksCount:t.bookmarksCount-1,bookmarks:n,isBookmarked:!1}}return t}));return{...t,stories:n}}case o.lensConstants.CLEAR_TAG_RESULTS:return Object.assign({},t,{searchByTagResults:{count:0,stories:[]}});default:return t}}},3239:function(t,e,n){"use strict";n.r(e),n.d(e,{notifications:function(){return i}});var o=n(9346);
1const r={isFetching:!1,data:[],count:0,unreadCount:0,totalCount:0};function i(t=r,e){switch(e.type){case o.notificationsConstants.REQUEST_NOTIFICATIONS:return{...t,isFetching:!0};case o.notificationsConstants.SUCCESS_NOTIFICATIONS:return{...t,data:[...t.data,...e.payload.data],count:t.count+e.payload.data.length,unreadCount:e.payload.unreadCount,isFetching:!1,totalCount:20};case o.notificationsConstants.FAILURE_NOTIFICATIONS:return{...t,isFetching:!1};case o.notificationsConstants.REQUEST_READ_NOTIFICATION:return{...t,isReading:!0};case o.notificationsConstants.SUCCESS_READ_NOTIFICATION:{const n=t.data.map(((n,o)=>n._id===e.payload?(t.data[o].read=!0,t.data[o]):t.data[o]));return{...t,data:n,unreadCount:t.unreadCount-1,isReading:!1}}case o.notificationsConstants.FAILURE_READ_NOTIFICATION:return{...t,isReading:!1};case o.notificationsConstants.REQUEST_UNREAD_NOTIFICATION:return{...t,isReading:!0};case o.notificationsConstants.SUCCESS_UNREAD_NOTIFICATION:{const n=t.data.map(((n,o)=>n._id===e.payload?(t.data[o].read=!1,t.data[o]):t.data[o]));return{...t,data:n,isReading:!1,unreadCount:t.unreadCount+1}}case o.notificationsConstants.FAILURE_UNREAD_NOTIFICATION:return{...t,isReading:!1};case o.notificationsConstants.REQUEST_READ_ALL_NOTIFICATIONS:return{...t,isReading:!0};case o.notificationsConstants.SUCCESS_READ_ALL_NOTIFICATIONS:{const e=t.data.map(((e,n)=>(t.data[n].read=!0,t.data[n])));return{...t,data:e,isReading:!1,unreadCount:0}}case o.notificationsConstants.FAILURE_READ_ALL_NOTIFICATIONS:return{...t,isReading:!1};default:return t}}},6569:function(t,e,n){"use strict";n.r(e),n.d(e,{stateManagement:function(){return i}});var o=n(7100);const r={global:{}};function i(t=r,e){switch(e.type){case o.stateManagementConstants.LOAD_INITIAL_STATE:return{...t,...e.payload};case o.stateManagementConstants.ADD_STATE:return{...t,[e.payload.parent]:{[e.payload.key]:{value:""}}};case o.stateManagementConstants.UPDATE_STATE:return{...t,[e.payload.parent]:{...t[e.payload.parent],[e.payload.key]:{value:e.payload.value}}};case o.stateManagementConstants.DELETE_STATE:{let n=t[e.payload.parent];return delete n[e.payload.key],{...t,[e.payload.parent]:n}}case o.stateManagementConstants.UPDATE_INDIVIDUAL_ITEM:return{...t,[e.payload.itemKey]:e.payload.itemValue};default:return t}}},4399:function(t,e,n){"use strict";n.r(e),n.d(e,{ui:function(){return s}});var o=n(8858),r=n(6160),i=n(7100);const a={authenticationModalVisibility:!1,authenticationModalTab:"login",navigationDropdownMenu:!1,signupModalWithMessage:!1,signupModalMessage:"",statsModalWindow:!1,searchButtonVisible:!1,draftPublishConfirmationModal:!1,isFeaturedImageVisible:!1,mobileSideNav:!1,screenView:"",screenWidth:0,showPremiumModal:!1,isElementOutlineVisible:!1,currentBookmarkInnerTabKey:r.builderConstants.BOOKMARK_LINKEDCOMPONENT_TAB,isGeneralLoading:!1,currentDBTab:r.builderConstants.DB_TAB_APP_DATA,currentAppSettingsTab:r.builderConstants.APP_SETTINGS_TAB_GENERAL,isInitalLoadingDone:!1,loaderMessage:"Starting up your project",loaderIndefinite:!1,isPublishingSiteLoadingStatus:!1,showCreateTableModal:!1,showAddDataModal:!1,deleteTableAlert:"",dockSidebarActiveMenu:"templates",customizationIsUpdating:!1,moveElementState:{},currentWorkspaceTab:"",showCustomComponentStyleModal:!1,showPricingModal:!1,showPricingIframeModal:!1,showChooseProjectForUpgradeModal:!1,showSaveAndPublishPopupPlayground:!1,showElementFloatingPopup:!1,showReferralPopup:!1,doubleClickedPosition:{left:0,top:0,isDragging:!1,offsetX:0,offsetY:0},showFeatureUpdateModalFromBuilder:!1,componentEditPanelInnerTabKey:"design",dragStatus:!1,viewSetFromSSR:"",showGeneratePageModal:!1,showExitModal:!1,showSyncChangesModal:!1,hoverElementPositionData:!1,v:!1,triggerDoubleClick:!1,triggerShiftUpOrDown:!1,isLegacyFormUpdating:{},rightSideEditPopupType:"",showAICompanionPopup:!1,aiCompanionPopupMinimized:!1,aiCompanionPrompt:null,addElementFlag:!1,addElementFlagOptions:{},isHoveringInsideForElementAddition:!1,addElementFromCanvasBodyFlag:!1,playgroundSavingFlag:!1,pricingModalCaseItem:"",aiFailureAttempt:0,projectAssets:[],projectImages:[],project
1Videos:[],deletedImageUrl:null,isDeletingImage:!1,totalImages:0,photosPanelMode:"normal",photosPanelLoading:!1,hideThemeVariables:!1,showSelectEditModeModal:!1,showPublishPopup:!1,commandPaletteOpen:!1,commandPaletteState:"initial",commandPaletteStep:0,aiCommandInput:"",isPaddingDragging:!1,cmsFields:{entries:{},inFlight:{}},dynamicListBuilderForce:{}};function s(t=a,e){switch(e.type){case o.ju:return{...t,...e.payload.ui};case i.uiConstants.SET_HIDE_THEME_VARIABLES:return{...t,hideThemeVariables:e.payload};case i.uiConstants.UI_RESET:return{...t,isDeletingImage:!1,deletedImageUrl:null,totalImages:0,projectAssets:[],projectImages:[],projectVideos:[],photosPanelMode:"normal",photosPanelLoading:!1,dynamicListBuilderForce:{},showAICompanionPopup:!1,aiCompanionPopupMinimized:!1,rightSideEditPopupType:"",aiCompanionPrompt:null,loaderMessage:"Starting up your project",isInitalLoadingDone:!1,loaderIndefinite:!1};case i.uiConstants.IS_DELETING_IMAGE:return{...t,isDeletingImage:e.payload};case i.uiConstants.DELETE_IMAGE_REQUEST:return{...t,deletedImageUrl:e.payload};case i.uiConstants.RESET_DELETED_IMAGE:return{...t,deletedImageUrl:null};case i.uiConstants.UPDATE_TOTAL_IMAGES:return{...t,totalImages:e.payload};case i.uiConstants.SET_PROJECT_ASSETS:return{...t,projectAssets:e.payload};case i.uiConstants.SET_PHOTOS_PANEL_MODE:return{...t,photosPanelMode:e.payload};case i.uiConstants.SET_PHOTOS_PANEL_LOADING:return{...t,photosPanelLoading:e.payload};case i.uiConstants.APPEND_PROJECT_ASSET:{const{asset:n}=e.payload;let o=t;return o=n.mime_type?.startsWith("video")?{...t,projectVideos:[n,...t.projectVideos],projectAssets:[n,...t.projectAssets]}:!n.mime_type||n.mime_type?.startsWith("image")?{...t,projectImages:[n,...t.projectImages],projectAssets:[n,...t.projectAssets]}:{...t,projectAssets:[n,...t.projectAssets]},o}case i.uiConstants.UPDATE_STORAGE_INFO:return{...t,fileStorageInfo:e.payload};case i.uiConstants.SET_RIGHT_SIDE_EDIT_POPUP_TYPE:return{...t,rightSideEditPopupType:e.payload};case i.uiConstants.SET_SHOW_AI_COMPANION_POPUP:return{...t,showAICompanionPopup:e.payload};case i.uiConstants.SET_AI_COMPANION_POPUP_MINIMIZED:return{...t,aiCompanionPopupMinimized:e.payload};case i.uiConstants.SEND_TO_AI_COMPANION_PROMPT:return{...t,aiCompanionPrompt:e.payload};case i.uiConstants.TRIGGER_SHIFT_UP_OR_DOWN:return{...t,triggerShiftUpOrDown:e.payload};case i.uiConstants.TRIGGER_DOUBLE_CLICK:return{...t,triggerDoubleClick:e.payload};case i.uiConstants.SET_SHOW_ELEMENT_FLOATING_POPUP:return{...t,showElementFloatingPopup:e.payload};case i.uiConstants.SET_PLAYGROUND_SAVING_FLAG:return{...t,playgroundSavingFlag:e.payload};case i.uiConstants.SET_IS_HOVERING_INSIDE_FOR_ELEMENT_ADDITION:return{...t,isHoveringInsideForElementAddition:e.payload};case i.uiConstants.SET_ADD_ELEMENT_HELPER_IDS:return{...t,addElementHelperStartId:e.payload.startId,addElementHelperEndId:e.payload.endId};case i.uiConstants.SET_ADD_ELEMENT_FLAG:return{...t,addElementFlag:e.payload,addElementFlagOptions:e.options};case i.uiConstants.SET_ADD_ELEMENT_FROM_CANVAS_BODY_FLAG:return{...t,addElementFromCanvasBodyFlag:e.payload};case i.uiConstants.SHOW_SYNC_CHANGES_MODAL:return{...t,showSyncChangesModal:e.payload};case i.uiConstants.SET_LEGACY_FORM_UPDATING:return{...t,isLegacyFormUpdating:{...t.isLegacyFormUpdating,[e.payload.clientId]:e.payload.val}};case i.uiConstants.SHOW_ADVANCED_OPTIONS:return{...t,showAdvancedOptions:!t.showAdvancedOptions};case i.uiConstants.UPDATE_HOVER_ELEMENT_POSITION_DATA:return{...t,hoverElementPositionData:e.payload};case i.uiConstants.SET_AI_SIDE_BAR_STATUS:return{...t,aiSidebarStatus:e.payload};case i.uiConstants.GRID_LAYOUT_CHILD_UPDATE_REQUIRED:return{...t,gridLayoutChildUpdateRequired:e.payload};case i.uiConstants.LAYOUT_SHIFT_REQUIRED:return{...t,layoutShiftRequired:e.payload};case i.uiConstants.SET_RIGHT_CLICK_SIDE_MENU_STATUS:return{...t,rightClickSideMenuStatus:e.payload.status,rightClickSideMenuPosition:e.payload.position};case i.uiConstants.SET_DRAG_STATUS:return{...t,dragStatus:e.payload};case i.uiConstants.SET_IS_FLEX_RESIZE:return{...t,isFlexResize:e.payload};case i.uiConstants.SET_IS_RESIZING_START:return{...t,isResizing:!0};case i.uiConstants.SET_IS_RESIZING_STOP:return{...t,isResizing:!1};case i.uiConstants.TOGGLE_BUILDER_CONTEXT_MENU_VISIBILITY:return{...t,builderContextMenuVisibility:e.payload};case"VIEW_SET_FROM_SERVER_SIDE_RENDER":return{...t,viewSetFromSSR:e.payload};case i.uiConstants.SET_COMPONENT_EDIT_PANEL_INNER_TAB_KEY:return{...t,componentEditPanelInnerTabKey:e.payload};case i.uiConstants.SHOW_FEATURE_UPDATE_MODAL_FROM_BUILDER:return{...t,showFeatureUpdateModalFromBuilder:e.payload};case i.uiConstants.SET_DOUBLE_CLICKED_POSITION:return{...t,doubleClickedPosition:e.payload};case i.uiConstants.HIDE_ALL_EDIT_POPUPS:return{...t,showElementFloatingPopup:!1,doubleClickedPosition:a.doubleClickedPosition};case i.uiConstants.REQUEST_CREATE_ORDER_LINK:return{...t,isOrderLinkLoading:!0};case i.uiConstants.SUCCESS_CREATE_ORDER_LINK:case i.uiConstants.FAILURE_CREATE_ORDER_LINK:return{...t,isOrderLinkLoading:!1};case i.uiConstants.SHOW_SAVE_AND_PUBLISH_POPUP_IN_PLAYGROUND:return{...t,showSaveAndPublishPopupPlayground:e.payload};case i.uiConstants.SHOW_CHOOSE_PROJECT_FOR_UPGRADE_MODAL:return{...t,showChooseProjectForUpgradeModal:e.payload};case i.uiConstants.SHOW_PRICING_MODAL:return{...t,showPricingModal:e.payload,pricingModalCaseItem:e.caseItem,hidePricingModalLicenseAssignment:e.hideLicenseAssignment};case i.uiConstants.SHOW_PRICING_IFRAME_MODAL:return{...t,showPricingIframeModal:e.payload};case i.uiConstants.SHOW_CUSTOM_COMPONENT_STYLE_MODAL:return{...t,showCustomComponentStyleModal:e.payload};case i.uiConstants.SWITCH_WORKSPACE:return{...t,currentWorkspaceTab:e.payload};case i.uiConstants.UPDATE_MOVE_ELEMENT_STATE:return{...t,moveElementState:e.payload};case i.uiConstants.ELEMENT_COLLIDING_WITH_BREADCRUMBS:return{...t,elementCollidingWithBreadcrumbs:e.payload};case i.uiConstants.CUSTOMIZATION_IS_UPDATING_FLAG:return{...t,customizationIsUpdating:e.payload};case i.uiConstants.SET_DOCK_SIDEBAR_ACTIVE_MENU:return{...t,dockSidebarActiveMenu:e.payload};case i.uiConstants.SET_DRAG_SORTED_LAYOUTS:return{...t,draggingState:{...e.payload}};case i.uiConstants.SET_DELETE_FUNCTION_ALERT:return{...t,deleteFunctionAlert:e.payload};case i.uiConstants.SET_DELETE_ROW_ALERT:return{...t,deleteRowAlert:e.payload};case i.uiConstants.SET_DELETE_TABLE_ALERT:return{...t,deleteTableAlert:e.payload};case i.uiConstants.SET_SHOW_ADD_DATA_MODAL:return{...t,showAddDataModal:e.payload};case i.uiConstants.SET_SHOW_CREATE_TABLE_MODAL:return{...t,showCreateTableModal:e.payload};case i.uiConstants.SET_PUBLISH_SITE_LOADING_STATUS:return{...t,isPublishingSiteLoadingStatus:e.payload};case i.uiConstants.SET_INITIAL_LOADING_STATUS:return{...t,isInitalLoadingDone:e.payload};case i.uiConstants.SET_LOADER_MESSAGE:return{...t,loaderMessage:e.payload};case i.uiConstants.SET_LOADER_INDEFINITE:return{...t,loaderIndefinite:e.payload};
1case i.uiConstants.CHANGE_APP_SETTINGS_TAB:return{...t,currentAppSettingsTab:e.payload};case i.uiConstants.CHANGE_DB_TAB:return{...t,currentDBTab:e.payload};case i.uiConstants.TOGGLE_IS_LOADING:return{...t,isGeneralLoading:e.payload};case i.uiConstants.TOGGLE_BOOKMARK_INNER_TAB:return{...t,currentBookmarkInnerTabKey:e.payload};case i.uiConstants.SET_ELEMENT_OUTLINE_VISIBILITY:return{...t,isElementOutlineVisible:e.payload};case i.uiConstants.SET_PREMIUM_MODAL:return{...t,showPremiumModal:e.payload};case i.uiConstants.SET_GUEST_MODAL:return{...t,showGuestModal:e.payload};case i.uiConstants.SET_PLAYGROUND_MODAL:return{...t,showPlaygroundModal:e.payload,playgroundModalCaseItem:e.caseItem};case i.uiConstants.SET_SELECT_EDIT_MODE_MODAL:return{...t,showSelectEditModeModal:e.payload};case i.uiConstants.SET_SHOW_PUBLISH_POPUP:return{...t,showPublishPopup:e.payload};case i.uiConstants.TOGGLE_AUTHENTICATION_MODAL_VISIBILITY:return Object.assign({},t,{authenticationModalVisibility:!t.authenticationModalVisibility});case i.uiConstants.SWITCH_AUTHENTICATION_MODAL_TABS:return Object.assign({},t,{authenticationModalTab:e.name});case i.uiConstants.CLEAR_AUTHENTICATION_MODAL_TABS:return Object.assign({},t,{authenticationModalTab:"login"});case i.uiConstants.TOGGLE_NAVIGATION_DROPDOWN_MENU:return Object.assign({},t,{navigationDropdownMenu:!t.navigationDropdownMenu});case i.uiConstants.CLEAR_DROPDOWN_STATE:return Object.assign({},t,{navigationDropdownMenu:!1});case i.uiConstants.TOGGLE_SIGNUP_MODAL:return Object.assign({},t,{signupModalWithMessage:!t.signupModalWithMessage,signupModalMessage:e.message});case i.uiConstants.CLEAR_SIGNUP_MODAL_MESSAGE:return Object.assign({},t,{signModalMessage:""});case i.uiConstants.TOGGLE_STATS_MODAL_WINDOW:return Object.assign({},t,{statsModalWindow:!t.statsModalWindow});case i.uiConstants.TOGGLE_SEARCH_BUTTON:return Object.assign({},t,{searchButtonVisible:!t.searchButtonVisible});case i.uiConstants.TOGGLE_DRAFT_PUBLISH_MODAL:return Object.assign({},t,{draftPublishConfirmationModal:!t.draftPublishConfirmationModal});case i.uiConstants.TOGGLE_SIDE_NAV:return Object.assign({},t,{mobileSideNav:!t.mobileSideNav});case i.uiConstants.SET_SCREEN_VIEW:return Object.assign({},t,{screenView:e.payload.view,screenWidth:e.payload.width});case i.uiConstants.TOGGLE_SETTINGS_CONTEXT_ALERT_BOX:return{...t,showSettingsContextAlertBox:e.payload};case i.uiConstants.SHOW_GENERATE_PAGE_MODAL:return{...t,showGeneratePageModal:e.payload};case i.uiConstants.SHOW_PAYMENT_POPUP:return{...t,showPaymentPopup:e.payload};case i.uiConstants.UPDATING_EMAIL_NOTIFY:return{...t,updatingEmailNotify:e.payload};case i.uiConstants.SHOW_EXIT_MODAL:return{...t,showExitModal:e.payload};case i.uiConstants.SET_IS_HOVERING_ON_PLUS_FOR_ELEMENT_ADDITION:return{...t,isHoveringOnPlusForElementAddition:e.payload};case i.uiConstants.IS_PADDING_DRAGGING:return{...t,isPaddingDragging:e.payload};case i.uiConstants.SET_AI_FAILURE_ATTEMPT:return{...t,aiFailureAttempt:null!==e.payload?e.payload:t.aiFailureAttempt+1};case i.uiConstants.TOGGLE_REFERRAL_POPUP:return{...t,showReferralPopup:void 0!==e.payload?e.payload:!t.showReferralPopup};case i.uiConstants.SET_PROJECT_IMAGES:return{...t,projectImages:e.payload};case i.uiConstants.SET_PROJECT_VIDEOS:return{...t,projectVideos:e.payload};case i.uiConstants.OPEN_COMMAND_PALETTE:return{...t,commandPaletteOpen:!0,commandPaletteState:"initial",commandPaletteStep:0};case i.uiConstants.CLOSE_COMMAND_PALETTE:return{...t,commandPaletteOpen:!1};case i.uiConstants.SET_COMMAND_PALETTE_STATE:return{...t,commandPaletteState:e.payload};case i.uiConstants.SET_COMMAND_PALETTE_STEP:return{...t,commandPaletteStep:e.payload};case i.uiConstants.SET_AI_COMMAND_INPUT:return{...t,aiCommandInput:e.payload};case i.uiConstants.CMS_FIELDS_REQUEST:{const{cacheKey:n}=e.payload,o=t.cmsFields||{entries:{},inFlight:{}};return{...t,cmsFields:{...o,inFlight:{...o.inFlight,[n]:!0}}}}case i.uiConstants.CMS_FIELDS_SUCCESS:{const{cacheKey:n,fields:o}=e.payload,r=t.cmsFields||{entries:{},inFlight:{}},i={...r.inFlight};return delete i[n],{...t,cmsFields:{entries:{...r.entries,[n]:{loaded:!0,fields:o||[],error:null}},inFlight:i}}}case i.uiConstants.CMS_FIELDS_FAILURE:{const{cacheKey:n,error:o}=e.payload,r=t.cmsFields||{entries:{},inFlight:{}},i={...r.inFlight};return delete i[n],{...t,cmsFields:{entries:{...r.entries,[n]:{loaded:!0,fields:[],error:o||"Failed to load"}},inFlight:i}}}case i.uiConstants.CMS_FIELDS_RESET:return{...t,cmsFields:{entries:{},inFlight:{}}};case i.uiConstants.SET_DYNAMIC_LIST_BUILDER_FORCE:{const{listId:n,forceEmpty:o,forceError:r}=e.payload||{};if(!n)return t;const i={...t.dynamicListBuilderForce||{}},a=i[n]||{forceEmpty:!1,forceError:!1},s={forceEmpty:void 0!==o?!!o:a.forceEmpty,forceError:void 0!==r?!!r:a.forceError};return s.forceEmpty||s.forceError?i[n]=s:delete i[n],{...t,dynamicListBuilderForce:i}}default:return t}}},3905:function(t,e,n){"use strict";n.r(e),n.d(e,{user:function(){return i}});var o=n(7100);const r={userTokenVerified:!1,data:{socialLinks:{facebook:"",linkedin:"",twitter:""},isAdmin:"",_id:"",emailVerification:{isEmailVerified:!1},temporaryPasswordGenerated:!1,exportNumber:0,order:{timestamps:{}},referrals:[]},currentLocation:{},isVerifying:!1,deleteStatus:"",isDeleting:!1,deleted:!1,isReporting:!1,userReportMessage:null,isConfirming:!1,isRequestingTempPassword:!1,isRequestingOtp:!1,isRegistering:!1,isLoggingIn:!1,isCreatingOrder:!1,isFetchingReferrals:!1,tourTimers:{playground:1e4}};function i(t=r,e){switch(e.type){case o.userConstants.REQUEST_VALIDATE_SOCIAL_REFER_FOR_AI:return{...t,data:{...t.data,socialReferForAI:{...t.data.socialReferForAI,error:""}}};case o.userConstants.SUCCESS_VALIDATE_SOCIAL_REFER_FOR_AI:{const{user:n}=e;return{...t,data:{...t.data,socialReferForAI:{...t.data.socialReferForAI,...n}}}}case o.userConstants.FAILURE_VALIDATE_SOCIAL_REFER_FOR_AI:return{...t,data:{...t.data,socialReferForAI:{...t.data.socialReferForAI,...e.payload}}};case o.userConstants.IS_PART_OF_CODE_DESIGN_TEAM:return{...t,isCodeDe
1signTeam:e.payload};case o.userConstants.REQUEST_UPDATE_USER_DATA:return{...t};case o.userConstants.SUCCESS_UPDATE_USER_DATA:return{...t,data:{...t.data,...e.user}};case o.userConstants.FAILURE_UPDATE_USER_DATA:return{...t};case o.userConstants.UPDATE_EXPORT_CODE_COUNT:return{...t,data:{...t.data,exportNumber:t.data.exportNumber+1}};case o.userConstants.REGISTER_REQUEST:return{...t,isRegistering:!0};case o.userConstants.REGISTER_SUCCESS:return{...t,isRegistering:!1,data:{...t.data,...e.user}};case o.userConstants.REGISTER_FAILURE:return{...t,isRegistering:!1};case o.userConstants.LOGIN_REQUEST:return{...t,isLoggingIn:!0};case o.userConstants.LOGIN_SUCCESS:{let n=e.user;return n?{...t,isLoggingIn:!1,userTokenVerified:!0,data:{...t.data,...n}}:{...t,isLoggingIn:!1}}case o.userConstants.LOGIN_FAILURE:return{...t,isLoggingIn:!1};case o.userConstants.VERIFY_USER:return{...t,isVerifying:!0};case o.userConstants.VERIFICATION_SUCCESS:return Object.assign({},t,{isVerifying:!1,userTokenVerified:!0,data:e.user,currentLocation:e.currentLoaction});case o.userConstants.VERIFICATION_FAILURE:return Object.assign({},t,{isVerifying:!1,userTokenVerified:!1});case o.userConstants.REQUEST_OTP:return{...t,isRequestingOtp:!0};case o.userConstants.SUCCESS_OTP:return{...t,isRequestingOtp:!1,data:{...e.user}};case o.userConstants.FAILURE_OTP:return{...t,isRequestingOtp:!1};case o.userConstants.LOGOUT:return Object.assign({},t,{isVerifying:!1,userTokenVerified:!1,data:{}});case o.userConstants.FETCH_USER:return Object.assign({},t,{isFetching:!0});case o.userConstants.SUCCESS_FETCH_USER:return Object.assign({},t,{isFetching:!1,author:e.payload});case o.userConstants.FAILURE_FETCH_USER:return Object.assign({},t,{isFetching:!1});case o.userConstants.SAVE_USER:return Object.assign({},t,{isFetching:!0});case o.userConstants.SUCCESS_SAVE_USER:return Object.assign({},t,{isFetching:!1,data:e.user});case o.userConstants.FAILURE_SAVE_USER:return Object.assign({},t,{isFetching:!1});case o.userConstants.REQUEST_DELETE_USER:return{...t,isDeleting:!0};case o.userConstants.SUCCESS_DELETE_USER:return{...t,isDeleting:!1,deleted:!0,deleteStatus:e.payload};case o.userConstants.FAILURE_DELETE_USER:return{...t,isDeleting:!1,deleted:!1,deleteStatus:e.payload};case o.userConstants.REPORT_USER:return Object.assign({},t,{isReporting:!0});case o.userConstants.REPORT_USER_SUCCESS:case o.userConstants.REPORT_USER_FAILURE:return Object.assign({},t,{isReporting:!1,userReportMessage:e.payload});case o.userConstants.CLEAR_USER_REPORT_MESSAGE:return Object.assign({},t,{userReportMessage:null});case o.userConstants.REQUEST_FORGOT_PASSWORD:return Object.assign({},t,{isRequestingTempPassword:!0});case o.userConstants.SUCCESS_FORGOT_PASSWORD:case o.userConstants.FAILURE_FORGOT_PASSWORD:return Object.assign({},t,{isRequestingTempPassword:!1});case o.userConstants.REQUEST_CONFIRM_PASSWORD:return Object.assign({},t,{isConfirming:!0});case o.userConstants.SUCCESS_CONFIRM_PASSWORD:case o.userConstants.FAILURE_CONFIRM_PASSWORD:return Object.assign({},t,{isConfirming:!1});case o.userConstants.REQUEST_CREATE_ORDER:return{...t,isCreatingOrder:!0};case o.userConstants.SUCCESS_CREATE_ORDER:return{...t,isCreatingOrder:!1,data:{...t.data,order:e.payload}};case o.userConstants.FAILURE_CREATE_ORDER:return{...t,isCreatingOrder:!1};case o.userConstants.SUCCESS_VERIFY_ORDER:return{...t,data:{...t.data,order:e.payload}};case o.userConstants.REQUEST_REFERRAL_LIST:return{...t,isFetchingReferrals:!0};case o.userConstants.SUCCESS_REFERRAL_LIST:return{...t,isFetchingReferrals:!1,data:{...t.data,referrals:e.user}};case o.userConstants.FAILURE_REFERRAL_LIST:return{...t,isFetchingReferrals:!1};case o.userConstants.UPDATE_TOUR_TIMER:return{...t,tourTimers:{...t.tourTimers,[e.payload.tour]:e.payload.timer}};default:return t}}},7484:function(t,e,n){"use strict";n.r(e),n.d(e,{postData:function(){return o},cardData:function(){return r}});const o={meta:{title:"Sample Post - The Psychology Behind Great Web Design",description:"This is a sample post content. A beautiful website is more than just colors, typography, and layout \u2014 it\u2019s an experience carefully crafted to connect..."},twitterCard:{title:"Sample Post - The Psychology Behind Great Web Design",description:"This is a sample post content. A beautiful website is more than just colors, typography, and layout \u2014 it\u2019s an experience carefully crafted to connect...",image:"https://assets-v2.codedesign.ai/storage/v1/object/public/68ecfea6da45926f3c0f1bb3_a14ca
1d9a/_blog/asset-c22aa996"},facebookCard:{title:"Sample Post - The Psychology Behind Great Web Design",description:"This is a sample post content. A beautiful website is more than just colors, typography, and layout \u2014 it\u2019s an experience carefully crafted to connect...",image:"https://assets-v2.codedesign.ai/storage/v1/object/public/68ecfea6da45926f3c0f1bb3_a14cad9a/_blog/asset-c22aa996"},codeInjection:{header:"",footer:""},title:"Sample Post - The Psychology Behind Great Web Design",slug:"sample-post-the-psychology-behind-great-web-design",content:'<p class="cdb-paragraph">This is a sample post content. A beautiful website is more than just colors, typography, and layout \u2014 it\u2019s an <em class="cdb-text-italic">experience</em> carefully crafted to connect with the human mind. Great web design is rooted in <strong class="cdb-text-bold">psychology</strong> \u2014 the science of understanding how users think, behave, and feel when interacting with digital interfaces. Whether you\u2019re designing an e-commerce store, a business website, or a personal portfolio, knowing what triggers attention, trust, and emotion can transform your design from functional to unforgettable.</p><h2 class="cdb-h2">1. <strong class="cdb-text-bold">Why Psychology Matters in Web Design</strong></h2><p class="cdb-paragraph">A website isn\u2019t just about what it looks like; it\u2019s about how it <em class="cdb-text-italic">feels</em>. Every element \u2014 from the placement of a button to the choice of color \u2014 influences how users perceive and interact with it.</p><h3 class="cdb-h3">Key Psychological Drivers in Web Design:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Cognitive Ease:</strong> People prefer experiences that feel effortless and intuitive.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Trust and Credibility:</strong> Design elements subconsciously influence how trustworthy a site appears.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Emotional Response:</strong> Colors, imagery, and tone shape how users feel.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Decision-Making Cues:</strong> Well-designed layouts guide users naturally toward action.</p></li></ul><blockquote class="cdb-blockquote"><p class="cdb-paragraph"><strong class="cdb-text-bold">\u201cDesign is not just what it looks like and feels like. Design is how it works.\u201d \u2013 Steve Jobs</strong></p></blockquote><p class="cdb-paragraph">When your website aligns with the way people think and behave, engagement, retention, and conversions all improve.</p><h2 class="cdb-h2">2. <strong class="cdb-text-bold">The First Impression Effect</strong></h2><p class="cdb-paragraph">It takes about <strong class="cdb-text-bold">0.05 seconds</strong> for users to form an opinion about your website. That first impression is almost entirely visual.</p><h3 class="cdb-h3">Factors That Influence First Impressions:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Visual Hierarchy:</strong> How easily users can identify what\u2019s important.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Color Palette:</strong> Creates mood and affects emotion.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Whitespace:</strong> Makes content feel approachable and readable.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Load Speed:</strong> A slow website subconsciously signals inefficiency.</p></li></ul><p class="cdb-paragraph">A cluttered or confusing layout increases <em class="cdb-text-italic">cognitive load</em>, making users leave before exploring. Simplicity and clarity create instant appeal and trust.</p><p class="cdb-paragraph"></p><p class="cdb-paragraph"></p><h2 class="cdb-h2">3. <strong class="cdb-text-bold">Color Psychology: Speaking to Emotion</strong></h2><p class="cdb-paragraph">Colors communicate faster than words. Each color triggers specific emotions and associations, influencing user perception and decision-making.</p><h3 class="cdb-h3">Common Color Associations:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Blue:</strong> Trust, calmness, and professionalism (used by banks and tech brands).</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Red:</strong> Excitement, urgency, or passion (great for sales or CTAs).</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Green:</strong> Growth, balance, and nature (perfect for eco or wellness brands).</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Yellow:</strong> Optimism and creativity, but overuse can cause anxiety.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Black:</strong> Sophistication and luxury.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">White:</strong> Simplicity and cleanliness.</p></li></ul><blockquote class="cdb-blockquote"><p class="cdb-paragraph"><strong class="cdb-text-bold">Tip:</strong> Use color contrast to draw attention to important elements, like CTA buttons or special offers.</p></blockquote><p class="cdb-paragraph">The right color combination not only makes your site attractive but also emotionally aligns with your brand\u2019s message.</p><h2 class="cdb-h2">4. <strong class="cdb-text-bold">The Principle of Visual Hierarchy</strong></h2><p class="cdb-paragraph">Humans naturally scan information in patterns \u2014 usually <strong class="cdb-text-bold">F-shaped</strong> or <strong class="cdb-text-bold">Z-shaped</strong> layouts. Designers can use this to guide users\u2019 attention.</p><h3 class="cdb-h3">How to Apply Visual Hierarchy:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph">Place key elements (like headlines and CTAs) along the eye\u2019s scanning path.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Use <strong class="cdb-text-bold">size, contrast, and spacing</strong> to make important items stand out.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Highlight one primary action per section to avoid decision fatigue.</p></li></ul><p class="cdb-paragraph">A good hierarchy helps the brain process information quickly, making navigation intuitive rather than frustrating.</p><blockquote class="cdb-blockquote"><p class="cdb-paragraph"><strong class="cdb-text-bold">\u201cPeople don\u2019t read websites; they scan them.\u201d</strong> Structure your design so that users can find what they need effortlessly.</p></blockquote><h2 class="cdb-h2">5. <strong class="cdb-text-bold">The Power of Familiarity and Consistency</strong></h2><p class="cdb-paragraph">Humans are wired to find comfort in the familiar. Websites that follow established design conventions feel easier to use because users don\u2019t need to relearn how to navigate.</p><h3 class="cdb-h3">Examples of Familiar Patterns:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph">Logo in the top-left corner.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Navigation bar at the top or left side.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Shopping cart icon in e-commerce.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Standard color cues (e.g., blue for links, red for errors).</p></li></ul><p class="cdb-paragraph">Consistency in <strong class="cdb-text-bold">fonts, button styles, and layouts</strong> builds trust and reliability.</p><blockquote class="cdb-blockquote"><p class="cdb-paragraph"><strong class="cdb-text-bold">\u201cGood design is invisible \u2014 it feels natural because it doesn\u2019t make you think.\u201d</strong></p></blockquote><h2 class="cdb-h2">6. <strong class="cdb-text-bold">The Role of Trust and Credibility</strong></h2><p class="cdb-paragraph">A website\u2019s design heavily influences whether users find it trustworthy. Even if your content is genuine, poor design can signal unprofessionalism.</p><h3 class="cdb-h3">Ways to Build Trust Through Design:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">High-quality visuals:</strong> Avoid pixelated images or outdated graphics.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Consistent branding:</strong> Use the same tone, colors, and typography across all pages.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Social proof:</strong> Add testimonials, reviews, or client logos.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Security signals:</strong> SSL certificates, privacy notices, and recognizable payment icons.</p></li></ul><p class="cdb-paragraph"></p><p class="cdb-paragraph"></p><blockquote class="cdb-blockquote"><p class="cdb-paragraph">Users don\u2019t consciously assess trust \u2014 they <em class="cdb-text-italic">feel</em> it within seconds of landing on your site.</p></blockquote><h2 class="cdb-h2">7. <strong class="cdb-text-bold">The Psychology of Choice and CTA Design</strong></h2><p class="cdb-paragraph">Humans prefer simplicity in decision-making. When faced with too many options, they experience <strong class="cdb-text-bold">analysis paralysis</strong> and choose nothing.</p><h3 class="cdb-h3">Design Principles for Better Conversions:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">
1Limit choices:</strong> Too many links or buttons can overwhelm users.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Use clear CTAs:</strong> Phrases like <em class="cdb-text-italic">\u201cGet Started\u201d</em> or <em class="cdb-text-italic">\u201cSign Up Free\u201d</em> set clear expectations.</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Highlight benefits:</strong> Pair CTAs with short, persuasive text (\u201cJoin Free \u2013 No Credit Card Required\u201d).</p></li><li class="cdb-list-item"><p class="cdb-paragraph"><strong class="cdb-text-bold">Leverage urgency and scarcity:</strong> Phrases like <em class="cdb-text-italic">\u201cLimited Seats Left\u201d</em> trigger action.</p></li></ul><blockquote class="cdb-blockquote"><p class="cdb-paragraph">The easier you make it to act, the more likely users will. Reduce friction wherever possible.</p></blockquote><h2 class="cdb-h2">8. <strong class="cdb-text-bold">Cognitive Load: Less is More</strong></h2><p class="cdb-paragraph">The human brain has limited capacity for processing information. Overloading it with too many visuals, choices, or animations can frustrate users and drive them away.</p><h3 class="cdb-h3">Reduce Cognitive Load by:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph">Keeping navigation simple.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Using <strong class="cdb-text-bold">progressive disclosure</strong> (show more info only when necessary).</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Grouping related information visually.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Maintaining clean, consistent layouts.</p></li></ul><blockquote class="cdb-blockquote"><p class="cdb-paragraph"><strong class="cdb-text-bold">\u201cMinimalism in design doesn\u2019t mean less content \u2014 it means focusing on what matters most.\u201d</strong></p></blockquote><h2 class="cdb-h2">9. <strong class="cdb-text-bold">Emotional Design: Creating Connection</strong></h2><p class="cdb-paragraph">The best websites make users <em class="cdb-text-italic">feel something</em>. Emotionally engaging design builds loyalty, encourages sharing, and enhances brand memory.</p><h3 class="cdb-h3">How to Trigger Emotional Response:</h3><ul class="cdb-list-bullet"><li class="cdb-list-item"><p class="cdb-paragraph">Use <strong class="cdb-text-bold">storytelling</strong> through visuals and copy.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Add <strong class="cdb-text-bold">human faces</strong> \u2014 they draw empathy and attention.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Incorporate <strong class="cdb-text-bold">micro-interactions</strong> like hover animations or success confirmations.</p></li><li class="cdb-list-item"><p class="cdb-paragraph">Choose colors and typography that align with your brand\u2019s personality.</p></li></ul><blockquote class="cdb-blockquote"><p class="cdb-paragraph">A touch of emotion can turn a website from \u201cuseful\u201d into \u201cmemorable.\u201d</p></blockquote><h2 class="cdb-h2">Conclusion</h2><p class="cdb-paragraph">Web design is more than pixels and code \u2014 it\u2019s about understanding how the human mind perceives, feels, and decides. Every color, layout, and interaction communicates something to your users.</p><p class="cdb-paragraph">When you design with psychology in mind, you don\u2019t just build websites \u2014 you craft experiences that resonate deeply, inspire trust, and drive action.</p><blockquote class="cdb-blockquote"><p class="cdb-paragraph"><strong class="cdb-text-bold">\u201cDesign is intelligence made visible.\u201d</strong> By applying psychological principles thoughtfully, you can transform your website into a seamless, engaging, and emotionally compelling experience for every visitor.</p></blockquote>',featuredImage:"https://assets-v2.codedesign.ai/storage/v1/object/public/68ff5f55088004993a1c5078_84aabc2f/asset-221fbab5",publishDate:"2026-03-19T17:39:47.728Z",tags:[{_id:"69bc333d65f8c92439523a96",name:"Must Read",slug:"must-read",color:"#2ecc71"}],authors:["John James Doe"],access:"Public",excerpt:"This is a sample post content. A beautiful website is more than just colors, typography, and layout \u2014 it\u2019s an experience carefully crafted to connect...",isFeatured:!1},r=[{title:"First Placeholder Card",slug:"first-placeholder-card",excerpt:"Short excerpt for the first card in the list.",featuredImage:"https://images.unsplash.com/photo-1455390582262-044cdead277a?w=400"},{title:"Second Placeholder Card",slug:"second-placeholder-card",excerpt:"Short excerpt for the second card in the list.",featuredImage:"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=400"},{title:"Third Placeholder Card",slug:"third-placeholder-card",excerpt:"Short excerpt for the third card in the list.",featuredImage:"https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=400"},{title:"Fourth Placeholder Card",slug:"fourth-placeholder-card",excerpt:"Short excerpt for the fourth card in the list.",featuredImage:"https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=400"},{title:"Fifth Placeholder Card",slug:"fifth-placeholder-card",excerpt:"Short excerpt for the fifth card in the list.",featuredImage:"https://images.unsplash.com/photo-1504639725590-34d0984388bd?w=400"}]},171:function(t,e,n){"use strict";n.r(e),n.d(e,{cloudinaryService:function(){return i}});var o=n(5017),r=n(6354);const i={uploadImage:async function(t,e={}){const i=await n.e(569).then(n.t.bind(n,569,23));let s=Math.floor(9e4*Math.random())+1e4,c=Math.round((new Date).getTime()/1e3);const l=t.name?a(t.name):"";let u=(e.type||"storylens")+`/${l}_${c}_${s}`;e.publicId&&(u=e.type+"/"+e.publicId);return i.post(o.default.CLOUDINARY_UPLOAD_URL).field("upload_preset",o.default.CLOUDINARY_UPLOAD_PRESET).field("file",t).field("public_id",u).on("progress",(t=>{e.customUpdateProgressPercentage?e.customUpdateProgressPercentage(t.percent,e.type):r.cloudinaryActions.updateProgressPercentage(t.percent,e.type)})).then((t=>{if(""!==t.body.secure_url){const n=`${o.default.cloudinaryApiUrl}/q_auto/v${t.body.version}/${t.body.public_id}.${e.preserveFormat&&t.body.original_extension?t.body.original_extension:t.body.format}`;return t.body.secure_url=n,t}}))}
1,uploadImageFromUrl:async function(t,e,i={}){const s=await n.e(569).then(n.t.bind(n,569,23));let c=Math.floor(9e4*Math.random())+1e4,l=Math.round((new Date).getTime()/1e3);const u=e?a(e):"";return s.post(o.default.CLOUDINARY_UPLOAD_URL).field("upload_preset",o.default.CLOUDINARY_UPLOAD_PRESET).field("file",t).field("public_id",`${i.type}/${u}_${l}_${c}`).on("progress",(t=>{i.customUpdateProgressPercentage?i.customUpdateProgressPercentage(t.percent,i.type):r.cloudinaryActions.updateProgressPercentage(t.percent,i.type)})).then((t=>{if(""!==t.body.secure_url){const e=`${o.default.cloudinaryApiUrl}/q_auto/v${t.body.version}/${t.body.public_id}.${t.body.format}`;return t.body.secure_url=e,t}}))}};function a(t){return t.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\\\-+/g,"-").replace(/-{2,}/g,"-")}},758:function(t,e,n){"use strict";n.r(e),n.d(e,{commonServices:function(){return l}});var o=n(5017),r=n(9972),i=n(167),a=n(4301),s=n.n(a),c=n(5654);const l={fetchsiteProfile:function(){const t={method:"GET",headers:{"Content-Type":"application.json","x-access-token":(0,r.getToken)()}};let e=`${(0,o.returnAPI)()}site-profile`;return s()(e,t).then(i.handleResponse).then((t=>t.data))},fetchPage:function(t,e,n){const a={method:"GET",headers:{"Content-Type":"application.json","x-access-token":(0,r.getToken)()}};let c=`${(0,o.returnAPI)()}guest/web-builder/page?userId=${t}&projectId=${e}&context=${n}`;return s()(c,a).then(i.handleResponse).then((t=>t.data))},setDomainDetails:function(t,e,n){const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({name:t,project:n})};let c=`${(0,o.returnAPI)()}domains/${e}/`;return s()(c,a).then(i.handleResponse).then((t=>t))},getDomainDetails:function(t,e,n,o){const a={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let l=c.customBuilderService.adminUrlHelper(`domains/${t}/list`,{verifiedDomainsOnly:e?"true":"false",all:n?"true":"false",project:o});return s()(l,a).then(i.handleResponse).then((t=>({domains:t.data,domainWithNs:t.domainWithNs||[]})))},getVerificationStatus:function(t,e,n){const a={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let c=`${(0,o.returnAPI)()}domains/${t}/check-status?domain=${e}&project=${n}`;return s()(c,a).then(i.handleResponse).then((t=>t))},deleteDomain:function(t,e,n){const a={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({key:t})};let c=`${(0,o.returnAPI)()}domains/${e}?domain=${t}&project=${n}`;return s()(c,a).then(i.handleResponse).then((t=>t.data))},fetchClient:function(t,e="home",n,r){console.log("source",n),console.log("returnCacheAPI",(0,o.returnCacheAPI)()),console.log("returnAPI",(0,o.returnAPI)());let a=`${"nextjs"===n?(0,o.returnCacheAPI)():(0,o.returnAPI)()}guest/web-builder/project/${t}?pageName=${e}`;r&&(a+=`&resolveFromURL=true&url=${encodeURIComponent(r)}`);return s()(a,{method:"GET"}).then((t=>(0,i.handleResponse)(t,!0))).then((t=>t.data))},checkSubdomainExists:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let a=`${(0,o.returnAPI)()}domains/${e}/check-subdomain?subdomain=${t}`;return s()(a,n).then(i.handleResponse).then((t=>t.data))}}},2033:function(t,e,n){"use strict";n.r(e),n.d(e,{customBuilderService:function(){return u}});var o=n(5017),r=n(9972),i=n(9805),a=n(5796),s=n(2362);const c=(t,e={},n="")=>{const r=new URL(document.location.href).searchParams.get("apiType"),a=new URL(document.location.href).searchParams.get("user"),s=new URL(document.location.href).searchParams.get("backupId");return(0,i.default)(`${n||(0,o.returnAPI)()}${t}`,{returnAbsoluteUrl:!0,queryParams:{...e,apiType:r,user:a,...s?{docId:s}:{}}})},l=(t,e={},n="")=>{const r=new URL(document.location.href).searchParams.get("apiType"),a=new URL(document.location.href).searchParams.get("user");return(0,i.default)(`${n||(0,o.returnAIAPI)()}${t}`,{returnAbsoluteUrl:!0,queryParams:{...e,apiType:r,user:a}})},u={saveLayoutToServer:function(t,e,n,o={}){let i=sessionStorage.getItem("deviceId");t.project=e;const a={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({...t,rateLimit:"true",responseEmpty:"true",context:n,options:o,deviceId:i})};let s=c("guest/web-builder");return fetch(s,a).then(p).then((t=>t.data))},getWebBuilderDetails:function(t,e,n){const o={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()}};let i=c("guest/web-builder",{project:t,page:e,type:n});return fetch(i,o).then(p).then((t=>({...t.data,domainWithNs:t.domainWithNs||null})))},uploadImageFile:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({staticMedia:t,project:e})};let o=c("guest/web-builder");return fetch(o,n).then(p).then((t=>t.data.staticMedia))},addNewPage:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({newBlueprint:t,project:e})};let o=c("guest/web-builder/add-page");return fetch(o,n).then(p).then((t=>t.data))},deletePage:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({page:t,project:e})};let o=c("guest/web-builder/delete-page");return fetch(o,n).then(p).then((t=>t.data))},addNewProject:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:t})};let n=c("guest/web-builder");return fetch(n,e).then(p).then((t=>t.data))},getAllProjects:function(t=1,e="all",n={}){console.log(t,e,n,"page, currentTab, options");const o={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=c("guest/web-builder/all",{page:t,type:e,search:n.searchTerm||""});return fetch(i,o).then(p).then((t=>t))},deleteProject:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({key:t,project:e})};let o=c("guest/web-builder/delete-project");return fetch(o,n).then(p).then((t=>t.data))},publishPage:function(t,e,n,o){const i={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}},{domain:a=!1,subdomain:s=!1}=n;let l=c("guest/web-builder/publish",{context:t,project:e,domain:a,subdomain:s,customSubdomain:o});return fetch(l,i).then(p).then((t=>t.data))},fetchData:function(t,e){return fetch(t,e).then(p)},fetchGoogleFonts:function(t){const e=`https://www.googleapis.com/webfonts/v1/webfonts?key=${o.default.GOOGLE_DEV_API_KEY}&sort=${t}`;return fetch(e).then(p)},updateFontsUsedInSite:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({fonts:t,project:e})};let o=c("guest/web-builder");return fetch(o,n).then(p).then((t=>t.data.fonts))},exportCode:function(t,e,n,o,i){const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({context:t,project:e,extras:o,source:i})};let s=c("guest/web-builder/export");const l=new URL(s);return l.hostname="export-code-api.codedesign.app",s=l.toString(),fetch(s,a).then(f)},updatePreviewImage:function(t,e,n,o){const i={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({uri:t})};let a=c("guest/web-builder/preview-image",{context:e,project:n,projectId:o});return fetch(a,i).then(p).then((t=>t))},updateBlueprint:async function(t,e,n,o,i={}){let a=sessionStorage.getItem("deviceId");const{playground:s,...l}=i;{const i={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({[t]:e,project:n,rateLimit:"true",responseEmpty:"true",context:o,options:l,deviceId:a})};let s=c("guest/web-builder");return fetch(s,i).then(p).then((t=>{if(t.data)return t.data}))}},fetchKBArticles:function(t){return fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}).then(p)},copyProject:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c("guest/web-builder/copy-project",{project:t,user:e});return fetch(o,n).then(p).then((t=>t))},addDomainToProject:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c("guest/web-builder/add-domain",{project:e,domain:t});return fetch(o,n).then(p).then((t=>t))},addSubdomainToProject:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c("guest/web-builder/add-subdomain",{project:e,subdomain:t});return fetch(o,n).then(p).then((t=>t))},makeExternalRequest:function(t,e,n,i){const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({extras:i})};let s=`${(0,o.returnAPI)()}external-api?project=${t}&id=${e}&type=${n}`;return fetch(s,a).then(p).then((t=>t))},updateWebBuilderAdmin:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}
1,body:JSON.stringify({data:t,id:e})};let o=c("guest/web-builder/admin-update");return fetch(o,n).then(p).then((t=>{if(t.data)return t.data}))},guestTemplateCopy:function(t="",e={}){const n={method:"POST",headers:{"Content-Type":"application/json",...(0,r.getToken)()?{"x-access-token":""+(0,r.getToken)()}:{},"guest-token":(0,r.getGuestToken)()||""},body:JSON.stringify({...e})};let o=c("guest/web-builder/copy-template",{templateId:t});return fetch(o,n).then(p).then((t=>t))},fetchTemplates:function(){const t={method:"GET",headers:{"Content-Type":"application/json",...(0,r.getToken)()?{"x-access-token":""+(0,r.getToken)()}:{},"guest-token":(0,r.getGuestToken)()||""}};let e=c("guest/web-builder/templates",{showExtra:"true"});return fetch(e,t).then(p).then((t=>{let e=t;try{t=JSON.parse(t)}catch(n){t=e}return t.data}))},fetchComponentManifest:function(){let t=c("guest/web-builder/component-manifest");const e={method:"GET",headers:{"Content-Type":"application/json",...(0,r.getToken)()?{"x-access-token":""+(0,r.getToken)()}:{},"guest-token":(0,r.getGuestToken)()||""}};return fetch(t,e).then(p).then((t=>{let e=t;try{t=JSON.parse(t)}catch(n){console.log("Fetch Component Manifest: JSON Parse not possible, returning original response",n),t=e}return t}))},fetchTemplateByKey:function(t){let e=c("guest/web-builder/template",{key:t});return fetch(e).then(p).then((t=>t.data))},fetchVersions:function(t,e,n=0,o=10){const i={method:"GET",headers:{"Content-Type":"application/json",...(0,r.getToken)()?{"x-access-token":""+(0,r.getToken)()}:{},"guest-token":(0,r.getGuestToken)()||""}};let a=c("guest/web-builder/version",{project:t,context:e,offset:n,limit:o});return fetch(a,i).then(p).then((t=>t.data))},saveComponentAsPreset:function(t,e,n,o){const i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({component:e,componentName:t,layout:n,project:o})};let a=c("guest/web-builder/update-presets",{project:o});return fetch(a,i).then(p).then((t=>t.data))},adminUrlHelper:c,fetchTemplatesV2:function(t="components"){const e={method:"GET",headers:{"Content-Type":"application/json",...(0,r.getToken)()?{"x-access-token":""+(0,r.getToken)()}:{},"guest-token":(0,r.getGuestToken)()||""}};let n=`${(0,o.returnCacheAPI)()}guest/web-builder/v2/templates?libraryType=${t}&returnJSON=true`;return fetch(n,e).then(p).then((t=>("string"===typeof t?JSON.parse(t):t).data||[]))},rebuildTemplates:function(t="components",e="false"){const n={method:"POST",headers:{"Content-Type":"application/json",...(0,r.getToken)()?{"x-access-token":""+(0,r.getToken)()}:{},"guest-token":(0,r.getGuestToken)()||""}};let i=`${(0,o.returnAPI)()}guest/web-builder/rebuild-templates?libraryType=${t}&buildFromAirtable=${e}`;return fetch(i,n).then(p).then((t=>t))},transferProjectOwnership:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({newOwner:t,project:e})};let i=`${(0,o.returnAPI)()}guest/web-builder/transfer-ownership`;return fetch(i,n).then(p).then((t=>t.data))},moveGuestProjectToDashboard:function(t,e,n){const{aiLogId:i}=t,a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({data:i?{aiLogId:i}:t,subdomain:e,...n?{workspaceId:n}:{}})},s=new URL(document.location.href).pathname.includes("playground");let l=c("guest/web-builder/",{existingProject:!0},s?o.default.nonCloudflareProxyEndpoint:"");return fetch(l,a).then(p).then((t=>t.data))},saveGuestProjectToAICompanion:function(t,e={}){const{workspaceId:n,...i}=e,a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({data:t,...i,...n?{workspaceId:n}:{}})},s=new URL(document.location.href).pathname.includes("playground");let l=c("guest/web-builder/save-to-ai-companion",{},s?o.default.exportCodeApiUrl:"");return fetch(l,a).then(p).then((t=>t.data))},createCustomAIWorkflowFromPrompt:function({prompt:t,notionTemplate:e,extras:n,apiType:o}){const i=t?.trim();if(!i)return Promise.reject("Please enter a prompt");if(!e)return Promise.reject("Please select a Notion template");const a={height:window?.screen?.height,width:window?.screen?.width,heightOffset:.0029,filename:"project",props:s.default},l={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({prompt:i,notionTemplate:e,extras:{...a,...n||{}}})},u=c("guest/web-builder/save-to-ai-companion",{apiType:o,createCustom:!0});return fetch(u,l).then((t=>p(t,!0))).then((t=>t?.data||t))},setupAICompanionSandbox:function(t,e,o={}){const i={projectId:t};!0!==o.skipTemplateName&&e&&!0===e.customTemplate&&(i.templateName="ai-companion-react-vite-template");const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(i)},{returnAICompanionAPI:s}=n(5017),c=s();return fetch(`${c}/setup-sandbox`,a).then(p).then((t=>(t.data?.iframeUrl&&(t.data.iframeUrl.endsWith("proxy.cdsn.me")?t.data.iframeUrl=t.data.iframeUrl.replace(/proxy\.cdsn\.me$/,"codedesign.one"):t.data.iframeUrl.endsWith("proxy.codedesign.app")&&(t.data.iframeUrl=t.data.iframeUrl.replace(/proxy\.codedesign\.app$/,"codedesign.one"))),t.data)))},archiveAICompanionSandbox:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}},{returnAICompanionAPI:o}=n(5017),i=o();return fetch(`${i}/projects/${t}/archive`,e).then(p).then((t=>t.data||t))},createProjectFromPrompt:function({prompt:t,templateId:e,category:n,businessName:i,location:s,logId:c,language:u,setting:d,keywords:f,skipAI:m=!1,subCategory:h,projectName:_,websiteType:E,aiService:g,objective:y,isFunnel:S,mockError:T,aiFailureAttempt:C,variant:b}){const v=(0,a.reverseTransformToHexId)(e||""),I=window.innerWidth||document?.documentElement?.clientWidth||window?.screen?.width,A=window.innerHeight||document?.documentElement?.clientHeight||window?.screen?.height;const O={operatingSystem:function(){const t=navigator?.userAgent;
1return-1!==t?.indexOf("Windows NT")?"Windows":-1!==t?.indexOf("Mac OS X")?"Mac OS":-1!==t?.indexOf("Linux")?"Linux":-1!==t?.indexOf("Android")?"Android":-1!==t?.indexOf("like Mac OS X")?"iOS":-1!==t?.indexOf("CrOS")?"Chrome OS":"Unknown OS"}(),screenWidth:I,screenHeight:A},R={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({deviceInfo:O})},P=new URL(document.location.href).pathname.includes("playground");let U=l("guest/ai-prompt/create-from-prompt",{prompt:t,category:n,businessName:i,location:s,templateId:v,logId:c,language:u,setting:d,skipAI:m,keywords:f,subCategory:h,projectName:_,websiteType:E,aiService:g,objective:y,isFunnel:S,mockError:T,aiFailureAttempt:C,variant:b},P?o.default.nonCloudflareProxyEndpoint:"");return fetch(U,R).then((t=>p(t,!0))).then((t=>t.data))},createTextFromPrompt:function(t){let e;e="string"===typeof t?{prompt:t}:{prompt:t.prompt,text:t.text};const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(e)};let o=l("guest/ai-prompt/ai-magic");return fetch(o,n).then(d).then((t=>t.data))},assignLicense:function(t,e,n){const i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({action:t,licenseType:e,project:n})};let a=`${(0,o.returnAPI)()}guest/web-builder/change-license`;return fetch(a,i).then(p).then((t=>t.data))},assignWorkspaceLicense:function(t,e,n){const i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({action:t,licenseType:e,project:n,source:"workspace"})};let a=`${(0,o.returnAPI)()}guest/web-builder/change-license`;return fetch(a,i).then(p).then((t=>t.data))},duplicateProject:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=c("guest/web-builder/duplicate-project",{project:t});return fetch(n,e).then(p).then((t=>t.data))},duplicatePage:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c("guest/web-builder/duplicate-page",{pageName:t,project:e});return fetch(o,n).then(p).then((t=>t.data))},updateBackupName:function(t,e,n){const o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=c("guest/web-builder/rename-backup",{project:t,docId:e,updatedName:n});return fetch(i,o).then(p).then((t=>t.data))},restoreBackup:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:t,docId:e})};let o=c("guest/web-builder/restore-backup",{project:t,docId:e});return fetch(o,n).then(p).then((t=>t.data))},deleteBackup:function(t,e){const n={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c("guest/web-builder/delete-backup",{project:t,docId:e});return fetch(o,n).then(p).then((t=>t.data))},generateWordPressAPIKey:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=c("guest/web-builder/generate-wp-api-key",{project:t});return fetch(n,e).then(p).then((t=>t.data))},disconnectWordpress:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({api_key:t})};let o=c("wp/disconnect-key",{project:e});return fetch(o,n).then(p).then((t=>t.data)).catch((t=>{console.log(t,"reachinnn")}))},fetchPlaygroundByAiLogId:async function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()}};let n=c(`guest/ai-prompt/playground/${t}`);const o=await fetch(n,e);if(!o.ok){if(403===o.status)throw new Error("You don't have permission to access this project");if(404===o.status)throw new Error("Project not found");throw new Error("Failed to fetch playground data")}return(await o.json()).data},addAnalyticsToProject:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=c("guest/analytics/create-website",{project:t});return fetch(n,e).then(p).then((t=>t.data)).catch((t=>{console.log(t,"reachinnn")}))},fetchAnalytics:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c(`guest/analytics/websites/${t}`,{project:e});return fetch(o,n).then(p).then((t=>t.data)).catch((t=>{console.log(t,"reachinnn")}))},fetchAnalyticsStats:function(t,e,n,o){const i={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let a=c(`guest/analytics/websites/${t}/stats`,{project:o,startAt:e,endAt:n});return fetch(a,i).then(p).then((t=>t.data)).catch((t=>{throw console.error(t,"errorFetchingAnalytics"),t}))},fetchAnalyticsActive:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c(`guest/analytics/websites/${t}/active`,{project:e});return fetch(o,n).then(p).then((t=>t.data)).catch((t=>{throw console.error(t,"errorFetchingAnalytics"),t}))},fetchAnalyticsMetrics:function(t,e,n,o,i){const a={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let s=c(`guest/analytics/websites/${t}/metrics`,{project:i,startAt:e,endAt:n,type:o});return fetch(s,a).then(p).then((t=>t.data)).catch((t=>{throw console.error(t.message,"error Fetching Analytics Metrics"),t}))},fetchAnalyticsPageviews:function(t,e,n,o,i,a){const s={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let l=c(`guest/analytics/websites/${t}/pageviews`,{project:a,startAt:e,endAt:n,unit:o,timezone:i});return fetch(l,s).then(p).then((t=>t.data)).catch((t=>{throw console.error(t.message,"error Fetching Analytics Metrics"),t}))},markAsHomePage:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()}};let o=c("guest/web-builder/mark-as-home",{project:t,contextToBeUpd
1ated:e});return fetch(o,n).then(p).then((t=>t.data))},generateAIForPage:function(t,e,n,o=""){const i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let a=c("guest/web-builder/generate-ai-for-page",{project:t,pageName:e,prompt:n,language:o});return fetch(a,i).then(p).then((t=>t.data))},renameLayersWithAI:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=c("guest/ai/rename-layers",{project:t,pageName:e});return fetch(o,n).then(p).then((t=>t.data)).catch((t=>{throw console.error(t,"errorFetchingAnalytics"),t}))},unlinkVariablesUsedInProject:function(t,e,n){const o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({variableId:e,variableValue:n,project:t})};let i=c("guest/web-builder/unlink-variables");return fetch(i,o).then(p).then((t=>t))},connectWithStripe:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=c("guest/stripe/connect",{project:t});return fetch(n,e).then(p).then((t=>t.data))},disconnectStripe:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let n=c("guest/stripe/disconnect",{project:t});return fetch(n,e).then(p).then((t=>t.data))},checkTemplate:async function(t){const e=new URLSearchParams(window.location.search)?.get("variant"),n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=`${(0,o.returnAPI)()}guest/web-builder/check-template/${t}`;null!==e&&void 0!==e&&(i+=`?variant=${e}`);return fetch(i,n).then(p).then((t=>t.data))},fetchOverviewStats:function(t,e){console.log("fetchOverviewStats",t);const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=new URL(`${(0,o.returnAPI)()}guest/overview/stats`);const a=new URLSearchParams;a.append("project",t),e&&(a.append("startAt",e?.startAt),a.append("endAt",e?.endAt));return i.search=a.toString(),fetch(i,n).then(p).then((t=>t.data))},fetchOverviewTransactions:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=new URL(`${(0,o.returnAPI)()}guest/overview/transactions`);const a=new URLSearchParams;a.append("project",t),e&&(a.append("startAt",e?.startAt),a.append("endAt",e?.endAt));return i.search=a.toString(),fetch(i,n).then(p).then((t=>t.data))},fetchOverviewContacts:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let i=new URL(`${(0,o.returnAPI)()}guest/overview/contacts`);const a=new URLSearchParams;a.append("project",t),e&&(a.append("startAt",e?.startAt),a.append("endAt",e?.endAt));return i.search=a.toString(),fetch(i,n).then(p).then((t=>t.data))},generateMetaFromPrompt:async function(t){const{prompt:e,language:n,objective:i,isFunnel:a,aiService:s}=t;let c={prompt:e};""!==n?.trim()&&(c.language=n);""!==i?.trim()&&(c.objective=i);a&&(c.isFunnel=a);""!==s?.trim()&&(c.aiService=s);const l={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify(c)},u=`${(0,o.returnAPI)()}guest/ai-prompt/v3/generate-meta-from-prompt`;return fetch(u,l).then(p).then((t=>t.data))},chatWithAI:async function(t,e,n,r){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userInput:t,chatHistory:e,collectedInfo:n,sessionId:r})},a=`${(0,o.returnAPI)()}guest/ai-prompt/v3/chat`;return fetch(a,i).then((function(t){return t.json().then((e=>{const n=e;if(t.ok||429===t.status)return n;{const e=n&&n.errorMessage||n&&n.message||t.statusText;return Promise.reject(new Error(e))}})).catch((t=>Promise.reject(new Error(t.message||"Unknown Error"))))})).then((t=>t)).catch((t=>{throw console.error("Error in chatWithAI:",t),t}))},deleteImageReferences:async function(t,e,n={}){const o={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({deletedImageUrl:t,project:e,options:n})};let i=c("guest/web-builder/delete-image-references");return fetch(i,o).then(p).then((t=>{if(t)return t}))},renameAssetFromStaticMedia:function(t,e,n){const o={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({src:t,newFileName:e,project:n})};let i=c("guest/web-builder/rename-asset");return fetch(i,o).then(p).then((t=>t))},deleteAssetFromStaticMedia:function(t,e){const n={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({src:t,project:e})};let o=c("guest/web-builder/delete-asset");return fetch(o,n).then(p).then((t=>t))},changeFontFamiliesToThemeFonts:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({fontFamilyToVariableMap:t,project:e})};let o=c("guest/web-builder/change-font-families-to-theme-fonts");return fetch(o,n).then(p).then((t=>t))}
1,changeThemeVariableIds:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({variableIds:t,project:e})};let o=c("guest/web-builder/change-theme-variable-ids");return fetch(o,n).then(p).then((t=>t))},connectWithZapier:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:t})};let n=c("guest/zapier/connect");return fetch(n,e).then(p).then((t=>t.data))},disconnectZapier:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({project:t})};let n=c("guest/zapier/disconnect");return fetch(n,e).then(p).then((t=>t.data))},executeAICommand:function(t,e,n,i={}){const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()||(0,r.getGuestToken)()},body:JSON.stringify({commandType:t,projectId:e,input:n,options:i})},s=`${(0,o.returnAPI)()}guest/ai-prompt/execute-ai-command`;return fetch(s,a).then((t=>p(t,!0))).then((t=>t))},acceptAIResult:function(t,e,n,i=!0){const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()||(0,r.getGuestToken)()},body:JSON.stringify({projectId:t,commandType:e,resultData:n,saveToAssets:i})},s=`${(0,o.returnAPI)()}guest/ai-prompt/accept-ai-result`;return fetch(s,a).then((t=>p(t,!0))).then((t=>t))},discardAIResult:function(t,e,n){const i={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()||(0,r.getGuestToken)()},body:JSON.stringify({projectId:t,commandType:e,resultData:n})},a=`${(0,o.returnAPI)()}guest/ai-prompt/discard-ai-result`;return fetch(a,i).then((t=>p(t,!0))).then((t=>t))}};function p(t,e=!1){return t.json().then((n=>{const o=n;if(console.log(t.ok,t.status,"response"),t.ok||429===t.status)return o;{const n={...o},r=o&&o.errorMessage||o&&o.message||t.statusText;return e?Promise.reject(n):Promise.reject(r)}}))}function d(t){return t.json().then((e=>{const n=e;if(t.ok||429===t.status)return n;{let e="";return e=n&&n.data?.error?.message||n&&n.errorMessage||n&&n.message||t.statusText,Promise.reject(e)}}))}function f(t){return t.ok?t.blob().then((t=>t)):t.json().then((e=>{const n=e&&e.errorMessage||e&&e.message||t.statusText;return Promise.reject(n)}))}},6691:function(t,e,n){"use strict";n.r(e),n.d(e,{functionService:function(){return s}});var o=n(5017),r=n(9972),i=n(9805);const a=(t,e={})=>{const n=new URL(document.location.href).searchParams.get("apiType"),r=new URL(document.location.href).searchParams.get("user");return(0,i.default)(`${(0,o.returnAPI)()}${t}`,{returnAbsoluteUrl:!0,queryParams:{...e,apiType:n,user:r}})},s={createFunction:function(t){const{project:e,functionObject:n}=t,o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({...n})};let i=a(`guest/function/${e}/`);return fetch(i,o).then(c).then((t=>t.data))},updateFunction:function(t){const{project:e,functionObject:n,_id:o}=t,i={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()},body:JSON.stringify({...n})};let s=a(`guest/function/${e}/function/${o}`);return fetch(s,i).then(c).then((t=>t.data))},initialFunctionsFetch:function(t){const{project:e}=t,n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)()}};let o=a(`guest/function/${e}/?project=${e}`);return fetch(o,n).then(c).then((t=>t.data))}};function c(t){return t.json().then((e=>{const n=e;if(!t.ok&&429!==t.status){const e=n&&n.errorMessage||n&&n.message||t.statusText;return Promise.reject(e)}return n})).catch((()=>{if(429!==t.status)return new Error("Something went wrong")}))}},8012:function(t,e,n){"use strict";n.r(e),n.d(e,{guestServices:function(){return a}});var o=n(5017),r=n(9972),i=n(167);const a={fetchIdenticon:function(){let t=`${(0,o.returnAPI)()}guest/generate-identicon`;return fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}).then(i.handleResponse).then((t=>{if(204!==t.status){return t.data}return 204}))},subscribeEmail:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({email:t.email})};let n=`${(0,o.returnAPI)()}guest/subscribe`;return fetch(n,e).then(i.handleResponse).then((t=>t))}}},5654:function(t,e,n){"use strict";n.r(e),n.d(e,{cardData:function(){return o.cardData},postData:function(){return o.postData},updateUserFields:function(){return r.updateUserFields},userService:function(){return r.userService}
1,cloudinaryService:function(){return i.cloudinaryService},guestServices:function(){return a.guestServices},commonServices:function(){return u.commonServices},customBuilderService:function(){return p.customBuilderService},functionService:function(){return d.functionService}});var o=n(7484),r=n(8817),i=n(171),a=n(8012),s=n(1284),c={};for(var l in s)["default","cardData","postData","updateUserFields","userService","cloudinaryService","guestServices"].indexOf(l)<0&&(c[l]=function(t){return s[t]}.bind(0,l));n.d(e,c);var u=n(758),p=n(2033),d=n(6691)},1284:function(){},1969:function(t,e,n){"use strict";n.r(e),n.d(e,{supabaseService:function(){return c}});var o=n(5017),r=n(9972),i=n(167),a=n(9805);const s=(t,e={})=>{const n=new URL(document.location.href).searchParams.get("apiType"),r=new URL(document.location.href).searchParams.get("user");return(0,a.default)(`${(0,o.returnAPI)()}${t}`,{returnAbsoluteUrl:!0,queryParams:{...e,apiType:n,user:r}})},c={uploadFile:async function(t,e,n={}){const o=new FormData;o.append("file",t),o.append("projectId",e),o.append("metadata",JSON.stringify(n));const a={method:"POST",headers:{"x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:o},c=n.avatar?"guest/supabase-assets-v2/upload-avatar":"guest/supabase-assets-v2/upload-file",l=s(c);return fetch(l,a).then(i.handleResponse).then((t=>t)).catch((t=>{throw console.error("Error uploading file to backend:",t),t}))},uploadImageFromUrl:async function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({imageUrl:t,projectId:e})},o=s("guest/supabase-assets-v2/upload-url");return fetch(o,n).then(i.handleResponse).then((t=>t)).catch((t=>{throw console.error("Error uploading image from URL to backend:",t),t}))},fetchProjectAssets:async function(t,e=1,n=10,o=!1){let a={page:e,limit:n};o?a.supabaseBucketId=t:a.projectId=t;const c={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(a)},l=s("guest/supabase-assets-v2/list-assets");return fetch(l,c).then(i.handleResponse).then((t=>t)).catch((t=>{throw console.error("Error fetching assets list:",t),t}))},deleteAsset:async function(t,e){const n={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({projectId:t,filePath:e})},o=s("guest/supabase-assets-v2/delete-asset");return fetch(o,n).then(i.handleResponse).then((t=>t)).catch((t=>{throw console.error("Error deleting asset:",t),t}))},moveFile:async function(t,e,n){const o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({projectId:t,oldFilePath:e,newFileName:n})},a=s("guest/supabase-assets-v2/move-file");return fetch(a,o).then(i.handleResponse).then((t=>t)).catch((t=>{throw console.error("Error renaming file:",t),t}))},fetchProjectVideos:async function(t,e=!1){let n={};e?n.supabaseBucketId=t:n.projectId=t;const o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(n)},a=s("guest/supabase-assets-v2/list-videos");return fetch(a,o).then(i.handleResponse).then((t=>t))},fetchProjectImages:async function(t,e=!1){let n={};e?n.supabaseBucketId=t:n.projectId=t;const o={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(n)},a=s("guest/supabase-assets-v2/list-images");return fetch(a,o).then(i.handleResponse).then((t=>t))}}},8817:function(t,e,n){"use strict";n.r(e),n.d(e,{userService:function(){return a},updateUserFields:function(){return c}});var o=n(5017),r=n(9972),i=n(167);const a={login:function(t,e,n){const a={email:t,password:e,guest:{_id:n}},c={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(a)};return fetch(`${(0,o.returnAPI)()}login`,c).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e}))},logout:function(){localStorage.removeItem("token"),localStorage.removeItem("uRI"),localStorage.removeItem("username")},register:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(t)};return fetch(`${(0,o.returnAPI)()}register/`,e).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e}))},deleteUserAccount:function(t){const e={method:"DELETE",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()}};let n=`${(0,o.returnAPI)()}user/${t}`;return fetch(n,e).then(i.handleResponse).then((t=>t.message))},googleAuthentication:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({...t},null,2)},n=`${(0,o.returnAPI)()}login/auth/google`;return fetch(n,e).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e}))},facebookAuthentication:function(t,e,n){const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({accessToken:t,profile:e},null,2)},c=`${(0,o.returnAPI)()}register/auth/${e.provider}`,l=`${(0,o.returnAPI)()}login/auth/${e.provider}`;return n?fetch(l,a).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e})):fetch(c,a).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e}))},verifyToken:function(t,e){const n={method:"GET",headers:{"Content-Type":"application/json","x-access-token":t,"guest-token":""+(0,r.getGuestToken)()}};return fetch(`${(0,o.returnAPI)()}user/${e}/`,n).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e}))}
1,resendVerificationEmail:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()}};return fetch(`${(0,o.returnAPI)()}register/verificationemail/${t}`,e).then(i.handleResponse).then((t=>t))},verifyEmailCode:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":e.token,"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({emailVerificationCode:t})};return fetch(`${(0,o.returnAPI)()}register/verifyemail/${e._id}`,n).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e}))},fetchUserDetails:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()}};let n=`${(0,o.returnAPI)()}user/${t}/`;return fetch(n,e).then(i.handleResponse).then((t=>{let e=t.data;return e.token&&s(e.token,e._id,e.username),e}))},postAuthorDetails:function(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(e)};let a=`${(0,o.returnAPI)()}user/${t}/`;return fetch(a,n).then(i.handleResponse).then((t=>{let e=t.data?t.data:t.user;return e.token&&s(e.token,e._id,e.username),e}))},reportUser:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({reason:e.reason,entityType:"User",entityId:t._id})};let a=`${(0,o.returnAPI)()}report`;return fetch(a,n).then(i.handleResponse).then((t=>t))},requestTempPassword:function(t){const e={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({email:t})};let n=`${(0,o.returnAPI)()}user/forgotpassword`;return fetch(n,e).then(i.handleResponse).then((t=>t))},updatePassword:function(t,e){const n={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({newPassword:t,fpToken:e.temporaryToken?e.temporaryToken:(0,r.getToken)("fpToken")})};let a=`${(0,o.returnAPI)()}user/${e._id}/changepassword`;return fetch(a,n).then(i.handleResponse).then((t=>t.message))},fetchReferralList:function(t){const e={method:"GET",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()}};let n=`${(0,o.returnAPI)()}user/${t}/public/referrals`;return fetch(n,e).then(i.handleResponse).then((t=>t.data))},updateUserFields:c,validateSocialReferForAI:function(t,e,n){const a={method:"POST",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify({platform:e,postUrl:n})};let s=`${(0,o.returnAPI)()}social-referrals/${t}/validateSocialReferForAI`;return fetch(s,a).then(i.handleResponse).then((t=>t.data))}};function s(t,e,n){(0,r.setItem)("token",t),(0,r.setItem)("uRI",e),(0,r.setItem)("username",n)}function c(t,e){const n={method:"PUT",headers:{"Content-Type":"application/json","x-access-token":""+(0,r.getToken)(),"guest-token":""+(0,r.getGuestToken)()},body:JSON.stringify(e)};let a=`${(0,o.returnAPI)()}user/${t}/`;return fetch(a,n).then(i.handleResponse).then((t=>t.data?t.data:t.user))}},6774:function(t,e,n){"use strict";n.r(e),n.d(e,{clientStore:function(){return d},default:function(){return _},wrapper:function(){return h}});var o=n(5217),r=n(8858);function i(t){return function(e){var n=e.dispatch,o=e.getState;return function(e){return function(r){return"function"===typeof r?r(n,o,t):e(r)}}}}var a=i();a.withExtraArgument=i;var s=a,c=n(4500),l=n(778),u=n(910);const p=(0,c.createLogger)({diff:!1,predicate:(t,e)=>!0});let d,f=[s,u.default];function m(){if(d)return d;const t=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):o.qC)((0,o.md)(...f));return d=(0,o.MT)(l.default,t),d}f.push(p),f=[...f];const h=(0,r.KV)(m);var _=m()},5739:function(){},910:function(t,e,n){"use strict";n.r(e);var o=n(6354),r=n(8178),i=n(6774),a=n(288),s=n(9857);const c=(0,r.J)();c.addListener("SET_DOCK_SIDEBAR_ACTIVE_MENU",((t,e)=>{"guest"===function(){const t=localStorage&&localStorage.getItem("token"),e=localStorage&&localStorage.getItem("uRI"),n=localStorage&&localStorage.getItem("guestToken"),o=i.default.getState(),{user:r}=o;if(t&&e)return r.data.isAdmin?"admin":r.data.order&&r.data.order.plan===a.xf?"premium":r.data.order&&r.data.order.plan===a.E5?"standard":"user";if(!t&&n)return"guest"}()&&(l.includes(e.payload)?t(o.customizationActions.setContentLimitation("Guest")):t(o.customizationActions.setContentLimitation("")))})),c.addListener(s.customizationConstants.REQUEST_SAVE_LAYOUT,(t=>{t(o.uiActions.setCustomizationIsUpdatingFlag(!0))})),c.addListener(s.customizationConstants.SUCCESS_SAVE_LAYOUT,(t=>{t(o.uiActions.setCustomizationIsUpdatingFlag(!1))})),c.addListener(s.customizationConstants.FAILURE_SAVE_LAYOUT,(t=>{t(o.uiActions.setCustomizationIsUpdatingFlag(!1))})),e.default=c;const l=["db","workflow","deployMenu","exportMenu"]},85:function(t,e,n){"use strict";n.r(e);e.default=class{constructor(t,e,n){this.frameWindow=e,this.frameDocument=n,this.prefix="cdhs",this.documentHeight=this.frameDocument.documentElement.scrollHeight-this.frameDocument.documentElement.clientHeight,this.defaultOptions={root:null,element:`[data-${this.prefix}]`,enableCallback:!1,callback:`data-${this.prefix}-call`,class:`${this.prefix}-inview`,initClass:`${this.prefix}
1-init`,threshold:.1,offset:{top:0,right:0,bottom:-40,left:0},repeat:!1,mirror:!1,startEvent:"DOMContentLoaded",responsive:{}},this.options={...this.defaultOptions,...t},this.observerOptions={root:this.options.root,rootMargin:this.calculateOffset(this.options.offset),threshold:this.options.threshold},this.animationElements=this.frameDocument.querySelectorAll(this.options.element),this.callbackElements=this.frameDocument.querySelectorAll(`[${this.options.callback}]`),this.init()}init(){const t=new Event(`${this.prefix}:complete`);let e=null;const n=new IntersectionObserver((t=>{t.forEach((t=>{const e=t.target.dataset.hs;if(!this.options.repeat&&t.isIntersecting)return t.target.classList.add(this.options.class),void n.unobserve(t.target);t.target.classList.toggle(this.options.class,t.isIntersecting),t.isIntersecting&&e&&e.includes("once")&&(t.target.classList.add(this.options.class),n.unobserve(t.target))}))}),this.observerOptions);this.options.enableCallback&&(e=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const n=t.target.getAttribute(this.options.callback);this.frameWindow[n]&&this.frameWindow[n](),e.unobserve(t.target)}}))}),this.observerOptions));const o=()=>{this.animationElements.forEach((t=>{n.observe(t),t.classList.add(this.options.initClass)})),this.frameDocument.body.classList.add(`${this.prefix}-loaded`),this.frameWindow.dispatchEvent(t)};!function(t,e){"loading"!==e.readyState?t():e.addEventListener("DOMContentLoaded",t)}((function(){o()}),this.frameDocument),this.options.enableCallback&&this.frameWindow.addEventListener(this.options.startEvent,(()=>{this.callbackElements.forEach((t=>{e.observe(t)}))})),this.frameWindow.dispatchEvent(t)}update(){this.init()}on(t,e){this.frameWindow.addEventListener(t,(t=>{e(t)}),!1)}calculateOffset(t){let e={...this.defaultOptions.offset,...t},n=`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,o=`${this.documentHeight}px ${e.right}px ${e.bottom}px ${e.left}px`;return this.options.repeat&&!this.options.mirror&&(n=o),n}}},288:function(t,e,n){"use strict";n.d(e,{zo:function(){return o},xf:function(){return r},E5:function(){return i}});const o="Basic",r="Premium",i="Standard"},3681:function(t,e,n){"use strict";n.r(e),n.d(e,{saveProjectToIndexedDB:function(){return o},updateGuestCustomizationDataId:function(){return r},saveLayoutToIDB:function(){return i},updatePlaygroundContents:function(){return a}});const o=async()=>null,r=()=>{},i=async()=>{},a=async()=>null;e.default=()=>null},5633:function(t,e,n){"use strict";n.r(e),n.d(e,{useIndexedDBStore:function(){return r}});const o=async()=>{};function r(){return{getByID:async()=>{},getOneByKey:async()=>{},getManyByKey:async()=>[],getAll:async()=>[],add:o,update:o,delete:o,deleteAll:o,clear:o}}e.default=async function(){return Promise.resolve()}},6477:function(t,e){"use strict";e.Headers=self.Headers,e.Request=self.Request,e.Response=self.Response,e.fetch=self.fetch},6086:function(t){"use strict";var e=Object.assign.bind(Object);t.exports=e,t.exports.default=t.exports},1780:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(2551)}])},859:function(){},868:function(){},7347:function(){},2917:function(){},2387:function(){},9590:function(t){var e="undefined"!==typeof Element,n="function"===typeof Map,o="function"===typeof Set,r="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!==c--;)if(!i(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(u=t.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=t.entries();!(c=u.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(o&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(u=t.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!==c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"===typeof t.valueOf&&"function"===typeof a.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString&&"function"===typeof t.toString&&"function"===typeof a.toString)return t.toString()===a.toString();if((s=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!==c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=s;0!==c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!==t&&a!==a}t.exports=function(t,e){try{return i(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},9928:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=n(7423),i=(a(r),a(n(5697)));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return r.Children.only(this.props.children)}}]),e}(r.Component);l.propTypes={children:i.default.element.isRequired,contentDidMount:i.default.func.isRequired,contentDidUpdate:i.default.func.isRequired},e.default=l},1054:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FrameContextConsumer=e.FrameContextProvider=e.useFrame=e.FrameContext=void 0;var o,r=n(7423),i=(o=r)&&o.__esModule?o:{default:o};var a=void 0,s=void 0;"undefined"!==typeof document&&(a=document),"undefined"!==typeof window&&(s=window);var c=e.FrameContext=i.default.createContext({document:a,window:s}),l=(e.useFrame=function(){return i.default.useContext(c)},c.Provider),u=c.Consumer;e.FrameContextProvider=l,e.FrameContextConsumer=u},8698:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Frame=void 0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(7423),a=p(i),s=p(n(7423)),c=p(n(5697)),l=n(1054),u=p(n(9928));function p(t){return t&&t.__esModule?t:{default:t}}var d=e.Frame=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.setRef=function(t){o.nodeRef.current=t;var e=o.props.forwardedRef;"function"===typeof e?e(t):e&&(e.current=t)},o.handleLoad=function(){clearInterval(o.loadCheck),o.state.iframeLoaded||o.setState({iframeLoaded:!0})},o.loadCheck=function(){return setInterval((function(){o.handleLoad()}),500)},o._isMounted=!1,o.nodeRef=a.default.createRef(),o.state={iframeLoaded:!1},o}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.getDoc()&&this.nodeRef.current.contentWindow.addEventListener("DOMContentLoaded",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.nodeRef.current.removeEventListener("DOMContentLoaded",this.handleLoad)}},{key:"getDoc",value:function(){return this.nodeRef.current?this.nodeRef.current.contentDocument:null}},{key:"getMountTarget",value:function(){var t=this.getDoc();return this.props.mountTarget?t.querySelector(this.props.mountTarget):t.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var t=this.getDoc();if(!t)return null;var e=this.props.contentDidMount,n=this.props.contentDidUpdate,o=t.defaultView||t.parentView,r=a.default.createElement(u.default,{contentDidMount:e,contentDidUpdate:n},a.default.createElement(l.FrameContextProvider,{value:{document:t,window:o}},a.default.createElement("div",{className:"frame-content"},this.props.children))),i=this.getMountTarget();return i?[s.default.createPortal(this.props.head,this.getDoc().head),s.default.createPortal(r,i)]:null}},{key:"render",value:function(){var t=o({},this.props,{srcDoc:this.props.initialContent,children:void 0});return delete t.head,delete t.initialContent,delete t.mountTarget,delete t.contentDidMount,delete t.contentDidUpdate,delete t.forwardedRef,a.default.createElement("iframe",o({},t,{ref:this.setRef,onLoad:this.handleLoad}),this.state.iframeLoaded&&this.renderFrameContents())}}]),e}(i.Component);d.propTypes={style:c.default.object,head:c.default.node,initialContent:c.default.string,mountTarget:c.default.string,contentDidMount:c.default.func,contentDidUpdate:c.default.func,children:c.default.oneOfType([c.default.element,c.default.arrayOf(c.default.element)])},d.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},e.default=a.default.forwardRef((function(t,e){return a.default.createElement(d,o({},t,{forwardedRef:e}))}))},6561:function(t,e,n){"use strict";var o=n(8698);Object.defineProperty(e,"ZP",{enumerable:!0,get:function(){return(t=o,t&&t.__esModule?t:{default:t}).default;var t}}
1);var r=n(1054)},9921:function(t,e){"use strict";var n=60103,o=60106,r=60107,i=60108,a=60114,s=60109,c=60110,l=60112,u=60113,p=60120,d=60115,f=60116,m=60121,h=60122,_=60117,E=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),o=y("react.portal"),r=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),c=y("react.context"),l=y("react.forward_ref"),u=y("react.suspense"),p=y("react.suspense_list"),d=y("react.memo"),f=y("react.lazy"),m=y("react.block"),h=y("react.server.block"),_=y("react.fundamental"),E=y("react.debug_trace_mode"),g=y("react.legacy_hidden")}function S(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case r:case a:case i:case u:case p:return t;default:switch(t=t&&t.$$typeof){case c:case l:case f:case d:case s:return t;default:return e}}case o:return e}}}e.isContextConsumer=function(t){return S(t)===c}},9864:function(t,e,n){"use strict";t.exports=n(9921)},4742:function(t,e,n){"use strict";n.d(e,{Z:function(){return E}});var o=n(7462);function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(4942),s=n(7423),c=n(5697),l=n.n(c),u=n(1143),p=n.n(u),d=n(973),f=n.n(d),m=function(){function t(t,e,n){var o=this;this.nativeMediaQueryList=t.matchMedia(e),this.active=!0,this.cancellableListener=function(){o.matches=o.nativeMediaQueryList.matches,o.active&&n.apply(void 0,arguments)},this.nativeMediaQueryList.addListener(this.cancellableListener),this.matches=this.nativeMediaQueryList.matches}return t.prototype.cancel=function(){this.active=!1,this.nativeMediaQueryList.removeListener(this.cancellableListener)},t}(),h=l().oneOfType([l().string,l().object,l().arrayOf(l().object.isRequired)]),_=function(t){var e,n;function c(e){var n,r;return n=t.call(this,e)||this,(0,a.Z)(i(i(n)),"queries",[]),(0,a.Z)(i(i(n)),"getMatches",(function(){return function(t){var e=Object.keys(t);if(1===e.length&&"__DEFAULT__"===e[0])return t.__DEFAULT__;return t}(n.queries.reduce((function(t,e){var n,r=e.name,i=e.mqListener;return(0,o.Z)({},t,((n={})[r]=i.matches,n))}),{}))})),(0,a.Z)(i(i(n)),"updateMatches",(function(){var t=n.getMatches();n.setState((function(){return{matches:t}}),n.onChange)})),e.query||e.queries||e.query&&e.queries||p()(!1),void 0!==e.defaultMatches&&e.query&&"boolean"!==typeof e.defaultMatches&&p()(!1),void 0!==e.defaultMatches&&e.queries&&"object"!==typeof e.defaultMatches&&p()(!1),"object"!==typeof window?(r=void 0!==e.defaultMatches?e.defaultMatches:!!e.query||Object.keys(n.props.queries).reduce((function(t,e){var n;return(0,o.Z)({},t,((n={})[e]=!0,n))}),{}),n.state={matches:r},i(n)):(n.initialize(),n.state={matches:void 0!==n.props.defaultMatches?n.props.defaultMatches:n.getMatches()},n.onChange(),n)}n=t,(e=c).prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n);var l=c.prototype;return l.initialize=function(){var t=this,e=this.props.targetWindow||window;"function"!==typeof e.matchMedia&&p()(!1);var n=this.props.queries||{__DEFAULT__:this.props.query};this.queries=Object.keys(n).map((function(o){var r=n[o],i="string"!==typeof r?f()(r):r;return{name:o,mqListener:new m(e,i,t.updateMatches)}}))},l.componentDidMount=function(){this.initialize(),void 0!==this.props.defaultMatches&&this.updateMatches()},l.onChange=function(){var t=this.props.onChange;t&&t(this.state.matches)},l.componentWillUnmount=function(){this.queries.forEach((function(t){return t.mqListener.cancel()}))},l.render=function(){var t=this.props,e=t.children,n=t.render,o=this.state.matches,r
1="object"===typeof o?Object.keys(o).some((function(t){return o[t]})):o;return n?r?n(o):null:e?"function"===typeof e?e(o):(!Array.isArray(e)||e.length)&&r?s.default.Children.only(e)&&"string"===typeof s.default.Children.only(e).type?s.default.Children.only(e):s.default.cloneElement(s.default.Children.only(e),{matches:o}):null:null},c}(s.default.Component);(0,a.Z)(_,"propTypes",{defaultMatches:l().oneOfType([l().bool,l().objectOf(l().bool)]),query:h,queries:l().objectOf(h),render:l().func,children:l().oneOfType([l().node,l().func]),targetWindow:l().object,onChange:l().func});var E=_},2686:function(t,e,n){var o=n(3888),r=n(3138),i=n(1855),a=i.MUST_USE_PROPERTY,s=i.HAS_BOOLEAN_VALUE,c=i.HAS_NUMERIC_VALUE,l=i.HAS_POSITIVE_NUMERIC_VALUE,u=i.HAS_OVERLOADED_BOOLEAN_VALUE;function p(t,e){return(t&e)===e}function d(t,e,n){var o,r,i,d=t.Properties,f=t.DOMAttributeNames;for(r in d)o=f[r]||(n?r:r.toLowerCase()),i=d[r],e[o]={attributeName:o,propertyName:r,mustUseProperty:p(i,a),hasBooleanValue:p(i,s),hasNumericValue:p(i,c),hasPositiveNumericValue:p(i,l),hasOverloadedBooleanValue:p(i,u)}}var f={};d(o,f);var m={};d(r,m,!0);var h={};d(o,h),d(r,h,!0);t.exports={html:f,svg:m,properties:h,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},3888:function(t){t.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},3138:function(t){t.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xl
vendor: 7,742 bytes, line 1
1inkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},1855:function(t){t.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},9756:function(t,e,n){"use strict";n.d(e,{zt:function(){return u},$j:function(){return z},I0:function(){return Q},v9:function(){return X}});var o=n(7423),r=o.default.createContext(null);var i=function(t){t()},a=function(){return i};var s={notify:function(){},get:function(){return[]}};function c(t,e){var n,o=s;function r(){c.onStateChange&&c.onStateChange()}function i(){n||(n=e?e.addNestedSub(r):t.subscribe(r),o=function(){var t=a(),e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var o=!0,r=n={callback:t,next:null,prev:n};return r.prev?r.prev.next=r:e=r,function(){o&&null!==e&&(o=!1,r.next?r.next.prev=r.prev:n=r.prev,r.prev?r.prev.next=r.next:e=r.next)}}}}())}var c={addNestedSub:function(t){return i(),o.subscribe(t)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:r,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=s)},getListeners:function(){return o}};return c}var l="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?o.useLayoutEffect:o.useEffect;var u=function(t){var e=t.store,n=t.context,i=t.children,a=(0,o.useMemo)((function(){var t=c(e);return{store:e,subscription:t}}),[e]),s=(0,o.useMemo)((function(){return e.getState()}),[e]);l((function(){var t=a.subscription;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[a,s]);var u=n||r;return o.default.createElement(u.Provider,{value:a},i)},p=n(7462);function d(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}var f=n(8679),m=n.n(f),h=n(9864),_=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],E=["reactReduxForwardedRef"],g=[],y=[null,null];function S(t,e){var n=t[1];return[e.payload,n+1]}function T(t,e,n){l((function(){return t.apply(void 0,e)}),n)}function C(t,e,n,o,r,i,a){t.current=o,e.current=r,n.current=!1,i.current&&(i.current=null,a())}function b(t,e,n,o,r,i,a,s,c,l){if(t){var u=!1,p=null,d=function(){if(!u){var t,n,d=e.getState();try{t=o(d,r.current)}catch(f){n=f,p=f}n||(p=null),t===i.current?a.current||c():(i.current=t,s.current=t,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}}var v=function(){return[null,0]};function I(t,e){void 0===e&&(e={});var n=e,i=n.getDisplayName,a=void 0===i?function(t){return"ConnectAdvanced("+t+")"}:i,s=n.methodName,l=void 0===s?"connectAdvanced":s,u=n.renderCountProp,f=void 0===u?void 0:u,I=n.shouldHandleStateChanges,A=void 0===I||I,O=n.storeKey,R=void 0===O?"store":O,P=(n.withRef,n.forwardRef),U=void 0!==P&&P,w=n.context,L=void 0===w?r:w,x=d(n,_),D=L;return function(e){var n=e.displayName||e.name||"Component",r=a(n),i=(0,p.Z)({},x,{getDisplayName:a,methodName:l,renderCountProp:f,shouldHandleStateChanges:A,storeKey:R,displayName:r,wrappedComponentName:n,WrappedComponent:e}),s=x.pure;var u=s?o.useMemo:function(t){return t()};function _(n){var r=(0,o.useMemo)((function(){var t=n.reactReduxForwardedRef,e=d(n,E);return[n.context,t,e]}),[n]),a=r[0],s=r[1],l=r[2],f=(0,o.useMemo)((function(){return a&&a.Consumer&&(0,h.isContextConsumer)(o.default.createElement(a.Consumer,null))?a:D}),[a,D]),m=(0,o.useContext)(f),_=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var I=_?n.store:m.store,O=(0,o.useMemo)((function(){return function(e){return t(e.dispatch,i)}(I)}),[I]),R=(0,o.useMemo)((function(){if(!A)return y;var t=c(I,_?null:m.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[I,_,m]),P=R[0],U=R[1],w=(0,o.useMemo)((function(){return _?m:(0,p.Z)({},m,{subscription:P})}),[_,m,P]),L=(0,o.useReducer)(S,g,v),x=L[0][0],N=L[1];if(x&&x.error)throw x.error;var F=(0,o.useRef)(),k=(0,o.useRef)(l),M=(0,o.useRef)(),j=(0,o.useRef)(!1),B=u((function(){return M.current&&l===k.current?M.current:O(I.getState(),l)}),[I,x,l]);T(C,[k,F,j,l,B,M,U]),T(b,[A,I,P,O,k,F,j,M,U,N],[I,P,O]);var G=(0,o.useMemo)((function(){return o.default.createElement(e,(0,p.Z)({},B,{ref:s}))}),[s,e,B]);return(0,o.useMemo)((function(){return A?o.default.createElement(f.Provider,{value:w},G):G}),[f,G,w])}var I=s?o.default.memo(_):_;if(I.WrappedComponent=e,I.displayName=_.displayName=r,U){var O=o.default.forwardRef((function(t,e){return o.default.createElement(I,(0,p.Z)({},t,{reactReduxForwardedRef:e}))}));return O.displayName=r,O.WrappedComponent=e,m()(O,e)}return m()(I,e)}}function A(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function O(t,e){if(A(t,e))return!0;
1if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!A(t[n[r]],e[n[r]]))return!1;return!0}function R(t){return function(e,n){var o=t(e,n);function r(){return o}return r.dependsOnOwnProps=!1,r}}function P(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function U(t,e){return function(e,n){n.displayName;var o=function(t,e){return o.dependsOnOwnProps?o.mapToProps(t,e):o.mapToProps(t)};return o.dependsOnOwnProps=!0,o.mapToProps=function(e,n){o.mapToProps=t,o.dependsOnOwnProps=P(t);var r=o(e,n);return"function"===typeof r&&(o.mapToProps=r,o.dependsOnOwnProps=P(r),r=o(e,n)),r},o}}var w=[function(t){return"function"===typeof t?U(t):void 0},function(t){return t?void 0:R((function(t){return{dispatch:t}}))},function(t){return t&&"object"===typeof t?R((function(e){return function(t,e){var n={},o=function(o){var r=t[o];"function"===typeof r&&(n[o]=function(){return e(r.apply(void 0,arguments))})};for(var r in t)o(r);return n}(t,e)})):void 0}];var L=[function(t){return"function"===typeof t?U(t):void 0},function(t){return t?void 0:R((function(){return{}}))}];function x(t,e,n){return(0,p.Z)({},n,t,e)}var D=[function(t){return"function"===typeof t?function(t){return function(e,n){
1n.displayName;var o,r=n.pure,i=n.areMergedPropsEqual,a=!1;return function(e,n,s){var c=t(e,n,s);return a?r&&i(c,o)||(o=c):(a=!0,o=c),o}}}(t):void 0},function(t){return t?void 0:function(){return x}}],N=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function F(t,e,n,o){return function(r,i){return n(t(r,i),e(o,i),i)}}function k(t,e,n,o,r){var i,a,s,c,l,u=r.areStatesEqual,p=r.areOwnPropsEqual,d=r.areStatePropsEqual,f=!1;function m(r,f){var m=!p(f,a),h=!u(r,i,f,a);return i=r,a=f,m&&h?(s=t(i,a),e.dependsOnOwnProps&&(c=e(o,a)),l=n(s,c,a)):m?(t.dependsOnOwnProps&&(s=t(i,a)),e.dependsOnOwnProps&&(c=e(o,a)),l=n(s,c,a)):h?function(){var e=t(i,a),o=!d(e,s);return s=e,o&&(l=n(s,c,a)),l}():l}return function(r,u){return f?m(r,u):(s=t(i=r,a=u),c=e(o,a),l=n(s,c,a),f=!0,l)}}function M(t,e){var n=e.initMapStateToProps,o=e.initMapDispatchToProps,r=e.initMergeProps,i=d(e,N),a=n(t,i),s=o(t,i),c=r(t,i);return(i.pure?k:F)(a,s,c,t,i)}var j=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function B(t,e,n){for(var o=e.length-1;o>=0;o--){var r=e[o](t);if(r)return r}return function(e,o){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function G(t,e){return t===e}function H(t){var e=void 0===t?{}:t,n=e.connectHOC,o=void 0===n?I:n,r=e.mapStateToPropsFactories,i=void 0===r?L:r,a=e.mapDispatchToPropsFactories,s=void 0===a?w:a,c=e.mergePropsFactories,l=void 0===c?D:c,u=e.selectorFactory,f=void 0===u?M:u;return function(t,e,n,r){void 0===r&&(r={});var a=r,c=a.pure,u=void 0===c||c,m=a.areStatesEqual,h=void 0===m?G:m,_=a.areOwnPropsEqual,E=void 0===_?O:_,g=a.areStatePropsEqual,y=void 0===g?O:g,S=a.areMergedPropsEqual,T=void 0===S?O:S,C=d(a,j),b=B(t,i,"mapStateToProps"),v=B(e,s,"mapDispatchToProps"),I=B(n,l,"mergeProps");return o(f,(0,p.Z)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:b,initMapDispatchToProps:v,initMergeProps:I,pure:u,areStatesEqual:h,areOwnPropsEqual:E,areStatePropsEqual:y,areMergedPropsEqual:T},C))}}var z=H();function $(){return(0,o.useContext)(r)}function W(t){void 0===t&&(t=r);var e=t===r?$:function(){return(0,o.useContext)(t)};return function(){return e().store}}var V=W();function Y(t){void 0===t&&(t=r);var e=t===r?V:W(t);return function(){return e().dispatch}}var Q=Y(),K=function(t,e){return t===e};function q(t){void 0===t&&(t=r);var e=t===r?$:function(){return(0,o.useContext)(t)};return function(t,n){void 0===n&&(n=K);var r=e(),i=function(t,e,n,r){var i,a=(0,o.useReducer)((function(t){return t+1}),0)[1],s=(0,o.useMemo)((function(){return c(n,r)}),[n,r]),u=(0,o.useRef)(),p=(0,o.useRef)(),d=(0,o.useRef)(),f=(0,o.useRef)(),m=n.getState();try{if(t!==p.current||m!==d.current||u.current){var h=t(m);i=void 0!==f.current&&e(h,f.current)?f.current:h}else i=f.current}catch(_){throw u.current&&(_.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),_}return l((function(){p.current=t,d.current=m,f.current=i,u.current=void 0})),l((function(){function t(){try{var t=n.getState();if(t===d.current)return;var o=p.current(t);if(e(o,f.current))return;f.current=o,d.current=t}catch(_){u.current=_}a()}return s.onStateChange=t,s.trySubscribe(),t(),function(){return s.tryUnsubscribe()}}),[n,s]),i}(t,n,r.store,r.subscription);return(0,o.useDebugValue)(i),i}}var J,X=q();J=o.unstable_batchedUpdates,i=J},3524:function(t,e,n){"use strict";var o,r=n(7423),i=(o=r)&&"object"===typeof o&&"default"in o?o.default:o;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!==typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");
1return function(o){if("function"!==typeof o)throw new Error("Expected WrappedComponent to be a React component.");var c,l=[];function u(){c=t(l.map((function(t){return t.props}))),p.canUseDOM?e(c):n&&(c=n(c))}var p=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.peek=function(){return c},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=c;return c=void 0,l=[],t};var a=r.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var t=l.indexOf(this);l.splice(t,1),u()},a.render=function(){return i.createElement(o,this.props)},r}(r.PureComponent);return a(p,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(o)+")"),a(p,"canUseDOM",s),p}}},782:function(t,e,n){"use strict";n.d(e,{Ix:function(){return P},LG:function(){return R},Am:function(){return M}});var o=n(7423);function r(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}var i=function(){for(var t,e,n=0,o="";n<arguments.length;)(t=arguments[n++])&&(e=r(t))&&(o&&(o+=" "),o+=e);return o};function a(t){return"number"==typeof t&&!isNaN(t)}function s(t){return"boolean"==typeof t}function c(t){return"string"==typeof t}function l(t){return"function"==typeof t}function u(t){return c(t)||l(t)?t:null}function p(t){return 0===t||t}function d(t){return(0,o.isValidElement)(t)||c(t)||l(t)||a(t)}const f={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},m={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function h(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=t;return function(t){let{children:s,position:c,preventExitTransition:l,done:u,nodeRef:p,isIn:d}=t;const f=r?e+"--"+c:e,m=r?n+"--"+c:n,h=(0,o.useRef)(),_=(0,o.useRef)(0);function E(t){if(t.target!==p.current)return;const e=p.current;e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",E),e.removeEventListener("animationcancel",E),0===_.current&&"animationcancel"!==t.type&&(e.className=h.current)}function g(){const t=p.current;t.removeEventListener("animationend",g),i?function(t,e,n){void 0===n&&(n=300);const{scrollHeight:o,style:r}=t;requestAnimationFrame((()=>{r.minHeight="initial",r.height=o+"px",r.transition="all "+n+"ms",requestAnimationFrame((()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,n)}))}))}(t,u,a):u()}return(0,o.useLayoutEffect)((()=>{!function(){const t=p.current;h.current=t.className,t.className+=" "+f,t.addEventListener("animationend",E),t.addEventListener("animationcancel",E)}()}),[]),(0,o.useEffect)((()=>{d||(l?g():function(){_.current=1;const t=p.current;t.className+=" "+m,t.addEventListener("animationend",g)}())}),[d]),o.default.createElement(o.default.Fragment,null,s)}}function _(t,e){return{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}}const E={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter((t=>t!==e));return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach((e=>{const n=setTimeout((()=>{e(...[].slice.call(arguments,1))}),0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)}))}},g=t=>{let{theme:e,type:n,...r}=t;return o.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":"var(--toastify-icon-color-"+n+")",...r})},y={info:function(t){return o.default.createElement(g,{...t},o.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return o.default.createElement(g,{...t},o.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return o.default.createElement(g,{...t},o.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return o.default.createElement(g,{...t},o.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return o.default.createElement("div",{className:"Toastify__spinner"})}};function S(t){const[,e]=(0,o.useReducer)((t=>
1t+1),0),[n,r]=(0,o.useState)([]),i=(0,o.useRef)(null),f=(0,o.useRef)(new Map).current,m=t=>-1!==n.indexOf(t),h=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:m,getToast:t=>f.get(t)}).current;function g(t){let{containerId:e}=t;const{limit:n}=h.props;!n||e&&h.containerId!==e||(h.count-=h.queue.length,h.queue=[])}function S(t){r((e=>p(t)?e.filter((e=>e!==t)):[]))}function T(){const{toastContent:t,toastProps:e,staleId:n}=h.queue.shift();b(t,e,n)}function C(t,n){let{delay:r,staleId:m,...g}=n;if(!d(t)||function(t){return!i.current||h.props.enableMultiContainer&&t.containerId!==h.props.containerId||f.has(t.toastId)&&null==t.updateId}(g))return;const{toastId:C,updateId:v,data:I}=g,{props:A}=h,O=()=>S(C),R=null==v;R&&h.count++;const P={toastId:C,updateId:v,data:I,containerId:g.containerId,isLoading:g.isLoading,theme:g.theme||A.theme,icon:null!=g.icon?g.icon:A.icon,isIn:!1,key:g.key||h.toastKey++,type:g.type,closeToast:O,closeButton:g.closeButton,rtl:A.rtl,position:g.position||A.position,transition:g.transition||A.transition,className:u(g.className||A.toastClassName),bodyClassName:u(g.bodyClassName||A.bodyClassName),style:g.style||A.toastStyle,bodyStyle:g.bodyStyle||A.bodyStyle,onClick:g.onClick||A.onClick,pauseOnHover:s(g.pauseOnHover)?g.pauseOnHover:A.pauseOnHover,pauseOnFocusLoss:s(g.pauseOnFocusLoss)?g.pauseOnFocusLoss:A.pauseOnFocusLoss,draggable:s(g.draggable)?g.draggable:A.draggable,draggablePercent:g.draggablePercent||A.draggablePercent,draggableDirection:g.draggableDirection||A.draggableDirection,closeOnClick:s(g.closeOnClick)?g.closeOnClick:A.closeOnClick,progressClassName:u(g.progressClassName||A.progressClassName),progressStyle:g.progressStyle||A.progressStyle,autoClose:!g.isLoading&&(U=g.autoClose,w=A.autoClose,!1===U||a(U)&&U>0?U:w),hideProgressBar:s(g.hideProgressBar)?g.hideProgressBar:A.hideProgressBar,progress:g.progress,role:g.role||A.role,deleteToast(){const t=_(f.get(C),"removed");f.delete(C),E.emit(4,t);const n=h.queue.length;if(h.count=p(C)?h.count-1:h.count-h.displayedToast,h.count<0&&(h.count=0),n>0){const t=p(C)?1:h.props.limit;if(1===n||1===t)h.displayedToast++,T();else{const e=t>n?n:t;h.displayedToast=e;for(let t=0;t<e;t++)T()}}else e()}};var U,w;P.iconOut=function(t){let{theme:e,type:n,isLoading:r,icon:i}=t,s=null;const u={theme:e,type:n};return!1===i||(l(i)?s=i(u):(0,o.isValidElement)(i)?s=(0,o.cloneElement)(i,u):c(i)||a(i)?s=i:r?s=y.spinner():(t=>t in y)(n)&&(s=y[n](u))),s}(P),l(g.onOpen)&&(P.onOpen=g.onOpen),l(g.onClose)&&(P.onClose=g.onClose),P.closeButton=A.closeButton,!1===g.closeButton||d(g.closeButton)?P.closeButton=g.closeButton:!0===g.closeButton&&(P.closeButton=!d(A.closeButton)||A.closeButton);let L=t;(0,o.isValidElement)(t)&&!c(t.type)?L=(0,o.cloneElement)(t,{closeToast:O,toastProps:P,data:I}):l(t)&&(L=t({closeToast:O,toastProps:P,data:I})),A.limit&&A.limit>0&&h.count>A.limit&&R?h.queue.push({toastContent:L,toastProps:P,staleId:m}):a(r)?setTimeout((()=>{b(L,P,m)}),r):b(L,P,m)}function b(t,e,n){const{toastId:o}=e;n&&f.delete(n);const i={content:t,props:e};f.set(o,i),r((t=>[...t,o].filter((t=>t!==n)))),E.emit(4,_(i,null==i.props.updateId?"added":"updated"))}return(0,o.useEffect)((()=>(h.containerId=t.containerId,E.cancelEmit(3).on(0,C).on(1,(t=>i.current&&S(t))).on(5,g).emit(2,h),()=>E.emit(3,h))),[]),(0,o.useEffect)((()=>{h.props=t,h.isToastActive=m,h.displayedToast=n.length})),{getToastToRender:function(e){const n=new Map,o=Array.from(f.values());return t.newestOnTop&&o.reverse(),o.forEach((t=>{const{position:e}=t.props;n.has(e)||n.set(e,[]),n.get(e).push(t)})),Array.from(n,(t=>e(t[0],t[1])))},containerRef:i,isToastActive:m}}function T(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function C(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function b(t){const[e,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)(!1),a=(0,o.useRef)(null),s=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,o.useRef)(t),{autoClose:u,pauseOnHover:p,closeToast:d,onClick:f,closeOnClick:m}=t;function h(e){if(t.draggable){s.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=T(e.nativeEvent),s.y=C(e.nativeEvent),"x"===t.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function _(){if(s.boundingRect){const{top:e,bottom:n,left:o,right:r}=s.boundingRect;t.pauseOnHover&&s.x>=o&&s.x<=r&&s.y>=e&&s.y<=n?g():E()}}function E(){n(!0)}function g(){n(!1)}function y(n){const o=a.current;s.canDrag&&o&&(s.didMove=!0,e&&g(),s.x=T(n),s.y=C(n),s.delta="x"===t.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),o.style.transform="translate"+t.draggableDirection+"("+s.delta+"px)",o.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function S(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S);const e=a.current;if(s.canDrag&&s.didMove&&e){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform="translate"+t.draggableDirection+"(0)",e.style.opacity="1"}}(0,o.useEffect)((()=>{c.current=t})),(0,o.useEffect)((()=>(a.current&&a.current.addEventListener("d",E,{once:!0}),l(t.onOpen)&&t.onOpen((0,o.isValidElement)(t.children)&&t.children.props),()=>{const t=c.current;l(t.onClose)&&t.onClose((0,o.isValidElement)(t.children)&&t.children.props)})),[]),(0,o.useEffect)((()=>(t.pauseOnFocusLoss&&(document.hasFocus()||g(),window.addEventListener("focus",E),window.addEventListener("blur",g)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",g))})),[t.pauseOnFocusLoss]);const b={onMouseDown:h,onTouchStart:h,onMouseUp:_,onTouchEnd:_};return u&&p&&(b.onMouseEnter=g,b.onMouseLeave=E),m&&(b.onClick=t=>{f&&f(t),s.canCloseOnClick&&d()}),{playToast:E,pauseToast:g,isRunning:e,preventExitTransition:r,toastRef:a,eventHandlers:b}}function v(t){let{closeToast:e,theme:n,ariaLabel:r="close"}=t;return o.default.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:t=>{t.stopPropagation(),e(t)},"aria-label":r},o.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},o.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function I(t){let{delay:e,isRunning:n,closeToast:r,type:a,hide:s,className:c,style:u,controlledProgress:p,progress:d,rtl:f,isIn:m,theme:h}=t;const _={...u,animationDuration:e+"ms",animationPlayState:n?"running":"paused",opacity:s?0:1}
1;p&&(_.transform="scaleX("+d+")");const E=i("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+h,"Toastify__progress-bar--"+a,{"Toastify__progress-bar--rtl":f}),g=l(c)?c({rtl:f,type:a,defaultClassName:E}):i(E,c);return o.default.createElement("div",{role:"progressbar","aria-hidden":s?"true":"false","aria-label":"notification timer",className:g,style:_,[p&&d>=1?"onTransitionEnd":"onAnimationEnd"]:p&&d<1?null:()=>{m&&r()}})}I.defaultProps={type:m.DEFAULT,hide:!1};const A=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:a}=b(t),{closeButton:s,children:c,autoClose:u,onClick:p,type:d,hideProgressBar:f,closeToast:m,transition:h,position:_,className:E,style:g,bodyClassName:y,bodyStyle:S,progressClassName:T,progressStyle:C,updateId:A,role:O,progress:R,rtl:P,toastId:U,deleteToast:w,isIn:L,isLoading:x,iconOut:D,theme:N}=t,F=i("Toastify__toast","Toastify__toast-theme--"+N,"Toastify__toast--"+d,{"Toastify__toast--rtl":P}),k=l(E)?E({rtl:P,position:_,type:d,defaultClassName:F}):i(F,E),M=!!R,j={closeToast:m,type:d,theme:N};let B=null;return!1===s||(B=l(s)?s(j):o.default.isValidElement(s)?o.default.cloneElement(s,j):v(j)),o.default.createElement(h,{isIn:L,done:w,position:_,preventExitTransition:n,nodeRef:r},o.default.createElement("div",{id:U,onClick:p,className:k,...a,style:g,ref:r},o.default.createElement("div",{...L&&{role:O},className:l(y)?y({type:d}):i("Toastify__toast-body",y),style:S},null!=D&&o.default.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!x})},D),o.default.createElement("div",null,c)),B,(u||M)&&o.default.createElement(I,{...A&&!M?{key:"pb-"+A}:{},rtl:P,theme:N,delay:u,isRunning:e,isIn:L,closeToast:m,hide:f,type:d,style:C,className:T,controlledProgress:M,progress:R})))},O=h({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),R=(h({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),h({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"})),P=(h({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"}),(0,o.forwardRef)(((t,e)=>{const{getToastToRender:n,containerRef:r,isToastActive:a}=S(t),{className:s,style:c,rtl:p,containerId:d}=t;function f(t){const e=i("Toastify__toast-container","Toastify__toast-container--"+t,{"Toastify__toast-container--rtl":p});return l(s)?s({position:t,rtl:p,defaultClassName:e}):i(e,u(s))}return(0,o.useEffect)((()=>{e&&(e.current=r.current)}),[]),o.default.createElement("div",{ref:r,className:"Toastify",id:d},n(((t,e)=>{const n=e.length?{...c}:{...c,pointerEvents:"none"};return o.default.createElement("div",{className:f(t),style:n,key:"container-"+t},e.map(((t,n)=>{let{content:r,props:i}=t;return o.default.createElement(A,{...i,isIn:a(i.toastId),style:{...i.style,"--nth":n+1,"--len":e.length},key:"toast-"+i.key},r)})))})))})));P.displayName="ToastContainer",P.defaultProps={position:f.TOP_RIGHT,transition:O,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:v,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let U,w=new Map,L=[];function x(){return Math.random().toString(36).substring(2,9)}function D(t){return t&&(c(t.toastId)||a(t.toastId))?t.toastId:x()}function N(t,e){return w.size>0?E.emit(0,t,e):L.push({content:t,options:e}),e.toastId}function F(t,e){return{...e,type:e&&e.type||t,toastId:D(e)}}function k(t){return(e,n)=>N(e,F(t,n))}function M(t,e){return N(t,F(m.DEFAULT,e))}M.loading=(t,e)=>N(t,F(m.DEFAULT,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),M.promise=function(t,e,n){let o,{pending:r,error:i,success:a}=e;r&&(o=c(r)?M.loading(r,n):M.loading(r.render,{...n,...r}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},u=(t,e,r)=>{if(null==e)return void M.dismiss(o);const i={type:t,...s,...n,data:r},a=c(e)?{render:e}:e;return o?M.update(o,{...i,...a}
1):M(a.render,{...i,...a}),r},p=l(t)?t():t;return p.then((t=>u("success",a,t))).catch((t=>u("error",i,t))),p},M.success=k(m.SUCCESS),M.info=k(m.INFO),M.error=k(m.ERROR),M.warning=k(m.WARNING),M.warn=M.warning,M.dark=(t,e)=>N(t,F(m.DEFAULT,{theme:"dark",...e})),M.dismiss=t=>E.emit(1,t),M.clearWaitingQueue=function(t){return void 0===t&&(t={}),E.emit(5,t)},M.isActive=t=>{let e=!1;return w.forEach((n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)})),e},M.update=function(t,e){void 0===e&&(e={}),setTimeout((()=>{const n=function(t,e){let{containerId:n}=e;const o=w.get(n||U);return o?o.getToast(t):null}(t,e);if(n){const{props:o,content:r}=n,i={...o,...e,toastId:e.toastId||t,updateId:x()};i.toastId!==t&&(i.staleId=t);const a=i.render||r;delete i.render,N(a,i)}}),0)},M.done=t=>{M.update(t,{progress:1})},M.onChange=t=>(E.on(4,t),()=>{E.off(4,t)}),M.POSITION=f,M.TYPE=m,E.on(2,(t=>{U=t.containerId||t,w.set(U,t),L.forEach((t=>{E.emit(0,t.content,t.options)})),L=[]})).on(3,(t=>{w.delete(t.containerId||t),0===w.size&&E.off(0).off(1).off(5)}))},8178:function(t,e){"use strict";e.J=function(){var t=[],e=function(e){var n=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];setTimeout((function(){return e.dispatch.apply(e,n)}),0)};return function(e){return function(o){t.filter((function(t){var e=t.type;return e===o.type||e.constructor===Array&&e.indexOf(o.type)>-1})).map((function(t){return t.listener(n,o)})),e(o)}}};return e.addListener=function(e,n){t.push(function(t,e){return{type:t,listener:e}}(e,n))},e.addListeners=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];o.map((function(n){return e.addListener(t,n)}
1))},e}},4500:function(t,e,n){!function(t){"use strict";function e(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function o(t,e){Object.defineProperty(this,"kind",{value:t,enumerable:!0}),e&&e.length&&Object.defineProperty(this,"path",{value:e,enumerable:!0})}function r(t,e,n){r.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:e,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(t,e){i.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:e,enumerable:!0})}function a(t,e){a.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:e,enumerable:!0})}function s(t,e,n){s.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:e,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function c(t,e,n){var o=t.slice((n||e)+1||t.length);return t.length=e<0?t.length+e:e,t.push.apply(t,o),t}function l(t){var e="undefined"==typeof t?"undefined":U(t);return"object"!==e?e:t===Math?"math":null===t?"null":Array.isArray(t)?"array":"[object Date]"===Object.prototype.toString.call(t)?"date":"function"==typeof t.toString&&/^\/.*\//.test(t.toString())?"regexp":"object"}function u(t,e,n,o,p,d,f){f=f||[];var m=(p=p||[]).slice(0);if("undefined"!=typeof d){if(o){if("function"==typeof o&&o(m,d))return;if("object"===("undefined"==typeof o?"undefined":U(o))){if(o.prefilter&&o.prefilter(m,d))return;if(o.normalize){var h=o.normalize(m,d,t,e);h&&(t=h[0],e=h[1])}}}m.push(d)}"regexp"===l(t)&&"regexp"===l(e)&&(t=t.toString(),e=e.toString());var _="undefined"==typeof t?"undefined":U(t),E="undefined"==typeof e?"undefined":U(e),g="undefined"!==_||f&&f[f.length-1].lhs&&f[f.length-1].lhs.hasOwnProperty(d),y="undefined"!==E||f&&f[f.length-1].rhs&&f[f.length-1].rhs.hasOwnProperty(d);if(!g&&y)n(new i(m,e));else if(!y&&g)n(new a(m,t));else if(l(t)!==l(e))n(new r(m,t,e));else if("date"===l(t)&&t-e!==0)n(new r(m,t,e));else if("object"===_&&null!==t&&null!==e)if(f.filter((function(e){return e.lhs===t})).length)t!==e&&n(new r(m,t,e));else{if(f.push({lhs:t,rhs:e}),Array.isArray(t)){var S;for(t.length,S=0;S<t.length;S++)S>=e.length?n(new s(m,S,new a(void 0,t[S]))):u(t[S],e[S],n,o,m,S,f);for(;S<e.length;)n(new s(m,S,new i(void 0,e[S++])))}else{var T=Object.keys(t),C=Object.keys(e);T.forEach((function(r,i){var a=C.indexOf(r);a>=0?(u(t[r],e[r],n,o,m,r,f),C=c(C,a)):u(t[r],void 0,n,o,m,r,f)})),C.forEach((function(t){u(void 0,e[t],n,o,m,t,f)}))}f.length=f.length-1}else t!==e&&("number"===_&&isNaN(t)&&isNaN(e)||n(new r(m,t,e)))}function p(t,e,n,o){return o=o||[],u(t,e,(function(t){t&&o.push(t)}),n),o.length?o:void 0}function d(t,e,n){if(n.path&&n.path.length){var o,r=t[e],i=n.path.length-1;for(o=0;o<i;o++)r=r[n.path[o]];switch(n.kind){case"A":d(r[n.path[o]],n.index,n.item);break;case"D":delete r[n.path[o]];break;case"E":case"N":r[n.path[o]]=n.rhs}}else switch(n.kind){case"A":d(t[e],n.index,n.item);break;case"D":t=c(t,e);break;case"E":case"N":t[e]=n.rhs}return t}function f(t,e,n){if(t&&e&&n&&n.kind){for(var o=t,r=-1,i=n.path?n.path.length-1:0;++r<i;)"undefined"==typeof o[n.path[r]]&&(o[n.path[r]]="number"==typeof n.path[r]?[]:{}),o=o[n.path[r]];switch(n.kind){case"A":d(n.path?o[n.path[r]]:o,n.index,n.item);break;case"D":delete o[n.path[r]];break;case"E":case"N":o[n.path[r]]=n.rhs}}}function m(t,e,n){if(n.path&&n.path.length){var o,r=t[e],i=n.path.length-1;for(o=0;o<i;o++)r=r[n.path[o]];switch(n.kind){case"A":m(r[n.path[o]],n.index,n.item);break;case"D":case"E":r[n.path[o]]=n.lhs;break;case"N":delete r[n.path[o]]}}else switch(n.kind){case"A":m(t[e],n.index,n.item);break;case"D":case"E":t[e]=n.lhs;break;case"N":t=c(t,e)}return t}function h(t,e,n){if(t&&e&&n&&n.kind){var o,r,i=t;for(r=n.path.length-1,o=0;o<r;o++)"undefined"==typeof i[n.path[o]]&&(i[n.path[o]]={}),i=i[n.path[o]];switch(n.kind){case"A":m(i[n.path[o]],n.index,n.item);break;case"D":case"E":i[n.path[o]]=n.lhs;break;case"N":delete i[n.path[o]]}}}function _(t,e,n){t&&e&&u(t,e,(function(o){n&&!n(t,e,o)||f(t,e,o)}))}function E(t){return"color: "+x[t].color+"; font-weight: bold"}function g(t){var e=t.kind,n=t.path,o=t.lhs,r=t.rhs,i=t.index,a=t.item;switch(e){case"E":return[n.join("."),o,"\u2192",r];case"N":return[n.join("."),r];case"D":return[n.join(".")];case"A":return[n.join(".")+"["+i+"]",a];default:return[]}}function y(t,e,n,o){var r=p(t,e);try{o?n.groupCollapsed("diff"):n.group("diff")}catch(t){n.log("diff")}r?r.forEach((function(t){var e=t.kind,o=g(t);n.log.apply(n,["%c "+x[e].text,E(e)].concat(w(o)))})):n.log("\u2014\u2014 no diff \u2014\u2014");try{n.groupEnd()}catch(t){n.log("\u2014\u2014 diff end \u2014\u2014 ")}}function S(t,e,n,o){switch("undefined"==typeof t?"undefined":U(t)){case"object":return"function"==typeof t[o]?t[o].apply(t,w(n)):t[o
1];case"function":return t(e);default:return t}}function T(t){var e=t.timestamp,n=t.duration;return function(t,o,r){var i=["action"];return i.push("%c"+String(t.type)),e&&i.push("%c@ "+o),n&&i.push("%c(in "+r.toFixed(2)+" ms)"),i.join(" ")}}function C(t,e){var n=e.logger,o=e.actionTransformer,r=e.titleFormatter,i=void 0===r?T(e):r,a=e.collapsed,s=e.colors,c=e.level,l=e.diff,u="undefined"==typeof e.titleFormatter;t.forEach((function(r,p){var d=r.started,f=r.startedTime,m=r.action,h=r.prevState,_=r.error,E=r.took,g=r.nextState,T=t[p+1];T&&(g=T.prevState,E=T.started-d);var C=o(m),b="function"==typeof a?a((function(){return g}),m,r):a,v=R(f),I=s.title?"color: "+s.title(C)+";":"",A=["color: gray; font-weight: lighter;"];A.push(I),e.timestamp&&A.push("color: gray; font-weight: lighter;"),e.duration&&A.push("color: gray; font-weight: lighter;");var O=i(C,v,E);try{b?s.title&&u?n.groupCollapsed.apply(n,["%c "+O].concat(A)):n.groupCollapsed(O):s.title&&u?n.group.apply(n,["%c "+O].concat(A)):n.group(O)}catch(t){n.log(O)}var P=S(c,C,[h],"prevState"),U=S(c,C,[C],"action"),w=S(c,C,[_,h],"error"),L=S(c,C,[g],"nextState");if(P)if(s.prevState){var x="color: "+s.prevState(h)+"; font-weight: bold";n[P]("%c prev state",x,h)}else n[P]("prev state",h);if(U)if(s.action){var D="color: "+s.action(C)+"; font-weight: bold";n[U]("%c action    ",D,C)}else n[U]("action    ",C);if(_&&w)if(s.error){var N="color: "+s.error(_,h)+"; font-weight: bold;";n[w]("%c error     ",N,_)}else n[w]("error     ",_);if(L)if(s.nextState){var F="color: "+s.nextState(g)+"; font-weight: bold";n[L]("%c next state",F,g)}else n[L]("next state",g);l&&y(h,g,n,b);try{n.groupEnd()}catch(t){n.log("\u2014\u2014 log end \u2014\u2014")}}))}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},D,t),n=e.logger,o=e.stateTransformer,r=e.errorTransformer,i=e.predicate,a=e.logErrors,s=e.diffPredicate;if("undefined"==typeof n)return function(){return function(t){return function(e){return t(e)}}};if(t.getState&&t.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n  reducer,\n  applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n  // ...options\n});\nconst store = createStore(\n  reducer,\n  applyMiddleware(logger)\n)\n"),function(){return function(t){return function(e){return t(e)}}};var c=[];return function(t){var n=t.getState;return function(t){return function(l){if("function"==typeof i&&!i(n,l))return t(l);var u={};c.push(u),u.started=P.now(),u.startedTime=new Date,u.prevState=o(n()),u.action=l;var p=void 0;if(a)try{p=t(l)}catch(t){u.error=r(t)}else p=t(l);u.took=P.now()-u.started,u.nextState=o(n());var d=e.diff&&"function"==typeof s?s(n,l):e.diff;if(C(c,Object.assign({},e,{diff:d})),c.length=0,u.error)throw u.error;return p}}}}var v,I,A=function(t,e){return new Array(e+1).join(t)},O=function(t,e){return A("0",e-t.toString().length)+t},R=function(t){return O(t.getHours(),2)+":"+O(t.getMinutes(),2)+":"+O(t.getSeconds(),2)+"."+O(t.getMilliseconds(),3)},P="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},L=[];v="object"===("undefined"==typeof n.g?"undefined":U(n.g))&&n.g?n.g:"undefined"!=typeof window?window:{},(I=v.DeepDiff)&&L.push((function(){"undefined"!=typeof I&&v.DeepDiff===p&&(v.DeepDiff=I,I=void 0)})),e(r,o),e(i,o),e(a,o),e(s,o),Object.defineProperties(p,{diff:{value:p,enumerable:!0},observableDiff:{value:u,enumerable:!0},applyDiff:{value:_,enumerable:!0},applyChange:{value:f,enumerable:!0},revertChange:{value:h,enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof I},enumerable:!0},noConflict:{value:function(){return L&&(L.forEach((function(t){t()})),L=null),p},enumerable:!0}});var x={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},D={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(t){return t},actionTransformer:function(t){return t},errorTransformer:function(t){return t},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},N=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.dispatch,n=t.getState;return"function"==typeof e||"function"==typeof n?b()({dispatch:e,getState:n}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=D,t.createLogger=b,t.logger=N,t.default=N,Object.defineProperty(t,"__esMo
1dule",{value:!0})}(e)},5217:function(t,e,n){"use strict";n.d(e,{md:function(){return m},UY:function(){return d},qC:function(){return f},MT:function(){return p}});var o=n(4942);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var s="function"===typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function u(t){if("object"!==typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function p(t,e,n){var o;if("function"===typeof e&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(a(0));if("function"===typeof e&&"undefined"===typeof n&&(n=e,e=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(a(1));return n(p)(t,e)}if("function"!==typeof t)throw new Error(a(2));var r=t,i=e,c=[],d=c,f=!1;function m(){d===c&&(d=c.slice())}function h(){if(f)throw new Error(a(3));return i}function _(t){if("function"!==typeof t)throw new Error(a(4));if(f)throw new Error(a(5));var e=!0;return m(),d.push(t),function(){if(e){if(f)throw new Error(a(6));e=!1,m();var n=d.indexOf(t);d.splice(n,1),c=null}}}function E(t){if(!u(t))throw new Error(a(7));if("undefined"===typeof t.type)throw new Error(a(8));if(f)throw new Error(a(9));try{f=!0,i=r(i,t)}finally{f=!1}for(var e=c=d,n=0;n<e.length;n++){(0,e[n])()}return t}function g(t){if("function"!==typeof t)throw new Error(a(10));r=t,E({type:l.REPLACE})}function y(){var t,e=_;return(t={subscribe:function(t){if("object"!==typeof t||null===t)throw new Error(a(11));function n(){t.next&&t.next(h())}return n(),{unsubscribe:e(n)}}})[s]=function(){return this},t}return E({type:l.INIT}),(o={dispatch:E,subscribe:_,getState:h,replaceReducer:g})[s]=y,o}function d(t){for(var e=Object.keys(t),n={},o=0;o<e.length;o++){var r=e[o];0,"function"===typeof t[r]&&(n[r]=t[r])}var i,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if("undefined"===typeof n(void 0,{type:l.INIT}))throw new Error(a(12));if("undefined"===typeof n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(c){i=c}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var o=!1,r={},c=0;c<s.length;c++){var l=s[c],u=n[l],p=t[l],d=u(p,e);if("undefined"===typeof d){e&&e.type;throw new Error(a(14))}r[l]=d,o=o||d!==p}return(o=o||s.length!==Object.keys(t).length)?r:t}}function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function m(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),o=function(){throw new Error(a(15))},r={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=e.map((function(t){return t(r)}));return o=f.apply(void 0,s)(n.dispatch),i(i({},n),{},{dispatch:o})}}}},1697:function(t,e,n){"use strict";t.exports=n(3188)()},3188:function(t,e,n){"use strict";var o=n(8764).Buffer;function r(t){return t instanceof o?o.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){const e=[],n=[],o=new Map;if(o.set(Date,(t=>new Date(t))),o.set(Map,((t,e)=>new Map(a(Array.from(t),e)))),o.set(Set,((t,e)=>new Set(a(Array.from(t),e)))),t.constructorHandlers)for(const r of t.constructorHandlers)o.set(r[0],r[1]);let i=null;return t.proto?c:s;function a(t,a){const s=Object.keys(t),c=new Array(s.length);for(let l=0;l<s.length;l++){const u=s[l],p=t[u];
1if("object"!==typeof p||null===p)c[u]=p;else if(p.constructor!==Object&&(i=o.get(p.constructor)))c[u]=i(p,a);else if(ArrayBuffer.isView(p))c[u]=r(p);else{const t=e.indexOf(p);c[u]=-1!==t?n[t]:a(p)}}return c}function s(t){if("object"!==typeof t||null===t)return t;if(Array.isArray(t))return a(t,s);if(t.constructor!==Object&&(i=o.get(t.constructor)))return i(t,s);const c={};e.push(t),n.push(c);for(const a in t){if(!1===Object.hasOwnProperty.call(t,a))continue;const l=t[a];if("object"!==typeof l||null===l)c[a]=l;else if(l.constructor!==Object&&(i=o.get(l.constructor)))c[a]=i(l,s);else if(ArrayBuffer.isView(l))c[a]=r(l);else{const t=e.indexOf(l);c[a]=-1!==t?n[t]:s(l)}}return e.pop(),n.pop(),c}function c(t){if("object"!==typeof t||null===t)return t;if(Array.isArray(t))return a(t,c);if(t.constructor!==Object&&(i=o.get(t.constructor)))return i(t,c);const s={};e.push(t),n.push(s);for(const a in t){const l=t[a];if("object"!==typeof l||null===l)s[a]=l;else if(l.constructor!==Object&&(i=o.get(l.constructor)))s[a]=i(l,c);else if(ArrayBuffer.isView(l))s[a]=r(l);else{const t=e.indexOf(l);s[a]=-1!==t?n[t]:c(l)}}return e.pop(),n.pop(),s}}(t);const e=new Map;if(e.set(Date,(t=>new Date(t))),e.set(Map,((t,e)=>new Map(o(Array.from(t),e)))),e.set(Set,((t,e)=>new Set(o(Array.from(t),e)))),t.constructorHandlers)for(const r of t.constructorHandlers)e.set(r[0],r[1]);let n=null;return t.proto?function t(i){if("object"!==typeof i||null===i)return i;if(Array.isArray(i))return o(i,t);if(i.constructor!==Object&&(n=e.get(i.constructor)))return n(i,t);const a={};for(const o in i){const s=i[o];"object"!==typeof s||null===s?a[o]=s:s.constructor!==Object&&(n=e.get(s.constructor))?a[o]=n(s,t):ArrayBuffer.isView(s)?a[o]=r(s):a[o]=t(s)}return a}:function t(i){if("object"!==typeof i||null===i)return i;if(Array.isArray(i))return o(i,t);if(i.constructor!==Object&&(n=e.get(i.constructor)))return n(i,t);const a={};for(const o in i){if(!1===Object.hasOwnProperty.call(i,o))continue;const s=i[o];"object"!==typeof s||null===s?a[o]=s:s.constructor!==Object&&(n=e.get(s.constructor))?a[o]=n(s,t):ArrayBuffer.isView(s)?a[o]=r(s):a[o]=t(s)}return a};function o(t,o){const i=Object.keys(t),a=new Array(i.length);for(let s=0;s<i.length;s++){const c=i[s],l=t[c];"object"!==typeof l||null===l?a[c]=l:l.constructor!==Object&&(n=e.get(l.constructor))?a[c]=n(l,o):ArrayBuffer.isView(l)?a[c]=r(l):a[c]=o(l)}return a}}},1169:function(t){t.exports=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})).toLowerCase()}},1476:function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0;var r=o(n(7848)),i=n(6678);e.default=function(t,e){var n={};return t&&"string"===typeof t?(r.default(t,(function(t,o){t&&o&&(n[i.camelCase(t,e)]=o)})),n):n}},6678:function(t,e){"use strict";e.__esModule=!0,e.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=function(t,e){return e.toUpperCase()},s=function(t,e){return e+"-"};e.camelCase=function(t,e){return void 0===e&&(e={}),function(t){return!t||r.test(t)||n.test(t)}(t)?t:(t=t.toLowerCase(),e.reactCompat||(t=t.replace(i,s)),t.replace(o,a))}},7848:function(t,e,n){var o=n(8139);t.exports=function(t,e){var n,r=null;if(!t||"string"!==typeof t)return r;for(var i,a,s=o(t),c="function"===typeof e,l=0,u=s.length;l<u;l++)i=(n=s[l]).property,a=n.value,c?e(i,a,n):a&&(r||(r={}),r[i]=a);return r}},3774:function(t,e){!function(t){"use strict";function e(t,e,n,o){var r,i=!1,a=0;function s(){r&&clearTimeout(r)}function c(){s(),i=!0}function l(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var p=this,d=Date.now()-a;function f(){a=Date.now(),n.apply(p,l)}function m(){r=void 0}i||(o&&!r&&f(),s(),void 0===o&&d>t?f():!0!==e&&(r=setTimeout(o?m:f,void 0===o?t-d:t)))}return"boolean"!==typeof e&&(o=n,n=e,e=void 0),l.cancel=c,l}function n(t,n,o){return void 0===o?e(t,n,!1):e(t,o,!1!==n)}t.debounce=n,t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)},7632:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var o={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let r;const i=new Uint8Array(16);function a(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const s=[];for(let u=0;u<256;++u)s.push((u+256).toString(16).slice(1));function c(t,e=0){return s[t[e+0]]+s[t[e+1]]+s[t[e+2]]+s[t[e+3]]+"-"+s[t[e+4]]+s[t[e+5]]+"-"+s[t[e+6]]+s[t[e+7]]+"-"+s[t[e+8]]+s[t[e+9]]+"-"+s[t[e+10]]+s[t[e+11]]+s[t[e+12]]+s[t[e+13]]+s[t[e+14]]+s[t[e+15]]}var l=function(t,e,n){if(o.randomUUID&&!e&&!t)return o.randomUUID();const r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return c(r)}},5933:function(t,e,n){var o;!function(){function r(t,e,n){return t.call.apply(t.bind,arguments)}function i(t,e,n){if(!t)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,o),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function a(t,e,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:i).apply(null,arguments)}var s=Date.now||function(){return+new Date};function c(t,e){this.a=t,this.o=e||t,this.c=this.o.document}var l=!!window.FontFace;function u(t,e,n,o){if(e=t.c.createElement(e),n)for(var r in n)n.hasOwnProperty(r)&&("style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return o&&e.appendChild(t.c.createTextNode(o)),e}function p(t,e,n){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(n,t.lastChild)}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,n){e=e||[],n=n||[];for(var o=t.className.split(/\s+/),r=0;r<e.length;r+=1){for(var i=!1,a=0;a<o.length;a+=1)if(e[r]===o[a]){i=!0;break}i||o.push(e[r])}for(e=[],r=0;r<o.length;r+=1){for(i=!1,a=0;a<n.length;a+=1)if(o[r]===n[a]){i=!0;break}i||e.push(o[r])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function m(t,e){for(var n=t.className.split(/\s+/),o=0,r=n.length;o<r;o++)if(n[o]==e)return!0;return!1}function h(t,e,n){function o(){s&&r&&i&&(s(a),s=null)}e=u(t,"link",{rel:"stylesheet",href:e,media:"all"});var r=!1,i=!0,a=null,s=n||null;l?(e.onload=function(){r=!0,o()},e.onerror=function(){r=!0,a=Error("Stylesheet failed to load"),o()}):setTimeout((function(){r=!0,o()}),0),p(t,"head",e)}function _(t,e,n,o){var r=t.c.getElementsByTagName("head")[0];if(r){var i=u(t,"script",{src:e}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&r.removeChild(i))},r.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),o||5e3),i}return null}function E(){this.a=0,this.c=null}function g(t){return t.a++,function(){t.a--,S(t)}}function y(t,e){t.c=e,S(t)}function S(t){0==t.a&&t.c&&(t.c(),t.c=null)}function T(t){this.a=t||"-"}function C(t,e){this.c=t,this.f=4,this.a="n";var n=(e||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(t){var e=[];t=t.split(/,\s*/);for(var n=0;n<t.length;n++){var o=t[n].replace(/['"]/g,"");-1!=o.indexOf(" ")||/^\d/.test(o)?e.push("'"+o+"'"):e.push(o)}return e.join(",")}function v(t){return t.a+t.f}function I(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function A(t){var e=4,n="n",o=null;return t&&((o=t.match(/(normal|oblique|italic)/i))&&o[1]&&(n=o[1].substr(0,1).toLowerCase()),(o=t.match(/([1-9]00|normal|bold)/i))&&o[1]&&(/bold/i.test(o[1])?e=7:/[1-9]00/.test(o[1])&&(e=parseInt(o[1].substr(0,1),10)))),n+e}function O(t,e){this.c=t,this.f=t.o.document.documentElement,this.h=e,this.a=new T("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function R(t){if(t.g){var e=m(t.f,t.a.c("wf","active")),n=[],o=[t.a.c("wf","loading")];e||n.push(t.a.c("wf","inactive")),f(t.f,n,o)}P(t,"inactive")}function P(t,e,n){t.j&&t.h[e]&&(n?t.h[e](n.c,v(n)):t.h[e]())}function U(){this.c={}}function w(t,e){this.c=t,this.f=e,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function L(t){p(t.c,"body",t.a)}function x(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(t.c)+";font-style:"+I(t)+";font-weight:"+t.f+"00;"}function D(t,e,n,o,r,i){this.g=t,this.j=e,this.a=o,this.c=n,this.f=r||3e3,this.h=i||void 0}function N(t,e,n,o,r,i,a){this.v=t,this.B=e,this.c=n,this.a=o,this.s=a||"BESbswy",this.f={},this.w=r||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new w(this.c,this.s),this.h=new w(this.c,this.s),this.j=new w(this.c,this.s),this.m=new w(this.c,this.s),t=x(t=new C(this.a.c+",serif",v(this.a))),this.g.a.style.cssText=t,t=x(t=new C(this.a.c+",sans-serif",v(this.a))),this.h.a.style.cssText=t,t=x(t=new C("serif",v(this.a))),this.j.a.style.cssText=t,t=x(t=new C("sans-serif",v(this.a))),this.m.a.style.cssText=t,L(this.g),L(this.h),L(this.j),L(this.m)}T.prototype.c=function(t){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},D.prototype.start=function(){var t=this.c.o.document,e=this,n=s(),o=new Promise((function(o,r){!function i(){s()-n>=e.f?r():t.fonts.load(function(t){return I(t)+" "+t.f+"00 300px "+b(t.c)}(e.a),e.h).then((function(t){1<=t.length?o():setTimeout(i,25)}),(function(){r()}))}()})),r=null,i=new Promise((function(t,n){r=setTimeout(n,e.f)}));Promise.race([i,o]).then((function(){r&&(clearTimeout(r),r=null),e.g(e.a)}),(function(){e.j(e.a)}))};var F={D:"serif",C:"sans-serif"},k=null;
vendor: 9,769 bytes, line 1
1function M(){if(null===k){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);k=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return k}function j(t,e,n){for(var o in F)if(F.hasOwnProperty(o)&&e===t.f[F[o]]&&n===t.f[F[o]])return!0;return!1}function B(t){var e,n=t.g.a.offsetWidth,o=t.h.a.offsetWidth;(e=n===t.f.serif&&o===t.f["sans-serif"])||(e=M()&&j(t,n,o)),e?s()-t.A>=t.w?M()&&j(t,n,o)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?G(t,t.v):G(t,t.B):function(t){setTimeout(a((function(){B(this)}),t),50)}(t):G(t,t.v)}function G(t,e){setTimeout(a((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),e(this.a)}),t),0)}function H(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}N.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),B(this)};var z=null;function $(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&f(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),P(t,"active")):R(t.a))}function W(t){this.j=t,this.a=new U,this.h=0,this.f=this.g=!0}function V(t,e,n,o,r){var i=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=r||null,s=o||{};if(0===n.length&&i)R(e.a);else{e.f+=n.length,i&&(e.j=i);var c,l=[];for(c=0;c<n.length;c++){var u=n[c],p=s[u.c],d=e.a,m=u;if(d.g&&f(d.f,[d.a.c("wf",m.c,v(m).toString(),"loading")]),P(d,"fontloading",m),d=null,null===z)if(window.FontFace){m=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var h=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=m?42<parseInt(m[1],10):!h}else z=!1;d=z?new D(a(e.g,e),a(e.h,e),e.c,u,e.s,p):new N(a(e.g,e),a(e.h,e),e.c,u,e.s,t,p),l.push(d)}for(c=0;c<l.length;c++)l[c].start()}}),0)}function Y(t,e){this.c=t,this.a=e}function Q(t,e){this.c=t,this.a=e}function K(t,e){this.c=t||q,this.a=[],this.f=[],this.g=e||""}H.prototype.g=function(t){var e=this.a;e.g&&f(e.f,[e.a.c("wf",t.c,v(t).toString(),"active")],[e.a.c("wf",t.c,v(t).toString(),"loading"),e.a.c("wf",t.c,v(t).toString(),"inactive")]),P(e,"fontactive",t),this.m=!0,$(this)},H.prototype.h=function(t){var e=this.a;if(e.g){var n=m(e.f,e.a.c("wf",t.c,v(t).toString(),"active")),o=[],r=[e.a.c("wf",t.c,v(t).toString(),"loading")];n||o.push(e.a.c("wf",t.c,v(t).toString(),"inactive")),f(e.f,o,r)}P(e,"fontinactive",t),$(this)},W.prototype.load=function(t){this.c=new c(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(t,e,n){var o=[],r=n.timeout;!function(t){t.g&&f(t.f,[t.a.c("wf","loading")]),P(t,"loading")}(e);o=function(t,e,n){var o,r=[];for(o in e)if(e.hasOwnProperty(o)){var i=t.c[o];i&&r.push(i(e[o],n))}return r}(t.a,n,t.c);var i=new H(t.c,e,r);for(t.h=o.length,e=0,n=o.length;e<n;e++)o[e].load((function(e,n,o){V(t,i,e,n,o)}))}(this,new O(this.c,t),t)},Y.prototype.load=function(t){function e(){if(i["__mti_fntLst"+o]){var n,r=i["__mti_fntLst"+o](),a=[];if(r)for(var s=0;s<r.length;s++){var c=r[s].fontfamily;void 0!=r[s].fontStyle&&void 0!=r[s].fontWeight?(n=r[s].fontStyle+r[s].fontWeight,a.push(new C(c,n))):a.push(new C(c))}t(a)}else setTimeout((function(){e()}),50)}var n=this,o=n.a.projectId,r=n.a.version;if(o){var i=n.c.o;_(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+o+".js"+(r?"?v="+r:""),(function(r){r?t([]):(i["__MonotypeConfiguration__"+o]=function(){return n.a},e())})).id="__MonotypeAPIScript__"+o}else t([])},Q.prototype.load=function(t){var e,n,o=this.a.urls||[],r=this.a.families||[],i=this.a.testStrings||{},a=new E;for(e=0,n=o.length;e<n;e++)h(this.c,o[e],g(a));var s=[];for(e=0,n=r.length;e<n;e++)if((o=r[e].split(":"))[1])for(var c=o[1].split(","),l=0;l<c.length;l+=1)s.push(new C(o[0],c[l]));else s.push(new C(o[0]));y(a,(function(){t(s,i)}))};var q="https://fonts.googleapis.com/css";function J(t){this.f=t,this.a=[],this.c={}}var X={latin:"BESbswy","latin-ext":"\xe7\xf6\xfc\u011f\u015f",cyrillic:"\u0439\u044f\u0416",greek:"\u03b1\u03b2\u03a3",khmer:"\u1780\u1781\u1782",Hanuman:"\u1780\u1781\u1782"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},tt={i:"i",italic:"i",n:"n",normal:"n"},et=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function nt(t,e){this.c=t,this.a=e}var ot={Arimo:!0,Cousine:!0,Tinos:!0};function rt(t,e){this.c=t,this.a=e}function it(t,e){this.c=t,this.f=e,this.a=[]}nt.prototype.load=function(t){var e=new E,n=this.c,o=new K(this.a.api,this.a.text),r=this.a.families;!function(t,e){for(var n=e.length,o=0;o<n;o++){var r=e[o].split(":");3==r.length&&t.f.push(r.pop());var i="";2==r.length&&""!=r[1]&&(i=":"),t.a.push(r.join(i))}}(o,r);var i=new J(r);!function(t){for(var e=t.f.length,n=0;n<e;n++){var o=t.f[n].split(":"),r=o[0].replace(/\+/g," "),i=["n4"];if(2<=o.length){var a;if(a=[],s=o[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(p=et.exec(u.toLowerCase())))u="";else{if(u=null==(u=p[2])||""==u?"n":tt[u],null==(p=p[1])||""==p)p="4";else var p=Z[p]||(isNaN(p)?"4":p.substr(0,1));u=[u,p].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==o.length&&(a=[],0<(o=(o=o[2])?o.split(","):a).length&&(o=X[o[0]])&&(t.c[r]=o))}for(t.c[r]||(o=X[r])&&(t.c[r]=o),o=0;o<i.length;o+=1)t.a.push(new C(r,i[o]))}}(i),h(n,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],o=0;o<e;o++)n.push(t.a[o].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(o),g(e)),y(e,(function(){t(i.a,i.c,ot)}))},rt.prototype.load=function(t){var e=this.a.id,n=this.c.o;e?_(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",(function(e){if(e)t([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){e=n.Typekit.config.fn;for(var o=[],r=0;r<e.length;r+=2)for(var i=e[r],a=e[r+1],s=0;s<a.length;s++)o.push(new C(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(c){}t(o)}}),2e3):t([])},it.prototype.load=function(t){var e=this.f.id,n=this.c.o,o=this;e?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[e]=function(e,n){for(var r=0,i=n.fonts.length;r<i;++r){var a=n.fonts[r];o.a.push(new C(a.name,A("font-weight:"+a.weight+";font-style:"+a.style)))}t(o.a)},_(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+e+".js",(function(e){e&&t([])}))):t([])};var at=new W(window);at.a.c.custom=function(t,e){return new Q(e,t)},at.a.c.fontdeck=function(t,e){return new it(e,t)},at.a.c.monotype=function(t,e){return new Y(e,t)},at.a.c.typekit=function(t,e){return new rt(e,t)},at.a.c.google=function(t,e){return new nt(e,t)};var st={load:a(at.load,at)};void 0===(o=function(){return st}.call(e,n,e,t))||(t.exports=o)}()},5031:function(t,e,n){var o={"./Alert/ClientToast":2619,"./Alert/ClientToast.jsx":2619,"./Alert/danger.svg":2389,"./Alert/success.svg":8534,"./Alert/warning.svg":1825,"./Builder/BuilderComponents":1717,"./Builder/BuilderComponents.jsx":1717,"./Builder/Error/404":4234,"./Builder/Error/404.jsx":4234,"./Builder/Error/SomethingWentWrong/SomethingWentWrong":98,"./Builder/Error/SomethingWentWrong/SomethingWentWrong.jsx":98,"./Builder/ErrorBoundary":8078,"./Builder/ErrorBoundary.jsx":8078,"./Builder/Loader":2005,"./Builder/Loader.jsx":2005,"./Builder/PreviewCommon":7615,"./Builder/PreviewCommon.jsx":7615,"./Builder/logo.svg":4317,"./DynamicDataHelpers":5892,"./DynamicDataHelpers/":5892,"./DynamicDataHelpers/DynamicDataProvider":5621,"./DynamicDataHelpers/DynamicDataProvider.jsx":5621,"./DynamicDataHelpers/DynamicPageLoadingOverlay":3703,"./DynamicDataHelpers/DynamicPageLoadingOverlay.jsx":3703,"./DynamicDataHelpers/MustacheRenderer":1472,"./DynamicDataHelpers/MustacheRenderer.js":1472,"./DynamicDataHelpers/blueprintIndex":8919,"./DynamicDataHelpers/blueprintIndex.js":8919,"./DynamicDataHelpers/builderDebugDiagnostics":5235,"./DynamicDataHelpers/builderDebugDiagnostics.js":5235,"./DynamicDataHelpers/cacheKey":5857,"./DynamicDataHelpers/cacheKey.js":5857,"./DynamicDataHelpers/cmsBindingUi":3838,"./DynamicDataHelpers/cmsBindingUi.js":3838,"./DynamicDataHelpers/dynamicDataPresetFormatters":8941,"./DynamicDataHelpers/dynamicDataPresetFormatters.js":8941,"./DynamicDataHelpers/dynamicDataUtils":9374,"./DynamicDataHelpers/dynamicDataUtils.js":9374,"./DynamicDataHelpers/immutables":6758,"./DynamicDataHelpers/immutables.js":6758,"./DynamicDataHelpers/index":5892,"./DynamicDataHelpers/index.js":5892,"./DynamicDataHelpers/loadingStateResolver":1243,"./DynamicDataHelpers/loadingStateResolver.js":1243,"./DynamicDataHelpers/mustache-custom":996,"./DynamicDataHelpers/mustache-custom.js":996,"./DynamicDataHelpers/nextjsBlogSsr":8573,"./DynamicDataHelpers/nextjsBlogSsr.js":8573,"./DynamicDataHelpers/resolveTemplateData":8283,"./DynamicDataHelpers/resolveTemplateData.js":8283,"./DynamicDataHelpers/seoMetaHelpers":4193,"./DynamicDataHelpers/seoMetaHelpers.js":4193,"./InternalFunctions":5651,"./InternalFunctions/":5651,"./InternalFunctions/dynamicDataActions":5570,"./InternalFunctions/dynamicDataActions.js":5570,"./InternalFunctions/index":5651,"./InternalFunctions/index.js":5651,"./Stripe/Overlay":5227,"./Stripe/Overlay.js":5227,"./Stripe/StripeCheckout":1982,"./Stripe/StripeCheckout.js":1982,"./UI":6991,"./UI/":6991,"./UI/Audio":4363,"./UI/Audio/":4363,"./UI/Audio/index":4363,"./UI/Audio/index.jsx":4363,"./UI/Backgroun
1dVideo":3873,"./UI/BackgroundVideo.js":3873,"./UI/Button":2044,"./UI/Button/":2044,"./UI/Button/index":2044,"./UI/Button/index.js":2044,"./UI/Fonts":2062,"./UI/Fonts/":2062,"./UI/Fonts/index":2062,"./UI/Fonts/index.jsx":2062,"./UI/GridLayoutChild":714,"./UI/GridLayoutChild/":714,"./UI/GridLayoutChild/index":714,"./UI/GridLayoutChild/index.js":714,"./UI/GridLayoutColumns":8538,"./UI/GridLayoutColumns/":8538,"./UI/GridLayoutColumns/index":8538,"./UI/GridLayoutColumns/index.js":8538,"./UI/HTMLCode":3522,"./UI/HTMLCode/":3522,"./UI/HTMLCode/index":3522,"./UI/HTMLCode/index.jsx":3522,"./UI/IFrame":8634,"./UI/IFrame/":8634,"./UI/IFrame/index":8634,"./UI/IFrame/index.jsx":8634,"./UI/Image":9597,"./UI/Image/":9597,"./UI/Image/index":9597,"./UI/Image/index.jsx":9597,"./UI/Image/svg":2866,"./UI/Image/svg.jsx":2866,"./UI/Input/Input":2618,"./UI/Input/Input.jsx":2618,"./UI/Input/Select":6053,"./UI/Input/Select.jsx":6053,"./UI/Input/TextArea":3014,"./UI/Input/TextArea.jsx":3014,"./UI/Placeholder":9994,"./UI/Placeholder.jsx":9994,"./UI/ResponsiveNavMenu":9410,"./UI/ResponsiveNavMenu.jsx":9410,"./UI/StyleProvider":2477,"./UI/StyleProvider.jsx":2477,"./UI/Temp":6125,"./UI/Temp.jsx":6125,"./UI/Text":3042,"./UI/Text/":3042,"./UI/Text/TextBlock":2545,"./UI/Text/TextBlock.jsx":2545,"./UI/Text/index":3042,"./UI/Text/index.jsx":3042,"./UI/Video":449,"./UI/Video/":449,"./UI/Video/index":449,"./UI/Video/index.jsx":449,"./UI/Video/video":9423,"./UI/Video/video.jsx":9423,"./UI/attributesResolver":4057,"./UI/attributesResolver.js":4057,"./UI/close-btn.svg":8230,"./UI/code-100.svg":6265,"./UI/index":6991,"./UI/index.js":6991,"./UI/props.common":2362,"./UI/props.common.js":2362,"./Workflows/ActionController/customCode.subactions":4099,"./Workflows/ActionController/customCode.subactions.js":4099,"./Workflows/ActionController/data.subactions":8146,"./Workflows/ActionController/data.subactions.js":8146,"./Workflows/ActionController/database.subactions":6512,"./Workflows/ActionController/database.subactions.js":6512,"./Workflows/ActionController/elementstyle.subactions":2695,"./Workflows/ActionController/elementstyle.subactions.js":2695,"./Workflows/ActionController/gallery.subactions":3095,"./Workflows/ActionController/gallery.subactions.js":3095,"./Workflows/ActionController/redirect.subactions":4251,"./Workflows/ActionController/redirect.subactions.js":4251,"./Workflows/ActionController/stateManagement.actions":6743,"./Workflows/ActionController/stateManagement.actions.js":6743,"./Workflows/ActionController/subactions":4177,"./Workflows/ActionController/subactions.js":4177,"./_helpers":5236,"./_helpers/":5236,"./_helpers/ScrollTracker":8098,"./_helpers/ScrollTracker.js":8098,"./_helpers/TimeSpentTracker":2827,"./_helpers/TimeSpentTracker.js":2827,"./_helpers/analytics":4115,"./_helpers/analytics.js":4115,"./_helpers/analyticsStub":6113,"./_helpers/analyticsStub.js":6113,"./_helpers/componentTypes":9394,"./_helpers/componentTypes.js":9394,"./_helpers/encrypt":5796,"./_helpers/encrypt.js":5796,"./_helpers/failureActions":7911,"./_helpers/failureActions.js":7911,"./_helpers/fetch-tracker":5710,"./_helpers/fetch-tracker.js":5710,"./_helpers/flatten-object":6865,"./_helpers/flatten-object.js":6865,"./_helpers/functions":4195,"./_helpers/functions.js":4195,"./_helpers/handleResponse":167,"./_helpers/handleResponse.js":167,"./_helpers/hasFeature":879,"./_helpers/hasFeature.js":879,"./_helpers/index":5236,"./_helpers/index.js":5236,"./_helpers/input-validation":9704,"./_helpers/input-validation.js":9704,"./_helpers/languages":418,"./_helpers/languages.js":418,"./_helpers/makeId":4961,"./_helpers/makeId.js":4961,"./_helpers/posthog":1267,"./_helpers/posthog.js":1267,"./_helpers/resolve-promise":5689,"./_helpers/resolve-promise.js":5689,"./_helpers/rgbaConvert":5809,"./_helpers/rgbaConvert.js":5809,"./_helpers/storage":9972,"./_helpers/storage.js":9972,"./_helpers/stripeLib":5169,"./_helpers/stripeLib.js":5169,"./_helpers/toast":4266,"./_helpers/toast.js":4266,"./_helpers/trackEvent":4527,"./_helpers/trackEvent.js":4527,"./_helpers/urlBuilder":9805,"./_helpers/urlBuilder.js":9805,"./_helpers/useDebouncedEffect":7192,"./_helpers/useDebouncedEffect.js":7192,"./_helpers/useEventListener":8051,"./_helpers/useEventListener.js":8051,"./_helpers/usePrevious":2614,"./_helpers/usePrevious.js":2614,"./_helpers/validBase64":7501,"./_helpers/validBase64.js":7501,"./_redux/_actions":6961,"./_redux/_actions/":6961,"./_redux/_actions/analytics.actions":2471,"./_redux/_actions/analytics.actions.js":2471,"./_redux/_actions/database.actions":8867,"./_redux/_actions/database.actions.js":8867,"./_redux/_actions/index":6961,"./_redux/_actions/index.js":6961,"./_redux/_actions/notifications.actions":1660,"./_redux/_actions/notifications.actions.js":1660,"./_redux/_actions/order.actions":8435,"./_redux/_actions/order.actions.js":8435,"./_redux/_actions/siteProfile.actions":6120,"./_redux/_actions/siteProfile.actions.js":6120,"./_redux/_actions/userList.actions":7379,"./_redux/_actions/userList.actions.js":7379,"./_redux/_actions/workspace.actions":3844,"./_redux/_actions/workspace.actions.js":3844,"./_redux/_constants":3902,"./_redux/_constants/":3902,"./_redux/_constants/builder.constants":6160,"./_redux/_constants/builder.constants.js":6160,"./_redux/_constants/database.constants":3168,"./_redux/_constants/database.constants.js":3168,"./_redux/_constants/errorsConstants":7182,"./_redux/_constants/errorsConstants.js":7182,"./_redux/_constants/index":3902,"./_redux/_constants/index.js":3902,"./_redux/_constants/notifications.constants":522,"./_redux/_constants/notifications.constants.js":522,"./_redux/_constants/order.constants":9809,"./_redux/_constants/order.constants.js":9809,"./_redux/_constants/siteProfile.constants":5663,"./_redux/_constants/siteProfile.constants.js":5663,"./_redux/_constants/userList.constants":3727,"./_redux/_constants/userList.constants.js":3727,"./_redux/_constants/workspace.constants":8747,"./_redux/_constants/workspace.constants.js":8747,"./_redux/_reducers":5558,"./_redux/_reducers/":5558,"./_redux/_reducers/database.reducer":2668,"./_redux/_reducers/database.reducer.js":2668,"./_redux/_reducers/index":5558,"./_redux/_reducers/index.js":5558,"./_redux/_reducers/notifications.reducer":4966,"./_redux/_reducers/notifications.reducer.js":4966,"./_redux/_reducers/siteProfile.reducer":1669,"./_redux/_reducers/siteProfile.reducer.js":1669,"./_redux/_reducers/userList.reducer":6731,"./_redux/_reducers/userList.reducer.js":6731,"./_redux/_reducers/workspace.reducer":7450,"./_redux/_reducers/workspace.reducer.js":7450,"./_redux/_services":3655,"./_redux/_services/":3655,"./_redux/_services/database.service":9262,"./_redux/_services/database.service.js":9262,"./_redux/_services/index":3655,"./_redux/_services/index.js":3655,"./_redux/_services/notifications.service":3558,"./_redux/_services/notifications.service.js":3558,"./_redux/_services/order.service":7380,"./_redux/_services/order.service.js":7380,"./_redux/_services/siteProfile.service":1096,"./_redux/_services/siteProfile.service.js":1096,"./_redux/_services/userList.service":3884,"./_redux/_services/userList.service.js":3884,"./_redux/_services/userProfile.service":3474,"./_redux/_services/userProfile.service.js":3474,"./_redux/_services/workspace.service":589,"./_redux/_services/workspace.service.js":589,"./config":5017,"./config.js":5017,"./react-grid-layout":2445,"./react-grid-layout/":2445,"./react-grid-layout/index":2445,"./react-grid-layout/index-dev":750,"./react-grid-layout/index-dev.js":750,"./react-grid-layout/index.js":2445,"./react-grid-layout/interfaces/classnames":5188,"./react-grid-layout/interfaces/classnames.js":5188,"./react-grid-layout/lib/GridItem":6955,"./react-grid-layout/lib/GridItem.jsx":6955,"./react-grid-layout/lib/ReactGridLayout":1729,"./react-grid-layout/lib/ReactGridLayout.jsx":1729,"./react-grid-layout/lib/ReactGridLayoutPropTypes":5055,"./react-grid-layout/lib/ReactGridLayoutPropTypes.js":5055,"./react-grid-layout/lib/ResponsiveReactGridLayout":6072,"./react-grid-layout/lib/ResponsiveReactGridLayout.jsx":6072,"./react-grid-layout/lib/calcUtils":6550,"./react-grid-layout/lib/calcUtils.js":6550,"./react-grid-layout/lib/components/WidthProvider":1488,"./react-grid-layout/lib/components/WidthProvider.jsx":1488,"./react-grid-layout/lib/fastRGLPropsEqual":3236,"./react-grid-layout/lib/fastRGLPropsEqual.js":3236,"./react-grid-layout/lib/responsiveUtils":2079,"./react-grid-layout/lib/responsiveUtils.js":2079,"./react-grid-layout/lib/utils":8697,"./react-grid-layout/lib/utils.js":8697,"./react-helmet/Helmet":5137,"./react-helmet/Helmet.js":5137,"./react-webfont-loader/src":4584,"./react-webfont-loader/src/":4584,"./react-webfont-loader/src/index":4584,"./react-webfont-loader/src/index.js":4584,"./react-webfont-loader/src/statuses":562,"./react-webfont-loader/src/statuses.js":562,"./redux/_actions":6354,"./redux/_actions/":6354,"./redux/_actions/alert.actions":3855,"./redux/_actions/alert.actions.js":3855,"./redux/_actions/blueprintActions":6602,"./redux/_actions/blueprintActions.js":6602,"./redux/_actions/cloudinary.actions":5690,"./redux/_actions/cloudinary.actions.js":5690,"./redux/_actions/common.actions":6811,"./redux/_actions/common.actions.js":6811,"./redux/_actions/customization.actions":3251,"./redux/_actions/customization.actions.js":3251,"./redux/_actions/fetchActions":4938,"./redux/_actions/fetchActions.js":4938,"./redux/_actions/function.actions":283,"./redux/_actions/function.actions.js":283,"./redux/_actions/guest.actions":1507,"./redux/_actions/guest.actions.js":1507,"./redux/_actions/index":6354,"./redux/_actions/index.js":6354,"./redux/_actions/notifications.actions":7280,"./redux/_actions/notifications.actions.js":7280,"./redux/_actions/paginationActions":7056,"./redux/_actions/paginationActions.js":7056,"./redux/_actions/ui.actions":4055,"./redux/_actions/ui.actions.js":4055,"./redux/_actions/user.actions":3476,"./redux/_actions/user.actions.js":3476,"./redux/_constants":7100,"./redux/_constants/":7100,"./redux/_constants/alerts.constants":9329,"./redux/_constants/alerts.constants.js":9329,"./redux/_constants/cloudinary.constants":2212,"./redux/_constants/cloudinary.constants.js":2212,"./redux/_constants/common.constants":641,"./redux/_constants/common.constants.js":641,"./redux/_constants/customization.constants":9857,"./redux/_constants/customization.constants.js":9857,"./redux/_constants/dynamicData.constants":6869,"./redux/_constants/dynamicData.constants.js":6869,"./redux/_constants/errors.constants":7899,"./redux/_constants/errors.constants.js":7899,"./redux/_constants/functions.constants":5495,"./redux/_constants/functions.constants.js":5495,"./redux/_constants/guest.constants":7588,"./redux/_constants/guest.constants.js":7588,"./redux/_constants/index":7100,"./redux/_constants/index.js":7100,"./redux/_constants/lens.constants":822,"./redux/_constants/lens.constants.js":822,"./redux/_constants/notifications.constants":9346,"./redux/_constants/notifications.constants.js":9346,"./redux/_constants/stateManagement.constants":6332,"./redux/_constants/stateManagement.constants.js":6332,"./redux/_constants/ui.constants":7878,"./redux/_constants/ui.constants.js":7878,"./redux/_constants/user.constants":6562,"./redux/_constants/user.constants.js":6562,"./redux/_reducers":778,"./redux/_reducers/":778,"./redux/_reducers/alerts.reducer":6162,"./redux/_reducers/alerts.reducer.js":6162,"./redux/_reducers/cloudinary.reducer":2787,"./redux/_reducers/cloudinary.reducer.js":2787,"./redux/_reducers/common.reducer":1700,"./redux/_reducers/common.reducer.js":1700,"./redux/_reducers/customization.reducer":5925,"./redux/_reducers/customization.reducer.js":5925,"./redux/_reducers/errors.reducer":4303,"./redux/_reducers/errors.reducer.js":4303,"./redux/_reducers/functions.reducer":7772,"./redux/_reducers/functions.reducer.js":7772,"./redux/_reducers/index":778,"./redux/_reducers/index.js":778,"./redux/_reducers/lens.reducer":7520,"./redux/_reducers/lens.reducer.js":7520,"./redux/_reducers/notifications.reducer":3239,"./redux/_reducers/notifications.reducer.js":3239,"./redux/_reducers/stateManagement.reducer":6569,"./redux/_reducers/stateManagement.reducer.js":6569,"./redux/_reducers/ui.reducer":4399,"./redux/_reducers/ui.reducer.js":4399,"./redux/_reducers/user.reducer":3905,"./redux/_reducers/user.reducer.js":3905,"./redux/_services":5654,"./redux/_services/":5654,"./redux/_services/blogPostResponse":7484,"./redux/_services/blogPostResponse.js":7484,"./redux/_services/cloudinary.service":171,"./redux/_services/cloudinary.service.js":171,"./redux/_services/common.services":758,"./redux/_services/common.services.js":758,"./redux/_services/customization.service":2033,"./redux/_services/customization.service.js":2033,"./redux/_services/formcontainer":5580,"./redux/_services/formcontainer.json":5580,"./redux/_services/function.service":6691,"./redux/_services/function.service.js":6691,"./redux/_services/guest.service":8012,"./redux/_services/guest.service.js":8012,"./redux/_services/index":5654,"./redux/_services/index.js":5654,"./redux/_services/manifest_buy-button":9199,"./redux/_services/manifest_buy-button.json":9199,"./redux/_services/manifest_checkbox-input":6442,"./redux/_services/manifest_checkbox-input.json":6442,"./redux/_services/manifest_date-input"
1:492,"./redux/_services/manifest_date-input.json":492,"./redux/_services/manifest_email-input":4240,"./redux/_services/manifest_email-input.json":4240,"./redux/_services/manifest_empty-form-block":6073,"./redux/_services/manifest_empty-form-block.json":6073,"./redux/_services/manifest_first-name-input":6707,"./redux/_services/manifest_first-name-input.json":6707,"./redux/_services/manifest_form-container":932,"./redux/_services/manifest_form-container.json":932,"./redux/_services/manifest_formWrappedBuyButton":1638,"./redux/_services/manifest_formWrappedBuyButton.json":1638,"./redux/_services/manifest_full-name-input":7273,"./redux/_services/manifest_full-name-input.json":7273,"./redux/_services/manifest_last-name-input":1741,"./redux/_services/manifest_last-name-input.json":1741,"./redux/_services/manifest_number-input":8262,"./redux/_services/manifest_number-input.json":8262,"./redux/_services/manifest_phone-input":8300,"./redux/_services/manifest_phone-input.json":8300,"./redux/_services/manifest_select-input":9760,"./redux/_services/manifest_select-input.json":9760,"./redux/_services/manifest_submit-button":6759,"./redux/_services/manifest_submit-button.json":6759,"./redux/_services/manifest_text-input":8400,"./redux/_services/manifest_text-input.json":8400,"./redux/_services/manifest_textarea-input":551,"./redux/_services/manifest_textarea-input.json":551,"./redux/_services/manifest_url-input":6185,"./redux/_services/manifest_url-input.json":6185,"./redux/_services/notification.services":1284,"./redux/_services/notification.services.js":1284,"./redux/_services/supabase.service":1969,"./redux/_services/supabase.service.js":1969,"./redux/_services/user.service":8817,"./redux/_services/user.service.js":8817,"./redux/_store":5739,"./redux/_store/":5739,"./redux/_store/configureStore":6774,"./redux/_store/configureStore.js":6774,"./redux/_store/index":5739,"./redux/_store/index.js":5739,"./redux/_store/listener":910,"./redux/_store/listener.js":910,"./simpleAOS/cdHumbleScroll":85,"./simpleAOS/cdHumbleScroll.js":85},r={85:9,98:9,167:9,171:9,283:9,418:7,449:9,492:3,522:9,551:3,562:9,589:9,641:9,714:9,750:7,758:9,778:9,822:9,879:9,910:9,932:3,996:9,1096:9,1243:9,1267:9,1284:7,1472:9,1488:9,1507:9,1638:3,1660:7,1669:9,1700:9,1717:9,1729:9,1741:3,1825:9,1969:9,1982:9,2005:9,2033:9,2044:9,2062:9,2079:9,2212:9,2362:9,2389:9,2445:7,2471:9,2477:9,2545:9,2614:9,2618:9,2619:9,2668:9,2695:9,2787:9,2827:9,2866:9,3014:9,3042:9,3095:9,3168:9,3236:7,3239:9,3251:9,3474:9,3476:9,3522:9,3558:9,3655:9,3703:9,3727:9,3838:9,3844:9,3855:9,3873:7,3884:9,3902:9,3905:9,4055:9,4057:9,4099:9,4115:9,4177:9,4193:9,4195:9,4234:9,4240:3,4251:9,4266:7,4303:9,4317:9,4363:9,4399:9,4527:9,4584:9,4938:9,4961:9,4966:9,5017:9,5055:9,5137:9,5169:9,5188:7,5227:9,5235:9,5236:9,5495:9,5558:9,5570:9,5580:3,5621:9,5651:7,5654:9,5663:9,5689:9,5690:9,5710:9,5739:7,5796:9,5809:9,5857:9,5892:9,5925:9,6053:9,6072:9,6073:3,6113:9,6120:9,6125:9,6160:9,6162:9,6185:3,6265:9,6332:9,6354:9,6442:3,6512:9,6550:7,6562:9,6569:9,6602:9,6691:9,6707:3,6731:9,6743:9,6758:9,6759:3,6774:9,6811:9,6865:9,6869:9,6955:9,6961:9,6991:9,7056:9,7100:9,7182:9,7192:9,7273:3,7280:7,7379:9,7380:9,7450:9,7484:9,7501:9,7520:9,7588:9,7615:9,7772:9,7878:9,7899:9,7911:9,8012:9,8051:9,8078:9,8098:9,8146:9,8230:9,8262:3,8283:9,8300:3,8400:3,8435:9,8534:9,8538:9,8573:9,8634:9,8697:9,8747:9,8817:9,8867:9,8919:9,8941:9,9199:3,9262:9,9329:9,9346:9,9374:9,9394:9,9410:9,9423:9,9597:9,9704:9,9760:3,9805:9,9809:9,9857:9,9972:9,9994:9};function i(t){return a(t).then((function(t){return n.t(t,r[t])}))}function a(t){return Promise.resolve().then((function(){if(!n.o(o,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return o[t]}))}i.keys=function(){return Object.keys(o)},i.resolve=a,i.id=5031,t.exports=i},3155:function(t,e,n){var o={"./index.js":5633,"host/IndexedDB/index.js":5633};function r(t){var e=i(t);return n(e)}function i(t){if(!n.o(o,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return o[t]}r.keys=function(){return Object.keys(o)}
1,r.resolve=i,t.exports=r,r.id=3155},3967:function(t,e){var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,i(n)))}return t}function i(t){if("string"===typeof t||"number"===typeof t)return t;if("object"!==typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)o.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},4942:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return o}})},7462:function(t,e,n){"use strict";function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return o}})},2859:function(t,e,n){"use strict";n.d(e,{J:function(){return h}});var o,r="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",s=function(t){var e=t&&!t.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(e);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},c=null,l=null,u=null,p=function(t){return null!==c?c:(c=new Promise((function(e,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&t&&console.warn(a),window.Stripe)e(window.Stripe);else try{var o=function(){for(var t=document.querySelectorAll('script[src^="'.concat(r,'"]')),e=0;e<t.length;e++){var n=t[e];if(i.test(n.src))return n}return null}();if(o&&t)console.warn(a);else if(o){if(o&&null!==u&&null!==l){var c;o.removeEventListener("load",u),o.removeEventListener("error",l),null===(c=o.parentNode)||void 0===c||c.removeChild(o),o=s(t)}}else o=s(t);u=function(t,e){return function(){window.Stripe?t(window.Stripe):e(new Error("Stripe.js not available"))}}(e,n),l=function(t){return function(){t(new Error("Failed to load Stripe.js"))}}(n),o.addEventListener("load",u),o.addEventListener("error",l)}catch(p){return void n(p)}else e(null)}))).catch((function(t){return c=null,Promise.reject(t)}))},d=function(t,e,n){if(null===t)return null;var o=t.apply(void 0,e);return function(t,e){t&&t._registerWrapper&&t._registerWrapper({name:"stripe-js",version:"4.6.0",startTime:e})}(o,n),o},f=!1,m=function(){return o||(o=p(null).catch((function(t){return o=null,Promise.reject(t)})))};Promise.resolve().then((function(){return m()})).catch((function(t){f||console.warn(t)}));var h=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];f=!0;var o=Date.now();return m().then((function(t){return d(t,e,o)}))}},5580:function(t){"use strict";t.exports=JSON.parse('{"data":{"components":{"SubmitButton1234":{"category":"Buttons","context":["Homepage","twofoot"],"custom":"true","main":"UI/Button/index.js","name":"Button","type":"button","zIndex":"1","isStatic":false,"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 16px","backgroundColor":"#111","borderRadius":"8px 8px 8px 8px ","borderWidth":"2px 2px 2px 2px ","borderStyle":"solid solid solid solid ","borderColor":"#333 #333 #333 #333 ","fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#EEE","lineHeight":"26px"}},"componentData":{"elementType":"p","children":"<p>Submit Button</p>","properties":{"type":"submit"}}},"thumbnail":{"src":"https://res.cloudinary.com/lensbird/q_auto/v1620120925/storylens-dev/static/_1620120925_70331.png","width":138,"height":48},"isListed":"true","client_id":"SubmitButton1234","givenName":"submit button","parent":"FormMain1234","component":{}},"InputIo69":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"text","placeholder":"First Name","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom"
1:"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputIo69","givenName":"field - text","zIndex":"1","parent":"TextInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>First Name</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"TextInput1234","component":{}},"TextInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"TEXT INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"TextFieldWrapper1234","component":{"default":{"compare":null}}},"InputWvUC":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"text","placeholder":"Last Name","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputWvUC","givenName":"field - text","zIndex":"1","parent":"TextInput5678","component":{"default":{"compare":null}}},"SpanIXSC":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpanIXSC","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Last Name</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label -lname","parent":"TextInput5678","component":{}},"TextInput5678":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextInput5678","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"TEXT INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"TextFieldWrapper1234","component":{"default":{"compare":null}}},"TextFieldWrapper1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextFieldWrapper1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"div","props":{"componentStyle":{"global":{"padding":"0px 0px 0px 0px","flexDirection":"row","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"InputZTSL":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"email","placeholder":"[email protected]","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputZTSL","givenName":"field - email","zIndex":"1","parent":"EmailInput1234","component":{"default":{"compare":null}}},"Span02A8":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"Span02A8","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Email</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - email","parent":"EmailInput1234","component":{}},"EmailInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"EmailInput1234","name":"Div","isListed":"true","custom"
1:"true","type":"block","givenName":"EMAIL INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"Inputn7eb":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"text","placeholder":"Phone number","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"Inputn7eb","givenName":"field - phone","zIndex":"1","parent":"PhoneInput1234","component":{"default":{"compare":null}}},"Span8kAq":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"Span8kAq","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Phone Number</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - phone","parent":"PhoneInput1234","component":{}},"PhoneInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"PhoneInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"PHONE INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"Input29ST":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"text","placeholder":"https://","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"Input29ST","givenName":"field - URL","zIndex":"1","parent":"URLInput1234","component":{"default":{"compare":null}}},"SpantOQV":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpantOQV","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Website URL</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - URL","parent":"URLInput1234","component":{}},"URLInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"URLInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"URL INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"InputctNm":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"date","placeholder":"https://","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputctNm","givenName":"field - date","zIndex":"1","parent":"DateInput1234","component":{"default":{"compare":null}}},"SpanU3VU":{"name":"Span","type":"text","category":"Text","custom"
1:"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpanU3VU","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Appointment Date</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - date","parent":"DateInput1234","component":{}},"DateInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"DateInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"DATE INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"InputHeU5":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"number","placeholder":"0","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputHeU5","givenName":"field - date","zIndex":"1","parent":"NumberInput1234","component":{"default":{"compare":null}}},"Span1Te9":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"Span1Te9","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Token Number</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - number","parent":"NumberInput1234","component":{}},"NumberInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"NumberInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"NUMBER INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"Spanv6xu":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"Spanv6xu","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Description</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - longtext","parent":"TextareaInput1234","component":{}},"TextAreaf8SQ":{"type":"form","uniqueId":"TextAreaf8SQ","author":"Storylens","isStatic":false,"context":["Homepage","last"],"category":"Forms","custom":"true","main":"UI/Input/TextArea.jsx","props":{"componentStyle":{"global":{"padding":"6px 12px 6px 12px","fontSize":"16px","fontWeight":"400","fontFamily":"Nunito Sans","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"placeholder":"Enter description in detail","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"thumbnail":{"height":136,"src":"https://res.cloudinary.com/storylens/image/upload/v1622278744/static/textarea.svg","width":274},"isListed":"true","name":"TextArea","zIndex":"1","client_id":"TextAreaf8SQ","givenName":"field - longtext","parent":"TextareaInput1234","component":{"default":{"compare":null}}},"TextareaInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextareaInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"NUMBER INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"Spanr1yr":{"name":"Span","type":"text","category":"Text","custom"
1:"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"Spanr1yr","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Select Priority</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - dropdown","parent":"DropdownInput1234","component":{}},"Dropdown4YQh":{"category":"Forms","custom":"true","author":"Storylens","main":"UI/Input/Select.jsx","type":"form","zIndex":"1","name":"Dropdown","isListed":"true","isStatic":false,"uniqueId":"Dropdown4YQh","props":{"componentData":{"Options":[{"disabled":true,"label":"Select any"},{"label":"First","value":"first"},{"value":"second","label":"Second"}]},"componentStyle":{"global":{"padding":"8px 12px 8px 12px","fontSize":"16px","fontWeight":"400","fontFamily":"Nunito Sans","color":"#000000","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}}},"thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278742/static/select.svg"},"context":["Homepage","last"],"client_id":"Dropdown4YQh","parent":"DropdownInput1234","givenName":"field - dropdown","component":{"default":{"compare":null}}},"DropdownInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"DropdownInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"DROPDOWN INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"InputQSK6":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Nunito Sans","color":"#000000","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"inputType":"checkbox","placeholder":{"content":"<p>Placeholder text</p>"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputQSK6","givenName":"field - checkbox","parent":"CheckboxInput1234","zIndex":"1","component":{"default":{"compare":null}}},"SpanBW7n":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpanBW7n","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Agree to the terms</p>"},"componentStyle":{"global":{"color":"#000000","fontFamily":"Nunito Sans","fontSize":"16px","fontWeight":"400","lineHeight":"24px"}}},"givenName":"label - checkbox","parent":"CheckboxInput1234","zIndex":"1","component":{}},"CheckboxInput1234":{"name":"Div","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"CheckboxInput1234","givenName":"CHECKBOX INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"12px 12px 12px 12px","rowGap":"0px","columnGap":"10px","alignItems":"center"}}},"parent":"FormMain1234","component":{"default":{"compare":null}}},"FormMain1234":{"name":"Section","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"FormMain1234","givenName":"Form Container","props":{"componentData":{"tagName":"form"},"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","backgroundColor":"#f0cacaff","borderRadius":"8px 8px 8px 8px "}}},"settingsRenderer":"Builder/ElementSettingsRenderer/form-component-v1.jsx","componentType":"form-component-v1","component":{"default":{"compare":null}}}},"layouts":{"TextInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"TextInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]},"TextInput5678":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanIXSC","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextInput5678"}
1,{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputWvUC","h":"auto","display":"block","position":"relative","parent":"TextInput5678"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"TextFieldWrapper1234":{"lg":[{"y":"0px","i":"TextInput1234","x":"0px","h":"auto","w":"100%","display":"flex","x1":"NaNpx","parent":"TextFieldWrapper1234"},{"y":"0px","i":"TextInput5678","x":"0px","h":"auto","w":"100%","display":"flex","x1":"NaNpx","parent":"TextFieldWrapper1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"EmailInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Span02A8","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"EmailInput1234"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputZTSL","h":"auto","display":"block","position":"relative","parent":"EmailInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"PhoneInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Span8kAq","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"PhoneInput1234"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"Inputn7eb","h":"auto","display":"block","position":"relative","parent":"PhoneInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"URLInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpantOQV","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"URLInput1234"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"Input29ST","h":"auto","display":"block","position":"relative","parent":"URLInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"DateInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanU3VU","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"DateInput1234"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputctNm","h":"auto","display":"block","position":"relative","parent":"DateInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"NumberInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Span1Te9","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"NumberInput1234"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputHeU5","h":"auto","display":"block","position":"relative","parent":"NumberInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"TextareaInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Spanv6xu","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextareaInput1234"},{"h":"100px","w":"100%","i":"TextAreaf8SQ","x":"0px","y":"0px","display":"block","parent":"TextareaInput1234"}],"sm":[{"i":"TextAreaf8SQ"}],"md":[{"i":"TextAreaf8SQ"}],"bp_1280":[{"i":"TextAreaf8SQ"}],"bp_1440":[{"i":"TextAreaf8SQ"}],"bp_1920":[{"i":"TextAreaf8SQ"}]},"DropdownInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Spanr1yr","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"DropdownInput1234"},{"h":"auto","x1":"0px","y":"0px","i":"Dropdown4YQh","w":"100%","x":"0px","display":"block","maxW":"none","minW":"30px","parent":"DropdownInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"CheckboxInput1234":{"lg":[{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"fit-content","i":"InputQSK6","h":"fit-content","display":"block","parent":"CheckboxInput1234","minW":"18px","minH":"18px"},{"w":"fit-content","h":"auto","x":"0px","y":"0px","i":"SpanBW7n","display":"block","minH":"10px","minW":"16px","parent":"CheckboxInput1234"}],"sm":[{"i":"InputQSK6"},{"i":"SpanBW7n"}],"md":[{"i":"InputQSK6"},{"i":"SpanBW7n"}],"bp_1280":[{"i":"InputQSK6"},{"i":"SpanBW7n"}],"bp_1440":[{"i":"InputQSK6"},{"i":"SpanBW7n"}],"bp_1920":[{"i":"InputQSK6"},{"i":"SpanBW7n"}]},"FormMain1234":{"lg":[{"y":"0px","i":"TextFieldWrapper1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"y":"0px","i":"EmailInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"y":"0px","i":"PhoneInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"y":"0px","i":"URLInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"y":"0px","i":"DateInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"y":"0px","i":"NumberInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"y":"0px","i":"TextareaInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"y":"0px","i":"DropdownInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain1234","moved":true},{"w":"100%","h":"fit-content","x":"0px","y":"0px","i":"CheckboxInput1234","minH":"20px","minW":"20px","x1":"0px","display":"flex","position":"relative","parent":"FormMain1234","moved":true},{"x":"0px","y":"0px","w":"100%","h":"fit-content","i":"SubmitButton1234","position":"relative","parent":"FormMain1234","moved":true}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"layouts":{"lg":[{"w":"432px","h":"fit-content","x":"581.830985915493px","y":"28px","i":"FormMain1234","minH":"20px","minW":"20px","position":"relative","display":"flex"}],"sm":[{"i":"FormMain1234"}],"md":[{"i":"FormMain1234"}],"bp_1280":[{"i":"FormMain1234"}],"bp_1440":[{"i":"FormMain1234"}],"bp_1920":[{"i":"FormMain1234"}]}}}}')},9199:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"BuyButton1234","displayName":"Buy Button","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"BUY BUTTON COMPONENT","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{},"layouts":{"layouts":{"lg":[{"w":"fit-content","h":"fit-content","x":"0px","y":"0px","i":"BuyButton1234","minH":"20px","minW":"20px","position":"relative","static":false,"display":"flex"}],"sm":[{"i":"BuyButton1234"}],"md":[{"i":"BuyButton1234"}],"bp_1280":[{"i":"BuyButton1234"}],"bp_1440":[{"i":"BuyButton1234"}],"bp_1920":[{"i":"BuyButton1234"}]},"BuyButton1234":{"lg":[{"w":"fit-content","h":"auto","x":"0px","y":"0px","i":"SpankYEj","static":false,"display":"block","minH":"10px","minW":"16px","position":"relative","parent":"BuyButton1234","x1":0,"y1":0},{"x":"0px","y":"0px","w":"auto","h":"auto","i":"FontsOgio","x1":"0px","y1":"0px","static":false,"minW":"10px","minH":"10px","display":"block","parent":"BuyButton1234"}],"sm":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"md":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"bp_1280":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"bp_1440":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"bp_1920":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}]}},"components":{"BuyButton1234":{"name":"Section","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"BuyButton1234","givenName":"Button with icon","formElementType":"buy","executableInternalFunctions":{"onClick":["onBuy"]},"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 16px","alignItems":"center","columnGap":"8px","backgroundColor":"#EFEFEF","borderRadius":"2px 2px 2px 2px ","borderWidth":"0px 0px 0px 0px ","borderStyle":"solid solid solid solid ","borderColor":"#333 #333 #333 #333 "}},"componentData":{"tagName":"button"},"hover":{"global":{"backgroundColor":"#00000019"}}},"component":{"default":{"compare":null}},"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true}},"SpankYEj":{"name":"Span","type":"text","category":"Text","custom"
1:"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpankYEj","props":{"componentData":{"children":"<p>Buy Now</p>"},"componentStyle":{"global":{"fontFamily":"Nunito Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"26px"}}},"givenName":"Text","zIndex":"1","parent":"BuyButton1234","component":{},"disabledBuilderFunctions":["copy","changeParent"]},"FontsOgio":{"custom":"true","tags":["font"],"category":"Icons","name":"Fonts","isListed":"true","type":"component","thumbnail":{"src":"https://res.cloudinary.com/lensbird/q_auto/v1619445497/storylens-dev/static/_1619445498_34786.png","width":61,"height":58},"context":["Homepage","home"],"isStatic":false,"main":"UI/Fonts/index.jsx","props":{"componentData":{"font":"fab fa-fonticons-fi","icon":"far fa-star"},"componentStyle":{"global":{"padding":"0px 0px 0px 0px","color":"#000000ff","textAlign":"center","fontSize":"22px"}}},"client_id":"FontsOgio","givenName":"Font Awesome","parent":"BuyButton1234","component":{},"disabledBuilderFunctions":["copy","changeParent"]}}}')},6442:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"CheckboxInput1234","displayName":"Checkbox Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"CHECKBOX INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"CheckboxInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"CheckboxInput1234"}],"md":[{"i":"CheckboxInput1234"}],"bp_1920":[{"i":"CheckboxInput1234"}],"bp_1440":[{"i":"CheckboxInput1234"}],"bp_1280":[{"i":"CheckboxInput1234"}]},"CheckboxInput1234":{"lg":[{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"fit-content","i":"InputOPDR","h":"fit-content","static":false,"display":"block","parent":"CheckboxInput1234","minW":"18px","minH":"18px"},{"w":"fit-content","h":"auto","x":"0px","y":"0px","i":"SpanArag","static":false,"display":"block","minH":"10px","minW":"16px","parent":"CheckboxInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]}},"components":{"CheckboxInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"CheckboxInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"CHECKBOX INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","rowGap":"0px","columnGap":"10px","alignItems":"center"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputOPDR":{"formElementType":"checkbox","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Nunito Sans","color":"#000000","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Checkbox","inputType":"checkbox","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputOPDR","givenName":"field - checkbox","zIndex":"1","parent":"CheckboxInput1234","component":{"default":{"compare":null}}},"SpanArag":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanArag","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Label for checkbox</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"CheckboxInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},492:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"DateInput1234","displayName":"Date Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"DATE INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"DateInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"DateInput1234"}],"md":[{"i":"DateInput1234"}],"bp_1920":[{"i":"DateInput1234"}],"bp_1440":[{"i":"DateInput1234"}],"bp_1280":[{"i":"DateInput1234"}]},"DateInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"DateInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"DateInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"DateInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"DateInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"DATE INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputIo69":{"formElementType":"date","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Date","inputType":"datetime-local","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputIo69","givenName":"field - date","zIndex":"1","parent":"DateInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Text Label</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - text","parent":"DateInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},4240:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"EmailInput1234","displayName":"Email Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"EMAIL INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"EmailInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","moved":true}],"sm":[{"i":"EmailInput1234"}],"md":[{"i":"EmailInput1234"}],"bp_1920":[{"i":"EmailInput1234"}],"bp_1440":[{"i":"EmailInput1234"}],"bp_1280":[{"i":"EmailInput1234"}]},"EmailInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Span02A8","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"EmailInput1234"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputZTSL","h":"auto","display":"block","position":"relative","parent":"EmailInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]}},"components":{"InputZTSL":{"formElementType":"email","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Email","inputType":"email","placeholder":"[email protected]","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom"
1:"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputZTSL","givenName":"field - email","zIndex":"1","parent":"EmailInput1234","disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"component":{"default":{"compare":null}}},"Span02A8":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"Span02A8","disabledBuilderFunctions":["copy","changeParent"],"classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Email</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - email","parent":"EmailInput1234","component":{}},"EmailInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"EmailInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"EMAIL INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},6073:function(t){"use strict";t.exports=JSON.parse('{"name":"Form","componentType":"form-component-v1","client_id":"FormMain7HaF","displayName":"Form Block v1","givenName":"FORM COMPONENT","type":"form","category":"blocks","subCategory":"Functional","subCategoryOrder":"1","description":"A Form lets you collect data from users.","custom":"true","isListed":"true","main":"UI/GridLayoutChild/index.js","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1671026996/static/form-blocksvg_1671026996_25277.svg"},"components":{"FormMain7HaF":{"name":"Section","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"FormMain7HaF","givenName":"FORM COMPONENT","props":{"componentData":{"tagName":"form"},"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","backgroundColor":"#f0cacaff","borderRadius":"8px 8px 8px 8px "}}},"settingsRenderer":"Builder/ElementSettingsRenderer/form-component-v1.jsx","componentType":"form-component-v1","component":{"default":{"compare":null}}}},"layouts":{"layouts":{"lg":[{"w":"432px","h":"fit-content","x":"528.5797752808988px","y":"0px","i":"FormMain7HaF","minH":"20px","minW":"20px","position":"relative","display":"flex"}],"sm":[{"i":"FormMain7HaF"}],"md":[{"i":"FormMain7HaF"}],"bp_1920":[{"i":"FormMain7HaF"}],"bp_1440":[{"i":"FormMain7HaF"}],"bp_1280":[{"i":"FormMain7HaF"}]},"FormMain7HaF":{"lg":[],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]}},"fonts":{},"classes":{},"functions":{}}')},6707:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextNameInput1234","displayName":"First Name Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"FIRST NAME COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"TextNameInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"TextNameInput1234"}],"md":[{"i":"TextNameInput1234"}],"bp_1920":[{"i":"TextNameInput1234"}],"bp_1440":[{"i":"TextNameInput1234"}],"bp_1280":[{"i":"TextNameInput1234"}]},"TextNameInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextNameInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"TextNameInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"TextNameInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextNameInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"FIRST NAME COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputIo69":{"formElementType":"firstName","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"First Name","inputType":"text","placeholder":"John Doe","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputIo69","givenName":"field - text","zIndex":"1","parent":"TextNameInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>First Name</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"TextNameInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},932:function(t){"use strict";t.exports=JSON.parse('{"name":"Form","client_id":"FormMain7HaF","componentType":"form-component-v1","displayName":"Form Block v1","givenName":"FORM COMPONENT","type":"form","category":"blocks","subCategory":"Functional","subCategoryOrder":"1","description":"A Form lets you collect data from users.","custom":"true","isListed":"true","main":"UI/GridLayoutChild/index.js","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1671026996/static/form-blocksvg_1671026996_25277.svg"},"components":{"FormMain7HaF":{"name":"Section","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"FormMain7HaF","givenName":"FORM COMPONENT","props":{"componentData":{"tagName":"form"},"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","backgroundColor":"#f0cacaff","borderRadius":"8px 8px 8px 8px "}}},"settingsRenderer":"Builder/ElementSettingsRenderer/form-component-v1.jsx","componentType":"form-component-v1","component":{"default":{"compare":null}}},"TextInputmVgs":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextInputmVgs","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"TEXT INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":{"default":{"compare":null}},"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[],"parent":"FormMain7HaF"},"InputJb7x":{"formElementType":"text","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}}
1,"componentData":{"fieldName":"Full Name","inputType":"text","placeholder":"First Name","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputJb7x","givenName":"field - text","zIndex":"1","parent":"TextInputmVgs","component":{"default":{"compare":null}}},"Span4ffE":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"Span4ffE","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>First Name</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"TextInputmVgs","component":{}},"InputBI09":{"formElementType":"email","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Email","inputType":"email","placeholder":"[email protected]","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputBI09","givenName":"field - email","zIndex":"1","parent":"EmailInputlLG5","disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"component":{"default":{"compare":null}}},"SpanKVzE":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpanKVzE","disabledBuilderFunctions":["copy","changeParent"],"classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Email</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - email","parent":"EmailInputlLG5","component":{}},"EmailInputlLG5":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"EmailInputlLG5","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"EMAIL INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":{"default":{"compare":null}},"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[],"parent":"FormMain7HaF"},"SubmitButton8Fei":{"name":"Section","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"SubmitButton8Fei","givenName":"Button with icon","formElementType":"submit","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 16px","alignItems":"center","columnGap":"8px","backgroundColor":"#EFEFEF","borderRadius":"2px 2px 2px 2px ","borderWidth":"0px 0px 0px 0px ","borderStyle":"solid solid solid solid ","borderColor":"#333 #333 #333 #333 "}},"componentData":{"tagName":"button"},"hover":{"global":{"backgroundColor":"#00000019"}}},"component":{"default":{"compare":null}},"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"executableInternalFunctions":{"onClick":["onSubmitForm"]},"parent":"FormMain7HaF"},"SpanKsYo":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpanKsYo","props":{"componentData":{"children":"<p>Submit Form</p>"},"componentStyle":{"global":{"fontFamily":"Nunito Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"26px"}}},"givenName":"Text","zIndex":"1","parent":"SubmitButton8Fei","component":{},"disabledBuilderFunctions":["copy","changeParent"]}
1,"FontsDQT1":{"custom":"true","tags":["font"],"category":"Icons","name":"Fonts","isListed":"true","type":"component","thumbnail":{"src":"https://res.cloudinary.com/lensbird/q_auto/v1619445497/storylens-dev/static/_1619445498_34786.png","width":61,"height":58},"context":["Homepage","home"],"isStatic":false,"main":"UI/Fonts/index.jsx","props":{"componentData":{"font":"fab fa-fonticons-fi","icon":"far fa-star"},"componentStyle":{"global":{"padding":"0px 0px 0px 0px","color":"#000000ff","textAlign":"center","fontSize":"22px"}}},"client_id":"FontsDQT1","givenName":"Font Awesome","parent":"SubmitButton8Fei","component":{},"disabledBuilderFunctions":["copy","changeParent"]}},"layouts":{"layouts":{"lg":[{"w":"432px","h":"fit-content","x":"528.5797752808988px","y":"0px","i":"FormMain7HaF","minH":"20px","minW":"20px","position":"relative","display":"flex"}],"sm":[{"i":"FormMain7HaF"}],"md":[{"i":"FormMain7HaF"}],"bp_1920":[{"i":"FormMain7HaF"}],"bp_1440":[{"i":"FormMain7HaF"}],"bp_1280":[{"i":"FormMain7HaF"}]},"FormMain7HaF":{"lg":[{"y":"0px","i":"TextInputmVgs","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx","parent":"FormMain7HaF","static":false},{"y":"0px","i":"EmailInputlLG5","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","parent":"FormMain7HaF","static":false},{"w":"fit-content","h":"fit-content","x":"0px","y":"0px","i":"SubmitButton8Fei","minH":"20px","minW":"20px","position":"relative","static":false,"display":"flex","parent":"FormMain7HaF"}],"sm":[{"i":"TextInputmVgs"},{"i":"SubmitButton8Fei"},{"i":"EmailInputlLG5"}],"md":[{"i":"TextInputmVgs"},{"i":"SubmitButton8Fei"},{"i":"EmailInputlLG5"}],"bp_1280":[{"i":"TextInputmVgs"},{"i":"SubmitButton8Fei"},{"i":"EmailInputlLG5"}],"bp_1440":[{"i":"TextInputmVgs"},{"i":"SubmitButton8Fei"},{"i":"EmailInputlLG5"}],"bp_1920":[{"i":"TextInputmVgs"},{"i":"SubmitButton8Fei"},{"i":"EmailInputlLG5"}]},"TextInputmVgs":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Span4ffE","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextInputmVgs","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputJb7x","h":"auto","display":"block","position":"relative","parent":"TextInputmVgs","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]},"EmailInputlLG5":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanKVzE","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"EmailInputlLG5"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputBI09","h":"auto","display":"block","position":"relative","parent":"EmailInputlLG5"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]},"SubmitButton8Fei":{"lg":[{"w":"fit-content","h":"auto","x":"0px","y":"0px","i":"SpanKsYo","static":false,"display":"block","minH":"10px","minW":"16px","position":"relative","parent":"SubmitButton8Fei","x1":0,"y1":0},{"x":"0px","y":"0px","w":"auto","h":"auto","i":"FontsDQT1","x1":"0px","y1":"0px","static":false,"minW":"10px","minH":"10px","display":"block","parent":"SubmitButton8Fei"}],"sm":[{"i":"SpanKsYo","parent":"SubmitButton8Fei"},{"i":"FontsDQT1","parent":"SubmitButton8Fei"}],"md":[{"i":"SpanKsYo","parent":"SubmitButton8Fei"},{"i":"FontsDQT1","parent":"SubmitButton8Fei"}],"bp_1280":[{"i":"SpanKsYo","parent":"SubmitButton8Fei"},{"i":"FontsDQT1","parent":"SubmitButton8Fei"}],"bp_1440":[{"i":"SpanKsYo","parent":"SubmitButton8Fei"},{"i":"FontsDQT1","parent":"SubmitButton8Fei"}],"bp_1920":[{"i":"SpanKsYo","parent":"SubmitButton8Fei"},{"i":"FontsDQT1","parent":"SubmitButton8Fei"}]}},"fonts":{},"classes":{},"functions":{}}')},1638:function(t){"use strict";t.exports=JSON.parse('{"name":"Form","componentType":"form-component-v1","client_id":"FormMain7HaF","displayName":"Buy Now Button","givenName":"FORM COMPONENT","type":"form","category":"blocks","subCategory":"Functional","subCategoryOrder":"1","description":"A Form lets you collect data from users.","custom":"true","isListed":"true","main":"UI/GridLayoutChild/index.js","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1671026996/static/form-blocksvg_1671026996_25277.svg"},"components":{"FormMain7HaF":{"name":"Section","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"FormMain7HaF","givenName":"FORM COMPONENT","props":{"componentData":{"tagName":"form"},"componentStyle":{"global":{"flexDirection":"column","backgroundColor":"#f0cacaff","borderRadius":"8px 8px 8px 8px "}}},"settingsRenderer":"Builder/ElementSettingsRenderer/form-component-v1.jsx","componentType":"form-component-v1","component":{"default":{"compare":null}}},"BuyButton1234":{"name":"Section","type":"block","category":"blocks","custom":"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"BuyButton1234","givenName":"Button with icon","formElementType":"buy","executableInternalFunctions":{"onClick":["onBuy"]},"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 16px","alignItems":"center","columnGap":"8px","backgroundColor":"#EFEFEF","borderRadius":"2px 2px 2px 2px ","borderWidth":"0px 0px 0px 0px ","borderStyle":"solid solid solid solid ","borderColor":"#333 #333 #333 #333 "}},"componentData":{"tagName":"button"},"hover":{"global":{"backgroundColor":"#00000019"}}},"parent":"FormMain7HaF","component":{"default":{"compare":null}},"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true}},"SpankYEj":{"name":"Span","type":"text","category":"Text","custom"
1:"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpankYEj","props":{"componentData":{"children":"<p>Buy Now</p>"},"componentStyle":{"global":{"fontFamily":"Nunito Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"26px"}}},"givenName":"Text","zIndex":"1","parent":"BuyButton1234","component":{},"disabledBuilderFunctions":["copy","changeParent"]},"FontsOgio":{"custom":"true","tags":["font"],"category":"Icons","name":"Fonts","isListed":"true","type":"component","thumbnail":{"src":"https://res.cloudinary.com/lensbird/q_auto/v1619445497/storylens-dev/static/_1619445498_34786.png","width":61,"height":58},"context":["Homepage","home"],"isStatic":false,"main":"UI/Fonts/index.jsx","props":{"componentData":{"font":"fab fa-fonticons-fi","icon":"far fa-star"},"componentStyle":{"global":{"padding":"0px 0px 0px 0px","color":"#000000ff","textAlign":"center","fontSize":"22px"}}},"client_id":"FontsOgio","givenName":"Font Awesome","parent":"BuyButton1234","component":{},"disabledBuilderFunctions":["copy","changeParent"]}},"layouts":{"layouts":{"lg":[{"w":"fit-content","h":"fit-content","x":"528.5797752808988px","y":"0px","i":"FormMain7HaF","minH":"20px","minW":"20px","position":"relative","display":"flex"}],"sm":[{"i":"FormMain7HaF"}],"md":[{"i":"FormMain7HaF"}],"bp_1920":[{"i":"FormMain7HaF"}],"bp_1440":[{"i":"FormMain7HaF"}],"bp_1280":[{"i":"FormMain7HaF"}]},"FormMain7HaF":{"lg":[{"w":"fit-content","h":"fit-content","x":"0px","y":"0px","i":"BuyButton1234","minH":"20px","minW":"20px","position":"relative","static":false,"display":"flex","parent":"FormMain7HaF"}],"sm":[{"i":"BuyButton1234"}],"md":[{"i":"BuyButton1234"}],"bp_1280":[{"i":"BuyButton1234"}],"bp_1440":[{"i":"BuyButton1234"}],"bp_1920":[{"i":"BuyButton1234"}]},"BuyButton1234":{"lg":[{"w":"fit-content","h":"auto","x":"0px","y":"0px","i":"SpankYEj","static":false,"display":"block","minH":"10px","minW":"16px","position":"relative","parent":"BuyButton1234","x1":0,"y1":0},{"x":"0px","y":"0px","w":"auto","h":"auto","i":"FontsOgio","x1":"0px","y1":"0px","static":false,"minW":"10px","minH":"10px","display":"block","parent":"BuyButton1234"}],"sm":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"md":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"bp_1280":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"bp_1440":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}],"bp_1920":[{"i":"SpankYEj","parent":"BuyButton1234"},{"i":"FontsOgio","parent":"BuyButton1234"}]}},"fonts":{},"classes":{},"functions":{}}')},7273:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextNameInput1234","displayName":"Full Name Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"FULL NAME COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"TextNameInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"TextNameInput1234"}],"md":[{"i":"TextNameInput1234"}],"bp_1920":[{"i":"TextNameInput1234"}],"bp_1440":[{"i":"TextNameInput1234"}],"bp_1280":[{"i":"TextNameInput1234"}]},"TextNameInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextNameInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"TextNameInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"TextNameInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextNameInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"FULL NAME COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputIo69":{"formElementType":"fullName","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Full Name","inputType":"text","placeholder":"John Doe","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputIo69","givenName":"field - text","zIndex":"1","parent":"TextNameInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Full Name</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"TextNameInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},1741:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextNameInput1234","displayName":"Last Name Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"LAST NAME COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"TextNameInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"TextNameInput1234"}],"md":[{"i":"TextNameInput1234"}],"bp_1920":[{"i":"TextNameInput1234"}],"bp_1440":[{"i":"TextNameInput1234"}],"bp_1280":[{"i":"TextNameInput1234"}]},"TextNameInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextNameInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"TextNameInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"TextNameInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextNameInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"LAST NAME COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputIo69":{"formElementType":"lastName","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Last Name","inputType":"text","placeholder":"John Doe","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputIo69","givenName":"field - text","zIndex":"1","parent":"TextNameInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Last Name</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"TextNameInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},8262:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"NumberInput1234","displayName":"Number Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"NUMBER INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"NumberInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"NumberInput1234"}],"md":[{"i":"NumberInput1234"}],"bp_1920":[{"i":"NumberInput1234"}],"bp_1440":[{"i":"NumberInput1234"}],"bp_1280":[{"i":"NumberInput1234"}]},"NumberInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"NumberInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"NumberInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"NumberInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"NumberInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"NUMBER INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputIo69":{"props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Number","inputType":"number","placeholder":"0","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"InputIo69","givenName":"field - number","zIndex":"","parent":"NumberInput1234","component":{"default":{"compare":null}},"formElementType":"number","disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"]},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Label for Number Field</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"NumberInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},8300:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"PhoneInput1234","displayName":"Phone Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"PHONE INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"PhoneInput1234","x":"0px","h":"auto","w":"99.45434776772531%","display":"flex","x1":"NaNpx","moved":true}],"sm":[{"i":"PhoneInput1234"}],"md":[{"i":"PhoneInput1234"}],"bp_1920":[{"i":"PhoneInput1234"}],"bp_1440":[{"i":"PhoneInput1234"}],"bp_1280":[{"i":"PhoneInput1234"}]},"PhoneInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"Span8kAq","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"PhoneInput1234"},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"Inputn7eb","h":"auto","display":"block","position":"relative","parent":"PhoneInput1234"}],"sm":[],"md":[],"bp_1280":[],"bp_1440":[],"bp_1920":[]}},"components":{"PhoneInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"PhoneInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"PHONE INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"component":null},"Inputn7eb":{"formElementType":"phone","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Phone","inputType":"text","placeholder":"Phone number","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom"
1:"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"type":"form","client_id":"Inputn7eb","givenName":"field - phone","zIndex":"1","parent":"PhoneInput1234","disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"component":{"default":{"compare":null}}},"Span8kAq":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"Span8kAq","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Phone Number</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - phone","parent":"PhoneInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},9760:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"DropdownInput1234","displayName":"Dropdown Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"DROPDOWN INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"DropdownInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"DropdownInput1234"}],"md":[{"i":"DropdownInput1234"}],"bp_1920":[{"i":"DropdownInput1234"}],"bp_1440":[{"i":"DropdownInput1234"}],"bp_1280":[{"i":"DropdownInput1234"}]},"DropdownInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"DropdownInput1234","moved":true},{"h":"auto","x1":"0px","y":"0px","i":"DropdownpebH","w":"100%","x":"0px","display":"block","maxW":"none","minW":"30px","parent":"DropdownInput1234"}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"DropdownInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"DropdownInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"DROPDOWN INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"DropdownpebH":{"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Dropdown Settings"],"formElementType":"select","givenName":"field - dropdown","category":"Forms","custom":"true","author":"Storylens","main":"UI/Input/Select.jsx","type":"form","zIndex":"","name":"Dropdown","isListed":"true","isStatic":false,"uniqueId":"DropdownpebH","props":{"componentData":{"Options":[{"label":"First","value":"first"},{"value":"second","label":"Second"}],"placeholder":"Select any"},"componentStyle":{"global":{"padding":"8px 12px 8px 12px","fontSize":"16px","fontWeight":"400","fontFamily":"Nunito Sans","color":"#000000","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}}},"thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278742/static/select.svg"},"context":["Homepage","last"],"client_id":"DropdownpebH","parent":"DropdownInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>First Name</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"DropdownInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},6759:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"SectionFzMV","displayName":"Submit Button","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"SUBMIT BUTTON COMPONENT","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{},"layouts":{"layouts":{"lg":[{"w":"fit-content","h":"fit-content","x":"0px","y":"0px","i":"SectionFzMV","minH":"20px","minW":"20px","position":"relative","static":false,"display":"flex"}],"sm":[{"i":"SectionFzMV"}],"md":[{"i":"SectionFzMV"}],"bp_1280":[{"i":"SectionFzMV"}],"bp_1440":[{"i":"SectionFzMV"}],"bp_1920":[{"i":"SectionFzMV"}]},"SectionFzMV":{"lg":[{"w":"fit-content","h":"auto","x":"0px","y":"0px","i":"SpankYEj","static":false,"display":"block","minH":"10px","minW":"16px","position":"relative","parent":"SectionFzMV","x1":0,"y1":0},{"x":"0px","y":"0px","w":"auto","h":"auto","i":"FontsOgio","x1":"0px","y1":"0px","static":false,"minW":"10px","minH":"10px","display":"block","parent":"SectionFzMV"}],"sm":[{"i":"SpankYEj","parent":"SectionFzMV"},{"i":"FontsOgio","parent":"SectionFzMV"}],"md":[{"i":"SpankYEj","parent":"SectionFzMV"},{"i":"FontsOgio","parent":"SectionFzMV"}],"bp_1280":[{"i":"SpankYEj","parent":"SectionFzMV"},{"i":"FontsOgio","parent":"SectionFzMV"}],"bp_1440":[{"i":"SpankYEj","parent":"SectionFzMV"},{"i":"FontsOgio","parent":"SectionFzMV"}],"bp_1920":[{"i":"SpankYEj","parent":"SectionFzMV"},{"i":"FontsOgio","parent":"SectionFzMV"}]}},"components":{"SectionFzMV":{"name":"Section","type":"block","category":"blocks","custom"
1:"true","main":"UI/GridLayoutChild/index.js","isListed":"true","client_id":"SectionFzMV","givenName":"Button with icon","formElementType":"submit","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 16px","alignItems":"center","columnGap":"8px","backgroundColor":"#EFEFEF","borderRadius":"2px 2px 2px 2px ","borderWidth":"0px 0px 0px 0px ","borderStyle":"solid solid solid solid ","borderColor":"#333 #333 #333 #333 "}},"componentData":{"tagName":"button"},"hover":{"global":{"backgroundColor":"#00000019"}}},"component":{"default":{"compare":null}},"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"executableInternalFunctions":{"onClick":["onSubmitForm"]}},"SpankYEj":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","client_id":"SpankYEj","props":{"componentData":{"children":"<p>Submit Form</p>"},"componentStyle":{"global":{"fontFamily":"Nunito Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"26px"}}},"givenName":"Text","zIndex":"1","parent":"SectionFzMV","component":{},"disabledBuilderFunctions":["copy","changeParent"]},"FontsOgio":{"custom":"true","tags":["font"],"category":"Icons","name":"Fonts","isListed":"true","type":"component","thumbnail":{"src":"https://res.cloudinary.com/lensbird/q_auto/v1619445497/storylens-dev/static/_1619445498_34786.png","width":61,"height":58},"context":["Homepage","home"],"isStatic":false,"main":"UI/Fonts/index.jsx","props":{"componentData":{"font":"fab fa-fonticons-fi","icon":"far fa-star"},"componentStyle":{"global":{"padding":"0px 0px 0px 0px","color":"#000000ff","textAlign":"center","fontSize":"22px"}}},"client_id":"FontsOgio","givenName":"Font Awesome","parent":"SectionFzMV","component":{},"disabledBuilderFunctions":["copy","changeParent"]}}}')},8400:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextInput1234","displayName":"Text Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"TEXT INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"TextInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"TextInput1234"}],"md":[{"i":"TextInput1234"}],"bp_1920":[{"i":"TextInput1234"}],"bp_1440":[{"i":"TextInput1234"}],"bp_1280":[{"i":"TextInput1234"}]},"TextInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"TextInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"TextInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"TEXT INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputIo69":{"formElementType":"text","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Text","inputType":"text","placeholder":"add some text...","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputIo69","givenName":"field - text","zIndex":"1","parent":"TextInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Text Label</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - text","parent":"TextInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},551:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextAreaInput1234","displayName":"TextArea Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"TEXTAREA INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"TextAreaInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"TextAreaInput1234"}],"md":[{"i":"TextAreaInput1234"}],"bp_1920":[{"i":"TextAreaInput1234"}],"bp_1440":[{"i":"TextAreaInput1234"}],"bp_1280":[{"i":"TextAreaInput1234"}]},"TextAreaInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"TextAreaInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"TextArea6jlH","h":"100px","display":"block","position":"relative","parent":"TextAreaInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"TextAreaInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"TextAreaInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"TEXT INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"TextArea6jlH":{"formElementType":"textarea","props":{"componentStyle":{"global":{"padding":"6px 12px 6px 12px","fontSize":"16px","fontWeight":"400","fontFamily":"Nunito Sans","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Long Text","placeholder":"Enter your text","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/TextArea.jsx","name":"TextArea","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"TextArea6jlH","givenName":"field - textarea","zIndex":"1","parent":"TextAreaInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Message</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"TextAreaInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')},6185:function(t){"use strict";t.exports=JSON.parse('{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"UrlInput1234","displayName":"URL Input","name":"Div","isListed":"false","custom":"true","type":"block","givenName":"URL INPUT COMPONENT","layouts":{"layouts":{"lg":[{"y":"0px","i":"UrlInput1234","x":"0px","h":"auto","w":"
1100%","display":"flex","x1":"NaNpx"}],"sm":[{"i":"UrlInput1234"}],"md":[{"i":"UrlInput1234"}],"bp_1920":[{"i":"UrlInput1234"}],"bp_1440":[{"i":"UrlInput1234"}],"bp_1280":[{"i":"UrlInput1234"}]},"UrlInput1234":{"lg":[{"w":"100%","h":"auto","x":"0px","y":"0px","i":"SpanEKLM","display":"block","minH":"10px","minW":"16px","position":"relative","parent":"UrlInput1234","moved":true},{"x":"0px","x1":"0px","y1":"0px","y":"0px","w":"100%","i":"InputIo69","h":"auto","display":"block","position":"relative","parent":"UrlInput1234","moved":true}],"md":[],"bp_1920":[],"sm":[],"bp_1440":[],"bp_1280":[]}},"components":{"UrlInput1234":{"main":"UI/GridLayoutChild/index.js","category":"blocks","client_id":"UrlInput1234","name":"Div","isListed":"true","custom":"true","type":"block","givenName":"URL INPUT COMPONENT","props":{"componentStyle":{"global":{"padding":"10px 10px 10px 10px","flexDirection":"column","columnGap":"0px","rowGap":"0px"}}},"component":null,"isFormElementWrapper":true,"disabledBuilderFunctions":["copy","changeParentDifferentType"],"builderAttributes":{"data-layerView-to-block":true},"classes":[]},"InputIo69":{"formElementType":"url","props":{"componentStyle":{"global":{"padding":"8px 16px 8px 12px","fontFamily":"Open Sans","fontSize":"16px","color":"#000000","lineHeight":"26px","backgroundColor":"#ffffff","border":"1px solid #cccccc","borderRadius":"4px 4px 4px 4px"}},"componentData":{"fieldName":"Url","inputType":"url","placeholder":"https://...","properties":{"required":"true"}},"placeholder":{"global":{"color":"#0000007f"}}},"isListed":"true","category":"Forms","context":["Homepage","last"],"isStatic":false,"main":"UI/Input/Input.jsx","name":"Input","custom":"true","thumbnail":{"src":"https://res.cloudinary.com/storylens/image/upload/v1622278740/static/input.svg","height":50,"width":274},"disabledBuilderFunctions":["copy","changeParent"],"hideElementSettingsMenu":["Input Settings"],"type":"form","client_id":"InputIo69","givenName":"field - text","zIndex":"1","parent":"UrlInput1234","component":{"default":{"compare":null}}},"SpanEKLM":{"name":"Span","type":"text","category":"Text","custom":"true","main":"UI/Text/index.jsx","isListed":"true","disabledBuilderFunctions":["copy","changeParent"],"client_id":"SpanEKLM","classes":["cd-paragraph-clean"],"props":{"componentData":{"children":"<p>Website URL</p>"},"componentStyle":{"global":{"fontFamily":"Open Sans","fontSize":"16px","fontWeight":"400","color":"#000000","lineHeight":"24px"}}},"givenName":"label - fname","parent":"UrlInput1234","component":{}}},"tagName":"section","subCategory":"Blocks","subCategoryOrder":"1","description":"","thumbnail":{"src":"https://res.cloudinary.com/dbyioi2qq/q_auto/v1676905153/static/horizontal-blocksvg_1676905153_74512.svg"},"fonts":{},"classes":{},"functions":{}}')}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],(function(){return e(1780),e(9898)}));var n=t.O();_N_E=n}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.