1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9309,36244,43732,75488,93382],{473:(e,l,t)=>{"use strict";t.r(l),t.d(l,{capitalize:()=>i.A,createChainedFunction:()=>a.A,createSvgIcon:()=>o.A,debounce:()=>r.A,deprecatedPropType:()=>s,isMuiElement:()=>d.A,ownerDocument:()=>c.A,ownerWindow:()=>u.A,requirePropFactory:()=>p,setRef:()=>_,unstable_ClassNameGenerator:()=>f,unstable_useEnhancedEffect:()=>m.A,unstable_useId:()=>h.A,unsupportedProp:()=>x,useControlled:()=>v.A,useEventCallback:()=>A.A,useForkRef:()=>y.A,useIsFocusVisible:()=>g.A});var n=t(78217),i=t(825),a=t(90181),o=t(52381),r=t(73112);let s=function(e,l){return()=>null};var d=t(46812),c=t(22155),u=t(96806);t(44501);let p=function(e,l){return()=>null},_=t(22775).A;var m=t(49633),h=t(34703);let x=function(e,l,t,n,i){return null};var v=t(91764),A=t(64013),y=t(55491),g=t(83468);let f={configure:e=>{n.A.configure(e)}}},10791:e=>{e.exports={primaryText:"familyPlanPrimaryLine_primaryText__e_sG2",checkoutPrimaryIcon:"familyPlanPrimaryLine_checkoutPrimaryIcon__Z1iSx"}},15731:e=>{e.exports={emptyCart:"EmptyCart_emptyCart__Svdfv",title:"EmptyCart_title__ihN5d",subTitle:"EmptyCart_subTitle__P1uVE",box:"EmptyCart_box__C45M5",boxText:"EmptyCart_boxText__C4_6A",order_helpline_box:"EmptyCart_order_helpline_box__hxJSc",image_container:"EmptyCart_image_container__Klaaz",blue_text:"EmptyCart_blue_text__mXJLV"}},23435:e=>{e.exports={simDetails:"SimDetailsPopup_simDetails__AuFl4",header:"SimDetailsPopup_header__iI1_J",content:"SimDetailsPopup_content__wBBzt",simInfo:"SimDetailsPopup_simInfo__qwFJC",buttonWrapper:"SimDetailsPopup_buttonWrapper__zKR4h",button:"SimDetailsPopup_button__lGi4o",active:"SimDetailsPopup_active__Vd_jr",compatibilityContent:"SimDetailsPopup_compatibilityContent__SAHZH",tabs:"SimDetailsPopup_tabs__j7R_A",listText:"SimDetailsPopup_listText__OZx7g"}}
1,24555:e=>{e.exports={portingFormWrapper:"OrderSimportin_portingFormWrapper__81jW1",helperText:"OrderSimportin_helperText__dyunK",portDateTime:"OrderSimportin_portDateTime__4hCDp",businessDaysNote:"OrderSimportin_businessDaysNote__7CdmS",keepNumberRow:"OrderSimportin_keepNumberRow__4z__b",SmallInfo:"OrderSimportin_SmallInfo__SBliv",TogglePortin:"OrderSimportin_TogglePortin__cb8aK",CustomSubtitle:"OrderSimportin_CustomSubtitle__nSG3e",otpWrapper:"OrderSimportin_otpWrapper__gZQrX",verifyOtp:"OrderSimportin_verifyOtp__H1xwL",heading:"OrderSimportin_heading__r3SE7",keepyourNum:"OrderSimportin_keepyourNum__E2Sor",radioOptions:"OrderSimportin_radioOptions__ZiAlA"}},25070:(e,l,t)=>{"use strict";t.d(l,{A:()=>o});var n=t(37876);t(14232);var i=t(75855),a=t(93012);let o=(0,i.Ay)(e=>(0,n.jsx)(a.A,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(e=>{let{theme:l}=e;return{width:36,height:20,borderRadius:12,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"dark"===l?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===l?"#E9E9EA":"#39393D"},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===l?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16},"& .MuiSwitch-track":{borderRadius:12,backgroundColor:"#BEC6D5",opacity:1,transition:"background-color 500ms"}}})},26216:(e,l,t)=>{"use strict";t.d(l,{A:()=>i});var n=t(14232);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[l,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{function l(){t(window.innerWidth<=e)}return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[e]),l}},34358:(e,l,t)=>{"use strict";t.d(l,{A:()=>F});var n=t(37876);t(14232);var i=t(75855),a=t(76044),o=t(74262),r=t(6995),s=t(9129),d=t(27092),c=t(23273),u=t(62375),p=t(72311),_=t(55134),m=t(16455),h=t(35519),x=t(38231),v=t.n(x),A=t(54587),y=t.n(A),g=t(34260),f=t(4833),b=t(26286),j=t(1243),C=t(31777),k=t(84210),w=t(29671),I=t(80063);let N={transform:"translate(14px, 8px) scale(0.75)"},S={color:"#B3B3B3",fontSize:"16px",fontWeight:400,lineHeight:"16px",fontFamily:"GTEestiLCDisplayRegular"},T={color:"#667085",fontSize:"12px",fontWeight:400,lineHeight:"14px"},D={fontFamily:"GTEestiLCDisplayRegular",color:"#2C68D8",fontSize:"16px",fontWeight:400,lineHeight:"18px",marginTop:"21px",cursor:"pointer"},$={fontFamily:"GTEestiLCDisplayRegular",color:"#2C68D8",fontSize:"16px",fontWeight:400,lineHeight:"18px",marginTop:"16px",cursor:"pointer"},P=(0,i.Ay)(a.A)(e=>{let{theme:l}=e;return{borderTopRightRadius:0,borderBottomRightRadius:0,backgroundColor:"#F9F9FF","&:focus":{backgroundColor:"#F9F9FF"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#F9F9FF"}}}),U=(0,i.Ay)(o.A)(e=>{let{theme:l}=e;return{color:"red",fontWeight:"bold",fontSize:"16px"}}),F=e=>{let{ssnErrorMessage:l,selectLabel:t,errorPassword:i,passwordErrorMsg:a,textField:x,freeSimStatus:A,wentFromPromo:F,position:E,invalidPromoMsg:B,notDisableEndAdor:M,setErrorNotDisable:z,notDisableEndAdorText:O,onForgotPasswordClick:L,background:W,errorNotDisable:R,ssnErrorNotDisable:G,setErrors:V,borderColor:H,fromLogin:K,selectValue:Y="",selectOptions:X,textFieldLabel:q="",textFieldValue:J,disabledSelect:Z,onSelectChange:Q,onTextFieldChange:ee,disabled:el=!1,deliverTo:et,IconComponent:en,width:ei,errorMsg:ea,maxLength:eo,widthField:er,displaySuffix:es,displaySelect:ed,displayStartAdor:ec,endAdorText:eu,startSrc:ep,selectWidth:e_,error:em,helperText:eh,name:ex,endSrc:ev,generateOtp:eA,setEmailVerificationPopup:ey,errorEmail:eg,handleNotDisableText:ef,type:eb,fieldName:ej,readOnly:eC=!1,isOverRideWidth:ek=!1,showHideIcon:ew=!1,onShowPasswordChange:eI,showPassword:eN,autoComplete:eS,onEnter:eT,id:eD,disabledBackground:e$=!1,fieldInteractionDetails:eP}=e,eU=(0,C.d4)(k.kV),eF=(0,C.d4)(I.Xk);null==eF||eF.country_code;let{currentStep:eE,formStep:eB}=eP??{},eM=(null==J?void 0:J.length)>0,ez=(0,r.A)("(max-width:768px)"),eO=()=>{eu===g.A.verify&&(null==eA||eA(),ey(!0))};return(0,n.jsxs)(s.Ay,{id:eg||M?M?M&&em||""===J?"grayedOut":"notDisableEndAdorStyle":"verifyTextField":"selectTextField",
1spacing:0,alignItems:"center",sx:{pointerEvents:eC?"none":void 0,cursor:eC?"default":void 0,"&:hover":eC?{}:void 0,"& .MuiOutlinedInput-notchedOutline":{borderColor:eC?"#DFE0F8":H??"#DFE0F8"}},children:[ed?(0,n.jsx)(s.Ay,{item:!0,children:(0,n.jsxs)(d.A,{sx:{width:"76px",minHeight:"50px"},children:[(0,n.jsx)(c.A,{...(0,f.$h_)(`${ej}-label`),children:t}),(0,n.jsx)(P,{disabled:Z??void 0,sx:{height:"50px",width:e_??void 0,pointerEvents:el?"none":void 0,"& .MuiOutlinedInput-notchedOutline":{borderColor:"#DFE0F8"},fontSize:"12px",backgroundColor:x&&"#ffff"||"",borderTopRightRadius:x&&"5px"||"",borderBottomRightRadius:x&&"5px"||""},IconComponent:h.A,value:Y,onChange:Q,children:null==X?void 0:X.map(e=>(0,n.jsx)(u.A,{value:e.value,children:e.label},e.value))})]})}):null,x?null:(0,n.jsxs)(s.Ay,{item:!0,sx:{display:"flex",flexDirection:"column",width:"100%"},width:ek?"100%":void 0,children:[(0,n.jsx)(p.A,{...(0,f.$h_)(`${ej}-input`),sx:{backgroundColor:K||W?"white":"",width:"100%"},label:eM&&"promo"===ex?"":q,variant:"outlined",disabled:el,id:eD,autoComplete:eS,onKeyDown:e=>((e,l,t)=>{9===e.keyCode&&""===J.trim()&&V(e=>({...e,[l]:t})),13===e.keyCode&&eT&&ef()})(e,ex,ea),InputLabelProps:{shrink:!1,sx:{...eM&&"promo"!==ex?N:{},...S,...eM?T:{},marginLeft:ec?"32px":void 0}},value:J,onChange:ee,type:eb,inputProps:{maxLength:eo},error:em,className:`${ek&&el&&""===q?null===v()||void 0===v()?void 0:v().inputPadding3:eM&&!F?ec&&!F?null===v()||void 0===v()?void 0:v().inputPadding2:null===v()||void 0===v()?void 0:v().inputPadding1:""}`,InputProps:{startAdornment:ec?(0,n.jsx)(o.A,{position:"start",children:(0,n.jsx)(y(),{width:24,height:24,src:ep??"",alt:"email"})}):null,endAdornment:(0,n.jsxs)(n.Fragment,{children:[ew&&(0,n.jsx)(o.A,{position:"end",children:(0,n.jsx)(_.A,{"aria-label":"toggle password visibility",onClick:()=>{eI&&eI()},children:eN?(0,n.jsx)(b.A,{}):(0,n.jsx)(j.A,{})})}),es&&M?(0,n.jsx)(U,{position:"end",onClick:()=>{ef(),(0,w.$d)((0,w.ar)(eU),eE,eB,O,"delivery and payment")},children:O}):es?(0,n.jsx)(U,{position:"end",onClick:eO,children:eu}):(0,n.jsx)(U,{position:"end",onClick:eO,children:(0,n.jsx)(y(),{src:ev||"",alt:""})})]}),className:v().customInput,sx:{height:"50px",width:ek?"100%":er??(!ez||ec||ed||el||!et?!ez||ec||ed||el?ez&&!ec?"13.18rem":ez&&ec?"22rem":ei??void 0:"100%":"138px"),borderLeft:"none",backgroundColor:ek&&el&&e$?"#F8F8F8 !important":ek&&el&&""===q?"#E9E9E9 !important":void 0,"& fieldset":{borderBottom:R||G?"none":void 0,borderBottomLeftRadius:R||G?0:void 0,borderBottomRightRadius:R||G?0:void 0,borderColor:H??"#DFE0F8"},borderTopLeftRadius:ed?0:void 0,borderBottomLeftRadius:ed?0:void 0}}}),em&&(0,n.jsx)(s.Ay,{className:`${v().error}`,children:eh}),R&&(0,n.jsxs)("div",{className:v().errorPostCode,children:[(0,n.jsx)(y(),{...(0,f.$h_)("info-error-not-availble"),src:m.z.infoIconLightRed,alt:"info"})," ",g.A.notAvailableLocation]}),G&&(0,n.jsxs)("div",{className:v().errorPostCode,children:[(0,n.jsx)(y(),{src:m.z.infoIconLightRed,...(0,f.$h_)("info-error-message"),alt:"info"})," ",l||g.A.ssnInfo]}),B&&(0,n.jsxs)("div",{className:v().errorPromoCode,children:[(0,n.jsx)(y(),{src:m.z.promoCodeIcon,...(0,f.$h_)("info-error-message"),alt:"info",width:15,height:15})," ",B||g.A.ssnInfo]}),i&&a&&(0,n.jsxs)("div",{className:v().errorPassword,style:{width:ek?"100%":"auto"},children:[(0,n.jsx)(y(),{src:m.z.infoIconLightRed,...(0,f.$h_)("info-error-message"),alt:"info"})," ",a]}),K&&(0,n.jsx)("div",{style:ez?$:D,onClick:L,...(0,f.$h_)("forgot-password-text"),children:g.A.forgotPassword})]})]})}},34703:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});let n=t(53855).A},36141:e=>{e.exports={font_gray_color:"Checkout_font_gray_color__a62Fs",font_dark_color:"Checkout_font_dark_color__8yFb_",font_dark_color_topup:"Checkout_font_dark_color_topup__i7CoH",initial_amount:"Checkout_initial_amount__J6cTg",deleteIcon:"Checkout_deleteIcon__ySN9h",flex_row_end:"Checkout_flex_row_end__1Byzw",flex_row_end_amount:"Checkout_flex_row_end_amount__Tw6aq",amountPrice:"Checkout_amountPrice__IAKWs",font_free_color:"Checkout_font_free_color__V3zPr",font_free_color_2:"Checkout_font_free_color_2__0L4tK",esim_wrapper:"Checkout_esim_wrapper__iiM0u",help_icon:"Checkout_help_icon__Qrp0O",help_icon_esim:"Checkout_help_icon_esim__5_tbZ",help_icon_none:"Checkout_help_icon_none__8GSDO",text_physicalsim:"Checkout_text_physicalsim__Nvnw8",text_esim:"Checkout_text_esim__aLg1L",text_esim_bold:"Checkout_text_esim_bold__QAUjV",order_helpline_box:"Checkout_order_helpline_box__5fr8o",image_container:"Checkout_image_container__rrT9z",title1:"Checkout_title1__jlIE_",boxText:"Checkout_boxText__ey1f9",blue_text:"Checkout_blue_text__xjdJ_",checkout:"Checkout_checkout__kbqp9",title:"Checkout_title__q9o26",planDetails:"Checkout_planDetails__lUAJM",header:"Checkout_header__TWpip",textWrapper:"Checkout_textWrapper__Qv7Zq",text:"Checkout_text__UIzGa",imageWrapper:"Checkout_imageWrapper___hUmW",deactivePlan:"Checkout_deactivePlan__nCgUb",activePlan:"Checkout_activePlan__wSkFk",imageWrapperAreaCover:"Checkout_imageWrapperAreaCover__f_yVA",text_sm:"Checkout_text_sm__VNYNY",inActive:"Checkout_inActive__yWRTV",text_sm_addtopp:"Checkout_text_sm_addtopp__9Y04K",buddy_text:"Checkout_buddy_text__IkI6j",high_light:"Checkout_high_light__0SndN",offer_high_light:"Checkout_offer_high_light__fu45s",columndirection:"Checkout_columndirection__xNOLj",discount_wrapper:"Checkout_discount_wrapper__uDHwJ",discountText:"Checkout_discountText__VyVfq",priceValue:"Checkout_priceValue__9nYop",simText:"Checkout_simText__fomCF",button_container:"Checkout_button_container__ZkBff",simText_btn:"Checkout_simText_btn__ng18Q",simText_black:"Checkout_simText_black__7Pwhc",simText_btn_2:"Checkout_simText_btn_2__TfVPJ",simWrapper:"Checkout_simWrapper__LksWg",viewDetails:"Checkout_viewDetails__Osy3u",price:"Checkout_price__ioGm_",topUpWrapper:"Checkout_topUpWrapper__OE63G",topUpStyle:"Checkout_topUpStyle__rwJlv",areaCoverageMain:"Checkout_areaCoverageMain__LP2GC",mapGreen:"Checkout_mapGreen__kN0nD",promoCode:"Checkout_promoCode__mzx_l",checkAreaCoverageInside:"Checkout_checkAreaCoverageInside__f06Mi",zipFieldWrapper:"Checkout_zipFieldWrapper__xskTH",coverageSuccess:"Checkout_coverageSuccess__YH24S",ssnMain:"Checkout_ssnMain__1UKlj",ssnInside:"Checkout_ssnInside__fnzR6",checkSuccess:"Checkout_checkSuccess__neWmw",ssn_text:"Checkout_ssn_text__v7Dlv",anatherLine:"Checkout_anatherLine__01X1B",hint:"Checkout_hint__EfBci",addPlanAgain:"Checkout_addPlanAgain__4Nxwk",otherCharges:"Checkout_otherCharges__OCPHO",checkoutSummary:"Checkout_checkoutSummary__Wkj2N",to
1pText:"Checkout_topText__VtZye",subtotal:"Checkout_subtotal__tmb_Y",subTotalAmount:"Checkout_subTotalAmount__b_9Tb",bottomText:"Checkout_bottomText__aXTmp",total:"Checkout_total__nrARD",haveOldeNumber:"Checkout_haveOldeNumber__YGIaz",note:"Checkout_note__h_Gsz",totalSummary:"Checkout_totalSummary__vGHyq",TotalSummaryPriceContainer:"Checkout_TotalSummaryPriceContainer__NoL65",totalText:"Checkout_totalText__EhfUo",amount:"Checkout_amount__MSkKW",checkout_btn:"Checkout_checkout_btn__XvDfA",checkout_btn_selected:"Checkout_checkout_btn_selected__f7Upx",errorBlock:"Checkout_errorBlock__J60Cy",mainBox:"Checkout_mainBox__c7N6C"}},36291:e=>{e.exports={t_and_c_container:"T_CPopUp_t_and_c_container__WiOIX",header:"T_CPopUp_header__aXtvs",title:"T_CPopUp_title__mPUb_",dashBoardTitle:"T_CPopUp_dashBoardTitle__eHlCV",content:"T_CPopUp_content__4zEjb",isSwap:"T_CPopUp_isSwap__rqTPl",t_and_c_container_dashboard:"T_CPopUp_t_and_c_container_dashboard__uvrkd",t_and_c_container_login:"T_CPopUp_t_and_c_container_login__FyIPC",swap_main_container:"T_CPopUp_swap_main_container__wC_oj",text:"T_CPopUp_text__iVgbh",sub_container:"T_CPopUp_sub_container__7Lo_n",btn:"T_CPopUp_btn__lnali",returnBackToBtn:"T_CPopUp_returnBackToBtn__uYdL9"}},38203:e=>{e.exports={topPlusIcon:"TopUpCard_topPlusIcon__JuK2H",boxContainer:"TopUpCard_boxContainer__ZTArc",innerBox:"TopUpCard_innerBox__ICFMy",border_left:"TopUpCard_border_left__TASXl",price:"TopUpCard_price__lIdap",decimal:"TopUpCard_decimal__I_msT",bottomText:"TopUpCard_bottomText__SJCjk",rightBox:"TopUpCard_rightBox__eqQK3",selected:"TopUpCard_selected__Rxcr0",boder_left:"TopUpCard_boder_left__m64D4"}},38231:e=>{e.exports={customInput:"SelectTextField_customInput__AUgne",endAdorTextDisabled:"SelectTextField_endAdorTextDisabled__Nc1uO",endAdorActive:"SelectTextField_endAdorActive__qHub7",inputPadding1:"SelectTextField_inputPadding1___Mez_",inputPadding3:"SelectTextField_inputPadding3__LB7d1",inputPadding2:"SelectTextField_inputPadding2__q7vXx",error:"SelectTextField_error__IaT_K",errorPostCode:"SelectTextField_errorPostCode__K7big",errorPromoCode:"SelectTextField_errorPromoCode__xT6jW",errorPassword:"SelectTextField_errorPassword__9aJk8"}},40863:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return t(48011)}])},43842:(e,l,t)=>{"use strict";t.d(l,{A:()=>x});var n=t(37876),i=t(14232),a=t(9129),o=t(70496),r=t(84733),s=t(5067),d=t(38203),c=t.n(d),u=t(34260),p=t(31777),_=t
1(80063),m=t(58998),h=t(4833);let x=e=>{var l;let{planCost:t,isActive:d,currencySymbol:x,planName:v,planType:A,featureList:y,isSelected:g=!1,isrecommended:f="",isExpandable:b=!0,planDuration:j,onClick:C,topUpIndex:k,...w}=e;(0,p.d4)(_.Xk);let I=(0,i.useRef)(null),N=async()=>{var e;await C(),null==I||null==(e=I.current)||e.scrollIntoView({behavior:"auto",block:"center",inline:"center"})};return(0,n.jsxs)(a.Ay,{ref:I,children:[(0,n.jsxs)(a.Ay,{textAlign:"center",sx:f?{visibility:"visible"}:{visibility:"hidden"},children:[" ",(0,n.jsx)("div",{className:c().topPlusIcon,children:(0,n.jsx)("span",{...(0,h.$h_)("credit-top-up-recommended-heading"),children:u.A.recommended})})]}),(0,n.jsxs)(o.A,{...w,onClick:N,className:`${c().boxContainer} ${g?`${c().selected} ${(null==y?void 0:y.length)>0?"":c().boder_left}`:""}`,...(0,h.$h_)(`topup-credit-plan-button-${k}`),children:[(0,n.jsxs)(r.A,{className:c().innerBox,children:[(0,n.jsx)(s.A,{className:c().border_left,children:(0,n.jsx)(m.A,{planId:k,currText:"top-up-credit-currency",amtText:"top-up-credit-amount",amountValue:t,amountStyle:c().price})}),(!g||A!==u.A.plusMore)&&(0,n.jsx)(s.A,{className:c().bottomText,...(0,h.$h_)(`topup-credit-plan-type-${k}`),children:A})]}),g&&b&&(0,n.jsxs)(r.A,{className:c().rightBox,children:[(0,n.jsx)(s.A,{...(0,h.$h_)("credit-top-up-selected-name"),component:"span",children:v}),null==(l=y.slice(0,2))?void 0:l.map((e,l)=>(0,n.jsxs)(s.A,{children:[(0,n.jsx)(s.A,{...(0,h.$h_)(`credit-top-up-selected-feature-list-${l+1}`),sx:{fontSize:14,color:"#667085",fontWeight:"500",lineHeight:"24px",maxWidth:"160px",display:"inline-block",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:(null==y?void 0:y.length)===1?"wrap":"nowrap",verticalAlign:"top",textAlign:"left"},component:"span",children:e})," "]},e))]})]})]})}},45105:(e,l,t)=>{e.exports=t(87665)},48011:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSP:()=>e0,default:()=>e1});var n=t(37876),i=t(14232),a=t(89099),o=t(2797),r=t(1134),s=t(4833),d=t(18847),c=t.n(d),u=t(31777),p=t(17840),_=t(81279),m=t(5067),h=t(6995),x=t(10616),v=t(9129),A=t(81516),y=t(84733),g=t(22353),f=t(41244),b=t(34260),j=t(16455),C=t(54587),k=t.n(C),w=t(36141),I=t.n(w),N=t(39870),S=t(58634),T=t(70490),D=t(55134),$=t(61195),P=t.n($),U=t(80063);let F=e=>{let{onClose:l,deleteRow:t,rowData:i,isFamilyPlanPresent:a}=e,o=(0,u.d4)(U.Xk),r=(null==o?void 0:o.country_code)==="IT";return(0,n.jsxs)(v.Ay,{p:4,container:!0,className:P().deleteModal,children:[(0,n.jsx)(v.Ay,{item:!0,sm:12,className:P().header,children:(0,n.jsx)(D.A,{onClick:l,children:(0,n.jsx)(k(),{loading:"lazy",src:j.z.popup_close,alt:"closeCicle",...(0,s.$h_)("close-icon")})})}),(0,n.jsxs)(v.Ay,{container:!0,className:P().content,children:[(0,n.jsx)(y.A,{className:P().heading,children:b.A.areYouSure}),(0,n.jsx)(m.A,{className:P().deleteText,children:b.A.deleteText}),(0,n.jsxs)(v.Ay,{className:P().buttonWrapper,item:!0,sm:12,textAlign:"center",children:[(0,n.jsx)(f.A,{...(0,s.$h_)("discard_and_add_new_line"),variant:"contained",onClick:()=>t(i,"removeAndAdd"),className:`${P().button} ${P().link}`,children:b.A.discard_new_lineButtonText}),!r&&!a&&(0,n.jsx)(f.A,{variant:"contained",onClick:()=>t(i,"creditLine"),className:`${P().button} ${P().link}`,...(0,s.$h_)("discard_add_credit"),children:b.A.discard_add_creditButtonText}),(0,n.jsx)(f.A,{variant:"contained",onClick:()=>t(i,"removeLine"),className:`${P().button} ${P().link}`,...(0,s.$h_)("remove_line"),children:b.A.removeText})]})]})]})};var E=t(15731),B=t.n(E),M=t(1127),z=t(13201),O=t(16562),L=t(60849),W=t(40501);let R=e=>{var l;let{}=e,t=(0,a.useRouter)(),[o,r]=(0,i.useState)();(0,i.useEffect)(()=>{d(),(0,L.UI)(W.H.hotsim,!0)},[]);let d=async()=>{try{let{status:e,data:l}=await M.A.get(z.t.emaptyBasketCMSData);200===e&&r(l)}catch(e){}};return(0,n.jsx)(v.Ay,{container:!0,item:!0,mx:"auto",my:5,sm:6,className:B().emptyCart,children:null==o||null==(l=o.cms_data)?void 0:l.map(e=>{var l,i,a,o,r,d,c;return(null==e?void 0:e.type)==="node--empty_basket"?null==e||null==(l=e.field_text_max_2)?void 0:l.map((e,l)=>0==l?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(m.A,{className:B().title,children:(0,n.jsx)(O.A,{content:null==e?void 0:e.processed})})}):1==l?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(y.A,{className:B().box,children:(0,n.jsx)("div",{onClick:e=>{e.preventDefault(),t.push(`${(0,s.Cu3)(t.locale)}/${(0,s.GPS)(t.locale)}/`)},children:(0,n.jsx)(m.A,{className:B().boxText,children:(0,n.jsx)(O.A,{content:(0,s.Auo)(null==e?void 0:e.processed)})})})})}):void 0):(null==e?void 0:e.type)=="node--basket_order_helpline"?(0,n.jsxs)(y.A,{className:B().order_helpline_box,children:[(0,n.jsx)(k(),{width:67,height:67,src:null==e||null==(r=e.children)||null==(o=r[0])||null==(a=o.uri)||null==(i=a[0])?void 0:i.url,alt:"phone "}),(0,n.jsx)("div",{children:(0,n.jsx)(O.A,{content:null==e||null==(c=e.field_content)||null==(d=c[0])?void 0:d.processed})})]}):void 0})})};var G=t(43842),V=t(58998),H=t(29671),K=t(84210),Y=t(20495);let X=e=>{let{totals:l,isDisabled:t,handleAdobeProgress:i,taxDetails:o,ssnFlag:r,hotSim:d,fieldInteractionDetail
1s:c}=e,p=(0,a.useRouter)(),{step:_,formStep:m,fieldName:h}=c,x=(0,u.wA)(),A=(0,u.d4)(K.kV);l+=Number(null==o?void 0:o.total_tax)||0;let y=(0,u.d4)(e=>e.PersonalInformationSlice.isOtpVerified),g=(0,u.d4)(Y.n0),j=(0,u.d4)(Y.TP),C=!t||g&&!j.allFilled||g&&!y;return(0,n.jsxs)(v.Ay,{container:!0,className:I().total,xs:12,md:4.75,margin:"auto",children:[(0,n.jsxs)(v.Ay,{className:I().TotalSummaryPriceContainer,item:!0,xs:6,sm:12,textAlign:"right",mb:1,children:[(0,n.jsxs)("span",{...(0,s.$h_)("check-out-total-bar-heading"),className:I().totalText,children:[" ",b.A.totalText," "]})," ",(0,n.jsx)("span",{className:I().amount,children:(0,n.jsx)(V.A,{amtText:"check-out-total-bar-amount",currText:"check-out-total-bar-currency",amountValue:null==l?void 0:l.toString()})})]}),(0,n.jsxs)(v.Ay,{item:!0,xs:6,sm:12,children:[(0,n.jsx)(f.A,{...(0,s.$h_)("check-out-checkout-cta-btton"),disabled:C,variant:"contained",onClick:()=>{var e,l;i(),r||(x((0,U.X0)({})),x((0,U.x5)({})),x((0,U.b9)({})),(0,L.UI)(W.H.personalDetails,!0)),"undefined"!==d&&x((0,U.jF)(d)),p.push("/delivery-payment",void 0,{shallow:!0}),(0,H.$d)((0,H.ar)(A),_,m,h,"Checkout",`${null==(l=window)||null==(e=l.location)?void 0:e.origin}/${null==p?void 0:p.locale}/delivery-payment`)},className:`${C?I().checkout_btn:I().checkout_btn_selected}`,children:b.A.checkoutNow})," "]})]})};var q=t(85185),J=t(24638),Z=t(75488),Q=t(70496),ee=t(53859),el=t.n(ee),et=t(85488);let en=e=>{var l,t;let{onClose:a,productData:o}=e,r=null,d=(null==(r=window)||null==(l=r.location)?void 0:l.host)&&(0,_.A)(null==r||null==(t=r.location)?void 0:t.host),c=(0,h.A)("(max-width:768px)"),[u,p]=(0,i.useState)(""),[x,A]=(0,i.useState)(b.A.notAvalidPromo),g=[{id:1,imageSrc:j.z.tagImage,text1:b.A.savings,text2:b.A.firstTimeOrder,text3:b.A.welcomeTen,arrowImageSrc:j.z.rightArrow},{id:2,imageSrc:j.z.tagImage,text1:b.A.savings,text2:b.A.firstTimeOrder,text3:b.A.welcomeTen,arrowImageSrc:j.z.rightArrow},{id:3,imageSrc:j.z.tagImage,text1:b.A.savings,text2:b.A.firstTimeOrder,text3:b.A.welcomeTen,arrowImageSrc:j.z.rightArrow}],[f,C]=(0,i.useState)(!1),[w,I]=(0,i.useState)(!1),N=async()=>{let e,l=(0,s.KeO)();l&&(e=d.country_prefix+l);try{if(""!==u.trim()){let{status:l,data:t}=await M.A.post(z.t.validPromoCode,{promo_code:u,msisdn:e,promo_type:"",email_id:"",network_id:"1"});200===l&&(I(!0),C(!1))}else I(!1),I(!0),C(!0),A(b.A.notAvalidPromo)}catch(e){I(!1),C(!0),A(b.A.notAvalidPromo)}};
1return(0,n.jsx)(y.A,{className:el().plandetailsCard,children:(0,n.jsxs)(v.Ay,{container:!0,display:"flex",flexDirection:"column",children:[(0,n.jsx)(v.Ay,{item:!0,className:el().header,children:(0,n.jsx)(D.A,{draggable:"false",onClick:()=>{a(),I(!1)},children:(0,n.jsx)(k(),{draggable:"false",src:j.z.popup_close,alt:"popup-close",className:el().close_popup})})}),(0,n.jsx)(v.Ay,{item:!0,className:el().headerText,children:b.A.applyCode}),(0,n.jsxs)(v.Ay,{container:!0,justifyContent:"center",alignItems:"center",flexDirection:"column",children:[(0,n.jsx)(v.Ay,{item:!0,className:el().headerSection,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",children:(0,n.jsxs)(v.Ay,{container:!0,children:[(0,n.jsx)(v.Ay,{item:!0,className:`${!f&&el().mobileImageWrapper} ${!c&&f&&el().deskImageWrapper} ${c&&f&&el().mobileImageError}`,sx:{paddingBottom:c?"":"58px"},children:(0,n.jsx)(k(),{src:j.z.promoImage,alt:"Landscape picture"})}),(0,n.jsx)(v.Ay,{item:!0,className:`${el().inputField}`,sx:{display:w?"none":""},children:(0,n.jsx)(et.A,{placeholder:b.A.enterTheCode,ariaLabel:b.A.enterTheCode,onSubmit:N,textChange:e=>{""===e?(C(!0),A(b.A.notAvalidPromo)):(p(e),C(!1),A(""))},pageId:"promo-offer",showError:f,phoneNumberLocalError:x,className:b.A.promoClass})}),w&&(0,n.jsxs)(v.Ay,{item:!0,display:"flex",flexDirection:"row",justifyContent:"center",gap:3,alignItems:"center",className:`${el().editSection}`,children:[(0,n.jsx)(m.A,{children:u}),(0,n.jsx)(m.A,{children:b.A.offerAmount}),(0,n.jsx)(D.A,{onClick:()=>I(!w),children:(0,n.jsx)(k(),{src:j.z.editPencil,alt:"edit"})})]})]})}),g.map(e=>(0,n.jsxs)(v.Ay,{item:!0,gap:c?1:2,display:"flex",justifyContent:"center",alignItems:"center",className:el().subSection,children:[(0,n.jsx)(k(),{src:e.imageSrc,alt:""}),(0,n.jsxs)(v.Ay,{item:!0,children:[(0,n.jsx)(m.A,{className:el().text1,children:e.text1}),(0,n.jsx)(m.A,{className:el().text2,children:e.text2})]}),(0,n.jsx)("p",{className:el().text3,children:e.text3}),(0,n.jsx)(k(),{src:e.arrowImageSrc,alt:""})]},e.id)),(0,n.jsxs)(v.Ay,{item:!0,children:[(0,n.jsx)(Q.A,{className:el().button,variant:"contained",onClick:()=>{},children:b.A.confirmApply})," "]})]})]})})};var ei=t(18028),ea=t(34358),eo=t(78632),er=t.n(eo);let es=e=>{let{rowItem:l}=e;(0,u.d4)(U.Xk);let{deliveryAmount:t,tax:i,fee:a}=l;(0,x.A)();let o=(0,h.A)("(max-width:600px)"),r=parseFloat(t)+parseFloat(i)+parseFloat(a);return(0,n.jsx)(n.Fragment,{children:o?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(y.A,{sx:{width:"100%",display:"flex",flexDirection:"column",padding:"0px 17px",gap:"16px"},children:[(0,n.jsxs)(y.A,{sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsxs)(y.A,{...(0,s.$h_)("check-out-other-charges-heading"),className:er().other_charges_text_sm,children:[b.A.other," ",b.A.charges]}),(0,n.jsx)(y.A,{className:er().price_sm,...(0,s.$h_)("check-out-charges-amount"),children:(0,n.jsx)("span",{className:er().charges_rate,children:(0,n.jsx)(V.A,{amtText:"check-out-delivery-charges-amount",currText:"check-out-delivery-charges-currency",amountValue:r.toFixed(2).toString()})})})]}),(0,n.jsxs)(y.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"65%"},children:[(0,n.jsx)(y.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:(0,n.jsxs)("span",{...(0,s.$h_)("check-out-delivery-charges-heading"),className:er().charges_heading_sm,children:[b.A.delivery,(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:er().charges_rate,children:(0,n.jsx)(V.A,{amtText:"check-out-delivery-charges-amount",currText:"check-out-delivery-charges-currency",amountValue:t.toString()})})]})}),(0,n.jsx)(y.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:(0,n.jsxs)("span",{...(0,s.$h_)("check-out-tax-rate-heading"),className:er().charges_heading_sm,children:[b.A.tax,(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:er().charges_rate,children:(0,n.jsx)(V.A,{amtText:"check-out-delivery-charges-amount",currText:"check-out-delivery-charges-currency",amountValue:t.toString()})})]})}
1),(0,n.jsx)(y.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:(0,n.jsxs)("span",{...(0,s.$h_)("check-out-fee-heading"),className:er().charges_heading_sm,children:[b.A.fee,(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:er().charges_rate,children:(0,n.jsx)(V.A,{amtText:"check-out-delivery-charges-amount",currText:"check-out-delivery-charges-currency",amountValue:a.toString()})})]})})]})]})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(v.Ay,{display:"flex",justifyContent:"space-between",className:er().charges_section,children:[(0,n.jsxs)(v.Ay,{display:"flex",justifyContent:"flex-start",className:er().charges_content,children:[(0,n.jsxs)(v.Ay,{className:er().other_charges,children:[(0,n.jsx)("span",{className:er().other_charges_text,...(0,s.$h_)("check-out-other-heading-text"),children:b.A.other}),(0,n.jsx)("span",{...(0,s.$h_)("check-out-charges-heading-text"),className:er().other_charges_text,children:b.A.charges})]}),(0,n.jsxs)(v.Ay,{children:[(0,n.jsx)("span",{...(0,s.$h_)("check-out-delivery-charges-heading"),className:er().charges_heading,children:b.A.delivery}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:er().charges_rate,children:(0,n.jsx)(V.A,{amtText:"check-out-delivery-charges-amount",currText:"check-out-delivery-charges-currency",amountValue:t.toString()})})]}),(0,n.jsxs)(v.Ay,{children:[(0,n.jsx)("span",{...(0,s.$h_)("check-out-fee-charges-heading"),className:er().charges_heading,children:b.A.fee}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:er().charges_rate,children:(0,n.jsx)(V.A,{amtText:"check-out-fee-charges-amount",currText:"check-out-fee-charges-currency",amountValue:a.toString()})})]})]}),(0,n.jsx)(v.Ay,{className:er().price,children:(0,n.jsx)(V.A,{amtText:"check-out-total-extra-charges-amount",currText:"check-out-total-extra-charges-currency",amountValue:r.toFixed(2).toString()})})]})})})};var ed=t(26216);t(78332);var ec=t(87468),eu=t(72294),ep=t(67330),e_=t(25070);window;let em=e=>{let{handleHotSim:l,hotSim:t}=e;return(0,n.jsx)(v.Ay,{className:I().header,item:!0,sm:12,display:"flex",flexDirection:"row",children:(0,n.jsx)(v.Ay,{container:!0,className:`${I().simWrapper} ${I().topUpWrapper}`,children:(0,n.jsx)(v.Ay,{container:!0,item:!0,justifyContent:"space-between",className:I().columndirection,sx:{alignItems:"center"},children:(0,n.jsxs)(v.Ay,{item:!0,sm:9,lg:12,children:[(0,n.jsx)(m.A,{className:I().text_sm_addtopp,children:b.A.switchtoLycaTxt}),(0,n.jsxs)(v.Ay,{item:!0,xs:12,display:"flex",justifyContent:"left",sx:{marginLeft:"2px",marginTop:"12px"},children:[(0,n.jsx)("div",{...(0,s.$h_)("hotsim-enabled-n"),className:I().text_hotsim,children:b.A.hotSimQuestion}),(0,n.jsx)(e_.A,{...(0,s.$h_)("switch-hotsim-n"),checked:!t,sx:{marginLeft:"8px",marginRight:"8px"},onChange:l})]}),!t&&(0,n.jsxs)(y.A,{sx:{display:"flex",gap:"7px",flexDirection:"row",marginTop:"12px"},children:[(0,n.jsx)(k(),{src:j.z.infoGray,height:18,width:18,alt:"info"}),(0,n.jsx)(m.A,{className:`text-lg ${I().text_physicalsim}`,sx:{fontFamily:"GTEestiLCDisplayRegular"},children:null===b.A||void 0===b.A?void 0:b.A.hotSimInfoText})]})]})})})})};window;let eh=e=>{var l,t,i,a,o,r,d,c,u,p,_,h,x,A,g,f,j,C,k,w,N,S,T,D,$,P,U,F,E,B,M,z,O;let{handleBuddySimOffer:L,item:W}=e,R=(null==W||null==(i=W.planItem)||null==(t=i.bundleGroupDetails)||null==(l=t[0])?void 0:l.buddyBundleName)||(null==W||null==(a=W.planItem)?void 0:a.productDisplayName);return(0,n.jsxs)(v.Ay,{className:I().header,item:!0,sm:12,sx:{background:"#EFF8FF",position:"relative"},display:"flex",flexDirection:"row",children:[(null==W||null==(d=W.planItem)||null==(r=d.bundleGroupDetails)||null==(o=r[0])?void 0:o.buddyBundleHeading)&&(0,n.jsx)("span",{className:I().high_light,...(0,s.$h_)("offer-tag-1"),children:null==W||null==(p=W.planItem)||null==(u=p.bundleGroupDetails)||null==(c=u[0])?void 0:c.buddyBundleHeading}),(0,n.jsx)(v.Ay,{container:!0,className:`${I().simWrapper} ${I().topUpWrapper}`,children:(0,n.jsx)(v.Ay,{container:!0,item:!0,justifyContent:"space-between",className:I().columndirection,sx:{alignItems:"center",marginTop:"4px"},children:(0,n.jsxs)(v.Ay,{item:!0,sm:12,lg:12,children:[(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,n.jsx)(m.A,{className:I().buddy_text,children:(null===b.A||void 0===b.A?void 0:b.A.FREESIMPlus)+" "+R}
1),(null==W||null==(x=W.planItem)||null==(h=x.bundleGroupDetails)||null==(_=h[0])?void 0:_.buddyBundlePrice)?(0,n.jsx)(m.A,{sx:{fontSize:"14px"},...(0,s.$h_)("want-buddy-SIM-n"),className:`${I().offer_high_light} ${I().font_free_color} ${I().buddy_text}`,children:(null==W||null==(f=W.planItem)||null==(g=f.bundleGroupDetails)||null==(A=g[0])?void 0:A.buddyOfferText)??""}):(0,n.jsx)(m.A,{sx:{fontSize:"14px"},...(0,s.$h_)("want-buddy-SIM-n"),className:`${I().font_free_color} ${I().buddy_text}`,children:null===b.A||void 0===b.A?void 0:b.A.FREE})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(null==W||null==(j=W.planItem)?void 0:j.dataAllowanceUnit)&&(null==W||null==(w=W.planItem)||null==(k=w.bundleGroupDetails)||null==(C=k.filter(e=>{var l;return(null==W||null==(l=W.cartItem)?void 0:l.bundle_code)==(null==e?void 0:e.bundleCode)})[0])?void 0:C.productValidity)&&(null==W||null==(T=W.planItem)||null==(S=T.bundleGroupDetails)||null==(N=S.filter(e=>{var l;return(null==W||null==(l=W.cartItem)?void 0:l.bundle_code)==(null==e?void 0:e.bundleCode)})[0])?void 0:N.productValidityUnit)&&(0,n.jsx)(m.A,{...(0,s.$h_)("check-out-plan-standard-data-n-1"),className:I().price,sx:{marginTop:"4px"},children:(null==W||null==(P=W.planItem)||null==($=P.bundleGroupDetails)||null==(D=$[0])?void 0:D.buddyBundleAllowance)??""}),(null==W||null==(E=W.planItem)||null==(F=E.bundleGroupDetails)||null==(U=F[0])?void 0:U.buddyBundlePrice)&&(0,n.jsx)(m.A,{sx:{fontSize:"14px"},...(0,s.$h_)("want-buddy-SIM-n"),className:`${I().font_free_color} ${I().buddy_text}`,children:(0,n.jsx)(V.A,{amountValue:(null==W||null==(z=W.planItem)||null==(M=z.bundleGroupDetails)||null==(B=M[0])?void 0:B.buddyBundlePrice)??"0"})})]}),(0,n.jsx)(m.A,{sx:{fontSize:"14px",marginTop:"4px"},...(0,s.$h_)("buddy-enabled-n"),className:I().price,children:`${null===b.A||void 0===b.A?void 0:b.A.buddyAccountHolder}`}),(0,n.jsxs)(y.A,{sx:{display:"flex",marginTop:"12px",alignItems:"center"},children:[(0,n.jsx)(e_.A,{...(0,s.$h_)("switch-hotsim-n"),checked:!!(null==W||null==(O=W.cartItem)?void 0:O.buddy_plan_selected),sx:{marginRight:"14px"},onChange:L})," ",(0,n.jsx)(m.A,{sx:{fontSize:"14px"},...(0,s.$h_)("want-buddy-SIM-n"),className:I().price,children:null===b.A||void 0===b.A?void 0:b.A.wantBuddySim})]})]})})})]})};var ex=t(75855),ev=t(93012),eA=t(72311),ey=t(74262),eg=t(62375),ef=t(24555),eb=t.n(ef),ej=t(68421),eC=t(90004),ek=t(64397),ew=t(56557),eI=t.n(ew),eN=t(14412),eS=t(79775),eT=t(72934),eD=t(77889),e$=t(66800),eP=t(44853),eU=t(80599),eF=t(66292),eE=t(74955),eB=t(538),eM=t(21701),ez=t(26302),eO=t(80542),eL=t(33048),eW=t(97565),eR=t.n(eW),eG=t(89037);let eV=e=>{let{msisdn:l,onClose:t,onSuccess:a}=e,[o,r]=(0,i.useState)(""),[s,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(60),[p,_]=(0,i.useState)(""),x=(0,h.A)("(max-width:768px)");(0,i.useEffect)(()=>{(async()=>{try{let{status:e,data:t}=await M.A.post(z.t.validateNonLycaNumber,{reason_otp_generation:"LOGIN",msisdn:l,otp_op_code:"1"});200===e&&(_((null==t?void 0:t.token_id)||""),u(60))}catch{}})()},[l]),(0,i.useEffect)(()=>{if(c>0){let e=setTimeout(()=>u(e=>e-1),1e3);return()=>clearTimeout(e)}},[c]);let A=async()=>{try{let{status:e,data:t}=await M.A.post(z.t.validateNonLycaNumber,{reason_otp_generation:"LOGIN",msisdn:l,token_id:p,otp_op_code:"2",request_type:"1"});200===e&&(_((null==t?void 0:t.token_id)||p),u(60))}catch{}},y=async()=>{try{if(!p)return void d(!0);let{status:e}=await M.A.post(z.t.validateNonLycaNumber,{reason_otp_generation:"LOGIN",msisdn:l,token_id:p,otp:o,otp_op_code:"3"});200===e?(d(!1),t(),a&&a()):d(!0)}catch{d(!0)}},g=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Ay,{item:!0,sm:12,className:eR().header,children:(0,n.jsx)(D.A,{onClick:t,children:(0,n.jsx)(k(),{src:j.z.crossIconBlue,alt:"closeCircle"})})}),(0,n.jsx)(v.Ay,{item:!0,xs:12,className:eR().main_section,children:(0,n.jsxs)(v.Ay,{children:[(0,n.jsx)(m.A,{className:eR().title,children:(0,n.jsx)(O.A,{content:b.A.verify})}),(0,n.jsxs)(m.A,{className:eR().paragraph_text,mt:6,children:[(0,n.jsx)(O.A,{content:b.A.renewBundleFormOtpText}),(0,n.jsx)(O.A,{content:l})]}),(0,n.jsx)(eG.A,{className:eR().otp_number,onKeyDown:e=>{"Enter"===e.key&&o&&4===o.length&&p&&y()},children:(0,n.jsx)(eL.A,{onChange:e=>{r(e),d(!1)},inputStyle:"inputStyle",numInputs:4,value:o,renderInput:e=>(0,n.jsx)("input",{...e}),shouldAutoFocus:!0,inputType:"number"})}),s&&(0,n.jsxs)("div",{className:eR().error,children:[(0,n.jsx)(k(),{src:j.z.infoIcon,alt:"plus",loading:"lazy"}),b.A.thatDidntWorkPleaseTryAgain]}),(0,n.jsxs)(m.A,{className:eR().paragraph_text_recieved,mt:2,children:[(0,n.jsx)("span",{children:b.A.renewBundleFormOtpReceived})," ",0===c?(0,n.jsx)("span",{className:eR().resend_button,onClick:A,children:b.A.resend}):`${b.A.resendIn} ${c} ${b.A.seconds}`]}),(0,n.jsx)(Q.A,{variant:"contained",onClick:y,disabled:!o||4!==o.length||!p,className:eR().otp_button,children:b.A.confirmContinue})]})})]});return(0,n.jsx)(n.Fragment,{children:x?(0,n.jsx)(ec.A,{anchor:"bottom",open:!0,onClose:t,className:eR().success_drawer,sx:{borderRadius:"1rem !important",overflowY:"visible"},hideBackdrop:!0,ModalProps:{keepMounted:!1,style:{backgroundColor:"rgba(0, 0, 0, 0.4)"}},children:g}):(0,n.jsx)(N.default,{size:"sm",id:"nonLycaOtpModal",className:"renew_bundle_popup_modal",open:!0,onClose:t,children:g})})},eH=(0,ex.Ay)("label")(e=>{let{theme:l}=e;return{display:"flex",alignItems:"center",marginRight:"20px",cursor:"pointer"}}),eK=(0,ex.Ay)("input")({display:"none"}),eY=(0,ex.Ay)("span")(e=>{let{theme:l}=e;
1return{width:20,height:20,borderRadius:"50%",border:"2px solid #D0D5DD",display:"inline-block",marginRight:8,position:"relative",transition:"all 0.2s ease-in-out","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",width:10,height:10,backgroundColor:"#1570EF",borderRadius:"50%",transform:"translate(-50%, -50%) scale(0)",transition:"transform 0.2s ease-in-out"}}}),eX=(0,ex.Ay)(eY)({borderColor:"#1570EF","&::after":{transform:"translate(-50%, -50%) scale(1)"}}),eq=e=>{var l;let{fieldInteractionDetails:t,stringsOverride:a}=e,o=(0,u.wA)(),{step:r,formStep:d,fieldName:c}=t||{},p=(0,u.d4)(U.Xk),_=(0,u.d4)(K.kV),h=(0,u.d4)(e=>{var l;return(null==e||null==(l=e.PersonalInformationSlice)?void 0:l.portingDetails)??{portin_msisdn:"",pac_code:"",port_in_date:"",contract_type:"",rio:"",company_name:"",service_provider:"",function_type:"",preferred_language:"",port_in_iccid:""}}),x=(0,u.d4)(Y.n0);(0,u.d4)(Y.TP);let v=(0,u.d4)(e=>e.PersonalInformationSlice.isOtpVerified),A=a||b.A,g=null==p||null==(l=p.country_code)?void 0:l.toUpperCase(),f={IE:eN.H9,GB:eS.UY,FR:eT.jS,NL:e$.Bc,NO:eP.I$,BE:eU._T,AU:eF.p0,DK:eE.KX,PT:eB.dv,SW:eM.cx,CH:eM.cx,DE:eD.K,SE:ez.B1,USA:eO.VP}[g],j=(null==p?void 0:p.country_number_code)||"",C=f?f(b.A):[],k=(null==h?void 0:h.contract_type)&&"POSTPAID"===h.contract_type?"2":"1",[w,I]=(0,i.useState)(k),[N,S]=(0,i.useState)([]),[T,D]=(0,i.useState)({msisdn:(null==h?void 0:h.portin_msisdn)||"",pac_code:(null==h?void 0:h.pac_code)||"",port_in_date:(null==h?void 0:h.port_in_date)?eI()(h.port_in_date):null,type_service:k,portin_wish_time:(null==h?void 0:h.portin_wish_time)||"",when_to_transfer:(null==h?void 0:h.when_to_transfer)||"",rio:(null==h?void 0:h.rio)||"",company_name:(null==h?void 0:h.company_name)||"",service_provider:(null==h?void 0:h.service_provider)||"",port_in_iccid:(null==h?void 0:h.port_in_iccid)||"",preferred_language:null==h?void 0:h.preferred_language}),[$,P]=(0,i.useState)(!1),[F,E]=(0,i.useState)(""),[B,O]=(0,i.useState)(0);(0,i.useEffect)(()=>{if(!v)return;let e=(null==p?void 0:p.country_code)==="CH"?9:10;T.msisdn&&T.msisdn.length===e&&o((0,Y.ko)({portin_msisdn:T.msisdn||"",pac_code:T.pac_code||"",portin_date:T.port_in_date?eI()(T.port_in_date).format("DD/MM/YYYY"):"",contract_type:"1"===w?"PREPAID":"POSTPAID",portin_wish_time:T.portin_wish_time||"",rio:(null==T?void 0:T.rio)||"",company_name:(null==T?void 0:T.company_name)||"",service_provider:(null==T?void 0:T.service_provider)||"",port_in_iccid:(null==T?void 0:T.port_in_iccid)||"",preferred_language:(null==T?void 0:T.preferred_language)||""}))},[T,w,o,v]);let L=(e,l)=>{let t=e;"phone"===e?t="msisdn":"date"===e&&(t="port_in_date"),D(e=>{let n={...e,[t]:l};return o((0,Y.ko)({...h,portin_msisdn:n.msisdn,pac_code:n.pac_code,portin_date:l?eI()(l).format("DD/MM/YYYY"):"",contract_type:"1"===w?"PREPAID":"POSTPAID",portin_wish_time:n.portin_wish_time,company_name:n.company_name,when_to_transfer:n.when_to_transfer,rio:null==n?void 0:n.rio,service_provider:(null==n?void 0:n.service_provider)||"",preferred_language:n.preferred_language||"",port_in_iccid:n.port_in_iccid||""})),n})};(0,i.useEffect)(()=>{if(B>0){let e=setTimeout(()=>O(e=>e-1),1e3);return()=>clearTimeout(e)}},[B]);let W=async e=>{S(await R(e))},R=async e=>{try{let t,n=z.t[e.endPoints];t="function"==typeof n?n(e.args):n;let{data:i,status:a}=await M.A.get(t);if(200===a){var l;return(null==i||null==(l=i.get_service_provider_list)?void 0:l.map(e=>({label:e.spdesc,value:e.spcode})))||[]}}catch(e){return[]}},G=(null==p?void 0:p.country_code)==="IT"||(null==p?void 0:p.country_code)==="GB"||(null==p?void 0:p.country_code)==="USA"?10:(null==p?void 0:p.country_code)==="DE"||(null==p?void 0:p.country_code)==="AT"?11:(null==p?void 0:p.country_code)==="DK"||(null==p?void 0:p.country_code)==="NO"?8:9;return(0,n.jsx)(ej.$,{dateAdapter:ek.R,children:(0,n.jsxs)(y.A,{className:eb().portingFormWrapper,children:[(0,n.jsx)(m.A,{variant:"subtitle2",className:eb().heading,children:A.YourMobileNumberPortin}),(0,n.jsxs)(y.A,{className:eb().keepNumberRow,mb:3,children:[(0,n.jsx)(m.A,{className:eb().keepyourNum,children:A.KeepYourMobileNumber}),(0,n.jsx)(ev.A,{checked:x,onChange:e=>{e.target.checked,o((0,Y.dK)(e.target.checked)),(0,H.$d)((0,H.ar)(_),r,d,c,"portin")},sx:{width:"63px",height:"43px","& .MuiSwitch-switchBase.Mui-checked":{color:"#fff",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"#08DC7D",opacity:1,borderRadius:"12px"}}
1,"& .MuiSwitch-thumb":{width:17,height:17,boxShadow:"none",marginTop:"4px",marginLeft:"6px"},"& .MuiSwitch-track":{backgroundColor:"#BEC6D5",borderRadius:"9px"}}})]}),x&&(null==C?void 0:C.map((e,l)=>{let t=e.componentType||e.type;if("dropDown"===t&&"service_provider"===e.name&&W(e),"countryCodeWithTextField"===t)return(0,n.jsxs)(y.A,{mb:2,children:[(0,n.jsx)(m.A,{mb:1,className:eb().heading,children:b.A.DetailsOfTheNumberYouWantToKeep}),(0,n.jsx)(m.A,{sx:{fontSize:"16px",fontWeight:600,color:"#344054",mb:1,display:"block"},children:A.DetailsTheNumberYouWantToKeep}),(0,n.jsx)(m.A,{sx:{fontSize:"16px",fontWeight:600,color:"#344054",mb:1},children:A.DetailsOfNumberYouWantToKeep}),(0,n.jsx)(eA.A,{fullWidth:!0,placeholder:A.NumberYouWantToBring,value:T.msisdn,onChange:e=>{L("phone",e.target.value.replace(/\D/g,""))},disabled:v,inputProps:{maxLength:G,inputMode:"numeric",pattern:"[0-9]*"},InputProps:{startAdornment:(0,n.jsx)(ey.A,{position:"start",sx:{p:0},children:(0,n.jsx)(y.A,{sx:{border:"1px solid #DFE0F8",backgroundColor:"#DFE0F8",color:"#344054",padding:"6px 10px",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center",minWidth:"40px",height:"55px"},children:j})}),endAdornment:(0,n.jsx)(ey.A,{position:"end",children:(0,n.jsx)(m.A,{sx:{color:v||T.msisdn.length===G?"#08dc7d":"#BEC6D5",fontFamily:"GTEestiLCDisplayRegular",fontSize:"14px",cursor:v||T.msisdn.length!==G?"not-allowed":"pointer",position:"relative",transition:"all 0.3s ease-in-out","&:hover":{transform:v||T.msisdn.length!==G?"none":"scale(1.1)",color:v||T.msisdn.length!==G?"#BEC6D5":"#00aaff"},"&::after":{content:'""',position:"absolute",left:0,bottom:-2,width:0,height:"2px",backgroundColor:"#00aaff",transition:"width 0.3s ease-in-out"},"&:hover::after":{width:v||T.msisdn.length!==G?"0":"100%"}},onClick:()=>{!v&&T.msisdn.length===G&&T.msisdn&&T.msisdn.length===G&&P(!0)},children:v?null===b.A||void 0===b.A?void 0:b.A.verified:null===b.A||void 0===b.A?void 0:b.A.verifyOtp})})},sx:{mb:1,"& .MuiOutlinedInput-root":{paddingLeft:0}}}),(0,n.jsx)(m.A,{variant:"caption",className:eb().keepyourNum,children:b.A.OneTimePasswordSentNumberVerification})]},l);if("otpVerification"===t)return null;if("radio"===t){var i,a,r;return(0,n.jsxs)(y.A,{mb:2,children:[(0,n.jsx)(m.A,{className:eb().heading,children:e.label}),e.radioOptions&&Array.isArray(e.radioOptions)&&(0,n.jsx)(y.A,{className:"radioGroupWrapper",display:"flex",flexDirection:"row",sx:{margin:"20px 0"},children:e.radioOptions.map(l=>{let t=String(l.value)===w;return(0,n.jsxs)(eH,{children:[(0,n.jsx)(eK,{type:"radio",id:l.value,name:e.name,value:l.value,checked:t,onChange:()=>{let e=String(l.value);window.digitalData.push({event:"link track",link:{name:(null==l?void 0:l.label)||"",location:"Order Sim Port In",type:"Internal",destinationUrl:"",customAttributes:"",userSelections:""}}),I(e),D(l=>{let t={...l,type_service:e};return"1"===e?t.company_name="":(t.msisdn="",t.portin_wish_time=""),o((0,Y.ko)({...h,contract_type:"1"===e?"PREPAID":"POSTPAID",portin_msisdn:t.msisdn||"",portin_wish_time:t.portin_wish_time||"",company_name:t.company_name||"",portin_date:t.port_in_date?eI()(t.port_in_date).format("YYYY-MM-DD"):"",pac_code:t.pac_code||"",preferred_language:t.preferred_language||"",when_to_transfer:t.when_to_transfer||"",rio:(null==t?void 0:t.rio)||"",service_provider:(null==t?void 0:t.service_provider)||"",port_in_iccid:(null==t?void 0:t.port_in_iccid)||""})),t})}}),t?(0,n.jsx)(eX,{}):(0,n.jsx)(eY,{}),(0,n.jsx)(m.A,{className:eb().radioOptions,children:l.label})]},l.value)})}),null==(r=e.radioOptions)||null==(a=r.find(e=>String(e.value)===w))||null==(i=a.additionalFields)?void 0:i.map(e=>{switch(e.componentType){case"date":return(0,n.jsx)(y.A,{display:"flex",gap:2,mb:3,children:(0,n.jsx)(eC.l,{label:e.label,value:T[e.name]?eI()(T[e.name]):null,onChange:e=>L("date",e),format:"DD/MM/YYYY",minDate:eI()().add(1,"day"),maxDate:eI()().add(15,"day"),slotProps:{textField:{fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{color:"#344054",fontWeight:600}}}}})},e.name);case"time":if("1"!==w)return null;return(0,n.jsx)(eA.A,{label:e.label,type:"time",value:T[e.name]||"",onChange:l=>{let t=l.target.value;t>=(null===b.A||void 0===b.A?void 0:b.A.minTime)&&(null===b.A||void 0===b.A?void 0:b.A.maxTime)?D({...T,[e.name]:t}):D({...T,[e.name]:""})},fullWidth:!0,sx:{mb:3},InputLabelProps:{shrink:!0},inputProps:{step:300,min:null===b.A||void 0===b.A?void 0:b.A.minTime,max:null===b.A||void 0===b.A?void 0:b.A.maxTime},helperText:b.A.chooseTime,FormHelperTextProps:{sx:{color:"#667085",fontSize:"14px",paddingTop:"10px",marginLeft:"0px"}}},e.name);case"textField":case"dropDown":return(0,n.jsx)(eA.A,{..."dropDown"===e.componentType?{select:!0}:{},label:e.label,value:T[e.name]||"",onChange:l=>D({...T,[e.name]:l.target.value}),onInput:e=>{e.target.value=e.target.value.replace(/[^a-zA-Z\s]/g,"")},fullWidth:!0,sx:{mb:3},children:"dropDown"===e.componentType&&Array.isArray(e.dropDownOptions)&&e.dropDownOptions.map(e=>(0,n.jsx)(eg.A,{value:e.value,children:e.label},e.value))},e.name);default:return null}})]},l)}if(["textField","date","time","dropDown"].includes(t))switch(t){case"textField":return(0,n.jsx)(eA.A,{label:e.label,value:T[e.name]||"",onChange:l=>{let t=l.target.value;"rio"===e.name&&(t=t.replace(/[^a-zA-Z0-9]/g,"")),D({...T,[e.name]:t})},fullWidth:!0,sx:{mb:2},helperText:(null==e?void 0:e.fieldMsg)||"",inputProps:{maxLength:null==e?void 0:e.maxLength}},l);case"date":return(0,n.jsx)(y.A,{display:"flex",gap:2,mb:3,children:(0,n.jsx)(eC.l,{label:e.label,value:T[e.name],onChange:e=>L("date",e),minDate:eI()().add(1,"day"),maxDate:eI()().add(15,"day"),slotProps:{textField:{fullWidth:!0}}})},l);case"time":return(0,n.jsx)(eA.A,{label:e.label,type:"time",value:T[e.name]||"",onChange:l=>D({...T,[e.name]:l.target.value}),fullWidth:!0,sx:{mb:3},InputLabelProps:{shrink:!0}},l);case"dropDown":return(0,n.jsx)(eA.A,{select:!0,label:e.label,value:T[e.name]||"",onChange:l=>D({...T,[e.name]:l.target.value}),fullWidth:!0,sx:{mb:3},children:Array.isArray(N)&&"service_provider"===e.name?N.map(e=>(0,n.jsx)(eg.A,{value:e.value,children:e.label},e.value)):Array.isArray(e.dropDownOptions)&&e.dropDownOptions.map(e=>(0,n.jsx)(eg.A,{value:e.value,children:e.label},e.value))},l)}return null})),x&&(0,n.jsx)(m.A,{variant:"caption",sx:{color:"#667085",fontSize:"14px",marginTop:"-12px",display:"block"},children:A.PleaseAllowBusinessDaysFromToday}),$&&(0,n.jsx)(eV,{msisdn:`${j.replace("+","")}${(0,s.c2J)(T.msisdn)}`,onClose:()=>P(!1),onSuccess:()=>{o((0,Y.iM)(!0)),P(!1)}})]})})},eJ=c()(()=>Promise.all([t.e(15534),t.e(34272),t.e(18510)]).then(t.bind(t,18510)),{loadableGenerated:{webpack:()=>[18510]},ssr:!1}),eZ=e=>{var l,t,o,r,d,c;let{data:C,handleTradeDoubler:w}=e,D=null,$=(null==(D=window)||null==(l=D.location)?void 0:l.host)&&(0,_.A)(null==D||null==(t=D.location)?void 0:t.host),P=(0,s.jhD)(),E=(0,a.useRouter)(),B=(0,u.d4)(p.qr),Y=(0,u.d4)(U.Xk),Q=(null==Y?void 0:Y.max_product_configuration)?null==Y?void 0:Y.max_product_configuration:3;null==Y||Y.show_iccid_puk_on_success_page,null==Y||Y.max_family_product_configuration;let ee="true"===E.query.buyNow,el=(0,h.A)("(max-width:768px)"),et=(0,u.
1wA)(),eo=(0,u.d4)(K.kV),er=(0,u.d4)(K.CU),e_=(0,u.d4)(K.gD),ex=(0,u.d4)(ep.ar),ev=(0,x.A)(),eA=(0,ed.A)(768),ey=(null==er?void 0:er.family_plan)&&(null==er||null==(o=er.cart_line_item_details)?void 0:o.length)>0,eg=(0,h.A)(ev.breakpoints.down("sm")),ef=(0,h.A)(ev.breakpoints.down("md")),[eb,ej]=(0,i.useState)({flag:!1,type:0}),[eC,ek]=(0,i.useState)(0),[ew,eI]=(0,i.useState)(!1),[eN,eS]=(0,i.useState)(""),[eT,eD]=(0,i.useState)({}),[e$,eP]=(0,i.useState)(ee?er:eo),eU=(0,s.KeO)(),eF=(0,i.useRef)(!1),[eE,eB]=(0,i.useState)([]),[eM,ez]=(0,i.useState)(!1),[eO,eL]=(0,i.useState)({}),[eW,eR]=i.useState(!1),[eG,eV]=(0,i.useState)([]),[eH,eK]=(0,i.useState)(!1),[eY,eX]=(0,i.useState)(!1),[eZ,eQ]=(0,i.useState)(!1),[e0,e1]=(0,i.useState)(!1),[e2,e4]=(0,i.useState)(!1),[e3,e6]=(0,i.useState)(!1),[e5,e8]=(0,i.useState)({}),[e7,e9]=(0,i.useState)({post_code:""}),[le,ll]=(0,i.useState)({post_code:""}),[lt,ln]=(0,i.useState)({personal_id:""}),[li,la]=(0,i.useState)({personal_id:""}),[lo,lr]=(0,i.useState)(),[ls,ld]=(0,i.useState)(),[lc,lu]=(0,i.useState)(!1),[lp,l_]=(0,i.useState)(!1),lm=(null==Y||null==(r=Y.country_number_code)?void 0:r.substring(1))+eU,[lh,lx]=(0,i.useState)("p"),[lv,lA]=(0,i.useState)(""),ly=(0,i.useMemo)(()=>null==eE?void 0:eE.some(e=>(null==e?void 0:e.cartItem)&&"physical_sim"in(null==e?void 0:e.cartItem)),[eE]),lg={FR:b.A.simActivatedTextFrance,DE:b.A.simActivatedTextGermany,AT:b.A.simActivatedTextAustria,CH:b.A.simActivatedTextSwiss,IT:b.A.simActivatedTextItaly,NL:b.A.simActivatedTextNetherland}[null==Y?void 0:Y.country_code],lf=(0,h.A)("(max-width:600px)"),lb=(0,u.d4)(U.HX),lj=(0,i.useCallback)(e=>{let l=0,t=0;l=(0,s.SCz)(e,eG,null==Y?void 0:Y.buddy_plan_enabled_web);let n={totalTopUpAmount:t=(0,s.RtY)(e,eG),totalBundleAmount:(0,s.VZB)(e,eG)};return(0,L.gC)(W.H.allBundleAndTopupAmount,JSON.stringify(n),!1),l},[eG,e5]),[lC,lk]=(0,i.useState)(void 0);(0,i.useEffect)(()=>{lk(!0)},[null==Y?void 0:Y.is_hot_sim]);let lw=()=>{lk(e=>!e)},lI=async function(e){var l,t,n,i,a,o,r,s;let d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,H.$d)((0,H.ar)(eo),1,"Basket","Buddy sim offer toggle btn","checkout");let c=null==e||null==(l=e.cartItem)?void 0:l.cart_line_item_id,u={buddy_plan_selected:!d&&
1!!(null==e||null==(t=e.cartItem)?void 0:t.bundle_selected)&&!(null==e||null==(n=e.cartItem)?void 0:n.buddy_plan_selected),is_bundle_code_updated:!1,is_top_up_updated:!1,card_id:(null==e||null==(i=e.cartItem)?void 0:i.card_id)?null==e||null==(a=e.cartItem)?void 0:a.card_id:null==eG||null==(s=eG[0])||null==(r=s.topUpDetails)||null==(o=r[0])?void 0:o.topUpId},{status:p,data:_}=await M.A.put(z.t.updateCartItem(e_,c),u);if(200==p)return ez(!eM),eR(!1),{status:p,data:_}};(0,i.useEffect)(()=>{(0,s.HRA)(eA)},[eA]);let lN=(0,i.useMemo)(()=>lj(eo).toString(),[eo]),lS=(0,i.useCallback)(e=>{let l=!0;return null==e||e.forEach(e=>{var t,n;((null==e||null==(t=e.cartItem)?void 0:t.bundle_selected)||(null==e||null==(n=e.cartItem)?void 0:n.card_id))&&(ly||null==Y||!Y.esim)||(l=!1)}),sessionStorage.setItem("ctaBtn",`${l}`),l},[eE,e0,ly]);(0,i.useEffect)(()=>{lF(),lz()},[null==eo?void 0:eo.length]);let lT=(e,l,t)=>{var n,i,a;let o=[],r=lj(eo)-(0,s.rNu)(e[0]);null==e||e.forEach(e=>{var n,i,a,d,c,u,p,_,m,h,x,v,A,y,g;if(t||o.push({SKU:"sim",name:`SIM ${e.cartItem.line_order_id<=3?e.cartItem.line_order_id:"1"}`,price:"0",quantity:"1",planType:`prepaid: ${(null==e||null==(h=e.planItem)?void 0:h.productDisplayName)||(null==e||null==(x=e.planItem)?void 0:x.productName)||"na"}`}),(null==e||null==(n=e.cartItem)?void 0:n.card_id)!==""&&!l){let l=null==eG?void 0:eG.find(l=>{var t,n,i,a;return(null==l||null==(n=l.topUpDetails[0])||null==(t=n.topUpId)?void 0:t.toString())===(null==e||null==(a=e.cartItem)||null==(i=a.card_id)?void 0:i.toString())});l&&(r-=l,o.push({SKU:"topup",name:"Top up",price:(null==l||null==(v=l.topUpDetails[0])?void 0:v.topUpAmount)?`${null==l||null==(A=l.topUpDetails[0])?void 0:A.topUpAmount}`:"0",quantity:"1",planType:`prepaid: ${(null==e||null==(y=e.planItem)?void 0:y.productDisplayName)||(null==e||null==(g=e.planItem)?void 0:g.productName)||"na"}`}))}let f=null==(i=(null==e||null==(a=e.planItem)?void 0:a.bundleGroupDetails)||(null==e?void 0:e.bundleGroupDetails))?void 0:i.find(l=>{var t,n;return l.bundleCode===((null==e||null==(t=e.cartItem)?void 0:t.bundle_code)||(null==e||null==(n=e.selectedBundle)?void 0:n.bundleCode))});o.push({SKU:"bundle",name:(null==e||null==(d=e.planItem)?void 0:d.productDisplayName)||(null==e||null==(c=e.planItem)?void 0:c.productName),price:(0,s.rNu)(e)?(0,s.rNu)(e):"0",auto_renewal:"yes",renewal_type:(0,s.Z9Z)(e),quantity:"1",discount:`${parseInt((0,s.WNd)(e)||0)-parseInt((0,s.rNu)(e)||0)}`||"0",pimId:(null==e||null==(u=e.planItem)?void 0:u.id)||"",productCode:(null==e||null==(p=e.cartItem)?void 0:p.bundle_code)||"",subscriptionType:`${null==f?void 0:f.productValidity} ${null==f?void 0:f.productValidityUnit}`,planType:`prepaid: ${(null==e||null==(_=e.planItem)?void 0:_.productDisplayName)||(null==e||null==(m=e.planItem)?void 0:m.productName)||"na"}`})}),null==D||null==(a=D.digitalData)||a.push((0,H.To)({event:"removeFromCart",currencyCode:(null==$||null==(n=$.tradeDoubler)?void 0:n.currencyCode)||"na",customerType:P?"logged-in":"non-logged-in",cartTotal:r?null==(i=r.toFixed(2))?void 0:i.toString():0,removeProducts:o}))},lD=function(e,l){var t,n,i,a,o,r,s,d,c,u,p;let _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,m=l?lN-(null==(n=e.topUpDetails)||null==(t=n[0])?void 0:t.topUpAmount):+lN+ +(null==(a=e.topUpDetails)||null==(i=a[0])?void 0:i.topUpAmount)-_,h={event:l?"removeFromCart":"addToCart",currencyCode:(null==$||null==(o=$.tradeDoubler)?void 0:o.currencyCode)||"na",cartTotal:m?null==(r=m.toFixed(2))?void 0:r.toString():0,customerType:P?"logged-in":"non-logged-in"},x={SKU:"topup",name:"Top up",price:(null==(d=e.topUpDetails)||null==(s=d[0])?void 0:s.topUpAmount)?`${null==(u=e.topUpDetails)||null==(c=u[0])?void 0:c.topUpAmount}`:"0",quantity:"1",planType:"prepaid: na"};l?h.removeProducts=[x]:h.products=[x],null==D||null==(p=D.digitalData)||p.push((0,H.To)(h))},l$=(0,i.useCallback)(async e=>{if(e_&&!(0,s.Ime)(eG)&&!(0,s.Ime)(Y)){eR(!0);try{let{status:l,data:t}=await M.A.get(z.t.getCartData(e_));if(200==l){t?et((0,K.Td)(t)):et((0,K.Td)({})),eL(t);let l=!1,n=t.cart_line_item_details.map(e=>e.card_id).filter(e=>void 0!==e);(null==Y?void 0:Y.global_captcha)&&!(0,s.Ime)(n)&&(l=(0,s._IT)(n,eG)),await lE(t,e,l),eR(!1)}eR(!1)}catch(e){eR(!1)}}},[eG,Y,ex]);(0,i.useEffect)(()=>{l$(eo),(null==eE?void 0:eE.length)==0&&eK(!0)},[eM,null==eo?void 0:eo.length,l$,ex]),(0,i.useEffect)(()=>{lV(eE,eG)},[eM,null==eE?void 0:eE.length,null==eG?void 0:eG.length,null==eo?void 0:eo.length]);let[lP,lU]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=setTimeout(()=>{lU(!0)},1100);return()=>clearTimeout(e)},[]);let lF=async()=>{try{let{status:e,data:l}=await M.A.get(z.t.getAllPlan("topup"));if(200==e){let e=l.filter(e=>{var l,t,n;if(null==e||null==(t=e.topUpDetails)||null==(l=t[0])?void 0:l.topUpAmount){let l=!1;
1return null==e||null==(n=e.customerType)||n.forEach(e=>{(null==e?void 0:e.customerTypeCode)==="ca"&&(l=!0)}),!!l}}).sort((e,l)=>{var t,n,i,a;return(null==e||null==(n=e.topUpDetails)||null==(t=n[0])?void 0:t.topUpAmount)-(null==l||null==(a=l.topUpDetails)||null==(i=a[0])?void 0:i.topUpAmount)});eV(e)}}catch(e){}},lE=(0,i.useCallback)(async(e,l,t)=>{var n;if(e&&(null==e||null==(n=e.cart_line_item_details)?void 0:n.length)>0){let t=[];for(let n of null==e?void 0:e.cart_line_item_details){let e=ex.find(e=>e.id===n.product_id);null==l||l.find(e=>{var l;return(null==e||null==(l=e.cartItem)?void 0:l.cart_line_item_id)===(null==n?void 0:n.cart_line_item_id)}),t.push({cartItem:n,planItem:e})}if(eB(t=t.sort((e,l)=>{var t,n;return(null==e||null==(t=e.cartItem)?void 0:t.line_order_id)-(null==l||null==(n=l.cartItem)?void 0:n.line_order_id)})),et((0,K.Cc)(t)),(null==e?void 0:e.cart_line_item_details)&&(null==e?void 0:e.family_plan)){let l=await (0,s.oBe)(e,t);eB(l),et((0,K.Cc)(l))}}else et((0,K.Cc)([])),eB([])},[eo,ex]),lB=async e=>{let l=null==eE?void 0:eE.filter(l=>{var t;return(null==(t=l.cartItem)?void 0:t.cart_line_item_id)===e});eR(!0);try{let{status:t,data:n}=await M.A.delete(z.t.deleteCartItem(e_,e));if(200==t)return ez(!eM),eR(!1),lJ(),lT(l,!1,!1),{status:t,data:n};eR(!1)}catch(e){eR(!1)}},lM=async e=>{try{eR(!0);let{status:l,data:t}=await M.A.put(z.t.updateCartData(e_),e);return 200===l&&(ez(!eM),eR(!1)),eR(!1),{status:l,data:t}}catch(e){eR(!1)}},lz=async()=>{try{let{status:e,data:l}=await M.A.get(z.t.basketCMSData);200===e&&ld(l)}catch(e){}},lO=async e=>{try{let{status:l,data:t}=await lM({is_physical_sim:e})}catch(e){}},lL=(e,l)=>{ek(e),ej({flag:!0,type:l})},lW=async(e,l)=>{var t,n,i,a,o,r,d,c,u,p;switch(l){case"removeLine":{let{status:l,data:n}=await lB(null==e||null==(t=e.cartItem)?void 0:t.cart_line_item_id);200==l&&sessionStorage.removeItem("line_order_id");break}case"removeAndAdd":{let{status:l,data:t}=await lB(null==e||null==(n=e.cartItem)?void 0:n.cart_line_item_id);200==l&&(sessionStorage.setItem("line_order_id",JSON.stringify(null==e||null==(i=e.cartItem)?void 0:i.line_order_id)),E.push(`${(0,s.Cu3)(E.locale)}/${(0,s.GPS)(E.locale)}/`));break}case"creditLine":{let l={is_bundle_code_updated:!1,is_top_up_updated:!0,card_id:(null==e||null==(a=e.cartItem)?void 0:a.card_id)?null==e||null==(o=e.cartItem)?void 0:o.card_id:null==eG||null==(c=eG[0])||null==(d=c.topUpDetails)||null==(r=d[0])?void 0:r.topUpId},t=null==eE?void 0:eE.filter(l=>{var t,n;return(null==(t=l.cartItem)?void 0:t.cart_line_item_id)===(null==e||null==(n=e.cartItem)?void 0:n.cart_line_item_id)}),{status:n,data:i}=await lG(null==e||null==(u=e.cartItem)?void 0:u.cart_line_item_id,l);if(200==n&&(lI(e,!0),lJ(),lT(t,!0,!0),!(null==e||null==(p=e.cartItem)?void 0:p.card_id))){let e=(0,s.rNu)(t[0]);lD(null==eG?void 0:eG[0],!1,e)}}}},lR=async e=>{var l,t,n,i,a,o,r;let d={is_bundle_code_updated:!0,is_top_up_updated:null!=e&&null!=(l=e.cartItem)&&!!l.card_id,card_id:(null==e||null==(t=e.cartItem)?void 0:t.card_id)?null==e||null==(n=e.cartItem)?void 0:n.card_id:null==eG||null==(o=eG[0])||null==(a=o.topUpDetails)||null==(i=a[0])?void 0:i.topUpId},{status:c,data:u}=await lG(null==e||null==(r=e.cartItem)?void 0:r.cart_line_item_id,d);200==c&&((e=>{var l,t,n,i,a,o,r,d,c,u,p,_;let m=null==e||null==(t=e.planItem)||null==(l=t.bundleGroupDetails)?void 0:l.find(e=>{var l;return(null==e?void 0:e.bundleCode)===(null==e||null==(l=e.cartItem)?void 0:l.bundle_code)});null==D||null==(_=D.digitalData)||_.push((0,H.To)({event:"addToCart",currencyCode:(null==$||null==(n=$.tradeDoubler)?void 0:n.currencyCode)||"na",cartTotal:(((a=(lN?+lN:0)+((0,s.rNu)(e)?+(0,s.rNu)(e):0),false),null==(i=a.toFixed(2)))?void 0:i.toString())||"",customerType:P?"logged-in":"non-logged-in",products:[{SKU:"bundle",name:(null==e||null==(o=e.planItem)?void 0:o.productDisplayName)||(null==e||null==(r=e.planItem)?void 0:r.productName),price:(0,s.rNu)(e)?`${(0,s.rNu)(e)}`:"0",quantity:"1",auto_renewal:"yes",subscriptionType:`${null==m?void 0:m.productValidity} ${null==m?void 0:m.productValidityUnit}`,renewal_type:(0,s.Z9Z)(e),discount:`${parseInt((0,s.WNd)(e)||0)-parseInt((0,s.rNu)(e)||0)}`||"0",pimId:(null==e||null==(d=e.planItem)?void 0:d.id)||"",productC
1ode:(null==e||null==(c=e.cartItem)?void 0:c.bundle_code)||"",planType:`prepaid: ${(null==e||null==(u=e.planItem)?void 0:u.productDisplayName)||(null==e||null==(p=e.planItem)?void 0:p.productName)||"na"}`}]}))})(e),lJ())};(0,i.useEffect)(()=>{(()=>{let e=0,l=0;eE.forEach(t=>{var n,i,a,o,r;(null==t||null==(n=t.topUpItem)?void 0:n.topUpDetails)&&(null==t||null==(a=t.topUpItem)||null==(i=a.topUpDetails[0])?void 0:i.topUpAmount)&&(e+=null==t||null==(r=t.topUpItem)?void 0:r.topUpDetails[0].topUpAmount),(null==t||null==(o=t.planItem)?void 0:o.bundleGroupDetails)&&t.planItem.bundleGroupDetails.forEach(e=>{(null==e?void 0:e.promotionalPricing)!==null?l+=null==e?void 0:e.promotionalPricing:l+=(null==e?void 0:e.basePrice)||0})})})()},[eE]);let lG=async(e,l)=>{eR(!0);try{let{status:t,data:n}=await M.A.post(z.t.updateCartItem(e_,e),l);if(200==t)return ez(!eM),eR(!1),{status:t,data:n};return eR(!1),{status:t,data:n}}catch(e){eR(!1)}},lV=(e,l)=>{let t=[];null==e||e.map(e=>{let n=!1,i={};null==l||l.forEach(l=>{var t,a,o,r,s;(null==l||null==(t=l.topUpDetails)?void 0:t.length)&&(null==e||null==(a=e.cartItem)?void 0:a.card_id)&&(null==l||null==(r=l.topUpDetails)||null==(o=r[0])?void 0:o.topUpId)==(null==e||null==(s=e.cartItem)?void 0:s.card_id)&&(n=!0,i={...l})}),n?t.push({...e,topUpItem:i}):t.push(e)}),eB(t)},lH=async e=>{var l;if(null==e||null==(l=e.cartItem)?void 0:l.bundle_selected)lK(e);else{eR(!0),await lR(e),await lK(e);return}},lK=async e=>{var l,t;let n={is_bundle_code_updated:!0,is_top_up_updated:!0,card_id:null==e||null==(l=e.cartItem)?void 0:l.card_id};eR(!0);let i=eG.find(l=>{var t,n,i,a,o;return(null==(i=l.topUpDetails)||null==(n=i[0])||null==(t=n.topUpId)?void 0:t.toString())===(null==e||null==(o=e.cartItem)||null==(a=o.card_id)?void 0:a.toString())});try{let{status:l,data:a}=await M.A.put(z.t.updateCartItem(e_,null==e||null==(t=e.cartItem)?void 0:t.cart_line_item_id),n);200==l&&(lD(i,!0),ez(!eM),eR(!1)),eR(!1)}catch(e){eR(!1)}},lY=async(e,l)=>{var t,n,i,a,o,r,s;if((null==l||null==(n=l.topUpDetails)||null==(t=n[0])?void 0:t.topUpId)==(null==e||null==(i=e.cartItem)?void 0:i.card_id))await lH(e);else{let t=eG.find(l=>{var t,n,i,a,o;return(null==(i=l.topUpDetails)||null==(n=i[0])||null==(t=n.topUpId)?void 0:t.toString())===(null==e||null==(o=e.cartItem)||null==(a=o.card_id)?void 0:a.toString())}),n={is_bundle_code_updated:null==e||null==(a=e.cartItem)?void 0:a.bundle_selected,is_top_up_updated:!0,card_id:null==l||null==(r=l.topUpDetails)||null==(o=r[0])?void 0:o.topUpId},{status:i,data:d}=await lG(null==e||null==(s=e.cartItem)?void 0:s.cart_line_item_id,n);200==i&&lX(t,l)}},lX=(e,l)=>{var t,n,i,a,o,r,s,d,c,u,p,_,m,h,x,v,A,y,g,f;if(void 0!==e){let l=lN-(null==(n=e.topUpDetails)||null==(t=n[0])?void 0:t.topUpAmount);null==D||null==(c=D.digitalData)||c.push((0,H.To)({event:"removeFromCart",currencyCode:(null==$||null==(i=$.tradeDoubler)?void 0:i.currencyCode)||"na",cartTotal:l?null==l||null==(a=l.toFixed(2))?void 0:a.toString():0,customerType:P?"logged-in":"non-logged-in",removeProducts:[{SKU:"topup",name:"Top up",price:(null==(r=e.topUpDetails)||null==(o=r[0])?void 0:o.topUpAmount)?`${null==(d=e.topUpDetails)||null==(s=d[0])?void 0:s.topUpAmount}`:"0",quantity:"1",planType:"prepaid: na"}]}))}if(void 0!==l){let t=lN-(e?null==e||null==(p=e.topUpDetails)||null==(u=p[0])?void 0:u.topUpAmount:0)+(+(null==l||null==(m=l.topUpDetails)||null==(_=m[0])?void 0:_.topUpAmount)||0);null==D||null==(f=D.digitalData)||f.push((0,H.To)({event:"addToCart",currencyCode:(null==$||null==(h=$.tradeDoubler)?void 0:h.currencyCode)||"na",cartTotal:t?null==t||null==(x=t.toFixed(2))?void 0:x.toString():0,customerType:P?"logged-in":"non-logged-in",products:[{SKU:"topup",name:"Top up",price:(null==(A=l.topUpDetails)||null==(v=A[0])?void 0:v.topUpAmount)?`${null==(g=l.topUpDetails)||null==(y=g[0])?void 0:y.topUpAmount}`:"0",quantity:"1",planType:"prepaid: na"}]}))}},lq=(e,l)=>{var t,n;let i=null==l||null==(n=l.planItem)||null==(t=n.bundleGroupDetails)?void 0:t.find(e=>{var t;return(null==e?void 0:e.bundleCode)===(null==l||null==(t=l.cartItem)?void 0:t.bundle_code)});1===e&&(null==l?void 0:l.planItem)&&$&&(0,H.ku)(lj(eE),i,null==l?void 0:l.planItem,C,$,"newsim",!0),eD({...l,planItem:{...null==l?void 0:l.planItem,selectedBundle:i}}),ej({flag:!0,type:e})},lJ=()=>{ej({...eb,flag:!1})},lZ=(0,i.useMemo)(()=>e=>{let{classname:l,children:t}=e;return(0,n.jsx)(v.Ay,{container:!0,mt:2,item:!0,className:`commonBorder ${l}`,children:(0,n.jsx)(v.Ay,{className:`${I().header}`,item:!0,sm:12,display:"flex",flexDirection:"row",children:t})})},[]),lQ=e=>{let l=0;return null==eG||eG.forEach(t=>{var n,i,a,o,r;(null==t||null==(i=t.topUpDetails)||null==(n=i[0])?void 0:n.topUpId)==(null==e||null==(a=e.cartItem)?void 0:a.card_id)&&(l=null==t||null==(r=t.topUpDetails)||null==(o=r[0])?void 0:o.topUpAmount)}),l};(0,i.useEffect)(()=>{eF.current?l0():eF.current=!0},[eE,null==eo?void 0:eo.length]);let l0=async()=>{let e=0;if(lm&&(null==Y?void 0:Y.country)==="USA"&&lj(eE)>0&&e!==lj(eE)){e=lj(eE);try{let e={brand_name:"Lycamobile",channel_name:"Myaccounts",country_code:"USA",delivery_zip_code:"10021",feature_name:"ONLINE_TOPUP",msisdn_zip_code:"",password:"lyca",payment_zip_code:e7.post_code,state_code:"",tax_id:Math.random().toString(36).slice(2),user_id:"lyca",subscriber_id:"lycadummy345",amount:lj(eE).toString()},{status:l,data:t}=await M.A.post(z.t.calculateUsaTax,e);if(200==l)return e8(t),et((0,U.o4)(t)),(0,L.gC)(W.H.taxDetails,JSON.stringify(t),!0),eR(!1),{status:l,data:t};eR(!1)}catch(e){eR(!1)}}},l1=async()=>
1{if(eR(!0),!li.personal_id){var e,l,t,n,i,a,o,r,s,d,c,u,p,_,m,h,x;try{let h={msisdn:lt.personal_id},{status:x,data:v}=await M.A.post(z.t.ssn,h);200===x&&!v.hasOwnProperty("error")&&(null==v?void 0:v.success)&&(null==v||null==(l=v.success)||null==(e=l.socialSecurityNumber)?void 0:e.toString())===(null==lt||null==(t=lt.personal_id)?void 0:t.toString())?(eR(!1),eQ(!1),e1(!0),lu(!0),v&&et((0,U.X0)({...lb,first_name:null==v||null==(n=v.success)?void 0:n.firstName,last_name:null==v||null==(i=v.success)?void 0:i.lastName,co:null==v||null==(a=v.success)?void 0:a.co,billingInfo:{city:null==v||null==(o=v.success)?void 0:o.city,street_name:null==v||null==(r=v.success)?void 0:r.street,post_code:null==v||null==(s=v.success)?void 0:s.zipCode,billingMannualAddress:!0,addressFinder:!1},delivery_info:{first_name:null==v||null==(d=v.success)?void 0:d.firstName,last_name:null==v||null==(c=v.success)?void 0:c.lastName,city:null==v||null==(u=v.success)?void 0:u.city,street_name:null==v||null==(p=v.success)?void 0:p.street,post_code:null==v||null==(_=v.success)?void 0:_.zipCode,co:null==v||null==(m=v.success)?void 0:m.co,billingMannualAddress:!0,addressFinder:!1}})),e6(!e3)):(eR(!1),e1(!1),eQ(!0),lr(null==v?void 0:v.error)),eR(!1)}catch(e){eR(!1),e1(!1),eQ(!0),lr(null==e||null==(x=e.response)||null==(h=x.data)?void 0:h.name)}}},l2={fee:(null==e5?void 0:e5.total_tax)??0,deliveryAmount:0,tax:0},l4=parseFloat(null==l2?void 0:l2.deliveryAmount.toString())+parseFloat(null==l2?void 0:l2.tax.toString())+parseFloat(null==l2?void 0:l2.fee.toString()),l3=(0,i.useMemo)(()=>({pageType:"payG",journeyName:null===W.H||void 0===W.H?void 0:W.H.deliveryJourneyName,siteSubsection:"checkout"}),[]);null==Y||Y.esim,(0,i.useEffect)(()=>{var e,l;let t=null==Y||null==(e=Y.choose_sim_details)?void 0:e.sim_selection;lA(t),"p"===t?lO(!0):"e"===t&&lO(!1),(null==Y||null==(l=Y.choose_sim_details)?void 0:l.sim_display_order)==="e"?lx("e"):lx("p")},[]);let l6=0;return(0,n.jsxs)(n.Fragment,{children:[eW&&(0,n.jsx)(Z.A,{}),(0,n.jsx)(ei.A,{pageInfo:l3}),(0,n.jsx)(A.A,{sx:eW?{minHeight:"50vh"}:{},maxWidth:"xl",className:I().checkout,children:(null==eE?void 0:eE.length)>0?(0,n.jsxs)(v.Ay,{container:!0,item:!0,mx:"auto",mt:5,md:8,lg:5.8,children:[(0,n.jsx)(v.Ay,{item:!0,xs:12,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(m.A,{...(0,s.$h_)("check-out-title-n"),mb:1,className:`md-text text-bold ${I().title}`,children:b.A.itemsInYourBasket})}),(null==Y?void 0:Y.country)==="Sweden"&&(0,n.jsx)(lZ,{classname:I().ssnMain,children:(0,n.jsx)(y.A,{sx:{width:"inherit",justifyContent:"space-between",display:"flex"},children:(0,n.jsxs)(v.Ay,{item:!0,display:"flex",flexDirection:"column",className:I().ssnInside,children:[(0,n.jsx)(v.Ay,{item:!0,sm:12,children:(0,n.jsx)(m.A,{...(0,s.$h_)("ssn-text"),gutterBottom:!0,className:I().ssn_text,sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:b.A.ssn})}),e3&&(0,n.jsxs)(v.Ay,{item:!0,className:I().checkSuccess,gap:1.2,display:"flex",justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(k(),{...(0,s.$h_)("personal-id-change-success-icon"),src:j.z.thumbsupGreen,alt:"thumbs-up"}),(0,n.jsx)(m.A,{...(0,s.$h_)("personal-id-text"),children:`***${lt.personal_id.toString().slice(-4)}`}),(0,n.jsx)(f.A,{...(0,s.$h_)("personal-id-change-cta"),onClick:()=>{e6(!e3),e1(!1)},children:b.A.change})]}),!e3&&(0,n.jsx)(v.Ay,{item:!0,sm:12,xs:8,children:(0,n.jsx)(ea.A,{fieldName:"personal-id-input",type:"number",selectValue:"",selectOptions:[],IconComponent:"",maxLength:12,textFieldLabel:b.A.personalId,textFieldValue:lt.personal_id,notDisableEndAdor:!0,setErrorNotDisable:eQ,ssnErrorNotDisable:eZ,handleNotDisableText:()=>{lt.personal_id&&l1()},error:!!li.personal_id,name:"ssn",helperText:li.personal_id,setErrors:la,onTextFieldChange:e=>((e,l)=>{if(l.length>12)return!1;"ssn"===e&&(""!==l?(ln(e=>({...e,personal_id:l})),la(e=>({...e,personal_id:""})),et((0,U.AJ)(l))):ln(e=>({...e,personal_id:""})),eQ(!1))})("ssn",e.target.value),borderColor:"#BEC6D5",displaySuffix:!0,displaySelect:!1,notDisableEndAdorText:b.A.check,ssnErrorMessage:lo})})]})})}),null==eE?void 0:eE.map((e,l)=>{var t,a,o,r,d,c,u,p,_,h,x,A,C,w,S,T,D,P,U,F,E,B,M,z,O,L,R,K,X,J,Z,Q,ee,et,en,ei,ea,er,es,ed,ec,ep,e_,ex,ev,eA,eb,ej,eC,ek,ew,eN,eS,eT,e$,eP,eU,eF,eB,eM,ez,eO,eL,eW,eR,eV,eH,eK,eY,eX,eJ,eZ,eQ,e0,e1,e2,e4,e3,e6,e5,e8,e7,e9,le;let ll=null==e||null==(a=e.planItem)||null==(t=a.bundleGroupDetail
1s)?void 0:t.find(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)}),lt=(null==ll?void 0:ll.activationFee)&&(null==ll?void 0:ll.activationFee)>0?ll.activationFee:0,ln=(null==ll?void 0:ll.promotionalPricing)?Number(null==ll?void 0:ll.promotionalPricing):Number(null==ll?void 0:ll.basePrice),li=lt>0?ln-lt:ln;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v.Ay,{mb:2,container:!0,item:!0,className:`${I().mainBox} commonBorder`,children:[(0,n.jsx)(v.Ay,{className:`${I().header}`,children:(0,n.jsxs)(y.A,{className:I().textWrapper,children:[(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-basket-type-name-n-${l+1}`),className:I().text,children:"USA"===$.country_code?(0,n.jsxs)(n.Fragment,{children:[b.A.payAsYouGoSim_us,(0,n.jsx)(eu.A,{isFamilyPlan:ey,is_primary:null==e||null==(o=e.cartItem)?void 0:o.is_primary,index:l})]}):b.A.payAsYouGoSim}),(0,n.jsx)(f.A,{disabled:ey&&!(null==e||null==(r=e.cartItem)?void 0:r.is_primary)&&(null==eE?void 0:eE.length)===2,sx:{pr:el?"auto":"43px"},...(0,s.$h_)(`check-out-delete-from-basket-button-n-${l+1}`),onClick:()=>{var l;(null==e||null==(l=e.cartItem)?void 0:l.is_primary)?(eD(e),eI(e=>!e)):lq(2,e),(0,H.$d)((0,H.ar)(eo),1,"Basket","Delete","Cart")},children:(0,n.jsx)(k(),{...(0,s.$h_)(`check-out-delete-from-basket-icon-n-${l+1}`),src:j.z.deleteWhite,alt:"delete"})})]})}),(0,n.jsx)(v.Ay,{className:I().header,item:!0,sm:12,display:"flex",flexDirection:"row",children:(0,n.jsxs)(v.Ay,{container:!0,className:`${I().simWrapper}`,children:[(0,n.jsx)(v.Ay,{item:!0,sm:8,sx:{width:"59%"},children:(0,n.jsxs)(m.A,{...(0,s.$h_)(`check-out-sim-type-text-n-${l+1}`),className:`${I().text_sm}`,sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,n.jsxs)(y.A,{className:`${I().button_container}`,children:[(null==Y?void 0:Y.esim)&&"e"===lh&&(0,n.jsxs)("div",{className:I().esim_wrapper,children:[(0,n.jsxs)(f.A,{...(0,s.$h_)(`check-out-swap-cta-n-${l+1}`),onClick:()=>{eo.length>1&&ly?l_(!0):lO(!1),(0,H.$d)((0,H.ar)(eo),1,"Basket",b.A.eSIM,"checkout")},className:I().simText_btn_2,variant:"text",sx:{py:0,px:2,fontSize:ef?"11px !important":"16px",border:lf?(null==e||null==(d=e.cartItem)?void 0:d.physical_sim)||!ly?"1px solid #BEC6D5":"1px solid #006AE0;":"auto"},children:[(0,n.jsx)(k(),{src:(null==e||null==(c=e.cartItem)?void 0:c.physical_sim)||!ly?j.z.radioUncheck:j.z.radioCheckedTickBlue,alt:"Checked"}),b.A.eSIM]}),(0,n.jsx)(f.A,{...(0,s.$h_)(`check-out-info-modal-cta-n-${l+1}`),onClick:()=>{lL(0,0),(0,H.$d)((0,H.ar)(eo),1,"Basket","helpIcon","checkout")},className:I().help_icon_esim,variant:"text",sx:{fontSize:ef?"11px !important":"16px",padding:"6px !important",paddingLeft:(null==Y?void 0:Y.esim)?"6px !important":"0px !important"},children:(0,n.jsx)(k(),{src:j.z.helpIcon,alt:"helpIcon",className:I().help_icon_esim})})]}),(0,n.jsxs)(f.A,{...(0,s.$h_)(`check-out-compatibility-cta-n-${l+1}`),onClick:()=>{var l;!(null==e||null==(l=e.cartItem)?void 0:l.physical_sim)&&(null==Y?void 0:Y.esim)&&(eo.length>1&&ly?l_(!0):lO(!0)),(0,H.$d)((0,H.ar)(eo),1,"Basket",b.A.simCard,"checkout")},sx:{py:0,px:2,fontSize:ef?"11px !important":"16px",border:lf?(null==e||null==(u=e.cartItem)?void 0:u.physical_sim)&&(null==Y?void 0:Y.esim)?"1px solid #006AE0;":"1px solid #BEC6D5":"inherit"},className:I().simText_btn,variant:"text",children:[(null==Y?void 0:Y.esim)&&(0,n.jsx)(k(),{src:(null==e||null==(p=e.cartItem)?void 0:p.physical_sim)&&ly?j.z.radioCheckedTickBlue:j.z.radioUncheck,alt:"Checked"}),(0,n.jsx)("span",{className:(null==Y?void 0:Y.esim)?"":I().simText_black,children:b.A.simCard})]}),(null==Y?void 0:Y.esim)&&"e"!==lh&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(f.A,{...(0,s.$h_)(`check-out-swap-cta-n-${l+1}`),onClick:()=>{eo.length>1&&ly?l_(!0):lO(!1),(0,H.$d)((0,H.ar)(eo),1,"Basket",b.A.eSIM,"checkout")},className:I().simText_btn_2,variant:"text",sx:{py:0,px:2,fontSize:ef?"11px !important":"16px",border:lf?(null==e||null==(_=e.cartItem)?void 0:_.physical_sim)||!ly?"1px solid #BEC6D5":"1px solid #006AE0;":"auto"},children:[(0,n.jsx)(k(),{src:(null==e||null==(h=e.cartItem)?void 0:h.physical_sim)||!ly?j.z.radioUncheck:j.z.radioCheckedTickBlue,alt:"Checked"}),b.A.eSIM]})})]}),(null==Y?void 0:Y.esim)&&"e"!==lh&&(0,n.jsx)(f.A,{...(0,s.$h_)(`check-out-info-modal-cta-n-${l+1}`),onClick:()=>lL(0,0),className:I().help_icon,variant:"text",sx:{fontSize:ef?"11px !important":"16px",padding:"6px !important",paddingLeft:(null==Y?void 0:Y.esim)?"6px !important":"0px !important"},children:(0,n.jsx)(k(),{src:j.z.helpIcon,alt:"helpIcon",className:I().help_icon})})]})}),(0,n.jsx)(v.Ay,{md:4,item:!0,textAlign:"left",className:I().flex_row_end_amount,children:(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-sim-price-text-container-n-${l+1}`),className:(null==Y?void 0:Y.esim)?I().font_free_color:I().font_free_color_2,children:b.A.free})}),!ly&&(0,n.jsxs)(y.A,{className:I().errorBlock,children:[" ",(0,n.jsx)(g.A,{icon:(0,n.jsx)(k(),{...(0,s.$h_)(`check-out-warning-icon-n-${l+1}`),src:j.z.errorInRed,height:18,width:18,alt:"info"}),severity:"error",sx:{width:"auto"},children:b.A.selectSim})]}),(null==e||null==(x=e.cartItem)?void 0:x.physical_sim)&&ly&&(null==Y?void 0:Y.country_code)!=="FR"&&(0,n.jsx)(v.Ay,{sm:9,sx:{width:eg?"73%":""}
1,children:(0,n.jsxs)(y.A,{sx:{display:"flex",gap:"7px",flexDirection:"row",marginTop:"12px"},children:[(0,n.jsx)(k(),{...(0,s.$h_)(`check-out-warning-icon-n-${l+1}`),src:j.z.infoIcon_checkout,height:18,width:18,alt:"info"}),(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-warning-sim-message-n-${l+1}`),className:`text-lg ${I().text_physicalsim}`,sx:{fontFamily:"GTEestiLCDisplayRegular"},children:(null==Y?void 0:Y.country)==="USA"?b.A.whatusphysicalsim:b.A.whatsphyicalsim})]})}),(null==e||null==(A=e.cartItem)?void 0:A.physical_sim)&&ly&&(null==Y?void 0:Y.country_code)==="FR"&&(0,n.jsx)(v.Ay,{sm:9,sx:{width:eg?"73%":""},children:(0,n.jsxs)(y.A,{sx:{display:"flex",gap:"7px",flexDirection:"row",marginTop:"12px"},children:[(0,n.jsx)(k(),{...(0,s.$h_)(`check-out-warning-icon-n-${l+1}`),src:j.z.infoIcon_checkout,height:18,width:18,alt:"info"}),(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-warning-sim-message-n-${l+1}`),className:`text-lg ${I().text_physicalsim}`,sx:{fontFamily:"GTEestiLCDisplayRegular"},children:(null==Y||Y.country_code,b.A.simActivatedPhysicalTextfrance)})]})}),!(null==e||null==(C=e.cartItem)?void 0:C.physical_sim)&&ly&&(0,n.jsx)(v.Ay,{sm:9,sx:{width:eg?"73%":""},children:(0,n.jsxs)(y.A,{sx:{display:"flex",gap:"7px",flexDirection:"row",marginTop:"12px"},children:[(0,n.jsx)(k(),{...(0,s.$h_)(`check-out-warning-icon-n-${l+1}`),src:j.z.infoIcon_checkout,height:18,width:18,alt:"info"}),lg&&(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-warning-sim-message-n-${l+1}`),className:`text-lg ${I().text_esim}`,sx:{fontFamily:"GTEestiLCDisplayRegular"},children:` ${lg}`}),(null==Y?void 0:Y.country)!=="USA"&&(null==Y?void 0:Y.country_code)!=="FR"&&(null==Y?void 0:Y.country_code)!=="DE"&&(null==Y?void 0:Y.country_code)!=="AT"&&(null==Y?void 0:Y.country_code)!=="CH"&&(null==Y?void 0:Y.country_code)!=="IT"&&(null==Y?void 0:Y.country_code)!=="NL"&&(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-warning-sim-message-n-${l+1}`),className:`text-lg ${(null==Y?void 0:Y.country)==="UK"?I().text_esim_bold:I().text_esim}`,sx:{fontFamily:"GTEestiLCDisplayRegular"},children:`${b.A.yourLycaMobileSIMMustBeActivatedInThe} ${(null==Y?void 0:Y.country)==="UK"?"United Kingdom":(null==Y?void 0:Y.country)==="Belgium"?b.A.countryName:null==Y?void 0:Y.country} ${b.A.onceYourSIMIsActivatedIn} ${(null==Y?void 0:Y.country)==="UK"?"United Kingdom":(null==Y?void 0:Y.country)==="Belgium"?b.A.countryName:null==Y?void 0:Y.country} ${b.A.youCanUseItInternationally}`}),(null==Y?void 0:Y.country)==="USA"&&(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-warning-sim-message-n-${l+1}`),className:`text-lg ${I().text_esim}`,sx:{fontFamily:"GTEestiLCDisplayRegular"},children:` ${b.A.yourLycaMobileSIMMustBeActivatedInUSA}`})]})})]})}),(0,n.jsx)(v.Ay,{className:I().header,item:!0,sm:12,display:"flex",flexDirection:"row",sx:{borderBottom:lt?"0 !important":"1px solid #ccc !important"},children:(0,n.jsxs)(v.Ay,{container:!0,className:`${I().simWrapper} ${I().columndirection} ${lt?I().noPaddingBottom:""}`,sx:{paddingBottom:lt?"0 !important":"16px"},children:[(0,n.jsx)(v.Ay,{item:!0,sm:8,xs:7,sx:{maxWidth:ef?"58% !important":""},children:(0,n.jsxs)(y.A,{sx:{marginRight:ef?"0px":"80px"},children:[(0,n.jsxs)(m.A,{...(0,s.$h_)(`check-out-plan-name-n-${l+1}`),sx:{color:(null==e||null==(w=e.cartItem)?void 0:w.bundle_selected)?"#344054":"rgba(102, 112, 133, 1) !important",display:"flex",gap:"5px",fontFamily:(null==e||null==(S=e.cartItem)?void 0:S.bundle_selected)?"GTEestiLCDisplayRegular":"GTEestiLCDisplayMedium !important",width:"max-content"},className:`${I().text_sm}`,children:[(null==e||null==(T=e.planItem)?void 0:T.productDisplayName)||(null==e||null==(D=e.planItem)?void 0:D.productName),(null==e||null==(P=e.cartItem)?void 0:P.bundle_selected)?null:(0,n.jsxs)(m.A,{...(0,s.$h_)(`check-out-sim-plan-empty-n-${l+1}`),className:`${I().text_sm}`,sx:{fontFamily:"GTEestiLCDisplayMedium !important",color:"rgba(102, 112, 133, 1) !important"},children:["-"," "]})]}),(null==e||null==(U=e.cartItem)?void 0:U.bundle_selected)?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(y.A,{display:"flex",sx:{pr:1,width:"max-content",flexDirection:eg?"column":"row",gap:eg?"0px":"10px",alignItems:eg?"flex-start":"center"},children:[(null==e||null==(E=e.planItem)||null==(F=E.filterType)?void 0:F.includes("noValidity"))!==!0&&(null==e||null==(B=e.planItem)?void 0:B.dataAllowance)?(null==e||null==(M=e.planItem)?void 0:M.dataAllowanceUnit)&&(null==e||null==(L=e.planItem)||null==(O=L.bundleGroupDetail
1s)||null==(z=O.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0])?void 0:z.productValidity)&&(null==e||null==(X=e.planItem)||null==(K=X.bundleGroupDetails)||null==(R=K.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0])?void 0:R.productValidityUnit)&&(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-plan-standard-data-n-${l+1}`),className:I().price,variant:"body2",children:((null==e||null==(J=e.planItem)?void 0:J.dataAllowance)||(null==e||null==(Z=e.planItem)?void 0:Z.bonusDataAllowance))+((null==e||null==(Q=e.planItem)?void 0:Q.dataAllowanceUnit)||(null==e||null==(ee=e.planItem)?void 0:ee.bonusDataAllowanceUnit)||"")+" - "+(null==e||null==(ei=e.planItem)||null==(en=ei.bundleGroupDetails)||null==(et=en.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0])?void 0:et.productValidity)+" "+(null==e||null==(es=e.planItem)||null==(er=es.bundleGroupDetails)||null==(ea=er.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0])?void 0:ea.productValidityUnit)||""}):(null==e||null==(ec=e.planItem)||null==(ed=ec.filterType)?void 0:ed.includes("noValidity"))!==!0&&(null==e||null==(ep=e.planItem)?void 0:ep.dataAllowance)&&(null==e||null==(e_=e.planItem)?void 0:e_.dataAllowanceDuration)&&(null==e||null==(ex=e.planItem)?void 0:ex.dataAllowanceUnit)&&(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-plan-data-validity-n-${l+1}`),className:I().price,variant:"body2",children:(null==e||null==(ev=e.planItem)?void 0:ev.dataAllowance)&&(null==e||null==(eA=e.planItem)?void 0:eA.dataAllowanceDuration)&&(null==e||null==(eb=e.planItem)?void 0:eb.dataAllowanceUnit)&&(0,n.jsxs)(n.Fragment,{children:[((null==e||null==(ej=e.planItem)?void 0:ej.dataAllowance)||(null==e||null==(eC=e.planItem)?void 0:eC.bonusDataAllowance))+((null==e||null==(ek=e.planItem)?void 0:ek.dataAllowanceUnit)||(null==e||null==(ew=e.planItem)?void 0:ew.bonusDataAllowanceUnit)||""),(null==e||null==(eS=e.planItem)||null==(eN=eS.productType[0])?void 0:eN.productTypeCode.toLowerCase())!==W.H.boltons&&" - "+((null==e||null==(eT=e.planItem)?void 0:eT.dataAllowanceDuration)||(null==e||null==(e$=e.planItem)?void 0:e$.bonusDataAllowanceDuration))]})}),(0,n.jsx)(f.A,{...(0,s.$h_)(`check-out-view-plan-details-n-${l+1}`),onClick:()=>{lq(1,e),(0,H.$d)((0,H.ar)(eo),1,"Basket",b.A.viewDetails,"checkout")},className:`text_sm_blue simText ${I().viewDetails}`,variant:"text",sx:{display:"flex",justifyContent:"flex-start",padding:"0px",fontSize:ef?"11px !important":"16px"},children:b.A.viewDetails})]})}):(null==e||null==(eP=e.planItem)?void 0:eP.shortDescription)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-plan-description-n-${l+1}`),className:I().price,variant:"body2",sx:{width:eg?"150px":"fit-content"},children:(0,s.ypm)(null==e||null==(eU=e.planItem)?void 0:eU.shortDescription).join(", ")}),(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-plan-desc-validity-data-n-${l+1}`),className:I().price,variant:"body2",children:`${(null==e||null==(eB=e.planItem)||null==(eF=eB.bundleGroupDetails)?void 0:eF.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0].productValidity)&&(null==e||null==(ez=e.planItem)||null==(eM=ez.bundleGroupDetails)?void 0:eM.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0].productValidity)+" "+(null==e||null==(eL=e.planItem)||null==(eO=eL.bundleGroupDetails)?void 0:eO.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0].productValidityUnit)+b.A.validity}`})]})]})}),(0,n.jsxs)(v.Ay,{sx:{flexDirection:ey&&!(null==e||null==(eW=e.cartItem)?void 0:eW.is_primary)&&"column"},item:!0,md:4,xs:5,textAlign:(null==e||null==(eR=e.cartItem)?void 0:eR.bundle_selected)?"center":"left",className:`${I().flex_row_end} ${I().columndirection}`,children:[!(null==e||null==(eV=e.cartItem)?void 0:eV.is_primary)&&ey&&(0,n.jsx)(y.A,{className:I().discount_wrapper,children:(0,n.jsxs)("span",{className:I().discountText,children:[" ",(0,s.G7O)(null==e?void 0:e.planItem,e.line),(0,n.jsx)("span",{className:I().priceValue,children:(0,n.jsx)(V.A,{amountValue:null==e||null==(eY=e.planItem)||null==(eK=eY.bundleGroupDetail
1s)||null==(eH=eK.filter(l=>{var t;return(null==e||null==(t=e.cartItem)?void 0:t.bundle_code)==(null==l?void 0:l.bundleCode)})[0])?void 0:eH.basePrice})})]})}),(null==e||null==(eX=e.cartItem)?void 0:eX.bundle_selected)?(0,n.jsxs)(m.A,{...(0,s.$h_)(`check-out-plan-amount-container-n-${l+1}`),className:(null==e||null==(eJ=e.cartItem)?void 0:eJ.bundle_selected)?`text-lg ${I().font_dark_color}`:`text-lg ${I().font_gray_color}`,sx:{display:"flex"},children:[(0,n.jsx)(y.A,{className:I().amountPrice,children:(0,n.jsx)(V.A,{amtText:"plan-amount-text-n",currText:"plan-currency-text-n",amountValue:null==li?void 0:li.toString()})}),(0,n.jsx)(f.A,{...(0,s.$h_)(`check-out-plan-delete-button-n-${l+1}`),sx:{visibility:"hidden"},onClick:()=>lq(2,e),children:(0,n.jsx)(k(),{...(0,s.$h_)(`check-out-plan-delete-icon-n-${l+1}`),src:j.z.deleteIcon,alt:"delete"})})]}):(0,n.jsx)(f.A,{...(0,s.$h_)(`check-out-add-plan-again-n-${l+1}`),onClick:()=>lR(e),className:I().addPlanAgain,variant:"text",children:b.A.addThisPlanAgain})]})]})}),(null==Y||null==(eQ=Y.sim_details)||null==(eZ=eQ.prepaid)?void 0:eZ.enable_checkout_portin)&&(0,n.jsx)(v.Ay,{item:!0,sm:12,display:"flex",className:`${I().header}`,children:(null==Y||null==(e1=Y.sim_details)||null==(e0=e1.prepaid)?void 0:e0.enable_checkout_portin)&&l6<1&&(l6+=1,(0,n.jsx)(eq,{fieldInteractionDetails:void 0}))}),(()=>{var t,i,a,o;let r=(null==e||null==(a=e.planItem)||null==(i=a.bundleGroupDetails)||null==(t=i.find(e=>null==e?void 0:e.activationFee))?void 0:t.activationFee)||0;return r>0?(0,n.jsx)(v.Ay,{className:I().header,item:!0,sm:12,display:"flex",flexDirection:"row",children:(0,n.jsx)(v.Ay,{container:!0,className:`${I().simWrapper} ${I().topUpWrapper} ${I().topupList}`,sx:{paddingTop:"3px !important",paddingBottom:"3px !important"},children:(0,n.jsxs)(v.Ay,{container:!0,item:!0,justifyContent:"space-between",className:I().columndirection,sx:{alignItems:"center",marginBottom:lf?"0":"6px"},children:[(0,n.jsx)(v.Ay,{item:!0,sm:8,xs:7,sx:{maxWidth:ef?"58% !important":""},children:(0,n.jsx)(m.A,{className:`${I().text_sm} activationFee`,sx:{color:"#8d8d8d !important",display:"flex",gap:"5px",fontFamily:"GTEestiLCDisplayRegular !important",fontSize:"16px !important",fontWeight:"400 !important"},children:b.A.activationFee})}),(0,n.jsx)(v.Ay,{sm:4,xs:5,item:!0,textAlign:"right",className:I().flex_row_end,sx:{alignItems:"center"},children:(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-plan-amount-container-n-${l+1}`),className:(null==e||null==(o=e.cartItem)?void 0:o.bundle_selected)?`text-lg ${I().font_dark_color}`:`text-lg ${I().font_gray_color}`,sx:{display:"flex"},children:(0,n.jsx)(y.A,{className:`${I().amountPrice} activationAmount`,sx:{color:"#8d8d8d",fontSize:"16px !important",marginRight:{xs:"25px !important",sm:"60px !important"},fontFamily:"GTEestiLCDisplayRegular"},children:(0,n.jsx)(V.A,{amtText:"plan-amount-text-n",currText:"plan-currency-text-n",amountValue:r})})})})]})})}):null})(),(0,n.jsx)(v.Ay,{className:I().header,item:!0,sm:12,display:"flex",flexDirection:"row",children:(0,n.jsxs)(v.Ay,{container:!0,className:`${I().simWrapper} ${I().topUpWrapper} ${I().topupList}`,children:[(0,n.jsxs)(v.Ay,{container:!0,item:!0,justifyContent:"space-between",className:I().columndirection,sx:{alignItems:"center",marginBottom:lf?"0":"6px"},children:[(0,n.jsx)(v.Ay,{item:!0,sm:8,children:(0,n.jsx)(m.A,{className:I().text_sm_addtopp,...(0,s.$h_)(`check-out-top-up-info-heading-n-${l+1}`),children:"USA"===$.country_code?b.A.addtopUp_us:b.A.addtopUp})}),(0,n.jsxs)(v.Ay,{sm:4,item:!0,textAlign:"right",className:I().flex_row_end,sx:{alignItems:"center"},children:[(0,n.jsx)(m.A,{...(0,s.$h_)(`check-out-top-up-amount-container-n-${l+1}`),className:(null==e||null==(e2=e.cartItem)?void 0:e2.card_id)?`text-lg ${I().font_dark_color_topup}`:`text-lg ${I().font_gray_color}`,children:lQ(e)>0?(0,n.jsx)(V.A,{amtText:"top-up-amount-text-n",currText:"top-up-currency-text-n",amountValue:lQ(e).toString()}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{className:I().initial_amount,children:(0,n.jsx)(V.A,{amtText:"top-up-amount-text-n",currText:"top-up-currency-text-n",amountValue:"0.00".toString()})})})}),(0,n.jsx)(f.A,{...(0,s.$h_)(`check-out-delete-top-up-button-n-${l+1}`),sx:{visibility:lQ(e)>0?"visible":"hidden"},onClick:()=>lH(e),children:(0,n.jsx)(k(),{...(0,s.$h_)(`check-out-delete-top-up-icon-n-${l+1}`),src:j.z.deleteIcon,alt:"delete",className:I().deleteIcon})})]})]}),(0,n.jsx)(v.Ay,{container:!0,item:!0,className:I().topUpStyle,sx:lQ(e)>0?{opacity:1,mb:2}:{overflowY:"hidden",opacity:.6,mb:1},children:null==eG||null==(e4=eG.filter(e=>{var l,t;return null==e||null==(t=e.topUpDetails)||null==(l=t[0])?void 0:l.topUpAmount}))?void 0:e4.map((l,t)=>{var i,a,o,r,d,c,u,p;return(0,n.jsx)(G.A,{topUpIndex:t+1,isActive:(null==e||null==(i=e.cartItem)?void 0:i.card_id)==(null==l||null==(o=l.topUpDetails)||null==(a=o[0])?void 0:a.topUpId),planCost:`${(null==l||null==(d=l.topUpDetails)||null==(r=d[0])?void 0:r.topUpAmount)||0}`,currencySymbol:null==Y?void 0:Y.currency_symbol,planName:b.A.plusMore,planType:(null==l?void 0:l.shortDe
1scription)?b.A.plusMore:b.A.creditOnly,featureList:(0,s.r4M)(null==l?void 0:l.shortDescription),isSelected:(null==e||null==(c=e.cartItem)?void 0:c.card_id)==(null==l||null==(p=l.topUpDetails)||null==(u=p[0])?void 0:u.topUpId),isrecommended:null==l?void 0:l.promoOfferLine1,isExpandable:null!=l&&!!l.shortDescription,onClick:()=>{lY(e,l),(0,H.$d)((0,H.ar)(eo),1,"Basket",(null==l?void 0:l.shortDescription)?b.A.plusMore:b.A.creditOnly,"checkout")}},null==l?void 0:l.id)})}),(null==eG||null==(e6=eG.filter(l=>{var t,n,i;return(null==e||null==(t=e.cartItem)?void 0:t.card_id)==(null==l||null==(i=l.topUpDetails)||null==(n=i[0])?void 0:n.topUpId)}))||null==(e3=e6[0])?void 0:e3.shortDescription)&&(0,n.jsx)(v.Ay,{sm:12,mt:1,className:I().hint,...(0,s.$h_)(`check-out-free-checkout-sim-allowance-info-n-${l+1}`),children:null==eG?void 0:eG.map((l,t)=>{var a,o,r;if((null==e||null==(a=e.cartItem)?void 0:a.card_id)==(null==l||null==(r=l.topUpDetails)||null==(o=r[0])?void 0:o.topUpId))return(0,n.jsx)(i.Fragment,{children:(null==l?void 0:l.topUpAllowanceText)&&(0,n.jsx)(n.Fragment,{children:null==l?void 0:l.topUpAllowanceText})},t)})})]})}),(null==Y?void 0:Y.is_hot_sim)&&!ey&&(0,n.jsx)(em,{handleHotSim:lw,hotSim:lC}),(null==Y?void 0:Y.buddy_plan_enabled_web)&&(!!(null==e||null==(e7=e.planItem)||null==(e8=e7.bundleGroupDetails)||null==(e5=e8[0])?void 0:e5.buddyBundleCode)||!!(null==e||null==(e9=e.cartItem)?void 0:e9.buddy_plan_selected))&&!ey&&(0,n.jsx)(eh,{handleBuddySimOffer:()=>lI(e),item:e})]},(null==e||null==(le=e.planItem)?void 0:le.id)+" "+l),(0,n.jsx)(N.default,{size:"sm",id:"homepageOfferT&CPopup",className:"success_modal",children:(0,n.jsx)(q.A,{onClose:()=>l_(!1),isSwap:!0,item:e,swap:()=>{var e,l;return lO(!(null==eE||null==(l=eE[0])||null==(e=l.cartItem)?void 0:e.physical_sim))}}),open:lp,onClose:()=>l_(!1)})]})}),(null==eE?void 0:eE.length)<Q&&(null==eE?void 0:eE.length)<4&&(0,n.jsxs)(lZ,{classname:I().anatherLine,children:[(0,n.jsx)(y.A,{className:`${I().imageWrapper} textBlue topLeftBorderRadius`,...(0,s.$h_)("check-out-another-line-block-n"),children:(0,n.jsx)(k(),{...(0,s.$h_)("check-out-copy-icon-n"),src:j.z.copy_icon_checkout,alt:"Landscape picture"})}),(0,n.jsx)(y.A,{sx:{width:"inherit",justifyContent:"space-between",display:"flex"},children:(0,n.jsxs)(f.A,{sx:{ml:eg?1:1.3},onClick:()=>{ey?E.push(`/${(0,s.Cu3)(E.locale)}/${(0,s.GPS)(E.locale)}/#family-plans`):E.push(`/${(0,s.Cu3)(E.locale)}/${(0,s.GPS)(E.locale)}/`),(0,H.$d)((0,H.ar)(eo),1,"Basket","Checkout another line","checkout")},className:"text_sm_blue_simText_black",variant:"text",...(0,s.$h_)("check-out-another-line-cta-n"),children:[b.A.addAnatherLine,(0,n.jsx)(k(),{...(0,s.$h_)("check-out-add-plus-icon-n"),src:j.z.plusCircle,alt:"plus"})]})})]}),0!==l4&&(0,n.jsx)(lZ,{classname:I().otherCharges,children:(0,n.jsx)(es,{rowItem:l2})}),(null==Y?void 0:Y.country)==="USA"&&(0,n.jsx)(m.A,{className:I().note,children:b.A.transaction_processing_fee}),(0,n.jsx)(N.default,{size:(()=>{switch(eb.type){case 0:case 1:return"md";case 2:case 3:return"sm"}})(),className:(()=>{switch(eb.type){case 0:return"simDetails";case 1:case 3:return"planDetails";case 2:return"deleteModal"}})(),id:b.A.viewDetails,children:(()=>{switch(eb.type){case 0:var e;return(0,n.jsx)(T.A,{onClose:lJ,activeTab:eC,compatibilityData:null==ls||null==(e=ls.cms_data)?void 0:e.find(e=>(null==e?void 0:e.type)=="node--2_clickable_headings_and_text_su")});case 1:return(0,n.jsx)(S.A,{onClose:lJ,productData:null==eT?void 0:eT.planItem});case 2:return(0,n.jsx)(F,{rowData:eT,isFamilyPlanPresent:ey,onClose:lJ,deleteRow:lW});case 3:return(0,n.jsx)(en,{onClose:lJ,productData:null==eT?void 0:eT.planItem})}})(),open:eb.flag,onClose:()=>ej({...eb,flag:!1})}),null==ls||null==(c=ls.cms_data)||null==(d=c.filter(e=>"node--basket_order_helpline"===e.type))?void 0:d.map(e=>{var l,t,i,a,o,r;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(y.A,{className:I().order_helpline_box,children:[(0,n.jsx)(k(),{width:67,height:67,src:null==e||null==(a=e.children)||null==(i=a[0])||null==(t=i.uri)||null==(l=t[0])?void 0:l.url,alt:"phone ",...(0,s.$h_)("order-phone-helpline-icon-n")}),(0,n.jsx)("div",{children:(0,n.jsx)(O.A,{content:null==e||null==(r=e.field_content)||null==(o=r[0])?void 0:o.processed})})]})})})]}):"removeAndAdd"!==eN&&eH&&!eW&&(0,n.jsx)(R,{})}),el?(0,n.jsx)(ec.A,{open:ew,onClose:()=>eI(!1),children:(0,n.jsx)(eJ,{ctas:[b.A.ctaTitle,b.A.ctaSubTitle,b.A.ctaButtonText],rowData:eT,onClose:()=>eI(!1),deleteRow:lW})}):(0,n.jsx)(N.default,{id:b.A.viewDetails,size:"md",className:"success_modal",children:(0,n.jsx)(eJ,{ctas:[b.A.ctaTitle,b.A.ctaSubTitle,b.A.ctaButtonText],rowData:eT,onClose:()=>eI(!1),deleteRow:lW}),open:ew,onClose:()=>eI(!1)}),(null==eE?void 0:eE.length)>0&&(0,n.jsx)(lZ,{classname:I().totalSummary,children:(0,n.jsx)(X,{handleAdobeProgress:()=>{var e;let l={basketState:eo,allTopUpPlans:eG,baseWindow:D,total:lN,currency_code:(null==$||null==(e=$.tradeDoubler)?void 0:e.currencyCode)||"na",configData:Y,formName:"newsim",formStep:"Step 1 - Order details",event:"formProgress"};(0,s.qP)(l),w({basketState:eo,topUpPlan:eG})},isDisabled:lS(eE),totals:lj(eE),taxDetails:e5,ssnFlag:lc,hotSim:lC,fieldInteractionDetail
1s:{step:1,formStep:"Basket",fieldName:"Checkout now"}})}),(0,n.jsx)("div",{className:(null==eE?void 0:eE.length)>0?I().margin_bottom_150:"",children:(0,n.jsx)("div",{style:{minHeight:"450px"},children:lP&&(0,n.jsx)(J.default,{data:B})})})]})},eQ=c()(()=>Promise.resolve().then(t.bind(t,47816)),{loadableGenerated:{webpack:()=>[47816]},ssr:!1});var e0=!0;let e1=e=>{var l,t;let i=null;(null==(i=window)||null==(l=i.location)?void 0:l.host)&&(0,_.A)(null==i||null==(t=i.location)?void 0:t.host);let d=(0,a.useRouter)(),c=(0,u.d4)(p.wx);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.A,{metaData:(()=>{var l,t,n,i,a,r,s,c,u,p,_,m,h,x,v;let A=null==(l=(null==e||null==(a=e.data)||null==(i=a.cms_data)||null==(n=i[0])||null==(t=n.field_json_response)?void 0:t[0])?JSON.parse(null==e||null==(u=e.data)||null==(c=u.cms_data)||null==(s=c[0])||null==(r=s.field_json_response)?void 0:r[0]):(0,o._)(null==e?void 0:e.host))?void 0:l.find(l=>{var t,n;return(null==l?void 0:l.key)===`checkoutSeo_${d.locale}_${null==(n=e.url)||null==(t=n.country_code)?void 0:t.toLowerCase()}`});return{...null==A?void 0:A.value,field_canonical_tags:(null==A||null==(p=A.value)?void 0:p.canonical)||e.host,ogLocale:(null==A||null==(_=A.value)?void 0:_.ogLocale)||e.locale,field_hreflang:`${d.locale}-${(null==(m=e.url)?void 0:m.country_code)==="USA"?"US":(null==(h=e.url)?void 0:h.country_code)==="SW"?"CH":(null==(x=e.url)?void 0:x.country_code)==="IE"?"gb":null==(v=e.url)?void 0:v.country_code}`}})()}),(0,n.jsx)(eQ,{data:c}),(0,n.jsx)(eZ,{handleTradeDoubler:l=>{(0,s.q6X)(l,e.url.tradeDoubler,i)},data:[]})]})}},53859:e=>{e.exports={plandetailsCard:"PromoPopUpPlp_plandetailsCard__u6FrW",header:"PromoPopUpPlp_header__0aEDo",headerText:"PromoPopUpPlp_headerText__dACMP",headerSection:"PromoPopUpPlp_headerSection__tmv0Y",mobileImageWrapper:"PromoPopUpPlp_mobileImageWrapper__T_Rq7",mobileImageError:"PromoPopUpPlp_mobileImageError__frA71",deskImageWrapper:"PromoPopUpPlp_deskImageWrapper__zJX0I",editSection:"PromoPopUpPlp_editSection__vQoEG",subSection:"PromoPopUpPlp_subSection__LV_33",text1:"PromoPopUpPlp_text1___Wg_3",text2:"PromoPopUpPlp_text2__imD_g",text3:"PromoPopUpPlp_text3__S4Kuy",button:"PromoPopUpPlp_button__XewkD"}},58634:(e,l,t)=>{"use strict";t.d(l,{A:()=>j});var n=t(37876),i=t(14232),a=t(6995),o=t(84733),r=t(55134),s=t(5067),d=t(70496),c=t(34260),u=t(54587),p=t.n(u),_=t(16455),m=t(69771),h=t.n(m),x=t(16562),v=t(4833),A=t(84930),y=t(92760),g=t(67330),f=t(31777),b=t(58998);let j=e=>{var l,t,u,m,j,C,k,w,I,N,S,T,D,$;let{onClose:P,productData:U,buttonData:F,wentFrom:E}=e,B=(0,f.d4)(g.ar),M=(null==B?void 0:B.find(e=>e.id===(null==U?void 0:U.id)))||U,[z,O]=(0,i.useState)(!1),L="myPlans"===E,W=(0,a.A)("(max-width:768px)"),R=(null==U?void 0:U.productTermsAndCondition)||"";return null==U||null==(t=U.productType)||null==(l=t[0])||l.categoryName,(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(o.A,{className:h().plandetail
1sCard,sx:{height:L&&W?"560px":"auto",overflowY:L&&W?"inherit !important":"auto",backgroundColor:L?"#F5F5F7":"#FFFFFF"},children:[(0,n.jsxs)(o.A,{className:h().header,sx:{fontSize:L&&W?"1.5rem !important":void 0,borderBottom:L?"none":"1px solid rgba(190, 198, 213, 1)"},children:[c.A.planDetails,(0,n.jsx)(r.A,{onClick:P,children:(0,n.jsx)(p(),{src:_.z.popup_close,alt:"popup-close",className:h().close_popup})})]}),z?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.A,{className:h().country_heading,sx:{backgroundColor:L?"#FFFFFF":void 0},children:[(0,n.jsx)(p(),{src:_.z.leftArrowPopUp,alt:"leftArrowPopUp",onClick:()=>O(!z)}),(0,n.jsx)(o.A,{className:h().country_heading_text,children:c.A.calls_to_countries})]}),(0,n.jsx)(A.default,{isPopUp:!L,isPadding:0,productData:M,data:{field_heading:"shgdshdgh",field_sub_heading:[{value:"<p>Indicates countries with only mobile calls. Rest include both mobile and landline calls.</p>",format:"basic_html",processed:"<p>Indicates countries with only mobile calls. Rest include both mobile and landline calls.</p>"}]}})]}):(0,n.jsxs)(o.A,{className:h().top_container,sx:{backgroundColor:L?"#FFFFFF":"",borderRadius:L?"8px":"",overflowY:L?"auto":"none"},children:[(0,n.jsx)(o.A,{className:h().top_content,children:(0,n.jsxs)("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"},children:[(0,n.jsxs)(o.A,{className:h().leftContent,children:[(0,n.jsx)("h1",{className:h().productName,children:null==U?void 0:U.productDisplayName}),(null==U?void 0:U.dataAllowance)&&(null==U?void 0:U.dataAllowanceUnit)&&(0,n.jsxs)(n.Fragment,{children:[" - ",(0,n.jsxs)(s.A,{className:h().productName,children:[null==U?void 0:U.dataAllowance,null==U?void 0:U.dataAllowanceUnit]})]})]}),(0,n.jsxs)(o.A,{className:h().productPrice_Container,children:[(0,n.jsx)(o.A,{className:h().productPrice,children:(0,n.jsx)(b.A,{amountValue:(null==U||null==(u=U.selectedBundle)?void 0:u.promotionalPricing)||(null==U||null==(m=U.selectedBundle)?void 0:m.basePrice)})}),"dsad",(null==U||null==(j=U.filterType)?void 0:j.includes("noValidity"))!==!0&&(null==U||null==(C=U.selectedBundle)?void 0:C.productValidity)>0&&(null==U||null==(k=U.selectedBundle)?void 0:k.productValidity)&&(0,n.jsx)(s.A,{className:h().rightContent,children:`${null==U||null==(w=U.selectedBundle)?void 0:w.productValidity} ${null==U||null==(I=U.selectedBundle)?void 0:I.productValidityUnit}`})]})]})}),(0,n.jsxs)(o.A,{className:h().content,children:[(0,n.jsx)(o.A,{children:(0,n.jsx)(o.A,{className:h().planInfo,children:(0,v.r4M)(null==M?void 0:M.longDescription).map((e,l)=>(0,n.jsxs)(o.A,{className:h().planInfoWrapper,children:[L?(0,n.jsx)(y.NI,{}):(0,n.jsx)(p(),{src:_.z.pdpGreenTick,alt:"greenTick",width:12,height:10}),(c.A.longTerm,(0,n.jsx)(s.A,{className:L?h().featureTextLongTerm16:h().featureTextLongTerm,children:e}))]},l))})}),(null==M||null==(N=M.internationalRoamingAllowance)?void 0:N.length)&&(null==M||null==(T=M.internationalRoamingAllowance)||null==(S=T[0])?void 0:S.internationalDestinations)&&(0,n.jsx)(o.A,{sx:{fontSize:"15px",lineHeight:"17.4px",color:"rgba(3, 114, 231, 1)",display:"flex",alignItems:"flex-end",paddingBottom:"2px"},children:(0,n.jsxs)("span",{style:{cursor:"pointer"},onClick:()=>O(!z),children:[" ",c.A.view_list_of_countries," "]})})]}),(0,n.jsxs)(o.A,{className:h().things_need_to_know,children:[(0,n.jsx)(s.A,{className:h().things_need_to_know_heading,children:c.A.things_need_to_know}),(0,n.jsx)(s.A,{className:h().things_need_to_know_content,children:(0,n.jsx)(x.A,{content:R})}),(null==M?void 0:M.dialCode)&&(null==M?void 0:M.textShortCode)&&(0,n.jsxs)(o.A,{className:h().contactDetails,children:[(0,n.jsxs)(s.A,{sx:{fontSize:"13px",width:"fit-content"},className:h().customerType,children:[(null==M||null==($=M.customerType)||null==(D=$[0])?void 0:D.categoryName)==="CA"?c.A.newCustomers:c.A.existingCustomers,":"]}),(0,n.jsxs)(s.A,{className:h().contactDetailsContent,children:[c.A.dial," ",(0,n.jsxs)("a",{href:`tel:${null==M?void 0:M.dialCode}`,children:[(0,n.jsx)("span",{className:h().plantcSubText,children:null==M?void 0:M.dialCode})," "]}),c.A.followInstruction," ",(0,n.jsxs)("a",{href:`sms:${null==M?void 0:M.textShortCode}`,children:[(0,n.jsx)("span",{className:h().plantcSubText,children:null==M?void 0:M.textShortCode})," "]})]})]}),F&&F.show&&(0,n.jsx)(d.A,{className:h().btnStyle,onClick:()=>{F&&F.onClick&&F.onClick((null==U?void 0:U.id)||"")},children:(0,n.jsx)(s.A,{className:h().btnText,children:F.ButtonText})})]})]})]})})}},58998:(e,l,t)=>{"use strict";t.d(l,{A:()=>r});var n=t(37876);t(14232);var i=t(31777),a=t(80063),o=t(4833);let r=e=>{let{currencyStyle:l,amountStyle:t,amountValue:r,isCurrency:s=!0,planId:d,amtText:c,currText:u,monthlyPricingUnit:p}=e,_=(0,i.d4)(a.Bn),m=(0,i.d4)(a.Xk),h=Number(r),x=Number((()=>{let e=h.toString();return e.includes(".")?e.split(".")[1].length:0})()),v=(((null==m?void 0:m.country_code)==="DK"||(null==m?void 0:m.country_code)==="NO"||(null==m?void 0:m.country_code)==="SE")&&h%1!=0?1===x?h.toFixed(2):h.toFixed(x):h.toFixed(null==m?void 0:m.decimal_places)).replace(".",(null==_?void 0:_.decimal_separator)||".");return(0,n.jsxs)(n.Fragment,{children:[(null==m?void 0:m.currency_position)==="Before"&&Number(r)>-1&&(0,n.jsxs)(n.Fragment,{children:[s&&(0,n.jsx)("span",{style:(null==m?void 0:m.country_code)==="SW"||(null==m?void 0:m.country_code)==="CH"?{paddingRight:"10px"}:{paddingRight:"0px"},className:`${l??t}`,...(0,o.$h_)(`${u||""}-${d||""}`),children:null==_?void 0:_.currency_symbol}),(0,n.jsx)("span",{...(0,o.$h_)(`${c||""}-${d||""}`),className:`${t}`,children:v}),p&&(0,n.jsxs)("span",{children:["/",p]})]}),(null==m?void 0:m.currency_position)!=="Before"&&Number(r)>-1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:`${t}`,children:v}),s&&(0,n.jsx)("span",{className:`${l}`,children:null==_?void 0:_.currency_symbol}),p&&(0,n.jsxs)("span",{children:["/",p]})]})]})}},61195:e=>{e.exports={deleteModal:"DeleteModal_deleteModal__jZhDl",header:"DeleteModal_header__BVPiK",content:"DeleteModal_content__eQY6T",heading:"DeleteModal_heading__XIqD7",deleteText:"DeleteModal_deleteText__EkTGl",button:"DeleteModal_button__G4fHy",link:"DeleteModal_link__VnxWs"}},69771:e=>
1{e.exports={plandetailsCard:"PlanDetailsCard_plandetailsCard__dPibz",header:"PlanDetailsCard_header__3mBmQ",top_container:"PlanDetailsCard_top_container__djDgn",top_content:"PlanDetailsCard_top_content__3n_kK",leftContent:"PlanDetailsCard_leftContent__X6Z0J",productPrice_Container:"PlanDetailsCard_productPrice_Container__VeNmt",productPrice:"PlanDetailsCard_productPrice__QZdpz",productValidity:"PlanDetailsCard_productValidity__uR9GT",rightContent:"PlanDetailsCard_rightContent__EBafI",productName:"PlanDetailsCard_productName__25LOh",plan:"PlanDetailsCard_plan__LW4xM",content:"PlanDetailsCard_content__KXe1n",planInfo:"PlanDetailsCard_planInfo__ymJIo",planInfoWrapper:"PlanDetailsCard_planInfoWrapper__q5m2y",featureTextLongTerm:"PlanDetailsCard_featureTextLongTerm__Zkmv0",featureTextLongTerm16:"PlanDetailsCard_featureTextLongTerm16__saqTQ",featureTextNormal:"PlanDetailsCard_featureTextNormal__vbSIC",things_need_to_know:"PlanDetailsCard_things_need_to_know__TBiQ6",things_need_to_know_heading:"PlanDetailsCard_things_need_to_know_heading__CGxA_",things_need_to_know_content:"PlanDetailsCard_things_need_to_know_content__25f0m",contactDetails:"PlanDetailsCard_contactDetails__5_QJv",plantcSubText:"PlanDetailsCard_plantcSubText__xYlEq",contactDetailsContent:"PlanDetailsCard_contactDetailsContent__ZzrwS",customerType:"PlanDetailsCard_customerType__1_zaU",country_heading:"PlanDetailsCard_country_heading__KRjXh",country_heading_text:"PlanDetailsCard_country_heading_text__uk2jL",btnStyle:"PlanDetailsCard_btnStyle__svCbW",btnText:"PlanDetailsCard_btnText__ymSLQ"}},70490:(e,l,t)=>{"use strict";t.d(l,{A:()=>g});var n=t(37876),i=t(14232),a=t(84733),o=t(5067),r=t(9129),s=t(55134),d=t(54587),c=t.n(d),u=t(16455),p=t(23435),_=t.n(p),m=t(41244),h=t(35814),x=t(25601),v=t(16562),A=t(4833);function y(e){let{children:l,value:t,index:i,...r}=e;return(0,n.jsx)("div",{role:"tabpanel",hidden:t!==i,id:`simple-tabpanel-${i}`,"aria-labelledby":`simple-tab-${i}`,...r,children:t===i&&(0,n.jsx)(a.A,{children:(0,n.jsx)(o.A,{className:_().listText,textAlign:"center",children:l})})})}let g=e=>{var l,t,o,d,p,g;let{onClose:f,activeTab:b=0,compatibilityData:j}=e,[C,k]=(0,i.useState)(b),[w,I]=i.useState(0),N=null==j||null==(t=j.field_heading)||null==(l=t[0])?void 0:l.processed,S=null==j||null==(d=j.field_second_heading)||null==(o=d[0])?void 0:o.processed,T=null==j||null==(g=j.field_content)||null==(p=g[0])?void 0:p.processed,D=null==j?void 0:j.children;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(r.Ay,{p:4,container:!0,className:_().simDetails,children:[(0,n.jsx)(r.Ay,{item:!0,sm:12,className:_().header,children:(0,n.jsx)(s.A,{onClick:f,...(0,A.$h_)("sim-details-close-button-n"),children:(0,n.jsx)(c(),{...(0,A.$h_)("sim-modal-close-icon-n"),src:u.z.popup_close,alt:"closeCicle"})})}),(0,n.jsxs)(r.Ay,{container:!0,className:`${_().content} ${1===C&&_().simInfo}`,children:[(0,n.jsxs)(r.Ay,{className:_().buttonWrapper,item:!0,sm:12,textAlign:"center",children:[(0,n.jsx)(m.A,{...(0,A.$h_)("esim-intro-tab-n"),onClick:()=>k(0),className:`${_().button} ${0===C?_().active:""}`,children:(0,n.jsx)(v.A,{content:N})}),(0,n.jsx)(m.A,{...(0,A.$h_)("compatibility-tab-n"),onClick:()=>k(1),sx:{p:0},className:`${_().button} ${1===C?_().active:""}`,children:(0,n.jsx)(v.A,{content:S})})]}),(0,n.jsx)(r.Ay,{item:!0,sx:{width:"100%",height:"318px"},children:0===C?(0,n.jsx)(v.A,{content:T}):(0,n.jsxs)(a.A,{sx:{width:"100%"},children:[(0,n.jsx)(a.A,{sx:{width:"100%",margin:"26px 0px"},children:(0,n.jsx)(h.A,{value:w,onChange:(e,l)=>{I(l)},className:_().tabs,variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",children:null==D?void 0:D.map((e,l)=>{var t,i;return(0,n.jsx)(x.A,{label:(0,n.jsx)(v.A,{content:null==(i=e.field_tab)||null==(t=i[0])?void 0:t.processed}),...function(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}(l)})})})}),null==D?void 0:D.map((e,l)=>{var t,i;return(0,n.jsx)(y,{value:w,index:l,children:(0,n.jsx)(a.A,{className:_().compatibilityContent,children:(0,n.jsx)(v.A,{content:null==(i=e.field_device_list)||null==(t=i[0])?void 0:t.processed})})},l)})]})})]})]})})}},72294:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var n=t(37876),i=t(54587),a=t.n(i),o=t(34260),r=t(16455),s=t(10791),d=t.n(s);t(14232);let c=e=>{let{isFamilyPlan:l,is_primary:t,index:i,hideImage:s=!0}=e;return(0,n.jsxs)(n.Fragment,{children:[" ",l?": "+o.A.line+" "+(i+1):"",l&&t&&(0,n.jsxs)("span",{className:d().primaryText,children:[(0,n.jsxs)("span",{children:[" (",o.A.primary,") "]}),s&&(0,n.jsx)(a(),{src:r.z.familyPlanSymbol,className:d().checkoutPrimaryIcon,alt:"primary"})]})]})}},73231:(e,l,t)=>{"use strict";
1Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=t(473)},75488:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var n=t(37876);t(14232);var i=t(99810),a=t.n(i),o=t(16455),r=t(54587),s=t.n(r),d=t(26216);let c=()=>{let e=(0,d.A)();return(0,n.jsxs)("div",{className:a().loader_wrapper,children:[(0,n.jsx)("div",{className:"spinner-border text-primary",role:"status"}),(0,n.jsx)(s(),{height:e?60:110,width:e?60:110,src:null===o.z||void 0===o.z?void 0:o.z.LycaLoader,alt:"loader"})]})}},78632:e=>{e.exports={charges_section:"CheckoutSummary_charges_section__ONpfp",charges_content:"CheckoutSummary_charges_content__T7EJ2",charges_heading:"CheckoutSummary_charges_heading___4Sfc",charges_rate:"CheckoutSummary_charges_rate__m9lSl",other_charges:"CheckoutSummary_other_charges__hSA4l",other_charges_text:"CheckoutSummary_other_charges_text__6usE3",price:"CheckoutSummary_price__PBkN_",other_charges_text_sm:"CheckoutSummary_other_charges_text_sm__4Ij5X",charges_heading_sm:"CheckoutSummary_charges_heading_sm__lp_Ip",price_sm:"CheckoutSummary_price_sm__VrvGY",charges_rate_sm:"CheckoutSummary_charges_rate_sm__z_f1f"}},85185:(e,l,t)=>{"use strict";t.d(l,{A:()=>v});var n=t(37876);t(14232);var i=t(84733),a=t(9129),o=t(55134),r=t(70496),s=t(54587),d=t.n(s),c=t(16455),u=t(36291),p=t.n(u),_=t(34260),m=t(16562),h=t(80169),x=t(4833);let v=e=>{var l,t,s,u,v,A,y,g,f,b;let{onClose:j,data:C,isSwap:k,item:w,swap:I,fromDashBoard:N,fromLoginScreen:S}=e,T=[];!k&&(null==C?void 0:C.field_content)?T=null==C?void 0:C.field_content:!k&&(null==C?void 0:C.field_text)&&(T=(null==C?void 0:C.field_text)??(null==C?void 0:C.field_content));let D=()=>{I&&I(),j()},{t:$}=(0,h.Bd)();return(0,n.jsxs)(i.A,{className:`${N?p().t_and_c_container_dashboard:S?p().t_and_c_container_login:p().t_and_c_container} ${k?p().isSwap:""}`,children:[(0,n.jsx)(a.Ay,{item:!0,sm:12,className:p().header,children:(0,n.jsx)(o.A,{onClick:j,disableRipple:!0,children:(0,n.jsx)(d(),{src:c.z.popup_close,alt:"closeCicle"})})}),(0,n.jsx)(a.Ay,{children:k?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.A,{className:p().swap_main_container,children:[(0,n.jsx)(i.A,{className:p().title,...(0,x.$h_)("sure-text"),children:_.A.areYouSure}),(0,n.jsx)(i.A,{className:p().text,...(0,x.$h_)("swap-Sims-Message"),children:_.A.swapSimsMessage}),(0,n.jsxs)(i.A,{className:p().sub_container,children:[(0,n.jsx)(i.A,{className:p().text,...(0,x.$h_)("sim-confirmation"),children:_.A.simConfirmation}),(0,n.jsx)(i.A,{...(0,x.$h_)("all-e-sim"),className:p().btn,onClick:(null==w||null==(l=w.cartItem)?void 0:l.physical_sim)?D:j,children:_.A.allESim}),(0,n.jsx)(i.A,{...(0,x.$h_)("all-physical-sim"),className:p().btn,onClick:(null==w||null==(t=w.cartItem)?void 0:t.physical_sim)?j:D,children:_.A.allPhysicalSim})]})]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:N?p().dashBoardTitle:p().title,...(0,x.$h_)("t&c-field-heading"),children:(null==C||null==(u=C.field_heading)||null==(s=u[0])?void 0:s.format)==="basic_html"||(null==C||null==(A=C.field_heading)||null==(v=A[0])?void 0:v.format)==="full_html1"?(0,n.jsx)(m.A,{content:null==C||null==(y=C.field_heading[0])?void 0:y.processed}):null==C||null==(f=C.field_heading)||null==(g=f[0])?void 0:g.value}),(0,n.jsx)("p",{className:p().content,...(0,x.$h_)("t&c-field-content"),children:null==T?void 0:T.map((e,l)=>"basic_html"===e.format||"full_html1"===e.format?(0,n.jsx)(m.A,{content:e.processed},l):(0,n.jsx)("p",{children:e.value},l))})]})}),N&&(0,n.jsx)(r.A,{...(0,x.$h_)("dash-cta-btn"),onClick:j,className:p().returnBackToBtn,variant:"text",children:(0,n.jsx)(m.A,{content:null==C||null==(b=C.field_cta_button_text[0])?void 0:b.processed})})]})}},87468:(e,l,t)=>{"use strict";t.d(l,{A:()=>r});var n=t(37876),i=t(61447);t(14232);var a=t(90513),o=t.n(a);let r=e=>{let{open:l,onClose:t,className:a,children:r}=e;return(0,n.jsx)(i.Ay,{anchor:"bottom",open:l,onClose:t,className:a||o().success_drawer,hideBackdrop:!0,ModalProps:{keepMounted:!1,style:{backgroundColor:"rgba(0, 0, 0, 0.4)"}},children:r})}},90181:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});let n=t(62435).A},90513:e=>{e.exports={success_drawer:"CustomDrawer_success_drawer__RCuA9"}},93382:(e,l,t)=>{"use strict";t.d(l,{A:()=>p});var n=t(44501),i=t(40670),a=t(61637),o=t(19429),r=t(60255),s=t(43903);let d=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],c=["component","slots","slotProps"],u=["component"];function p(e,l){let{className:t,elementType:p,ownerState:_,externalForwardedProps:m,getSlotOwnerState:h,internalForwardedProps:x}=l,v=(0,i.A)(l,d),{component:A,slots:y={[e]:void 0},slotProps:g={[e]:void 0}}=m,f=(0,i.A)(m,c),b=y[e]||p,j=(0,r.A)(g[e],_),C=(0,s.A)((0,n.A)({className:t},v,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:j})),{props:{component:k},internalRef:w}=C,I=(0,i.A)(C.props,u),N=(0,a.A)(w,null==j?void 0:j.ref,l.ref),S=h?h(I):{},T=(0,n.A)({},_,S),D="root"===e?k||A:k,$=(0,o.A)(b,(0,n.A)({},"root"===e&&!A&&!y[e]&&x,"root"!==e&&!y[e]&&x,I,D&&{as:D},{ref:N}),T);
1return Object.keys(S).forEach(e=>{delete $[e]}),[b,$]}},97565:e=>{e.exports={header:"OtpModal_header__KHBSW",main_section:"OtpModal_main_section__AVXLg",renew_button:"OtpModal_renew_button__be4Ri",downloadText:"OtpModal_downloadText__6dkEZ",title:"OtpModal_title__cPwmn",paragraph_text:"OtpModal_paragraph_text__LH6Qd",otp_number:"OtpModal_otp_number__k_CAh",paragraph_text_recieved:"OtpModal_paragraph_text_recieved__5HQ32",resend_button:"OtpModal_resend_button__ZKOcm",otp_button:"OtpModal_otp_button___68iF",success_drawer:"OtpModal_success_drawer__0_v6x"}},99810:e=>{e.exports={loader_wrapper:"style_loader_wrapper__OuKQE",mainLoader:"style_mainLoader__A5gjS"}}},e=>{e.O(0,[31793,93781,77028,34500,93998,93012,18028,84930,66561,35492,41214,90636,46593,38792],()=>e(e.s=40863)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.