1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5397],{5532:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup/upgrade",function(){return t(9532)}])},26526:function(e,l,t){"use strict";var r=t(85893),a=t(67294);l.Z=e=>{let{as:l,value:t,...n}=e,{style:s="long",type:i="conjunction",conjunction:c="and"}=n;if("long"!==s)throw Error('Style "'.concat(s,'"" is not yet supported'));if("conjunction"!==i)throw Error('List type "'.concat(i,'" is not yet supported'));return(0,a.createElement)(l||a.Fragment,{},t.reduce((e,l,n,s)=>(t.length>1&&n===t.length-1&&e.push((0,r.jsxs)(a.Fragment,{children:[s.length>2?",":""," ",c," "]},"".concat(n,"-separator"))),e.push((0,r.jsx)(a.Fragment,{children:l},n)),n<t.length-2&&e.push((0,r.jsx)(a.Fragment,{children:", "},"".concat(n,"-separator"))),e),[]))}},61508:function(e,l,t){"use strict";t.d(l,{GX:function(){return _},_M:function(){return N},cU:function(){return y},k4:function(){return f},qo:function(){return b}});var r=t(85893),a=t(67294),n=t(23684),s=t(26526),i=t(98626),c=t(14432),d=t(907),o=t(32858),u=t(32724),p=t(92285),m=t(7195),x=t(81768),h=t(76411),g=t(42781);let f=(0,o.j)(["web:signup"])(()=>(0,r.jsxs)("span",{"data-testid":"premium-pill-desc",children:[(0,r.jsx)(u.T,{id:"web:signup:plan_selector_perk_bundle_subheader"}),(0,r.jsx)(y,{}),(0,r.jsx)("div",{className:"font-medium",children:(0,r.jsx)(b,{excludeIds:["curiosity"]})})]})),j=e=>{let{partner:l}=e;return(0,r.jsx)("a",{className:"text-primary",href:l.link||"#",target:"_blank",children:l.name})},b=e=>{let{excludeIds:l=[],isLink:t}=e,{partnerData:i}=(0,n.o)(),[c,d]=(0,a.useState)([]);return((0,a.useEffect)(()=>{i&&d(null==i?void 0:i.filter(e=>!l.includes(e.id)))},[i]),c.length)?(0,r.jsx)(s.Z,{value:c.map(e=>t?(0,r.jsx)(j,{partner:e}):(0,r.jsx)(r.Fragment,{children:e.name}))}):null},v=()=>(0,r.jsx)(i.Z,{className:"inline-block stroke-current w-2 tablet:w-4"}),_=e=>{let{imgWidth:l=160,rows:t=2,excludeIds:s=[]}=e,{partnerImages:i}=(0,n.D)({imgWidth:l,excludeIds:s}),[o,u]=(0,a.useState)([]),{minWidth:p}=(0,d.k)();return(0,a.useEffect)(()=>{if(i){let e=Math.ceil(i.length/t);u(Array(t).fill().map(()=>i.splice(0,e)))}},[i]),(0,r.jsx)("div",{className:"flex flex-col gap-4 items-center",children:null==o?void 0:o.map((e,l)=>(0,r.jsx)("div",{className:"flex gap-2",children:null==e?void 0:e.map((e,l)=>(0,r.jsxs)("div",{className:" flex shrink-0 items-center gap-2",children:[l>0&&(0,r.jsx)("div",{children:(0,r.jsx)(v,{})}),(0,r.jsx)("div",{children:(0,r.jsx)("img",{className:"h-6 tablet:h-8 object-scale-down",style:{maxWidth:p(c.ZP.tablet)?"8rem":"5rem"},src:e.imgUrl,alt:e.alt})})]},l))},l))})},y=(0,o.j)("web:upgrade")(e=>{let{token:l=null}=e,{partnerData:t}=(0,n.o)(),[i,c]=(0,a.useState)(!1);return(0,r.jsxs)("span",{children:[(0,r.jsx)("button",{type:"button","data-testid":"partner-disclaimer-token-button",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),c(!0)},children:l||(0,r.jsxs)("div",{className:"inline-block relative text-primary font-bold align-middle text-2xl leading-none",children:["*",(0,r.jsx)("div",{className:"absolute w-full border-b border-primary top-1/2"})]})}),(0,r.jsx)(p.Z,{showDialog:i,onClose:()=>c(!1),children:(0,r.jsxs)("div",{"data-testid":"partner-disclaimer",className:"flex flex-col gap-4",children:[(0,r.jsx)(x.x,{variant:"xs",children:(0,r.jsx)(u.T,{id:"web:upgrade:page_disclaimer",values:{link:(0,r.jsx)(h.Z,{href:"/terms#content-bundles-terms",target:"_blank",children:(0,r.jsx)(u.T,{id:"web:shared:here"})})}})}),null==t?void 0:t.filter(e=>{var l;return null==e?void 0:null===(l=e.allowed_countries)||void 0===l?void 0:l.length}).map((e,l)=>(0,r.jsx)(x.x,{variant:"xs",children:(0,r.jsx)(u.T,{id:"web:upgrade:geo_restricted",values:{name:(0,r.jsx)("span",{className:"font-bold",children:e.name}),geoList:(0,r.jsx)(s.Z,{value:e.allowed_countries})}})},l))]})})]})}),N=e=>{let{variants:l=[],plan:t,partnerData:n}=e,s="US"===(0,g.YB)().key,i=(0,a.useMemo)(()=>{if(n)return{amount:n.reduce((e,l)=>e+l.original_annual_price.amount,0)/100,currency:n[0].original_annual_price.currency}},[n]);return n&&t&&i?l.includes("alt")?(0,r.jsx)(u.T,{id:"web:signup:partner_poster_signup_banner_value_subheader_alt",values:{numServices:n.length,disclaimerToken:(0,r.jsx)(y,{}),totalValuePrice:(0,r.jsx)(m.Z,{maximumFractionDigits:0,minimumFractionDigits:0,value:i.amount,currencyDisplay:"symbol",style:"currency",currency:i.currency})}}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.T,{id:"web:signup:partner_poster_signup_banner_subheader",values:{numServices:n.length,disclaimerToken:(0,r.jsx)(y,{})}}),(0,r.jsx)("br",{}),s&&(0,r.jsx)(u.T,{id:"web:signup:partner_poster_signup_banner_value_subheader",values:{totalValuePrice:(0,r.jsx)(m.Z,{maximumFractionDigits:0,minimumFractionDigits:0,value:i.amount,currencyDisplay:"symbol",style:"currency",currency:i.currency}),bundledPrice:(0,r.jsxs)("span",{className:"font-semibold",children:[t.price.discounted&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"inline-block strikethrough-horizontal text-light-4",children:(0,r.jsx)(m.Z,{value:t.price.original_price.amount,currencyDisplay:"symbol",style:"currency",currency:t.price.original_price.currency})}),"\xa0"]}),(0,r.jsx)(m.Z,{value:t.price.sale_price.amount,currencyDisplay:"symbol",style:"currency",currency:t.price.sale_price.currency})]})}})]}):null}},9532:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return z}});var r=t(85893),a=t(11163),n=t(67294),s=t(27746),i=t(24965),c=t(61508),d=t(81768),o=t(1107),u=t(42781),p=t(37362),m=t
1(15733),x=t.n(m),h=t(32724),g=t(52424),f=t(81860),j=e=>{let{plans:l,onChange:t,plansToDisplay:a="all",hidePlanPerks:s=!1,hideMonthly:i=!1,footer:c}=e,o=(0,n.useMemo)(()=>l?l.filter(e=>"standard"===a?i?"HDS_12"===e.id:"HDS"===e.id||"HDS_12"===e.id:"smart_bundle"===a?i?"4KS_12"===e.id:"4KS"===e.id||"4KS_12"===e.id:!i||"4KS_12"===e.id||"HDS_12"===e.id):[],[i,l,a]),u=l[0].plan.perks,p=(0,n.useMemo)(()=>{if(l){let e={},t=l.filter(e=>"HDS"===e.id||"HDS_12"===e.id);if(t.length){let l=12*parseFloat(t.find(e=>"HDS"===e.id).price.sale_price.amount),r=parseFloat(t.find(e=>"HDS_12"===e.id).price.sale_price.amount);e.standard=Math.round(100-r/l*100)}let r=l.filter(e=>"4KS"===e.id||"4KS_12"===e.id);if(r.length){let l=12*parseFloat(r.find(e=>"4KS"===e.id).price.sale_price.amount),t=parseFloat(r.find(e=>"4KS_12"===e.id).price.sale_price.amount);e.smart_bundle=Math.round(100-t/l*100)}return e}},[l]);return(0,r.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-6 tablet:gap-10",children:["standard"===a||"smart_bundle"===a?(0,r.jsx)("div",{className:"w-full grid grid-cols-2 tablet:grid-cols-2 gap-2 laptop:gap-3",role:"radiogroup",children:o.map(e=>(0,r.jsx)(b,{plan:e,planSavings:p,onChangeHandler:t},e.id))}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-2xl pb-2",children:"Curiosity Stream"}),(0,r.jsx)("div",{className:"w-full grid grid-cols-2 tablet:grid-cols-2 gap-2 laptop:gap-3",role:"radiogroup",children:o.map(e=>"HDS"===e.id||"HDS_12"===e.id?(0,r.jsx)(b,{plan:e,planSavings:p,onChangeHandler:t},e.id):null)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-2xl pb-2",children:"Smart Bundle"}),(0,r.jsx)("div",{className:"w-full grid grid-cols-2 tablet:grid-cols-2 gap-2 laptop:gap-3",role:"radiogroup",children:o.map(e=>{if("4KS"===e.id||"4KS_12"===e.id)return(0,r.jsx)(b,{plan:e,planSavings:p,onChangeHandler:t},e.id)})})]})]}),!s&&(0,r.jsx)("div",{children:(0,r.jsx)("ul",{className:x()["plan-card-perks"],children:null==u?void 0:u.map((e,l)=>(0,r.jsx)("li",{children:(0,r.jsx)(d.x,{variant:"l",children:e})},l))})})]}),(0,r.jsx)("div",{className:"w-full tablet:max-w-xl",children:c})]})};let b=e=>{let{plan:l,onChangeHandler:t,planSavings:a}=e,n=12===l.schedule.billing_cycle,i=l.price.discounted,c=n?(0,g.Mf)(l):void 0;return(0,r.jsx)("div",{className:"flex flex-col items-center text-xl w-full tablet:w-auto tablet:min-w-[18rem]",children:(0,r.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),t(l.id)},className:(0,o.b)("flex flex-col grow p-4 justify-between w-full rounded-lg border-2 border-light-1 border-opacity-60 hover:border-primary hover:border-opacity-100 ",n?"from-blue-6 to-purple-1 bg-gradient-to-br":"bg-elevated "),"data-testid":"plan-selector-card-".concat(l.id),children:[(0,r.jsx)("div",{className:"w-full flex justify-between",children:(0,r.jsx)("div",{className:"text-center tablet:mt-2",children:(0,r.jsx)(s.X,{variant:"m",as:"p",fontWeight:"normal",children:l.schedule.billing_cycle_label})})}),n&&(0,r.jsx)("span",{className:"inline-block bg-blue-8 text-dark-1 px-2 rounded-lg leading-none font-extrabold mt-1",children:(0,r.jsx)(d.x,{variant:"xs",as:"span",children:(0,r.jsx)(h.T,{id:"web:signup:plans_savings_message",values:{savings:"".concat("HDS_12"===l.id?a.standard:a.smart_bundle,"%")}})})}),(0,r.jsxs)("div",{className:"flex flex-col tablet:flex-row mt-3 tablet:mt-5",children:[(0,r.jsx)("div",{className:(0,o.b)("flex items-center",i&&"strikethrough-diagonal text-light-4"),children:(0,r.jsx)(v,{amount:l.price.original_price.amount,currency:l.price.original_price.currency,cycle:l.schedule.term})}),i&&(0,r.jsx)("div",{className:"flex items-center tablet:ml-2",children:(0,r.jsx)(v,{amount:l.price.sale_price.amount,currency:l.price.sale_price.currency,cycle:l.schedule.term})})]}),n&&c&&(0,r.jsx)("div",{className:"text-left pt-1 tablet:pt-2 text-xs tablet:text-base",children:(0,r.jsx)(h.T,{id:"web:signup:plans_price_callout",values:{price:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.J,{value:c.sale_price.amount,currency:c.sale_price.currency}),"/",(0,r.jsx)(h.T,{id:"web:shared:price_term_month"})]})}})})]})},l.id)},v=e=>{let{amount:l,currency:t,cycle:a}=e,i=(0,u.YB)(),c=(0,n.useMemo)(()=>(0,p.u)(l,t,i.locale),[l,t,i.locale]);return(0,r.jsxs)(r.Fragment,{children:[!i.localCurrencySupported&&(0,r.jsx)("span",{className:"leading-none text-xs inline-block uppercase",children:t}),(0,r.jsx)("div",{className:"mx-1",children:(0,r.jsxs)(s.X,{variant:"l",as:"p",fontWeight:"normal",children:[c.currency,c.integer]})}),(0,r.jsxs)("div",{className:"flex flex-col items-start leading-none",children:[(0,r.jsx)(d.x,{variant:"s",children:"".concat(c.decimal).concat(c.fraction)}),(0,r.jsxs)(d.x,{variant:"s",children:["/",a]})]})]})};var _=t(32858),y=t(97633),N=t(59983),w=t(23684),k=t(48974),S=t(907),D=t(14432);let F=e=>{let{align:l,label:t,disabled:a,onClick:n}=e;return(0,r.jsx)("div",{className:(0,o.b)("absolute z-10 top-0 items-center justify-center transition-opacity duration-500 h-full laptop:flex transform w-auto",a&&"opacity-0 pointer-events-none","left"===l&&"laptop:-translate-x-full left-0 right-auto","right"===l&&"laptop:translate-x-full right-0 left-auto"),children:(0,r.jsx)("button",{"aria-label":t,disabled:a,className:(0,o.b)("block h-full text-light text-xl laptop:text-3xl from-black to-transparent laptop:bg-none","left"===l&&"bg-gradient-to-r pl-2 pr-6","right"===l&&"bg-gradient-to-l pr-2 pl-6"),onClick:n,children:(0,r.jsx)(N.J,{id:{left:"chevron-left",right:"chevron-right"}[l]})})})},C=e=>{let{currentIndex:l,max:t,min:a=0,onChange:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{disabled:l<=a,align:"left",label:"Previous slide",onClick:()=>n(Math.max(0,l-1))}),(0,r.jsx)(F,{disabled:l>=t,align:"right",label:"Next slide",onClick:()=>n(Math.min(t,l+1))})]})},H=(0,_.j)("web:signup")(e=>{var l,t,a;let{isPriceHidden:i,plans:d}
1=e,[u,p]=(0,n.useState)(-1),{partnerData:m}=(0,w.o)();(0,n.useEffect)(()=>{(null==m?void 0:m.length)&&p(0)},[m]);let x=null==m?void 0:m[u],h=null==d?void 0:d.find(e=>e.bundle.premium&&"year"===e.schedule.term),{minWidth:g}=(0,S.k)();return(0,r.jsx)("div",{className:"tablet:flex justify-center px-1/20 py-10 tablet:py-20",children:(0,r.jsxs)("div",{className:"flex flex-col max-w-lg laptop:max-w-6xl relative",children:[(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)(s.X,{as:"h3",variant:"m","aria-hidden":i||!h||!m,children:(0,r.jsx)("span",{className:i?"invisible":"","data-testid":"price-subheader",children:(0,r.jsx)(c._M,{partnerData:m,plan:h})})})}),x&&(0,r.jsxs)("div",{className:"mt-10 tablet:mt-20",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"hidden laptop:block",children:(0,r.jsx)(C,{currentIndex:u,onChange:p,max:m.length-1})}),(0,r.jsxs)("div",{className:"grid laptop:grid-cols-2 gap-4 laptop:gap-12 items-center",children:[(0,r.jsxs)("div",{className:"tablet:content-16-9 relative w-full rounded-sm overflow-hidden",children:[(0,r.jsx)("div",{className:"laptop:hidden",children:(0,r.jsx)(C,{currentIndex:u,onChange:p,max:m.length-1})}),(0,r.jsx)("div",{className:"tablet:hidden flex justify-center items-center",children:(0,r.jsx)("img",{className:"w-40 laptop:w-56 h-10 laptop:h-14 object-scale-down",src:null===(l=x.images)||void 0===l?void 0:l.filter(e=>"logo"===e.purpose).map(e=>(0,k.n)(e,{width:g(D.ZP.tablet)?224:160}))[0],alt:x.name})}),(0,r.jsx)("img",{className:"hidden tablet:block",src:null===(t=x.images)||void 0===t?void 0:t.filter(e=>"thumbnail"===e.purpose).map(e=>(0,k.n)(e,{width:550}))[0],alt:x.name})]}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("img",{src:null===(a=x.images)||void 0===a?void 0:a.filter(e=>"logo"===e.purpose).map(e=>(0,k.n)(e,{width:130}))[0],alt:x.name,className:"hidden laptop:block mb-6"}),(0,r.jsx)(y.Z,{as:"h3",className:"text-lg laptop:text-2xl",fontWeight:{base:"normal",laptop:"medium"},children:x.tagline}),(0,r.jsx)("div",{className:"line-clamp-4 laptop:mt-2",style:{lineHeight:"2.5ex",height:"12.5ex"},children:(0,r.jsx)(y.Z,{as:"p",className:"text-xs laptop:text-lg",children:x.summary})})]})]})]}),(0,r.jsx)("div",{className:"flex flex-wrap justify-center mt-1 tablet:mt-20",children:null==m?void 0:m.map((e,l)=>(0,r.jsx)("button",{className:"block p-2 group cursor-pointer","aria-label":e.name,onClick:()=>p(l),children:(0,r.jsx)("span",{className:(0,o.b)("block rounded-full border border-primary w-3 h-3 transition-colors duration-250",u===l?"bg-primary":"group-hover:bg-dark-4")})},e.name))})]})]})})});var M=t(17287),P=t(30591),T=t(86957),Z=t(87679),E=t(86361),K=t(66095);let X=()=>{(0,T.z$)();let e=(0,a.useRouter)(),l=(0,u.YB)(),{isLoggedIn:t}=(0,K.aF)(),{coupon:i}=(0,Z.ZP)(),{fetching:d,plans:o,coupons:p}=(0,g.xn)({type:"new",coupon:null==i?void 0:i.code}),[m,x]=(0,n.useState)(12),[h,f]=(0,n.useState)(void 0),[b,v]=(0,E.N$)("cs_funnel");return(0,n.useMemo)(()=>t?2:1,[t]),(0,n.useMemo)(()=>o?o.filter(e=>"HDS"===e.id||"HDS_12"===e.id):[],[o,m]),(0,n.useEffect)(()=>{(null==p?void 0:p.length)&&f(p.find(e=>e.applied))},[p]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"w-full flex flex-col justify-center items-center px-4",children:[(0,r.jsx)("div",{className:"mb-12 py-4 w-full laptop:max-w-5xl","data-testid":"signup-step-1-container",children:(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("img",{className:"h-8",src:"/premium-gemstone.png","aria-hidden":!0}),(0,r.jsxs)("div",{children:[(0,r.jsx)(s.X,{variant:"l",as:"h2",fontWeight:"semibold",children:l.formatMessage({id:"web:upgrade:perk_upgrade_cta"})}),(0,r.jsx)("div",{className:"text-light-2 text-base laptop:text-xl",children:l.formatMessage({id:"web:upgrade:perk_banner_subheader"})})]})]})})}),(0,r.jsx)("div",{children:l.formatMessage({id:"web:upgrade:perks_partners_desc"},{disclaimerDecoration:"*",partnerList:(0,r.jsx)(c.qo,{excludeIds:["curiosity"],isLink:!0})})})]}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{})}),o&&(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(j,{plans:o,hidePlanPerks:!0,plansToDisplay:"smart_bundle",onClick:()=>{e.push(t?"/signup/payment":"/signup/register")}})})]})};(X=(0,M.m6)(X,P.u["subscription.create"])).getLayout=e=>(0,r.jsx)(i.IE,{navigation:{variants:["static","excludeSignUp","excludeGiftCard"]},couponBannerHidden:!0,children:e});var z=X},92542:function(e,l,t){"use strict";t.d(l,{j:function(){return r}});let r=e=>"boolean"==typeof e},37362:function(e,l,t){"use strict";t.d(l,{u:function(){return r}});let r=(e,l,t)=>Intl.NumberFormat(t,{currencyDisplay:"symbol",style:"currency",currency:l}).formatToParts(e).reduce((e,l)=>("integer"in e&&("group"===l.type||"integer"===l.type)?e.integer=e.integer+l.value:e[l.type]=l.value,e),{})},86361:function(e,l,t){"use strict";t.d(l,{N$:function(){return h},WC:function(){return x},p_:function(){return o},uc:function(){return d},z$:function(){return c}});var r=t(67294),a=t(92542),n=t(10253),s=t(96050);let i=function(e,l,t){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.Ku;return(n,s)=>{let i="string"==typeof n,c=(0,r.useCallback)(()=>
1{if(!i)return s;try{let l=e(a,n);if(t(l)&&null!==l)return l}catch(e){}return s},[n,i,s]),[d,o]=(0,r.useState)(s);return(0,r.useEffect)(()=>{o(c())},[n]),[d,(0,r.useCallback)(e=>{o(e);try{i&&t(e)&&l(a,n,e)}catch(e){}},[n,i])]}},c=i((e,l)=>{let t=e.get(l);return null!==t?parseFloat(t):t},(e,l,t)=>e.set(l,t),e=>!isNaN(e)),d=i((e,l)=>e.get(l),(e,l,t)=>e.set(l,t),e=>"string"==typeof e),o=i((e,l)=>{switch(e.get(l)){case"true":return!0;case"false":return!1;default:return null}},(e,l,t)=>e.set(l,t),e=>(0,a.j)(e)),u=(e,l)=>{try{let t=e.get(l);if(null!==t)return JSON.parse(t);return t}catch(e){return null}},p=(e,l,t)=>e.set(l,JSON.stringify(t)),m=e=>(0,n.Kn)(e),x=i(u,p,m),h=i(u,p,m,s.qr)},15733:function(e){e.exports={"plan-card-perks":"PlanSelectors_plan-card-perks__Hzazv","plan-card-premium-perks":"PlanSelectors_plan-card-premium-perks__ZquO_"}}},function(e){e.O(0,[3871,8323,5273,4320,1267,3621,4188,6958,4399,2888,9774,179],function(){return e(e.s=5532)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.