1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4182],{45077:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/__app/[subdomain]/settings",function(){return t(88123)}])},47678:function(e,n,t){"use strict";var r=t(85893),i=t(48783),s=t(57747),o=t(71293);n.Z=e=>{let{label:n,description:t,error:a,children:l}=e;return(0,r.jsxs)(i.g,{w:"full",align:"flex-start",spacing:1,children:[(0,r.jsxs)(s.xu,{children:[(0,r.jsx)(o.x,{fontWeight:500,fontSize:"md",color:"gray.700",children:n}),t&&(0,r.jsx)(o.x,{fontWeight:500,fontSize:"md",color:"gray.500",children:t})]}),l,a&&(0,r.jsx)(o.x,{fontSize:"sm",color:"red.600",children:a})]})}},6256:function(e,n,t){"use strict";t.d(n,{m:function(){return s}});var r=t(67294),i=t(82330);function s(e,n,t){const[s,o]=(0,r.useState)(!1),[a,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!0),[u,h]=(0,r.useState)(""),x=()=>!!e&&(null===e||void 0===e?void 0:e.accountId)&&(null===e||void 0===e?void 0:e.mode),f=(0,r.useCallback)((async()=>{if(x())try{const r="/api/subscription/buy",s=(await(0,i.$f)({method:"post",url:r,data:{...e,period:n,referralId:t}})).data.url;l(s),d(!1)}catch(r){console.error(r)}}),[e]),p=(0,r.useCallback)((async()=>{if(x())try{const n="/api/subscription",t=(await(0,i.$f)({method:"post",url:n,data:e})).data;o(t.isActive)}catch(n){console.error(n)}}),[e]),m=(0,r.useCallback)((async()=>{if(x())try{const n="/api/subscription/manage",t=(await(0,i.$f)({method:"post",url:n,data:e})).data;h(t.url),d(!1)}catch(n){console.error(n),d(!1)}}),[e]),g=()=>{x()&&(p(),s?m():f())};return(0,r.useEffect)((()=>{g()}),[s,e.accountId,e.mode,n]),{checkoutURL:a,loading:c,isActive:s,customerPortalURL:u,refetch:g}}},88123:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return he}});var r=t(85893),i=t(20307),s=t(81136),o=t(57747),a=t(71293),l=t(93108),c=t(67294);var d=t(25432),u=t(69417),h=t(33179),x=t(70917),f=t(16554),p=t(77030),m=t(7634),g=(0,u.m)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),j=(0,h.gJ)("skeleton-start-color"),v=(0,h.gJ)("skeleton-end-color"),b=(0,x.F4)({from:{opacity:0}
1,to:{opacity:1}}),y=(0,x.F4)({from:{borderColor:j.reference,background:j.reference},to:{borderColor:v.reference,background:v.reference}}),S=(0,f.G)(((e,n)=>{const t={...e,fadeDuration:"number"===typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"===typeof e.speed?e.speed:.8},i=(0,p.mq)("Skeleton",t),s=function(){const e=(0,c.useRef)(!0);return(0,c.useEffect)((()=>{e.current=!1}),[]),e.current}(),{startColor:o="",endColor:a="",isLoaded:l,fadeDuration:x,speed:f,className:S,fitContent:w,...C}=(0,h.Lr)(t),[k,_]=(0,m.dQ)("colors",[o,a]),E=function(e){const n=(0,c.useRef)();return(0,c.useEffect)((()=>{n.current=e}),[e]),n.current}(l),P=(0,d.cx)("chakra-skeleton",S),N={...k&&{[j.variable]:k},..._&&{[v.variable]:_}};if(l){const e=s||E?"none":`${b} ${x}s`;return(0,r.jsx)(u.m.div,{ref:n,className:P,__css:{animation:e},...C})}return(0,r.jsx)(g,{ref:n,className:P,...C,__css:{width:w?"fit-content":void 0,...i,...N,_dark:{...i._dark,...N},animation:`${f}s linear infinite alternate ${y}`}})}));S.displayName="Skeleton";var w=t(48783),C=t(33090),k=t(41731),_=t(53468),E=t(57169),P=t(74153),N=t(7405),R=t(18652),z=t(92798),D=t(32883),O=t(34292),Z=t(70959),I=t(44461),L=t(24124),A=t(84028),U=t(90889),M=t(58972),X=t(22757),$=t(20967),T=t(11163),F=t(14581),Y=t(35541);function H(e){const{leastDestructiveRef:n,...t}=e;return(0,r.jsx)(Y.u_,{...t,initialFocusRef:n})}var V=(0,f.G)(((e,n)=>(0,r.jsx)(F.h,{ref:n,role:"alertdialog",...e}))),G=t(19778),W=t(64859),q=t(54346),B=t(14253);var J=e=>{let{onOpen:n,isOpen:t,onClose:i,label:s,onSuccessAction:o}=e;const a=(0,c.useRef)();return(0,r.jsx)(H,{isOpen:t,leastDestructiveRef:a,onClose:i,children:(0,r.jsx)(G.Z,{children:(0,r.jsxs)(V,{children:[(0,r.jsx)(W.x,{fontSize:"lg",fontWeight:"bold",children:s}),(0,r.jsx)(q.f,{children:"Are you sure? You can't undo this action afterwards."}),(0,r.jsxs)(B.m,{children:[(0,r.jsx)(l.z,{ref:a,onClick:i,variant:"ghost",color:"gray.500",children:"Cancel"}),(0,r.jsx)(l.z,{variant:"danger",onClick:()=>{o(),i()},ml:3,children:s})]})]})})})};const Q=e=>{let{onSuccessAction:n,label:t,size:i="sm",...s}=e;const{isOpen:o,onOpen:a,onClose:d}=(0,$.q)();(0,c.useRef)(),(0,T.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.z,{onClick:a,variant:"danger",rounded:"sm",size:i,...s,children:t}),(0,r.jsx)(J,{onClose:d,onOpen:a,isOpen:o,label:t,onSuccessAction:n})]})};var K=t(18600),ee=t(47678);var ne=e=>{let{label:n,description:t,...i}=e;return(0,r.jsx)(ee.Z,{label:n,description:t,children:(0,r.jsx)(C.I,{...i})})},te=t(78420),re=t(29383),ie=t(82330),se=t(6256),oe=t(13742),ae=t(41083),le=t(11164);const ce=[{name:"General",slug:"general"},{name:"Custom Domain",slug:"domain"},{name:"Checkout",slug:"checkout"},{name:"Billing",slug:"billing"}],de=e=>{let{period:n,subscriptionPayload:t}=e;const[i,o]=(0,c.useState)(null);(0,c.useEffect)((()=>{new URLSearchParams(window.location.search);window.rewardful("ready",(function(){o(window.Rewardful.referral)}))}),[]);const{checkoutURL:a,loading:d,isActive:u,customerPortalURL:h}=(0,se.m)(t,n,i);return d?(0,r.jsx)(s.$,{size:"sm"}):(0,r.jsx)(l.z,{colorScheme:"brand",size:"lg",w:"full",onClick:()=>{window.open(a,"_blank")},children:"Upgrade \u2192"})},ue=e=>{const{label:n,period:t,...i}=e,{state:s,getInputProps:l,getRadioProps:c,htmlProps:d}=(0,M.x)(i);return(0,r.jsxs)(u.m.label,{...d,cursor:"pointer",w:"full",children:[(0,r.jsx)("input",{...l({}),hidden:!0}),(0,r.jsx)(o.xu,{...c(),px:4,py:2,rounded:"md",width:"full",borderWidth:2,backgroundColor:s.isChecked?"purple.50":"white",borderColor:s.isChecked?"brand.500":"gray.200",children:(0,r.jsxs)(O.U,{w:"full",align:"center",justify:"center",children:[(0,r.jsxs)(X.X,{children:["$",n]}),(0,r.jsx)(w.g,{w:"full",align:"flex-start",spacing:0,children:(0,r.jsxs)(a.x,{fontSize:"sm",children:["per ","yearly"===t?"year (3 months free)":"month"]})})]})})]})};var he=()=>{const e=(0,T.useRouter)(),n=e.query.subdomain,{mutate:t,isLoading:d}=(0,ie.u2)(),{data:u,isLoading:h}=(0,ie.oR)({subdomain:n}),[x,f]=(0,c.useState)(0),[p,m]=(0,c.useState)(""),[g,j]=(0,c.useState)(""),[v,b]=(0,c.useState)(""),[y,M]=(0,c.useState)(""),[X,$]=(0,c.useState)(""),[F,Y]=(0,c.useState)(""),[H,V]=(0,c.useState)(""),[G,W]=(0,c.useState)(""),[q,B]=(0,c.useState)(""),[J,he]=(0,c.useState)(!0),[xe,fe]=(0,c.useState)(!0),[pe,me]=(0,c.useState)(!1),[ge,je]=(0,c.useState)(""),[ve,be]=(0,c.useState)(""),[ye,Se]=(0,c.useState)(!1),[we,Ce]=(0,c.useState)([]),[ke,_e]=(0,c.useState)(!1),[Ee,Pe]=(0,c.useState)(!1),[Ne,Re]=(0,c.useState)(100),[ze,De]=(0,c.useState)(3),[Oe,Ze]=(0,c.useState)(""),[Ie,Le]=(0,c.useState)("@"),[Ae,Ue]=(0,c.useState)(!1),[Me,Xe]=(0,c.useState)(""),[$e,Te]=(0,c.useState)(""),[Fe,Ye]=(0,c.useState)(""),{mutate:He,isLoading:Ve}=(0,ie.M5)(),{mutate:Ge,isLoading:We}=(0,ie.pB)(),{mutate:qe}=(0,ie.fo)(),Be={accountId:null===u||void 0===u?void 0:u.id,mode:"live"},[Je,Qe]=(0,c.useState)("yearly");var Ke;const en=null!==(Ke=e.query.tab)&&void 0!==Ke?Ke:"general",{value:nn,getRadioProps:tn,getRootProps:rn}=(0,i.a)({defaultValue:Je,onChange:e=>{Qe(e)}}),sn=(0,c.useCallback)((()=>{const e=ce.findIndex((e=>e.slug===en));f(-1!==e?e:0)}),[en,ce]);(0,c.useEffect)((()=>{sn()}),[sn]);const{checkoutURL:on,loading:an,isActive:ln,customerPortalURL:cn}=(0,se.m)(Be,Je,null);if((0,c.useEffect)((()=>{u&&(m(u.name),j(u.email),W(u.currency),B(u.customDomain),Ue(u.isCustomDomainVerified),$(u.tiktok),M(u.pinterest),Y(u.youtube),V(u.instagram),b(u.facebook),me(u.enableProductVariants),he(u.collectPhone),Se(u.collectTaxes),fe(u.collectShippingAddress),_e(u.showFreePickupOption),Pe(u.showShippingOption),Re(u.shippingCost),De(u.shippingTime),je(u.scripts),be(u.styles),u.isCustomDomainVerified&&Ze(""))}),[u]),!u||h)return(0,r.jsx)(K.Z,{children:(0,r.jsx)(s.$,{})});if(!u)return(0,r.jsx)(K.Z,{children:(0,r.jsx)(o.xu,{children:(0,r.jsx)(o.xu,{css:{layout:"column",gap:"medium"},children:(0,r.jsx)(a.x,{children:"No store found"})})})});const{trialEndsAt:dn}=u,un=(0,te.Z)(dn),hn=(0,re.Z)(un,Date.now());if(h)return(0,r.jsx)(S,{});return(0,r.jsx)(K.Z,{pageName:"Settings",toolbar:(0,r.jsx)(l.z,{colorScheme:"brand",isLoading:d,onClick:async e=>{console.log(J,xe);const r={name:p,currency:G,email:g,collectPhone:J,collectShippingAddress:xe,collectTaxes:ye,allowedShippingCountries:we,showFreePickupOption:ke,showShippingOption:Ee,shippingCost:Ne,shippingTime:ze,pinterest:y,facebook:v,instagram:H,youtube:F,tiktok:X,enableProductVariants:pe,scripts:ge,styles:ve};try{await t({subdomain:n,data:r})}catch(i){console.error(i)}},children:"Save"}),children:(0,r.jsx)(o.xu,{backgroundColor:"white",maxW:"container.md",rounded:"md",children:(0,r.jsxs)(Z.m,{colorScheme:"brand",index:x,onChange:t=>{e.push("/".concat(n,"/settings?tab=").concat(ce[t].slug),void 0),f(t)},children:[(0,r.jsxs)(I.t,{children:[(0,r.jsx)(L.O,{children:"General"}),(0,r.jsx)(L.O,{children:"Custom Domain"}),(0,r.jsx)(L.O,{children:"Checkout"}),(0,r.jsx)(L.O,{children:"Billing"})]}),(0,r.jsxs)(A.n,{children:[(0,r.jsx)(U.x,{children:(0,r.jsxs)(w.g,{w:"full",align:"flex-start",spacing:4,children:[(0,r.jsx)(ee.Z,{label:"Support Email",children:(0,r.jsx)(C.I,{size:"md",value:g,placeholder:"[email protected]",onChange:e=>{j(e.target.value)}})}
1),(0,r.jsx)(ee.Z,{label:"Currency",description:"Only products in this currency will be displayed",children:(0,r.jsx)(k.P,{value:G,onChange:e=>{W(e.target.value)},children:le.Mf.map(((e,n)=>(0,r.jsx)("option",{value:e,children:e.toUpperCase()},"currency_".concat(n))))})}),(0,r.jsxs)(ee.Z,{label:"Shipping",children:["= ",(0,r.jsx)(_.X,{isChecked:Ee,onChange:e=>{Pe(e.target.checked)},children:"Add Shipping"})]}),Ee&&(0,r.jsxs)(w.g,{w:"full",align:"flex-start",spacing:4,children:[(0,r.jsx)(_.X,{isChecked:ke,onChange:e=>{_e(e.target.checked)},children:"Enable Free Local Pickup Option"}),(0,r.jsx)(ee.Z,{label:"Shipping Cost",children:(0,r.jsx)(C.I,{placeholder:"10",type:"number",value:Ne/100,onChange:e=>{const n=Math.max(0,100*Number(e.target.value));Re(n)}})}),(0,r.jsx)(ee.Z,{label:"How long it will take to ship",children:(0,r.jsx)(C.I,{placeholder:"10",type:"number",value:ze,onChange:e=>{const n=Math.max(0,Number(e.target.value));De(n)}})})]}),(0,r.jsx)(ee.Z,{label:"Taxes",children:(0,r.jsx)(_.X,{isChecked:ye,onChange:e=>{Se(e.target.checked)},children:"Collect Taxes"})}),(0,r.jsx)(ee.Z,{label:"CSS Styles (Placed in Head)",children:(0,r.jsx)(E.g,{value:ve,placeholder:"body { background-color: red; }",onChange:e=>{be(e.target.value)}})}),(0,r.jsx)(ee.Z,{label:"JS Scripts (Placed in Head)",children:(0,r.jsx)(E.g,{value:ge,onChange:e=>{je(e.target.value)}})}),(0,r.jsx)(ee.Z,{label:"Danger Zone",children:(0,r.jsx)(Q,{label:"Delete my store",onSuccessAction:()=>{u.id&&(q&&Ae&&qe({accountId:u.id,customDomain:q,onErrorMessage:e=>{Ze(e)}}),setTimeout((async function(){await He({accountId:u.id})}),1e3))}})}),(0,r.jsx)(ee.Z,{label:"Get Help",children:(0,r.jsx)(a.x,{children:"Contact Support: [email protected]"})})]})}),(0,r.jsx)(U.x,{children:(0,r.jsx)(w.g,{w:"full",align:"flex-start",children:(0,r.jsxs)(w.g,{w:"full",align:"flex-start",children:[Oe&&(0,r.jsx)(P.b,{status:"info",backgroundColor:"transparent",p:6,borderWidth:1,borderColor:"gray.200",rounded:"lg",children:(0,r.jsxs)(w.g,{w:"full",align:"flex-start",children:[(0,r.jsx)(N.z,{}),(0,r.jsx)(R.C,{children:"DNS Records not found"}),(0,r.jsx)(z.X,{children:Oe}),(0,r.jsx)(D.r,{href:"https://blog.reetail.store/how-to-add-a-custom-domain-to-your-reetail-store/",target:"_blank",children:"Show me how \u2192"})]})}),!Oe&&!Ae&&(0,r.jsx)(P.b,{status:"info",backgroundColor:"transparent",p:6,borderWidth:1,borderColor:"gray.200",rounded:"lg",children:(0,r.jsxs)(w.g,{w:"full",align:"flex-start",children:[(0,r.jsx)(N.z,{}),(0,r.jsx)(R.C,{children:"Add DNS Records"}),(0,r.jsx)(z.X,{children:'Add a CNAME record to your domain provider with name: "'.concat(Ie,'" and value: "cname.reetail.store" (without the quotes). Changes can take 24-48 hrs to propagate.')}),(0,r.jsx)(D.r,{href:"https://blog.reetail.store/how-to-add-a-custom-domain-to-your-reetail-store/",target:"_blank",children:"Show me how \u2192"})]})}),(0,r.jsxs)(O.U,{w:"full",align:"flex-end",children:[Ae?(0,r.jsxs)(O.U,{w:"full",align:"center",children:[(0,r.jsx)(oe.Z,{color:"green",size:"22px"}),(0,r.jsx)(a.x,{children:q})]}):(0,r.jsx)(ne,{name:"name",label:"Domain",placeholder:"mycookiestore.com",defaultValue:q,error:Me,onChange:e=>{const n=e.target.value.trim().toLowerCase();if(n.includes("reetail.store"))Xe("This domain is restricted. Please enter a different one.");else if(n.includes("https://"))Xe("Please remove https:// from the domain");else if(n.includes("http://"))Xe("Please remove http:// from the domain");else if(n.includes("www."))Xe("Please remove www. from the domain");else{B(n);const e=n.split("."),t=e.length>2?e[0]:"@";Le(t),Xe("")}}}),u.isCustomDomainVerified?(0,r.jsx)(l.z,{onClick:async()=>{await qe({accountId:u.id,onErrorMessage:e=>{Ze(e)}})},children:"Remove"}):(0,r.jsx)(l.z,{isDisabled:We||!q||!!Me,onClick:async()=>{await Ge({accountId:u.id,customDomain:q.trim(),onErrorMessage:e=>{Ze(e)}})},children:"Add"})]}),!Ae&&(0,r.jsx)(a.x,{color:"gray.600",children:"Having trouble? Message [email protected]."})]})})}),(0,r.jsx)(U.x,{children:(0,r.jsxs)(w.g,{w:"full",align:"flex-start",children:[(0,r.jsx)(_.X,{colorScheme:"brand",isChecked:xe,onCh
1ange:e=>{fe(e.target.checked)},children:"Collect Shipping Address"}),(0,r.jsx)(_.X,{colorScheme:"brand",isChecked:J,onChange:e=>{he(e.target.checked)},children:"Collect Phone Number"})]})}),(0,r.jsx)(U.x,{children:(0,r.jsxs)(w.g,{w:"full",align:"flex-start",spacing:4,children:[u.plan===ae.kR.FREE&&hn>0?(0,r.jsxs)(a.x,{children:[hn," ","days left in your trial."]}):u.plan===ae.kR.FREE&&hn<=0?(0,r.jsx)(a.x,{color:"red",children:"Your trial has ended - your store is now disabled. Upgrade to the Pro plan to continue using Reetail."}):u.plan===ae.kR.PRO?(0,r.jsx)(a.x,{children:"You are on the Pro plan. Thank you for subscribing to Reetail!"}):void 0,(0,r.jsx)(a.x,{children:"Contact [email protected] if you are experiencing upgrade/downgrade issues."}),(0,r.jsxs)(O.U,{w:"full",spacing:6,children:[(0,r.jsx)(w.g,{w:"full",align:"flex-start",flex:2,children:ln?(0,r.jsx)(l.z,{variant:"outline",isLoading:an,isDisabled:!an&&!cn,onClick:()=>{cn&&window.open(cn,"_blank")},children:an||cn?"Manage":"Error loading portal"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ee.Z,{label:"Choose a plan",children:(0,r.jsx)(w.g,{w:"full",align:"flex-start",...rn(),children:Object.keys(le.Vf).map((e=>(0,r.jsx)(ue,{label:le.Vf[e],period:e,...tn({value:e})},e)))})}),(0,r.jsx)(de,{period:Je,subscriptionPayload:Be})]})}),(0,r.jsxs)(w.g,{w:"full",align:"flex-start",flex:1,children:[(0,r.jsxs)(O.U,{w:"full",align:"center",children:[(0,r.jsx)(oe.Z,{color:"green",size:"18px"}),(0,r.jsx)(a.x,{children:"Support"})]}),(0,r.jsxs)(O.U,{w:"full",align:"center",children:[(0,r.jsx)(oe.Z,{color:"#006400",size:"18px"}),(0,r.jsx)(a.x,{children:"Sell more than 10 products"})]}),(0,r.jsxs)(O.U,{w:"full",align:"center",children:[(0,r.jsx)(oe.Z,{color:"#006400",size:"18px"}),(0,r.jsx)(a.x,{children:"Sell Subscription Products"})]}),(0,r.jsxs)(O.U,{w:"full",align:"center",children:[(0,r.jsx)(oe.Z,{color:"#006400",size:"18px"}),(0,r.jsx)(a.x,{children:"Add a custom domain"})]})]})]})]})})]})]})})})}},14581:function(e,n,t){"use strict";t.d(n,{h:function(){return j}});var r=t(69417),i=t(52094),s=t(25432),o=t(51526),a=t(71891),l=t(67294),c=t(85893),d={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:n,transition:t,transitionEnd:r,delay:s})=>{var o;return{opacity:0,x:e,y:n,transition:null!=(o=null==t?void 0:t.exit)?o:i.p$.exit(i.Sh.exit,s),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:n,delay:t})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:i.p$.enter(i.Sh.enter,t),transitionEnd:null==n?void 0:n.enter}},exit:({offsetY:e,offsetX:n,transition:t,transitionEnd:r,reverse:s,delay:o})=>{var a;const l={x:n,y:e};return{opacity:0,transition:null!=(a=null==t?void 0:t.exit)?a:i.p$.exit(i.Sh.exit,o),...s?{...l,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...l,...null==r?void 0:r.exit}}}}}};(0,l.forwardRef)((function(e,n){const{unmountOnExit:t,in:r,reverse:i=!0,className:l,offsetX:u=0,offsetY:h=8,transition:x,transitionEnd:f,delay:p,...m}=e,g=!t||r&&t,j=r||t?"enter":"exit",v={offsetX:u,offsetY:h,reverse:i,transition:x,transitionEnd:f,delay:p};return(0,c.jsx)(o.M,{custom:v,children:g&&(0,c.jsx)(a.E.div,{ref:n,className:(0,s.cx)("chakra-offset-slide",l),custom:v,...d,animate:j,...m})})})).displayName="SlideFade";var u={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:n,transition:t,transitionEnd:r,delay:s})=>{var o;return{opacity:0,...e?{scale:n,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:n,...null==r?void 0:r.exit}},transition:null!=(o=null==t?void 0:t.exit)?o:i.p$.exit(i.Sh.exit,s)}},enter:({transitionEnd:e,transition:n,delay:t})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==n?void 0:n.enter)?r:i.p$.enter(i.Sh.enter,t),transitionEnd:null==e?void 0:e.enter}}}};(0,l.forwardRef)((function(e,n){const{unmountOnExit:t,in:r,reverse:i=!0,initialScale:l=.95,className:d,transition:h,transitionEnd:x,delay:f,...p}=e,m=!t||r&&t,g=r||t?"enter":"exit",j={initialScale:l,reverse:i,transition:h,transitionEnd:x,delay:f};return(0,c.jsx)(o.M,{custom:j,children:m&&(0,c.jsx)(a.E.div,{ref:n,className:(0,s.cx)("chakra-offset-slide",d),...u,animate:g,custom:j,...p})})})).displayName="ScaleFade";var h={slideInBottom:{...d,custom:{offsetY:16,reverse:!0}},slideInRight:{...d,custom:{offsetX:16,reverse:!0}},slideInTop:{...d,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...d,custom:{offsetX:-16,reverse:!0}},scale:{...u,custom:{initialScale:.95,reverse:!0}},none:{}},x=(0,r.m)(a.E.section),f=e=>h[e||"none"],p=(0,l.forwardRef)(((e,n)=>
1{const{preset:t,motionProps:r=f(t),...i}=e;return(0,c.jsx)(x,{ref:n,...r,...i})}));p.displayName="ModalTransition";var m=t(90629),g=t(35541),j=(0,t(16554).G)(((e,n)=>{const{className:t,children:i,containerProps:o,motionProps:a,...l}=e,{getDialogProps:d,getDialogContainerProps:u}=(0,g.vR)(),h=d(l,n),x=u(o),f=(0,s.cx)("chakra-modal__content",t),j=(0,g.I_)(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...j.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...j.dialogContainer},{motionPreset:y}=(0,g.vR)();return(0,c.jsx)(m.M,{children:(0,c.jsx)(r.m.div,{...x,className:"chakra-modal__content-container",tabIndex:-1,__css:b,children:(0,c.jsx)(p,{preset:y,motionProps:a,className:f,...h,__css:v,children:i})})})}));j.displayName="ModalContent"},41731:function(e,n,t){"use strict";t.d(n,{P:function(){return h}});var r=t(25432),i=t(16554),s=t(69417),o=t(85893),a=(0,i.G)((function(e,n){const{children:t,placeholder:i,className:a,...l}=e;return(0,o.jsxs)(s.m.select,{...l,ref:n,className:(0,r.cx)("chakra-select",a),children:[i&&(0,o.jsx)("option",{value:"",children:i}),t]})}));a.displayName="SelectField";var l=t(41001),c=t(77030),d=t(33179),u=t(67294);var h=(0,i.G)(((e,n)=>{var t;const i=(0,c.jC)("Select",e),{rootProps:u,placeholder:h,icon:x,color:f,height:m,h:g,minH:j,minHeight:v,iconColor:b,iconSize:y,...S}=(0,d.Lr)(e),[w,C]=function(e,n){const t={},r={};for(const[i,s]of Object.entries(e))n.includes(i)?t[i]=s:r[i]=s;return[t,r]}(S,d.oE),k=(0,l.Y)(C),_={width:"100%",height:"fit-content",position:"relative",color:f},E={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...null==(t=i.field)?void 0:t._focus}};return(0,o.jsxs)(s.m.div,{className:"chakra-select__wrapper",__css:_,...w,...u,children:[(0,o.jsx)(a,{ref:n,height:null!=g?g:m,minH:null!=j?j:v,placeholder:h,...k,__css:E,children:e.children}),(0,o.jsx)(p,{"data-disabled":(0,r.PB)(k.disabled),...(b||f)&&{color:b||f},__css:i.icon,...y&&{fontSize:y},children:x})]})}));h.displayName="Select";var x=e=>(0,o.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,o.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),f=(0,s.m)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),p=e=>{const{children:n=(0,o.jsx)(x,{}),...t}=e,r=(0,u.cloneElement)(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,o.jsx)(f,{...t,className:"chakra-select__icon-wrapper",children:(0,u.isValidElement)(n)?r:null})};p.displayName="SelectIcon"},57169:function(e,n,t){"use strict";t.d(n,{g:function(){return u}});var r=t(41001),i=t(16554),s=t(77030),o=t(33179),a=t(69417),l=t(25432),c=t(85893);var d=["h","minH","height","minHeight"],u=(0,i.G)(((e,n)=>{const t=(0,s.mq)("Textarea",e),{className:i,rows:u,...h}=(0,o.Lr)(e),x=(0,r.Y)(h),f=u?function(e,n=[]){const t=Object.assign({},e);for(const r of n)r in t&&delete t[r];return t}(t,d):t;return(0,c.jsx)(a.m.textarea,{ref:n,rows:u,...x,className:(0,l.cx)("chakra-textarea",i),__css:f})}));u.displayName="Textarea"}},function(e){e.O(0,[8657,175,3394,8065,8445,1672,8600,9774,2888,179],(function(){return n=45077,e(e.s=n);var n}));var n=e.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.