PageSourceSearch

https://ofw.ourfamilywizard.ca/app/assets/ChooseYourOwnBuilder-CAP03-tX.js

js ourfamilywizard.ca collected 2026-09-26 15:37:41 UTC 44,844 bytes, 1 lines download raw bytes

1import{ah as W,D as ge,C as ue,af as he,ag as fe,aj as E,ak as ye,al as Q}from"./requests-Cy5Gkbzz.js";import{s as l,H as je,r as C,b7 as Se,j as t,m as B,cD as be,C as Ce,T as m,B as H,ag as N,bO as Fe,F as we,t as Pe,dm as Te,dB as h,h as T,ah as Be,a9 as _,en as P,aa as ee}from"./WarningIcon-Bebxa2Ar.js";import{l as I,B as f,j as $,c as z,e as j,i as v,F as te}from"./requests-DX1SWHAV.js";import{aa as ve,ab as Me,ac as Le,ad as ne,ae as $e,n as Ae,y as De}from"./requests-WQmY9-1h.js";import{B as ie,H as We,I as oe,p as X,C as Ie}from"./sessionStorageManager-DEcT-BUt.js";import{B as ze,d as Re}from"./BaseIcon-BUY6xmqh.js";import{T as Ee}from"./Tooltip-gf3gJZvv.js";import{L as q,u as Oe,E as Ye,g as Ue,S as Ge,P as Ve}from"./ErrorBox-kIBua9NG.js";import{L as _e}from"./index-DGDIq5RD.js";import{I as Xe}from"./index-C6gJXOTo.js";import{R as qe}from"./index-z_Nda40f.js";import{C as Je}from"./index-CHTx7tQ9.js";import{C as Ke}from"./Checkbox-Gf_hSZqW.js";import{F as ke}from"./FormControlLabel-BcIdGbXR.js";import{C as Ze}from"./Checkbox-CeSOJrgh.js";const O=({options:e,freeOptions:n=["MYFILES"]})=>{var o;const i=(o=e==null?void 0:e.filter(r=>n.includes(r.optionName)||(r==null?void 0:r.price)>0?r:null))==null?void 0:o.map(r=>r==null?void 0:r.optionName);return[...new Set(i)]},w=({options:e,optionType:n,freeOptions:i=["MYFILES"]})=>{const r=O({options:e,freeOptions:i}).indexOf(n);return r>=0?r+1:null},Qe=e=>{const n=[];for(const i of e==null?void 0:e.packages)n.push(i==null?void 0:i.packageId);return{pricingGroupName:e==null?void 0:e.pricingGroupCode,packageIds:n}},J=280,He=280+2*15,Ln=He*2,$n=({showSwiper:e,desktopWrapper:n,mobileWrapper:i,children:o})=>e?i(o):n(o);l("div")(()=>({display:"flex",alignItems:"center",flexDirection:"column"}));const Ne=e=>{if(!(e!=null&&e.length))return e;const n=[...e],i=n==null?void 0:n.findIndex(o=>ge(o));return n.push(n.splice(i,1)[0]),n},et=e=>{if(!(e!=null&&e.length))return e;const n=e==null?void 0:e.filter(o=>W(o)),i=e==null?void 0:e.filter(o=>!W(o));return[...n,...i]},An=e=>{if(!(e!=null&&e.length))return e;const n=et(e);return Ne(n)},Dn=e=>{if(!(e!=null&&e.length))return e;const n=e==null?void 0:e.filter(o=>W(o.id)),i=e==null?void 0:e.filter(o=>!W(o.id));return[...n,...i]},Wn=({setPackageIds:e,setPricingGroupName:n,token:i})=>{const{data:o}=ue({init:{headers:{[je.AUTH]:`Bearer ${i}`}},queryOptions:{enabled:!!i}});C.useEffect(()=>{if(!i||Se(o))return;const{pricingGroupName:r,packageIds:d}=Qe(o);n(r),e(d)},[o,e,n,i])};function In(){analytics.page()}const M="400px",Y="311px",zn=B()(e=>({infoWrapper:{backgroundColor:e.palette.joinLightBlue.light,border:`1px solid ${e.palette.joinBlue.light}`,borderRadius:"5px",display:"flex",flexShrink:"0",flexDirection:"column",marginTop:"50px",maxWidth:"540px",padding:"32px 30px 38px 30px","& p":{color:e.palette.joinText.main,fontSize:"14px",lineHeight:"26px",margin:"16px 0 0 0"},"& h4":{color:e.palette.joinText.main,fontWeight:700,fontSize:"18px",margin:"0 0 10px 0"}},wrapper:{alignItems:"center",backgroundColor:e.palette.joinBackground.main,display:"flex",flexGrow:"1",flexShrink:"0",flexDirection:"column",fontFamily:e.typography.fontFamily,padding:"14px 18px 32px 18px"}})),Rn=B()((e,{isHideLogin:n})=>({login:{color:e.palette.joinText.main,fontSize:"16px",fontWeight:600,textDecoration:"none"},languageSelector:{"& > div":{margin:0}},rightSection:{display:"flex",alignItems:"center",gap:"25px"},wrapper:{alignItems:"center",backgroundColor:e.palette.joinIvory.main,borderBottom:`1px solid ${e.palette.joinSlate.light}`,display:"flex",flexShrink:"0",flexWrap:"wrap",fontFamily:e.typography.fontFamily,fontSize:"16px",justifyContent:"space-between",lineHeight:"1.5",padding:"1rem","@media (max-width: 600px)":{justifyContent:n?"center":"space-between"}}})),En=B()(e=>({wrapper:{alignItems:"center",background:e.palette.joinBackground.main,border:`1px solid ${e.palette.joinSlate.light}`,display:"flex",height:"85px",fontFamily:e.typography.fontFamily,fontSize:"12px",flexShrink:"0",flexDirection:"column",justifyContent:"center"},copyright:{color:"#999999",padding:"14px 6px 16px 6px",textAlign:"center"},linkContainer:{padding:"0 8px","&:not(:last-of-type)":{borderRight:`1px solid ${e.palette.joinBlue.main}`}},links:{display:"flex",flexWrap:"wrap",alignItems:"center",rowGap:"8px",fontSize:"14px",padding:"16px 12px 0 12px",justifyContent:"center",lineHeight:"0.75","& a, & button":{color:e.palette.joinBlue.main,fontSize:"14px",fontWeight:300,textDecoration:"underline",padding:"0 3px",background:"none",border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center",gap:"4px",[e.breakpoints.down("sm")]:{fontSize:"12px"}}}})),On=B()(e=>({backButton:{background:"none",border:"none",cursor:"pointer",color:"#252525",alignSelf:"start",fontSize:"14px",textDecoration:"underline",padding:"0.5rem 0",marginTop:"0.5rem"},coparentEmailQuestion:{fontSize:"14px",color:"#333333",maxWidth:`${M}`,marginTop:"1rem","& fieldset":{border:"none",margin:"0",padding:"0",textAlign:"left"}},doubleInputRow:{display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"0.75rem",maxWidth:`${M}`,"& > div:first-of-type":{marginRight:"1.5rem"}},formStyled:{width:`${M}`,marginTop:"0.25rem",display:"flex",flexDirection:"column","@media (max-width: 575px)":{width:`${Y}`}},heading:{color:"#171d29",fontSize:"28px",fontWeight:"800",lineHeight:"2.75rem",margin:"0 47px"},inputRow:{display:"flex",marginTop:"0.75rem",maxWidth:`${M}`,'& div[class*="-errorMessageBox"]':{display:"none"},"& span.placeholder":{color:e.palette.gray.dark},"& span.MuiButtonBase-root":{padding:"0 4px 0 0"},"& div.MuiFormControl-root":{padding:"5px 0"}},nextSteps:{width:"400px",marginTop:"0.25rem",display:"flex",flexDirection:"column",justifyContent:"center","& p":{textAlign:"left"},"@media (max-width: 575px)":{width:"311px"}},smallText:{color:e.palette.disabledText.main,fontSize:"13px",fontWeight:"300",marginTop:"0.75rem"},statusCirclesWrapper:{margin:"0 0 20px 0",padding:"0",listStyleType:"none",display:"flex",justifyContent:"center","& li":{listStyle:"none",display:"inline-block",textShadow:"1px 1px 1px #969696",margin:"10px",width:"10px",padding:"0px",height:"10px",backgroundColor:"#D8D8D8",borderRadius:"50%",cursor:"pointer"},"& li.active":{backgroundColor:"#0072FF"}},subheading:{color:e.palette.gray.main,fontSize:"13px",fontWeight:"300",marginTop:"0.75rem"},termsAndConditionsWrapper:{flexGrow:"1",flexShrink:"0",fontFamily:e.typography.fontFamily,margin:"1.375rem 0 2rem 0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",fontSize:"16px",lineHeight:"1.5"}
1,termsContinueButton:{cursor:"pointer",maxWidth:"540px",marginTop:"1.625rem",borderRadius:"4px",backgroundColor:"#0072ff",color:"#ffffff",fontSize:"17px",fontWeight:"600",border:"none",padding:"0.625rem 0px",width:"100%"},termsLI:{marginBottom:"10px"},termsUL:{margin:"0 0 0 20px",padding:"0",textAlign:"left"},supportLinksList:{listStyleType:"none",margin:"0",padding:"0","& li":{marginTop:"5px"},"& a":{color:e.palette.ofwBlue.main,textDecoration:"none"}},wrapper:{alignItems:"center",display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"0",fontFamily:e.typography.fontFamily,fontSize:"16px",lineHeight:"1.5",margin:"1.375rem 0 2rem 0",textAlign:"center"}})),tt=l(m)(({theme:e})=>({marginTop:22,paddingBottom:4,textAlign:"center"})),Yn=e=>t.jsx(tt,{variant:"h1",...e}),nt=l(m)(({theme:e})=>({margin:"0 47px",paddingBottom:4,textAlign:"center"})),Un=e=>t.jsx(nt,{variant:"h3",...e}),it=l(m)(({theme:e})=>({padding:"12px 0 16px 0",textAlign:"center",fontWeight:300})),Gn=e=>t.jsx(it,{variant:"subtitle2",...e}),Vn=l(Ce)(({theme:e,size:n})=>({"& .MuiCircularProgress-root":{height:`${n}px`,width:`${n}px`},"& svg":{color:`${e.palette.joinBlue.main} !important`}})),_n=l("div")(({theme:e})=>({flexGrow:"1",flexShrink:"0",fontFamily:e.typography.fontFamily,margin:"1.375rem 0 2rem 0",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"16px",lineHeight:"1.5"})),Xn=l("div")(({theme:e,isPayment:n})=>({margin:n?"12px 20px 0 20px":"8px 20px 12px 20px",border:"1px solid #B31010",borderRadius:"5px",backgroundColor:"#F8E0E0",color:"#171d29",fontSize:"12px",padding:"30px 20px",textAlign:"left",maxWidth:"500px","& h3":{color:e.palette.joinText.main,fontSize:"16px",fontWeight:"600",margin:"0px"},"& p":{margin:"6px 0px 0px 0px",fontWeight:300,fontSize:"14px"},"& a":{color:e.palette.joinText.main,textDecoration:"underline"}}));l(I)(()=>({width:`${M}`,marginTop:"0.25rem",display:"flex",flexDirection:"column","@media (max-width: 575px)":{width:`${Y}`}}));const qn=l(I)(()=>({marginTop:"0.25rem",display:"flex",flexDirection:"column"}));l("button")(({theme:e})=>({marginTop:"1.625rem",borderRadius:"4px",backgroundColor:e.palette.joinBlue.dark,color:e.palette.white.main,cursor:"pointer",fontSize:"17px",fontWeight:"600",border:"none",padding:"0.625rem 0px",width:"100%","&:hover":{backgroundColor:"#0055D4",color:e.palette.white.main}}));const Jn=l("div")(({theme:e})=>({alignItems:"center",backgroundColor:e.palette.joinBackground.main,display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"0",fontFamily:e.typography.fontFamily,fontSize:"16px",lineHeight:"1.5",padding:"1.375rem 0 2rem 0",textAlign:"center"})),Kn=l("div")(({theme:e})=>({alignItems:"center",display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"0",padding:"1.375rem 24px 2rem 24px",textAlign:"center",backgroundColor:be[100]})),kn=l("div")(({theme:e})=>({maxWidth:600,width:"100%"})),Zn=l("h2")(({theme:e})=>({fontFamily:e.typography.joinTitle.fontFamily,fontSize:"2.5rem",color:e.palette.joinText.main,fontWeight:"300",lineHeight:"2.75rem",margin:"0 47px",padding:"0 0 1rem 0",textAlign:"center",[e.breakpoints.down("sm")]:{width:`${Y}`}}));l("div")(({theme:e,isColumn:n})=>({"& .MuiFormControlLabel-label":{width:"100%"},"& .MuiFormGroup-root":{flexDirection:n?"column":"row","& label":{color:e.palette.joinText.main},"& .MuiButtonBase-root":{color:e.palette.joinSlate.main,opacity:"35%","&.Mui-checked":{color:e.palette.joinLightBlue.main,opacity:"100%"}}}}));l("h3")(({theme:e})=>({color:e.palette.gray.main,fontFamily:e.typography.joinTitle.fontFamily,fontSize:"16px",fontWeight:"300",marginTop:"0.75rem",textAlign:"center"}));const Qn=l("div")(({theme:e,isFormInvalid:n,isPaymentStep:i})=>({width:i?"50%":"auto","@media (max-width: 600px)":{width:"100%"},"& button":{background:n?e.palette.joinSlate.light:e.palette.joinBlue.dark,border:`1px solid ${n?e.palette.joinSlate.light:e.palette.joinBlue.dark}`,color:n?e.palette.joinDisabledText.main:e.palette.white.main,cursor:n?"default":"pointer",margin:"20px 0",textTransform:"uppercase",width:"100%","&:hover":{background:n?e.palette.joinSlate.light:e.palette.joinBlue.dar
1k,boxShadow:n?"none":"inherit",color:n?e.palette.joinDisabledText.main:e.palette.white.main},"&:disabled":{backgroundColor:e.palette.joinSlate.light,borderColor:e.palette.joinSlate.light}}}));l("div")(({theme:e,isBillingInformation:n,isError:i})=>({display:"flex",justifyContent:"space-between",marginBottom:"10px","& .MuiFormControl-root":{maxWidth:n?"242px":"190px",textAlign:"left"},'& div[class*="-errorMessageBox"]':{display:i?"flex":"none"},"& .MuiInputBase-root":{margin:"0","&:hover":{backgroundColor:e.palette.white.main},"&.Mui-focused.Mui-focused":{backgroundColor:e.palette.white.main,outline:`2px solid ${e.palette.joinLightBlue.main}`}},"& label":{lineHeight:"1.5",marginBottom:"5px"},[e.breakpoints.down("sm")]:{"& .MuiFormControl-root":{"&:first-of-type":{marginRight:"5px"},"&:last-of-type":{marginLeft:"5px"}}}}));const ot=l("div")(({theme:e,isError:n})=>({display:"flex",justifyContent:"space-between",marginBottom:"10px","& .MuiFormControl-root":{textAlign:"left"},'& div[class*="-errorMessageBox"]':{display:n?"flex":"none"},"& label":{lineHeight:"1.5",marginBottom:"5px"},"& .MuiInputBase-root":{margin:"0","&:hover":{backgroundColor:e.palette.white.main},"&.Mui-focused.Mui-focused":{backgroundColor:e.palette.white.main,outline:`2px solid ${e.palette.joinLightBlue.main}`}}})),Hn=l("div")(({theme:e})=>({backgroundColor:e.palette.joinBackground.main,display:"flex",justifyContent:"center",flexGrow:"1",flexShrink:"0",fontFamily:e.typography.fontFamily,fontSize:"16px",lineHeight:"1.5"})),Nn=l("div")(()=>({display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"6rem",marginBottom:"4rem","@media (max-width: 575px)":{marginTop:"1rem"}})),ei=l("div")(({theme:e})=>({alignItems:"center",background:e.palette.joinGold.main,borderRadius:"50%",display:"flex",justifyContent:"center",padding:"15px"})),ti=l(_e)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:`1px solid ${e.palette.joinSlate.light}`,borderRadius:"10px",backgroundColor:e.palette.joinIvory.main,boxShadow:"0px 0px 1px rgba(18, 40, 69, 0.25), 0px 0px 25px rgba(18, 40, 69, 0.15)",margin:"2rem 1rem 0 1rem",padding:"1.25rem 1rem 1.875rem 1rem",width:"14rem",textDecoration:"none","& svg":{padding:"0"},"&:hover":{border:`1px solid ${e.palette.joinGold.main}`,"& > svg":{backgroundColor:"none",borderRadius:"50%",fill:"#2a70b7"}},"&:focus":{border:`1px solid ${e.palette.joinGold.main}`,"& > svg":{backgroundColor:"#ECF6FF",borderRadius:"50%",fill:"inherit"}}})),ni=l("h2")(({theme:e})=>({fontFamily:e.typography.joinTitle.fontFamily,fontSize:"26px",color:"#171d29",letterSpacing:"0.12px",lineHeight:"24px",textAlign:"center",margin:"0.875rem 0 0 0"})),ii=l("p")(()=>({fontSize:"16px",color:"#171d29",fontWeight:"300",letterSpacing:"-0.26px",lineHeight:"26px",textAlign:"center",margin:"1rem 0 0 0"}));l("div")(({theme:e,isCyo:n})=>({margin:"10px 0 20px 0",textAlign:"left",[e.breakpoints.down(600)]:{margin:`10px ${n?"0":"20px"} 20px`}}));const oi=l("div")(({theme:e})=>({alignItems:"center",display:"flex",justifyContent:"center",position:"relative",width:"100%",paddingBottom:20})),ri=l(ie)(({theme:e})=>({alignItems:"center",display:"flex",fontSize:"14px",justifyContent:"center",left:"0px",position:"absolute",top:"4px"})),li=l("div")(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"})),rt=l(m,{shouldForwardProp:e=>e!=="isMobile"})(({theme:e,isMobile:n})=>({margin:"16px 0 22px 0",textAlign:n?"center":"left"})),ai=e=>t.jsx(rt,{variant:"h1",...e}),y=e=>`${e/16}rem`,K={"10px":y(10),"12px":y(12),"13px":y(13),"14px":y(14),"15px":y(15),"16px":y(16),"17px":y(17),"18px":y(18),"19px":y(19),"20px":y(20),"21px":y(21),"22px":y(22),"23px":y(23),"24px":y(24),"26px":y(26)},k=l(H,{shouldForwardProp:e=>e!=="isSubmitting"})(()=>({textTransform:"uppercase",color:"white",padding:12})),lt=({children:e,...n})=>{const{disabled:i,isSubmitting:o,...r}=n;return t.jsx(t.Fragment,{children:i?t.jsx(k,{...r,color:"disabled",disabled:o,children:o?t.jsx(q,{}):e}):t.jsx(k,{...n,disabled:o,children:o?t.jsx(q,{}):e})})},at=C.forwardRef(function({ariaLabel:n,className:i="",color:o="primary",disabled:r=!1,error:d=!1,helperText:p,label:s,id:a,required:x=!1,readOnly:c=!1,...g},u){return t.jsxs(N,{error:d,disabled:r,className:i,fullWidth:!0,children:[t.jsx(ke,{control:t.jsx(Ze,{ref:u,"aria-label":n,color:o,disabled:r||c,id:a,required:x,inputProps:{readOnly:c,"aria-readonly":c},...g}),label:s}),t.jsxs(Fe,{children:[d&&t.jsx(we,{icon:Te,style:{color:Pe.palette.error.dark,marginRight:"8px"}}),p||" "]})]})}),st=750;h("h2")(({theme:e})=>({color:e.palette.gray.dark,fontSize:"28px",fontWeight:"800",lineHeight:"2.75rem",margin:"0",padding:"0 0 1rem 0"}));h("div")(({theme:e})=>({alignItems:"center",margin:"0",display:"flex",flexDirection:"column",width:"100%"}));h("div")(({theme:e})=>({alignItems:"stretch",display:"flex",marginBottom:"20px",padding:"1rem 0 0 0","& > div":{margin:"0 15px"}}));const dt=h("div")(({theme:e})=>({background:"white",border:`1px solid ${e.palette.shade6.main}`,borderRadius:"10px",color:e.palette.joinText.main,justifyContent:"space-between",padding:"30px 12px",position:"relative",maxWidth:J,minWidth:J,"& .featured":{position:"absolute",right:"-15px",top:"-14px"}})),ct=h("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center"})),pt=h("span")(({theme:e})=>({color:e.palette.white.main,fontSize:"8px",fontWeight:"700",position:"absolute",right:"5
1px",textTransform:"uppercase",top:"18px",transform:"rotate(45deg)"})),re=h("div")(({theme:e})=>({display:"flex",alignItems:"center",margin:"5px 0","& .perMonth":{marginLeft:3,position:"relative",top:4}})),U=h(m)(()=>({lineHeight:"unset"}));h(m)(()=>({lineHeight:"30px",marginTop:10}));const xt=h("div")(()=>({minHeight:157})),mt=h("div")(({theme:e})=>({display:"flex",alignItems:"center",flexDirection:"column",margin:"5px 0"})),gt=h(m)(({theme:e})=>({color:e.palette.shade6.dark,fontSize:"12px",fontWeight:"600",marginTop:5})),le=h("div")(({theme:e})=>({color:e.neutral.scale500})),ut=h("div")(()=>({minHeight:67,display:"flex",flexDirection:"column",alignItems:"center"})),ht=h("div")(()=>({margin:15,minHeight:45}));h("div")(({isCyo:e})=>({minHeight:e?100:"unset"}));const ft=h("hr")(({theme:e})=>({border:"none",borderTop:`1px solid ${e.palette.shade6.light}`,margin:"30px auto 15px",width:"95%"})),yt=h("div")(()=>({textAlign:"left"})),jt=h("div")(()=>({display:"flex",margin:"10px 0","& .checkmark":{left:0,position:"relative",top:3,minWidth:12}}
1)),St=h("div")(()=>({marginLeft:22,"& button":{position:"relative",top:-1,left:-4}})),bt=h("span")(({theme:e})=>({border:`1px solid ${e.palette.joinBlue.dark}`,borderRadius:"4px",color:e.palette.joinBlue.dark,fontSize:"10px",fontWeight:600,margin:"0 0 0 4px",padding:"1px 8px",textTransform:"uppercase"})),si=B()(e=>({toggle:{display:"flex",margin:"0",padding:"0"},selectedToggleOption:{alignItems:"center",background:e.palette.white.main,border:`1px solid ${e.palette.gray.light}`,borderRadius:"20px",cursor:"pointer",display:"flex",height:"22px",justifyContent:"center",position:"relative",transition:"all 0.1s linear",width:"70px",zIndex:"2","&:first-of-type":{left:"8px"},"&:nth-of-type(2)":{right:"8px"},"& input":{display:"none"},"& label":{color:e.palette.primary.main,cursor:"pointer",fontFamily:"Open Sans, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif",fontSize:"10px",fontWeight:"600"}},toggleOption:{alignItems:"center",background:e.palette.gray.light,border:`1px solid ${e.palette.gray.light}`,borderRadius:"20px",cursor:"pointer",display:"flex",height:"22px",justifyContent:"center",position:"relative",transition:"all 0.1s linear",width:"70px",zIndex:"1","&:first-of-type":{left:"8px"},"&:nth-of-type(2)":{right:"8px"},"& input":{display:"none"},"& label":{color:e.palette.hintText.main,cursor:"pointer",fontFamily:e.typography.fontFamily,fontSize:"10px",fontWeight:"600"}}})),di=h("div")(({theme:e})=>({alignItems:"stretch",display:"flex",width:"100%",padding:"1rem 0 0 0","& .swiper":{width:st},"& .swiper-container":{padding:"0 46px !important"},"& .swiper-slide":{display:"flex",justifyContent:"center"},"& .swiper-button-next":{color:e.palette.primary.main,right:"var(--swiper-navigation-sides-offset,0px)","@media (max-width: 650px)":{right:"var(--swiper-navigation-sides-offset,10px)"}},"& .swiper-button-prev":{color:e.palette.primary.main,left:"var(--swiper-navigation-sides-offset,0px)","@media (max-width: 650px)":{left:"var(--swiper-navigation-sides-offset,10px)"}}})),Ct=h("span")(({theme:e,height:n=28})=>({background:"rgba(0, 154, 222, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",fontWeight:600,color:e.palette.gray.dark,height:`${n}px`,position:"absolute",margin:"0",borderTopLeftRadius:"10px",borderTopRightRadius:"10px",top:"0",width:"100%",left:"0"})),ae=e=>{const{color:n="#2A70B7"}=e,i=t.jsx("svg",{className:"checkmark",width:`${e.size}px`,height:"12",viewBox:`0 0 ${e.size} 12`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6C0 2.6862 2.6862 0 6 0C9.3138 0 12 2.6862 12 6C12 9.3138 9.3138 12 6 12C2.6862 12 0 9.3138 0 6ZM5.2242 8.8242L9.4242 4.6242C9.6588 4.3896 9.6588 4.0104 9.4242 3.7758C9.1896 3.5412 8.8104 3.5412 8.5758 3.7758L4.8 7.5516L3.4242 6.1758C3.1896 5.9412 2.8104 5.9412 2.5758 6.1758C2.3412 6.4104 2.3412 6.7896 2.5758 7.0242L4.3758 8.8242C4.4928 8.9412 4.6464 9 4.8 9C4.9536 9 5.1072 8.9412 5.2242 8.8242Z",fill:n})});return t.jsx(ze,{...e,svg:i})};ae.defaultProps=Re;const Z=e=>{const{t:n}=f(),i=ve();return t.jsxs(yt,{children:[t.jsx(T,{marginBottom:"10px",children:t.jsx(m,{component:"h5",variant:"labelSEmphasis",children:n(e.header)})}),e.features.map(o=>{var r,d,p;return We(o==null?void 0:o.featureText,i)&&t.jsxs(jt,{children:[t.jsx(ae,{}),t.jsxs(St,{children:[o!=null&&o.featureName?t.jsxs(T,{style:{marginBottom:5},display:"flex",children:[t.jsx(m,{component:"p",variant:"bodyXsEmphasis",children:n(o==null?void 0:o.featureName)}),o!=null&&o.newFeature?t.jsx(bt,{children:n("newFeature")}):null]}):null,t.jsxs(m,{component:"p",variant:"bodyXs",children:[oe(o==null?void 0:o.featureText,n),o!=null&&o.tooltip?t.jsx(Ee,{"data-testid":"tooltip",title:n((r=o==null?void 0:o.tooltip)==null?void 0:r.tooltipHeader),content:n((d=o==null?void 0:o.tooltip)==null?void 0:d.tooltipText.split("__")[0],{number:(p=o==null?void 0:o.tooltip)==null?void 0:p.tooltipText.split("__")[1]})}):null]})]})]},o.featureText)})]})},Ft=()=>t.jsx("svg",{className:"featured",width:"76",height:"76",viewBox:"0 0 76 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.7968 13L62 50.7519L62 75.4788L1.24377 13L25.7968 13Z",fill:"#2A70B7"})}),wt=e=>{var i;const{t:n}=f();return t.jsx(t.Fragment,{children:t.jsxs(mt,{children:[t.jsx(U,{variant:"h2",children:n("packageProratedPrice",{amount:(i=e==null?void 0:e.proratedPriceInfo)==null?void 0:i.proratedPriceFormatted})}),t.jsx(m,{variant:"labelXxsRegular",children:n("dueToday")}),"pricePerMonth"in e&&t.jsx(gt,{children:e.subDurationInYears===2?n("packagePricePerMonth2years",{price:e==null?void 0:e.pricePerMonthF
1ormatted}):n("packagePricePerMonth",{price:e==null?void 0:e.pricePerMonthFormatted})})]})})},Pt=e=>{const n="pricePerMonthFormatted"in e,{t:i}=f();return t.jsxs(t.Fragment,{children:[t.jsx(re,{children:n&&(e!=null&&e.pricePerMonthFormatted)?t.jsxs(t.Fragment,{children:[t.jsx(U,{variant:"h2",children:e.pricePerMonthFormatted}),t.jsx(m,{variant:"bodyBase",className:"perMonth",children:i("perMonth")})]}):null}),t.jsx(le,{children:n&&(e==null?void 0:e.totalPriceFormatted)&&t.jsx(m,{variant:"buttonXs",children:e.subDurationInYears===2?i("packageBiAnnualPrice",{price:e.totalPriceFormatted}):i("packageYearlyPrice",{price:e.totalPriceFormatted})})})]})},Tt=e=>{var a,x,c;const n="pricePerMonthFormatted"in e,i="discount"in e&&"discountedMonthlyPriceFormatted"in e.discount,o=n&&i,r="discount"in e&&"discountedYearlyPriceFormatted"in e.discount,d="totalPriceFormatted"in e,p=r&&((a=e==null?void 0:e.discount)!=null&&a.discountedYearlyPrice)?(x=e==null?void 0:e.discount)==null?void 0:x.discountedYearlyPrice:d&&(e==null?void 0:e.totalPrice),{t:s}=f();return t.jsxs(t.Fragment,{children:[t.jsx(re,{children:o?t.jsxs(t.Fragment,{children:[t.jsxs(U,{variant:"h2",children:[t.jsx("s",{children:e==null?void 0:e.pricePerMonthFormatted})," ",(c=e==null?void 0:e.discount)==null?void 0:c.discountedMonthlyPriceFormatted]}),t.jsx(m,{variant:"bodyBase",className:"perMonth",children:s("perMonth")})]}):n&&t.jsxs(t.Fragment,{children:[t.jsx(m,{variant:"h2",children:e.pricePerMonthFormatted}),t.jsx(m,{variant:"bodyBase",className:"perMonth",children:s("perMonth")})]})}),t.jsx(le,{children:t.jsx(m,{variant:"buttonXs",children:e.subDurationInYears===2?s("packageBiAnnualPrice",{price:X({pack:e,price:p,hideDecimalIfRound:!0})}):s("packageYearlyPrice",{price:X({pack:e,price:p,hideDecimalIfRound:!0})})})})]})},Bt=({onSelectPackage:e,pack:n})=>{var d;const{t:i}=f(),{isFeatured:o}=Mt(),r="discount"in n&&n.discount.discountAmount!==null;return t.jsxs(ct,{children:[r&&t.jsx(Ct,{children:r?i("packageOffer",{amount:(d=n==null?void 0:n.discount)==null?void 0:d.discountAmount}):i("packageSpecial")}),t.jsx(m,{component:"h2",variant:"h7",children:i(n.displayName)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{}),t.jsx(pt,{children:i("popular")})]}):null,t.jsxs(xt,{children:[t.jsx(ut,{children:(()=>{var p;switch(!0){case("proratedPriceInfo"in n&&!!((p=n==null?void 0:n.proratedPriceInfo)!=null&&p.proratedPriceFormatted)):return t.jsx(wt,{...n});case r:return t.jsx(Tt,{...n});default:return t.jsx(Pt,{...n})}})()}),t.jsx(ht,{children:"description"in n?t.jsx(m,{variant:"bodyXs",children:t.jsx($,{i18nKey:i(n.description)})}):null})]}),t.jsx(H,{onClick:()=>e(n),variant:o?"contained":"outlined",fullWidth:!0,children:i("selectButton")})]})},[vt,Mt]=he(),Lt=l("div")(()=>({marginLeft:33,marginTop:15})),ci=e=>{const{isFeatured:n,onSelectPackage:i,pack:o}=Me(e),{t:r}=f();return Le(o)?t.jsx(vt.Provider,{value:{...fe,isFeatured:n},children:t.jsxs(dt,{"data-package":o==null?void 0:o.id,"data-card":"authenticated",className:n?"featured":"",children:[t.jsx(Bt,{pack:o,onSelectPackage:i}),t.jsx(ft,{}),t.jsx(Z,{...o.primaryFeatures}),o!=null&&o.secondaryFeatures?t.jsx(Z,{...o==null?void 0:o.secondaryFeatures}):null,(o==null?void 0:o.additionalDisclaimer)&&t.jsx(Lt,{children:t.jsx(m,{variant:"disclaimerXs",children:r(o==null?void 0:o.additionalDisclaimer)})})]})}):t.jsx(t.Fragment,{})},$t=z({subscription:j().nullable().required("selectSubscriptionError"),myfiles:j().nullable(),tonemeter:j().nullable(),unlimitedPayments:j().nullable()}),pi=z({myfiles:j().nullable(),tonemeter:j().nullable(),unlimitedPayments:j().nullable()}),At=B()((e,{styleOverrides:n})=>({selectStyles:{height:40,appearance:"none",backgroundImage:`url("data:image/svg+xml,%3Csvg width='16' height='9' viewBox='0 0 16 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.2563 0.000232695C15.0646 0.00473148 14.8826 0.0842414 14.7497 0.221442L7.99843 6.92534L1.24715 0.221442C1.11037 0.0818282 0.922553 0.00306203 0.726399 0.00305068C0.430772 0.00312783 0.164667 0.181059 0.0534253 0.453035C-0.0578168 0.725012 0.00798609 1.0368 0.21984 1.24154L7.48477 8.45549C7.76849 8.7371 8.22836 8.7371 8.51208 8.45549L15.777 1.24154C15.993 1.03534 16.0593 0.718675 15.9441 0.444065C15.8289 0.169456 15.5558 -0.00678546 15.2563 0.000232695Z' fill='%2337373A'/%3E%3C/svg%3E")`,backgroundSize:"0.9em",backgroundPosition:"right 12px center",backgroundRepeat:"no-repeat",backgroundColor:"white",borderRadius:5,"& .MuiSelect-select":{fontSize:K[`${(n==null?void 0:n.fontSize)||14}px`]}},error:{border:`1px solid ${Ue(Ve.BORDER_COLOR,Ge.INITIAL,!0,!1)}
1`,backgroundColor:`${e.palette.errorBackground.main} !important`},optionsStyles:{fontSize:K[`${(n==null?void 0:n.fontSize)||14}px`],fontWeight:400,overflow:"auto","&::before":{content:'"L"',transform:"scaleX(-1) rotate(-45deg)",marginRight:15,color:"transparent"},"&.Mui-selected":{"&::before":{color:"unset"}}},optionSelectedStyles:{color:e.palette.gray.dark,"& :first-of-type":{display:"none"},"&.placeholder":{color:e.palette.shade6.dark}},menuPaper:{maxHeight:350}})),Dt=e=>{const{disabled:n=!1,error:i="",id:o,label:r,labelStyle:d="regular",onChange:p,options:s,placeholder:a="",required:x=!1,styleOverrides:c,tooltip:g,value:u,showErrorText:b=!0,...F}=e,{classes:S}=At({styleOverrides:c}),{classes:ce}=Oe({error:i}),pe=`${ce.mainInputStyles} ${!!(i!=null&&i.length)&&"error"}`,xe={[e["data-private"]?"data-private":"data-public"]:!0},me=C.useMemo(()=>u?Array.isArray(u)&&u.length===0:!0,[u]);return t.jsx(t.Fragment,{children:t.jsxs(N,{children:[t.jsx(Xe,{id:`${o}-label`,labelStyle:d,label:r,tooltip:g,paddingBottom:!1,required:x,error:i}),t.jsxs(Be,{variant:"outlined",...F,className:`${pe} ${S.selectStyles}`,"data-testid":o,defaultValue:a,disabled:n,IconComponent:()=>null,id:o,inputProps:{value:me&&a?a:u,disabled:n},MenuProps:{classes:{paper:S.menuPaper}},name:o,onChange:p,children:[a?t.jsx(_,{value:a,disabled:!0,className:S.optionsStyles,children:t.jsx("span",{className:`${S.optionSelectedStyles} placeholder`,children:a})}):null,Object.keys(s).map(D=>t.jsx(_,{className:S.optionsStyles,...xe,value:s[D].name,children:s[D].label},s[D].key||s[D].name))]}),b&&t.jsx(Ye,{error:i})]})})},Wt="400px",It="311px",L=l("div")(({theme:e})=>({textAlign:"left",color:e.primary2.primary2Base,fontSize:"14px",fontFamily:P,marginTop:"14px",fontWeight:"300",lineHeight:"26px","& > span":{display:"block",fontSize:"10px",color:e.palette.hintText.main,lineHeight:"20px"},"& a":{color:e.accentPrimary.accentPrimary4}})),zt=l("div")(({theme:e,isColumn:n})=>({"& .MuiFormControlLabel-label":{width:"100%"},"& .MuiFormGroup-root":{flexDirection:n?"column":"row","& label":{color:e.palette.joinText.main,margin:"unset"},"& .MuiButtonBase-root":{color:e.palette.joinSlate.main,opacity:"35%","&.Mui-checked":{color:e.palette.joinLightBlue.main,opacity:"100%"}}}})),Rt=l("div")(()=>({display:"flex",justifyContent:"space-between"})),se=l("div")(()=>({alignItems:"center",display:"flex"})),G=l("div")(()=>({fontSize:"15px",fontWeight:400,fontFamily:P,width:"100%",textAlign:"right",paddingBottom:2})),A=l("div")(({theme:e,topBorder:n})=>({borderTop:n?"1px solid rgb(214, 214, 214)":"none",color:e.primary2.primary2Base,display:"flex",fontSize:"1.125rem",fontWeight:"700",fontFamily:P,justifyContent:"space-between",textAlign:"left",marginBottom:"0",marginTop:n?"2rem":"0",paddingTop:"1rem"})),de=l("div")(({theme:e})=>({color:"#171d29",fontSize:"16px",fontFamily:P,fontWeight:"600",display:"flex",justifyContent:"space-between",paddingBottom:"26px",borderBottom:`1px solid ${e.palette.shade6.main}`})),Et=l("div")(({theme:e})=>({marginTop:"38px",padding:"27px 24px 24px 24px",fontFamily:P,borderRadius:"15px",backgroundColor:e.accentBackground.accentLightPaper,border:`1px solid ${e.join.slate25}`})),Ot=l(I)(({theme:e})=>({width:Wt,marginTop:"0.25rem",display:"flex",flexDirection:"column","@media (max-width: 575px)":{width:"311px"}})),Yt=l("h2")(({theme:e})=>({fontFamily:e.typography.joinTitle.fontFamily,fontSize:"2.5rem",color:e.primary2.primary2Base,fontWeight:"300",lineHeight:"2.75rem",margin:"0 47px",padding:"0 0 1rem 0",textAlign:"center","&.upgrade":{fontFamily:e.typography.fontFamily,fontSize:28,fontWeight:800,lineHeight:"2.75rem",margin:"0px 47px",padding:0},[e.breakpoints.down("sm")]:{width:It,lineHeight:"normal",fontSize:"1.625rem",padding:"unset"}})),Ut=l("h3")(({theme:e})=>({color:e.primary2.primary2Base,fontFamily:e.typography.joinTitle.fontFamily,fontSize:"16px",fontWeight:"300",marginTop:"0.75rem","&.upgrade":{fontFamily:e.typography.fontFamily,fontSize:13,fontWeight:300,marginTop:"0.75rem",marginBottom:"1rem"},[e.breakpoints.down("sm")]:{fontSize:"0.875rem",lineHeight:"1.75rem"}})),xi=l("div")(({theme:e,isFormInvalid:n})=>({width:"auto","@media (max-width: 600px)":{width:"100%"},"& button":{background:n?e.palette.joinSlate.light:e.palette.ofwBlue.main,border:`1px solid ${n?e.palette.joinSlate.light:"transparent"}`,color:n?e.palette.joinDisabledText.main:e.palette.white.main,cursor:n?"default":"pointer",margin:"20px 0",textTransform:"uppercase",width:"100%","&:hover":{background:n?e.palette.joinSlate.light:e.palette.ofwBlue.main,boxShadow:n?"none":"inherit",color:n?e.palette.joinDisabledText.main:e.palette.white.main},"&:disabled":{backgroundColor:e.palette.joinSlate.light,borderColor:e.palette.joinSlate.light}}})),mi=l("div")(({theme:e})=>({fontFamily:e.typography.fontFamily,display:"flex",flexDirection:"column",margin:"35px auto",alignItems:"center",padding:25})),Gt=({pack:e,handleSetDefaultAlacarte:n})=>{const{t:i}=f(),{errors:o,handleBlur:r,handleChange:d,setValues:p,touched:s,values:a}=v(),{subscription:x}=o,c=!!s.subscription&&!!x,g={};if(e!=null&&e.subscriptionLengthOptions)for(const u of e.subscriptionLengthOptions)g[u]={name:u,label:i(u)};return t.jsxs(t.Fragment,{children:[t.jsx(A,{topBorder:!0,style:{margin:"10px 0"},children:i("subscriptionLengthSelect")}),t.jsx(ot,{isError:c,children:t.jsx(Dt,{"data-private":!0,autoWidth:!0,error:c?i(x):null,id:"subscription",multiple:!1,options:g,onBlur:r,onChange:u=>{const b=u.target.value;n({subType:b,formikSetValues:p}),d(b)},placeholder:i("selectSubscriptionPlaceholder"),value:a.subscription})})]})},Vt=({pack:e,values:n})=>{const{t:i}=f();return t.jsx(t.Fragment,{children:t.jsxs(de,{children:[t.jsx("div",{children:i("cyoPackageTotal")}),t.jsx("div",{children:ne(e,n)})]})})},gi=({currencySymbol:e="$",options:n,values:i})=>{const{t:o}=f();return t.jsx(t.Fragment,{children:t.jsxs(de,{children:[t.jsx("div",{children:o("cyoPackageTotal")}),t.jsx("div",{children:$e({availableOptions:n,userSelectedValues:i},e)})]})})},_t=({headingNumber:e,linkToUpgradePackage:n,options:i,purchaseFlow:o="purchase"})=>{const{t:r}=f(),{setFieldValue:d,values:p}=v(),s=i==null?void 0:i.filter(c=>(c==null?void 0:c.optionName)===E.MYFILES),a=o==="purchase"?(s==null?void 0:s.length)>1:(s==null?void 0:s.length)>0,x=s==null?void 0:s.map(c=>({label:t.jsxs(Rt,{children:[t.jsx("div",{style:{width:"100%"},children:oe(c==null?void 0:c.description,r)})," ",t.jsxs(G,{children:["+ ",c.priceFormatted]})]},`${c.description}`),value:c.optionCode}));return o==="upgrade"&&!a?t.jsx(t.Fragment,{}):t.jsxs(t.Fragment,{children:[t.jsx(A,{topBorder:!0,style:{marginTop:"20px"},children:e?r("myFilesOptionsSelect",{headingNumber:`${e}.`,currentStorage:a?null:"1 GB"}):r("myFilesOptionsSelect",{currentStorage:a?null:"1 GB"})}),a?t.jsx(L,{children:r("myfilesUpgradeText")}):t.jsx(L,{children:t.jsx($,{t:r,i18nKey:"myfilesNoUpgradeText",components:{p:t.jsx("p",{}),customLink:n}})}),a&&t.jsx(zt,{isColumn:!0,children:t.jsx(qe,{id:"myfiles",buttons:x,onChange:c=>d("myfiles",c),value:p==null?void 0:p.myfiles})})]})},Xt=({headingNumber:e,options:n})=>{const{t:i}=f(),o=Ae(),{handleBlur:r,setFieldValue:d}=v(),[p,s]=C.useState(!1),a=ye(n),x=(a==null?void 0:a.price)>0;return t.jsx(t.Fragment,{children:x?t.jsxs(t.Fragment,{children:[t.jsx(A,{topBorder:!0,style:{marginTop:"20px"},children:e?i("tonemeterOptionsSelect",{headingNumber:`${e}.`}):i("tonemeterOptionsSelect")}),t.jsxs(L,{children:[i("tonemeterOptionsDescription"),t.jsx("span",{children:i("tonemeterOptionsDisclaimer")})]}),t.jsxs(se,{children:[t.jsx(Je,{id:"tonemeter",label:i("cyoAddTonemeterLabelText"),name:"tonemeter",onBlur:r,onChange:c=>{if(o)return;const g=c.target.checked;s(g);const u=g?a==null?void 0:a.code:"";d("tonemeter",u)},value:p}),t.jsx(G,{children:`+ ${a==null?void 0:a.priceFormatted}`})]})]}):null})},qt=({headingNumber:e,options:n})=>{const{t:i}=f(),{handleBlur:o,setFieldValue:r}=v(),[d,p]=C.useState(!1),s=Q(n);return t.jsx(t.Fragment,{children:!!s&&t.jsxs(t.Fragment,{children:[t.jsx(A,{topBorder:!0,style:{marginTop:"20px"},children:e?i("unlimitedPaymentOptionsSelect",{headingNumber:`${e}.`}):i("unlimitedPaymentOptionsSelect")}),t.jsx(L,{children:i("unlimitedPaymentsFeatureDescriptionPricedCyo")}),t.jsxs(se,{children:[t.jsx(Ke,{id:"unlimitedPayments",label:i("cyoAddPaymentsLabelTextPricedCyo"),name:"unlimitedPayments",onBlur:o,onChange:a=>{const x=a.target.checked;p(x);const c=x?s==null?void 0:s.code:"";r("unlimitedPayments",c)},value:d}),t.jsx(G,{children:`+ ${s==null?void 0:s.priceFormatted}`})]})]})})},Jt=({headingNumber:e,linkToUpgradePackage:n})=>{const{t:i}=f();return t.jsxs(t.Fragment,{children:[t.jsx(A,{topBorder:!0,style:{marginTop:"20px"},children:i("callsOptionsSelect",{headingNumber:`${e}`})}),t.jsx(L,{children:t.jsx($,{t:i,i18nKey:"callsNoUpgradeText",components:{p:t.jsx("p",{}),customLink:n}})})]})},Kt=({displayHeadingNumber:e={display:!0,offset:1},linkToUpgradePackage:n,options:i,optionType:o,purchaseFlow:r="purchase",freeOptions:d=["MYFILES"]})=>t.jsx(t.Fragment,{children:(()=>{switch(o){case"CALLSBASIC":return t.jsx(Jt,{options:i,headingNumber:e!=null&&e.display?w({options:i,optionType:"CALLSBASIC",freeOptions:d})+(e==null?void 0:e.offset):null,linkToUpgradePackage:n});case"MYFILES":return t.jsx(_t,{linkToUpgradePackage:n,options:i,headingNumber:e!=null&&e.display?w({options:i,optionType:"MYFILES",freeOptions:d})+(e==null?void 0:e.offset):null,purchaseFlow:r});case"TONEMETER":return t.jsx(Xt,{options:i,headingNumber:e!=null&&e.display?w({options:i,optionType:"TONEMETER",freeOptions:d})+(e==null?void 0:e.offset):null});case"UNLIMITEDPAYMENTS":return t.jsx(qt,{options:i,headingNumber:e!=null&&e.display?w({options:i,optionType:"UNLIMITEDPAYMENTS",freeOptions:d})+(e==null?void 0:e.offset):null})}})()}),ui=({alacarteValues:e,backButton:n=null,handleFormSubmit:i,linkToUpgradePackage:o,pack:r,freeOptions:d=["MYFILES"]})=>{const{t:p}=f(),s=C.useCallback(({subType:a,formikSetValues:x})=>{var c,g;x({subscription:a,tonemeter:"",myfiles:(g=(c=r==null?void 0:r[a].options)==null?void 0:c.find(u=>u.optionName===E.MYFILES))==null?void 0:g.optionCode,unlimitedPayments:""})},[r]);return t.jsxs(t.Fragment,{children:[t.jsx(Yt,{children:p("cyoHeaderPricedCyo")}),t.jsx(Ut,{children:p("cyoSubHeader")}),r?t.jsx(te,{enableReinitialize:!0,initialValues:{...e,myfiles:(e==null?void 0:e.myfiles)||"1GB1"},onSubmit:i,validateOnMount:!0,validationSchema:$t,children:({handleSubmit:a,isSubmitting:x,isValid:c,values:g})=>{var b;const u=O({options:(b=r==null?void 0:r[g.subscription])==null?void 0:b.options,freeOptions:d});return t.jsxs(Ot,{onSubmit:a,children:[t.jsx(Gt,{pack:r,handleSetDefaultAlacarte:s}),u.map(F=>{var S;return t.jsx(Kt,{linkToUpgradePackage:o,options:(S=r[g.subscription])==null?void 0:S.options,optionType:F,freeOptions:d},F)}),t.jsxs(Et,{children:[t.jsx(Vt,{pack:r,values:g}
1),t.jsx(lt,{id:"continueButton",color:"join",disabled:x&&!c,fullWidth:!0,onClick:a,size:"large",variant:"contained",children:p("continueButton")})]}),t.jsx(T,{alignContent:"start",marginTop:"15px",children:n??n})]})}}):t.jsx(t.Fragment,{})]})},kt=z({subscription:j().nullable().required("selectSubscriptionError"),myfiles:j().nullable(),tonemeter:j().nullable(),unlimitedPayments:j().nullable()});z({unlimitedPayments:j().nullable()});const Zt="400px",Qt=l(m)(({theme:e})=>({textAlign:"center",margin:"0 47px",padding:"0 0 1rem 0",color:e.palette.joinText.main,"&.upgrade":{fontSize:28,fontWeight:800,lineHeight:"2.75rem",margin:"0px 47px",padding:0},[e.breakpoints.down("sm")]:{width:"100%",maxWidth:"311px",lineHeight:"normal",fontSize:"1.625rem",padding:"unset",margin:"0"}})),Ht=l(m)(({theme:e})=>({marginTop:"0.75rem",textAlign:"center","&.upgrade":{fontSize:13,fontWeight:300,marginTop:"0.75rem",marginBottom:"1rem"},[e.breakpoints.down("sm")]:{fontSize:"0.875rem",lineHeight:"1.75rem",width:"100%",maxWidth:"311px"}})),Nt=l(I)(({theme:e})=>({width:Zt,marginTop:"0.25rem",display:"flex",flexDirection:"column","@media (max-width: 575px)":{width:"311px"}})),en=l("div")(({theme:e})=>({fontFamily:e.typography.fontFamily,display:"flex",flexDirection:"column",margin:"35px auto",alignItems:"center",padding:25,[e.breakpoints.down("sm")]:{padding:0,margin:"35px auto"}})),tn=l("div")(({theme:e})=>({marginTop:"38px",padding:"27px 24px 24px 24px",fontFamily:P,borderRadius:"15px",backgroundColor:e.accentBackground.accentLightPaper,border:`1px solid ${e.join.slate25}`})),nn=l(m)(({theme:e,topBorder:n})=>({borderTop:n?"1px solid rgb(214, 214, 214)":"none",display:"flex",justifyContent:"space-between",textAlign:"left",marginBottom:"0",marginTop:n?"2rem":"0",paddingTop:"1rem"})),R=e=>ee.createElement(nn,{variant:"bodyXLargeStrong",...e}),on=l(m)(()=>({fontSize:"15px",fontWeight:400,fontFamily:P,width:"100%",textAlign:"right",paddingBottom:2})),rn=l(m)(({theme:e})=>({textAlign:"left",color:e.primary2.primary2Base,marginTop:"14px",lineHeight:"26px","& > span":{display:"block",fontSize:"10px",color:e.palette.hintText.main,lineHeight:"20px"},"& a":{color:e.accentPrimary.accentPrimary4}})),V=e=>ee.createElement(rn,{variant:"bodyBase",...e}),ln=l(m)(({theme:e})=>({color:e.palette.joinText.main,display:"flex",justifyContent:"space-between",paddingBottom:"26px",borderBottom:`1px solid ${e.palette.shade6.main}`})),an=l("div")(()=>({alignItems:"center",display:"flex",marginLeft:"-10px"})),sn=({pack:e,handleSetDefaultAlacarte:n})=>{var s;const{t:i}=f(),{handleChange:o,setValues:r,errors:d}=v(),p=[{key:"",value:i("selectSubscriptionPlaceholder")},...((s=e==null?void 0:e.subscriptionLengthOptions)==null?void 0:s.map(a=>({key:a,value:i(a)})))||[]];return t.jsxs(t.Fragment,{children:[t.jsx(R,{style:{margin:"10px 0"},children:i("subscriptionLengthSelect")}),t.jsx(T,{sx:{marginTop:"1rem"},children:t.jsx(De,{field:"subscription",customError:d.subscription?i(d.subscription):"",showLabel:!1,options:p,onChange:a=>{const x=a.target.value;n({subType:x,formikSetValues:r}),o(a)}})})]})},dn=({pack:e,values:n})=>{const{t:i}=f();return t.jsxs(ln,{variant:"bodyMediumSemibold",children:[t.jsx("div",{children:i("cyoPackageTotal")}),t.jsx("div",{children:ne(e,n)})]})},cn=({headingNumber:e,linkToUpgradePackage:n,purchaseFlow:i="purchase"})=>{const{t:o}=f();return i==="upgrade"?t.jsx(t.Fragment,{}):t.jsxs(t.Fragment,{children:[t.jsx(R,{topBorder:!0,children:e?o("myFilesOptionsSelect",{headingNumber:`${e}.`,currentStorage:"1 GB"}):o("myFilesOptionsSelect",{currentStorage:"1 GB"})}),t.jsx(V,{children:t.jsx($,{t:o,i18nKey:"myfilesNoUpgradeText",components:{p:t.jsx("p",{}),customLink:n}})})]})},pn=({headingNumber:e,options:n})=>{const{t:i}=f(),{handleBlur:o,setFieldValue:r}=v(),[d,p]=C.useState(!1),s=Q(n);return t.jsx(t.Fragment,{children:!!s&&t.jsxs(t.Fragment,{children:[t.jsx(R,{topBorder:!0,style:{marginTop:"20px"},children:e?i("unlimitedPaymentOptionsSelect",{headingNumber:`${e}.`}):i("unlimitedPaymentOptionsSelect")}),t.jsx(V,{children:i("unlimitedPaymentsFeatureDescriptionPricedCyo")}),t.jsxs(an,{children:[t.jsx(at,{id:"unlimitedPayments",label:i("cyoAddPaymentsLabelTextPricedCyo"),name:"unlimitedPayments",onBlur:o,onChange:a=>{const x=a.target.checked;p(x);const c=x?s==null?void 0:s.code:"";r("unlimitedPayments",c)},checked:d}),t.jsx(on,{children:`+ ${s==null?void 0:s.priceFormatted}`})]})]})})},xn=({headingNumber:e,linkToUpgradePackage:n})=>{const{t:i}=f();return t.jsxs(t.Fragment,{children:[t.jsx(R,{topBorder:!0,style:{marginTop:"20px"},children:i("callsOptionsSelect",{headingNumber:`${e}`})}),t.jsx(V,{children:t.jsx($,{t:i,i18nKey:"callsNoUpgradeText",components:{p:t.jsx("p",{}),customLink:n}})})]})}
1,mn=({displayHeadingNumber:e={display:!0,offset:1},linkToUpgradePackage:n,options:i,optionType:o,purchaseFlow:r="purchase",freeOptions:d=["MYFILES"]})=>t.jsx(t.Fragment,{children:(()=>{switch(o){case"CALLSBASIC":return t.jsx(xn,{options:i,headingNumber:e!=null&&e.display?w({options:i,optionType:"CALLSBASIC",freeOptions:d})+(e==null?void 0:e.offset):null,linkToUpgradePackage:n});case"MYFILES":return t.jsx(cn,{linkToUpgradePackage:n,options:i,headingNumber:e!=null&&e.display?w({options:i,optionType:"MYFILES",freeOptions:d})+(e==null?void 0:e.offset):null,purchaseFlow:r});case"UNLIMITEDPAYMENTS":return t.jsx(pn,{options:i,headingNumber:e!=null&&e.display?w({options:i,optionType:"UNLIMITEDPAYMENTS",freeOptions:d})+(e==null?void 0:e.offset):null})}})()}),hi=({alacarteValues:e,backButton:n=null,handleFormSubmit:i,linkToUpgradePackage:o,pack:r,freeOptions:d=["MYFILES"]})=>{const{t:p}=f(),s=C.useCallback(({subType:a,formikSetValues:x})=>{var c,g;x({subscription:a,tonemeter:"",myfiles:(g=(c=r==null?void 0:r[a].options)==null?void 0:c.find(u=>u.optionName===E.MYFILES))==null?void 0:g.optionCode,unlimitedPayments:""})},[r]);return t.jsx(Ie,{children:t.jsxs(en,{children:[t.jsx(Qt,{variant:"h1",children:p("cyoHeaderPricedCyo")}),t.jsx(Ht,{variant:"bodyBase",children:p("cyoSubHeader")}),!!r&&t.jsx(te,{enableReinitialize:!0,initialValues:{...e,myfiles:(e==null?void 0:e.myfiles)||"1GB1"},onSubmit:i,validateOnMount:!0,validationSchema:kt,children:({handleSubmit:a,isSubmitting:x,isValid:c,values:g})=>{var b;const u=O({options:(b=r==null?void 0:r[g.subscription])==null?void 0:b.options,freeOptions:d});return t.jsxs(Nt,{onSubmit:a,children:[t.jsx(sn,{pack:r,handleSetDefaultAlacarte:s}),u.map(F=>{var S;return t.jsx(mn,{linkToUpgradePackage:o,options:(S=r[g.subscription])==null?void 0:S.options,optionType:F,freeOptions:d},F)}),t.jsxs(tn,{children:[t.jsx(dn,{pack:r,values:g}),t.jsx(T,{marginTop:"15px",children:t.jsx(ie,{id:"continueButton",color:"primary",disabled:x||!c,size:"large",variant:"contained",fullWidth:!0,onClick:a,isSubmitting:x,children:p("continueButton")})})]}),t.jsx(T,{alignContent:"start",marginTop:"15px",children:n??n})]})}})]})})};export{ae as $,ci as A,lt as B,hi as C,mi as D,Xn as E,kn as F,Yt as G,Ut as H,pi as I,ri as J,O as K,Ot as L,Et as M,oi as N,Kt as O,_n as P,gi as Q,Nn as R,Vn as S,xi as T,Hn as U,Zn as V,He as W,si as X,di as Y,$n as Z,Ln as _,ui as a,K as b,et as c,En as d,ti as e,On as f,Qe as g,Rn as h,ei as i,ni as j,ii as k,Kn as l,Yn as m,Gn as n,qn as o,Qn as p,Un as q,at as r,An as s,Jn as t,li as u,In as v,zn as w,ai as x,Wn as y,Dn as z};

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.