PageSourceSearch

https://www.cape.co/_next/static/chunks/1131-327a2d7ac2152c20.js

js cape.co collected 2026-09-24 19:15:56 UTC 119,517 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a36804cc-b709-485a-96b5-7530c68ed9c2",e._sentryDebugIdIdentifier="sentry-dbid-a36804cc-b709-485a-96b5-7530c68ed9c2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1131],{1131:(e,t,a)=>{"use strict";a.d(t,{A:()=>t2});var l,s,r,i,n,o,c,d,m,u,p,x=a(23798),h=a(28623),g=a(55551),b=a(36600),f=a(51764),v=a(37263),y=a(56113),w=a(93138),N=a(30630),j=a(96125),S=a(21462),C=a(86824),k=a(53868),A=a(32546),E=a(5525),P=a(54708);let I=(0,P.eU)(""),M=(0,P.eU)(""),T=(0,P.eU)(!1);var D=a(43593),F=a(47167),R=a(37334),O=a(15728);let L=e=>{let{message:t,description:a}=e;return(0,x.jsx)("div",{role:"alert",className:"w-full enrollment-alert",children:(0,x.jsxs)("div",{className:"bg-[#fef2f2] relative w-full rounded-lg border px-4 py-3 text-sm flex items-start gap-3 border-[#fecaca] bg-red-50",children:[(0,x.jsx)(O.A,{className:"h-4 w-4 text-[#ef4444] mt-0.5 flex-shrink-0"}),(0,x.jsxs)("div",{className:"text-sm leading-relaxed text-[#ef4444] space-y-1",children:[(0,x.jsx)("div",{className:"font-medium",children:t}),a&&(0,x.jsx)("div",{children:a})]})]})})};var B=function(e){return e.CurrentNetwork="CurrentNetwork",e.NetworkComparison="NetworkComparison",e.EsimSupport="EsimSupport",e.PhoneMake="PhoneMake",e.PhoneModel="PhoneModel",e.OperatingSystem="OperatingSystem",e.OtherPhoneModel="OtherPhoneModel",e.NumLinesToEnroll="NumLinesToEnroll",e.IsCarrierUnlocked="IsCarrierUnlocked",e.CarrierLocked="CarrierLocked",e.Ineligible="Ineligible",e.NotEligibleYet="NotEligibleYet",e.BuyoutAccepted="BuyoutAccepted",e.Eligible="Eligible",e.IsPortIn="IsPortIn",e.CompleteSetupLater="CompleteSetupLater",e.ChooseNewNumber="ChooseNewNumber",e.IsNumberEligible="IsNumberEligible",e.EmailCollection="EmailCollection",e.Checkout="Checkout",e.QrCode="QrCode",e.HowDidYouHear="HowDidYouHear",e.Error="Error",e.OtherTabOpen="OtherTabOpen",e}({});let _=[{name:"Eligibility",steps:["CurrentNetwork","NetworkComparison","EsimSupport","NumLinesToEnroll","PhoneMake","OperatingSystem","PhoneModel","OtherPhoneModel","IsCarrierUnlocked","Eligible","CarrierLocked","Ineligible","NotEligibleYet","BuyoutAccepted"]},{name:"Setup",steps:["IsPortIn","ChooseNewNumber","IsNumberEligible"]},{name:"Checkout",steps:["EmailCollection","Checkout"]}];var U=function(e){return e.AppleIPhone="Apple iPhone",e.GooglePixel="Google Pixel",e.SamsungGalaxy="Samsung Galaxy",e.Unplugged="Unplugged",e.Other="Other",e}({});let Y=["Apple iPhone","Google Pixel","Samsung Galaxy","Other"],z=["Google Pixel 11 (temporarily unsupported while we test)","Samsung Galaxy S20, S21, S21 Ultra","Samsung Galaxy S22, S22+, S22 Ultra","Samsung Galaxy Note 8, Note 20, Note 20 Ultra","Samsung Galaxy Fold, Z Fold 2, Z Fold 3 5G, Z Fold 4, Z Fold 5","Samsung Galaxy Z Flip, Z Flip 4, Z Flip 5","Motorola devices (all models)","Moto G 5G, G Play, G Power 5G, G Stylus","OnePlus 11, 12, 13, 13R, 15, Open","Fairphone 2, 4, 5, 6","Nothing Phone (1), (2), (2a), (2a) Plus, (4a), (4a) Pro","CMF Phone (1)","Xiaomi devices","Redmi devices","TCL devices","RedMagic gaming phones","Librem 5","Light Phone","Bittium","Mode Earn Phone (MEP2)","Beam Pro / X4200","Brax 3","UP Unplugged Phone","iPad","Smartwatches / Apple Watch"];var V=a(94492),G=a.n(V);function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let H=function(e){return S.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 326 87"},e),l||(l=S.createElement("path",{stroke:"#F5F5F5",strokeWidth:.5,d:"m144.173 59.279-.003.004c-1.512 2.341-3.003 4.476-5.122 6.031-2.111 1.55-4.865 2.538-8.924 2.538h-29.032c-5.488 0-9.962-1.458-13.06-4.039-3.093-2.578-4.835-6.293-4.835-10.864v-7.661c0-4.048 1.733-7.315 4.823-9.578 3.098-2.268 7.577-3.537 13.072-3.537h41.301c.612 0 1.136-.187 1.507-.565.37-.377.557-.9
114.557-1.558 0-1.964-.933-3.57-2.584-4.677-1.642-1.1-3.985-1.702-6.824-1.702h-39.4c-2.714 0-4.893-.835-6.392-2.302-1.5-1.466-2.344-3.59-2.344-6.216v-3.581h50.641c6.864 0 12.436 2.007 16.29 5.594 3.851 3.585 6.011 8.771 6.011 15.182v35.504H147.01l1.418-8.22v-.001c.049-.29.031-.608-.115-.867-.156-.276-.437-.447-.822-.447h-1.728c-.627 0-1.214.406-1.59.962Zm37.244 27.471h-15.359V11.572h12.846l-1.418 8.214c-.098.444-.004.787.215 1.019.209.22.497.301.722.301h1.728c.603 0 1.106-.297 1.409-.694l.005-.008.006-.008c1.506-2.332 3.191-4.534 5.506-6.156 2.309-1.618 5.261-2.668 9.318-2.668h26.439c6.995 0 12.654 2.008 16.561 5.595 3.905 3.585 6.086 8.771 6.086 15.181V46.65c0 6.54-2.182 11.832-6.088 15.491-3.907 3.661-9.565 5.71-16.559 5.71h-26.439c-4.063 0-7.016-.946-9.324-2.459-2.311-1.514-3.994-3.607-5.497-5.934l-.101-.177c-.123-.217-.242-.428-.374-.587-.188-.225-.427-.377-.775-.377h-1.815c-.313 0-.609.105-.808.347-.198.24-.266.572-.217.956v.005zm85.233-55.083c0 .44.064.892.399 1.221.33.326.868.477 1.666.477h35.511c1.89 0 3.457-.411 4.558-1.161 1.11-.755 1.741-1.851 1.741-3.176 0-1.482-.62-2.685-1.732-3.51-1.104-.818-2.675-1.251-4.567-1.251h-28.254c-2.59 0-4.915.692-6.598 1.966-1.689 1.278-2.724 3.137-2.724 5.434Zm55.125 36.185h-48.222c-6.427 0-12.001-2.068-15.966-5.744-3.963-3.673-6.335-8.968-6.335-15.458V32.348c0-6.412 2.139-11.598 5.979-15.182 3.843-3.587 9.414-5.594 16.322-5.594h35.426c4.88 0 9.074 1.37 12.044 3.837 2.966 2.462 4.727 6.03 4.727 10.47v5.703c0 4.317-1.614 7.82-4.501 10.248-2.892 2.431-7.085 3.804-12.27 3.804h-40.264a2.26 2.26 0 0 0-1.353.456c-.413.321-.712.818-.712 1.496 0 2.283 1.388 4.14 3.343 5.413s4.509 1.988 6.93 1.988h36.289c2.671 0 4.806.813 6.273 2.258s2.29 3.547 2.29 6.175zM181.456 47.33c0 1.684.633 3.076 1.774 4.042 1.136.963 2.754 1.486 4.697 1.486h30.674c3.551 0 6.471-1.103 8.503-3.127s3.152-4.945 3.152-8.53V37.2c0-3.253-1.124-5.92-3.16-7.772-2.033-1.85-4.949-2.864-8.495-2.864h-31.106c-1.826 0-3.342.594-4.401 1.67-1.058 1.078-1.638 2.613-1.638 4.454zm-82.774 1.872c0 1.642.61 2.991 1.72 3.927 1.104.93 2.679 1.431 4.578 1.431h28.859c3.32 0 6.037-.796 7.93-2.266 1.9-1.475 2.947-3.614 2.947-6.241 0-.636-.161-1.187-.489-1.585-.333-.404-.817-.623-1.402-.623H104.98c-1.899 0-3.474.5-4.578 1.431-1.11.936-1.72 2.285-1.72 3.926ZM56.853 67.852h-33.61c-7.12 0-12.864-2.176-16.826-6.048C2.457 57.934.25 52.341.25 45.458v-22.9c0-6.84 2.185-12.412 6.093-16.272C10.25 2.425 15.907.25 22.897.25h33.956C63.222.25 68.4 2.69 71.99 6.856c3.55 4.12 5.561 9.947 5.609 16.815H62.198c-.132-4.554-3.854-8.428-9.578-8.428H27.304c-3.553 0-6.473 1.125-8.505 3.182s-3.15 5.018-3.15 8.645v14.217c0 3.543 1.119 6.443 3.163 8.456s4.984 3.116 8.578 3.116h25.23c2.899 0 5.296-.845 6.972-2.364 1.624-1.472 2.549-3.56 2.606-6.064h15.4c-.045 7.162-2.058 12.99-5.607 17.036-3.587 4.09-8.764 6.385-15.138 6.385Z"})))};var K=a(71180),q=a(34925);let Z=e=>{let{currentStep:t}=e,a=S.useRef([]),[l,s]=S.useState(0),r=(0,K.l)(),i=S.useMemo(()=>(function(e){for(let t=0;t<_.length;t++)if(_[t].steps.includes(e))return t;return -1})(t),[t]);return S.useEffect(()=>{if(-1===i&&s("100%"),a.current&&a.current[i]){let e=a.current[i].getBoundingClientRect();s(e.left+e.width/2)}},[i,r]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"h-32 w-full bg-transparent flex items-end justify-between px-margin-lg max-w-[628px] mx-auto max-tablet:h-36",children:_.map((e,t)=>(0,x.jsxs)("div",{className:"flex my-6 items-center body-sm",children:[(0,x.jsx)("div",{ref:e=>((e,t)=>{e&&(a.current[t]=e)})(e,t),className:(0,q.A)("font-mono text-sm flex items-center justify-center w-6 h-6 m-2 ml-0 bg-white text-black rounded-full max-tablet:text-xs max-tablet:w-5 max-tablet:h-5",t!==i&&"bg-[#292929] text-[#a3a3a3]"),children:t+1}),(0,x.jsx)("div",{className:(0,q.A)(t>i&&"text-[#a3a3a3]"),children:e.name})]}))}),(0,x.jsx)("div",{className:"h-2 w-full bg-iris",children:(0,x.jsx)(C.P.div,{className:"h-full bg-purple",initial:{width:l},animate:{width:l},transition:{duration:.4,ease:"easeInOut"}})})]})};var Q=a(6273),$=a(15247);let X=e=>{let{currentStep:t}=e,{settings:a}=(0,$.Sz)();return[B.CarrierLocked,B.BuyoutAccepted,B.Ineligible,B.NotEligibleYet,B.CompleteSetupLater].includes(t)?(0,x.jsx)("div",{className:"shrink-0",children:(0,x.jsx)(Q.A,{settings:a,page:{}})}):(0,x.jsxs)("div",{style:{printColorAdjust:"exact"},className:"w-full bg-black relative flex flex-col justify-end text-white",children:[(0,x.jsx)(G(),{className:"absolute top-margin-lg tablet:top-8 left-margin-lg","data-no-underline":!0,href:"/",children:(0,x.jsx)(H,{className:"w-24 print:w-12 fill-white"})}),t===B.QrCode&&(0,x.jsx)("div",{className:"h-24"}),t!==B.QrCode&&(0,x.jsx)(Z,{currentStep:t})]})};
1var J=a(77417),ee=a(65697);let et=e=>{let{onCompleteStep:t,answers:a}=e,[l,s]=S.useState(!1),{settings:r}=(0,$.Sz)();return(0,x.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,x.jsxs)(C.P.div,{...F.E0,className:"w-1/2 h-screen mt-header-margin max-tablet:w-[85%] max-tablet:pt-0 max-tablet:pb-10 max-tablet:h-auto",children:[(0,x.jsx)("div",{className:"text-5xl text-center max-tablet:text-4xl",children:"Stuck in a carrier contract? Cape will buy you out"}),(0,x.jsxs)("div",{className:"text-xl text-center p-6 max-tablet:text-sm",children:["Cape will help you get out of your contract with your existing carrier by taking ",(0,x.jsx)("b",{children:"$300 off your Cape bill over the next 12 months."})]}),(0,x.jsx)("div",{className:"text-base text-center px-6 pb-6 max-tablet:text-xs",children:"The discount is applied once your existing number has successfully ported in to Cape. VoIP numbers (like Google Voice) aren't eligible."}),(0,x.jsxs)("div",{className:"flex gap-5 w-full justify-center max-tablet:flex-col",children:[(0,x.jsx)(v.A,{className:"bg-purple !w-36 max-tablet:!w-full",title:"I'm Interested",onClick:()=>{s(!0),t({acceptedBuyout:"yes"},!1)},hideTitle:l,icon:l&&(0,x.jsx)(J.A,{})}),(0,x.jsx)(v.A,{className:"max-tablet:!w-full",title:"No Thanks",onClick:()=>{t({acceptedBuyout:"no"},!1)}})]})]}),(0,x.jsx)(ee.A,{settings:r})]})};var ea=a(91280),el=a(2472);let es=(0,a(56783).F)("leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),er=S.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,x.jsx)(el.b,{ref:t,className:(0,q.A)(es(),a),...l})});er.displayName=el.b.displayName;var ei=a(57886);let en=S.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,x.jsx)(ea.bL,{className:(0,q.A)("grid gap-2",a),...l,ref:t})});en.displayName=ea.bL.displayName;let eo=S.forwardRef((e,t)=>{let{className:a,label:l,description:s,...r}=e,i=S.useMemo(()=>(0,ei.A)(),[]);return(0,x.jsxs)(ea.q7,{id:i,ref:t,className:(0,q.A)("relative min-h-24 w-64 p-2 border-[0.5px] text-3xl border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent hover:bg-iris cursor-pointer max-tablet:text-lg max-tablet:min-h-14 max-tablet:hover:bg-transparent",a),...r,children:[(0,x.jsx)(ea.C1,{className:"absolute top-0 left-0 h-full w-full bg-purple z-1"}),(0,x.jsx)(er,{htmlFor:i,className:(0,q.A)("relative cursor-pointer",r.disabled&&"cursor-not-allowed"),children:l}),s&&(0,x.jsx)("div",{className:"relative mt-2",children:s})]})});eo.displayName=ea.q7.displayName;let ec=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l}=e,s={[U.AppleIPhone]:(0,x.jsxs)(x.Fragment,{children:["On your iPhone, go to ",(0,x.jsx)("b",{children:"Settings > General > About > Carrier Lock."})," ","If it says “No SIM restrictions”, your device is unlocked."]}),[U.SamsungGalaxy]:(0,x.jsxs)(x.Fragment,{children:["To check if your phone is unlocked:"," ",(0,x.jsx)("b",{children:"Dial #06# to check your device's IMEI number."})," Visit an IMEI checker website and enter your IMEI to verify if your device is unlocked."]}),[U.GooglePixel]:(0,x.jsxs)(x.Fragment,{children:["To check if your phone is unlocked:"," ",(0,x.jsx)("b",{children:"Dial #06# to check your device's IMEI number."})," Visit an IMEI checker website and enter your IMEI to verify if your device is unlocked."]})}[null==a?void 0:a.phoneMake]||"";return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center gap-2x tablet:gap-4x",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-6x desktop-xl:mx-[0px]",children:"Is your phone paid\xa0off?"}),(0,x.jsxs)("div",{className:"body tablet:body-md text-center",children:["To use Cape, your phone must be carrier unlocked. ",s]}),(0,x.jsxs)(en,{className:"flex flex-wrap justify-center gap-margin max-tablet:gap-5",onValueChange:e=>t({isCarrierUnlocked:e}),disabled:l,children:[(0,x.jsx)(eo,{className:"flex-1 min-h-32 h-fit max-tablet:w-full max-tablet:min-h-0",label:"Yes",value:"yes"}),(0,x.jsx)(eo,{className:"flex-1 min-h-32 h-fit max-tablet:min-h-0",label:"No",value:"no"})]}),(null==a?void 0:a.phoneMake)!==U.AppleIPhone&&(0,x.jsxs)("div",{className:"text-center max-tablet:py-5",children:["Still unsure?"," ",(0,x.jsx)("a",{className:"underline","data-no-underline":!0,target:"_blank",rel:"noopener noreferrer",href:"https://support.cape.co/hc/en-gb/articles/36622860706580-How-to-Unlock-Your-Phone-From-Your-Current-Carrier",children:"Contact your carrier."})," ","If you owe money to your carrier, your device may be locked."]})]})};var ed=a(54076);let em=[{regionCode:"AL",displayName:"Alabama",isAvailable:!0},{regionCode:"AK",displayName:"Alaska",isAvailable:!1},{regionCode:"AZ",displayName:"Arizona",isAvailable:!0},{regionCode:"AR",displayName:"Arkansas",isAvailable:!0}
1,{regionCode:"CA",displayName:"California",isAvailable:!0},{regionCode:"CO",displayName:"Colorado",isAvailable:!0},{regionCode:"CT",displayName:"Connecticut",isAvailable:!0},{regionCode:"DE",displayName:"Delaware",isAvailable:!0},{regionCode:"DC",displayName:"District of Columbia",isAvailable:!0},{regionCode:"FL",displayName:"Florida",isAvailable:!0},{regionCode:"GA",displayName:"Georgia",isAvailable:!0},{regionCode:"HI",displayName:"Hawaii",isAvailable:!0},{regionCode:"ID",displayName:"Idaho",isAvailable:!0},{regionCode:"IL",displayName:"Illinois",isAvailable:!0},{regionCode:"IN",displayName:"Indiana",isAvailable:!0},{regionCode:"IA",displayName:"Iowa",isAvailable:!0},{regionCode:"KS",displayName:"Kansas",isAvailable:!0},{regionCode:"KY",displayName:"Kentucky",isAvailable:!0},{regionCode:"LA",displayName:"Louisiana",isAvailable:!0},{regionCode:"ME",displayName:"Maine",isAvailable:!0},{regionCode:"MD",displayName:"Maryland",isAvailable:!0},{regionCode:"MA",displayName:"Massachusetts",isAvailable:!0},{regionCode:"MI",displayName:"Michigan",isAvailable:!0},{regionCode:"MN",displayName:"Minnesota",isAvailable:!0},{regionCode:"MS",displayName:"Mississippi",isAvailable:!0},{regionCode:"MO",displayName:"Missouri",isAvailable:!0},{regionCode:"MT",displayName:"Montana",isAvailable:!0},{regionCode:"NE",displayName:"Nebraska",isAvailable:!0},{regionCode:"NV",displayName:"Nevada",isAvailable:!0},{regionCode:"NH",displayName:"New Hampshire",isAvailable:!0},{regionCode:"NJ",displayName:"New Jersey",isAvailable:!0},{regionCode:"NM",displayName:"New Mexico",isAvailable:!0},{regionCode:"NY",displayName:"New York",isAvailable:!0},{regionCode:"NC",displayName:"North Carolina",isAvailable:!0},{regionCode:"ND",displayName:"North Dakota",isAvailable:!0},{regionCode:"OH",displayName:"Ohio",isAvailable:!0},{regionCode:"OK",displayName:"Oklahoma",isAvailable:!0},{regionCode:"OR",displayName:"Oregon",isAvailable:!0},{regionCode:"PA",displayName:"Pennsylvania",isAvailable:!0},{regionCode:"RI",displayName:"Rhode Island",isAvailable:!0},{regionCode:"SC",displayName:"South Carolina",isAvailable:!0},{regionCode:"SD",displayName:"South Dakota",isAvailable:!0},{regionCode:"TN",displayName:"Tennessee",isAvailable:!0},{regionCode:"TX",displayName:"Texas",isAvailable:!0},{regionCode:"UT",displayName:"Utah",isAvailable:!0},{regionCode:"VT",displayName:"Vermont",isAvailable:!0},{regionCode:"VA",displayName:"Virginia",isAvailable:!0},{regionCode:"WA",displayName:"Washington",isAvailable:!0},{regionCode:"WV",displayName:"West Virginia",isAvailable:!0},{regionCode:"WI",displayName:"Wisconsin",isAvailable:!0},{regionCode:"WY",displayName:"Wyoming",isAvailable:!0}];function eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",a=new Intl.NumberFormat("en-US",{style:"currency",currency:t,maximumFractionDigits:2});if(!e)return a.format(0);let l=parseInt(String(e.units),10)+e.nanos/1e9;return a.format(l)}var ep=a(10219),ex=a(21602),eh=a(24627),eg=a(35631),eb=a(52743);let ef=e=>{let{productId:t,productPrice:a,onChangeRecoverableError:l,onChangeCheckoutSession:s,onChangePromoCode:r,defaultPromoCode:i,onChangeDisplayedTotal:n,suppressPlanTotalDisplay:o}=e,[c,d]=S.useState(""),[m,u]=S.useState(!1),[p,h]=S.useState(""),[b,f]=S.useState(!1),y=async e=>{var a,i;r(""),u(!1),f(!0),l(void 0),s(void 0);let o=null!=e?e:c;if(!o){l({message:"Please enter a promo code"}),f(!1);return}let d=await g.A.getDiscountValidity(t,o);if(void 0!==d.error){l({message:"This promo code could not be applied"}),f(!1),h("");return}if(d.data.discountState!==eb.Nt.APPLICABLE&&d.data.discountState!==eb.Nt.REFERRAL_APPLICABLE){l({message:"This promo code is not valid"}),f(!1),h("");return}let m=await g.A.createCheckoutSession(t,o,(0,ei.A)());if(void 0!==m.error){l({message:"This promo code could not be applied"}),f(!1),h("");return}s(m.data.checkoutSession);let p=eu(null==(i=m.data)||null==(a=i.checkoutSession)?void 0:a.amountDue);h(p),n(p),u(!0),r(o),f(!1)};return S.useEffect(()=>{i&&t&&!m&&c!==i&&(d(i),y(i))},[i,t,m,c]),(0,x.jsxs)(x.Fragment,{children:[!o&&(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:"body-xl my-[-0.2rem]",children:["Plan Total: ",a,"/mo"]})}),(0,x.jsx)("div",{className:"border-b-[1px] mt-[24px] hidden tablet:block"}),(0,x.jsx)("div",{className:"mono mt-[24px] mb-1x tablet:mb-2x",children:"have a discount?"}),!m&&(0,x.jsx)("form",{onSubmit:e=>{e.stopPropagation(),e.preventDefault()},children:(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsx)("input",{className:"w-full tablet:max-w-[240px] bg-transparent border-[1px] px-2 focus:outline-none focus:border-2 focus:border-purple h-button rounded-none",value:c,onChange:e=>d(e.target.value),placeholder:"Enter code","aria-label":"Promo code"}
1),(0,x.jsx)(v.A,{className:"",title:"Apply",type:"submit",hideTitle:b,icon:b&&(0,x.jsx)(J.A,{}),onClick:()=>y(),background:"var(--purple)",textColor:"var(--black)",margin:"12px",disabled:b||0===c.trim().length})]})}),m&&(0,x.jsxs)("div",{className:"w-full flex gap-2",children:[(0,x.jsxs)("div",{className:"w-fit flex items-center h-button bg-purple text-black px-3 border border-black border-[1px]",children:[(0,x.jsx)("span",{className:"mono mb-[-0.1rem]",children:null==c?void 0:c.toUpperCase()}),(0,x.jsx)(eg.A,{className:"h-[18px] ml-2"})]}),(0,x.jsx)(v.A,{title:"Edit",type:"button",background:"var(--white)",textColor:"var(--black)",borderColor:"var(--black)",highlightBorderColor:"var(--white)",margin:"12px",onClick:()=>{u(!1)}})]})]})};var ev=a(55689),ey=a(23673);function ew(e){let{className:t,...a}=e;return(0,x.jsx)(ev.bL,{"data-slot":"checkbox",className:(0,q.A)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:(0,x.jsx)(ev.C1,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,x.jsx)(ey.A,{className:"size-3.5"})})})}let eN=e=>{let{productPrice:t,hasDiscount:a,ensureMsisdnReservationValid:l,onPaymentConfirmed:s,signupDisabled:r}=e,[i,n]=S.useState(!1),[o,c]=S.useState(!1),[d,m]=S.useState(""),[u,p]=S.useState(!1),h=S.useMemo(()=>{let e=new Date;return e.setMonth(e.getMonth()+1),e.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})},[]),b=(0,ep.useStripe)(),f=(0,ep.useElements)(),y=(0,j.al)(),w=async e=>{if(c(!0),e.preventDefault(),!u){c(!1),m("Please accept the Terms and Conditions");return}if(!b||!f){c(!1),m("Payment is not ready yet, please try again");return}if(!await l())return void c(!1);let{error:t}=await b.confirmPayment({elements:f,redirect:"if_required"});if(t){c(!1),m(t.message||"Something went wrong with your payment");return}await g.A.setFirstPaymentMethodAsDefault((0,ei.A)()),s()};return S.useEffect(()=>{if(y&&d){let e=document.querySelector(".enrollment-alert");if(e){let t=e.getBoundingClientRect(),a=window.scrollY||window.pageYOffset,l=t.top+a-200;window.scrollTo({top:l>=0?l:0,behavior:"smooth"})}}},[d,y]),(0,x.jsx)("form",{onSubmit:w,children:(0,x.jsxs)("div",{className:"flex flex-col items-center mb-3x",children:[(0,x.jsx)(ep.PaymentElement,{className:(0,q.A)("w-full bg-[#fff]",i&&"border-black border-[1px] p-2x"),options:{layout:"tabs",terms:{card:"never"}},onReady:()=>n(!0)}),(0,x.jsxs)("div",{className:"flex items-center w-full mt-2x mb-3x",children:[(0,x.jsx)(ew,{id:"payment-overview-t-and-c-checkbox",onCheckedChange:e=>p(!0===e)}),(0,x.jsxs)(er,{className:"text-sm ml-5 max-tablet:text-xs",htmlFor:"payment-overview-t-and-c-checkbox",children:["I accept the"," ",(0,x.jsx)("a",{href:"https://www.cape.co/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"underline","data-no-underline":!0,children:"terms of service"})," ","and"," ",(0,x.jsx)("a",{href:"https://www.cape.co/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"underline","data-no-underline":!0,children:"privacy policy"}),a?", and acknowledge my subscription auto-renews at ".concat(t,"/mo once the discount period ends."):", and acknowledge my subscription auto-renews at ".concat(t,"/mo starting ").concat(h,".")]})]}),(0,x.jsx)(v.A,{className:"!w-full",title:"Start Subscription",type:"submit",background:"var(--purple)",hideTitle:o,icon:o&&(0,x.jsx)(J.A,{}),disabled:r}),d&&(0,x.jsx)("div",{className:"w-full pt-3x",children:(0,x.jsx)(L,{message:d})})]})})};var ej=a(83270),eS=a(74015);let eC=e=>{let{answers:t,msisdnInfo:a,productPrice:l,promoCode:s,checkoutTotalDisplay:r}=e,[i,n]=S.useState(!1);return(0,x.jsxs)("div",{className:"border border-black bg-iris px-3 py-2x",children:[(0,x.jsx)("button",{type:"button",onClick:()=>n(e=>!e),className:"w-full flex items-center justify-between text-left","aria-expanded":i,children:(0,x.jsxs)("div",{className:"flex flex-col gap-[16px] w-full",children:[(0,x.jsxs)("div",{className:"body-xl my-[-0.25rem]",children:[(null==t?void 0:t.isPortIn)==="no"&&"New Number Plan",(null==t?void 0:t.isPortIn)==="yes"&&"Existing Number Plan"," ",a]}),(0,x.jsxs)("div",{className:"body-xl my-[-0.2rem] flex flex-row items-center",children:[(0,x.jsxs)("div",{className:"flex-1",children:["Plan Total: ",l,"/mo"]}),(0,x.jsx)(ej.A,{className:"ml-2 transition-transform duration-300 w-[20px] h-[20px] ".concat(i?"rotate-45":"")})]})]})}),(0,x.jsx)("div",{style:{height:i?"auto":0,opacity:+!!i,overflow:"hidden",transition:"height 0.3s ease-in-out, opacity 0.3s ease-in-out"},children:(0,x.jsx)(eS.s,{variant:"mobile"})})]})},ek=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l,setCheckoutSession:s}=e,[r,i]=S.useState(!1),[n,o]=S.useState(),[c,d]=S.useState(),m=S.useRef(null),[u,p]=S.useState(),[h,b]=S.useState(""),[v,y]=S.useState(""),[w,A]=S.useState(""),{settings:E}=(0,$.Sz)(),P=(0,j.al)(),[T,D]=S.useState(),{trackEvent:R}=(0,N.H)(),[O,B]=S.useState(),[_,U]=S.useState(),[Y,z]=S.useState(),V=S.useMemo(()=>
1{if(O)return(0,ex.c)(O)},[O]),G=(0,k.md)(I),W=(0,k.md)(M),H=S.useCallback(e=>{var t,a;s(e),z(e),B(null==e||null==(t=e.session.value)?void 0:t.publishableKey),U(null==e||null==(a=e.session.value)?void 0:a.clientSecret)},[s]);S.useEffect(()=>{let e=new URLSearchParams(window.location.search),t=e.get("referral"),a=e.get("code"),l=t&&t.trim()||a&&a.trim()||"";l.length>0&&D(l)},[]),S.useEffect(()=>{(async()=>{if(!G||!W){i(!0);try{var e,t,a,l,r,n,o;let i=await g.A.listProducts();if(void 0!==i.error)throw{description:"could not get product"};let c=null==(e=i.data.productCatalog)?void 0:e.items[0].product;if(!c)throw{description:"could not get product"};b(null==c?void 0:c.productId);let d=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0});y(d.format((null==(a=c.productPrice)||null==(t=a.money)?void 0:t.units)||NaN));let m=await g.A.createCheckoutSession(c.productId,"",(0,ei.A)());if(void 0!==m.error)throw{description:"could not create checkout session"};let u=m.data.checkoutSession;s(u),z(u),B(null==u||null==(l=u.session.value)?void 0:l.publishableKey),U(null==u||null==(r=u.session.value)?void 0:r.clientSecret);let p=eu(null==(o=m.data)||null==(n=o.checkoutSession)?void 0:n.amountDue);A(p)}catch(t){let e={message:"Something went wrong, please contact support"};t.description&&(e.description=t.description),d(e),console.error(t)}finally{i(!1)}}})()},[]),S.useEffect(()=>{if(P&&n&&m.current){let e=m.current.getBoundingClientRect();window.scrollTo({top:e.top,behavior:"smooth"})}},[n,m.current]);let K=S.useCallback(async()=>{try{if(!(null==a?void 0:a.msisdnReservationExpiry)){let e=await g.A.reserveMsisdnUserByNpa((null==a?void 0:a.isPortIn)==="yes"?"":(null==a?void 0:a.npaReserved)||"",!0);if(void 0!==e.error)return o({message:"We were unable to reserve your number. Please try again or contact support."}),!1;return!0}if(Date.now()>a.msisdnReservationExpiry-6e5){let e;if("yes"===a.isPortIn?e=await g.A.reserveMsisdnUserByNpa("",!0):a.npaReserved?e=await g.A.reserveMsisdnUserByNpa(a.npaReserved,!1):(eh.A.warning("User checking out with new number but npaReserved not set",{answers:a}),e=await g.A.reserveMsisdnUserByNpa("",!1)),void 0!==e.error)return o({message:"We were unable to reserve your number. Please try again or contact support."}),!1}return!0}catch(e){return eh.A.error("Failed to ensure MSISDN reservation before payment",e),o({message:"We were unable to reserve your number. Please try again or contact support."}),!1}},[a]),q=S.useMemo(()=>{if((null==a?void 0:a.isPortIn)==="no"){let e=em.find(e=>e.regionCode===(null==a?void 0:a.msisdnRegionCode));return"(".concat(null==a?void 0:a.npaReserved,", ").concat(null==e?void 0:e.displayName,")")}if(!(null==a?void 0:a.msisdnToTransfer))return"";let e=(0,ed.lq)(a.msisdnToTransfer,"US");return(0,ed.n4)((null==e?void 0:e.number)||"")},[a]);return c?(0,x.jsx)(C.P.div,{...F.E0,children:(0,x.jsx)(L,{...c})}):r?(0,x.jsx)("div",{className:"mt-margin-lg",children:(0,x.jsx)(J.A,{})}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(C.P.div,{...F.E0,className:"grid grid-cols-[1fr_1fr] w-full max-w-container p-margin-lg gap-margin-lg max-tablet:flex max-tablet:flex-col",children:[(0,x.jsxs)("div",{className:"flex flex-col text-left gap-2-5x tablet:gap-4x",children:[(0,x.jsx)("div",{className:"h1-sans-serif mt-[-0.25rem] mb-[-0.5rem]",children:"Private Payment."}),(0,x.jsxs)("div",{className:"body-1 my-[-0.25rem]",children:["Your private payment is secured and processed by Stripe."," ",(0,x.jsx)("b",{children:"We never store your card data."})," After payment, you'll get a QR code to activate your line and\xa0eSIM. If using Apple Pay or Google Pay, your billing address is sent to Stripe for processing, then deleted."]}),(null==a?void 0:a.operatingSystem)==="GrapheneOS"&&(0,x.jsxs)("div",{className:"border-border border-black p-2x flex flex-row text-left items-center gap-2x",children:[(0,x.jsx)("img",{className:"w-10 desktop:w-16",src:"/svgs/graphene-os.svg"}),(0,x.jsxs)("div",{className:"body-1",children:["Once you complete your payment, Cape will donate"," ",w," to the GrapheneOS\xa0Foundation."]})]}),(0,x.jsx)(eS.s,{variant:"desktop"})]}),(0,x.jsx)("div",{children:(0,x.jsxs)("div",{className:"flex flex-col",children:[!P&&(0,x.jsx)("div",{className:"mb-2x",children:(0,x.jsxs)("div",{className:"body-xl my-[-0.25rem]",children:[(null==a?void 0:a.isPortIn)==="no"&&"New Number Plan",(null==a?void 0:a.isPortIn)==="yes"&&"Existing Number Plan"," ",q]})}),P&&(0,x.jsx)(eC,{answers:a,msisdnInfo:q,productPrice:v,promoCode:u,checkoutTotalDisplay:w}),(0,x.jsx)(ef,{productPrice:v,productId:h,onChangeRecoverableError:o,onChangeCheckoutSession:H,onChangePromoCode:p,defaultPromoCode:T,onCh
1angeDisplayedTotal:A,suppressPlanTotalDisplay:P}),(0,x.jsx)("div",{className:"my-3x",children:(0,x.jsx)("div",{className:"h3 tablet:h4 my-[-0.25rem]",children:u?(0,x.jsxs)(x.Fragment,{children:["Due today: ",w," ",(0,x.jsx)("s",{className:"decoration-2",children:v})]}):(0,x.jsxs)(x.Fragment,{children:["Due today: ",w]})})}),n&&(0,x.jsx)("div",{ref:m,className:"mb-3x",children:(0,x.jsx)(C.P.div,{...F.E0,children:(0,x.jsx)(L,{...n})})}),V&&_?(0,x.jsx)(ep.Elements,{stripe:V,options:{clientSecret:_,appearance:{variables:{borderRadius:"0"},rules:{".Input":{borderRadius:"0",boxShadow:"none"},".Input--focus":{boxShadow:"none"},".Tab":{borderRadius:"0",boxShadow:"none"},".Tab--selected":{boxShadow:"none"},".Block":{borderRadius:"0",boxShadow:"none"}}}},children:(0,x.jsx)(eN,{productPrice:v,hasDiscount:!!u,ensureMsisdnReservationValid:K,onPaymentConfirmed:()=>{var e,a,l;let s=(null==Y||null==(e=Y.amountDue)?void 0:e.units)||0;R(f.$I.BetaFormSubscriptionPurchased,{conversionValue:s,currencyCode:null==Y||null==(a=Y.amountDue)?void 0:a.currencyCode,promoCode:u}),t({stripeCustomerId:null==Y||null==(l=Y.session.value)?void 0:l.customerId,promoCode:u,selectedProductId:h},!1)},signupDisabled:l})}):(0,x.jsx)("div",{className:"min-h-[406px] flex items-center justify-center bg-[#ffffff] border border-black border-[1px]",children:(0,x.jsx)(J.A,{})})]})})]}),(0,x.jsx)(ee.A,{className:"shrink-0",settings:E})]})};var eA=a(8837),eE=a(42957),eP=a(13460);let eI=eA.bL;eA.YJ;let eM=eA.WT,eT=S.forwardRef((e,t)=>{let{className:a,children:l,...s}=e;return(0,x.jsxs)(eA.l9,{ref:t,className:(0,q.A)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...s,children:[l,(0,x.jsx)(eA.In,{asChild:!0,children:(0,x.jsx)(eE.A,{className:"h-4 w-4 opacity-50"})})]})});eT.displayName=eA.l9.displayName;let eD=S.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,x.jsx)(eA.PP,{ref:t,className:(0,q.A)("flex cursor-default items-center justify-center py-1",a),...l,children:(0,x.jsx)(eP.A,{className:"h-4 w-4"})})});eD.displayName=eA.PP.displayName;let eF=S.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,x.jsx)(eA.wn,{ref:t,className:(0,q.A)("flex cursor-default items-center justify-center py-1",a),...l,children:(0,x.jsx)(eE.A,{className:"h-4 w-4"})})});eF.displayName=eA.wn.displayName;let eR=S.forwardRef((e,t)=>{let{className:a,children:l,position:s="popper",...r}=e;return(0,x.jsx)(eA.ZL,{children:(0,x.jsxs)(eA.UC,{ref:t,className:(0,q.A)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:s,...r,children:[(0,x.jsx)(eD,{}),(0,x.jsx)(eA.LM,{className:(0,q.A)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,x.jsx)(eF,{})]})})});eR.displayName=eA.UC.displayName,S.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,x.jsx)(eA.JU,{ref:t,className:(0,q.A)("px-2 py-1.5 text-sm font-semibold",a),...l})}).displayName=eA.JU.displayName;let eO=S.forwardRef((e,t)=>{let{className:a,children:l,...s}=e;return(0,x.jsxs)(eA.q7,{ref:t,className:(0,q.A)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...s,children:[(0,x.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,x.jsx)(eA.VF,{children:(0,x.jsx)(ey.A,{className:"h-4 w-4"})})}),(0,x.jsx)(eA.p4,{children:l})]})});function eL(e){let{value:t,onValueChange:a=()=>{},options:l,placeholder:s,disabled:r}=e;return(0,x.jsxs)(eI,{onValueChange:a,value:t,disabled:r,children:[(0,x.jsx)(eT,{className:(0,q.A)(t&&"bg-iris","w-full !h-14 text-lg rounded-none"),children:(0,x.jsx)(eM,{placeholder:s})}),(0,x.jsx)(eR,{className:"bg-[#fff] h-[250px] border-none rounded-none",position:"popper",children:l.map(e=>{let{label:t,value:a,disabled:l}=e;return(0,x.jsx)(eO,{className:"cursor-pointer hover:bg-iris border-b-[0.5px] h-12",value:a,disabled:l,children:t})})})]})}eO.displayName=eA.q7.displayName,S.forwardRef((e,t)=>
1{let{className:a,...l}=e;return(0,x.jsx)(eA.wv,{ref:t,className:(0,q.A)("-mx-1 my-1 h-px bg-muted",a),...l})}).displayName=eA.wv.displayName;let eB=e=>{let{onCompleteStep:t,signupDisabled:a}=e,[l,s]=S.useState(!1),[r,i]=S.useState(!1),[n,o]=S.useState(""),[c,d]=S.useState(),[m,u]=S.useState();S.useEffect(()=>{(async()=>{if(u(void 0),!n){s(!1),i(!1);return}d(void 0),s(!0),i(!1);let e=await g.A.availableMsisdnsByState(n);if(void 0!==e.error){i(!0),s(!1);return}let t=e.data.npaCount.filter(e=>e.count>0).map(e=>e.npa);if(0===t.length){i(!0),s(!1);return}s(!1),d(t)})()},[n]),S.useEffect(()=>{(async()=>{var e;if(!m)return;let a=await g.A.reserveMsisdnUserByNpa(m,!1);if(void 0!==a.error)return b.oR.error("Something went wrong. Please contact us at [email protected] or try again later");t({msisdnRegionCode:n,npaReserved:m,msisdnReservationExpiry:1e3*parseInt(String(null==(e=a.data.reservationExpiry)?void 0:e.seconds),10)},!1)})()},[m]);let p=em.map(e=>({label:e.displayName,value:e.regionCode,disabled:!e.isAvailable}));return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center",children:[(0,x.jsx)("div",{className:"h4 text-center m-margin-lg mt-0 max-w-[150ch]",children:"Choose your number"}),(0,x.jsx)("div",{className:"text-xl text-center p-6 max-tablet:text-sm",children:"Select your preferred state. This does not need to match your state of residence."}),(0,x.jsx)("div",{className:"w-full max-w-form mr-auto ml-auto mb-5 max-tablet:w-full",children:(0,x.jsx)(eL,{value:n,options:p,placeholder:"Select a state",onValueChange:o,disabled:a})}),c&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"text-xl text-center p-6 max-tablet:text-sm max-tablet:pt-0",children:"Select your preferred area code. You will get the new number once you install your eSIM through the Cape app."}),(0,x.jsx)(en,{className:"flex gap-8 justify-center flex-wrap max-tablet:gap-5 pb-10",onValueChange:u,disabled:a,children:null==c?void 0:c.map(e=>(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(eo,{className:"w-32 max-tablet:w-24",label:e,value:e})}))})]}),r&&(0,x.jsx)(L,{message:"We were unable to fetch the area codes for this region",description:"There are no available numbers for this region. Please select another region to proceed."}),l&&(0,x.jsx)("div",{className:"w-full flex justify-center",children:(0,x.jsx)(J.A,{})})]})};var e_=a(55920),eU=a(63619),eY=a(14489);let ez=e=>{var t;let{onCompleteStep:a}=e,[l,s]=S.useState(""),{submitting:r,succeeded:i,emailIsValid:n,subscribe:o}=(0,e_.l)(l,["BetaForm_Complete_Setup_Later"]),{settings:c,enrollmentSettings:d}=(0,$.Sz)(),m=async()=>{n&&(await o(),a({email:l}))};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(C.P.div,{...F.E0,className:"w-full max-w-container px-margin-lg pt-header-margin",children:(0,x.jsxs)("div",{className:"w-full grid grid-cols-1 tablet:grid-cols-2 gap-margin",children:[(0,x.jsxs)("div",{className:"p-margin border-border border-black flex flex-col items-start",children:[(0,x.jsx)("div",{className:"h3 desktop:h4",children:"Still thinking it\xa0over?"}),(0,x.jsx)("div",{className:"body tablet:body-md my-margin flex-1",children:"No rush. Leave your email and we’ll send you beta updates, new feature releases, and a link back to setup when you're ready."}),(0,x.jsxs)("div",{className:"w-full flex flex-row gap-margin-sm",children:[(0,x.jsx)("input",{className:"w-full h-button p-3 border-[1px] text-black bg-white",placeholder:"Email",disabled:i,type:"email",onChange:e=>s(e.target.value)}),(0,x.jsx)(v.A,{className:(0,q.A)("mr-auto ml-auto",i&&"bg-black text-white"),title:i?"You're Subscribed":"Submit",hideTitle:r,icon:r&&(0,x.jsx)(J.A,{}),onClick:m,disabled:!n||i})]})]}),(0,x.jsxs)("div",{className:"p-margin border-border border-black flex flex-col items-start",children:[(0,x.jsx)("div",{className:"h3 desktop:h4",children:"Still have questions?"}),(0,x.jsxs)("div",{className:"body tablet:body-md my-margin flex-1",children:[(0,x.jsxs)("p",{className:"!text-xl",children:["We'd love to answer them for you. Chat with us in app or through the Help Center, or call us at"," ",(0,x.jsx)("a",{className:"link",href:"tel:+18882412273",children:"+1 (888) 241-CAPE"}),"."]}),(0,x.jsx)("p",{className:"mt-margin-sm !text-xl",children:"Chat support is available 24/7, and call support is available Weekdays 9 am - 5 pm, excluding major U.S. holidays."})]}),(0,x.jsx)(v.A,{className:"!bg-purple",title:"Help Center",path:"https://support.cape.co/",newTab:!0})]})]})}),(0,x.jsx)(eU.A,{module:{...eY.A,ariaLabel:"General FAQs",items:null!=(t=null==d?void 0:d.generalFaqs)?t:eY.A.generalFaqs,title:"FAQs",style:"small"}}),(0,x.jsx)(ee.A,{settings:c,className:"shrink-0"})]})},eV=["AT&T","Verizon","T-Mobile","Mint Mobile","Google Fi","Other"],eG=e=>
1{let{onCompleteStep:t,signupDisabled:a}=e;return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center m-margin-lg mt-0 max-w-[15ch]",children:"Who are you switching\xa0from?"}),(0,x.jsx)(en,{className:"flex flex-wrap justify-center gap-10 max-tablet:gap-5",onValueChange:e=>t({currentNetwork:e}),disabled:a,children:eV.map(e=>(0,x.jsx)(eo,{className:"w-[calc((100%-2*40px)/3)] max-tablet:w-[calc((100%-20px)/2)] ",label:e,value:e},e))})]})},eW=e=>{let{onCompleteStep:t,signupDisabled:a}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-6x desktop-xl:mx-[0px] mb-margin-lg",children:"Great news! You're eligible for\xa0Cape."}),(0,x.jsxs)("div",{className:"flex w-full justify-center gap-5 flex-wrap",children:[(0,x.jsx)(v.A,{className:"bg-purple max-tablet:!w-full",title:"Complete Setup",onClick:()=>t({completeSetupNow:"yes"},!1),disabled:a}),(0,x.jsx)(v.A,{className:"max-tablet:!w-full",title:"Maybe Later",onClick:()=>t({completeSetupNow:"no"},!1)})]})]})})},eH="NOT_SURE",eK=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l,includeUnsureOption:s}=e,[r,i]=S.useState(!1),[n,o]=S.useState(""),c=!!s&&!(null==a?void 0:a.isDeviceNotListed);return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center gap-2x tablet:gap-3x",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-[128px] desktop-xl:mx-[0px]",children:"Does your phone support\xa0eSIM?"}),(0,x.jsxs)("div",{className:"body tablet:body-md text-center",children:["Not sure? Dial ",(0,x.jsx)("b",{children:"*#06#"}),(0,x.jsx)("br",{}),"If you see an EID your phone supports eSIM.",(0,x.jsx)("br",{}),"See our"," ",(0,x.jsx)("a",{className:"underline",href:"https://support.cape.co/hc/en-gb/articles/31337021844372-How-to-Check-If-Your-Device-is-eSIM-Compatible",target:"_blank",rel:"noreferrer","data-no-underline":!0,children:"help article"})," ","for more info."]}),(0,x.jsxs)(en,{className:"w-full max-w-[550px] flex flex-wrap justify-center gap-10 max-tablet:p-0 max-tablet:pb-10 max-tablet:gap-5 tablet:pb-3x",onValueChange:e=>{switch(e){case"YES":t({esimCompatible:"yes"});break;case"NO":c?i(!0):t({esimCompatible:"no"});break;case eH:t({esimCompatible:"unsure"})}},disabled:l,children:[(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] max-tablet:w-full",label:"YES",value:"YES"}),(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] max-tablet:w-full",label:"NO",value:"NO"}),s&&(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] max-tablet:w-full",label:"NOT SURE",value:eH})]}),r&&(0,x.jsxs)("div",{className:"w-full max-w-[520px] flex flex-col items-center px-10 max-tablet:p-0 mt-4",children:[(0,x.jsx)("input",{className:"w-full h-16 bg-transparent border-[0.5px] px-4 max-tablet:h-14",placeholder:"Please specify your device",value:n,onChange:e=>o(e.target.value)}),(0,x.jsx)(v.A,{className:"my-4",title:"Submit",onClick:()=>t({esimCompatible:"no",phoneMake:U.Other,otherPhoneModel:n}),disabled:0===n.trim().length||l})]})]})};var eq=a(58201),eZ=a(82992),eQ=a(6837);let e$={_key:"enrollment-ineligible-switch-to-cape",_type:eZ._,style:"dark",headline:"Switch to Cape,\nAmerica’s privacy-first mobile carrier.",body:"Protect yourself with premium, secure cell service.",ctaTitle:"Sign up now",ctaLink:"/get-cape"},eX=e=>{let{onCompleteStep:t,answers:a}=e,{settings:l}=(0,$.Sz)(),[s,r]=S.useState(""),{submitting:i,succeeded:n,emailIsValid:o,subscribe:c}=(0,e_.l)(s,(function(e){let t=[];return e.phoneMake===U.Other?t.push("BetaForm_Ineligible_Other_Device"):"My device is not listed"===e.phoneModel&&t.push("BetaForm_Ineligible_".concat(e.phoneMake)),"no"===e.isCarrierUnlocked&&t.push("BetaForm_Phone_Locked"),"no"===e.acceptedBuyout&&t.push("BetaForm_Declined_Buyout"),t})(a||{}).concat(["GET_A_DEVICE"])),d=async()=>{o&&(await c(),t({email:s}))};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("section",{className:"w-full relative z-10",children:(0,x.jsxs)("div",{className:"w-full max-w-container mx-auto p-margin-lg pt-header-margin grid grid-cols-1 tablet:grid-cols-6 gap-margin-lg items-center",children:[(0,x.jsxs)(C.P.div,{...F.E0,className:"flex flex-col gap-[32px] order-2 tablet:order-1 tablet:col-span-4",children:[(0,x.jsx)("h1",{className:"text-[36px] leading-[1.2] tablet:text-[48px] tablet:leading-none tracking-[-0.48px] my-[-0.4rem]",children:"Get a new phone from Cape"}),(0,x.jsx)("p",{className:"subtitle",children:"To use Cape, you need an eligible device that is eSIM compatible and carrier unlocked. It looks like your current device doesn't meet these\xa0requirements."}),(0,x.jsxs)("div",{className:"flex flex-col gap-[20px] tablet:gap-margin-sm",children:[(0,x.jsx)("p",{className:"subtitle",style:{fontWeight:500},children:"What can I do?"}),(0,x.jsxs)("ul",{className:"list-disc pl-[30px] flex flex-col gap-[20px] tablet:gap-margin-sm subtitle",children:[(0,x.jsxs)("li",{children:["Review our"," ",(0,x.jsx)("a",{href:"https://support.cape.co/hc/en-gb/articles/42330770199444-Cape-Device-Compatibility",className:"underline","data-no-underline":!0,target:"_blank",rel:"noopener noreferrer",children:"Compatibility Guide"})," ","for a full list of supported devices."]}),(0,x.jsx)("li",{children:"Purchase a new, compatible device from our Shop, and get 60% off your first year of Cape, up to\xa0$500."}),(0,x.jsx)("li",{children:"Enter your email below and we'll send you instructions on how to get a new device from\xa0Cape."})]})]}),(0,x.jsxs)("div",{className:"flex flex-row gap-[19px] justify-start",children:[(0,x.jsx)("input",{className:"flex-1 max-w-[300px] h-button border border-black bg-white px-[12px] mono rounded-none focus:outline-none",placeholder:"ENTER YOUR EMAIL",disabled:n,type:"email",onChange:e=>r(e.target.value)}),(0,x.jsx)(v.A,{title:n?"Thanks!":"SUBMIT",background:n?"var(--black)":"var(--purple)",textColor:n?"var(--white)":"var(--black)",hideTitle:i,icon:i&&(0,x.jsx)(J.A,{}),onClick:d,disabled:!o||n})]}),(0,x.jsx)("div",{className:"mt-[-20px]",children:(0,x.jsx)(eQ.A,{})})]}),(0,x.jsx)(C.P.div,{...F.E0,className:"order-1 tablet:order-2 w-full flex items-center justify-center tablet:aspect-[0.9] relative tablet:col-span-2",children:(0,x.jsx)("img",{src:"/assets/ineligible-phone-scratch.png",alt:"Phone with a scratched screen, indicating an incompatible device",className:"w-full max-w-[320px] tablet:max-w-none tablet:absolute tablet:inset-0 tablet:w-full tablet:h-full object-contain mx-auto"})})]})}),(0,x.jsx)(eq.A,{module:e$}),(0,x.jsx)(ee.A,{settings:l,className:"shrink-0"})]})},eJ=e=>{let{onCompleteStep:t}=e,{settings:a}=(0,$.Sz)(),[l,s]=S.useState(""),{submitting:r,succeeded:i,emailIsValid:n,subscribe:o}=(0,e_.l)(l,["BetaForm_Phone_Locked","BetaForm_Declined_Buyout"]),c=async()=>{n&&(await o(),t({email:l}))};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("section",{className:"w-full relative z-10",children:(0,x.jsx)(C.P.div,{...F.E0,className:"w-full max-w-container mx-auto px-margin-lg pt-header-margin pb-margin-lg flex flex-col items-center text-center",children:(0,x.jsxs)("div",{className:"flex flex-col gap-[32px] max-w-[640px]",children:[(0,x.jsx)("h1",{className:"text-[36px] leading-[1.2] tablet:text-[48px] tablet:leading-none tracking-[-0.48px] my-[-0.4rem]",children:"You’re not eligible (yet)"}),(0,x.jsx)("p",{className:"subtitle",children:"Cape’s beta only supports recent eSIM-compatible, carrier-unlocked phones. Join our newsletter to stay updated on feature releases and expanded device\xa0support."}),(0,x.jsxs)("div",{className:"flex flex-row gap-[19px] justify-center max-tablet:flex-col",children:[(0,x.jsx)("input",{className:"flex-1 h-button border border-black bg-white px-[12px] mono rounded-none focus:outline-none max-tablet:max-w-full",placeholder:"ENTER YOUR EMAIL",disabled:i,type:"email",onChange:e=>s(e.target.value)}),(0,x.jsx)(v.A,{title:i?"Thanks!":"NOTIFY ME",background:i?"var(--black)":"var(--purple)",textColor:i?"var(--white)":"var(--black)",hideTitle:r,icon:r&&(0,x.jsx)(J.A,{}),onClick:c,disabled:!n||i})]}),(0,x.jsx)("div",{className:"mt-[-20px]",children:(0,x.jsx)(eQ.A,{})})]})})}),(0,x.jsx)(ee.A,{settings:a,className:"shrink-0"})]})};var e0=a(83309);function e1(){return(e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let e2=function(e){return S.createElement("svg",e1({xmlns:"http://www.w3.org/2000/svg",width:26,height:26,fill:"none",viewBox:"0 0 27 27"},e),s||(s=S.createElement("path",{fill:"#9891E1",d:"M13 0C5.832 0 0 5.832 0 13s5.832 
113 13 13 13-5.832 13-13S20.168 0 13 0m6.766 8.643-8.4 10a1 1 0 0 1-.75.357h-.017a1 1 0 0 1-.743-.331l-3.6-4a1.001 1.001 0 1 1 1.486-1.338l2.83 3.145 7.662-9.12a1 1 0 0 1 1.532 1.287"})))};function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let e4=function(e){return S.createElement("svg",e3({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none",viewBox:"0 0 20 20"},e),r||(r=S.createElement("path",{fill:"red",d:"M10 .25C4.624.25.25 4.624.25 10s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S15.376.25 10 .25m3.53 12.22a.75.75 0 1 1-1.06 1.06L10 11.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L8.94 10 6.47 7.53a.75.75 0 0 1 1.06-1.06L10 8.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L11.06 10z"})))};function e5(){return(e5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let e6=function(e){return S.createElement("svg",e5({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",viewBox:"0 0 24 24"},e),i||(i=S.createElement("path",{fill:"orange",d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25m0 14.996a.937.937 0 1 1 0-1.875.937.937 0 0 1 0 1.875m1.018-9.43-.269 5.72a.75.75 0 0 1-1.5 0L10.98 7.82v-.003a1.02 1.02 0 1 1 2.036 0z"})))},e8=(e,t)=>{let a;return function(){for(var l=arguments.length,s=Array(l),r=0;r<l;r++)s[r]=arguments[r];window.clearTimeout(a),a=window.setTimeout(()=>{e(...s)},t)}};var e7=function(e){return e[e.WaitingForEntry=0]="WaitingForEntry",e[e.Invalid=1]="Invalid",e[e.Eligible=2]="Eligible",e[e.Ineligible=3]="Ineligible",e[e.Loading=4]="Loading",e[e.Error=5]="Error",e}(e7||{});let e9=e=>{let{onCompleteStep:t,signupDisabled:a}=e,[l,s]=S.useState(""),[r,i]=S.useState(0),[n,o]=S.useState(""),[c,d]=S.useState(!1);S.useEffect(()=>{if(!(0,ed.h1)(l||""))return void i(0);if(!(0,ed.g0)(l))return void i(1);let e=(0,ed.lq)(l);if((null==e?void 0:e.country)!=="US")return void i(3);i(4),e8(()=>g.A.checkPortInAvailability(e.nationalNumber).then(t=>{var a;void 0!==t.error?i(3):(null==(a=t.data.portabilityInfo)?void 0:a.isPortable)?(i(2),o(e.nationalNumber)):i(3)}),500)()},[l]);let m=e8(async()=>{var e;d(!0);let a=await g.A.reserveMsisdnUserByNpa("",!0);if(void 0!==a.error)return d(!1),i(5);t({msisdnToTransfer:n,msisdnReservationExpiry:1e3*parseInt(String(null==(e=a.data.reservationExpiry)?void 0:e.seconds),10)},!1)},500);return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full max-w-form p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-6x desktop-xl:mx-[0px]",children:"Check if your phone number is\xa0eligible"}),(0,x.jsx)("div",{className:"body tablet:body-md text-center my-3x max-w-[40ch]",children:"This will not initiate a transfer. We'll only check if your phone number is eligible to transfer."}),(0,x.jsxs)("div",{className:"w-full flex flex-col items-center gap-5",children:[(0,x.jsxs)("div",{className:"w-full flex items-center border-[0.5px] pr-4",children:[(0,x.jsx)(e0.A,{className:"w-full p-2",value:l,onChange:e=>s(e),disabled:a}),4===r&&(0,x.jsx)(J.A,{}),2===r&&(0,x.jsx)(e2,{}),3===r&&(0,x.jsx)(e4,{}),1===r&&(0,x.jsx)(e6,{})]}),1===r&&(0,x.jsx)("div",{className:"text-lg font-medium",children:"Please enter a valid phone number"}),2===r&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"body font-medium text-center",children:"Excellent! Your number is eligible for transfer to Cape."}),(0,x.jsx)(v.A,{className:"bg-purple",title:"Continue to Checkout",onClick:m,hideTitle:c,icon:c&&(0,x.jsx)(J.A,{})})]}),3===r&&(0,x.jsx)("div",{className:"body font-medium text-center",children:"We're sorry, your number is not eligible for transfer to Cape at this time."}),5===r&&(0,x.jsxs)("div",{className:"body font-medium text-center",children:["We're sorry, something went wrong. Please contact our support team or try again later"," "]})]})]})},te=e=>
1{let{onCompleteStep:t,signupDisabled:a,portInDisabled:l}=e;return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center m-margin-lg tablet:mx-6x mt-0 desktop-xl:mx-[0px]",children:"How would you like to set up your\xa0service?"}),(0,x.jsxs)(en,{className:"flex flex-wrap justify-center gap-10 max-tablet:gap-5 max-tablet:p-0",onValueChange:e=>t({isPortIn:e}),disabled:a,children:[(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] h-32 max-tablet:w-full",label:"Choose a new number",value:"no"}),(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] h-32 max-tablet:w-full",label:"Transfer existing number",value:"yes",disabled:l})]}),l&&(0,x.jsx)("p",{className:"mt-6 body-1 text-center opacity-60",children:"Number transfers are temporarily unavailable on the web. Download the Cape app and sign up there to transfer your number."})]})};var tt=a(5769),ta=a.n(tt),tl=a(90766),ts=function(e){return e.Unlimited="Nationwide Unlimited Talk, Text, and Data",e.AnonymousSignup="Anonymous Signup",e.IdentifierRotation="Identifier Rotation",e.SecondaryNumbers="Secondary Numbers",e.DataRetention="Minimal Data Retention",e.SimSwap="SIM Swap Protection",e.SignalingProtection="Enhanced Signaling Attack Protection",e.EncryptedSMSMMS="Encrypted SMS/MMS",e.PrivatePayment="Private Payment",e.NoDataBreaches="No Data Breaches",e.NoContract="No Contract, $30 Trial",e}(ts||{});let tr=(0,x.jsx)(eg.A,{className:"h-6 max-tablet:h-5"}),ti=(0,x.jsx)(tl.A,{className:"max-tablet:hidden",strokeWidth:1,size:26}),tn={Cape:{"Nationwide Unlimited Talk, Text, and Data":{icon:tr},"Anonymous Signup":{icon:tr},"Identifier Rotation":{icon:tr,text:"Rotate your imsi daily"},"Secondary Numbers":{icon:tr,text:"2 extra lines included in your plan"},"Minimal Data Retention":{icon:tr,text:"Call Records deleted after 1 day"},"SIM Swap Protection":{icon:tr,text:"via private key you control"},"Enhanced Signaling Attack Protection":{icon:tr},"Encrypted SMS/MMS":{icon:tr},"Private Payment":{icon:tr},"No Data Breaches":{icon:tr},"No Contract, $30 Trial":{icon:tr}},"AT&T":{"Nationwide Unlimited Talk, Text, and Data":{icon:tr},"Minimal Data Retention":{icon:ti,text:"Stored for years"},"SIM Swap Protection":{icon:ti,text:"Via Support Rep In Another Country"},"No Data Breaches":{icon:ti,text:"FOUR in the past THREE years"}},Verizon:{"Nationwide Unlimited Talk, Text, and Data":{icon:tr},"Minimal Data Retention":{icon:ti,text:"Stored for years"},"SIM Swap Protection":{icon:ti,text:"Via Support Rep In Another Country"},"No Data Breaches":{icon:ti,text:"SIX IN THE LAST THREE YEARS"}},"T-Mobile":{"Nationwide Unlimited Talk, Text, and Data":{icon:tr},"Minimal Data Retention":{icon:ti,text:"Stored for years"},"SIM Swap Protection":{icon:ti,text:"Via Support Rep In Another Country"},"No Data Breaches":{icon:ti,text:"SIX IN THE LAST SIX YEARS"}},"Google Fi":{"Nationwide Unlimited Talk, Text, and Data":{icon:tr},"Minimal Data Retention":{icon:ti,text:"Stored for years"},"SIM Swap Protection":{icon:ti,text:"Via Support Rep In Another Country"},"No Data Breaches":{icon:ti,text:"ONE major breach in 2022/2023"}},"Mint Mobile":{"Nationwide Unlimited Talk, Text, and Data":{icon:tr},"Minimal Data Retention":{icon:ti,text:"Stored for years"},"SIM Swap Protection":{icon:ti,text:"Via Support Rep In Another Country"},"No Data Breaches":{icon:ti,text:"TWO IN THE LAST THREE YEARS"}},Other:{"Nationwide Unlimited Talk, Text, and Data":{icon:tr},"Minimal Data Retention":{icon:ti,text:"Stored for years"},"SIM Swap Protection":{icon:ti,text:"Via Support Rep In Another Country"},"No Data Breaches":{icon:ti,text:"Frequent Major Breaches"}}},to={"AT&T":{logo:(0,x.jsx)("div",{className:"max-tablet:w-12",children:(0,x.jsx)(ta(),{src:"/assets/att-logo.png",width:78,height:32,alt:"AT&T Logo"})}),rows:["Nationwide Unlimited Talk, Text, and Data","Anonymous Signup","Identifier Rotation","Secondary Numbers","Minimal Data Retention","SIM Swap Protection","Enhanced Signaling Attack Protection","Encrypted SMS/MMS","Private Payment","No Data Breaches","No Contract, $30 Trial"]}
1,Verizon:{logo:(0,x.jsx)(ta(),{src:"/assets/verizon-logo.png",width:81,height:18,alt:"Verizon Logo",className:"min-w-[52px] relative top-[-2px]"}),rows:["Nationwide Unlimited Talk, Text, and Data","Anonymous Signup","Identifier Rotation","Secondary Numbers","Minimal Data Retention","SIM Swap Protection","Enhanced Signaling Attack Protection","Encrypted SMS/MMS","Private Payment","No Data Breaches","No Contract, $30 Trial"]},"T-Mobile":{logo:(0,x.jsx)(ta(),{src:"/svgs/t-mobile-logo.svg",width:86,height:18,alt:"T-Mobile Logo",className:"min-w-[52px] relative top-[-1px]"}),rows:["Nationwide Unlimited Talk, Text, and Data","Anonymous Signup","Identifier Rotation","Secondary Numbers","Minimal Data Retention","SIM Swap Protection","Enhanced Signaling Attack Protection","Encrypted SMS/MMS","Private Payment","No Data Breaches","No Contract, $30 Trial"]},"Google Fi":{logo:(0,x.jsx)(ta(),{src:"/assets/google-fi-logo.png",width:102,height:24,alt:"Google Fi Logo",className:"min-w-[52px]"}),rows:["Nationwide Unlimited Talk, Text, and Data","Anonymous Signup","Identifier Rotation","Secondary Numbers","Minimal Data Retention","SIM Swap Protection","Enhanced Signaling Attack Protection","Encrypted SMS/MMS","Private Payment","No Data Breaches","No Contract, $30 Trial"]},"Mint Mobile":{logo:(0,x.jsx)(ta(),{src:"/assets/mint-mobile-logo.png",width:107,height:20,alt:"Mint Mobile Logo",className:"min-w-[52px]"}),rows:["Nationwide Unlimited Talk, Text, and Data","Anonymous Signup","Identifier Rotation","Secondary Numbers","Minimal Data Retention","SIM Swap Protection","Enhanced Signaling Attack Protection","Encrypted SMS/MMS","Private Payment","No Data Breaches","No Contract, $30 Trial"]},Other:{logo:(0,x.jsx)("div",{className:"text-xl font-medium max-tablet:text-xs max-tablet:text-center",children:"Most Carriers"}),rows:["Nationwide Unlimited Talk, Text, and Data","Anonymous Signup","Identifier Rotation","Secondary Numbers","Minimal Data Retention","SIM Swap Protection","Enhanced Signaling Attack Protection","Encrypted SMS/MMS","Private Payment","No Data Breaches","No Contract, $30 Trial"]}},tc=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l}=e,s=to[null==a?void 0:a.currentNetwork];return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full max-w-[1208px] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center",children:[(0,x.jsxs)("div",{className:"h1-sans-serif text-center m-margin-lg tablet:mx-6x mt-0 desktop-xl:mx-[0px]",children:["Cape vs."," ",(null==a?void 0:a.currentNetwork)==="Other"?"Most Carriers":null==a?void 0:a.currentNetwork]}),(0,x.jsxs)("div",{className:"grid grid-cols-3 max-tablet:grid-cols-[1fr_min-content_min-content] bg-black p-px gap-px [&>*]:bg-white [&>*]:flex [&>*]:flex-col [&>*]:justify-center [&>*]:items-center [&>*]:p-2",children:[(0,x.jsx)("div",{className:"h-12"}),(0,x.jsx)("div",{className:"tablet:!items-start",children:(0,x.jsx)(H,{className:"fill-black w-16 max-tablet:w-12"})}),(0,x.jsx)("div",{className:"tablet:!items-start",children:s.logo}),s.rows.map(e=>{let t=tn.Cape[e],l=tn[null==a?void 0:a.currentNetwork][e];return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"!px-4 !items-start max-tablet:text-sm",children:e}),(0,x.jsx)("div",{className:"!flex-row !items-center !justify-center tablet:!justify-start gap-2",children:(null==t?void 0:t.icon)?(0,x.jsxs)(x.Fragment,{children:[t.icon,t.text&&(0,x.jsx)("div",{className:"mono max-tablet:hidden",children:t.text})]}):(null==t?void 0:t.text)?(0,x.jsx)("div",{className:"mono max-tablet:hidden",children:t.text}):ti}),(0,x.jsx)("div",{className:"!flex-row !items-center !justify-center tablet:!justify-start gap-2",children:(null==l?void 0:l.icon)?(0,x.jsxs)(x.Fragment,{children:[l.icon,l.text&&(0,x.jsx)("div",{className:"mono max-tablet:hidden",children:l.text})]}):(null==l?void 0:l.text)?(0,x.jsx)("div",{className:"mono max-tablet:hidden",children:l.text}):ti})]})})]}),(0,x.jsx)("div",{className:"w-full flex justify-center mt-12 max-tablet:mt-8",children:(0,x.jsx)(v.A,{className:"bg-purple",title:"Continue",onClick:()=>t({},!1),disabled:l})})]})},td=e=>{let{onCompleteStep:t}=e,[a,l]=S.useState();return(0,x.jsxs)(C.P.div,{...F.E0,className:"flex flex-col items-center w-[60%]",children:[(0,x.jsx)("div",{className:"text-5xl text-center pt-10",children:"How many people are you signing up?"}),(0,x.jsx)("div",{className:"text-xl text-center p-6",children:"Cape doesn't do family plans - each line is private and independent by design. Signing up with others? We'll send a one-time discount code for each person you invite"}),!a&&(0,x.jsx)(C.P.div,{className:"w-full flex flex-col items-center",...F.E0,children:(0,x.jsxs)(en,{className:"flex flex-wrap justify-center gap-10 p-10 pb-0 w-[80%]",onValueChange:e=>l(parseInt(e,10)),children:[(0,x.jsx)(eo,{className:"w-[calc((100%-".concat(2,"*40px)/").concat(3,")]"),label:"Just me",value:"1"}),(0,x.jsx)(eo,{className:"w-[calc((100%-".concat(2,"*40px)/").concat(3,")]"),label:"2 lines",value:"2"}),(0,x.jsx)(eo,{className:"w-[calc((100%-".concat(2,"*40px)/").concat(3,")]"),label:"3 lines",value:"3"}),(0,x.jsx)(eo,{className:"w-[calc((100%-".concat(2,"*40px)/").concat(3,")]"),label:"4 lines",value:"4"}),(0,x.jsx)(eo,{className:"w-[calc((100%-".concat(2,"*40px)/").concat(3,")]"),label:"5 lines",value:"5"}),(0,x.jsx)(eo,{className:"w-[calc((100%-".concat(2,"*40px)/").concat(3,")]"),label:"6 lines",value:"6"})]})}),a&&(0,x.jsxs)(C.P.div,{className:"w-full flex flex-col items-center",...F.E0,children:[(0,x.jsxs)("div",{className:"p-6 mb-10 bg-black text-white text-xl flex items-center justify-center",children:[a," lines"]}),(0,x.jsxs)("div",{className:"flex flex-col gap-4 border-[0.5px] bg-iris p-4 mb-5",children:[(0,x.jsx)("div",{children:"Great! We'll get your line set up now and send you discount codes by email for the others"}),(0,x.jsx)("input",{className:"w-full h-14 p-2 border-[0.5px]",placeholder:"Email",type:"email"}),(0,x.jsx)(v.A,{className:"ml-auto",title:"Submit",onClick:()=>t({numLines:a})})]}),(0,x.jsx)(v.A,{title:"Skip for now",onClick:()=>t({})})]})]})},tm=["Android","GrapheneOS","Other"],tu=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l}=e,[s,r]=S.useState(),i=(0,j.al)();return S.useEffect(()=>{i&&s&&window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[s]),(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center gap-2x tablet:gap-3x",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-[128px] desktop-xl:mx-[0px]",children:"What operating system are you\xa0using?"}),(0,x.jsx)("div",{className:"body tablet:body-md text-center",children:"Select the OS currently running on your device."}),(0,x.jsx)(en,{className:" flex flex-wrap justify-center gap-10 max-tablet:gap-5 max-tablet:p-0 ",onValueChange:e=>{r(e),t({operatingSystem:e})},disabled:l,children:tm.map(e=>(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] max-tablet:w-[calc((100%-20px)/2)] ",label:e,value:e}))})]})},tp=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l}=e,[s,r]=S.useState("");return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-1/2",children:[(0,x.jsxs)("div",{className:"text-5xl text-center pt-10 mb-10",children:["Please specify the model of your ",null==a?void 0:a.phoneMake," device"]}),(0,x.jsxs)("div",{className:"w-full flex flex-col items-center px-10",children:[(0,x.jsx)("input",{className:"w-full h-16 bg-transparent border-[0.5px] px-4",placeholder:"Device model",value:s,onChange:e=>r(e.target.value)}),(0,x.jsx)(v.A,{className:"mt-margin-lg",title:"Submit",onClick:()=>t({otherPhoneModel:s},!1),disabled:l})]})]})};var tx=a(37627),th=a(29071);let tg="My device is not listed",tb=e=>{var t;let{onCompleteStep:a,signupDisabled:l}=e,[s,r]=S.useState(""),[i,n]=S.useState(""),[o,c]=S.useState(!1),[d,m]=S.useState(null),u=S.useRef(null),p=S.useRef(null),h=(0,j.al)(),{enrollmentSettings:g}=(0,$.Sz)(),b=(null==g||null==(t=g.incompatibleDevices)?void 0:t.length)?g.incompatibleDevices:z,f=S.useMemo(()=>
1{if(!i.trim())return b;let e=i.toLowerCase();return b.filter(t=>t.toLowerCase().includes(e))},[b,i]);return S.useEffect(()=>{h&&s===U.Other&&window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[s,h]),S.useEffect(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center gap-2x tablet:gap-3x",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-[128px] desktop-xl:mx-[0px]",children:"What phone are you\xa0using?"}),(0,x.jsx)("div",{className:"body tablet:body-md text-center",children:"Cape requires a recent iOS or Android device that is eSIM compatible."}),(0,x.jsx)(en,{className:"flex flex-wrap justify-center gap-10 max-tablet:gap-5 max-tablet:p-0",onValueChange:e=>{if(e===U.Other){r(e),m(null),n(""),setTimeout(()=>{var e;return null==(e=p.current)?void 0:e.focus()},100);return}if(e===U.Unplugged)return void a({phoneMake:e,isDeviceNotListed:!1});a({phoneMake:e,operatingSystem:void 0,isDeviceNotListed:!1})},disabled:l,children:Y.map(e=>(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] max-tablet:w-[calc((100%-20px)/2)]",label:e,value:e},e))}),(0,x.jsx)(tx.N,{children:s===U.Other&&(0,x.jsx)(C.P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"w-full max-tablet:px-0 px-10 tablet:mt-2x",children:(0,x.jsxs)("div",{ref:u,className:"relative w-full",children:[(0,x.jsxs)("div",{className:"relative w-full",children:[(0,x.jsx)("input",{ref:p,className:"w-full h-16 bg-transparent border-[0.5px] border-primary px-4 pr-10 max-tablet:h-14 text-primary placeholder:text-primary/40 focus:outline-none",placeholder:"Search for your device",value:i,onChange:e=>{m(null),n(e.target.value),c(!0)},onFocus:()=>{d||c(!0)},onKeyDown:e=>{if("Escape"===e.key){var t;c(!1),null==(t=p.current)||t.blur()}},disabled:l}),i&&(0,x.jsx)("button",{className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 text-primary/60 hover:text-primary",onClick:()=>{var e;m(null),n(""),c(!1),null==(e=p.current)||e.focus()},type:"button","aria-label":"Clear search",children:(0,x.jsx)(th.A,{className:"w-[14px] h-[14px]"})})]}),o&&(0,x.jsxs)("div",{className:"mt-margin border-t-[0.5px] border-primary absolute z-10 w-full border-[0.5px] border-primary border-t-0 bg-[#EBEBEB] max-h-[280px] overflow-y-auto divide-y divide-[rgba(0,0,0,0.1)] shadow-[4px_4px_4px_0_rgba(0,0,0,0.10)]",children:[f.map(e=>(0,x.jsx)("button",{className:"w-full text-left px-4 py-3 text-primary hover:bg-[rgba(0,0,0,0.04)] cursor-pointer transition-colors body tablet:body-md",onClick:()=>(e=>{m(e),n(e),c(!1),a({phoneMake:U.Other,otherPhoneMake:e,isDeviceNotListed:!1})})(e),type:"button",children:e},e)),(0,x.jsx)("button",{className:"w-full text-left px-4 py-3 text-primary hover:bg-iris/30 cursor-pointer transition-colors body tablet:body-md border-t-[0.5px] border-primary/20",onClick:()=>{m(tg),n(tg),c(!1),a({phoneMake:U.Other,otherPhoneMake:tg,isDeviceNotListed:!0})},type:"button",children:tg})]})]})})})]})};var tf=a(34584);let tv=["iPhone 11, 12, 13, 14, 15, 16, or 17","iPhone Air","iPhone SE (2nd or 3rd gen)","iPhone XR, XS, or XS Max","My device is not listed"],ty=["Galaxy S26, S25, S24, S24+, S24 Ultra, S23, S23+, S23 Ultra, or S23 FE","Galaxy Z Fold 6, 7, or 8","Galaxy Z Flip 6, 7, or 8","My device is not listed"],tw=["Pixel 6, 7, 8, 9, or 10","Pixel Fold","My device is not listed"],tN=["Razr (2019 or newer)","Razr+ (2023 or newer)","Razr Ultra (2023 or newer)","Edge (2022 or newer)","My device is not listed"],tj=["Murena Fairphone 4, 5, or 6","My device is not listed"],tS=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l}=e,[s,r]=S.useState(""),[i,n]=S.useState(""),o=(0,j.al)(),{groupIds:c}=(0,tf.lX)();S.useEffect(()=>{o&&"My device is not listed"===s&&window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[s]);let d={[U.AppleIPhone]:tv,[U.GooglePixel]:tw,[U.SamsungGalaxy]:ty,Motorola:tN,Fairphone:tj}[null==a?void 0:a.phoneMake]||[],m={[U.AppleIPhone]:(0,x.jsxs)(x.Fragment,{children:["Not sure? Go to ",(0,x.jsx)("b",{children:"Settings > General > About > Model"})," on your iPhone to\xa0check."]}),[U.GooglePixel]:(0,x.jsxs)(x.Fragment,{children:["Not sure? Go to ",(0,x.jsx)("b",{children:"Settings > About Phone"})," on your device to\xa0check."]}),[U.SamsungGalaxy]:(0,x.jsxs)(x.Fragment,{children:["Not sure? Go to ",(0,x.jsx)("b",{children:"Settings > About Phone"})," on your device to\xa0check."]})}[null==a?void 0:a.phoneMake]||"";return(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[80%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center gap-2x tablet:gap-3x",children:[(0,x.jsxs)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-6x",children:["What is the model of your ",null==a?void 0:a.phoneMake,"\xa0device?"]}),m&&(0,x.jsx)("div",{className:"body tablet:body-md text-center",children:m}),(0,x.jsx)(en,{className:"flex flex-wrap justify-center gap-10 max-tablet:p-0 max-tablet:pb-10 max-tablet:gap-5 tablet:pb-3x",onValueChange:e=>{"My device is not listed"===e&&r(e),t({phoneModel:e})},disabled:l,children:d.map(e=>(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(eo,{className:"w-[calc((100%-1*40px)/2)] max-tablet:w-full",label:e,value:e})}))})]})};var tC=a(70041),tk=a(81558),tA=a(81506),tE=a(78963),tP=a(17962),tI=a(63739),tM=a(47332);tM.KQ.register({family:"FKGrotesk",fonts:[{src:"/fonts/FKGrotesk-Light.ttf",fontWeight:300},{src:"/fonts/FKGrotesk-Medium.ttf",fontWeight:500},{src:"/fonts/FKGrotesk-Bold.ttf",fontWeight:700}]}),tM.KQ.register({family:"FKGroteskMono",src:"/fonts/FKGroteskMono-Regular.ttf"});let tT=tM.vv.create({page:{fontFamily:"FKGrotesk",padding:16,fontSize:11}}),tD=e=>{let{otp:t,recoveryPhrase:a,paymentReceipt:l,qrDataUrl:s,activateUrl:r}=e,i=a.trim().split(" ");return(0,x.jsx)(tM.yo,{children:(0,x.jsxs)(tM.YW,{size:"A4",style:tT.page,children:[(0,x.jsx)(tM.Ss,{style:{backgroundColor:"#000",color:"#fff",padding:30,textAlign:"center",marginTop:-16,marginLeft:-16,marginRight:-16,marginBottom:20},children:(0,x.jsx)(tM.EY,{style:{fontSize:24,fontWeight:300},children:"Activate your Cape account"})}),(0,x.jsx)(tM.Ss,{style:{marginBottom:20},children:(0,x.jsxs)(tM.EY,{children:[(0,x.jsx)(tM.EY,{style:{fontWeight:500},children:"Important:"})," This file contains the encrypted credentials required to complete your account setup.",(0,x.jsxs)(tM.EY,{style:{fontWeight:500},children:[" ","Do not share or lose this information."]})]})}),(0,x.jsxs)(tM.Ss,{style:{flexDirection:"row",gap:10,marginBottom:20},children:[(0,x.jsxs)(tM.Ss,{style:{flex:1,border:"1px solid #000",padding:15,flexDirection:"column"},children:[(0,x.jsx)(tM.EY,{style:{color:"#666",fontSize:10,marginBottom:8,fontFamily:"FKGroteskMono"},children:"STEP 1"}),(0,x.jsx)(tM.EY,{style:{fontSize:11},children:"Save this PDF and store it securely. It's the only way to access your account."})]}),(0,x.jsxs)(tM.Ss,{style:{flex:1,border:"1px solid #000",padding:15,flexDirection:"column"},children:[(0,x.jsx)(tM.EY,{style:{color:"#666",fontSize:10,marginBottom:8,fontFamily:"FKGroteskMono"},children:"STEP 2"}),(0,x.jsx)(tM.EY,{style:{fontSize:11},children:"Download the Cape app."}),(0,x.jsxs)(tM.Ss,{style:{marginTop:8,gap:6},children:[(0,x.jsx)(tM.N_,{src:"https://apps.apple.com/us/app/cape-mobile/id6476564038",children:(0,x.jsx)(tM._V,{src:"/assets/ios-download.png",style:{width:100,height:"auto"}})}),(0,x.jsx)(tM.N_,{src:"https://play.google.com/store/apps/details?id=co.cape.matrix",children:(0,x.jsx)(tM._V,{src:"/assets/android-download.png",style:{width:100,height:"auto"}})}),(0,x.jsx)(tM.N_,{src:"https://accrescent.app/",style:{fontSize:8,textDecoration:"underline",marginTop:4,color:"#000"},children:"Also available on Accrescent"})]})]}),(0,x.jsxs)(tM.Ss,{style:{flex:1,border:"1px solid #000",padding:15,flexDirection:"column",justifyContent:"space-between"},children:[(0,x.jsxs)(tM.Ss,{children:[(0,x.jsx)(tM.EY,{style:{color:"#666",fontSize:10,marginBottom:8,fontFamily:"FKGroteskMono"},children:"STEP 3"}),(0,x.jsx)(tM.EY,{style:{fontSize:11},hyphenationCallback:e=>[e],children:'Tap "Activate Now" below to open the Cape app and complete activation.'})]}),(0,x.jsxs)(tM.Ss,{style:{marginTop:12,marginBottom:12},children:[(0,x.jsx)(tM.EY,{style:{fontSize:10,marginBottom:4},children:"Access code"}),(0,x.jsx)(tM.EY,{style:{fontSize:16,fontFamily:"FKGroteskMono",fontWeight:700},children:t})]}),(0,x.jsx)(tM.N_,{src:r,style:{backgroundColor:"#9B8EDC",color:"#000",padding:"10px",textAlign:"center",fontFamily:"FKGroteskMono",fontSize:8,textDecoration:"none",marginTop:"auto"},children:"ACTIVATE NOW"})]})]}),(0,x.jsx)(tM.Ss,{style:{marginBottom:15,fontSize:11},children:(0,x.jsxs)(tM.EY,{children:['If the "Activate Now" button doesn\'t work, or if you are activating on a different device, use one of these simple options inside the Cape app. For more help, visit our'," ",(0,x.jsx)(tM.N_,{src:"https://support.cape.co/hc/en-gb/articles/39618535918484-Web-Checkout-Activation",style:{color:"#000",textDecoration:"underline"},children:"support article"}),"."]})}),(0,x.jsxs)(tM.Ss,{style:{flexDirection:"row",gap:15,marginBottom:15},children:[(0,x.jsxs)(tM.Ss,{style:{flex:1,border:"0.5px solid #000",padding:15},children:[(0,x.jsx)(tM.EY,{style:{fontSize:14,fontWeight:500,marginBottom:8},children:"Scan your QR Code"}),(0,x.jsx)(tM.EY,{style:{fontSize:10,marginBottom:12},children:"Inside the Cape app, scan your QR Code (via the Activate my Account section) and enter your unique Access Code."}),(0,x.jsxs)(tM.Ss,{style:{flexDirection:"column",alignItems:"flex-start",ga
1p:15},children:[(0,x.jsx)(tM._V,{src:s,style:{width:80,height:80}}),(0,x.jsxs)(tM.Ss,{children:[(0,x.jsx)(tM.EY,{style:{fontSize:10,marginBottom:4},children:"Access code"}),(0,x.jsx)(tM.EY,{style:{fontSize:16,fontFamily:"FKGroteskMono",fontWeight:700},children:t})]})]})]}),(0,x.jsx)(tM.Ss,{style:{flexDirection:"column",justifyContent:"center"},children:(0,x.jsx)(tM.EY,{style:{fontSize:12},children:"or"})}),(0,x.jsxs)(tM.Ss,{style:{flex:1,border:"0.5px solid #000",padding:15},children:[(0,x.jsx)(tM.EY,{style:{fontSize:14,fontWeight:500,marginBottom:8},children:"Enter your Recovery Phrase"}),(0,x.jsx)(tM.EY,{style:{fontSize:10,marginBottom:12},children:"Inside the Cape app, go to the Activate my Account section, choose “Have recovery phrase?” and carefully enter your phrase."}),(0,x.jsx)(tM.Ss,{style:{flexDirection:"row",flexWrap:"wrap",gap:8,rowGap:8},children:i.map((e,t)=>(0,x.jsxs)(tM.Ss,{style:{backgroundColor:"#DCE8E8",padding:"4px 8px",borderRadius:3,fontSize:8,flexDirection:"row",gap:4},children:[(0,x.jsxs)(tM.EY,{style:{color:"#666"},children:[t+1,"."]}),(0,x.jsx)(tM.EY,{children:e})]},t))})]})]}),(null==l?void 0:l.id)&&(0,x.jsxs)(tM.EY,{style:{textAlign:"center",fontFamily:"FKGroteskMono",fontSize:10,marginTop:20},children:["RECEIPT #",l.id]})]})})},tF=async e=>{let{otp:t,recoveryPhrase:a,paymentReceipt:l,activateUrl:s}=e,r=await tI.toDataURL(s,{width:200,margin:2,errorCorrectionLevel:"M",color:{dark:"#000000",light:"#FFFFFF"}}),i=await (0,tM.x8)((0,x.jsx)(tD,{otp:t,recoveryPhrase:a,paymentReceipt:l,qrDataUrl:r,activateUrl:s})).toBlob(),n=URL.createObjectURL(i),o=document.createElement("a");o.href=n,o.download="cape-activation-kit.pdf",o.click(),URL.revokeObjectURL(n)},tR=(e,t)=>window.location.host.endsWith(".vercel.app")?"".concat(window.location.origin,"/deeplinks/app/checkout?seed_id=").concat(encodeURIComponent(e)).concat(t?"&msisdn_to_transfer=".concat(encodeURIComponent(t)):""):"".concat((0,tA.d)(),"/deeplinks/app/checkout?seed_id=").concat(encodeURIComponent(e)).concat(t?"&msisdn_to_transfer=".concat(encodeURIComponent(t)):""),tO=e=>{var t;let{seedId:a,otp:l,msisdnToTransfer:s,recoveryPhrase:r,paymentReceipt:i}=e,n=tR(a,s);return(0,x.jsxs)("div",{className:"max-w-container mx-auto w-full flex-col p-4 hidden print:flex print:[color-adjust:exact] print:[-webkit-print-color-adjust:exact]",children:[(0,x.jsx)("div",{className:"mb-5",children:(0,x.jsxs)("div",{className:"mb-2",children:[(0,x.jsx)("span",{className:"font-medium",children:"Important:"})," This file contains the encrypted credentials required to complete your account setup."," ",(0,x.jsx)("span",{className:"font-medium",children:"Do not share or lose this information."})]})}),(0,x.jsxs)("div",{className:"flex gap-3 mb-5",children:[(0,x.jsxs)("div",{className:"flex-1 border border-black p-4 flex flex-col",children:[(0,x.jsx)("div",{className:"text-xs text-gray-600 mb-2 font-mono",children:"STEP 1"}),(0,x.jsx)("div",{className:"text-sm",children:"Save this PDF and store it securely. It's the only way to access your account."})]}),(0,x.jsxs)("div",{className:"flex-1 border border-black p-4 flex flex-col",children:[(0,x.jsx)("div",{className:"text-xs text-gray-600 mb-2 font-mono",children:"STEP 2"}),(0,x.jsx)("div",{className:"text-sm mb-2",children:"Download the Cape app."}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 mt-2",children:[(0,x.jsx)("a",{href:"https://apps.apple.com/us/app/cape-mobile/id6476564038",children:(0,x.jsx)("img",{src:"/assets/ios-download.png",alt:"Download on App Store",className:"w-[100px] h-auto"})}),(0,x.jsx)("a",{href:"https://play.google.com/store/apps/details?id=co.cape.matrix",children:(0,x.jsx)("img",{src:"/assets/android-download.png",alt:"Get it on Google Play",className:"w-[100px] h-auto"})}),(0,x.jsx)("a",{href:"https://accrescent.app/",className:"text-xs underline text-black",children:"Also available on Accrescent"})]})]}),(0,x.jsxs)("div",{className:"flex-1 border border-black p-4 flex flex-col gap-2",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"text-xs text-gray-600 mb-2 font-mono",children:"STEP 3"}),(0,x.jsx)("div",{className:"text-sm",children:'Tap "Activate Now" below to open the Cape app and complete activation.'})]}),(0,x.jsxs)("div",{className:"flex flex-col",children:[(0,x.jsx)("div",{className:"text-xs",children:"Access code"}),(0,x.jsx)("div",{className:"text-base font-mono",children:l})]}),(0,x.jsx)("a",{href:n,className:"bg-[#9B8EDC] text-black py-3 px-4 text-center font-mono text-xs no-underline block",children:"ACTIVATE NOW"})]})]}),(0,x.jsxs)("div",{className:"mb-4 text-sm",children:['If the "Activate Now" button doesn\'t work, or if you are activating on a different device, use one of these simple options inside the Cape app. For more help visit our'," ",(0,x.jsx)("a",{href:"https://support.cape.co/hc/en-gb/articles/39618535918484-Web-Checkout-Activation",className:"underline text-black",children:"support article"}),"."]}),(0,x.jsxs)("div",{className:"flex gap-4 mb-4",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 text-lg p-margin border-[0.5px] flex-1 min-w-[280px] print:max-w-[500px] print:mx-auto",children:[(0,x.jsx)("div",{className:"text-base font-medium",children:"Scan your QR Code"}),(0,x.jsx)("div",{className:"text-xs",children:"Inside the Cape app, scan your QR Code (via the Activate my Account section) and enter your unique Access Code."}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(tP.h,{className:"w-20 h-20",value:n}),(0,x.jsxs)("div",{className:"flex flex-col",children:[(0,x.jsx)("div",{className:"text-xs",children:"Access code"}),(0,x.jsx)("div",{className:"text-base font-mono",children:l})]})]})]}),(0,x.jsx)("div",{className:"flex h-full items-center",children:"or"}),(0,x.jsxs)("div",{className:"flex flex-col gap-3 text-lg p-margin border-[0.5px] flex-1 min-w-[280px] print:max-w-[500px] print:mx-auto",children:[(0,x.jsx)("div",{className:"text-base font-medium",children:"Enter your Recovery Phrase"}),(0,x.jsx)("div",{className:"text-xs",children:"Inside the Cape app, go to the Activate my Account section, choose “Have recovery phrase?” and carefully enter your phrase."}),(0,x.jsx)("div",{className:"flex flex-wrap gap-2",style:{rowGap:"8px"},children:r.split(" ").map((e,t)=>(0,x.jsxs)("div",{className:"flex gap-2 items-center px-2 py-1 rounded-[4px] bg-[var(--ether-light)] text-xs",children:[t+1," ",e]},e))})]})]}),(0,x.jsxs)("div",{className:"flex text-mono justify-center mt-5",children:["RECEIPT #",null!=(t=null==i?void 0:i.id)?t:""]})]})},tL=e=>{var t,a;let{answers:l,recoveryPhrase:s}=e,[r,i]=(0,k.fp)(I),[n,o]=(0,k.fp)(M),[c,d]=S.useState(!1),[m,u]=S.useState(!1),[p,h]=S.useState(),[f,y]=S.useState(!1),[w,N]=S.useState("idle"),A=S.useRef(),{settings:E}=(0,$.Sz)(),P=(0,j.al)();S.useEffect(()=>{(async()=>{y(!0);try{var e,t,a,c,d,m,u,p;let x=null==(a=(null!=(c=null==(t=(await g.A.listPayments()).data)||null==(e=t.payments)?void 0:e.payments)?c:[]).filter(e=>{var t;return(null==(t=e.paymentInformation)?void 0:t.paymentStatus)===tC.dX.SUCCEEDED}).sort((e,t)=>
1{var a,l,s,r,i,n;let o=Number(null!=(i=null==e||null==(l=e.paymentInformation)||null==(a=l.paymentDate)?void 0:a.seconds)?i:0);return Number(null!=(n=null==t||null==(r=t.paymentInformation)||null==(s=r.paymentDate)?void 0:s.seconds)?n:0)-o})[0])?void 0:a.receipt;if(x&&h(x),!r||!n){let e=(0,tk.dv)(12);o(e);let t=await g.A.createEncryptedSeedPhrase(s,e);(null==(d=t.data)?void 0:d.seedId)&&(i(null==(m=t.data)?void 0:m.seedId),l.checkoutEmail&&await g.A.emailActivationKit(l.checkoutEmail,e,t.data.seedId,!0,null!=(u=null==x?void 0:x.id)?u:"",null!=(p=l.msisdnToTransfer)?p:""))}}catch(e){eh.A.error(e,{message:"Failed to initialize encrypted seed phrase"})}finally{y(!1)}})()},[]),S.useEffect(()=>{let e=e=>{d(!0),e.preventDefault()};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),A.current&&clearTimeout(A.current)}},[]),S.useEffect(()=>("sent"===w&&(A.current=setTimeout(()=>N("idle"),3e4)),()=>{A.current&&clearTimeout(A.current)}),[w]);let T=async()=>{try{await tF({otp:n,recoveryPhrase:s,paymentReceipt:p,activateUrl:tR(r,l.msisdnToTransfer)})}catch(e){eh.A.warning(e,{message:"Generate activation kit PDF failed"});try{window.print()}catch(e){eh.A.error(e,{message:"Print activation kit failed"})}}finally{u(!0)}},D=async()=>{if("sending"!==w){N("sending");try{if(l.checkoutEmail){var e,t;let a=await g.A.emailActivationKit(l.checkoutEmail,n,r,!0,null!=(e=null==p?void 0:p.id)?e:"",null!=(t=l.msisdnToTransfer)?t:"");
1if(void 0!==a.error)throw{description:"Failed to send email"};b.oR.success("Activation Kit sent successfully!"),N("sent")}}catch(e){b.oR.error("Failed to send email. Please try again."),N("idle")}}};return f?(0,x.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,x.jsx)(J.A,{})}):P?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"relative w-full bg-black text-white",children:[(0,x.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_100%_80%_at_40%_100%,_rgba(155,142,220,0.70)_0%,_transparent_70%)] pointer-events-none"}),(0,x.jsxs)(C.P.div,{...F.E0,className:"relative max-w-container mx-auto w-full print:hidden flex flex-col px-margin-lg",children:[(0,x.jsx)("div",{className:"h1 pt-4",children:"Welcome to Cape!"}),(0,x.jsxs)("div",{className:"body-1 mt-5",children:["Your Activation Kit has been sent to ",(0,x.jsx)("span",{className:"font-normal",children:l.checkoutEmail}),". This kit includes the unique credentials you need to finalize your setup and activate your service."]}),(0,x.jsxs)("div",{className:"flex flex-col gap-4 mt-5",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"mono mb-2",children:"RECEIPT NUMBER"}),(0,x.jsxs)("div",{className:"mono-lg",children:["#",null!=(t=null==p?void 0:p.id)?t:""]})]}),(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"mono mb-2",children:"TOTAL PAID"}),(0,x.jsx)("div",{className:"mono-lg",children:eu(null==p?void 0:p.total)})]})]}),(0,x.jsxs)("div",{className:"body-1 mt-5",children:["Not seeing the email? First, check your spam folder. If it's still missing, ",(0,x.jsx)("button",{onClick:D,disabled:"idle"!==w,className:"underline disabled:opacity-50 disabled:cursor-not-allowed font-medium",children:"re-send your Activation Kit"})," or download the kit directly as a secure PDF."]}),(0,x.jsx)(v.A,{title:"DOWNLOAD ACTIVATION KIT",icon:m?(0,x.jsx)(ey.A,{className:"ml-2 h-5"}):(0,x.jsx)(tE.A,{className:"ml-2 h-5"}),onClick:T,background:"var(--black)",textColor:"var(--white)",borderColor:"var(--white)",highlightBorderColor:"var(--purple)",className:"mt-5 mb-5"}),c&&(0,x.jsx)("div",{className:"mb-4",children:(0,x.jsx)(L,{message:"Please ensure you have access to your Activation Kit before leaving",description:"We will not show this information to you again"})}),(0,x.jsx)("div",{className:"flex flex-col items-center justify-end w-full pb-0 mt-10",children:(0,x.jsx)("img",{src:"/assets/welcome-to-cape-phone-mobile.png",alt:"Welcome to Cape phone",className:"w-full max-w-[300px] h-auto object-contain object-bottom"})})]})]}),(0,x.jsx)(tO,{seedId:r,otp:n,recoveryPhrase:s,msisdnToTransfer:l.msisdnToTransfer,paymentReceipt:p}),(0,x.jsx)("div",{className:"print:hidden w-full",children:(0,x.jsx)(ee.A,{settings:E,page:{hideNewsletterSignup:!0}})})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"relative w-full bg-black text-white",children:[(0,x.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_100%_80%_at_85%_80%,_rgba(155,142,220,0.70)_0%,_transparent_70%)] pointer-events-none"}),(0,x.jsxs)(C.P.div,{...F.E0,className:"relative grid grid-cols-[1fr_1fr] w-full max-w-container mx-auto pl-margin-lg max-desktop-xl:flex max-desktop-xl:flex-col max-desktop-xl:px-margin-lg print:hidden",children:[(0,x.jsxs)("div",{className:"flex flex-col text-left pt-8",children:[(0,x.jsx)("div",{className:"h1-sans-serif mt-[-0.25rem] mb-[-0.5rem]",children:"Welcome to Cape!"}),(0,x.jsxs)("div",{className:"body-xl mt-8",children:["Your Activation Kit has been sent to ",(0,x.jsx)("span",{className:"font-normal",children:l.checkoutEmail}),". This kit includes the unique credentials you need to finalize your setup and activate your service."]}),(0,x.jsxs)("div",{className:"flex flex-col gap-4 mt-8",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"mono mb-2",children:"RECEIPT NUMBER"}),(0,x.jsxs)("div",{className:"mono-xl",children:["#",null!=(a=null==p?void 0:p.id)?a:""]})]}),(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"mono mb-2",children:"TOTAL PAID"}),(0,x.jsx)("div",{className:"mono-xl",children:eu(null==p?void 0:p.total)})]})]}),(0,x.jsxs)("div",{className:"body-1 mt-8",children:["Not seeing the email? First, check your spam folder. If it's still missing, ",(0,x.jsx)("button",{onClick:D,disabled:"idle"!==w,className:"underline disabled:opacity-50 disabled:cursor-not-allowed font-medium",children:"re-send your Activation Kit"})," or download the kit directly as a secure PDF."]}),(0,x.jsx)(v.A,{title:"DOWNLOAD ACTIVATION KIT",icon:m?(0,x.jsx)(ey.A,{className:"ml-2 h-5"}):(0,x.jsx)(tE.A,{className:"ml-2 h-5"}),onClick:T,background:"var(--black)",textColor:"var(--white)",borderColor:"var(--white)",highlightBorderColor:"var(--purple)",className:"mt-8 mb-8 max-desktop-xl: align-middle"}),c&&(0,x.jsx)("div",{className:"mb-8",children:(0,x.jsx)(L,{message:"Please ensure you have access to your Activation Kit before leaving",description:"We will not show this information to you again"})})]}),(0,x.jsx)("div",{className:"flex flex-col items-center justify-end pb-0 max-desktop-xl:mt-10",children:(0,x.jsx)("img",{src:"/assets/welcome-to-cape-phone.png",alt:"Welcome to Cape phone",className:"w-full max-w-[400px] h-auto object-contain object-bottom"})})]})]}),(0,x.jsx)(tO,{seedId:r,otp:n,recoveryPhrase:s,msisdnToTransfer:l.msisdnToTransfer,paymentReceipt:p}),(0,x.jsx)("div",{className:"print:hidden w-full",children:(0,x.jsx)(ee.A,{settings:E,page:{hideNewsletterSignup:!0}})})]})},tB=["Friends or Family","Instagram/Facebook","Google","Brave","DuckDuckGo / Bing","Mozilla Firefox","AI","News Publication","Youtube","Podcast","Reddit","TV / Streaming","Other"],t_=e=>{let{onCompleteStep:t}=e,[a,l]=S.useState([]),[s,r]=S.useState(""),i=(0,j.al)();return S.useEffect(()=>{i&&a.includes("Other")&&window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[a]),(0,x.jsxs)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[70%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center gap-2x tablet:gap-3x",children:[(0,x.jsx)("div",{className:"h1-sans-serif text-center mx-margin-lg tablet:mx-[128px] desktop-xl:mx-[0px]",children:"How did you hear about\xa0us?"}),(0,x.jsx)("div",{className:"body tablet:body-md text-center",children:"Select all that apply"}),(0,x.jsx)("div",{className:"flex flex-wrap justify-center gap-5",children:tB.map(e=>{let t=a.includes(e);return(0,x.jsxs)("button",{type:"button",onClick:()=>(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e),className:(0,q.A)("relative min-h-14 p-2 border-[0.5px] text-lg border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring cursor-pointer","w-[calc((100%-2*20px)/3)
1] max-tablet:w-full",!i&&"hover:bg-iris"),children:[t&&(0,x.jsx)("div",{className:"absolute top-0 left-0 h-full w-full bg-purple z-[1]"}),(0,x.jsx)("span",{className:"relative z-[2] cursor-pointer",children:e})]},e)})}),a.includes("Other")&&(0,x.jsx)("div",{className:"w-full flex flex-col items-center px-10 max-tablet:p-0 max-tablet:py-5 tablet:mt-4x",children:(0,x.jsx)("input",{className:"w-full h-16 bg-transparent border-[0.5px] px-4 max-tablet:h-14",placeholder:"Please specify",value:s,onChange:e=>r(e.target.value)})}),(0,x.jsxs)("div",{className:"flex w-full justify-center gap-5 flex-wrap mt-4 mb-margin-lg",children:[(0,x.jsx)(v.A,{title:"Skip",onClick:()=>{t({},!1)}}),a.length>0&&(0,x.jsx)(v.A,{title:"Submit",onClick:()=>{t({howDidYouHear:a,howDidYouHearOther:a.includes("Other")?s:void 0},!1)},background:"var(--black)",textColor:"var(--white)"})]})]})};var tU=a(3172);function tY(){return(tY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tz=function(e){return S.createElement("svg",tY({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 120 40.5"},e),n||(n=S.createElement("rect",{width:119.5,height:39.5,x:.25,y:.25,fill:"#FFFF",rx:5.75})),o||(o=S.createElement("rect",{width:119.5,height:39.5,x:.25,y:.25,stroke:"#000",rx:5.75,vectorEffect:"non-scaling-stroke"})),c||(c=S.createElement("path",{fill:"#EA4335",d:"M17.805 19.462 8.09 30.006l.001.006C8.39 31.158 9.411 32 10.625 32c.486 0 .941-.134 1.332-.37l.03-.018 10.936-6.453z"})),d||(d=S.createElement("path",{fill:"#FBBC04",d:"m27.633 17.664-.01-.006-4.72-2.799-5.32 4.84 5.339 5.457 4.695-2.77A2.7 2.7 0 0 0 29 20.02a2.69 2.69 0 0 0-1.367-2.356"})),m||(m=S.createElement("path",{fill:"#4285F4",d:"M8.09 9.995a2.7 2.7 0 0 0-.09.69v18.633q0 .36.09.69L18.14 19.733z"})),u||(u=S.createElement("path",{fill:"#34A853",d:"m17.877 20 5.027-5.14-10.922-6.476A2.6 2.6 0 0 0 10.626 8c-1.214 0-2.237.845-2.536 1.99v.003z"})),p||(p=S.createElement("path",{fill:"#000",d:"M43.61 11.71q0 1.5-.89 2.39-1 1.06-2.63 1.06-1.56 0-2.64-1.08t-1.08-2.66 1.08-2.66 2.64-1.08q.79 0 1.49.28t1.15.79l-.66.66a2.2 2.2 0 0 0-.86-.62 2.7 2.7 0 0 0-1.12-.23q-1.17 0-1.98.81-.8.82-.8 2.05t.8 2.05q.81.81 1.98.81 1.07 0 1.78-.6t.82-1.65h-2.6v-.86h3.47q.05.28.05.54m5.298-3.87v.88h-3.26v2.27h2.94v.86h-2.94v2.27h3.26V15h-4.18V7.84zm3.68.88V15h-.92V8.72h-2v-.88h4.92v.88zM58.665 15h-.92V7.84h.92zm3.884-6.28V15h-.92V8.72h-2v-.88h4.92v.88zm11.972 2.7q0 1.59-1.06 2.66-1.07 1.08-2.62 1.08-1.56 0-2.62-1.08-1.06-1.07-1.06-2.66t1.06-2.66q1.06-1.08 2.62-1.08t2.62 1.09q1.06 1.07 1.06 2.65m-6.42 0q0 1.24.78 2.05.79.81 1.96.81t1.95-.81q.79-.8.79-2.05t-.79-2.05q-.78-.81-1.95-.81t-1.96.81q-.78.81-.78 2.05M76.527 15h-.92V7.84h1.12l3.48 5.57h.04l-.04-1.38V7.84h.92V15h-.96l-3.64-5.84h-.04l.04 1.38zM93.518 31.41h1.629V20.398h-1.629zm14.671-7.045-1.867 4.774h-.056l-1.938-4.774h-1.755l2.906 6.672-1.656 3.712h1.698L110 24.365zm-9.237 5.794c-.534 0-1.278-.269-1.278-.936 0-.849.926-1.175 1.726-1.175.716 0 1.054.156 1.489.369-.127 1.02-.997 1.742-1.937 1.742m.196-6.035c-1.179 0-2.401.524-2.906 1.686l1.446.609c.309-.609.884-.808 1.488-.808.843 0 1.699.51 1.713 1.417v.113c-.295-.17-.926-.424-1.699-.424-1.558 0-3.145.864-3.145 2.478 0 1.474 1.278 2.423 2.71 2.423 1.095 0 1.699-.495 2.078-1.077h.056v.85h1.572V27.17c0-1.954-1.446-3.045-3.313-3.045m-10.066 1.581h-2.316v-3.774h2.316c1.218 0 1.91 1.017 1.91 1.887 0 .853-.692 1.887-1.91 1.887m-.042-5.307h-3.903V31.41h1.629v-4.172h2.274c1.805 0 3.58-1.32 3.58-3.42 0-2.101-1.775-3.42-3.58-3.42m-21.282 9.763c-1.125 0-2.067-.95-2.067-2.256 0-1.32.942-2.285 2.067-2.285 1.112 0 1.983.965 1.983 2.285 0 1.305-.871 2.256-1.983 2.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857 0-3.558 1.646-3.558 3.76 0 2.1 1.701 3.733 3.558 3.733.886 0 1.588-.397 1.954-.852h.057v.54c0 1.433-.76 2.2-1.983 2.2-.999 0-1.618-.724-1.87-1.335l-1.421.596c.408.994 1.49 2.214 3.29 2.214 1.913 0 3.53-1.135 3.53-3.902V24.37H69.63zm2.673 6.429h1.631V20.397h-1.631zm4.035-3.633c-.042-1.447 1.111-2.185 1.94-2.185.648 0 1.197.326 1.379.794zm5.063-1.249c-.31-.837-1.252-2.384-3.178-2.384-1.913 0-3.501 1.518-3.501 3.747 0 2.1 1.574 3.746 3.683 3.746 1.702 0 2.687-1.05 3.095-1.66l-1.266-.852c-.422.624-.999 1.036-1.829 1.036s-1.42-.384-1.8-1.135l4.964-2.073zM41.85 25.294v1.589h3.768c-.112.894-.407 1.547-.857 2-.549.554-1.407 1.165-2.91 1.165-2.322 0-4.136-1.888-4.136-4.23 0-2.341 1.814-4.228 4.135-4.228 1.252 0 2.166.497 2.84 1.135l1.112-1.121C44.859 20.696 43.608 20 41.85 20 38.672 20 36 22.612 36 25.819s2.672 5.818 5.85 5.818c1.715 0 3.009-.568 4.021-1.632 1.042-1.05 1.365-2.526 1.365-3.718 0-.37-.028-.71-.085-.993zm9.67 4.867c-1.124 0-2.095-.937-2.095-2.27 0-1.349.97-2.271 2.096-2.271 1.124 0 2.095.922 2.095 2.27 0 1.334-.97 2.27-2.095 2.27m0-6.017c-2.053 0-3.726 1.575-3.726 3.747 0 2.157 1.673 3.746 3.727 3.746s3.726-1.59 3.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13 6.017c-1.125 0-2.096-.937-2.096-2.27 0-1.349.97-2.271 2.096-2.271 1.125 0 2.095.922 2.095 2.27 0 1.334-.97 2.27-2.095 2.27m0-6.017c-2.053 0-3.726 1.575-3.726 3.747 0 2.157 1.673 3.746 3.726 3.746s3.726-1.59 3.726-3.746c0-2.172-1.673-3.747-3.726-3.747"}
1)))},tV=a(17464).Yj().email("Please enter a valid email address"),tG=e=>{let{onCompleteStep:t,answers:a,signupDisabled:l}=e,[s,r]=S.useState(""),[i,n]=S.useState(null),{trackEvent:o}=(0,N.H)();return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(C.P.div,{...F.E0,className:"w-full desktop-xl:w-[50%] p-margin-lg pt-6x tablet:pt-margin-lg flex flex-col items-center",children:(0,x.jsxs)("div",{className:"flex flex-col tablet:text-center w-full",children:[(0,x.jsx)("div",{className:"h1-sans-serif mt-[-0.25rem] mb-[-0.5rem]",children:"Where can we send your Activation Kit?"}),(0,x.jsx)("div",{className:"mt-5 font-light",children:"Your Activation Kit includes the credentials required to complete setup on your device."}),(0,x.jsx)("input",{className:"w-full bg-transparent border-[1px] px-2 focus:outline-none focus:border-2 focus:border-purple h-button rounded-none mt-5",style:{borderColor:i?"#ef4444":void 0},placeholder:"Enter email address",value:s,onChange:e=>{r(e.target.value),n(null)},"aria-label":"Checkout email"}),(0,x.jsx)(v.A,{title:"CONTINUE TO PRIVATE PAYMENT",type:"submit",background:"var(--purple)",textColor:"var(--black)",className:"mt-3 w-full",style:{width:"100%"},disabled:l,onClick:()=>{let e=(e=>{var t;let a=tV.safeParse(e);return{isValid:a.success,error:a.success||null==(t=a.error.errors[0])?void 0:t.message}})(s);e.isValid?(o(f.$I.BetaFormCheckoutEmailSubmitted,{checkoutEmail:s}),t({checkoutEmail:s},!1)):n(e.error||"Please enter a valid email address")}}),i&&(0,x.jsxs)("div",{className:"text-sm text-left mt-3",style:{color:"#ef4444"},children:[i,"."]}),(0,x.jsx)("div",{className:"body-1 mt-3 text-left",children:"The email address you provide is only sent to our server upon successful payment in the next step. It is used only to send your Activation Kit and is NOT retained on our servers."}),(0,x.jsx)("div",{className:"relative w-full border-b mt-8",style:{borderColor:"#A3A3A3"},children:(0,x.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-white px-4 font-normal whitespace-nowrap",children:"Or sign up in the app"})}),(0,x.jsx)("div",{className:"body-1 mt-8 text-left",children:"If you prefer not to provide an email address, you can sign up directly in the Cape mobile app."}),(0,x.jsxs)("div",{className:"w-full flex flex-col tablet:flex-row items-start tablet:items-end gap-2x mt-5",children:[(!(null==a?void 0:a.phoneMake)||a.phoneMake===U.AppleIPhone)&&(0,x.jsx)("a",{href:"https://apps.apple.com/us/app/cape-mobile/id6476564038",target:"_blank",rel:"noopener noreferrer","data-no-underline":!0,children:(0,x.jsx)(tU.A,{width:"144",height:"48",viewBox:"0 0 120 40"})}),(!(null==a?void 0:a.phoneMake)||a.phoneMake!==U.AppleIPhone)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("a",{href:"https://play.google.com/store/apps/details?id=co.cape.matrix",target:"_blank",rel:"noopener noreferrer","data-no-underline":!0,children:(0,x.jsx)(tz,{width:"144",height:"48",viewBox:"0 0 120 40"})}),(0,x.jsxs)("div",{className:"text-sm",children:["Also available on"," ",(0,x.jsx)("a",{href:"https://accrescent.app/",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Accrescent"})]})]})]})]})})})},tW="tab-with-lock",tH=crypto.randomUUID(),tK=function(){let[e,t]=S.useState(!1),[a,l]=S.useState(!0),[s,r]=S.useState({}),i=S.useRef();return S.useEffect(()=>{let e,a=new BroadcastChannel("tab-sync");i.current=a,a.onmessage=e=>{switch(e.data.type){case"TAB_ALIVENESS_CHECK":e.data.tabId===tH&&a.postMessage({type:"TAB_ALIVENESS_ACK",tabId:tH});break;case"TAB_ALIVENESS_ACK":r(t=>({...t,[e.data.tabId]:Date.now()}));break;case"FORCE_CLAIM_TAB_LOCK":t(!1)}};let s=localStorage.getItem(tW);if(s){let i=Date.now();a.postMessage({type:"TAB_ALIVENESS_CHECK",tabId:s}),e=setTimeout(()=>{r(e=>(e[s]>i?t(!1):(t(!0),localStorage.setItem(tW,tH)),l(!1),e))},100)}else t(!0),l(!1),localStorage.setItem(tW,tH);return()=>{clearTimeout(e),a.close()}},[]),{isLoading:a,hasTabLock:e,forceClaimTabLock:()=>{i.current&&(i.current.postMessage({type:"FORCE_CLAIM_TAB_LOCK",tabId:tH}),localStorage.setItem(tW,tH),t(!0))}}},tq="skipToSetup",tZ="/get-cape/enroll/ineligible",tQ="/get-cape/enroll/not-eligible-yet",t$="signups-unavailable",tX=B.CurrentNetwork,tJ=[B.QrC
1ode,B.CompleteSetupLater,B.BuyoutAccepted,B.Ineligible,B.NotEligibleYet],t0=[B.QrCode,B.HowDidYouHear,B.CarrierLocked,B.BuyoutAccepted,B.Ineligible,B.NotEligibleYet,B.CompleteSetupLater,B.Checkout,B.EmailCollection,B.OtherTabOpen];async function t1(e,t,a){switch(e){case B.CurrentNetwork:return B.NetworkComparison;case B.NetworkComparison:return B.PhoneMake;case B.PhoneMake:if(t.phoneMake===U.Unplugged)return B.IsCarrierUnlocked;if(t.phoneMake===U.Other)return B.Ineligible;return B.PhoneModel;case B.OperatingSystem:if(t.phoneMake===U.GooglePixel)return B.IsCarrierUnlocked;return B.PhoneModel;case B.PhoneModel:if("My device is not listed"===t.phoneModel)return B.Ineligible;if(t.phoneMake===U.GooglePixel)return B.OperatingSystem;return B.IsCarrierUnlocked;case B.EsimSupport:if("yes"===t.esimCompatible)return B.IsCarrierUnlocked;if("no"===t.esimCompatible)return B.Ineligible;return B.PhoneMake;case B.IsCarrierUnlocked:if("yes"===t.isCarrierUnlocked)return B.Eligible;return B.CarrierLocked;case B.OtherPhoneModel:return B.Ineligible;case B.CarrierLocked:if("yes"===t.acceptedBuyout)return B.BuyoutAccepted;return B.NotEligibleYet;case B.Ineligible:return B.Ineligible;case B.NotEligibleYet:return B.NotEligibleYet;case B.Eligible:if("yes"===t.completeSetupNow)return B.IsPortIn;return B.CompleteSetupLater;case B.CompleteSetupLater:return B.CompleteSetupLater;case B.IsPortIn:if("yes"===t.isPortIn)return B.IsNumberEligible;return B.ChooseNewNumber;case B.IsNumberEligible:case B.ChooseNewNumber:return B.EmailCollection;case B.EmailCollection:return a.includes(R.AN.EnrollmentMarketingTestA)?B.HowDidYouHear:B.Checkout;case B.HowDidYouHear:return B.Checkout;case B.Checkout:return B.QrCode}return B.Error}let t2=e=>
1{let[t,a]=S.useState(tX),[l,s]=S.useState([]),[r,i]=S.useState({}),[n,o]=S.useState(),[c,d]=(0,k.fp)(D.e),[m,u]=(0,k.fp)(I),[p,P]=(0,k.fp)(M);(0,k.Xr)(T);let R=S.useRef(),[O,_]=S.useState(!1),[U,Y]=S.useState(!1),z=(0,E.useRouter)(),V=(0,A.useSearchParams)(),G=(0,j.al)(),{trackEvent:W}=(0,N.H)(),{groupIds:H}=(0,$.Sz)(),{hasTabLock:K,isLoading:q,forceClaimTabLock:Z}=tK();S.useEffect(()=>{let e=async()=>{var e;let t=await g.A.getFeatureState(h.lo.SIGN_UP);void 0!==t.error||(null==(e=t.data.latestFeatureState)?void 0:e.availability)===h.UY.DISABLED?(_(!0),b.oR.error("Signups are temporarily paused due to a disruption. Please try again later.",{duration:1/0,id:t$,position:"top-center",dismissible:!1})):(_(!1),b.oR.dismiss(t$))};e();let t=setInterval(e,5e3);return()=>{clearInterval(t),b.oR.dismiss(t$)}},[]),S.useEffect(()=>{let e=async()=>{var e;let t=await g.A.getFeatureState(h.lo.PORT_IN);Y(void 0!==t.error||(null==(e=t.data.latestFeatureState)?void 0:e.availability)===h.UY.DISABLED)};e();let t=setInterval(e,5e3);return()=>clearInterval(t)},[]),S.useEffect(()=>{!q&&(K||a(B.OtherTabOpen),K&&(V&&"true"===V.get(tq)?el():a((e=>e===tZ?B.Ineligible:e===tQ?B.NotEligibleYet:tX)(z.pathname))))},[K,q,z.pathname]);let[Q,J]=((e,t)=>{let[a,l]=S.useState(0);return S.useEffect(()=>{let s=s=>{s.state.stepNum>a?(l(s.state.stepNum),e(...s.state.args)):(l(e=>e-1),t())};return window.addEventListener("popstate",s),()=>window.removeEventListener("popstate",s)},[e,t,a,l]),S.useEffect(()=>{let e=window.location.pathname+window.location.search+window.location.hash;window.history.pushState("","",e)},[]),[function(){for(var t=arguments.length,s=Array(t),r=0;r<t;r++)s[r]=arguments[r];let i=window.location.pathname+window.location.search+window.location.hash;window.history.pushState({stepNum:a+1,args:s},"",i),l(e=>e+1),e(...s)},()=>{window.history.back()}]})(async e=>{let l=await t1(t,e,H);l!==t&&(s(e=>[...e,t]),a(l))},()=>{let e=l.pop();if(!e){let e=z.query;return z.push({pathname:"/get-cape",query:e})}s([...l]),a(e)});S.useEffect(()=>{W(f.$I.BetaFormStarted,{version:f.UL.WebCheckout,isMobile:G})},[]),S.useEffect(()=>{let e=async()=>{if(a(B.QrCode),!c)try{await g.A.login()}catch(e){a(B.Error)}},l=async()=>{if(a(B.IsPortIn),!c)try{await g.A.login()}catch(e){a(B.Error)}};V&&"true"===V.get(tq)&&t===tX?m||p?e():l():(m||p)&&e()},[V,m,p,l,r]),S.useEffect(()=>{let e;{let e=window.location.pathname,a=t===B.Ineligible?tZ:t===B.NotEligibleYet?tQ:null;if(a&&e!==a){let e="".concat(a).concat(window.location.search).concat(window.location.hash);window.history.replaceState(window.history.state,"",e)}else if(!a&&[tZ,tQ].includes(e)){let e="".concat("/get-cape/enroll").concat(window.location.search).concat(window.location.hash);window.history.replaceState(window.history.state,"",e)}}let a="GrapheneOS"===r.operatingSystem;if(t===B.Checkout||t===B.QrCode){var l;let t=null==n||null==(l=n.amountDue)?void 0:l.units;e="number"==typeof t?t:void 0}if(W(f.$I.BetaFormPageReached,{page:t,isGraphene:a,price:e}),tJ.includes(t)&&W(f.$I.BetaFormCompleted,{...r}),t===B.BuyoutAccepted){let e=z.query;z.push({pathname:"/contract-buyout",query:e})}},[t]);let ee=async function(e){let l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(O)return;if(e){if(e.howDidYouHear){let t=e.howDidYouHearOther;for(let a of e.howDidYouHear){let e="Other"===a&&t?"Other: ".concat(t):a;W(f.$I.BetaFormQuestionAnswered,{questionId:"howDidYouHear",answer:e})}}for(let t of Object.keys(e))"howDidYouHear"!==t&&"howDidYouHearOther"!==t&&W(f.$I.BetaFormQuestionAnswered,{questionId:t,answer:e[t]})}if(t===B.Eligible&&"yes"===e.completeSetupNow)try{await g.A.login()}catch(e){s(e=>[...e,B.Error]),a(B.Error);return}let n={...r,...e};i(n),R.current&&clearTimeout(R.current),l?R.current=setTimeout(()=>Q(n),150):Q(n)},ea=S.useMemo(()=>!t0.includes(t),[t]),el=async()=>{c||await g.A.login(),s(e=>[...e,t]),a(B.IsPortIn)};return(0,x.jsxs)(C.P.div,{...F.E0,className:"h-screen flex flex-col",children:[(0,x.jsx)(w.A,{type:"website",siteName:"Cape",noindex:!0,image:w.F}),(0,x.jsx)(X,{currentStep:t}),(0,x.jsxs)("div",{className:"flex-1 flex flex-col items-center relative ",children:[ea&&(0,x.jsx)("div",{className:"absolute top-margin-lg left-margin-lg",children:(0,x.jsx)(v.A,{className:"max-tablet:h-8",title:"Back",onClick:J})}),t===B.CurrentNetwork&&(0,x.jsx)(eG,{onCompleteStep:ee,signupDisabled:O}),t===B.NetworkComparison&&(0,x.jsx)(tc,{answers:r,onCompleteStep:ee,signupDisabled:O}),t===B.PhoneMake&&(0,x.jsx)(tb,{onCompleteStep:ee,signupDisabled:O}),t===B.EsimSupport&&(0,x.jsx)(eK,{onCompleteStep:ee,signupDisabled:O,answers:r,includeUnsureOption:null==H?void 0:H.includes("4b")}),t===B.OperatingSystem&&(0,x.jsx)(tu,{onCompleteStep:ee,signupDisabled:O,answers:r}),t===B.PhoneModel&&(0,x.jsx)(tS,{onCompleteStep:ee,signupDisabled:O,answers:r}),t===B.OtherPhoneModel&&(0,x.jsx)(tp,{onCompleteStep:ee,signupDisabled:O,answers:r}),t===B.NumLinesToEnroll&&(0,x.jsx)(td,{onCompleteStep:ee,signupDisabled:O}),t===B.IsCarrierUnlocked&&(0,x.jsx)(ec,{onCompleteStep:ee,signupDisabled:O,answers:r}),(t===B.CarrierLocked||t===B.BuyoutAccepted)&&(0,x.jsx)(et,{onCompleteStep:ee,signupDisabled:O}),t===B.Ineligible&&(0,x.jsx)(eX,{answers:r,onCompleteStep:ee,signupDisabled:O}),t===B.NotEligibleYet&&(0,x.jsx)(eJ,{answers:r,onCompleteStep:ee,signupDisabled:O}),t===B.Eligible&&(0,x.jsx)(eW,{answers:r,onCompleteStep:ee,signupDisabled:O}),t===B.IsPortIn&&(0,x.jsx)(te,{onCompleteStep:ee,signupDisabled:O,portInDisabled:U}),t===B.CompleteSetupLater&&(0,x.jsx)(ez,{onCompleteStep:ee,signupDisabled:O}),t===B.IsNumberEligible&&(0,x.jsx)(e9,{onCompleteStep:ee,signupDisabled:O}),t===B.ChooseNewNumber&&(0,x.jsx)(eB,{onCompleteStep:ee,signupDisabled:O}),t===B.EmailCollection&&(0,x.jsx)(tG,{answers:r,onCompleteStep:ee,signupDisabled:O}),t===B.HowDidYouHear&&(0,x.jsx)(t_,{onCompleteStep:ee,signupDisabled:O}),t===B.Checkout&&(0,x.jsx)(ek,{answers:r,onCompleteStep:ee,signupDisabled:O,setCheckoutSession:o}),t===B.QrCode&&(0,x.jsx)(tL,{answers:r,recoveryPhrase:c}),t===B.Error&&(0,x.jsx)(C.P.div,{...F.E0,children:(0,x.jsx)(L,{message:"We're sorry, something went wrong.",description:"We are unable to complete your line setup at the moment. Please try again later or reach out to our support team at [email protected]"})}),t===B.OtherTabOpen&&(0,x.jsx)(C.P.div,{...F.E0,children:(0,x.jsxs)("div",{className:"p-10 flex flex-col items-center gap-10",children:[(0,x.jsx)(L,{message:"You have session open in another tab",description:"Please return to that session to continue signup"}),(0,x.jsx)(v.A,{title:"Abandon Previous Session",onClick:Z})]})})]}),(0,x.jsx)(y.A,{})]})}},3172:(e,t,a)=>{"use strict";a.d(t,{A:()=>
1o});var l,s,r,i=a(21462);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let o=function(e){return i.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:119.664,height:40},e),l||(l=i.createElement("path",{d:"M110.135 0H9.535Q8.986 0 8.44.002q-.457.004-.919.013A13 13 0 0 0 5.517.19a6.7 6.7 0 0 0-1.9.627 6.4 6.4 0 0 0-1.62 1.18A6.3 6.3 0 0 0 .82 3.617a6.6 6.6 0 0 0-.625 1.903 13 13 0 0 0-.179 2.002c-.01.307-.01.615-.015.921V31.56c.005.31.006.61.015.921a13 13 0 0 0 .18 2.002 6.6 6.6 0 0 0 .624 1.905A6.2 6.2 0 0 0 1.998 38a6.3 6.3 0 0 0 1.618 1.179 6.7 6.7 0 0 0 1.901.63 13.5 13.5 0 0 0 2.004.177c.31.007.613.011.919.011.366.002.728.002 1.095.002h100.6c.36 0 .724 0 1.084-.002.304 0 .617-.004.922-.01a13 13 0 0 0 2-.178 6.8 6.8 0 0 0 1.908-.63A6.3 6.3 0 0 0 117.666 38a6.4 6.4 0 0 0 1.182-1.614 6.6 6.6 0 0 0 .619-1.905 13.5 13.5 0 0 0 .185-2.002c.004-.31.004-.61.004-.921.008-.364.008-.725.008-1.094V9.536q.002-.549-.008-1.092.001-.46-.004-.92a13.5 13.5 0 0 0-.185-2.003 6.6 6.6 0 0 0-.62-1.903 6.47 6.47 0 0 0-2.798-2.8 6.8 6.8 0 0 0-1.908-.627 13 13 0 0 0-2-.176c-.305-.005-.618-.011-.922-.013-.36-.002-.725-.002-1.084-.002Z"})),i.createElement("path",{d:"M8.445 39.125c-.305 0-.602-.004-.904-.01a13 13 0 0 1-1.87-.164 5.9 5.9 0 0 1-1.656-.548 5.4 5.4 0 0 1-1.397-1.016 5.3 5.3 0 0 1-1.02-1.397 5.7 5.7 0 0 1-.544-1.657 12.4 12.4 0 0 1-.166-1.875c-.007-.21-.015-.913-.015-.913v-23.1s.009-.692.015-.895a12.4 12.4 0 0 1 .165-1.872 5.8 5.8 0 0 1 .544-1.662 5.4 5.4 0 0 1 1.015-1.398 5.6 5.6 0 0 1 1.402-1.023 5.8 5.8 0 0 1 1.653-.544A12.6 12.6 0 0 1 7.543.887l.902-.012h102.769l.913.013a12.4 12.4 0 0 1 1.858.162 6 6 0 0 1 1.671.548 5.6 5.6 0 0 1 2.415 2.42 5.8 5.8 0 0 1 .535 1.649 13 13 0 0 1 .174 1.887c.003.283.003.588.003.89.008.375.008.732.008 1.092v20.929c0 .363 0 .718-.008 1.075 0 .325 0 .623-.004.93a13 13 0 0 1-.17 1.853 5.7 5.7 0 0 1-.54 1.67 5.5 5.5 0 0 1-1.016 1.386 5.4 5.4 0 0 1-1.4 1.022 5.9 5.9 0 0 1-1.668.55 12.5 12.5 0 0 1-1.869.163c-.293.007-.6.011-.897.011l-1.084.002Z",style:{fill:"#fff"}}),s||(s=i.createElement("g",{"data-name":"<Group>"},i.createElement("g",{"data-name":"<Group>"},i.createElement("path",{d:"M24.997 19.89a5.15 5.15 0 0 1 2.45-4.318 5.27 5.27 0 0 0-4.15-2.244c-1.746-.183-3.44 1.045-4.33 1.045-.906 0-2.276-1.027-3.752-.997a5.53 5.53 0 0 0-4.65 2.837c-2.012 3.482-.512 8.6 1.415 11.414.963 1.378 2.09 2.918 3.564 2.863 1.442-.06 1.981-.92 3.722-.92 1.725 0 2.23.92 3.734.886 1.548-.026 2.523-1.385 3.453-2.776a11.4 11.4 0 0 0 1.58-3.216 4.97 4.97 0 0 1-3.036-4.575M22.156 11.477a5.07 5.07 0 0 0 1.16-3.63 5.16 5.16 0 0 0-3.336 1.726 4.82 4.82 0 0 0-1.19 3.495 4.26 4.26 0 0 0 3.366-1.591","data-name":"<Path>"})),i.createElement("path",{d:"M42.302 27.14h-4.734l-1.136 3.356h-2.005l4.483-12.418h2.083l4.484 12.418h-2.04Zm-4.243-1.55h3.752l-1.85-5.446h-.052ZM55.16 25.97c0 2.813-1.507 4.62-3.78 4.62a3.07 3.07 0 0 1-2.848-1.583h-.043v4.484h-1.858V21.442h1.799v1.506h.034a3.21 3.21 0 0 1 2.883-1.6c2.298 0 3.812 1.816 3.812 4.622m-1.911 0c0-1.833-.947-3.038-2.393-3.038-1.42 0-2.375 1.23-2.375 3.038 0 1.824.956 3.046 2.375 3.046 1.446 0 2.393-1.197 2.393-3.046M65.125 25.97c0 2.813-1.507 4.62-3.78 4.62a3.07 3.07 0 0 1-2.848-1.583h-.043v4.484h-1.858V21.442h1.799v1.506h.034a3.21 3.21 0 0 1 2.883-1.6c2.297 0 3.813 1.816 3.813 4.622m-1.911 0c0-1.833-.947-3.038-2.393-3.038-1.42 0-2.375 1.23-2.375 3.038 0 1.824.955 3.046 2.375 3.046 1.446 0 2.393-1.197 2.393-3.046M71.71 27.036c.137 1.232 1.333 2.04 2.968 2.04 1.567 0 2.694-.808 2.694-1.919 0-.964-.68-1.54-2.29-1.936l-1.609-.388c-2.28-.55-3.339-1.617-3.339-3.348 0-2.142 1.867-3.614 4.518-3.614 2.625 0 4.424 1.472 4.484 3.614H77.26c-.112-1.239-1.136-1.987-2.634-1.987s-2.521.757-2.521 1.858c0 .878.654 1.395 2.255 1.79l1.368.336c2.548.603 3.605 1.626 3.605 3.443 0 2.323-1.85 3.778-4.793 3.778-2.753 0-4.613-1.42-4.733-3.667ZM83.346 19.3v2.142h1.722v1.472h-1.722v4.991c0 .776.345 1.137 1.102 1.137a6 6 0 0 0 .611-.043v1.463a5 5 0 0 1-1.032.086c-1.833 0-2.548-.689-2.548-2.445v-5.189h-1.316v-1.472h1.316V19.3ZM86.064 25.97c0-2.849 1.678-4.639 4.294-4.639 2.625 0 4.295 1.79 4.295 4.639 0 2.856-1.661 4.638-4.295 4.638s-4.294-1.782-4.294-4.638m6.695 0c0-1.954-.895-3.108-2.401-3.108s-2.401 1.162-2.401 3.108c0 1.962.895 3.106 2.4 3.106s2.402-1.144 2.402-3.106M96.185 21.442h1.773v1.541H98a2.16 2.16 0 0 1 2.177-1.635 3 3 0 0 1 .637.069v1.738a2.6 2.6 0 0 0-.835-.112 1.873 1.873 0 0 0-1.937 2.083v5.37h-1.858ZM109.383 27.837c-.25 1.643-1.85 2.771-3.898 2.771-2.634 0-4.269-1.764-4.269-4.595 0-2.84 1.644-4.682 4.19-4.682 2.506 0 4.08 1.72 4.08 4.466v.637h-6.394v.112a2.358 2.358 0 0 0 2.436 2.564 2.05 2.05 0 0 0 2.09-1.273Zm-6.282-2.702h4.526a2.177 2.177 0 0 0-2.22-2.298 2.29 2.29 0 0 0-2.306 2.298"}))),r||(r=i.createElement("g",{"data-name":"<Group>"},i.createElement("path",{d:"M37.826 8.731a2.64 2.64 0 0 1 2.808 2.965c0 1.906-1.03 3.002-2.808 3.002h-2.155V8.73Zm-1.228 5.123h1.125a1.876 1.876 0 0 0 1.967-2.146 1.88 1.88 0 0 0-1.967-2.134h-1.125ZM41.68 12.444a2.133 2.133 0 1 1 4.248 0 2.134 2.134 0 1 1-4.247 0m3.334 0c0-.976-.439-1.547-1.208-1.547-.773 0-1.207.571-1.207 1.547 0 .984.434 1.55 1.207 1.55.77 0 1.208-.57 1.208-1.55M51.573 14.698h-.922l-.93-3.317h-.07l-.927 3.317h-.913l-1.242-4.503h.902l.806 3.436h.067l.926-3.436h.852l.926 3.436h.07l.803-3.436h.889ZM53.854 10.195h.855v.715h.066a1.35 1.35 0 0 1 1.344-.802 1.465 1.465 0 0 1 1.559 1.675v2.915h-.889v-2.692c0-.724-.314-1.084-.972-1.084a1.033 1.033 0 0 0-1.075 1.141v2.635h-.888ZM59.094 8.437h.888v6.26h-.888ZM61.218 12.444a2.133 2.133 0 1 1 4.247 0 2.134 2.134 0 1 1-4.247 0m3.333 0c0-.976-.439-1.547-1.208-1.547-.773 0-1.207.571-1.207 1.547 0 .984.434 1.55 1.207 1.55.77 0 1.208-.57 1.208-1.55M66.4 13.424c0-.81.604-1.278 1.676-1.344l1.22-.07v-.389c0-.475-.315-.744-.922-.744-.497 0-.84.182-.939.5h-.86c.09-.773.818-1.27 1.84-1.27 1.128 0 1.765.563 1.765 1.514v3.077h-.855v-.633h-.07a1.52 1.52 0 0 1-1.353.707 1.36 1.36 0 0 1-1.501-1.348m2.895-.384v-.377l-1.1.07c-.62.042-.9.253-.9.65 0 .405.351.64.834.64a1.06 1.06 0 0 0 1.166-.983M71.348 12.444c0-1.423.732-2.324 1.87-2.324a1.48 1.48 0 0 1 1.38.79h.067V8.437h.888v6.26h-.851v-.71h-.07a1.56 1.56 0 0 1-1.415.785c-1.145 0-1.869-.901-1.869-2.328m.918 0c0 .955.45 1.53 1.203 1.53.7
15 0 1.212-.583 1.212-1.526 0-.938-.468-1.53-1.212-1.53-.748 0-1.203.58-1.203 1.526M79.23 12.444a2.133 2.133 0 1 1 4.247 0 2.134 2.134 0 1 1-4.247 0m3.333 0c0-.976-.438-1.547-1.208-1.547-.772 0-1.207.571-1.207 1.547 0 .984.435 1.55 1.207 1.55.77 0 1.208-.57 1.208-1.55M84.67 10.195h.855v.715h.066a1.35 1.35 0 0 1 1.344-.802 1.465 1.465 0 0 1 1.559 1.675v2.915h-.889v-2.692c0-.724-.314-1.084-.972-1.084a1.033 1.033 0 0 0-1.075 1.141v2.635h-.889ZM93.515 9.074v1.141h.976v.749h-.976v2.315c0 .472.194.679.637.679a3 3 0 0 0 .339-.021v.74a3 3 0 0 1-.484.046c-.988 0-1.381-.348-1.381-1.216v-2.543h-.715v-.749h.715V9.074ZM95.705 8.437h.88v2.481h.07a1.39 1.39 0 0 1 1.374-.806 1.483 1.483 0 0 1 1.55 1.679v2.907h-.889V12.01c0-.72-.335-1.084-.963-1.084a1.052 1.052 0 0 0-1.134 1.142v2.63h-.888ZM104.761 13.482a1.83 1.83 0 0 1-1.95 1.303 2.045 2.045 0 0 1-2.081-2.325 2.077 2.077 0 0 1 2.076-2.352c1.253 0 2.009.856 2.009 2.27v.31h-3.18v.05a1.19 1.19 0 0 0 1.2 1.29 1.08 1.08 0 0 0 1.07-.546Zm-3.126-1.451h2.275a1.086 1.086 0 0 0-1.109-1.167 1.15 1.15 0 0 0-1.166 1.167"}))))}},9392:(e,t,a)=>{"use strict";e.exports={content:["./src/**/*.{js,ts,jsx,tsx}"],theme:{colors:{transparent:"transparent",current:"currentColor",white:"var(--white)",black:"var(--black)",purple:"var(--purple)",peach:"var(--peach)",green:"var(--green)",iris:"var(--iris)",irisLight:"var(--iris-light)",gray:"var(--gray)",shore:"var(--shore)","shore-light":"var(--shore-light)",ether:"var(--ether)","ether-light":"var(--ether-light)",ghost:"var(--ghost)"},screens:{mini:"250px",phone:"355px",phablet:"450px","phablet-xl":"650px",tablet:"800px",headerMax:"950px",desktop:"1050px","desktop-xl":"1150px","desktop-mxl":"1170px","desktop-xl-md":"1200px","desktop-xxl":"1300px"},extend:{borderWidth:{border:"var(--border)"},spacing:{border:"var(--border)",button:"var(--button)","button-md":"var(--button-md)","button-lg":"var(--button-lg)","margin-sm":"var(--margin-sm)",margin:"var(--margin)","margin-lg":"var(--margin-lg)","header-margin":"var(--header-margin)","header-margin-v2":"var(--header-margin-v2)","1x":"var(--1x)","2x":"var(--2x)","2-5x":"var(--2-5x)","3x":"var(--3x)","4x":"var(--4x)","5x":"var(--5x)","6x":"var(--6x)",form:"var(--form-width)"},width:{container:"var(--container)","half-container":"var(--half-container)"},maxWidth:{container:"var(--container)","half-container":"var(--half-container)"}}},plugins:[a(90765)],corePlugins:{preflight:!1}}},58201:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(23798),s=a(86824),r=a(47167),i=a(37263),n=a(82781);let o=e=>{let{module:t}=e;return"dark"===t.style?(0,l.jsxs)("section",{className:"w-full bg-black text-white relative",role:"region",children:[(0,l.jsx)("img",{src:"/assets/purple-gradient-2.png",alt:"","aria-hidden":"true",className:"absolute top-0 left-0 w-full h-full object-cover pointer-events-none"}),(0,l.jsxs)("div",{className:"px-margin-lg py-6x max-w-container mx-auto relative z-[1] text-center flex flex-col items-center gap-2x",children:[(0,l.jsx)(s.P.h2,{...r.E0,className:"animated-section h3 whitespace-pre-wrap",children:t.headline}),t.bodyPortableText?(0,l.jsx)(s.P.div,{...r.E0,className:"animated-section",children:(0,l.jsx)(n.A,{content:t.bodyPortableText})}):t.body?(0,l.jsx)(s.P.p,{...r.E0,className:"animated-section whitespace-pre-wrap",children:t.body}):null,(0,l.jsx)(s.P.div,{...r.E0,className:"animated-section",children:(0,l.jsx)(i.A,{title:t.ctaTitle,path:t.ctaLink||"/get-cape",className:"!bg-purple",borderColor:"var(--purple)",highlightBorderColor:"var(--purple)"})})]})]}):"purple"===t.style?(0,l.jsxs)("section",{className:"bg-iris animated-section relative w-full px-margin-lg py-margin-lg text-center flex flex-col items-center",role:"region",children:[(0,l.jsx)(s.P.h2,{...r.E0,className:"animated-section w-full h3 tablet:mb-[-1rem] mt-[-0.2rem] max-w-[20ch] tablet:max-w-none whitespace-pre-wrap mx-auto",children:t.headline}),(0,l.jsx)(s.P.div,{...r.E0,className:"animated-section w-full mt-margin max-w-[30ch] mx-auto",children:(0,l.jsx)(n.A,{content:t.bodyPortableText})}),(0,l.jsx)(s.P.div,{...r.E0,className:"animated-section",children:(0,l.jsx)(i.A,{title:t.ctaTitle,path:t.ctaLink||"/get-cape",className:"!bg-purple mt-margin-lg tablet:mt-margin"})})]}):(0,l.jsxs)(s.P.section,{className:"animated-section relative w-full px-margin-lg my-margin-lg mx-auto max-w-container text-center flex flex-col items-center",...r.E0,role:"region",children:[(0,l.jsx)("h2",{className:"w-full mono tablet:mb-[-1rem] mt-[-0.2rem]",children:t.headline}),(0,l.jsx)("div",{className:"w-full h3 whitespace-pre-wrap mt-margin subhead1-serif",children:t.body}),(0,l.jsx)(i.A,{title:t.ctaTitle,path:t.ctaLink||"/get-cape",className:"!bg-purple mt-margin-lg tablet:mt-margin"})]})}},70538:e=>{e.exports={loader:"loading-spinner_loader__IOAg8",rotation:"loading-spinner_rotation__QCKlB"}},77417:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(23798);a(21462);var s=a(70538),r=a.n(s);function i(){return(0,l.jsx)("div",{className:r().loader})}},81506:(e,t,a)=>{"use strict";function l(){let e=window.navigator.userAgent;return/iphone|ipad|ipod/i.test(e)?"https://cape.co":"https://www.cape.co"}a.d(t,{d:()=>l})},83309:(e,t,a)=>{"use strict";a.d(t,{A:()=>
1o});var l=a(23798),s=a(21462),r=a(54076),i=a(26294);a(79958);let n=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)("input",{className:"focus:outline-none bg-transparent h-full p-2 ".concat(a),...s,ref:t})}),o=e=>{let{className:t,value:a,onChange:s,placeholder:o="Enter phone number",disabled:c}=e;return(0,l.jsx)(r.Ay,{className:t,inputComponent:n,placeholder:o,defaultCountry:"US",flags:i.Ay,value:a,onChange:s,limitMaxLength:!0,disabled:c})}},96125:(e,t,a)=>{"use strict";a.d(t,{EA:()=>i,al:()=>m,dv:()=>d});var l=a(21462),s=a(9392),r=a.n(s),i=function(e){return e.Phone="phone",e.Tablet="tablet",e.TabletXL="tablet-xl",e.Desktop="desktop",e.DesktopXL="desktop-xl",e}({});let n=r().theme.screens,o=Object.keys(n).map(e=>{let t=parseFloat(n[e].replace("px",""));return{breakpoint:e,value:t}});function c(){let e="phone";for(let{breakpoint:t,value:a}of o)window.innerWidth>=a&&(e=t);return e}let d=()=>{let[e,t]=(0,l.useState)(c());return(0,l.useEffect)(()=>{function e(){t(c())}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e},m=()=>["mini","phone","phablet","phablet-xl"].includes(d())}}]);

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.