1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2454],{3368:(e,t,r)=>{Promise.resolve().then(r.bind(r,75469))},8211:(e,t,r)=>{"use strict";r.d(t,{g:()=>c});var s=r(95888),i=r(86565),n=r(30553);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var s,i,n;s=e,i=t,n=r[t],(i=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=o(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(i))in s?Object.defineProperty(s,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[i]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(){var e=(0,i.A)(arguments),t=e.text,r=e.options,s=e.metadata;r=u(u({},r),{},{extract:!1});var o=(0,n.A)(t,r,s);return o&&o.isValid()||!1}function c(){return(0,s.A)(a,arguments)}},25855:(e,t,r)=>{"use strict";r.d(t,{$6:()=>n,CZ:()=>i});var s=r(62794);let i=()=>{let e=window.location.hostname;return(e.includes("localhost")||e.includes("127.0.0.1")?s.env.NEXT_PUBLIC_SIMULATE_DOMAIN:e)||null},n=e=>e?e.split(".")[0]||e:""},28665:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});var s=r(66237),i=r(77665);let n=()=>{let[e,t]=(0,i.useState)(!1),{width:r}=(0,s.l)();return(0,i.useEffect)(()=>{let e=()=>{let e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),r="ontouchstart"in window||navigator.maxTouchPoints>0,s=window.screen.width;t(e||r&&s<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[r]),e}},29459:(e,t,r)=>{"use strict";r.d(t,{E:()=>g});var s=r(77665),i=r(39638),n=r(63896),o=r(27039),l=r(46687);function u(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var a=class extends o.Q{#e;#t;#r;#s;#i;#n;#o;#l;#u=[];constructor(e,t,r){super(),this.#e=e,this.#s=r,this.#r=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#i.forEach(e=>{e.subscribe(t=>{this.#a(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#s=t,i.jG.batch(()=>{let e=this.#i,t=this.#c(this.#r);this.#u=t,t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),s=r.map(e=>e.getCurrentResult()),i=r.some((t,r)=>t!==e[r]);(e.length!==r.length||i)&&(this.#i=r,this.#t=s,this.hasListeners()&&(u(e,r).forEach(e=>{e.destroy()}),u(r,e).forEach(e=>{e.subscribe(t=>{this.#a(e,t)})}),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let r=this.#c(e),s=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[s,e=>this.#b(e??s,t),()=>this.#p(s,r)]}#p(e,t){return t.map((r,s)=>{let i=e[s];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#b(e,t){return t?(this.#n&&this.#t===this.#l&&t===this.#o||(this.#o=t,this.#l=this.#t,this.#n=(0,l.BH)(this.#n,t(e))),this.#n):e}#c(e){let t=new Map(this.#i.map(e=>[e.options.queryHash,e])),r=[];return e.forEach(e=>{let s=this.#e.defaultQueryOptions(e),i=t.get(s.queryHash);i?r.push({defaultedQueryOptions:s,observer:i}):r.push({defaultedQueryOptions:s,observer:new n.$(this.#e,s)})}),r}#a(e,t){let r=this.#i.indexOf(e);-1!==r&&(this.#t=function(e,t,r){let s=e.slice(0);return s[t]=r,s}(this.#t,r,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#n,t=this.#p(this.#t,this.#u);e!==this.#b(t,this.#s?.combine)&&i.jG.batch(()=>
1{this.listeners.forEach(e=>{e(this.#t)})})}}},c=r(87719),h=r(60417),b=r(6450),p=r(15694),d=r(27707);function g(e,t){let{queries:r,...o}=e,u=(0,c.jE)(t),g=(0,h.w)(),f=(0,b.h)(),m=s.useMemo(()=>r.map(e=>{let t=u.defaultQueryOptions(e);return t._optimisticResults=g?"isRestoring":"optimistic",t}),[r,u,g]);m.forEach(e=>{(0,d.jv)(e),(0,p.LJ)(e,f)}),(0,p.wZ)(f);let[v]=s.useState(()=>new a(u,m,o)),[y,w,O]=v.getOptimisticResult(m,o.combine),E=!g&&!1!==o.subscribed;s.useSyncExternalStore(s.useCallback(e=>E?v.subscribe(i.jG.batchCalls(e)):l.lQ,[v,E]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),s.useEffect(()=>{v.setQueries(m,o)},[m,o,v]);let k=y.some((e,t)=>(0,d.EU)(m[t],e))?y.flatMap((e,t)=>{let r=m[t];if(r){let t=new n.$(u,r);if((0,d.EU)(r,e))return(0,d.iL)(r,t,f);(0,d.nE)(e,g)&&(0,d.iL)(r,t,f)}return[]}):[];if(k.length>0)throw Promise.all(k);let j=y.find((e,t)=>{let r=m[t];return r&&(0,p.$1)({result:e,errorResetBoundary:f,throwOnError:r.throwOnError,query:u.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(null==j?void 0:j.error)throw j.error;return w(O())}},52149:(e,t,r)=>{"use strict";r.d(t,{TM:()=>a,YV:()=>u,cn:()=>n,eo:()=>l,mj:()=>c});var s=r(88047),i=r(79532);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,s.$)(t))}let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.toFixed(t)},l=function(e){var t,r;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(isNaN(e=Number(e)))return"";let i=(e=o(e,s)).toString().split("."),n=i[0],l=i[1]||"0".repeat(s),u="".concat((isNaN(t=Number(t=n))?"":t?null==(r=Number(t))?void 0:r.toLocaleString():"")||"0",".").concat(l);return 1===l.length&&(u+="0"),u||"0.".concat("0".repeat(s))};function u(e){try{let t=e.match(/url\('([^']*)'\)/);if(t)return t[1];let r=e.match(/url\("([^"]*)"\)/);if(r)return r[1];let s=e.match(/url\(([^)]+)\)/);if(s)return s[1].trim();return null}catch(e){return null}}function a(e){if(!e||"string"!=typeof e)return[];let t=[],r="",s=0;for(let i=0;i<e.length;i++){let n=e[i];"["===n?(s++,r+=n):"]"===n?(s--,r+=n,0===s&&r.trim()&&(c(r.trim())&&t.push(r.trim()),r="")):" "===n&&0===s?(r.trim()&&c(r.trim())&&t.push(r.trim()),r=""):r+=n}return r.trim()&&c(r.trim())&&t.push(r.trim()),t}function c(e){return e.startsWith("bg-gradient-")||e.startsWith("from-")||e.startsWith("to-")||e.startsWith("via-")||e.startsWith("bg-[")||"bg-cover"===e||"bg-contain"===e||"bg-auto"===e||"bg-fixed"===e||"bg-scroll"===e||"bg-repeat"===e||"bg-no-repeat"===e||"bg-repeat-x"===e||"bg-repeat-y"===e||"bg-repeat-round"===e||"bg-repeat-space"===e||/^bg-\w+/.test(e)}},59285:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});var s=r(79272),i=r(64078);let n=(0,s.v)()((0,i.Zr)((e,t)=>({parentBusiness:null,isLoading:!1,error:null,setParentBusiness:t=>e({parentBusiness:t,error:null}),setIsLoading:t=>e({isLoading:t}),setError:t=>e({error:t,isLoading:!1}),isMarketplaceContext:()=>{let{parentBusiness:e}=t();return(null==e?void 0:e.isMarketplace)===!0},getMarketplaceId:()=>{let{parentBusiness:e}=t();return(null==e?void 0:e.isMarketplace)?e.id:null},reset:()=>e({parentBusiness:null,isLoading:!1,error:null})}),{name:"marketplace-context",storage:(0,i.KU)(()=>localStorage),partialize:e=>({parentBusiness:e.parentBusiness})}))},75469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(21573),i=r(77665),n=r(40134),o=r(34666),l=r(67598),u=r(69934);function a(){let e=(0,n.useRouter)(),{isAuthenticated:t,revalidate:r,logout:a}=(0,u.useAuth)(),[c,h]=(0,i.useState)(!0);return((0,i.useEffect)(()=>{let s=!1;return t&&(0,o.getCookie)("token")?(r().then(()=>{s||e.replace("/onboarding")}).catch(()=>{s||(a(),h(!1))}),()=>{s=!0}):void h(!1)},[t,r,a,e]),c)?null:(0,s.jsx)(l.W,{})}},79789:(e,t,r)=>{"use strict";r.d(t,{m:()=>d});var s=r(21573),i=r(77665),n=r(92968),o=r(69361),l=r(63895),u=r(79563),a=r(28665),c=r(52149),h=r(23669),b=r(49602),p=r(25855);function d(e){let{onSuccess:t,mode:r,className:d,disabled:g,size:f,...m}=e,[v,y]=(0,i.useState)(!1);(0,a.a)();let w=window.location.pathname,O=(0,o.c)("auth.signIn"),E=(0,o.c)("auth.signUp"),k=(0,o.c)("errors"),j=(0,p.CZ)(),R=j&&"localhost"!==j&&"127.0.0.1"!==j?(0,p.$6)(j):null,S=(0,n.mg)({onSuccess:async e=>{var s,i,n,o;let a={google_access_token:e.access_token,website_pages:{draft:[{id:"home",name:"home",title:"home",pageSlug:"home",description:"",header_tag:""}],live:[]}};R&&(a.marketplace_subdomain=R);let c={google_access_token:e.access_token};try{let n;switch(r){case"login":(null==(n=await (0,l.pH)(c))?void 0:n.status)===200?t(n,r):u.o.error((null==n||null==(s=n.data)?void 0:s.message)||O("loginError")),y(!1);break;case"signup":(null==(n=await (0,l.iP)(a))?void 0:n.status)===200?(y(!1),t(n,"signup",e.access_token)):(u.o.error((null==n||null==(i=n.data)?void 0:i.message)||E("signupError")),y(!1))}}catch(t){let e=(null==t||null==(o=t.response)||null==(n=o.data)?void 0:n.message)||(null==t?void 0:t.message)||k("generic");u.o.error(e),y(!1)}},onError:()=>{u.o.error(O("loginError")),y(!1)},onNonOAuthError:()=>{u.o.error(k("generic")),y(!1)},flow:"implicit"});return(0,s.jsx)(h.Button,{size:f,variant:"outline",...m,onClick:()=>{y(!0),S({})}
1,loading:v,disabled:g,className:(0,c.cn)("!border w-full py-4 rounded-2xl",d),children:(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)(b.F.Google,{className:"object-contain h-5"}),(0,s.jsx)("p",{className:"text-title",children:"/login"===w?O("googleButton"):E("googleButton")})]})})}}},e=>{e.O(0,[3321,4004,1812,9042,3692,5209,5353,2105,2545,4338,5701,8069,279,9679,8364,6794,5768,7963,1425,9602,9497,3136,7598,5856,6561,7358],()=>e(e.s=3368)),_N_E=e.O()}]);
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.