1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2469],{6942:function(e,n,i){"use strict";i.d(n,{M:function(){return c},t:function(){return d}});var l=i(24246),r=i(38878),t=i(54410),s=i(55545),a=i(23615),o=i(68257);let d=e=>{let{heading:n,items:i}=e;return(0,l.jsxs)(r.Z,{withBorder:!0,children:[(0,l.jsx)(t.x,{fz:"sm",lh:"sm",mb:"xs",children:n}),(0,l.jsx)(r.Z.Section,{children:(0,l.jsx)(s.U,{children:i?.map(e=>l.jsxs(s.U.Item,{value:e.id,children:[l.jsx(s.U.Control,{children:l.jsx(t.x,{fz:"sm",lh:"sm",children:e.title})}),l.jsx(s.U.Panel,{mt:"md",children:l.jsx(o.H,{content:e.content,dense:!0})})]},e.id))})})]})},c={id:a.string.isRequired,title:a.string,items:(0,a.arrayOf)((0,a.shape)({id:a.string.isRequired,title:a.string.isRequired,content:(0,a.shape)({raw:a.object.isRequired})}))}},68257:function(e,n,i){"use strict";i.d(n,{H:function(){return T},F:function(){return M}});var l=i(24246),r=i(58278),t=i(91130),s=i(28008),a=i(99704),o=i(84957),d=i(60967),c=i(54410),u=i(80596),h=i(93043),x=i(26536),p=i(25055),j=i(89619),m=i.n(j),v=i(79894),g=i.n(v),b=i(23615),f=i(27378),S=i(99602),C=i(38501),y=i.n(C),I=i(38978),w=i(92739),P=i(96604);let M={content:(0,b.shape)({raw:b.object.isRequired}).isRequired,dense:b.bool,toc:b.bool},A=e=>{if(!f.Children.count(e))return null;let n=f.Children.toArray(e).reduce((e,n)=>(n.props?.content?.forEach(n=>n?.text?.length&&e.push(n.text)),e),[]);return n.length?(0,S.FM)(n.join("")):null},_=e=>{let n=function(e){let n;if(!(e&&e.length))return null;let i=function(e){let n=e.match(/(http|https)?:\/\/(www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/);return!!n&&!!n[4]&&n[4]}(e);if(i)return{type:I.w_.VIMEO,id:i};let l=function(e){let n=e.match(/https?:\/\/(?:www\.|)youtube.com\/embed\/videoseries\?.*?list=(.*)(?=&|$|\s|)/);return!!n&&!!n[1]&&n[1]}(e);if(l)return{type:I.w_.YOUTUBE,list:l};let r=function(e){let n=y()().exec(e);return!!n&&!!n[1]&&n[1]}(e);if(r)return{type:I.w_.YOUTUBE,id:r};let t=(n=e.match(/https?:\/\/(?:w\.|www\.|)soundcloud\.com\/player\/\?url=(.*?(?=&|\s|$))/))&&n[1]?n[1].replace("%3A",":"):!!(n=e.match(/(https?:\/\/(?:w\.|www\.|)(?:soundcloud\.com\/).*?(?=$|\s|&))/))&&!!n[1]&&n[1];return t?{type:I.w_.SOUNDCLOUD,url:t}:(function(e){if(/^https?:\/\/(www\.)?(instagram\.com|instagr\.am)\/(.*)$/.test(e))return(0,S.aX)(e);if(/^<blockquote/.test(e)&&/"https?:\/\/(www\.)?(instagram\.com|instagr\.am)\/(.*)"/.test(e)){let n=e.match(/"(https?:\/\/(www\.)?(instagram\.com|instagr\.am)\/[^"]*)/);n&&n.length>=2&&n[1]}}(e),null)}(e);if(!n)return e;switch(n.type){case I.w_.YOUTUBE:return n.id?`//www.youtube-nocookie.com/embed/${n.id}?modestbranding=1&rel=0`:`//www.youtube-nocookie.com/embed/videoseries?list=${n.list}&modestbranding=1&rel=0`;case I.w_.VIMEO:return`//player.vimeo.com/video/${n.id}?autopause=1`;case I.w_.SOUNDCLOUD:return`//w.soundcloud.com/player/${n.url}`;default:return e}},T=e=>{let{content:n,dense:i=!1}=e,j=JSON.parse(JSON.stringify(n?.raw||[]));return(0,l.jsx)(r.x,{fz:i?"sm":"md",lh:i?"sm":"md",children:(0,l.jsx)(p.H,{content:j,renderers:{iframe:e=>{let{url:n}=e;return(0,l.jsx)(t.o,{ratio:16/9,my:"lg",children:(0,l.jsx)("iframe",{loading:"lazy",allow:"fullscreen",frameBorder:"0",referrerpolicy:"strict-origin-when-cross-origin",src:_(n),h:"100%",w:"100%"})})},img:e=>{let{altText:n,height:i,width:t,src:s,title:a}=e;return(0,l.jsx)(r.x,{my:"lg",children:(0,l.jsx)(m(),{alt:n,src:s,title:a,width:t,height:i,loader:S.vM})})},h1:e=>{let{children:n}=e;return(0,l.jsx)(s.D,{order:1,mb:"md",id:A(n),children:n})},h2:e=>{let{children:n}=e;return(0,l.jsx)(s.D,{order:2,mb:"md",id:A(n),children:n})},h3:e=>{let{children:n}=e;return(0,l.jsx)(s.D,{order:3,mb:"md",id:A(n),children:n})},h4:e=>{let{children:n}=e;return(0,l.jsx)(s.D,{order:4,mb:"md",id:A(n),children:n})},h5:e=>{let{children:n}=e;return(0,l.jsx)(s.D,{order:5,mb:"md",id:A(n),children:n})},h6:e=>{let{children:n}=e;return(0,l.jsx)(s.D,{order:6,mb:"md",id:A(n),children:n})},table:e=>{let{children:n}=e;return(0,l.jsx)(a.i,{withColumnBorders:!0,layout:"fixed",mb:"md",children:n})},table_head:e=>{let{children:n}=e;return(0,l.jsx)(a.i.Thead,{children:n})},table_body:e=>{let{children:n}=e;return(0,l.jsx)(a.i.Tbody,{children:n})},table_row:e=>{let{children:n}=e;return(0,l.jsx)(a.i.Tr,{children:n})},table_cell:e=>{let{children:n}=e;return(0,l.jsx)(a.i.Td,{pt:{base:"xs",sm:"md"},pl:{base:"xs",sm:"md"},children:n})},table_header_cell:e=>{let{children:n}=e;return(0,l.jsx)(a.i.Th,{pt:{base:"xs",sm:"md"},pl:{base:"xs",sm:"md"},children:n})},a:e=>{let{children:n,href:i,rel:r,id:t,title:s,openInNewTab:a,className:c}=e,u=/^\//.test(i)||/^#/.test(i),h=u?{}:{target:"_blank",rel:"noreferrer noopener"};a&&(h.target="_blank"),r&&!h.rel&&(h.rel=r);let x=u?g():"a";return c?.includes("c74-cta")?(0,l.jsx)(o.z,{size:"md",fullWidth:!0,rightSection:(0,l.jsx)(w.G,{icon:P.eFW}),component:x,href:i,id:t,title:s,my:"md",...h,children:n}):(0,l.jsx)(d.e,{component:u?g():"a",inherit:!0,href:i,id:t,title:s,...h,children:n})},p:e=>{let{children:n}=e;return(0,l.jsx)(c.x,{mb:"sm",fz:"inherit",lh:"inherit",children:n})},ul:e=>{let{children:n}=e;return(0,l.jsx)(u.a,{mb:"md",pr:"md",fz:"inherit",lh:"inherit",children:n})},ol:e=>{let{children:n}=e;return(0,l.jsx)(u.a,{type:"ordered",mb:"md",fz:"inherit",lh:"inherit",children:n})},li:e=>{let{children:n}=e;return(0,l.jsx)(u.a.Item,{children:n})},blockquote:e=>{let{children:n}=e;return(0,l.jsx)(h.V,{color:"blue.7",mb:"md",py:"sm",px:"md",children:n})},code:e=>{let{children:n}=e;return(0,l.jsx)(x.E,{children:n})},code_block:e=>{let{children:n}=e;return(0,l.jsx)(x.E,{block:!0,mb:"md",children:n})}}})})};T.propTypes=M},23133:function(e,n,i){"use strict";i.d(n,{A:function(){return s}});
1var l=i(24246),r=i(80310),t=i(71292);let s=e=>{let{className:n,name:i,hint:s,label:a,placeholder:o,options:d=[],required:c=!1}=e,[u,h]=(0,t.U$)(i),x=d.map(e=>"string"==typeof e?{label:`${e.charAt(0).toUpperCase()}${e.slice(1)}`,value:e}:e);return o?.length&&x.unshift({label:o,value:"",disabled:!0}),(0,l.jsx)(r.p,{className:n,data:x,description:s,label:a,name:i,required:c,size:"md",...u,error:h.error&&h.touched?h.error:void 0})}},92469:function(e,n,i){"use strict";i.d(n,{t:function(){return eE}});var l=i(24246),r=i(43078),t=i(58278),s=i(23464),a=i(50578),o=i(79894),d=i.n(o),c=i(51906),u=i(28008),h=i(54410),x=i(84957),p=i(95429),j=i(60967),m=i(80929),v=i(92739),g=i(96604),b=i(27378),f=i(10576),S=i(68257),C=i(44221),y=i(37861),I=i(57887),w=i(24843),P=i(38878),M=i(8207),A=i(356),_=i(40051),T=i(23726),D=i(97322),k=i(9680),R=i(78909),G=i(2820),N=i(80310),E=i(38978);let L=e=>{let{eligibleLicenses:n,handleLicenseSelect:i,format:r=E.zT.DATE_SHORT,selectedLicense:t}=e,s=(0,T.N)("Shop"),a=(0,G.useFormatter)(),[o,d]=(0,b.useState)(n.map(e=>({value:e._id,label:`${e.display}${(0,D.Kh)(e)}`})));return(0,b.useEffect)(()=>{d([...n.map(e=>({value:e._id,label:`${e.display}${(0,D.Kh)(e)} | ${(0,_.XK)(e,s)} ${a.dateTime((0,_.Pw)(e),r)}`})),{value:k.Sb,label:s("upgradePrompts.oldLicense")}])},[n,r,a]),(0,l.jsx)(N.p,{display:"inline-block",size:"md",onChange:i,data:o,value:t?._id||k.Sb})},U=()=>{let e=(0,T.N)("Shop"),{user:n}=(0,C.a)(),{max9UpgradeProduct:i,upgradeableLicense:r,upgradingOldLicense:s,handleSelectLicenseForUpgrade:a}=(0,b.useContext)(y.I),{priceDisplay:o,productOnSale:d,saleDescription:x,undiscountedPriceDisplay:p}=(0,b.useContext)(R.I),j=(0,b.useMemo)(()=>(0,_.p9)(n?.licenses?.filter(e=>_.yk(e))||[]),[n]),m=d(i.fsProduct),G=e=>new Date(e).toLocaleDateString();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(t.x,{children:[(0,l.jsx)(h.x,{mb:"xs",children:e("upgradePrompts.selectLicense")}),(0,l.jsxs)(c.r,{align:"center",children:[(0,l.jsx)(c.r.Col,{span:{base:10,xs:"content"},children:(0,l.jsx)(L,{eligibleLicenses:j,handleLicenseSelect:e=>{let i=e.currentTarget.value;a(i===k.Sb?k.Sb:n.licenses.find(e=>e._id===i))},selectedLicense:r})}),r?(0,l.jsx)(c.r.Col,{span:{base:2},children:(0,l.jsxs)(I.J,{mb:"md",children:[(0,l.jsx)(I.J.Target,{children:(0,l.jsx)(w.A,{variant:"subtle",size:"lg","aria-label":"License Information",children:(0,l.jsx)(v.G,{icon:g.DBf,size:"lg"})})}),(0,l.jsxs)(I.J.Dropdown,{children:[(0,l.jsxs)(h.x,{fw:"bold",fz:"sm",children:[r.display,(0,D.Kh)(r)]}),(0,l.jsx)(h.x,{fz:"sm",children:e(`licenseTypes.${r.type}`)}),r.license_upgrades?.filter(e=>e.status===D.Q_.ACTIVE).map(n=>l.jsx(h.x,{fz:"sm",children:e("upgradeDetails",{from:D.e6(n.upgraded_from),to:D.e6(n.upgraded_to),date:G(n.activated_on)})},n._id)),(0,l.jsx)(h.x,{fz:"sm",mb:"sm",children:(0,_.PT)(r,e)}),(0,l.jsxs)(h.x,{fz:"xs",children:["ID: ",r._id]})]})]})}):null]}),r||s?(0,l.jsxs)(c.r,{my:"md",gutter:"xl",children:[(0,l.jsx)(c.r.Col,{span:{base:12,sm:6},children:(0,l.jsxs)(t.x,{children:[(0,l.jsx)(u.D,{order:2,mb:"md",children:i.blurbTitle}),(0,l.jsx)(S.H,{content:i.blurbDescription})]})}),(0,l.jsx)(c.r.Col,{span:{base:12,sm:6},children:(0,l.jsx)(P.Z,{withBorder:!0,radius:0,mb:"md",bg:"blue",c:"white",children:(0,l.jsxs)(M.K,{gap:"sm",p:"md",children:[(0,l.jsxs)(t.x,{children:[(0,l.jsx)(u.D,{order:2,children:i.title}),(0,l.jsx)(h.x,{children:e("upgradePrompts.upgradeLicense")})]}),m?(0,l.jsxs)(M.K,{gap:0,children:[(0,l.jsx)(u.D,{order:3,c:"dimmed",td:"line-through",children:p(i.fsProduct)}),(0,l.jsxs)(u.D,{order:2,c:"sale",children:[o(i.fsProduct)," - ",x(i.fsProduct)]})]}):(0,l.jsxs)(A.Z,{gap:"sm",align:"center",children:[(0,l.jsx)(u.D,{order:3,c:"dimmed",td:"line-through",children:p(i.fsProduct)}),(0,l.jsx)(u.D,{order:2,children:o(i.fsProduct)})]})]})})})]}):null]}),(0,l.jsx)(f.i,{my:"lg"})]})};var F=i(90991),z=i(76556);let B=()=>(0,l.jsx)(F.M,{py:"lg",children:(0,l.jsx)(z.a,{})}),K=e=>{let{product:n,handleSelect:i,selected:r}=e,{priceDisplay:s,productOnSale:a,saleDescription:o,undiscountedPriceDisplay:d}=(0,b.useContext)(R.I),c=n.products[0],x=d(c.fsProduct),p=a(c.fsProduct);return(0,l.jsx)(P.Z,{withBorder:!0,radius:0,h:{base:"auto",sm:"100%"},mb:"md",onClick:()=>i(c.uniqueId),bg:r?"blue":"transparent",c:r?"white":"dark",style:{cursor:"pointer"},children:(0,l.jsxs)(t.x,{p:{base:"md",sm:"lg"},pt:p?"md":"lg",children:[(0,l.jsxs)(M.K,{gap:"sm",children:[(0,l.jsxs)(t.x,{children:[(0,l.jsx)(u.D,{order:2,children:n.title}),(0,l.jsx)(h.x,{children:n.productType})]}),(0,l.jsxs)(M.K,{gap:0,children:[x?(0,l.jsx)(u.D,{order:3,c:"dimmed",td:"line-through",children:x}):null,p?(0,l.jsxs)(u.D,{order:2,c:"sale",children:[s(c.fsProduct)," - ",o(c.fsProduct)]}):(0,l.jsx)(u.D,{order:2,children:s(c.fsProduct)})]})]}),n.description?.text?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.i,{my:"lg"}),(0,l.jsx)(S.H,{content:n.description})]}):null]})})};var O=i(42111),q=i(78635),H=i.n(q);let Z=e=>{let{product:n,handleSelect:i,selected:r}=e,[s,a]=(0,b.useState)(n.products[0]?.uniqueId),{priceDisplay:o}=(0,b.useContext)(R.I);return(0,l.jsxs)(P.Z,{withBorder:!0,radius:0,h:{base:"auto",sm:"100%"},p:{base:"md",sm:"xl"},mb:"md",onClick:()=>i(s,!1),bg:r?"blue":"transparent",c:r?"white":"dark",style:{cursor:"pointer"},children:[(0,l.jsxs)(M.K,{gap:"sm",children:[(0,l.jsxs)(t.x,{children:[(0,l.jsx)(u.D,{order:2,children:n.title}),(0,l.jsx)(h.x,{children:n.productType})]}),(0,l.jsx)(O.s,{size:"md",value:s,onChange:e=>{a(e),r&&i(e,!1)},data:n.products.map(e=>({label:o(e.fsProduct),value:e.uniqueId})),classNames:{label:H().activeMultiProductLabel}}
1)]}),n.description?.text?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.i,{my:"lg"}),(0,l.jsx)(S.H,{content:n.description})]}):null]})};var $=i(72331),W=i(86677),V=i(54680);let J=e=>{let{products:n}=e,i=(0,T.N)("Shop"),{priceDisplay:r,saleDescription:t,productOnSale:s,undiscountedPriceDisplay:a}=(0,b.useContext)(R.I);return n?(0,l.jsx)(c.r,{children:n.map(e=>(0,l.jsx)(c.r.Col,{span:{base:12,sm:12/n.length},children:(0,l.jsx)(P.Z,{withBorder:!0,radius:0,h:"100%",children:(0,l.jsxs)(M.K,{gap:"sm",children:[(0,l.jsx)(u.D,{order:3,c:"dimmed",children:i(`licenseTypes.${e.type}`)}),s(e.fsProduct)?(0,l.jsxs)(M.K,{gap:0,children:[(0,l.jsx)(u.D,{order:3,c:"dimmed",td:"line-through",children:a(e.fsProduct)}),(0,l.jsxs)(u.D,{order:3,c:"sale",children:[r(e.fsProduct)," - ",t(e.fsProduct)]})]}):(0,l.jsx)(u.D,{order:3,c:"dimmed",children:r(e.fsProduct)})]})})},e.id))}):null},X=e=>{let{licenses:n=[],baseLicense:i,handleLicenseSelect:r,format:t=E.zT.DATE_SHORT}=e,s=(0,T.N)("Shop"),a=(0,G.useFormatter)(),[o,d]=(0,b.useState)(n.map(e=>({value:e._id,label:`${e.display}${(0,D.Kh)(e)}`})));return(0,b.useEffect)(()=>{d(n?.map(e=>({value:e._id,label:`${e.display}${D.Kh(e)} | ${_.XK(e,s)} ${a.dateTime(_.Pw(e),t)}`})))},[n,t,a]),(0,l.jsx)(N.p,{display:"inline-block",size:"md",onChange:r,value:i?._id,data:o})},Y=e=>{let{title:n,description:i,availableProducts:r}=e,s=(0,T.N)("Shop"),{query:a}=(0,W.useRouter)(),{loading:o,user:x,setUserModalTab:p}=(0,C.a)(),{getProduct:m,baseLicense:v,selectedProduct:g,handleSelectBaseLicenseForAddon:I}=(0,b.useContext)(y.I),{priceDisplay:w,productOnSale:A,saleDescription:D,undiscountedPriceDisplay:k}=(0,b.useContext)(R.I),G=m(g),N=!!G&&A(G?.fsProduct),L=(0,_.Mc)(x?.licenses,"rnbo");return((0,b.useEffect)(()=>{!g&&L?.length&&I(L.find(e=>e._id===a?.license)||L[0])},[a,L,g,I]),o)?(0,l.jsx)(B,{}):x?x&&!L.length?(0,l.jsxs)(M.K,{gap:"md",children:[(0,l.jsx)(V.b,{variant:"outline",mb:"lg",ta:"center",children:(0,l.jsxs)(M.K,{gap:"sm",children:[(0,l.jsx)(h.x,{children:s("addonSelection.requiresActiveLicense")}),(0,l.jsx)(h.x,{children:s.rich("addonSelection.maxShopPrompt",{link:e=>(0,l.jsx)(j.e,{component:d(),inherit:!0,href:"/shop/max",children:e})})})]})}),(0,l.jsx)(J,{products:r})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(t.x,{my:"md",children:[(0,l.jsx)(h.x,{mb:"xs",children:s("addonSelection.selectLicense")}),(0,l.jsx)(X,{licenses:L,baseLicense:v,handleLicenseSelect:e=>{let n=e.currentTarget.value;I(x.licenses.find(e=>e._id===n))}})]}),G?(0,l.jsxs)(c.r,{mt:"md",gutter:"xl",children:[(0,l.jsx)(c.r.Col,{span:{base:12,lg:6},children:(0,l.jsxs)(t.x,{children:[(0,l.jsx)(u.D,{order:2,mb:"md",children:n}),(0,l.jsx)(S.H,{content:i})]})}),(0,l.jsx)(c.r.Col,{span:{base:12,lg:6},children:(0,l.jsx)(P.Z,{withBorder:!0,radius:0,bg:"blue",c:"white",children:(0,l.jsxs)(M.K,{justify:"space-between",p:"md",children:[(0,l.jsx)(t.x,{children:(0,l.jsx)(u.D,{order:2,children:G.title})}),N?(0,l.jsxs)(M.K,{gap:0,children:[(0,l.jsx)(u.D,{order:3,c:"dimmed",td:"line-through",children:k(G.fsProduct)}),(0,l.jsxs)(u.D,{order:2,c:"sale",children:[w(G.fsProduct)," - ",D(G.fsProduct)]})]}):(0,l.jsx)(u.D,{order:2,children:w(G.fsProduct)})]})})})]}):null,(0,l.jsx)(f.i,{my:"lg"})]}):(0,l.jsxs)(M.K,{gap:"md",children:[(0,l.jsx)(V.b,{variant:"outline",mb:"lg",ta:"center",children:(0,l.jsxs)(M.K,{gap:"sm",children:[(0,l.jsx)(h.x,{children:s("addonSelection.requiresActiveLicense")}),(0,l.jsx)(h.x,{children:s.rich("addonSelection.signInForAddons",{link:e=>(0,l.jsx)(j.e,{inherit:!0,onClick:()=>p(E.qX.SIGN_IN),children:e})})}),(0,l.jsx)(h.x,{children:s.rich("addonSelection.maxShopPrompt",{link:e=>(0,l.jsx)(j.e,{component:d(),inherit:!0,href:"/shop/max",children:e})})})]})}),(0,l.jsx)(J,{products:r})]})};var Q=i(3119),ee=i(2054),en=i(23615),ei=i.n(en);let el=e=>{let{loadingState:n,setLoadingState:i,goBackToShop:r}=e,t=(0,T.N)("Shop.working");return null===n?null:n.state===k.Cr.WAITING?(0,l.jsx)(p.k,{justify:"center",align:"center",pos:"fixed",top:0,bottom:0,left:0,right:0,style:{zIndex:251},children:(0,l.jsx)(Q.f,{visible:!0})}):(0,l.jsxs)(ee.u,{withCloseButton:!1,opened:!!n,onClose:()=>n?.state!==k.Cr.WAITING&&i(null),children:[(0,l.jsxs)(V.b,{variant:"light",color:"red",title:t("error.title"),children:[n.message,(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),t.rich("error.content",{link:e=>(0,l.jsx)(j.e,{inherit:!0,href:"mailto:[email protected]",children:e})})]}),(0,l.jsx)(x.z,{onClick:r,children:t("backToShop")})]})};el.propTypes={loadingState:ei().object,setLoadingState:ei().func.isRequired,goBackToShop:ei().func.isRequired};var er=i(46806),et=i(16077),es=i(11116),ea=i(75171),eo=i(88447),ed=i(71292),ec=i(68301),eu=i(85552),eh=i(80339),ex=i(29860),ep=i(23133),ej=i(78113),em=i(76177),ev=i.n(em);let eg=e=>navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?navigator.mediaDevices.getUserMedia(e):(navigator.myGetUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,new Promise((n,i)=>{navigator.myGetUserMedia(e,n,i)})),eb=()=>
1new Promise((e,n)=>{eg({video:{mandatory:{minWidth:600,minHeight:300}}}).catch(()=>eg({video:!0})).catch(()=>eg("video")).then(n=>e(n)).catch(e=>n(e))}),ef=e=>{let{onSetImage:n,onClose:i}=e,r=(0,T.N)("Shop.academicModal.form"),[s,a]=(0,b.useState)(null),[o,d]=(0,b.useState)(null),c=(0,b.useRef)();(0,b.useEffect)(()=>{eb().then(e=>{a(e),c.current.srcObject=e,c.current.play()}).catch(e=>{console.log(e),d(r("fields.image.noAccess"))})},[]);let u=()=>{if(s)try{s.stop()}catch(e){s.getVideoTracks().map(e=>e.stop()),s.getAudioTracks().map(e=>e.stop())}};return(0,l.jsxs)(M.K,{children:[(0,l.jsx)(t.x,{w:"100%",ta:"center",children:(0,l.jsx)("video",{autoPlay:!0,muted:!0,playsInline:!0,ref:c,width:"640",height:"480"})}),(0,l.jsxs)(A.Z,{justify:"flex-end",gap:"xs",children:[(0,l.jsx)(x.z,{leftSection:(0,l.jsx)(v.G,{icon:g.EOp}),variant:"outline",color:"red",onClick:()=>{u(),i()},style:{pointerEvents:"all"},children:r("fields.image.cancel")}),(0,l.jsx)(x.z,{leftSection:(0,l.jsx)(v.G,{icon:g._jT}),onClick:()=>{let e=document.createElement("canvas"),i=c.current.videoWidth/c.current.videoHeight,l=Math.min(800,c.current.videoWidth||c.current.clientWidth),r=Math.min(800,l/i);e.width=l,e.height=r;let t=e.getContext("2d");t.fillRect(0,0,l,r),t.drawImage(c.current,0,0,l,r);let s=e.toDataURL("image/jpeg");u(),n(s)},style:{pointerEvents:"all"},children:r("fields.image.capture")})]}),o?(0,l.jsx)(V.b,{variant:"light",color:"red",children:o}):null]})},eS=e=>{let{className:n,label:i,name:r}=e,s=(0,T.N)("Forms"),[{value:a},{touched:o,error:d},{setTouched:c,setValue:u}]=(0,ed.U$)(r),[p,j]=(0,b.useState)(!1),[f,S]=(0,b.useState)(!1),C=(0,b.useRef)();(0,b.useEffect)(()=>{j(!!(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia))},[]);let y=(0,b.useCallback)(e=>{try{let n=e[0],i=new FileReader;i.onloadend=e=>{if(!e?.target?.result)return;let n=e.target.result;u(n,!0),c(!0,!1)},i.readAsDataURL(n)}catch(e){alert(s("imageUpload.errors.browser"))}},[u,c]),I=(0,b.useCallback)(e=>{switch(e[0].code){case"file-invalid-type":return alert(s.rich("imageUpload.errors.invalidType",{types:Object.values(E.LO.IMAGE).map(e=>e.replace(/^image\//,"").join(", "))}));case"file-too-large":case"file-too-small":return alert(s.rich("imageUpload.errors.fileSize",{size:`${E.md}MB`}));case"too-many-files":return alert(s("imageUpload.errors.tooManyFilesSingle"));default:return alert(s.rich("imageUpload.errors.default",{size:`${E.md}MB`}))}},[]),w=(0,b.useCallback)(()=>{u("")},[u]),P=(0,b.useCallback)(()=>{C.current?.()},[C]),_=(0,b.useCallback)(()=>{S(!0)},[S]),D=(0,b.useCallback)(()=>{S(!1),u("")},[S,u]),k=(0,b.useCallback)(e=>{u(e,!0),c(!0,!1),S(!1)},[u,c,S]);return(0,l.jsxs)(M.K,{gap:"sm",children:[i?(0,l.jsx)(h.x,{component:"label",tt:"uppercase",fw:"bold",size:"0.85rem",mb:"5px",htmlFor:r,children:i}):null,(0,l.jsx)(ej.fh,{accept:Object.values(E.LO.IMAGE),className:n,onDrop:y,onReject:I,maxFiles:1,maxSize:E.kd,openRef:C,activateOnClick:!1,children:(0,l.jsxs)(A.Z,{gap:"md",justify:"center",my:"xl",children:[(0,l.jsx)(ej.fh.Accept,{children:(0,l.jsx)(v.G,{icon:g.cf$,size:"2x"})}),(0,l.jsx)(ej.fh.Reject,{children:(0,l.jsx)(v.G,{icon:g.EOp,size:"2x"})}),(0,l.jsxs)(ej.fh.Idle,{children:[a?(0,l.jsxs)(M.K,{children:[(0,l.jsx)(t.x,{className:ev().imageCapturePreviewWrap,children:(0,l.jsx)(m.E,{className:ev().imageCapturePreviewImg,src:a})}),(0,l.jsx)(A.Z,{justify:"flex-end",children:(0,l.jsx)(x.z,{leftSection:(0,l.jsx)(v.G,{icon:g.XAH}),variant:"outline",color:"red",onClick:w,style:{pointerEvents:"all"},children:s("imageUpload.delete")})})]}):null,!a&&f?(0,l.jsx)(ef,{onSetImage:k,onClose:D}):null,a||f?null:(0,l.jsxs)(x.z.Group,{children:[(0,l.jsx)(x.z,{leftSection:(0,l.jsx)(v.G,{icon:g.cf$}),variant:"outline",onClick:P,style:{pointerEvents:"all"},children:s("imageUpload.uploadFile")}),p?(0,l.jsx)(x.z,{leftSection:(0,l.jsx)(v.G,{icon:g._jT}),variant:"outline",onClick:_,style:{pointerEvents:"all"},children:s("imageUpload.takePhoto")}):null]})]})]})}),o&&d?(0,l.jsx)(h.x,{c:"red",fz:"sm",children:d}):null]})},eC=e=>{let{isOpen:n,closeModal:i,onSuccess:r}=e,s=(0,T.N)("Shop.academicModal"),{user:a}=(0,C.a)(),[o,d]=(0,b.useState)(null),c=ec.Ry().shape({id_image:ec.Z_().required(s("form.fields.image.required")),school_name:ec.Z_().required(s("form.fields.school.required")),field_of_study:ec.Z_().required(s("form.fields.fieldOfStudy.required")),student_purchase_reason:ec.Z_().required(s("form.fields.purchaseReason.required"))});return(0,l.jsx)(ee.u,{opened:n,onClose:i,title:s("title"),size:"xl",children:(0,l.jsx)(t.x,{children:(0,l.jsx)(ed.J9,{initialValues:{id_image:"",school_name:"",field_of_study:"",student_purchase_reason:""},onSubmit:(e,n)=>{if(d(null),e?.id_image){let l=a?._id||null;(0,ea.SU)({data:e.id_image,user_id:l}).then(n=>
1{n?.body?._id?(e.id_image=n.body._id,i(),r(e)):d(s("imageUploadError"))}).catch(e=>{d(e.response?.body?.error||e.message)}).finally(()=>{n.setSubmitting(!1)})}},validationSchema:c,children:(0,l.jsxs)(ed.l0,{children:[(0,l.jsx)(t.x,{mb:"md",children:(0,l.jsx)(eS,{name:"id_image",label:s("form.fields.image.label"),required:!0})}),(0,l.jsx)(ex.Xn,{name:"school_name",label:s("form.fields.school.label"),required:!0}),(0,l.jsx)(ex.Xn,{name:"field_of_study",label:s("form.fields.fieldOfStudy.label"),required:!0}),(0,l.jsx)(ep.A,{required:!0,name:"student_purchase_reason",label:s("form.fields.purchaseReason.label"),options:[{label:s("form.fields.purchaseReason.options.default"),value:""},{label:s("form.fields.purchaseReason.options.class"),value:"For a class"},{label:s("form.fields.purchaseReason.options.independent"),value:"Independently"}]}),o?(0,l.jsx)(eu.Z,{error:o}):null,(0,l.jsx)(eh.d,{})]})})})})};var ey=i(80569),eI=i.n(ey);let ew=e=>{let{isOpen:n,closeModal:i,onSuccess:r}=e,s=(0,T.N)("Shop.serialForms"),[a,o]=(0,b.useState)(null),d=ec.Ry().shape({max6Serial:ec.Z_().required(s("form.fields.max6Serial.required"))});return(0,l.jsx)(ee.u,{opened:n,onClose:i,title:s("form.fields.max6Serial.label"),size:"xl",children:(0,l.jsx)(t.x,{children:(0,l.jsx)(ed.J9,{initialValues:{max6Serial:""},onSubmit:(e,n)=>(o(null),eI().get(`${E.jk}/fastspring/max6serial?value=${encodeURIComponent(e.max6Serial)}`).then(()=>{r({max6_serial:e.max6Serial}),i()}).catch(()=>{o(s("form.fields.max6Serial.invalid"))}).finally(()=>{n.setSubmitting(!1)})),validationSchema:d,children:(0,l.jsxs)(ed.l0,{children:[(0,l.jsx)(ex.Xn,{placeholder:"**********",name:"max6Serial",label:s("form.fields.max6Serial.label"),required:!0}),a?(0,l.jsx)(eu.Z,{error:a}):null,(0,l.jsx)(eh.d,{})]})})})})},eP=e=>{let{isOpen:n,closeModal:i,onSuccess:r}=e,s=(0,T.N)("Shop.serialForms"),o=(0,a._)(),[d,c]=(0,b.useState)(null),u=ec.Ry().shape({max4LiveSerial:ec.Z_().required(s("form.fields.maxForLiveSerial.required"))}),h="https://help.ableton.com/hc/en-us/articles/209770305-Missing-serial-number-",x=o?`max:launchbrowser/${encodeURIComponent(h)}`:h;return(0,l.jsx)(ee.u,{opened:n,onClose:i,title:s("form.fields.maxForLiveSerial.label"),size:"xl",children:(0,l.jsx)(t.x,{children:(0,l.jsx)(ed.J9,{initialValues:{max4LiveSerial:""},onSubmit:(e,n)=>(c(null),eI().get(`${E.jk}/fastspring/max4liveserial?value=${encodeURIComponent(e.max4LiveSerial)}`).then(()=>{r({max4live_serial:e.max4LiveSerial}),i()}).catch(()=>{c(s("form.fields.maxForLiveSerial.invalid"))}).finally(()=>{n.setSubmitting(!1)})),validationSchema:u,children:(0,l.jsxs)(ed.l0,{children:[(0,l.jsx)(ex.Xn,{placeholder:"**********",name:"max4LiveSerial",label:s("form.fields.maxForLiveSerial.label"),required:!0}),d?(0,l.jsx)(eu.Z,{error:d}):null,(0,l.jsx)(V.b,{variant:"light",icon:(0,l.jsx)(v.G,{icon:g.DBf}),children:s.rich("crossgradeWarning.content",{link:e=>(0,l.jsx)(j.e,{size:"sm",href:x,target:"_blank",rel:"noopener noreferrer",children:e})})}),(0,l.jsx)(eh.d,{})]})})})})};var eM=i(80596);let eA=e=>{let{product:n,subscription:i={},handleAddonAddition:r,disableSubmit:t,setDisableSubmit:s}=e,a=(0,T.N)("Shop.subAddonModal"),[o,d]=(0,b.useState)(!1),[c,u]=(0,b.useState)(!1),[p,m]=(0,b.useState)(null),{baseLicense:f}=(0,b.useContext)(y.I),{userToken:S}=(0,b.useContext)(er.e);return((0,b.useEffect)(()=>{!o&&f&&n&&(d(!0),(0,ea.kp)({existingLicenseId:f._id,addonNames:[n?.fsProduct],userToken:S}).then(e=>m(e.body)).catch(()=>{s(!0),u(!0)}).finally(()=>d(!1)))},[n,f]),n)?(0,l.jsx)(l.Fragment,{children:o?(0,l.jsx)(F.M,{py:"lg",children:(0,l.jsx)(z.a,{color:"#0377CB"})}):(0,l.jsxs)(l.Fragment,{children:[c?(0,l.jsxs)(V.b,{variant:"light",color:"red",title:a("estimationError.title"),icon:(0,l.jsx)(v.G,{icon:g.RLE}),children:[(0,l.jsx)(h.x,{inherit:!0,mb:"sm",children:a("estimationError.explanation")}),(0,l.jsx)(h.x,{inherit:!0,children:a.rich("estimationError.contact",{licenseId:f._id,emailLink:e=>(0,l.jsx)(j.e,{inherit:!0,href:"mailto:[email protected]",children:e}),bold:e=>(0,l.jsx)(h.x,{inherit:!0,span:!0,fw:"bold",children:e})})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.x,{mb:"md",children:a("whenAddingAddon")}),(0,l.jsxs)(eM.a,{pr:"lg",children:[(0,l.jsx)(eM.a.Item,{children:a.rich("proratedCharge",{amount:p?.prorateTotal||""})}),p?.nextCharge&&p?.nextChargeDate?(0,l.jsx)(eM.a.Item,{children:a.rich("monthly"===n.type?"nextProratedChargeMonthly":"nextProratedChargeAnnual",{charge:p.nextCharge,chargeDate:p.nextChargeDate})}):i?.nextChargeDisplay?(0,l.jsx)(eM.a.Item,{children:a.rich("monthly"===n.type?"nextChargeMonthly":"nextChargeAnnual",{maxPrice:i.subPriceWithoutTax,rnboPrice:i.addonPriceWithoutTax,chargeDate:i.nextChargeDisplay})}):null]})]}),(0,l.jsx)(x.z,{mt:"lg",onClick:r,disabled:t,fullWidth:!0,children:a("submit")})]})}):null},e_=e=>{let{opened:n,close:i,product:r,subscription:t,startLoading:s,stopLoading:a,loadingState:o}=e,d=(0,T.N)("Shop.subAddonModal"),{baseLicense:c}=(0,b.useContext)(y.I),{userToken:u,getUser:h}=(0,b.useContext)(er.e),{getCurrentUser:x}=(0,C.a)(),{push:p}=(0,W.useRouter)(),[j,m]=(0,b.useState)(!1),[v,g]=(0,b.useState)(null);return(0,l.jsxs)(ee.u,{opened:n,onClose:()=>{g(null),m(!1),a(),i()},title:d("title"),children:[(0,l.jsx)(Q.f,{visible:o?.state===k.Cr.WAITING}),(0,l.jsx)(eA,{product:r,subscription:t,handleAddonAddition:()=>{g(null),m(!0),s(),(0,ea.Zb)({existingLicenseId:c._id,addonNames:[r?.fsProduct],userToken:u}).then(e=>{let n=e.body?.subscriptions?.[0].subscription;u?h():x(),p(`/shop/thanks?sref=${n}`)}).catch(()=>{g(d("error.content")),m(!1),a()})},disableSubmit:j,setDisableSubmit:m}),v?(0,l.jsx)(eu.Z,{error:v}):null]})};var eT=i(6942);let eD={C74ShopProductGrid:e=>{let{products:n,extraContent:i,showsUpgradeShop:r,upgradePage:t}=e,{loading:s}=(0,C.a)(),{selectedProduct:a,setAvailableProducts:o,showUpgradePath:d,handleProductSelect:u}=(0,b.useContext)(y.I);return((0,b.useEffect)(()=>{let e=n.filter(e=>"C74ShopProduct"===e.__typename)||[];e.length&&o(e),1!==e.length||a||u(e[0].products[0].uniqueId)},[n,u,a,o]),s)?(0,l.jsx)(B,{}):t&&d&&r?(0,l.jsx)(U,{}):(0,l.jsxs)(l.Fragment,{children:[n?.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.r,{gutter:"xl",children:n.map(e=>"Text"===e.__typename?(0,l.jsx)(c.r.Col,{span:{base:12,sm:12/n.length},children:(0,l.jsx)(S.H,{content:e.content})},e.id):(0,l.jsx)(c.r.Col,{span:{base:12,sm:12/n.length},children:e.products?.length>1?(0,l.jsx)(Z,{product:e,handleSelect:u,selected:!!e.products.find(e=>e.uniqueId===a)}):(0,l.jsx)(K,{product:e,handleSelect:u,selected:a===e.products[0].uniqueId})},e.id))}),(0,l.jsx)(f.i,{my:"lg"})]}):null,i?.length?(0,l.jsx)(c.r,{py:"xl",gutter:"xl",children:i.map(e=>(0,l.jsx)(c.r.Col,{span:{base:12,md:12/i.length},children:(0,l.jsx)(ek,{...e})},e.id))}):null]})},C74ShopAddonSelect:e=>{let{title:n,description:i,standalone:r,availableProducts:t}=e,s=(0,T.N)("Shop"),{priceDisplay:a,productOnSale:o,saleDescription:d,undiscountedPriceDisplay:x,priceDisplayBundleAddon:p}=(0,b.useContext)(R.I),{getProduct:j,selectedAddon:m,selectedProduct:v,handleAddonSelect:g,availableProducts:C,max9UpgradeProduct:I,upgradeableLicense:w,upgradingOldLicense:P,availableProductsAddons:A,showUpgradePath:_}=(0,b.useContext)(y.I),k=j(v),G=A(),N=w&&(0,D.P_)(w),E=I.availableAddons.find(e=>e.isAcademic===(0,D.lI)(w)),L=C?.[0]?.products[0],U=C?.[0]?.products[0]?.availableAddons[0],F=(w||P)&&_?[E]:[k?.availableAddons?.[0]];return r?(0,l.jsx)(Y,{title:n,description:i,availableProducts:t}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(c.r,{align:"center",children:[(0,l.jsxs)(c.r.Col,{span:{base:12,sm:6},children:[(0,l.jsx)(u.D,{order:2,mb:"md",children:n}),N?(0,l.jsx)(h.x,{fw:"bold",mb:"md",children:s("rnboIsCompatibleWithUpgrade")}):null,(0,l.jsx)(S.H,{content:i})]}),(0,l.jsxs)(c.r.Col,{span:{base:12,sm:6},children:[k&&F?F.map(e=>(0,l.jsxs)(M.K,{align:"flex-end",ta:"right",gap:"xs",children:[(0,l.jsx)($.X,{label:s("addRnbo"),labelPosition:"left",size:"lg",mb:0,checked:N||m===e.uniqueId,disabled:N,onChange:()=>g(e.uniqueId),color:o(e.fsProduct)?"sale":"blue",styles:{input:{borderColor:"black"}}}),N?null:(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(M.K,{gap:0,justify:"flex-end",children:[x(e.fsProduct)?(0,l.jsx)(u.D,{order:3,c:"dimmed",td:"line-through",children:x(e.fsProduct)}
1):null,o(e.fsProduct)?(0,l.jsxs)(u.D,{order:2,c:"sale",fw:"bold",children:[p(k,e)," - ",d(e.fsProduct)]}):(0,l.jsx)(u.D,{order:2,children:p(k,e)})]})})]},e.uniqueId)):null,!k&&U&&L?(0,l.jsxs)(M.K,{align:"flex-end",gap:"xs",children:[(0,l.jsx)($.X,{label:s("addRnbo"),labelPosition:"left",size:"lg",mb:0,disabled:!0}),(0,l.jsxs)(M.K,{gap:0,ta:"right",children:[x(U.fsProduct)?(0,l.jsx)(u.D,{order:3,c:"dimmed",td:"line-through",children:x(U.fsProduct)}):null,o(U.fsProduct)?(0,l.jsxs)(u.D,{order:2,c:"dimmed",ta:"right",children:[p(L,U)," - ",d(U.fsProduct)]},U.fsProduct):(0,l.jsx)(u.D,{order:2,c:"dimmed",ta:"right",children:p(L,U)},U.fsProduct)]})]},U.uniqueId):k?null:G?.map(e=>l.jsxs(h.x,{c:"dimmed",ta:"right",children:[e.title,": ",l.jsx(h.x,{span:!0,fw:"bold",children:a(e.fsProduct)})]},e.type))]})]}),(0,l.jsx)(f.i,{my:"lg"})]})},C74ShopTotal:e=>{let{total:n,buttonText:i,content:r,loggedInOnly:t,country:s}=e,{selectedProduct:a,selectedAddon:o,baseLicense:d,cleanUpBasket:h,upgradeableLicense:p,upgradingOldLicense:j,getProduct:m}=(0,b.useContext)(y.I),v=(0,T.N)("Shop"),{user:g,getCurrentUser:f,setCurrentUser:I}=(0,C.a)(),{getUser:w,userToken:P,userCredentials:_}=(0,b.useContext)(er.e),{fastspring:D}=(0,b.useContext)(et.r),{setShopError:G,dismissShopError:N}=(0,b.useContext)(es.$),{salePriceDeltaDisplay:E,totalPriceDisplay:L}=(0,b.useContext)(R.I),{push:U}=(0,W.useRouter)(),[F,z]=(0,b.useState)(!1),[B,K]=(0,b.useState)(null),[O,q]=(0,b.useState)(!1),[H,Z]=(0,b.useState)(!1),[$,V]=(0,b.useState)(!1),[J,X]=(0,b.useState)(!1),Y=m(a),Q=m(o),ee=L(Y,Q),en=E(Y,Q),ei=(0,b.useCallback)(e=>{let n=e.detail?.id;if(z(!1),n&&g?._id){K({state:k.Cr.WAITING});let i=P||_;return(i?w:eo.jo)().then(l=>{if(l.body?.licenses?.length&&l.body.licenses.find(e=>e?.activated_info?.fastspring?.reference===n||e?.sublicenses?.find(e=>e?.activated_info?.fastspring?.reference===n)||e?.license_upgrades?.find(e=>e?.activated_info?.fastspring?.reference===n))){i?I(l.body):f(),h(),U(`/shop/thanks?ref=${n}`);return}setTimeout(()=>{ei(e)},1e3)}).catch(e=>{K({message:e.message,state:k.Cr.ERROR})})}n&&(h(),U(`/shop/thanks?ref=${n}`))},[K,f,g,U,w,I,P,_,h]),ed=e=>{K({message:e.detail?.string,state:k.Cr.ERROR})},ec=e=>{e.detail?.id||K({message:"No ID in the purchase callback.",state:k.Cr.ERROR})},eu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(X(!1),q(!1),Z(!1),V(!1),Y?.isAddon&&d?._id&&["monthly","annual"].includes(Y?.type))return X(!0),!1;let n=Q&&!Q.bundleFsProduct?[{path:Q.fsProduct,quantity:1,display:{en:Q.fsDisplay}}]:null,i=Object.assign(e,{max7plus_license:p?p._id:null}),l=[{path:Q?.bundleFsProduct?Q.bundleFsProduct:Y?.fsProduct,display:Q?.bundleFsDisplay?Q.bundleFsDisplay:Y?.fsDisplay,quantity:1,attributes:i},n].flat().filter(Boolean);if(Y&&D?.builder){let e=g?._id||null,n={products:l,tags:{user_id:e,purchase_path:window.max?"in-app":e?"in-browser":"in-browser-anon",license_id:d?._id||null}},i={email:g?.profile?.email||null,firstName:g?.profile?.first_name||null,lastName:g?.profile?.last_name||null};(0,ea.NW)(n).then(e=>{if(!(e?.body?.securePayload&&e?.body?.secureKey))return Promise.reject(Error("Server did not sign data."));window.scrollTo(0,0),D.builder.reset(),D.builder.country(s),D.builder.push({paymentContact:i}),D.builder.secure(e.body.securePayload,e.body.secureKey),D.builder.checkout()}).catch(e=>{G(e.response?.body?.error||e.message),z(!1)})}};return((0,b.useEffect)(()=>(document.addEventListener("fs-popup-closed",ei,!1),document.addEventListener("fs-error",ed,!1),document.addEventListener("fs-popup-webhook",ec,!1),()=>{document.removeEventListener("fs-popup-closed",ei,!1),document.removeEventListener("fs-error",ed,!1),document.removeEventListener("fs-popup-webhook",ec,!1)}),[g,ei]),!g&&t)?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el,{loadingState:B,setLoadingState:K,goBackToShop:()=>K(null)}),(0,l.jsx)(eC,{isOpen:O,closeModal:()=>{q(!1),z(!1)},onSuccess:eu}),(0,l.jsx)(ew,{isOpen:H,closeModal:()=>{Z(!1),z(!1)},onSuccess:eu}),(0,l.jsx)(eP,{isOpen:$,closeModal:()=>{V(!1),z(!1)},onSuccess:eu}),(0,l.jsx)(e_,{opened:J,close:()=>{X(!1),z(!1)},product:Y,startLoading:()=>K({state:k.Cr.WAITING}),stopLoading:()=>K(null),loadingState:B}),(0,l.jsxs)(c.r,{children:[(0,l.jsx)(c.r.Col,{span:{base:12,sm:6},order:{base:2,lg:1},children:r?(0,l.jsx)(S.H,{content:r}):null}),(0,l.jsx)(c.r.Col,{span:{base:12,sm:6},order:{base:2,lg:1},children:(0,l.jsx)(M.K,{my:"md",ta:"right",align:"flex-end",children:ee?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(M.K,{align:"flex-end",gap:0,children:[(0,l.jsx)(u.D,{order:3,children:n}),(0,l.jsx)(u.D,{order:2,children:ee}),en?(0,l.jsx)(u.D,{order:3,c:"sale",children:v("saleTotalSaving",{price:en})}):null]}),(0,l.jsx)(x.z,{size:"lg",disabled:F,onClick:()=>
1{if(F||!Y||Y.isAddon&&!d)return!1;if(N(),z(!0),Y.idRequired||Q?.idRequired){q(!0);return}if(Y.isCrossgrade||Q?.isCrossgrade){V(!0);return}if(j){Z(!0);return}eu()},children:i})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(A.Z,{align:"center",children:[(0,l.jsx)(u.D,{order:3,c:"dimmed",children:n}),(0,l.jsx)(u.D,{order:2,c:"dimmed",children:"--"})]}),(0,l.jsx)(x.z,{size:"lg",disabled:!0,children:i})]})})})]})]})},C74ShopText:e=>{let{title:n,content:i,hideIfUpgrading:r}=e,{showUpgradePath:s}=(0,b.useContext)(y.I);return r&&s?null:(0,l.jsxs)(t.x,{mb:"lg",children:[n?(0,l.jsx)(u.D,{order:1,mb:"md",children:n}):null,i?(0,l.jsx)(S.H,{content:i}):null]})},ShopHomeProductLink:e=>{let{title:n,description:i,linkText:r,linkHref:t,image:s,isOnSale:o,saleLinkText:b}=e,f=(0,a._)();return(0,l.jsxs)(c.r,{gutter:"xl",mb:"xl",align:"center",overflow:"visible",children:[(0,l.jsxs)(c.r.Col,{span:{base:12,sm:f?6:12,md:6},children:[n?(0,l.jsx)(u.D,{order:1,size:"5rem",mb:"sm",children:n}):null,i?(0,l.jsx)(h.x,{mb:"md",children:i}):null,(0,l.jsx)(x.z,{component:d(),href:t,rightSection:(0,l.jsx)(v.G,{icon:g.eFW}),bg:o?"sale":"blue",children:r||"SELECT"})]}),(0,l.jsxs)(c.r.Col,{span:{base:12,sm:f?6:12,md:6},pos:"relative",children:[o?(0,l.jsx)(p.k,{w:"120px",h:"120px",pos:"absolute",bg:"sale",left:"-5px",top:"0px",justify:"center",align:"center",style:{clipPath:"polygon(100% 50%,91.48% 56.57%,97.55% 65.45%,87.42% 69.07%,90.45% 79.39%,79.7% 79.7%,79.39% 90.45%,69.07% 87.42%,65.45% 97.55%,56.57% 91.48%,50% 100%,43.43% 91.48%,34.55% 97.55%,30.93% 87.42%,20.61% 90.45%,20.3% 79.7%,9.55% 79.39%,12.58% 69.07%,2.45% 65.45%,8.52% 56.57%,0% 50%,8.52% 43.43%,2.45% 34.55%,12.58% 30.93%,9.55% 20.61%,20.3% 20.3%,20.61% 9.55%,30.93% 12.58%,34.55% 2.45%,43.43% 8.52%,50% 0%,56.57% 8.52%,65.45% 2.45%,69.07% 12.58%,79.39% 9.55%,79.7% 20.3%,90.45% 20.61%,87.42% 30.93%,97.55% 34.55%,91.48% 43.43%)",transform:"rotate(-20deg)",borderRadius:"100%",boxShadow:"3px 3px 2px rgba(0, 0, 0, 0.2)"},children:(0,l.jsx)(h.x,{c:"white",fw:"bold",px:"sm",ta:"center",children:b})}
1):null,s?(0,l.jsx)(j.e,{component:d(),href:t,children:(0,l.jsx)(m.E,{src:s.url,alt:s.title})}):null]})]})},Text:S.H,Accordion:eT.t},ek=e=>{let{__typename:n,...i}=e,r=eD[n];return r?(0,l.jsx)(r,{...i}):(console.warn(`Unknown Component from Shop Page "${n}". Skipping.`),null)};var eR=i(35629);let eG=()=>{let e=(0,a._)(),n=(0,T.N)("Shop.upgradePrompts"),{user:i,setUserModalTab:r,signOut:t}=(0,C.a)(),{showUpgradePath:s,handleUpgradePathToggle:o}=(0,b.useContext)(y.I);return(0,l.jsxs)(l.Fragment,{children:[i?null:(0,l.jsx)(V.b,{variant:"outline",mb:"lg",ta:"center",children:n.rich("signInForUpgrades",{link:e=>(0,l.jsx)(j.e,{inherit:!0,onClick:()=>r(E.qX.SIGN_IN),children:e})})}),i&&s?(0,l.jsx)(V.b,{variant:"outline",mb:"lg",ta:"center",children:(0,l.jsxs)(M.K,{gap:"xs",children:[e?null:(0,l.jsx)(h.x,{fz:"sm",children:n.rich("currentlySignedInAs",{name:[i.profile.first_name,i.profile.last_name].join(" "),bold:e=>(0,l.jsx)("strong",{children:e}),link:e=>(0,l.jsx)(j.e,{inherit:!0,onClick:t,children:e})})}),(0,l.jsxs)(h.x,{fz:"sm",children:[n("optionsShownBelow")," ",n.rich("purchaseAdditional",{link:e=>(0,l.jsx)(j.e,{inherit:!0,onClick:()=>o(!1),children:e})})]})]})}):null,i&&!s?(0,l.jsx)(V.b,{variant:"outline",mb:"lg",ta:"center",children:(0,l.jsxs)(M.K,{gap:"xs",children:[e?null:(0,l.jsx)(h.x,{fz:"sm",children:n.rich("currentlySignedInAs",{name:[i.profile.first_name,i.profile.last_name].join(" "),bold:e=>(0,l.jsx)("strong",{children:e}),link:e=>(0,l.jsx)(j.e,{inherit:!0,onClick:t,children:e})})}),(0,l.jsx)(h.x,{fz:"sm",children:n.rich("switchToUpgrades",{link:e=>(0,l.jsx)(j.e,{inherit:!0,onClick:()=>o(!0),children:e})})})]})}):null]})},eN=e=>{let{country:n}=e,{asPath:i}=(0,W.useRouter)(),r=(0,b.useRef)(),[t,s]=(0,b.useState)(n);return(0,l.jsx)(c.r,{py:0,children:(0,l.jsx)(c.r.Col,{span:{base:12,sm:6,md:4},children:(0,l.jsxs)("form",{method:"post",action:"/api/change-country",ref:r,children:[(0,l.jsx)("input",{type:"hidden",name:"next",value:i}),(0,l.jsxs)(N.p,{size:"sm",name:"country",onChange:e=>{s(e.currentTarget.value),r.current?.submit()},value:t,leftSection:(0,l.jsx)(v.G,{icon:g.g4A}),children:[(0,l.jsx)("option",{children:"Select location"}),(0,l.jsxs)("optgroup",{label:"Common Countries",children:[(0,l.jsx)("option",{value:"US",children:"United States"}),(0,l.jsx)("option",{value:"GB",children:"United Kingdom"}),(0,l.jsx)("option",{value:"FR",children:"France"}),(0,l.jsx)("option",{value:"DE",children:"Germany"}),(0,l.jsx)("option",{value:"CA",children:"Canada"}),(0,l.jsx)("option",{value:"IT",children:"Italy"}),(0,l.jsx)("option",{value:"JP",children:"Japan"}),(0,l.jsx)("option",{value:"CN",children:"China"}),(0,l.jsx)("option",{value:"AU",children:"Australia"})]}),(0,l.jsxs)("optgroup",{label:"All Countries/Regions",children:[(0,l.jsx)("option",{value:"AF",children:"Afghanistan"}),(0,l.jsx)("option",{value:"AX",children:"Aland Islands"}),(0,l.jsx)("option",{value:"AL",children:"Albania"}),(0,l.jsx)("option",{value:"DZ",children:"Algeria"}),(0,l.jsx)("option",{value:"AS",children:"American Samoa"}),(0,l.jsx)("option",{value:"AD",children:"Andorra"}),(0,l.jsx)("option",{value:"AO",children:"Angola"}),(0,l.jsx)("option",{value:"AI",children:"Anguilla"}),(0,l.jsx)("option",{value:"AQ",children:"Antarctica"}),(0,l.jsx)("option",{value:"AG",children:"Antigua And Barbuda"}),(0,l.jsx)("option",{value:"AR",children:"Argentina"}),(0,l.jsx)("option",{value:"AM",children:"Armenia"}),(0,l.jsx)("option",{value:"AW",children:"Aruba"}),(0,l.jsx)("option",{value:"AU",children:"Australia"}),(0,l.jsx)("option",{value:"AT",children:"Austria"}),(0,l.jsx)("option",{value:"AZ",children:"Azerbaijan"}),(0,l.jsx)("option",{value:"BS",children:"Bahamas"}),(0,l.jsx)("option",{value:"BH",children:"Bahrain"}),(0,l.jsx)("option",{value:"BD",children:"Bangladesh"}),(0,l.jsx)("option",{value:"BB",children:"Barbados"}),(0,l.jsx)("option",{value:"BY",children:"Belarus"}),(0,l.jsx)("option",{value:"BE",children:"Belgium"}),(0,l.jsx)("option",{value:"BZ",children:"Belize"}),(0,l.jsx)("option",{value:"BJ",children:"Benin"}),(0,l.jsx)("option",{value:"BM",children:"Bermuda"}),(0,l.jsx)("option",{value:"BT",children:"Bhutan"}),(0,l.jsx)("option",{value:"BO",children:"Bolivia"}),(0,l.jsx)("option",{value:"BQ",children:"Bonaire, Sint Eustatius and Saba"}),(0,l.jsx)("option",{value:"BA",children:"Bosnia And Herzegovina"}),(0,l.jsx)("option",{value:"BW",children:"Botswana"}),(0,l.jsx)("option",{value:"BV",children:"Bouvet Island"}),(0,l.jsx)("option",{value:"BR",children:"Brazil"}),(0,l.jsx)("option",{value:"IO",children:"British Indian Ocean Territory"}),(0,l.jsx)("option",{value:"BN",children:"Brunei Darussalam"}),(0,l.jsx)("option",{value:"BG",children:"Bulgaria"}),(0,l.jsx)("option",{value:"BF",children:"Burkina Faso"}),(0,l.jsx)("option",{value:"BI",children:"Burundi"}),(0,l.jsx)("option",{value:"KH",children:"Cambodia"}),(0,l.jsx)("option",{value:"CM",children:"Cameroon"}),(0,l.jsx)("option",{value:"CA",children:"Canada"}),(0,l.jsx)("option",{value:"CV",children:"Cape Verde"}),(0,l.jsx)("option",{value:"KY",children:"Cayman Islands"}),(0,l.jsx)("option",{value:"CF",children:"Central African Republic"}),(0,l.jsx)("option",{value:"TD",children:"Chad"}),(0,l.jsx)("option",{value:"CL",children:"Chile"}),(0,l.jsx)("option",{value:"CN",children:"China"}),(0,l.jsx)("option",{value:"CX",children:"Christmas Island"}),(0,l.jsx)("option",{value:"CC",children:"Cocos (Keeling) Islands"}),(0,l.jsx)("option",{value:"CO",children:"Colombia"}),(0,l.jsx)("option",{value:"KM",children:"Comoros"}),(0,l.jsx)("option",{value:"CG",children:"Congo"}),(0,l.jsx)("option",{value:"CD",children:"Congo, The Democratic Republic Of The"}),(0,l.jsx)("option",{value:"CK",children:"Cook Islands"}),(0,l.jsx)("option",{value:"CR",children:"Costa Rica"}),(0,l.jsx)("option",{value:"CI",children:"Cote D'Ivoire"}),(0,l.jsx)("option",{value:"HR",children:"Croatia"}),(0,l.jsx)("option",{value:"CU",children:"Cuba"}),(0,l.jsx)("option",{value:"CW",children:"Curacao"}),(0,l.jsx)("option",{value:"CY",children:"Cyprus"}),(0,l.jsx)("option",{value:"CZ",children:"Czech Republic"}),(0,l.jsx)("option",{value:"DK",children:"Denmark"}),(0,l.jsx)("option",{value:"DJ",children:"Djibouti"}),(0,l.jsx)("option",{value:"DM",children:"Dominica"}),(0,l.jsx)("option",{value:"DO",children:"Dominican Republic"}),(0,l.jsx)("option",{value:"EC",children:"Ecuador"}),(0,l.jsx)("option",{value:"EG",children:"Egypt"}),(0,l.jsx)("option",{value:"SV",children:"El Salvador"}),(0,l.jsx)("option",{value:"GQ",children:"Equatorial Guinea"}),(0,l.jsx)("option",{value:"ER",children:"Eritrea"}),(0,l.jsx)("option",{value:"EE",children:"Estonia"}),(0,l.jsx)("option",{value:"ET",children:"Ethiopia"}),(0,l.jsx)("option",{value:"FK",children:"Falkland Islands (Malvinas)"}),(0,l.jsx)("option",{value:"FO",children:"Faroe Islands"}),(0,l.jsx)("option",{value:"FJ",children:"Fiji"}),(0,l.jsx)("option",{value:"FI",children:"Finland"}),(0,l.jsx)("option",{value:"FR",children:"France"}),(0,l.jsx)("option",{value:"GF",children:"French Guiana"}),(0,l.jsx)("option",{value:"PF",children:"French Polynesia"}),(0,l.jsx)("option",{value:"GA",children:"Gabon"}),(0,l.jsx)("option",{value:"GM",children:"Gambia"}),(0,l.jsx)("option",{value:"GE",children:"Georgia"}),(0,l.jsx)("option",{value:"DE",children:"Germany"}),(0,l.jsx)("option",{value:"GH",children:"Ghana"}),(0,l.jsx)("option",{value:"GI",children:"Gibraltar"}),(0,l.jsx)("option",{value:"GR",children:"Greece"}),(0,l.jsx)("option",{value:"GL",children:"Greenland"}),(0,l.jsx)("option",{value:"GD",children:"Grenada"}),(0,l.jsx)("option",{value:"GP",children:"Guadeloupe"}),(0,l.jsx)("option",{value:"GU",children:"Guam"}),(0,l.jsx)("option",{value:"GT",children:"Guatemala"}),(0,l.jsx)("option",{value:"GG",children:"Guernsey"}),(0,l.jsx)("option",{value:"GN",children:"Guinea"}),(0,l.jsx)("option",{value:"GW",children:"Guinea-Bissau"}),(0,l.jsx)("option",{value:"GY",children:"Guyana"}),(0,l.jsx)("option",{value:"HT",children:"Haiti"}),(0,l.jsx)("option",{value:"HM",children:"Heard Island And McDonald Islands"}),(0,l.jsx)("option",{value:"HN",children:"Honduras"}),(0,l.jsx)("option",{value:"HK",children:"Hong Kong SAR, China"}),(0,l.jsx)("option",{value:"HU",children:"Hungary"}),(0,l.jsx)("option",{value:"IS",children:"Iceland"}),(0,l.jsx)("option",{value:"IN",children:"India"}),(0,l.jsx)("option",{value:"ID",children:"Indonesia"}),(0,l.jsx)("option",{value:"IR",children:"Iran (Islamic Republic Of)"}),(0,l.jsx)("option",{value:"IQ",children:"Iraq"}),(0,l.jsx)("option",{value:"IE",children:"Ireland"}),(0,l.jsx)("option",{value:"IM",children:"Isle Of Man"}),(0,l.jsx)("option",{value:"IL",children:"Israel"}),(0,l.jsx)("option",{value:"JM",children:"Jamaica"}),(0,l.jsx)("option",{value:"JP",children:"Japan"}),(0,l.jsx)("option",{value:"JE",children:"Jersey"}),(0,l.jsx)("option",{value:"JO",children:"Jordan"}),(0,l.jsx)("option",{value:"KZ",children:"Kazakhstan"}),(0,l.jsx)("option",{value:"KE",children:"Kenya"}),(0,l.jsx)("option",{value:"KI",children:"Kiribati"}),(0,l.jsx)("option",{value:"KP",children:"Korea, Democratic People's Republic"}),(0,l.jsx)("option",{value:"KR",children:"Korea, Republic Of"}),(0,l.jsx)("option",{value:"KW",children:"Kuwait"}),(0,l.jsx)("option",{value:"KG",children:"Kyrgyzstan"}),(0,l.jsx)("option",{value:"LA",children:"Lao People's Democratic Republic"}),(0,l.jsx)("option",{value:"LV",children:"Latvia"}),(0,l.jsx)("option",{value:"LB",children:"Lebanon"}),(0,l.jsx)("option",{value:"LS",children:"Lesotho"}),(0,l.jsx)("option",{value:"LR",children:"Liberia"}),(0,l.jsx)("option",{value:"LY",children:"Libya"}),(0,l.jsx)("option",{value:"LI",children:"Liechtenstein"}),(0,l.jsx)("option",{value:"LT",children:"Lithuania"}),(0,l.jsx)("option",{value:"LU",children:"Luxembourg"}),(0,l.jsx)("option",{value:"MO",children:"Macao SAR, China"}),(0,l.jsx)("option",{value:"MG",children:"Madagascar"}),(0,l.jsx)("option",{value:"MW",children:"Malawi"}),(0,l.jsx)("option",{value:"MY",children:"Malaysia"}),(0,l.jsx)("option",{value:"MV",children:"Maldives"}),(0,l.jsx)("option",{value:"ML",children:"Mali"}),(0,l.jsx)("option",{value:"MT",children:"Malta"}),(0,l.jsx)("option",{value:"MH",children:"Marshall Islands"}),(0,l.jsx)("option",{value:"MQ",children:"Martinique"}),(0,l.jsx)("option",{value:"MR",children:"Mauritania"}),(0,l.jsx)("option",{value:"MU",children:"Mauritius"}),(0,l.jsx)("option",{value:"YT",children:"Mayotte"}),(0,l.jsx)("option",{value:"MX",children:"Mexico"}),(0,l.jsx)("option",{value:"FM",children:"Micronesia, Federated States Of"}),(0,l.jsx)("option",{value:"MD",children:"Moldova, Republic Of"}),(0,l.jsx)("option",{value:"MC",children:"Monaco"}),(0,l.jsx)("option",{value:"MN",children:"Mongolia"}),(0,l.jsx)("option",{value:"ME",children:"Montenegro"}),(0,l.jsx)("option",{value:"MS",children:"Montserrat"}),(0,l.jsx)("option",{value:"MA",children:"Morocco"}),(0,l.jsx)("option",{value:"MZ",children:"Mozambique"}),(0,l.jsx)("option",{value:"MM",children:"Myanmar"}),(0,l.jsx)("option",{value:"NA",children:"Namibia"}),(0,l.jsx)("option",{value:"NR",children:"Nauru"}),(0,l.jsx)("option",{value:"NP",children:"Nepal"}),(0,l.jsx)("option",{value:"NL",children:"Netherlands"}),(0,l.jsx)("option",{value:"NC",children:"New Caledonia"}),(0,l.jsx)("option",{value:"NZ",children:"New Zealand"}),(0,l.jsx)("option",{value:"NI",children:"Nicaragua"}),(0,l.jsx)("option",{value:"NE",children:"Niger"}),(0,l.jsx)("option",{value:"NG",children:"Nigeria"}),(0,l.jsx)("option",{value:"NU",children:"Niue"}),(0,l.jsx)("option",{value:"NF",children:"Norfolk Island"}),(0,l.jsx)("option",{value:"MK",children:"North Macedonia, Republic of"}),(0,l.jsx)("option",{value:"MP",children:"Northern Mariana Islands"}),(0,l.jsx)("option",{value:"NO",children:"Norway"}),(0,l.jsx)("option",{value:"OM",children:"Oman"}),(0,l.jsx)("option",{value:"PK",children:"Pakistan"}),(0,l.jsx)("option",{value:"PW",children:"Palau"}),(0,l.jsx)("option",{value:"PS",children:"Palestinian Territory, Occupied"}),(0,l.jsx)("option",{value:"PA",children:"Panama"}),(0,l.jsx)("option",{value:"PG",children:"Papua New Guinea"}),(0,l.jsx)("option",{value:"PY",children:"Paraguay"}),(0,l.jsx)("option",{value:"PE",children:"Peru"}),(0,l.jsx)("option",{value:"PH",children:"Philippines"}),(0,l.jsx)("option",{value:"PN",children:"Pitcairn"}),(0,l.jsx)("option",{value:"PL",children:"Poland"}),(0,l.jsx)("option",{value:"PT",children:"Portugal"}),(0,l.jsx)("option",{value:"PR",children:"Puerto Rico"}),(0,l.jsx)("option",{value:"QA",children:"Qatar"}),(0,l.jsx)("option",{value:"RE",children:"Reunion"}),(0,l.jsx)("option",{value:"RO",children:"Romania"}),(0,l.jsx)("option",{value:"RU",children:"Russian Federation"}),(0,l.jsx)("option",{value:"RW",children:"Rwanda"}),(0,l.jsx)("option",{value:"SH",children:"Saint Helena"}),(0,l.jsx)("option",{value:"KN",children:"Saint Kitts And Nevis"}),(0,l.jsx)("option",{value:"LC",children:"Saint Lucia"}),(0,l.jsx)("option",{value:"MF",children:"Saint Martin (French Part)"}),(0,l.jsx)("option",{value:"PM",children:"Saint Pierre And Miquelon"}),(0,l.jsx)("option",{value:"VC",children:"Saint Vincent And The Grenadines"}),(0,l.jsx)("option",{value:"WS",children:"Samoa"}),(0,l.jsx)("option",{value:"SM",children:"San Marino"}),(0,l.jsx)("option",{value:"ST",children:"Sao Tome And Principe"}),(0,l.jsx)("option",{value:"SA",children:"Saudi Arabia"}),(0,l.jsx)("option",{value:"SN",children:"Senegal"}),(0,l.jsx)("option",{value:"RS",children:"Serbia"}),(0,l.jsx)("option",{value:"SC",children:"Seychelles"}),(0,l.jsx)("option",{value:"SL",children:"Sierra Leone"}),(0,l.jsx)("option",{value:"SG",children:"Singapore"}),(0,l.jsx)("option",{value:"SX",children:"Sint Maarten"}),(0,l.jsx)("option",{value:"SK",children:"Slovakia"}),(0,l.jsx)("option",{value:"SI",children:"Slovenia"}),(0,l.jsx)("option",{value:"SB",children:"Solomon Islands"}),(0,l.jsx)("option",{value:"SO",children:"Somalia"}),(0,l.jsx)("option",{value:"ZA",children:"South Africa"}),(0,l.jsx)("option",{value:"GS",children:"South Georgia And The South Sandwich Islands"}),(0,l.jsx)("option",{value:"SS",children:"South Sudan"}),(0,l.jsx)("option",{value:"ES",children:"Spain"}),(0,l.jsx)("option",{value:"IC",children:"Canary Islands (Spain)"}),(0,l.jsx)("option",{value:"LK",children:"Sri Lanka"}),(0,l.jsx)("option",{value:"SD",children:"Sudan"}),(0,l.jsx)("option",{value:"SR",children:"Suriname"}),(0,l.jsx)("option",{value:"SJ",children:"Svalbard And Jan Mayen"}),(0,l.jsx)("option",{value:"SZ",children:"Swaziland"}),(0,l.jsx)("option",{value:"SE",children:"Sweden"}),(0,l.jsx)("option",{value:"CH",children:"Switzerland"}),(0,l.jsx)("option",{value:"SY",children:"Syrian Arab Republic"}),(0,l.jsx)("option",{value:"TW",children:"Taiwan"}),(0,l.jsx)("option",{value:"TJ",children:"Tajikistan"}),(0,l.jsx)("option",{value:"TZ",children:"Tanzania, United Republic Of"}),(0,l.jsx)("option",{value:"TF",children:"Territory of the French Southern and Antarctic Lands"}),(0,l.jsx)("option",{value:"TH",children:"Thailand"}),(0,l.jsx)("option",{value:"TL",children:"Timor-Leste"}),(0,l.jsx)("option",{value:"TG",children:"Togo"}),(0,l.jsx)("option",{value:"TK",children:"Tokelau"}),(0,l.jsx)("option",{value:"TO",children:"Tonga"}),(0,l.jsx)("option",{value:"TT",children:"Trinidad And Tobago"}),(0,l.jsx)("option",{value:"TN",children:"Tunisia"}),(0,l.jsx)("option",{value:"TR",children:"Turkey"}),(0,l.jsx)("option",{value:"TM",children:"Turkmenistan"}),(0,l.jsx)("option",{value:"TC",children:"Turks And Caicos Islands"}),(0,l.jsx)("option",{value:"TV",children:"Tuvalu"}),(0,l.jsx)("option",{value:"UG",children:"Uganda"}),(0,l.jsx)("option",{value:"UA",children:"Ukraine"}),(0,l.jsx)("option",{value:"AE",children:"United Arab Emirates"}),(0,l.jsx)("option",{value:"GB",children:"United Kingdom"}),(0,l.jsx)("option",{value:"US",children:"United States"}),(0,l.jsx)("option",{value:"UM",children:"United States Minor Outlying Islands"}),(0,l.jsx)("option",{value:"UY",children:"Uruguay"}),(0,l.jsx)("option",{value:"UZ",children:"Uzbekistan"}),(0,l.jsx)("option",{value:"VU",children:"Vanuatu"}),(0,l.jsx)("option",{value:"VA",children:"Vatican City State (Holy See)"}),(0,l.jsx)("option",{value:"VE",children:"Venezuela"}),(0,l.jsx)("option",{value:"VN",children:"Viet Nam"}),(0,l.jsx)("option",{value:"VG",children:"Virgin Islands (British)"}),(0,l.jsx)("option",{value
1:"VI",children:"Virgin Islands (U.S.)"}),(0,l.jsx)("option",{value:"WF",children:"Wallis And Futuna"}),(0,l.jsx)("option",{value:"EH",children:"Western Sahara"}),(0,l.jsx)("option",{value:"YE",children:"Yemen"}),(0,l.jsx)("option",{value:"ZM",children:"Zambia"}),(0,l.jsx)("option",{value:"ZW",children:"Zimbabwe"})]})]})]})})})},eE=e=>{let{page:n,country:i}=e,o=(0,a._)();return(0,l.jsxs)(r.W,{...o?{py:"sm"}:{},children:[(0,l.jsx)(s.Z,{title:n.seo?.title,description:n.seo?.description}),(0,l.jsxs)(t.x,{children:[(0,l.jsx)(eR.l,{}),n.showSignInForUpgradesPrompt?(0,l.jsx)(eG,{}):null,(0,l.jsxs)(t.x,{mb:n.content?.length?"lg":"0",children:[n.content?.map(e=>l.jsx(ek,{upgradePage:n.showSignInForUpgradesPrompt,country:i,...e},e.id)),(0,l.jsx)(eN,{country:i})]})]})]})}},78635:function(e){e.exports={activeMultiProductLabel:"shop_activeMultiProductLabel__OuYSR"}}}]);
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.