1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["BMFzDzQf.js","CSvdPb0x.js","BGGoRUt3.js","D6ESIijv.js","D52pNXyd.css","BK0nbREG.js","Drr37Gfy.js","B8CUchad.js","C9p-Do6-.js","D9zYanSm.js","D6MBaAGO.js","DvnBTJ75.js","DVQ0qK3O.js","DDRd_XHV.js","Ds2PnQ6u.js","B02epDWn.js","CBTsH07P.js","Czst8sKF.js","BtQAMHWt.js","BtXQk0aI.js","CbJpbK-9.js","CsyR-XLd.js","DXYOVfkY.js","D85eVYtE.js","D_8Ma0kv.js","DcjvIK9x.js","gRAn-SDV.js","BC5ci2rR.js","D83mQLd4.js","CECh1zDF.js","xlvGbDPX.js","DLQU5jMZ.js","B1isVatw.js","ZeVYdY8O.js","Brjwt-Nf.js","BUmNGrQN.js","DMKQC7zT.js"])))=>i.map(i=>d[i]); 2try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="49bf8b45-77c3-4af5-b9f1-036451a251d6",t._sentryDebugIdIdentifier="sentry-dbid-49bf8b45-77c3-4af5-b9f1-036451a251d6")}catch(Ye){}import{r as t,j as e}from"./CSvdPb0x.js";import{b as s,z as a,sJ as i,gj as n,gn as l,gm as p,cs as w,aP as o,ct as r,m as x,gt as c,v3 as d,cO as m,B as h,b5 as f,aZ as u,gx as
2j,v4 as g,a0 as b,i4 as N,dK as v,dx as y,v5 as _,iH as k,dL as T,ci as O,cy as S,i_ as C,v6 as F,ez as P,ey as D,hQ as R,uF as I,ia as A,h3 as V,v7 as E,a5 as B,uN as z,bv as L,q,aM as M,j as $,v8 as W,by as K,v9 as Y,va as G,fp as H,vb as U,vc as J}from"./BGGoRUt3.js";import{S as Q}from"./Cfcv-nKJ.js";import{a as Z}from"./2PQ95I4k.js";import{p as X,O as tt,a as et,b as st,T as at,V as it,s as nt,c as lt,d as pt,i as wt,e as ot,A as rt,f as xt,P as ct,g as dt,h as mt,M as ht}from"./DezDq_Sz.js";import{S as ft}from"./CHbw2s-1.js";import{u as ut}from"./CpbFQ30R.js";import{R as jt}from"./D85eVYtE.js";import{C as gt}from"./DXYOVfkY.js";import"./D6ESIijv.js";import"./CSrUbQF8.js";import"./Af5HNjW6.js";import"./DqL2bdQT.js";import"./C8Pkfv60.js";import"./BLtZca33.js";import"./DoDNGv0-.js";import"./DyZaDd9P.js";import"./DuuvEwoT.js";import"./CaBKSNtg.js";import"./aKVzGdOt.js";import"./DiI4k-0A.js";import"./BWwJVEsv.js";import"./BK0nbREG.js";import"./Drr37Gfy.js";import"./B8CUchad.js";import"./ByMIb03H.js";import"./CFOWu1GD.js";import"./BM7zka8-.js";import"./BXookZqW.js";import"./DyGSd7Gm.js";import"./CPOOcSTl.js";import"./Dvumqfw0.js";import"./Bwr9lw0W.js";import"./D_8Ma0kv.js";import"./CI1ji8yk.js";import"./BCTOPvH4.js";const bt=t.lazy(()=>j(()=>import("./BMFzDzQf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),Nt=t.lazy(()=>j(()=>import("./xlvGbDPX.js"),__vite__mapDeps([30,1,2,3,4,31,32,33,22,23,6,7,34,35,13,36]))),vt={[l]:{tab:"Plans & Add-ons",key:l,component:bt},[p]:{tab:"Account & Billing",key:p,component:Nt}},yt=()=>{const p=s(),j=a(i),b=a(n),[N,v]=t.useState(l),y=vt[N].component,_=t.useCallback(t=>{p(w({addons:[{status:!0,addonId:t.id}]},`add_on_${t.addon_type}`)),p(o({name:r,addonType:t.addon_type,addonId:t.id}))},[]),k=x(vt,({tab:t,key:e})=>({key:e,label:t}));return t.useEffect(()=>{!b&&p(c())},[b]),e.jsxs(e.Fragment,{children:[e.jsxs(d,{mainLoader:j,isOpen:!0,status:"error",children:[e.jsx(m,{}),e.jsxs("div",{children:["You haven't set up any store yet. ",e.jsx(h,{type:"text",onClick:()=>p(g({isOnBoardingSettingsOpen:!1})),children:"Setup Store"})]})]}),e.jsxs(Q,{$paddingBottom:N===l&&0,children:[e.jsx(f,{animated:!1,tabBarGutter:0,activeKey:N,destroyOnHidden:!0,onChange:t=>v(t),items:k}),e.jsx(t.Suspense,{fallback:e.jsx(u,{className:"spinner"}),children:e.jsx(y,{handleAddon:_})})]})]})};yt.propTypes={OnboardingSettings:b.func};const _t=()=>{const i=s(),{email:n,from_channel:l}=a(N),{isOnBoardingSettingsOpen:p}=a(v),w=+localStorage.getItem(y.sellSite),o=a(_),r=new URLSearchParams(location.search).get("preferedStore"),x=l||o||w||r&&+r;if(t.useEffect(()=>{void 0===p||p||X.CONNECT_STORE_STEP_VIEW()},[p]),t.useEffect(()=>{x||i(k())},[]),!x)return e.jsx(T,{});if(p)return e.jsx(yt,{});const c=O(Z,[x]);return e.jsxs(tt,{isWithActions:x===S,children:[e.jsxs("div",{className:"flex column ai-c p-t-15 p-r-15 p-l-15",children:[e.jsx("div",{className:"flex w-p-100 p-b-20",children:e.jsx(ft,{})}),e.jsx("div",{className:"flex ai-c h-p-100",children:e.jsx(c,{defaultSellSite:x,isModal:!1})})]}),e.jsxs("div",{className:"flex gap-30 jc-c ai-c p-t-10 p-b-10 p-l-40 p-r-40 w-p-100",children:[e.jsxs("div",{className:"flex ai-c",children:["Not ",n,"?",e.jsx(h,{className:"m-l-5",type:"link",onClick:()=>i(C()),children:"Logout"})]}),e.jsx(h,{type:"link",onClick:()=>i(g({isOnBoardingSettingsOpen:!0})),children:"Manage your account"})]})]})},kt="tw:flex tw:flex-col tw:gap-24 tw:p-24 tw:min-[768px]:p-32 tw:laptop-up:gap-16! tw:laptop-up:px-24! tw:laptop:py-16! tw:desktop:py-24! tw:rounded-3xl tw:bg-white/10 tw:border tw:border-solid tw:border-white/30 tw:shadow-[0px_4px_20px_0px_rgba(255,255,255,0.2)]",Tt="tw:flex tw:items-center tw:justify-between tw:gap-16 tw:flex-wrap",Ot="tw:flex tw:flex-col tw:gap-4 tw:laptop-up:gap-0",St="tw:text-15 tw:min-[768px]:text-20! tw:laptop-up:text-16! tw:font-heading tw:font-semibold! tw:text-text-inverse tw:mb-0!",Ct="tw:flex tw:items-end tw:gap-12 tw:flex-wrap tw:laptop-up:gap-8",Ft="tw:font-semibold! tw:font-rubik! tw:text-[40px]! tw:min-[768px]:text-[58px]! tw:laptop-up:text-[32px]! tw:laptop-up:leading-[40px]! tw:text-text-inverse tw:leading-none tw:mb-0!",Pt="tw:line-through tw:text-18 tw:min-[768px]:text-24 tw:laptop-up:text-15! tw:laptop-up:leading-24! tw:text-text-error tw:leading-[32px] tw:font-regular",Dt="tw:hidden tw:min-[1440px]:inline tw:laptop:hidden!",Rt="tw:flex tw:items-center tw:justify-center tw:px-16 tw:py-8 tw:rounded-full tw:whitespace-nowrap tw:bg-[rgba(89,206,136,0.2)] tw:border-2 tw:border-solid tw:border-[#59ce88] tw:text-[#59ce88] tw:font-semibold! tw:text-15! tw:min-[768px]:text-20! tw:laptop-up:text-16! tw:font-heading",It="tw:hidden tw:min-[768px]:inline",At="tw:flex tw:items-center tw:justify-between tw:gap-24 tw:flex-wrap tw:p-12 tw:min-[768px]:p-24 tw:laptop-up:p-16! tw:rounded-2xl tw:bg-white/5",Vt="tw:flex tw:items-center tw:gap-16 tw:laptop:gap-12 tw:flex-1 tw:min-w-0",Et="tw:flex tw:items-center tw:justify-center tw:w-[32px] tw:h-[32px] tw:min-[768px]:w-[60px] tw:min-[768px]:h-[60px] tw:laptop-up:w-[52px]! tw:laptop-up:h-[52px]! tw:rounded-full tw:bg-[rgba(89,206,136,0.3)] tw:text-[#59ce88] tw:shrink-0",Bt="tw:w-[17px]! tw:h-[17px]! tw:min-[768px]:w-[32px]! tw:min-[768px]:h-[32px]!",zt="tw:flex tw:flex-col tw:gap-4 tw:min-w-0",Lt="tw:text-18 tw:min-[768px]:text-24! tw:laptop-up:text-16! tw:font-heading tw:font-semibold! tw:text-white tw:mb-0!",qt="tw:bg-[linear-gradient(90deg,#f97433_0%,#f3393b_100%)] tw:bg-clip-text tw:text-transparent",Mt="tw:text-13 tw:min-[768px]:text-15 tw:text-white/80 tw:mb-0!",$t="tw:font-semibold!",Wt="tw:relative tw:w-[80px] tw:min-[1500px]:w-[200px] tw:h-12 tw:rounded-full tw:bg-white/10 tw:overflow-hidden tw:shrink-0 tw:min-[1200px]:hidden! tw:min-[1500px]:block! t
2w:laptop:hidden!",Kt="tw:absolute tw:left-0 tw:top-0 tw:h-full tw:rounded-full tw:bg-[linear-gradient(90deg,#f97433_0%,#f3393b_100%)]",Yt="tw:bg-[#fc1264]! tw:border-none! tw:text-white! tw:font-semibold! tw:font-heading tw:text-15! tw:min-[768px]:text-24! tw:laptop-up:text-16! tw:uppercase tw:px-24! tw:min-[768px]:px-48! tw:py-12! tw:min-[768px]:py-24! tw:laptop-up:py-16! tw:h-auto! tw:min-h-[64px] tw:laptop-up:min-h-[56px] tw:rounded-2xl! tw:w-full! tw:shadow-[0px_9px_28px_0px_rgba(0,0,0,0.16)]",Gt="tw:hidden! tw:min-[500px]:inline-block! tw:min-[1200px]:hidden! tw:min-[1500px]:inline-block!",Ht="tw:inline-block! tw:min-[500px]:hidden! tw:min-[1200px]:inline-block! tw:min-[1500px]:hidden!",Ut="tw:flex tw:flex-wrap tw:items-center tw:justify-center tw:gap-8 tw:min-[768px]:gap-16",Jt="tw:text-13! tw:min-[768px]:text-20! tw:laptop:text-14! tw:desktop:text-15! tw:text-text-inverse",Qt="tw:text-text-inverse",Zt=({spotsLeft:t,progress:s,onAccept:a})=>e.jsxs("div",{className:kt,children:[e.jsxs("div",{className:Tt,children:[e.jsxs("div",{className:Ot,children:[e.jsx("p",{className:St,children:"Today's Price
2:"}),e.jsxs("div",{className:Ct,children:[e.jsx("p",{className:Ft,children:"$97"}),e.jsxs("span",{className:Pt,children:["$297",e.jsx("span",{className:Dt,children:" regular price"})]})]})]}),e.jsxs("span",{className:Rt,children:["Save $200",e.jsx("span",{className:It,children:" ⢠67% OFF"})]})]}),e.jsxs("div",{className:At,children:[e.jsxs("div",{className:Vt,children:[e.jsx("div",{className:Et,children:e.jsx(F,{className:Bt})}),e.jsxs("div",{className:zt,children:[e.jsxs("p",{className:Lt,children:["Only ",e.jsxs("span",{className:qt,children:[t," spots"]})," left!"]}),e.jsxs("p",{className:Mt,children:["Price increases to $297 after the"," ",e.jsxs("span",{className:$t,children:["next ",t," sales"]}),"."]})]})]}),e.jsx("div",{className:Wt,children:e.jsx("div",{className:Kt,style:{width:`${s}%`}})})]}),e.jsxs(h,{className:Yt,onClick:a,children:[e.jsx("span",{className:Gt,children:"ð  Yes, get my professional store now!  ð"}),e.jsx("span",{className:Ht,children:"ð  Yes, get my professional store!"})]}),e.jsxs("div",{className:Ut,children:[e.jsx("span",{className:Jt,children:"â¡ One
2-time payment"}),e.jsx("span",{className:Qt,children:"â¢"}),e.jsx("span",{className:Jt,children:"ð° No hidden fees"}),e.jsx("span",{className:Qt,children:"â¢"}),e.jsx("span",{className:Jt,children:"ð¡ï¸ 30 day money-back guarantee"})]})]}),Xt="tw:flex tw:items-center tw:justify-center tw:text-15 tw:text-white/80 tw:underline tw:cursor-pointer tw:bg-transparent tw:border-none tw:p-0 tw:mt-auto",te=({onClose:t})=>e.jsx("button",{type:"button",className:Xt,onClick:t,children:"No, I understand I'm passing on this SPECIAL OFFER"}),ee=`${D}/images/add-store/shopify-pro-theme-avatars-img.png`,se="tw:items-center tw:gap-8 tw:px-16 tw:py-[4px] tw:rounded-full tw:bg-[rgba(89,206,136,0.2)] tw:text-[#59ce88] tw:font-medium tw:text-13 tw:min-[1200px]:text-15",ae={header:"tw:relative tw:flex tw:items-center tw:w-full tw:justify-center tw:pb-24 tw:min-[768px]:justify-start tw:min-[768px]:pb-0",logo:"tw:h-[48px] tw:w-auto tw:laptop-up:h-40",peopleViewingPillDesktop:"tw:hidden tw:min-[768px]:flex tw:absolute tw:left-1/2 tw:top-1/2 tw:-translate-x-1/2 tw:-translate-y-1/2 "+se,peopleViewingPillMobile:"tw:flex tw:min-[768px]:hidden "+se,peopleViewingDot:"tw:text-[#59ce88] tw:animate-bounce",titleSection:"tw:flex tw:flex-col tw:items-center tw:gap-16 tw:text-center tw:text-white tw:laptop:gap-12 tw:desktop:gap-8",title:"tw:font-semibold! tw:text-32! tw:min-[768px]:text-[58px]! tw:laptop-up:text-32! tw:font-heading tw:leading-[1.2] tw:mb-0! tw:text-white!",titleHighlight:"tw:bg-gradient-to-b tw:from-[#fa7318] tw:to-[#fb923c] tw:bg-clip-text tw:text-transparent",subtitle:"tw:text-15! tw:min-[768px]:text-18 tw:min-[1200px]:text-20! tw:laptop-up:text-16! tw:leading-[32px] tw:laptop-up:leading-24! tw:mb-0! tw:text-white",subtitleBold:"tw:font-semibold!",testimonials:"tw:flex tw:flex-col tw:min-[768px]:flex-row tw:flex-wrap tw:items-center tw:justify-center tw:gap-8 tw:min-[768px]:gap-24 tw:laptop:gap-16! tw:text-text-inverse tw:mt-24 tw:laptop:mt-16!",testimonialItem:"tw:flex tw:items-center tw:gap-12",avatarsRow:"tw:flex tw:items-center tw:h-32",testimonialBold:"tw:text-15 tw:min-[768px]:text-20! tw:laptop-up:text-16! tw:font-semibold!",testimonialDot:"tw:hidden tw:min-[768px]:inline tw:text-white/80",starsRow:"tw:flex tw:gap-2 tw:items-center",starIcn:"tw:text-[#fcb500]",testimonialMuted:"tw:text-15 tw:min-[768px]:text-20! tw:laptop-up:text-16! tw:text-white tw:font-regular!"},ie=(t,s)=>e.jsxs("div",{className:s,children:[e.jsx(I,{className:ae.peopleViewingDot,size:8}),e.jsxs("span",{children:[t," people viewing right now"]})]}),ne=({peopleViewing:t})=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:ae.header,children:[e.jsx(P,{className:ae.logo}),ie(t,ae.peopleViewingPillDesktop)]}),e.jsxs("div",{className:ae.titleSection,children:[ie(t,ae.peopleViewingPillMobile),e.jsxs("h1",{className:ae.title,children:["Professional One Product Store ",e.jsx("span",{className:ae.titleHighlight,children:"Ready to Launch"})]}),e.jsxs("p",{className:ae.subtitle,children:["One product. One store. Built to sell. Premium design, done for you â"," ",e.jsx("span",{className:ae.subtitleBold,children:"for just $97!"})]})]}),e.jsxs("div",{className:ae.testimonials,children:[e.jsxs("div",{className:ae.testimonialItem,children:[e.jsx("img",{src:ee,alt:"avatars",className:ae.avatarsRow}),e.jsx("span",{className:ae.testimonialBold,children:"2,867+ stores launched"})]}),e.jsx("span",{className:ae.testimonialDot,children:"â¢"}),e.jsxs("div",{className:ae.testimonialItem,children:[e.jsx("div",{className:ae.starsRow,children:Array.from({length:5}).map((t,s)=>e.jsx(R,{className:ae.starIcn,size:20},s))}),e.jsx("span",{className:ae.testimonialBold,children:"(4.9/5)"}),e.jsx("span",{className:ae.testimonialMuted,children:"1,203 reviews"})]})]})]}),le="tw:grid tw:grid-cols-1 tw:min-[768px]:grid-cols-2 tw:gap-x-24 tw:gap-y-12 tw:laptop-up:gap-y-8 tw:laptop-up:mt-8",pe="tw:flex tw:items-center tw:gap-12",we="tw:text-[#59ce88] tw:shrink-0",oe="tw:text-15! tw:min-[768px]:text-20! tw:laptop-up:text-16! tw:text-white tw:mb-0!",re="tw:font-semibold!",xe=[e.jsxs(e.Fragment,{children:[e.jsx("span",{className:re,children:"Ready-to-Launch Store"})," Built Around Your Product"]}),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:re,children:"Built Entirely Around"})," Your One Winning Product"]}),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:re,children:"Professional Design"})," That Converts"]}),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:re,children:"Mobile & Desktop"})," Optimized"]})],ce=()=>e.jsx("div",{className:le,children:xe.map((t,s)=>e.jsxs("div",{className:pe,children:[e.jsx(A,{className:we,size:20}),e.jsx("p",{className:oe,children:t})]},s))}),de="tw:flex tw:items-center tw:justify-between tw:gap-16 tw:flex-wrap tw:rounded-3xl tw:p-16 tw:min-[768px]:px-32 tw:min-[768px]:py-24 tw:laptop-up:px-24! tw:laptop:py-16! tw:bg-[linear-gradient(135deg,#004322_0%,#08874e_100%)] tw:border tw:border-solid tw:border-[#59ce88]",me="tw:flex tw:items-center tw:gap-16 tw:laptop:gap-12",he="tw:flex tw:items-center tw:justify-center tw:rounded-full tw:shrink-0 tw:bg-[rgba(89,206,136,0.3)] tw:text-[#59ce88] tw:w-[32px] tw:h-[32px] tw:min-[768px]:w-[60px] tw:min-[768px]:h-[60px] tw:laptop:w-[48px]! tw:laptop:h-[48px]!",fe="tw:w-[16px]! tw:h-[16px]! tw:min-[768px]:w-[32px]! tw:min-[768px]:h-[32px]!",ue="tw:flex tw:flex-col tw:gap-4",je="tw:text-18 tw:min-[768px]:text-24! tw:laptop:text-16! tw:desktop:text-18! tw:font-heading tw:font-semibold! tw:text-white tw:mb-0!",ge="tw:text-[#59ce88]",be="tw:text-13 tw:min-[768px]:text-20! tw:laptop:text-14! tw:desktop:text-16! tw:text-white/80 tw:mb-0!",Ne="tw:hidden tw:min-[1701px]:flex tw:laptop:hidden! tw:items-center tw:gap-8 tw:px-12 tw:py-4 tw:rounded-full tw:whitespace-nowrap tw:bg-[rgba(89,206,136,0.3)] tw:text-[#59ce88]",ve="tw:text-[#59ce88]",ye="tw:text-15 tw:min-[768px]:text-18 tw:font-heading tw:font-semibold!",_e=()=>e.jsxs("div",{className:de,children:[e.jsxs("div",{className:me,children:[e.jsx("div",{className:he,children:e.jsx(V,{className:fe})}),e.jsxs("div",{className:ue,children:[e.jsxs("p",{className:je,children:[e.jsx("span",{className:ge,children:"18,036 users"})," made over"," ",e.jsx("span",{className:ge,children:"$10K/month"})]}),e.jsx("p",{className:be,children:"Using this exact one-product store template."})]})]}),e.jsxs("div",{className:Ne,children:[e.jsx(E,{className:ve,size:20}),e.jsx("span",{className:ye,children:"Proven Results"})]})]}),ke="tw:bg-[#e54343] tw:flex tw:items-center tw:justify-center tw:py-16 tw:px-24 tw:w-full tw:z-10 tw:laptop:py-8!",Te="tw:flex tw:flex-wrap tw:items-center tw:justify-center tw:gap-8 tw:text-center",Oe="tw:text-white tw:font-semibold! tw:text-15! tw:min-[768px]:text-20! tw:laptop:text-16! tw:desktop:text-18! tw:font-heading tw:uppercase tw:mb-0! tw:leading-[32px]",Se="tw:bg-[#c32f2f] t
2w:flex tw:items-center tw:justify-center tw:px-16 tw:py-[4px] tw:rounded-full tw:text-white tw:font-semibold! tw:text-15! tw:min-[768px]:text-20! tw:laptop:text-16! tw:desktop:text-18! tw:font-heading tw:leading-[32px] tw:whitespace-nowrap",Ce=({formattedTime:t})=>e.jsx("div",{className:ke,children:e.jsxs("div",{className:Te,children:[e.jsx("p",{className:Oe,children:"â±ï¸Â  Flash sale ends in"}),e.jsx("span",{className:Se,children:t}),e.jsx("p",{className:Oe,children:".  Limited slots available"})]})}),Fe=`${D}/images/add-store/shopify-pro-theme-banner-xxl-img.png`,Pe="tw:flex tw:flex-col tw:items-stretch tw:bg-[#0a0e33] tw:min-h-screen tw:relative tw:overflow-hidden",De="tw:absolute tw:top-[40%] tw:left-1/2 tw:-translate-x-1/2 tw:w-[912px] tw:h-[554px] tw:pointer-events-none tw:bg-[#0051cf] tw:opacity-40 tw:blur-[200px] tw:rounded-full",Re="tw:relative tw:flex tw:flex-col tw:flex-1 tw:items-center tw:pt-40 tw:pb-64 tw:px-24 tw:min-[1200px]:px-64 tw:laptop:pt-24! tw:laptop:pb-24! tw:desktop:pb-40! tw:laptop-up:px-32! tw:w-full tw:max-w-[1920px] tw:mx-auto",Ie="tw:flex tw:flex-col tw:gap-32 tw:items-stretch tw:w-full tw:max-w-[1856px] tw:min-[1200px]:flex-row tw:min-[1200px]:gap-32 tw:my-48 tw:laptop:my-24! tw:desktop:my-32!",Ae="tw:flex tw:flex-col tw:gap-24 tw:w-full tw:min-[1200px]:w-1/2 tw:laptop:gap-8 tw:desktop:gap-16",Ve="tw:flex tw:items-center tw:justify-center tw:w-full tw:min-[1200px]:w-1/2",Ee="tw:w-full tw:h-auto tw:object-contain tw:drop-shadow-[0px_4px_34px_#b697ff] tw:laptop:max-h-[500px] tw:desktop:max-h-[528px]",Be=({onAccept:a,onClose:i})=>{const n=s(),l=t.useRef(null),{formattedTime:p,spotsLeft:w,peopleViewing:r,progress:x}=ut();return t.useEffect(()=>{B("View Window",{"Window Name":"Pro Theme Professional Store Offer Viewed",text_blob:l.current?.innerText})},[]),e.jsxs("div",{ref:l,className:Pe,children:[e.jsx(Ce,{formattedTime:p}),e.jsx("div",{className:De}),e.jsxs("div",{className:Re,children:[e.jsx(ne,{peopleViewing:r}),e.jsxs("div",{className:Ie,children:[e.jsxs("div",{className:Ae,children:[e.jsx(_e,{}),e.jsx(Zt,{spotsLeft:w,progress:x,onAccept:()=>{et.ACCEPT_CLICK(l.current?.innerText),n(o({name:z,onSuccess:a}))}}),e.jsx(ce,{})]}),e.jsx("div",{className:Ve,children:e.jsx("img",{src:Fe,alt:"Professional Pro Store",className:Ee})})]}),e.jsx(te,{onClose:()=>{et.DECLINE_CLICK(),i?.()}})]})]})},ze=({stepName:t,icon:s,color:a,option:i,isActive:n,setFormData:l})=>{const p=()=>{l(n?e=>({...e,[t]:e[t].filter(t=>t!==i)}):e=>({...e,[t]:[...e[t],i],[at]:""}))};return e.jsx(st,{isActive:n,onClick:p,children:e.jsxs("div",{className:"flex jc-sb ai-c gap-10",children:[e.jsxs("div",{className:"flex ai-c gap-20",children:[e.jsx(s,{className:"w-32 h-32",color:a}),e.jsx("p",{className:"fz-15 ff-regular m-0",children:i})]}),e.jsx(gt,{onChange:p,checked:n})]})})};ze.propTypes={stepName:b.string.isRequired,icon:b.oneOfType([b.func,b.object]).isRequired,color:b.string,option:b.string.isRequired,isActive:b.bool.isRequired,setFormData:b.func.isRequired};const{Group:Le}=jt,qe=({stepName:t,icon:s,color:a,placeholder:i,option:n,videoType:l,isActive:p,isWithTextField:w,subOptions:o,setFormData:r})=>e.jsxs(st,{isActive:p,onClick:()=>{p||r(e=>({...e,[t]:[n],[at]:"",[it]:o?.[0]||""}))},children:[e.jsxs("div",{className:"flex jc-sb ai-c gap-10",children:[e.jsxs("div",{className:"flex ai-c gap-20",children:[e.jsx(s,{className:"h-32 min-w-32",color:a}),e.jsx("p",{className:"fz-15 ff-regular m-0",children:n})]}),e.jsx(jt,{value:n})]}),w&&p&&e.jsxs("div",{className:"tw:flex tw:items-center tw:gap-15 tw:max-md:flex-wrap",children:[e.jsx(L,{autoFocus:!0,className:"tw:flex-1 tw:min-w-120",placeholder:i||"Please share more details",onChange:({target:t})=>r(e=>({...e,[at]:t.value}))}),o&&e.jsx(Le,{value:l,options:x(o,t=>({label:e.jsx("span",{className:"tw:text-15 tw:font-regular",children:t}),value:t})),onChange:({target:t})=>r(e=>({...e,[it]:t.value}))})]})]});qe.propTypes={stepName:b.string.isRequired,icon:b.oneOfType([b.func,b.object]).isRequired,color:b.string,placeholder:b.string,option:b.string.isRequired,videoType:b.string,isActive:b.bool.isRequired,isWithTextField:b.bool,subOptions:b.arrayOf(b.string),setFormData:b.func.isRequired};const{Group:Me}=jt,$e=({step:t,formData:s,setFormData:a})=>{const i=nt[t],{options:n,isMultiSelect:l}=lt[i],p=s[i];return l?e.jsx(pt,{children:x(n,(t,s)=>{const n=q(p,t.option);return e.jsx(ze,{stepName:i,...t,isActive:n,setFormData:a},s)})}):e.jsx(Me,{className:"w-p-100",value:s[i][0],children:e.jsx(pt,{children:x(n,(t,n)=>e.jsx(qe,{stepName:i,...t,videoType:s[it],isActive:s[i][0]===t.option,setFormData:a},n))})})};$e.propTypes={step:b.number.isRequired,formData:b.object.isRequired,setFormData:b.func.isRequired};const We=t.memo(()=>{const i=s(),{name:n,from_channel:l,id:p}=a(N),w=a(_),[o,r]=t.useState(0),[x,c]=t.useState(wt),[d,m]=t.useState(!1),[f,u]=t.useState(!1),j=nt.length-1,g=100*(o+1)/j,b=nt[o
2],{title:v,description:k,mixPanelFormName:T,options:O,sendMixPanelViewWindowEvent:S}=lt[b],C=M(O,{option:x[b][0]}),F=C?.isWithTextField&&!C?.isOptionalTextField,P=Boolean(C?.subOptions),D=0===o,R=o===j-1,I=!x[b].length||F&&!x[at]||P&&!x[it],A=3===w&&3!==l&&p;$(W);const V=()=>c({...x,[at]:"",[it]:""}),E=({platformName:t,platformOtherText:e,platformVideoType:s})=>{const a={options:[{optionName:dt,optionValue:t},...e?[{optionName:mt,optionValue:e}]:[],...s?[{optionName:it,optionValue:s}]:[]]};U.submitSurvey({surveyId:4},a)},z=async t=>{if(m(!0),t&&b===rt&&x?.[rt]?.length&&E({platformName:x[rt][0],platformOtherText:x[at],platformVideoType:x[it]}),!f&&A)return u(!0),void m(!1);await i(H({show_survey:!1,selected_category:x[ct]?.[0]})),m(!1)},L=async()=>{m(!0),localStorage.setItem(y.cameFromProThemeBanner,"1"),await i(H({show_survey:!1,selected_category:x[ct]?.[0]})),m(!1)};return t.useEffect(()=>{S?.()},[b]),f?e.jsx(Be,{onAccept:L,onClose:z}):e.jsxs(ot,{children:[e.jsxs("div",{className:"flex column gap-20 ai-c p-t-15 p-b-15 p-r-40 p-l-40 w-p-100",children:[e.jsx("div",{className:"flex w-p-100 m-b-20",children:e.jsx(ft,{})}),e.jsxs("div",{className:"flex jc-sb ai-c w-p-100",children:[e.jsx(K,{className:"w-250 m-center",showInfo:!1,percentPosition:{type:"inner"},percent:g}),e.jsx(h,{type:"text",loading:d,icon:e.jsx(Y,{size:24}),onClick:()=>z(!0)})]}),e.jsxs("div",{className:"flex column ai-c ta-c w-p-100",children:[e.jsxs("h2",{className:"ff-bold m-b-10 w-p-100",children:[v,b===rt&&n]}),e.jsx("span",{className:"fz-15 w-p-100",children:k})]}),e.jsx($e,{step:o,formData:x,setFormData:c})]}),e.jsxs(xt,{isFirstStep:D,children:[!D&&e.jsx(h,{type:"text",icon:e.jsx(G,{}),onClick:()=>{V(),r(Math.max(o-1,0))},children:"Back"}),e.jsx(h,{size:"large",type:"primary",loading:d,disabled:I,onClick:()=>{B("Form Submit",{"Form Name":T,"Chosen Option":b===ht?x[ht]:x[b][0],...x[at]&&{"Written Option":x[at]},...x[it]&&{"Video Type":x[it]}}),b===rt&&E({platformName:x[rt][0],platformOtherText:x[at],platformVideoType:x[it]}),R?z():(V(),r(Math.min(o+1,j)))},children:"Continue"})]})]})}),Ke=()=>{const t=a(J);return void 0===t?null:t?e.jsx(We,{}):e.jsx(_t,{})};export{Ke as default};
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.