PageSourceSearch

https://www.lycamobile.co.uk/_next/static/chunks/91143-8c0c272226cda796.js

js lycamobile.co.uk collected 2026-09-24 11:17:44 UTC 146,662 bytes, 4 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43040,91143],{3769:e=>{e.exports={progressHeader_container:"ProgressHeader_progressHeader_container__dU2Ud",progressHeader_logo_container:"ProgressHeader_progressHeader_logo_container__E_APp",brand_logo:"ProgressHeader_brand_logo__8J3e3",progress_header_title:"ProgressHeader_progress_header_title__ApxZP",progress_bar_container:"ProgressHeader_progress_bar_container__Dsl8c",progress_bar:"ProgressHeader_progress_bar__USYcp"}},15608:e=>{e.exports={failure_icon:"RedeemSucessFailure_failure_icon__gTjR_",failure_heading:"RedeemSucessFailure_failure_heading__c4jNu",failure_heading_1:"RedeemSucessFailure_failure_heading_1__9fbEZ",failure_subheading:"RedeemSucessFailure_failure_subheading__U8tVw",try_btn:"RedeemSucessFailure_try_btn__on7mR",close_btn:"RedeemSucessFailure_close_btn__Y50sa",success_icon:"RedeemSucessFailure_success_icon__ustZJ",success_subheading:"RedeemSucessFailure_success_subheading__mMZuC",success_subText1:"RedeemSucessFailure_success_subText1__E91Ae",success_subText2:"RedeemSucessFailure_success_subText2__Lu06s",current_date:"RedeemSucessFailure_current_date__za_Hf"}},16134:e=>{e.exports={user_container:"ValidateStatus_user_container__CFyvW",status_container:"ValidateStatus_status_container___e4ns",optionText:"ValidateStatus_optionText__KpBeT",selectedOptionText:"ValidateStatus_selectedOptionText__to0Az",selectedOption:"ValidateStatus_selectedOption__X_4Xv",changeDetails:"ValidateStatus_changeDetails__g8NNE",changeText:"ValidateStatus_changeText__6pn1Q",optionBox:"ValidateStatus_optionBox__lugeI",port_heading:"ValidateStatus_port_heading__zU0lL",transfer:"ValidateStatus_transfer__Np7vA",switch_container:"ValidateStatus_switch_container__GVK2w",switch_card_container:"ValidateStatus_switch_card_container__uWKK7",field_info:"ValidateStatus_field_info__d6QUk",btn_container:"ValidateStatus_btn_container__eAOQe",go_back:"ValidateStatus_go_back__Ylo5E",warning_container:"ValidateStatus_warning_container__nSdP5",warning_card_container:"ValidateStatus_warning_card_container__hrCpm",warning_heading:"ValidateStatus_warning_heading__aZJBj",warning_msg:"ValidateStatus_warning_msg__X6NPI",things_to_know:"ValidateStatus_things_to_know__ICh7q",dottedline:"ValidateStatus_dottedline__DUGuX",prefNumberContainer:"ValidateStatus_prefNumberContainer__jcU8s",prefNumberText:"ValidateStatus_prefNumberText__zmki5",prefNumberDescText:"ValidateStatus_prefNumberDescText__zWEvV",brindOldLycaFormTitle:"ValidateStatus_brindOldLycaFormTitle__3KToi",portInAvailability:"ValidateStatus_portInAvailability__AryoI"}},19446:e=>{e.exports={RegisterBy:"RegisterBy_RegisterBy__CLkaj",RegisterByContainer:"RegisterBy_RegisterByContainer__Wv1et",SectionHeading:"RegisterBy_SectionHeading__wuPee",SectionMsg:"RegisterBy_SectionMsg__KK9t_",SectionInfo:"RegisterBy_SectionInfo__c6Sav"}},23614:(e,l,n)=>{"use strict";n.d(l,{A:()=>a});var t=n(14232),i=n(81279);let a=()=>{let[e,l]=(0,t.useState)(null),[n,a]=(0,t.useState)(null);return(0,t.useEffect)(()=>{{var e;let n=window,t=null==n||null==(e=n.location)?void 0:e.host;l(t?(0,i.A)(t):null),a(n)}},[]),{mainURL:e,baseWindow:n}}},25359:e=>{e.exports={FieldContainer:"PasswordSetup_FieldContainer__xpT3r",alert:"PasswordSetup_alert__Nx2RO"}},28438:e=>{e.exports={fieldContainer:"Review_fieldContainer__ZX8Y4",complycubeReviewContainer:"Review_complycubeReviewContainer__UupLW",personalDetailsContainer:"Review_personalDetailsContainer__uss7j",personalDetailsTitle:"Review_personalDetailsTitle__4slbh",currentDetails:"Review_currentDetails__n9GsR",detailsContainer:"Review_detailsContainer__KmR2U",iconContainer:"Review_iconContainer__vRxZM",displayContainer:"Review_displayContainer__QFJWl",title:"Review_title__Rza_J",value:"Review_value__SDgM8",documentDetailsContainer:"Review_documentDetailsContainer__LK__s",documentDetailsTitle:"Review_documentDetailsTitle__2vDGo",actionsContainer:"Review_actionsContainer__n0cwk",primaryContainer:"Review_primaryContainer__2S9wx",downloadButtonContainer:"Review_downloadButtonContainer__e3_EX",redoButton:"Review_redoButton__Ec5Ee"}},32071:e=>{e.exports={FieldContainer:"SetupAutoRenewal_FieldContainer__J8q_L",SetupAutoRenewTitle:"SetupAutoRenewal_SetupAutoRenewTitle__xU3K_",AutoRenewConfirmTitle:"SetupAutoRenewal_AutoRenewConfirmTitle__wgTZF",SetupAutoRenewInfo:"SetupAutoRenewal_SetupAutoRenewInfo__t_PU4",AutoRenewConfirmImg
1:"SetupAutoRenewal_AutoRenewConfirmImg__vhJZy",FieldHeader:"SetupAutoRenewal_FieldHeader__21LPD",FieldSubHeader:"SetupAutoRenewal_FieldSubHeader__2aJpO",SetupAutoRenewal:"SetupAutoRenewal_SetupAutoRenewal__fbH1W",SetupAutoRenewBtn:"SetupAutoRenewal_SetupAutoRenewBtn__vZQ57",SetupAutoRenewLater:"SetupAutoRenewal_SetupAutoRenewLater__9ml5e",textHeadPayBy:"SetupAutoRenewal_textHeadPayBy__5z1BF",paymentIcons:"SetupAutoRenewal_paymentIcons__iT9HC",ConfirmAutoRenewal:"SetupAutoRenewal_ConfirmAutoRenewal__9lWUy",BringOldnumBtn:"SetupAutoRenewal_BringOldnumBtn__Q3oc8",takeMeDashboardbtn:"SetupAutoRenewal_takeMeDashboardbtn__5ABHG"}},37304:e=>{e.exports={dynamictable:"style_dynamictable__8H7Jj"}},43040:(e,l,n)=>{"use strict";n.r(l),n.d(l,{default:()=>d});var t=n(37876),i=n(84733);n(14232);var a=n(16562),s=n(79047),o=n.n(s),r=n(4833);let d=e=>{var l,n;let{data:s}=e;return(0,t.jsx)(t.Fragment,{children:(null==s?void 0:s.field_text)&&(0,t.jsx)(i.A,{className:o().dashboardfooter_container,...(0,r.$h_)("dashboard-footer"),children:(0,t.jsx)(a.A,{content:null==s||null==(n=s.field_text)||null==(l=n[0])?void 0:l.processed})})})}},48656:e=>{e.exports={FieldContainer:"RegistrationDetails_FieldContainer__p_keI",FieldHeader:"RegistrationDetails_FieldHeader__8CQXa",regEligibilityErrSec:"RegistrationDetails_regEligibilityErrSec__v39Er",CustomError:"RegistrationDetails_CustomError__duHFH",hereLink:"RegistrationDetails_hereLink__UcVmu",FieldSubHeader:"RegistrationDetails_FieldSubHeader__lPd67",infoChildSimIcon:"RegistrationDetails_infoChildSimIcon__ttmyY",BtnContainer:"RegistrationDetails_BtnContainer__9_b92",GoBack:"RegistrationDetails_GoBack__EuVZB",OrderNew:"RegistrationDetails_OrderNew__dj5e3",AddSim:"RegistrationDetails_AddSim__IsmO8",DeleteBox:"RegistrationDetails_DeleteBox__d19ZT",dashedDivider:"RegistrationDetails_dashedDivider__8T_R4",RegistrationAttempt:"RegistrationDetails_RegistrationAttempt__TC2Ej",Container:"RegistrationDetails_Container__UbBz7",content:"RegistrationDetails_content__LZ_Kn",RMFieldContainer:"RegistrationDetails_RMFieldContainer___NScs",RMContainer:"RegistrationDetails_RMContainer__YV1BE",OldNumber:"RegistrationDetails_OldNumber__umPdF",RMContainerHeader:"RegistrationDetails_RMContainerHeader__0JuOa",RMDetailsList:"RegistrationDetails_RMDetailsList__X1CEH",FullWidthAccordion:"RegistrationDetails_FullWidthAccordion__dc_BX","node--accordion":"RegistrationDetails_node--accordion__TWa5t"}},58998:(e,l,n)=>{"use strict";n.d(l,{A:()=>o});var t=n(37876);n(14232);var i=n(31777),a=n(80063),s=n(4833);let o=e=>{let{currencyStyle:l,amountStyle:n,amountValue:o,isCurrency:r=!0,planId:d,amtText:c,currText:u,monthlyPricingUnit:m}=e,_=(0,i.d4)(a.Bn),p=(0,i.d4)(a.Xk),h=Number(o),v=Number((()=>{let e=h.toString();return e.includes(".")?e.split(".")[1].length:0})()),g=(((null==p?void 0:p.country_code)==="DK"||(null==p?void 0:p.country_code)==="NO"||(null==p?void 0:p.country_code)==="SE")&&h%1!=0?1===v?h.toFixed(2):h.toFixed(v):h.toFixed(null==p?void 0:p.decimal_places)).replace(".",(null==_?void 0:_.decimal_separator)||".");return(0,t.jsxs)(t.Fragment,{children:[(null==p?void 0:p.currency_position)==="Before"&&Number(o)>-1&&(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)("span",{style:(null==p?void 0:p.country_code)==="SW"||(null==p?void 0:p.country_code)==="CH"?{paddingRight:"10px"}:{paddingRight:"0px"},className:`${l??n}`,...(0,s.$h_)(`${u||""}-${d||""}`),children:null==_?void 0:_.currency_symbol}),(0,t.jsx)("span",{...(0,s.$h_)(`${c||""}-${d||""}`),className:`${n}`,children:g}),m&&(0,t.jsxs)("span",{children:["/",m]})]}),(null==p?void 0:p.currency_position)!=="Before"&&Number(o)>-1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:`${n}`,children:g}),r&&(0,t.jsx)("span",{className:`${l}`,children:null==_?void 0:_.currency_symbol}),m&&(0,t.jsxs)("span",{children:["/",m]})]})]})}},62541:(e,l,n)=>{"use strict";n.d(l,{A:()=>r});var t=n(37876),i=n(36905);n(14232);var a=n(23614),s=n(31777),o=n(80063);function r(e){var l;let{children:n}=e,r=(0,s.d4)(o.Xk),d=null==r||null==(l=r.simple_checkout)?void 0:l.verification_id,{mainURL:c}=(0,a.A)();return(0,t.jsx)(t.Fragment,{children:c&&(0,t.jsx)(i.G3,{reCaptchaKey:(null==d?void 0:d.trim())||"",language:(null==c?void 0:c.accept_language)??"en",children:n})})}},64386:e=>{e.exports={FieldContainer:"IDDetails_FieldContainer__5Rc2r",FieldHeader:"IDDetails_FieldHeader__5RhsO",FieldSubHeader:"IDDetails_FieldSubHeader___567B",radio_label:"IDDetails_radio_label__zNrC2"}},65721:e=>{e.exports={FieldContainer:"IDDetailsGB_FieldContainer__UMFA3",FieldHeader:"IDDetailsGB_FieldHeader__hlyKv",FieldSubHeader:"IDDetailsGB_FieldSubHeader__HV_wk",lyca_action:"IDDetailsGB_lyca_action__qggA2",field_name:"IDDetailsGB_field_name__toz0Z",lyca_action_item:"IDDetailsGB_lyca_action_item__5_MIJ",heading_name_lyca:"IDDetailsGB_heading_name_lyca__04HCV",Order
1New:"IDDetailsGB_OrderNew__xePTx",CustomerAddress:"IDDetailsGB_CustomerAddress__nCv2H",BtnContainer:"IDDetailsGB_BtnContainer__9QWW7",GoBack:"IDDetailsGB_GoBack__v_eMG",BtnOutLine:"IDDetailsGB_BtnOutLine__r9d59",ChangeBtn:"IDDetailsGB_ChangeBtn__6lm86",AddressFinder:"IDDetailsGB_AddressFinder__UTsTR"}},70131:e=>{e.exports={PageContainer:"Registration_PageContainer__FqRmf",RegistrationContainer:"Registration_RegistrationContainer__D8nvA",HeaderContainer:"Registration_HeaderContainer__vQpa9",Heading:"Registration_Heading__X6lat",Para:"Registration_Para__LtYta",FieldContainer:"Registration_FieldContainer__zDV5K",FieldHeader:"Registration_FieldHeader__maoQW"}},70191:e=>{e.exports={reedem_main_container:"RedeemVoucher_reedem_main_container__Z5kwU",failure_container:"RedeemVoucher_failure_container__rGTKm",success_container:"RedeemVoucher_success_container__C6rlT",redeem_code:"RedeemVoucher_redeem_code__ZAHiu",back_icon:"RedeemVoucher_back_icon__kWhoW",redeem_code_text:"RedeemVoucher_redeem_code_text__yty6L",redeem_text:"RedeemVoucher_redeem_text__WzFWQ",left_voucher_container:"RedeemVoucher_left_voucher_container__rhJTJ",registration_voucher_box:"RedeemVoucher_registration_voucher_box__tm1U_",scanner_main_container:"RedeemVoucher_scanner_main_container__krTQm",card_no:"RedeemVoucher_card_no__pseVo",left_voucher_container1:"RedeemVoucher_left_voucher_container1__lbcVu",scanner:"RedeemVoucher_scanner__dx7b1",voucher_container:"RedeemVoucher_voucher_container__b17H_",voucher_content:"RedeemVoucher_voucher_content__gEV_O",creditcardicon:"RedeemVoucher_creditcardicon__PclRJ",voucher_text:"RedeemVoucher_voucher_text__4aaHN",Input_text:"RedeemVoucher_Input_text__eFoKz",input:"RedeemVoucher_input__aEcUZ",errorPassword:"RedeemVoucher_errorPassword__9dEpQ",errormsg:"RedeemVoucher_errormsg__ns2XA",toggle:"RedeemVoucher_toggle__VUjlK",terms_condition:"RedeemVoucher_terms_condition__WgSaH",terms:"RedeemVoucher_terms__aBg9P",confirm_btn:"RedeemVoucher_confirm_btn__smjgs",bolton_drawer:"RedeemVoucher_bolton_drawer__wIsPk"}},72524:(e,l,n)=>{"use strict";n.d(l,{A:()=>B});var t=n(37876),i=n(6995),a=n(84733),s=n(5067),o=n(72311),r=n(61447),d=n(16455),c=n(54587),u=n.n(c),m=n(70191),_=n.n(m),p=n(34260),h=n(25070),v=n(14232),g=n(15608),x=n.n(g),A=n(41244),y=n(56557),f=n.n(y),j=n(4833),b=n(31777),C=n(80063),w=n(58998);let N=e=>{let{status:l,voucherErrorMessage:n,setVoucherStatus:o,mobileNumber:r,voucherResponse:c,handleClose:m,setFormattedVoucherCode:_,setVoucherCode:h,setAcceptTerms:v,fromTopupRegistration:g=!1}=e,y=(0,i.A)("(max-width:768px)");(0,b.d4)(C.Bn);let N=parseFloat(null==c?void 0:c.new_balance)||0,S=parseFloat(null==c?void 0:c.previous_balance)||0;return(0,t.jsxs)(t.Fragment,{children:["fail"===l&&(0,t.jsxs)(a.A,{className:x().failure_container,...(0,j.$h_)("input-box"),children:[(0,t.jsx)(a.A,{children:(0,t.jsx)(u(),{src:d.z.check_failure,alt:"check failure",className:x().failure_icon,...(0,j.$h_)("failure-icon")})}),(0,t.jsx)(s.A,{className:x().failure_heading,...(0,j.$h_)("failure-heading"),children:p.A.wentWrong}),(0,t.jsx)(s.A,{className:x().failure_subheading,...(0,j.$h_)("failure-subheading"),children:p.A.couldnotapply}),(0,t.jsx)(a.A,{children:(0,t.jsx)(A.A,{onClick:()=>{o(""),_(""),h(""),v(!1)},className:x().try_btn,...(0,j.$h_)("try-btn"),children:p.A.tryAgainerror})})]}),"success"===l&&(0,t.jsxs)(a.A,{children:[(0,t.jsx)(a.A,{children:(0,t.jsx)(u(),{src:d.z.green_tick_voucher,alt:"check failure",height:92,width:92,className:x().success_icon,...(0,j.$h_)("success-icon")})}),!y&&(0,t.jsx)(s.A,{className:x().failure_heading,...(0,j.$h_)("failure-heading"),children:p.A.voucherSuccessMessage}),y&&(0,t.jsx)(s.A,{className:x().failure_heading_1,...(0,j.$h_)("failure-heading-1"),children:p.A.allDone}),(0,t.jsxs)(a.A,{className:x().success_subheading,...(0,j.$h_)("success-subheading"),children:[(0,t.jsxs)(a.A,{children:[(0,t.jsx)(s.A,{className:x().success_subText1,...(0,j.$h_)("success-subText1"),children:p.A.voucherAmount}),(0,t.jsx)(s.A,{className:x().success_subText2,...(0,j.$h_)("success-subText2"),children:(0,t.jsx)(w.A,{amountValue:N-S})})]}),(0,t.jsxs)(a.A,{children:[(0,t.jsx)(s.A,{className:x().success_subText1,...(0,j.$h_)("success-subText1"),children:p.A.newCreditBalance}),(0,t.jsx)(s.A,{className:x().success_subText2,...(0,j.$h_)("success-subText2"),children:(0,t.jsx)(w.A,{amountValue:N})})]}),(0,t.jsxs)(a.A,{children:[(0,t.jsx)(s.A,{className:x().success_subText1,...(0,j.$h_)("success-subText1"),sx:{paddingTop:y?"9px":"unset"}
1,children:p.A.Mobnumbers}),(0,t.jsx)(s.A,{className:x().success_subText2,...(0,j.$h_)("success-subText2"),children:r})]})]}),(0,t.jsxs)(s.A,{className:x().current_date,...(0,j.$h_)("current-date"),children:[p.A.dateAndTime,": ",f()().format("DD MMM YYYY hh:mm:ss")]}),!g&&(0,t.jsx)(a.A,{children:(0,t.jsx)(A.A,{onClick:()=>m(),className:x().close_btn,...(0,j.$h_)("try-btn"),children:p.A.close})})]})]})};var S=n(13201),k=n(1127),D=n(75488),R=n(81279),F=n(39870),E=n(85185),$=n(86618),T=n(67330);let B=e=>{var l,n,c,m,g,x;let{setIsCredit:y,mobileNumber:f,vouvherImage:C,iccidNumber:w,imsiNumber:B,hideBackIcon:I=!1,fromTopupRegistration:P=!1,onClose:M,onVoucherSuccess:H}=e,O=null;O=window;let L=(0,b.wA)(),V=(0,b.d4)(T.Jj),K=null==V||null==(l=V.cms_data)?void 0:l.filter(e=>(null==e?void 0:e.type)==="node--sim_confirmation_static_title_an").find(e=>{var l;return(null==e||null==(l=e.field_popup_type)?void 0:l[0])==="voucher-terms-and-conditions"}),U=(null==O||null==(n=O.location)?void 0:n.host)&&(0,R.A)(null==O||null==(c=O.location)?void 0:c.host),[G,z]=(0,v.useState)(!1),[Y,W]=(0,v.useState)(""),[q,Z]=(0,v.useState)(!1),[X,J]=(0,v.useState)(),[Q,ee]=(0,v.useState)(""),[el,en]=(0,v.useState)(""),[et,ei]=(0,v.useState)(""),[ea,es]=(0,v.useState)(!1),eo=(0,i.A)("(max-width:1050px)"),er=eo?(null==el?void 0:el.length)>=11?"140px":"49px":(null==el?void 0:el.length)>=11?"140px":"76px",ed=eo?"success"===Y?"106px":"96px":"106px",ec=eo&&"success"===Y?"57px":"51px",eu=async()=>{Z(!0);let e=(U.country_prefix+(0,j.KeO)())??"";try{let l={...P?{imsi:B??""}:{msisdn:e},voucher_pin:el,app_version_no:"adq",device_id:"abc",device_details:"acbc"},n=P?S.t.voucherCodeRegistration:S.t.voucherCode,{data:t,status:i}=await k.A.post(n,l);200===i&&(Z(!1),J(t),W("success"),null==H||H(),P||e_())}catch(e){W("fail"),ee(e.response.data.message),Z(!1)}},em=()=>{switch(Y){case"":case"success":y(!0),ei(""),en(""),z(!1),null==M||M();break;case"fail":W(""),ei(""),en(""),z(!1),null==M||M()}},e_=async()=>{let e=(0,j.W6x)();if(e)try{let l=await (0,$.Yx)(e);(200===l.status||204===l.status)&&L((0,T.p)(l.data))}catch(e){}};return(0,t.jsxs)(a.A,{className:_().reedem_main_container,style:{paddingBottom:"fail"==Y?ed:"success"==Y?ec:er},...(0,j.$h_)("reedem-main-container"),children:[q&&(0,t.jsx)(D.A,{}),(0,t.jsxs)(a.A,{className:_().redeem_code,...(0,j.$h_)("reedem-code"),children:[!I&&(0,t.jsx)(a.A,{className:_().redeem_code_text,onClick:em,...(0,j.$h_)("redeem-code-text"),children:(0,t.jsx)(u(),{src:d.z.redeem_back_icon,alt:"redeem_back_icon",width:16,height:12,className:_().back_icon,...(0,j.$h_)("back-icon")})}),(0,t.jsx)(s.A,{className:_().redeem_text,...(0,j.$h_)("redeem_text"),children:p.A.redeemmycode})]}),""===Y&&(0,t.jsxs)(a.A,{className:_().left_voucher_container+(P?` ${_().registration_voucher_box}`:""),...(0,j.$h_)("left-voucher-container"),children:[(0,t.jsxs)(a.A,{className:_().scanner_main_container,children:[(0,t.jsx)(u(),{src:(null==C||null==(x=C.children)||null==(g=x[0])||null==(m
1=g.uri[0])?void 0:m.url)||d.z.voucherScanner,width:300,height:150,alt:"voucherImage",className:_().scanner,...(0,j.$h_)("scanner")}),(0,t.jsx)(a.A,{className:_().card_no,children:(null==el?void 0:el.length)>=11&&(0,t.jsx)("h1",{children:(0,j.tLx)(el)})})]}),(0,t.jsxs)(a.A,{className:_().voucher_container,...(0,j.$h_)("voucher-container"),children:[(0,t.jsxs)(a.A,{className:_().voucher_content,...(0,j.$h_)("oucher-content"),children:[(0,t.jsx)(u(),{src:d.z.creditcardicon,alt:"creditcard",className:_().creditcardicon,...(0,j.$h_)("creditcard-icon")}),(0,t.jsx)(s.A,{className:_().voucher_text,...(0,j.$h_)("voucher-text"),children:p.A.voucherCode})]}),(0,t.jsxs)(a.A,{className:_().Input_text,...(0,j.$h_)("Input-text"),children:[(0,t.jsx)(a.A,{sx:{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px",boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.15)"},children:(0,t.jsx)(o.A,{placeholder:p.A.enterVoucherCode,className:_().input,autoFocus:!1,value:et,onChange:e=>{let l=e.target.value.replace(/\D/g,""),n="";for(let e=0;e<(null==l?void 0:l.length);e++)(4===e||7===e||10===e)&&(n+=" "),n+=l[e];14>=+(null==l?void 0:l.length)&&(ei(n),en(l))},...(0,j.$h_)("input-box")})}),(null==el?void 0:el.length)>=11&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.A,{className:_().toggle,...(0,j.$h_)("toggle"),children:[(0,t.jsx)(h.A,{checked:G,onChange:()=>z(!G)}),(0,t.jsxs)(s.A,{className:_().terms_condition,...(0,j.$h_)("terms-condition"),children:[p.A.iAgreeTo," ",(0,t.jsx)("span",{onClick:()=>es(!0),className:_().terms,...(0,j.$h_)("terms"),children:p.A.termsAndCond})," ",p.A.toproceed]})]}),(0,t.jsx)(a.A,{children:(0,t.jsx)(A.A,{onClick:eu,disabled:!G,className:_().confirm_btn,...(0,j.$h_)("confirm-btn"),children:p.A.applyVoucher})})]})]})]})]}),eo?(0,t.jsx)(r.Ay,{anchor:"bottom",open:ea,onClose:()=>es(!1),className:_().bolton_drawer,hideBackdrop:!0,ModalProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.4)"}},children:(0,t.jsx)(E.A,{data:K,onClose:()=>es(!1)})}):(0,t.jsx)(F.default,{size:"sm",id:"homepageOfferT&CPopup",className:"success_modal",children:(0,t.jsx)(E.A,{data:K,onClose:()=>es(!1)}),open:ea,onClose:()=>es(!1),isBackdrop:!0}),(0,t.jsx)(N,{voucherResponse:X,handleClose:em,status:Y,setVoucherStatus:W,voucherErrorMessage:Q,mobileNumber:f,setFormattedVoucherCode:ei,setVoucherCode:en,setAcceptTerms:z,fromTopupRegistration:P})]})}},73539:e=>{e.exports={UploadContainer:"S3Upload_UploadContainer___p6Ji",BtnContainer:"S3Upload_BtnContainer__NojJV",ContainerBox:"S3Upload_ContainerBox__ZoRI_",ContainerBoxText:"S3Upload_ContainerBoxText___yffM",UploadHeader:"S3Upload_UploadHeader__tVNvW",helperContainer:"S3Upload_helperContainer__1omje",content:"S3Upload_content__x_iV8",dashedDivider:"S3Upload_dashedDivider__4WWPM",UplaodInfo:"S3Upload_UplaodInfo__qNuP9",ListItem:"S3Upload_ListItem__ZmobC"}},84940:e=>{e.exports={HeaderContainer:"HeaderTag_HeaderContainer__1KphK",Heading:"HeaderTag_Heading__FmAyb",Para:"HeaderTag_Para__lTsXe"}},91143:(e,l,n)=>{"use strict";n.r(l),n.d(l,{default:()=>lp});var t=n(37876),i=n(67330),a=n(98386),s=n(80063),o=n(31777),r=n(10616),d=n(84733),c=n(81516),u=n(6995),m=n(14232),_=n(99837),p=n(9129),h=n(52325),v=n(92760),g=n(4833),x=n(89099),A=n(89037),y=n(5067),f=n(7400),j=n(70496),b=n(16455),C=n(6144),w=n(13201),N=n(57186),S=n(81004),k=n(87468),D=n(39870),R=n(55134),F=n(19446),E=n.n(F),$=n(54587),T=n.n($),B=n(56557),I=n.n(B),P=n(16562);let M={token:"SampleToken"},H=async e=>{let{data:l,handleComplyCubeSuccess:n,handleComplyCubeError:t}=e;try{let e={},a={passport:!0,driving_license:!1,national_identity_card:!0};if((null==l?void 0:l.is_swiss_resident)==1)a.passport=!0,a.national_identity_card=!0,a.residence_permit=!0;else{var i;let e=(null==l||null==(i=l.melisaAddress)?void 0:i.country)||"",n="Switzerland"===e||"CH"===e||"CHE"===e||(null==l?void 0:l.countryCode)==="SW"&&(!e||"CH"===e);a.passport=!0,a.national_identity_card=!0,a.residence_permit=n}(e=await ComplyCube.mount({token:(null==l?void 0:l.token_id)??(null==M?void 0:M.token),clientId:(null==l?void 0:l.client_id)||"",client_id:(null==l?void 0:l.client_id)||"",language:"en",containerId:"complycube-mount",stages:[{name:"documentCapture",options:{crossDeviceOnly:!0,documentTypes:{passport:a.passport,driving_license:a.driving_license,national_identity_card:a.national_identity_card,...a.residence_permit&&{residence_permit:!0}}}},{name:"faceCapture",options:{mode:"photo"}}],onComplete:async t=>{await n({...t,...l}),e.unmount()},onModalClose:function(){e.updateSettings({isModalOpen:!1}),e.unmount(),t("Modal closed by user")},onError:function(l){let{type:n,message:i}=l;console.log(i),t(i),e.updateSettings({isModalOpen:!1}),e.unmount()}})).updateSettings({isModalOpen:!0})}catch(e){t(e),console.log(e)}};var O=n(1127),L=n(75488),V=function(e){return e.Pending="pending",e.Clear="clear",e.Attention="attention",e.Failed="failed",e}({}),K=n(34260);let U=e=>{var l,n,a,r,d,c,u,p,v,f,j,C,N;let{item:S,backgroundColor:k,border:D,setVerifyError:F,formData:$,melisaAddress:B}=e,[I,M]=(0,m.useState)({first_name:"Lyca",last_name:"Mobile"}),[U,G]=(0,m.useState)(!1),[z,Y]=(0,m.useState)(!1),[W,q]=(0,m.useState)(!1),[Z,X]=(0,m.useState)(!1),J=(0,o.d4)(s.Xk);(0,x.useRouter)(),(0,o.d4)(i.SC);let Q=(0,o.wA)(),ee=e=>{Q((0,i.rK)(2)),Q((0,i.yp)(e)),Q((0,i.bE)(3))},el=async e=>{var l,n,t,a,s;try{G(!0);let a={client_id:(null==e?void 0:e.client_id)||"",document_id:(null==e||null==(l=e.documentCapture)?void 0:l.documentId)||"",type:"identity_check",live_photo_id:(null==e||null==(n=e.faceCapture)?void 0:n.livePhotoId)||""},s=(null==e||null==(t=e.faceCapture)?void 0:t.livePhotoId)||"",o=await O.A.post(w.t.performKYCCheck,a),r=(null==o?void 0:o.data)||{};if((null==r?void 0:r.document_status)===V.Failed||(null==r?void 0:r.identity_status)===V.Failed||(null==r?void 0:r.document_status)===V.Pending||(null==r?void 0:r.identity_status)===V.Pending)throw Error((null==r?void 0:r.document_status)||(null==r?void 0:r.identity_status));let d=(null==r?void 0:r.document_status)===V.Clear||(null==r?void 0:r.document_status)===V.Attention,c=(null==r?void 0:r.identity_status)===V.Clear||(null==r?void 0:r.identity_status)===V.Attention;if(X((null==r?void 0:r.document_status)==="attention"),q((null==r?void 0:r.identity_status)==="attention"),(!d||
1!c)&&((null==r?void 0:r.identity_check_id)||(null==r?void 0:r.document_check_id))){let e=r.document_check_id,l=r.identity_check_id,n=!1,t={};for(let i=0;i<6;i++){let i=await O.A.post(w.t.performKYCCheck,{...a,document_check_id:e,identity_check_id:l}),s=null==i?void 0:i.data;t=s;let o=[V.Clear,V.Attention];if((null==s?void 0:s.document_status)===V.Failed||(null==s?void 0:s.identity_status)===V.Failed||(null==s?void 0:s.document_status)===V.Pending||(null==s?void 0:s.identity_status)===V.Pending)throw Error((null==s?void 0:s.document_status)||(null==s?void 0:s.identity_status));if(o.includes(s.document_status)&&o.includes(s.identity_status)){n=!0;break}await new Promise(e=>setTimeout(e,5e3))}if(!n)throw Error(K.A.complyCubeStatusPending);G(!1),Q((0,i.MJ)(t)),Q((0,i.eT)({...r,livePhotoId:s})),Q((0,i.rK)(3))}else G(!1),Q((0,i.MJ)(r)),Q((0,i.eT)({...r,livePhotoId:s})),Q((0,i.rK)(3))}catch(e){null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e||null==(s=e.response)||null==(a=s.data)?void 0:a.message)||"na"}),G(!1),ee(K.A.complyCubeStatusPending)}};(0,m.useEffect)(()=>{(null==J?void 0:J.country_number_code)&&(null==$?void 0:$.msisdn)&&en()},[null==J?void 0:J.country_number_code]);let en=async()=>{var e,l,n,t,i;let a=`${null==J||null==(e=J.country_number_code)?void 0:e.replace("+","")}${(0,g.vKF)(null==$?void 0:$.msisdn)}`;try{let{data:e,status:t}=await O.A.post(w.t.getPersonalInfoWithoutAuth,{msisdn:a});200===t&&M({first_name:null==e||null==(l=e.personal_information)?void 0:l.first_name,last_name:null==e||null==(n=e.personal_information)?void 0:n.last_name})}catch(e){null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e||null==(i=e.response)||null==(t=i.data)?void 0:t.message)||"na"}),console.log(e)}},et=async e=>{G(!0);try{let l=await (null===O.A||void 0===O.A?void 0:O.A.post(null===w.t||void 0===w.t?void 0:w.t.getComplyCubeTokenV2,e));if((null==l?void 0:l.data)&&(null==l?void 0:l.status)===200)return null==l?void 0:l.data;return null}catch(e){var l,n;null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e||null==(n=e.response)||null==(l=n.data)?void 0:l.message)||"na"}),console.log("error",e)}finally{G(!1)}};return(0,t.jsxs)(A.A,{className:E().RegisterBy,sx:{backgroundColor:k,border:`1px solid ${D}`},onClick:async()=>{var e,l,n,t,a,s,o,r,d,c,u;if(!U&&!z){if(!(null==$?void 0:$.melisaAddress)||!(null==$?void 0:$.melisaAddress)==void 0)return F(K.A.communicationAddressRequired),null;if((null==$||null==(e=$.melisaAddress)?void 0:e.street_name)==void 0||(null==$||null==(l=$.melisaAddress)?void 0:l.street_name)=="")return F(K.A.streetNameRequired),null;if((null==$||null==(n=$.melisaAddress)?void 0:n.house_no)==void 0||(null==$||null==(t=$.melisaAddress)?void 0:t.house_no)=="")return F(K.A.houseNumberRequired),null;if((null==$||null==(a=$.melisaAddress)?void 0:a.post_code)==void 0||(null==$||null==(s=$.melisaAddress)?void 0:s.post_code)=="")return F(K.A.postcodeRequired),null;if((null==$||null==(o=$.melisaAddress)?void 0:o.city)==void 0||(null==$||null==(r=$.melisaAddress)?void 0:r.city)=="")return F(K.A.cityRequired),null;if((null==$?void 0:$.is_swiss_resident)&&(null==$?void 0:$.email))if((null==S||null==(u=S.field_text)||null==(c=u[0])||null==(d=c.processed)?void 0:d.includes("Photo"))&&(null==$?void 0:$.is_swiss_resident)&&(null==$?void 0:$.email)){let e={type:"person",email:(null==$?void 0:$.email)??"",person_details:I,referrer:`${window.location.origin}/*`},l=await et(e);(null==l?void 0:l.token_id)&&(Y(!0),await H({data:{...$,...l,countryCode:null==J?void 0:J.country_code},handleComplyCubeSuccess:async e=>{Y(!1),await el(e)},handleComplyCubeError:e=>{Y(!1),ee(e)}}))}else Q((0,i.rK)(3));else{if(!(null==$?void 0:$.is_swiss_resident))return F(K.A.residencyMandatory),null;if(!(null==$?void 0:$.email))return F(K.A.emailMandatory),null}}},children:[U&&(0,t.jsx)(L.A,{}),(null==S||null==(a=S.field_text)||null==(n=a[0])||null==(l=n.processed)?void 0:l.includes("Photo"))&&(0,t.jsx)("div",{id:"complycube-mount"}),(0,t.jsxs)(A.A,{className:E().RegisterByContainer,children:[(0,t.jsxs)(A.A,{sx:{display:"flex",alignItems:"center"},children:[(0,t.jsx)(T(),{src:null==S||null==(u=S.children)||null==(c=u[0])||null==(d=c.uri)||null==(r=d[0])?void 0:r.url,height:55,width:55,alt:"click",quality:100,layout:"fixed",style:{marginRight:"15px"}}),(0,t.jsxs)(A.A,{children:[(0,t.jsx)(y.A,{variant:"h6",className:E().SectionHeading,children:(0,t.jsx)(P.A,{content:null==S||null==(v=S.field_text)||null==(p=v[0])?void 0:p.processed})}),(0,t.jsx)(y.A,{variant:"body2",className:E().SectionMsg,children:(0,t.jsx)(P.A,{content:null==S||null==(j=S.field_text_1
1)||null==(f=j[0])?void 0:f.processed})})]})]}),(0,t.jsx)(R.A,{disableRipple:!0,sx:{paddingRight:0},children:(0,t.jsx)(T(),{src:b.z.arrowRightRegister,height:16,width:15.97,alt:"click"})})]}),(0,t.jsx)(y.A,{className:E().SectionInfo,children:(0,t.jsx)(P.A,{content:null==S||null==(N=S.field_text_2)||null==(C=N[0])?void 0:C.processed})})]})};var G=n(85185),z=n(2511),Y=n.n(z),W=n(34450),q=n(16223);let Z=e=>{var l,n,a;let{formData:s,formErrors:r,setFormData:c,handleClick:u,setFormErrors:v,handleChange:g,getNodeType:x,registrationData:A,isXs:f,setVerifyError:j,verifyError:b}=e,[w,N]=(0,m.useState)(),[S,k]=(0,m.useState)(!1),D=x("node--registration_component")?x("node--registration_component"):x("node--registration_required"),R=(0,o.wA)(),[F,E]=(0,m.useState)();null===_.l||void 0===_.l||_.l.country_code;let $=(e,l)=>({bg:["#F4F8F7","#FFF8F3"],border:["#BAC1B7","#FDE4D2"]})[l][e];return(0,t.jsxs)(m.Fragment,{children:[(0,t.jsxs)(d.A,{className:Y().FieldContainer,children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,onClick:e=>{e.stopPropagation(),e.preventDefault(),R((0,i.bE)(2))},children:K.A.aboutCustomers}),(0,t.jsx)(p.Ay,{container:!0,children:null==(l=(0,_.ab)(K.A))?void 0:l.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:s[e.name]||"",formData:s,formErrors:r,setFormData:c,handleChange:g,setFormErrors:v,helperText:""})))})]}),(null===_.l||void 0===_.l?void 0:_.l.country_code)==="SW"&&(0,t.jsxs)(d.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.communicationAddress}),K.A.swInternationalAddress&&(0,t.jsx)(y.A,{component:"h2",className:Y().FieldSubHeader,children:K.A.swInternationalAddress}),(0,t.jsx)(q.A,{defaultManual:1!==Number(null==s?void 0:s.is_swiss_resident),onChangeMelisaAddress:e=>{E(e),c(l=>({...l,melisaAddress:e}))},isSwissResident:1===Number(null==s?void 0:s.is_swiss_resident)},(null==s?void 0:s.is_swiss_resident)??"default")]}),b&&(0,t.jsx)(W.A,{message:String(b)||""}),(0,t.jsxs)(d.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 0 8px 8px !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.secureDetails}),(0,t.jsxs)(y.A,{component:"p",className:Y().OrderNew,children:[K.A.termsAndConditonContinue," "," ",(0,t.jsx)("span",{onClick:()=>{k(!0),N((0,h.Zl)(A,"node--sim_confirmation_static_title_an","terms-and-conditions"))},children:K.A.termsAndConditions})," & "," ",(0,t.jsx)("span",{onClick:()=>{k(!0),N((0,h.Zl)(A,"node--sim_confirmation_static_title_an","privacy-policy"))},children:K.A.privacyPolicy})," "," ",K.A.termsAndConditonSubmit]}),null==D||null==(a=D.children)||null==(n=a.slice())?void 0:n.map((e,l)=>(0,t.jsx)(U,{formData:s,melisaAddress:F,setVerifyError:j,item:e,border:$(l,"border"),backgroundColor:$(l,"bg")})),(0,t.jsxs)(y.A,{component:"p",className:Y().OrderNew,children:[K.A.wecalldiscus," ",(0,t.jsx)("a",{href:"/help/contact-us/",children:(0,t.jsx)("span",{children:K.A.contactUs})})]})]}),eH((0,t.jsx)(G.A,{data:w,onClose:()=>k(!1),fromLoginScreen:!f}),S,()=>k(!1),f)]})};var X=n(72505);let J=e=>{var l;let{formData:n,formErrors:a,setFormData:s,handleClick:r,setFormErrors:c,handleChange:u,getNodeType:v,registrationData:x,isXs:A}=e,[f,w]=(0,m.useState)(),[N,S]=(0,m.useState)(!1),[k,D]=(0,m.useState)(!1),[R,F]=(0,m.useState)(!1),E=(0,o.wA)();return(0,t.jsxs)(m.Fragment,{children:[(0,t.jsxs)(d.A,{className:Y().FieldContainer,children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,children:K.A.personalDetails}),(0,t.jsx)(p.Ay,{container:!0,columnSpacing:3,children:null==(l=(0,_.Ri)(K.A))?void 0:l.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:(null==e?void 0:e.sx)?{...e.sx}:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:n[e.name]||"",formData:n,formErrors:a,setFormData:s,handleChange:u,setFormErrors:c,helperText:""})))})]}),(0,t.jsxs)(d.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 0 0 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:"Communication address"}),(0,t.jsx)(y.A,{component:"h2",className:Y().FieldSubHeader,children:"Please enter a local address and not international address"}),R?(0,t.jsx)(q.A,{onChangeMelisaAddress:()=>{}}):(0,t.jsx)(d.A,{children:(0,t.jsxs)(p.Ay,{container:!0,columnSpacing:2,p:0,alignItems:"center",justifyContent:A?"center":"space-between",children:[(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:7.5,md:7.5,lg:7.5,sx:{display:"flex",gap:"8px"},children:[(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(T(),{src:b.z.accountAddrs,height:22,width:18,alt:"accountArw"})}),(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(y.A,{className:Y().CustomerAddress,children:"Rue Fouramont 355, Hainaut, Pussemange 6720, Belgium"})})]}),(0,t.jsx)(p.Ay,{item:!0,sm:1,md:1,lg:1,sx:{display:{xs:"none",sm:"block"}}}),(0,t.jsx)(p.Ay,{item:!0,xs:12,sm:3.5,md:3.5,lg:3.5,className:Y().BtnOutLine,sx:{marginTop:{xs:"20px",sm:"0px"}},children:(0,t.jsx)(j.A,{variant:"contained",className:Y().ChangeBtn,...(0,g.$h_)("confirm-request-details"),onClick:()=>F(!0),children:K.A.changeYourAddress})})]})})]}),(0,t.jsxs)(d.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 0 8px 8px !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.portInReview}),(0,t.jsx)(p.Ay,{container:!0,alignItems:"center",justifyContent:"space-between",mt:1.5,children:(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{dis
1play:"flex",gap:"8px"},children:[(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(X.m,{checked:k,onChange:()=>D(!k),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isByEmail")})}),(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsxs)(y.A,{component:"p",className:Y().OrderNew,children:["The details I have submitted are true to my knowledge. I have read and accept "," ",(0,t.jsx)("span",{onClick:()=>{S(!0),w((0,h.Zl)(x,"node--sim_confirmation_static_title_an","terms-and-conditions"))},children:K.A.termsAndConditions})," and "," ",(0,t.jsx)("span",{onClick:()=>{S(!0),w((0,h.Zl)(x,"node--sim_confirmation_static_title_an","privacy-policy"))},children:K.A.privacyPolicy})]})})]})}),(0,t.jsx)(d.A,{className:Y().BtnContainer,mt:3,children:(0,t.jsx)(j.A,{variant:"contained",className:Y().GoBack,...(0,g.$h_)("confirm-request-details"),onClick:e=>{e.stopPropagation(),E((0,i.bE)(3))},disabled:!k,children:K.A.ConfirmWithSubmit})})]}),eH((0,t.jsx)(G.A,{data:f,onClose:()=>S(!1),fromLoginScreen:!A}),N,()=>S(!1),A)]})};var Q=n(96828),ee=n.n(Q),el=n(81279);let en=e=>{var l,n;let{isXs:a}=e,s=(0,o.wA)(),r=(0,o.d4)(i.hI),c=(0,o.d4)(i.UN),u=null,m=(null==(u=window)||null==(l=u.location)?void 0:l.host)&&(0,el.A)(null==u||null==(n=u.location)?void 0:n.host),_=(null==m?void 0:m.registrationURL)??[],h=(0,x.useRouter)(),{header:v,paragraph:A}={3:{header:K.A.notProceedFurther,paragraph:c||K.A.provideDetails},6:{header:K.A.sorryMsg,paragraph:c||K.A.reviewInfoContinue}}[r]||{header:"",para:""};return(0,t.jsx)(d.A,{className:ee().FieldContainer,children:(0,t.jsx)(p.Ay,{container:!0,justifyContent:"center",alignItems:"center",children:(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:8,md:8,lg:8,textAlign:"center",children:[(0,t.jsx)(T(),{src:b.z.warningIcon,height:76,width:76,alt:"success"}),(0,t.jsx)(y.A,{className:ee().WelcomeCustomer,mb:1,children:v}),(0,t.jsx)(y.A,{className:ee().CustomerError,children:A}),(0,t.jsx)(d.A,{className:ee().BtnContainer,mt:3,children:(0,t.jsx)(j.A,{variant:"contained",className:ee().GoBack,sx:{margin:"0 !important"},...(0,g.$h_)("view-plans-details-btn"),onClick:()=>{s((0,i.yp)("")),s((0,i.bE)(1)),h.push(`${h.locale}/${null==_?void 0:_.join("/")}`)},children:K.A.tryAgainerror})})]})})})};var et=n(98709),ei=n(37304),ea=n.n(ei);let es=e=>{var l,n;let{rows:i}=e,a=[{key:"SlNo",label:"Sl no."},(null==i||null==(l=i[0])?void 0:l.msisdn)&&{key:"msisdn",label:K.A.phoneNumber},(null==i||null==(n=i[0])?void 0:n.puk_code)&&{key:"puk_code",label:K.A.pukCode},{key:"iccid",label:"ICCID"}].filter(Boolean);return(0,t.jsxs)("table",{className:ea().dynamictable,children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:null==a?void 0:a.map(e=>{let{key:l,label:n}=e;return(0,t.jsx)("th",{children:n},l)})})}),(0,t.jsx)("tbody",{children:null==i?void 0:i.map((e,l)=>(0,t.jsx)("tr",{children:null==a?void 0:a.map(l=>{let{key:n}=l;return(0,t.jsx)("td",{height:"40",children:e[n]},n)})},l))})]})};var eo=n(64386),er=n.n(eo),ed=n(86618),ec=n(31364),eu=n(72311),em=n(21758),e_=n(50438),ep=n(73539),eh=n.n(ep);let ev={backgroundColor:"white","& .MuiOutlinedInput-root":{border:"1px solid #D0D5DD",borderLeft:"none",boxShadow:"none",height:"50px",borderRadius:"0 4px 4px 0"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-input":{paddingTop:"25px",paddingBottom:"8px"}},eg={transform:"translate(14px, 7px) scale(1)",font:"normal normal 400 12px/16px GTEestiLCDisplayRegular",color:"#BEC6D5 !important","&.Mui-focused":{color:"#BEC6D5"}},ex={transform:"translate(14px, 15px) scale(1)",font:"normal normal 400 16px/20px GTEestiLCDisplayRegular",color:"#BEC6D5 !important",height:"18px","&.Mui-focused":{color:"#BEC6D5"}},eA=e=>{let{S3UploadFields:l,onUploadSuccess:n,nodeContent:a}=e,s=(0,m.useRef)([]),r=(0,o.d4)(i.SC),[c,u]=(0,m.useState)(()=>null==l?void 0:l.map(()=>({file:null,fileName:null,loading:!1,message:"",uploadProgress:0}))),_=(e,l)=>{let n=e.split(".");if(1===n.length)return e;let t=n.slice(0,-1).join("."),i=n[n.length-1];return t.length>l?`${t.substring(0,l)}...${i}`:e},h=(e,l)=>{u(n=>n?n.map((n,t)=>t===e?{...n,...l}:n):[])},v=async(e,l)=>{var n;let t=null==(n=e.target.files)?void 0:n[0];if(t){if(!["image/jpg","image/jpeg","image/png","application/pdf"].includes(t.type))return void h(l,{message:"Invalid image format. Only .jpeg, .jpg, .pdf, and .png are allowed."});if(t.size>5242880)return void h(l,{message:"File size exceeds 5 MB limit. Please select a smaller file."});let e=_(t.name,15);h(l,{file:t,fileName:e,message:""}),await g(t,l)}},g=async(e,t)=>{h(t,{loading:!0,uploadProgress:0});let i=new FileReader;i.readAsDataURL(e),i.onloadend=async()=>{var a,s,o,d,c,u,m,_,p,v;let g=(null==i||null==(o=i.result)||null==(s=o.toString())||null==(a=s.split(","))?void 0:a[1])||"",x=(null==e||null==(u=e.name)||null==(c=u.split)||null==(d=c.call(u,"."))?void 0:d.pop())||"",A={msisdn:"",puk_code:(null==r?void 0:r.puk_code)||"",iccid:(null==r||null==(m
1=r.iccid)?void 0:m.slice(-4))||(null==r?void 0:r.iccid)||"",base64_encoded_document:g,file_extension:x,document_type:"documentType",is_front:!0};try{let{status:e,data:i}=await O.A.post(w.t.getS3URL,{...A},{onUploadProgress:e=>{let l=Math.round((null==e?void 0:e.loaded)*100/(null==e?void 0:e.total));h(t,{uploadProgress:l})}});if([200,204].includes(e)){let e={[l[t].api_key]:{extension:x,value:i.url}};n({...e}),h(t,{loading:!1})}else h(t,{loading:!1})}catch(i){let e=(null==i||null==(p=i.response)||null==(_=p.data)?void 0:_.message)||(null==i||null==(v=i.response)?void 0:v.data);n({...{[l[t].api_key]:{extension:"",value:""}}}),h(t,{message:e,loading:!1,fileName:null})}finally{h(t,{loading:!1,uploadProgress:0})}}};return(0,t.jsxs)(m.Fragment,{children:[(0,t.jsx)("hr",{className:eh().dashedDivider}),(0,t.jsx)(p.Ay,{container:!0,spacing:3,children:null==l?void 0:l.map((e,l)=>{var n,i,a,o,r,u,m,h,g;return(0,t.jsx)(p.Ay,{item:!0,xs:12,sm:6,md:6,lg:6,children:(0,t.jsxs)(d.A,{className:eh().UploadContainer,children:[(0,t.jsx)(y.A,{variant:"h4",className:eh().UploadHeader,children:e.title}),(0,t.jsx)("input",{type:"file",onChange:e=>v(e,l),accept:"image/*,application/pdf",required:!0,ref:e=>{s.current[l]=e},style:{display:"none"}}),(0,t.jsx)(d.A,{className:eh().BtnContainer,mt:1,children:(0,t.jsxs)(p.Ay,{container:!0,alignItems:"center",children:[(0,t.jsx)(p.Ay,{item:!0,xs:"auto",children:(0,t.jsx)(j.A,{onClick:()=>s.current[l].click(),className:eh().ContainerBox,children:(0,t.jsx)(y.A,{className:eh().ContainerBoxText,children:(null==c||null==(n=c[l])?void 0:n.fileName)?K.A.change:K.A.browse})})}),(0,t.jsx)(p.Ay,{item:!0,xs:!0,children:(0,t.jsx)(eu.A,{className:eh().UploadHeader,sx:ev,label:(null==c||null==(i=c[l])?void 0:i.fileName)?K.A.fileUplaod:K.A.noFileChosen,value:(null==c||null==(a=c[l])?void 0:a.fileName)?_(null==c||null==(o=c[l])?void 0:o.fileName,15):"",variant:"outlined",size:"medium",fullWidth:!0,InputLabelProps:{shrink:!1,sx:(null==c||null==(r=c[l])?void 0:r.fileName)?eg:ex},InputProps:{readOnly:!0}})})]})}),(null==c||null==(u=c[l])?void 0:u.loading)&&(0,t.jsx)(em.A,{variant:"determinate",value:null==c||null==(m=c[l])?void 0:m.uploadProgress,sx:{background:"#e0e0e0",height:"2px",marginTop:"4px",borderRadius:"4px","& .MuiLinearProgress-bar":{backgroundColor:"#08DC7D"}}}),(null==c||null==(h=c[l])?void 0:h.message)&&(0,t.jsxs)(e_.A,{className:eh().helperContainer,children:[(0,t.jsx)(T(),{src:b.z.errorInRed,height:20,width:20,loading:"eager",alt:"icon"}),(0,t.jsx)(y.A,{component:"span",className:eh().content,children:null==c||null==(g=c[l])?void 0:g.message})]})]})},l)})}),a&&(0,t.jsx)(d.A,{className:eh().UplaodInfo,children:(0,t.jsx)(d.A,{className:eh().ListItem,children:(0,t.jsx)(P.A,{content:a})})})]})};var ey=n(29454);let ef=e=>{var l,n,a,r,c,u,v,x,A;let{formData:f,formErrors:b,setFormData:N,setFormErrors:S,handleChange:k,registrationData:D,isXs:R,registrationFields:F,LYCA_CONFIG:E,fieldsToValidates:$,verifyError:T,setVerifyError:B,getNodeType:P,fromPageData:M,option:H}=e,V=(0,o.wA)(),[U,z]=(0,m.useState)(),[Z,J]=(0,m.useState)(!1),[Q,ee]=(0,m.useState)(!1),el=(null==(l=(0,h.Ly)($,f,E))?void 0:l.length)>0,en=(0,o.d4)(et.uW),ei=(0,o.d4)(et.Hr),[ea,eo]=(0,m.useState)(""),eu=(0,o.d4)(s.Xk);ec.qY[(null==eu?void 0:eu.country_code)||""];let[em,e_]=(0,m.useState)(),[ep,eh]=(0,m.useState)((0,_.qE)(K.A,E)),[ev,eg]=(0,m.useState)((0,_.ab)(K.A)),ex=(0,o.d4)(i.SC),ef=(0,o.d4)(i.u0),[ej,eb]=(0,m.useState)(!1),[eC,ew]=(0,m.useState)(""),[eN,eS]=(0,m.useState)(""),[ek,eD]=(0,m.useState)(!1),[eR,eF]=(0,m.useState)(!1),[eE,e$]=(0,m.useState)(""),[eT,eB]=(0,m.useState)(!1),eI=(0,o.d4)(i.fX),[eP,eM]=(0,m.useState)(),eO=ey.A.get("NEXT_LOCALE")??"en",[eL,eV]=(0,m.useState)((null==M?void 0:M.from)||null),[eK,eU]=(0,m.useState)(!1),eG=["document_first_name","document_last_name","document_dob"],ez=[{title:" Upload document front",is_front:!0,api_key:"document_b1_upload1"},{title:"Upload document back",is_front:!1,api_key:"document_b1_upload2"}],[eY,eW]=(0,m.useState)(),[eq,eZ]=(0,m.useState)();(0,m.useEffect)(()=>{(0,g.a44)(E)&&eg([...ep,...(0,h.ed)(F)])},[F,E]);let eX=(e,l)=>{let n={...e};
1return l.forEach(e=>delete n[e]),n};(0,m.useEffect)(()=>{eo(null==f?void 0:f.type_of_document);let e=(0,_.RX)(K.A,en,ei,ea,em,eC,eN).filter(e=>"type_of_document"!==e.name).map(e=>e.name).filter(e=>"country_of_issue_MedicareCard"!==e);N(l=>eX(l,e)),S(l=>eX(l,e))},[f.type_of_document,eC,ea,ei]),(0,m.useEffect)(()=>{let e=e=>e(K.A,en,ei,ea,em,eC,eN).map(e=>e.name),l=[...e(_.RX),...e(_.o2)];ew(""),eS(""),N(e=>eX(e,l)),S(e=>eX(e,l))},[ei]),(0,m.useEffect)(()=>{k({target:{name:"country_of_issue_MedicareCard",value:"Australia"}})},[]),(0,m.useEffect)(()=>{let e=(0,_.o2)(K.A,en,ei,ea,em,eC,eN).filter(e=>"type_of_document_2"!==e.name).map(e=>e.name).filter(e=>"country_of_issue_MedicareCard"!==e);N(l=>eX(l,e)),S(l=>eX(l,e))},[f.type_of_document_2,eN,ei]),(0,m.useEffect)(()=>{(null===_.l||void 0===_.l?void 0:_.l.country_code)==="AU"&&eQ(),eJ()},[]);let eJ=async()=>{try{var e;let l=await (0,ed.vs)(),n=[];l&&(null==(e=l.data)||e.forEach(e=>{e&&n.push({label:e.country_name,value:e.country_code})})),e_(n)}catch(e){}finally{}},eQ=async()=>{eb(!0);try{let{data:e,status:l}=await O.A.get(w.t.getIdentityDocumentsAll);if(200===l){let l=Object.groupBy(e,e=>e.identity_document),n={TypeA:l.TypeA||[],TypeB:l.TypeB||[]};eb(!1),V((0,et.Ez)(n))}}catch(t){var e,l,n;eb(!1),B((null==(l=t.response)||null==(e=l.data)?void 0:e.message)||(null==(n=t.response)?void 0:n.data))}},e0=async()=>{if(el){var e,l,n,t,a,s,o,r,d,c,u,m,p;let v=ef.map(e=>{let{iccid:l,puk_code:n,msisdn:t}=e;return{iccid:l,pukcode:n,msisdn:t}}),g=Object.values(en)[+(1!==ei)],x=null==(e=(null==g?void 0:g.filter(e=>Object.keys(e.document_type[0]).toString()===ea))[0])?void 0:e.document_id,A=e4(),y=e2(A);if(x){eb(!0);let e={...y,first_name:(null==y||null==(l=y.document_first_name)?void 0:l.trim())||"",middle_name:(null==y||null==(n=y.document_middle_name)?void 0:n.trim())||"",last_name:(null==y||null==(t=y.document_last_name)?void 0:t.trim())||"",document_type:x||null,email_id:(null==y?void 0:y.type_service)==1?null==y?void 0:y.email_address:null==y?void 0:y.email_address_business,document_type_category:ei,terms_and_condition:Q,house_number:(null==eP?void 0:eP.street_number)||(null==eP?void 0:eP.house_no)||"",street_name:null==eP?void 0:eP.street,street_type:(null==eP?void 0:eP.street_type)??"STREET",city:null==eP?void 0:eP.city,state:null==eP?void 0:eP.county,postcode:null==eP?void 0:eP.post_code,country:"AUS",green_id_validation:"yes",language:eO.toUpperCase(),sim_on_behalf:"0",dob:null==y?void 0:y.document_dob,actual_user_minor:(null==y?void 0:y.switch_age_check)?"1":"0",type_documents:null==y?void 0:y.type_documents};"0"===x?(e.passport_country_code="AUS",e.document_issueing_authority="AUS"):"5"===x?(e.passport_country_code=null==A?void 0:A.country_of_issue,e.document_issueing_authority=null==A?void 0:A.country_of_issue):"4"===x&&(e.name_on_card=`${(null==A||null==(a=A.document_first_name)?void 0:a.trim())||""} ${(null==A||null==(s=A.document_last_name)?void 0:s.trim())||""}`.trim());let g={sim_details:[...v],document_details:{...e}};try{let{data:e,status:l}=await O.A.post(w.t.subscriberRegistrationAll,g);if(eb(!1),200===l&&(null==e?void 0:e.registered_msisdn)){let l=`${(null==A||null==(o=A.document_first_name)?void 0:o.trim())||""} ${(null==A||null==(r=A.document_last_name)?void 0:r.trim())||""}`.trim();V((0,i.sk)(l));let n=ef.map((l,n)=>{var t;return{...l,actual_number:(null==(t=e.registered_msisdn)?void 0:t[n])||null}});V((0,i.gZ)(n)),V((0,i.bE)(7))}}catch(l){let e=(null==(c=l.response)||null==(d=c.data)?void 0:d.message)||(null==(u=l.response)?void 0:u.data);eb(!1),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(p=l.response)||null==(m=p.data)?void 0:m.message)||"na"}),V((0,i.bE)(3)),(0,h.C0)("activateSim-failure",2,2===ei?"Type B":"Type A","",e);return}}}},e1=async()=>{var e,l,n,t,a,s,o,r;let d=Object.values(en)[+(1!==ei)],c=null==(e=(null==d?void 0:d.filter(e=>Object.keys(e.document_type[0]).toString()===ea))[0])?void 0:e.document_id;f.type_of_document_2;let u=e4(),m=e2(u);
1if(c){eb(!0);let e={...m,msisdn:ex.msisdn,iccid:null==ex?void 0:ex.iccid,pukcode:ex.puk_code,first_name:(null==m||null==(l=m.document_first_name)?void 0:l.trim())||"",last_name:(null==m||null==(n=m.document_last_name)?void 0:n.trim())||"",document_type:c||null,email_id:(null==m?void 0:m.type_service)==1?null==m?void 0:m.email_address:null==m?void 0:m.email_address_business};"0"===c&&(e.passport_country_code="AUS",e.document_issueing_authority="AUS"),"5"===c&&(e.passport_country_code=null==u?void 0:u.country_of_issue,e.document_issueing_authority=null==u?void 0:u.country_of_issue),"4"===c&&(e.name_on_card=`${(null==u||null==(t=u.document_first_name)?void 0:t.trim())||""} ${(null==u||null==(a=u.document_last_name)?void 0:a.trim())||""}`.trim()),delete e.type_service,delete e.type_documents,delete e.switch_age_check,null==e||delete e.email_address,null==e||delete e.email_address_business;try{let{data:l,status:n}=await O.A.post(w.t.validateDocument("AU"),e);200===n&&(eb(!1),await e8(c,null==l?void 0:l.verification_reference_no))}catch(l){let e=(null==(o=l.response)||null==(s=o.data)?void 0:s.message)||(null==(r=l.response)?void 0:r.data);eb(!1),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:e||"na"}),V((0,i.rK)(6)),(0,h.C0)("activateSim-failure",2,2===ei?"Type B":"Type A","",e)}}else await e8(c,"")},e2=e=>{let l={...e};return["document_dob","expiry_date","acquisition_date"].forEach(e=>{l[e]&&(l[e]=I()(l[e]).format("DD/MM/YYYY"))}),l},e3=e=>{let l=e.split("_");return l.pop(),l.join("_")},e4=()=>{let e={};for(let l in f)if(l.endsWith(`_${eN}`)||l.endsWith(`_${ea}`)||l.endsWith(`_${eC}`)){let n=e3(l);n.startsWith("medical_")&&(n=n.replace("medical_","")),e[n]||(e[n]=f[l])}else e[l]=f[l];return e},e8=async(e,l)=>{var n,t,a,s,o;eb(!0);let r=e2(e4()),d=null==eP?void 0:eP.street_number,c=null==eP?void 0:eP.street,u=null==eP?void 0:eP.street_type,m=RegExp(`\\b${d}\\b`);d&&m.test(c)?c=c.replace(m,"").replace(/\s+/g," ").trim():(d="",u=c);let p={details:{iccid:null==ex?void 0:ex.iccid,puk_code:ex.puk_code,email_id:(null==r?void 0:r.type_service)==1?null==r?void 0:r.email_address:null==r?void 0:r.email_address_business,document_type_category:ei,verification_reference_number:l,terms_and_condition:Q,house_number:(null==eP?void 0:eP.street_number)||(null==eP?void 0:eP.house_no)||"",street_name:c,street_type:u,city:null==eP?void 0:eP.city,state:null==eP?void 0:eP.county,postcode:null==eP?void 0:eP.post_code,country:"AUS",green_id_validation:"yes",language:eO.toUpperCase(),sim_on_behalf:"0",dob:null==r?void 0:r.document_dob,actual_user_minor:(null==r?void 0:r.switch_age_check)?"1":"0"}};try{let{status:e}=await O.A.post(w.t.subscribeRegistrationAus,p);if(200===e)if(eb(!1),"port_in_msisdn"==H)await e6();else{let e=`${(null==r||null==(n=r.document_first_name)?void 0:n.trim())||""} ${(null==r||null==(t=r.document_last_name)?void 0:t.trim())||""}`.trim();V((0,i.sk)(e)),V((0,i.rK)(3)),(0,h.C0)("activateSim",3,2===ei?"Type B":"Type A")}}catch(l){eb(!1);let e=(null==(s=l.response)||null==(a=s.data)?void 0:a.message)||(null==(o=l.response)?void 0:o.data);B(e),V((0,i.rK)(6)),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:e||"na"}),(0,h.C0)("activateSim-failure",2,2===ei?"Type B":"Type A","",e)}},e6=async()=>{var e,l,n,t,a,s;eb(!0);let o=e2(e4()),r={...eI,aus:{...eI.aus,process_mode:"3",address1:null==eP?void 0:eP.street,city:null==eP?void 0:eP.city,state:null==eP?void 0:eP.county,postcode:null==eP?void 0:eP.post_code,first_name:(null==o||null==(e=o.document_first_name)?void 0:e.trim())||"",last_name:(null==o||null==(l=o.document_last_name)?void 0:l.trim())||"",email_id:(null==o?void 0:o.type_service)==1?null==o?void 0:o.email_address:null==o?void 0:o.email_address_business}};V((0,i.bp)(r));let d=`${(null==o||null==(n=o.document_first_name)?void 0:n.trim())||""} ${(null==o||null==(t=o.document_last_name)?void 0:t.trim())||""}`.trim();try{let{status:e}=await O.A.post(w.t.initiatePortIn(h.dg[null===_.l||void 0===_.l?void 0:_.l.country_code]),r);200===e&&(eb(!1),V((0,i.sk)(d)),V((0,i.rK)(4)),(0,h.C0)("activateSim",3,2===ei?"Type B":"Type A"))}catch(e){eb(!1),console.log(e),V((0,i.sk)(d)),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e||null==(s=e.response)||null==(a=s.data)?void 0:a.message)||"na"}),V((0,i.rK)(5)),(0,h.C0)("activateSim",3,2===ei?"Type B":"Type A")}};return(0,m.useEffect)(()=>{let e=["Passbook","StatementOfAccount","RateSettlement"],l=e.includes(eC),n=e.includes(eN);2===ei?(eD(l),eF(n)):(eD(!1),eF(!1))},[eC,eN,ei]),(0,t.jsxs)(m.Fragment,{children:[ej&&(0,t.jsx)(L.A,{}),el?(0,t.jsxs)(d.A,{className:er().FieldContainer,mt:1,sx:{borderTopLeftRadius:"8px 8px !important"},children:[(0,t.jsx)(y.A,{className:er().FieldHeader,children:K.A.simDetails}),(0,t.jsx)(p.Ay,{container:!0,children:(0,t.jsx)(es,{rows:(0,h.Ly)($,f,E)})})]}):null,(0,t.jsxs)(d.A,{className:er().FieldContainer,mt:1,sx:{borderRadius:el?"0 !important":"8px 8px 0 0 !important"},children:[(0,t.jsx)(y.A,{className:er().FieldHeader,children:K.A.aboutCustomers}),(0,t.jsx)(p.Ay,{container:!0,children:null==(n=(0,_.ab)(K.A))?void 0:n.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:f[e.name]||"",formData:f,formErrors:b,setFormData:N,handleChange:e=>{k(e)},setFormErrors:S,helperText:""})))})]}),(0,t.jsx)(d.A,{className:er().FieldContainer,mt:1,sx:{borderRadius:"0 !important"}
1,children:en&&(null==(a=(0,_.IY)(K.A,en))?void 0:a.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:f[e.name]||"",formData:f,formErrors:b,setFormData:N,handleChange:k,setFormErrors:S,helperText:""}))))}),(0,t.jsxs)(d.A,{className:er().FieldContainer,mt:1,sx:{borderRadius:" 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:er().FieldHeader,sx:{marginBottom:"0 !important"},children:2===ei?`${K.A.identificationDocDetails} (1)`:K.A.identificationDocDetails}),(0,t.jsx)(p.Ay,{container:!0,columnSpacing:3,children:en&&(null==(r=(0,h.x$)((0,_.RX)(K.A,en,ei,ea,em,eC,eN),eu))?void 0:r.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,formErrors:b,value:f[e.name]||"",formData:f,setFormData:N,handleChange:l=>{k(l),"dropDown"===e.componentType&&"type_of_document"===e.name&&ew(l.target.value)},setFormErrors:S,helperText:b[e.name]}))))}),ek&&(0,t.jsx)(eA,{S3UploadFields:ez,onUploadSuccess:e=>{eW(e)},nodeContent:null==(u=P("node--paragraph_component"))||null==(c=u.field_text[0])?void 0:c.processed})]}),2===ei&&(0,t.jsxs)(d.A,{className:er().FieldContainer,mt:1,sx:{borderRadius:" 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:er().FieldHeader,sx:{marginBottom:"0 !important"},children:2===ei?`${K.A.identificationDocDetails} (2)`:K.A.identificationDocDetails}),(0,t.jsx)(p.Ay,{container:!0,columnSpacing:3,children:en&&(null==(v=(0,h.x$)((0,_.o2)(K.A,en,ei,ea,em,eC,eN),eu))?void 0:v.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,formErrors:b,value:f[e.name]||"",formData:f,setFormData:N,handleChange:l=>{k(l),"dropDown"===e.componentType&&"type_of_document_2"===e.name&&eS(l.target.value)},setFormErrors:S,helperText:b[e.name]}))))}),eR&&(0,t.jsx)(eA,{S3UploadFields:ez,onUploadSuccess:e=>{eZ(e)},nodeContent:null==(A=P("node--paragraph_component"))||null==(x=A.field_text[0])?void 0:x.processed})]}),(0,t.jsxs)(d.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.communicationAddress}),(0,t.jsx)(y.A,{component:"h2",className:Y().FieldSubHeader,children:K.A.internationalAddress}),(0,t.jsx)(q.A,{setIsFormValid:eU,onChangeMelisaAddress:e=>{eM(e)}})]}),(0,t.jsxs)(d.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 0 8px 8px !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.portInReview}),(0,t.jsx)(p.Ay,{container:!0,alignItems:"center",justifyContent:"space-between",mt:1.5,children:(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{display:"flex",gap:"8px"},children:[(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(X.m,{checked:Q,onChange:()=>ee(!Q),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isByEmail")})}),(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsxs)(y.A,{component:"p",className:Y().OrderNew,children:["The details I have submitted are true to my knowledge. I have read and accept"," ",(0,t.jsx)("span",{onClick:()=>{J(!0),z((0,h.Zl)(D,"node--sim_confirmation_static_title_an","terms-and-conditions"))},children:K.A.termsAndConditions})," ","and"," ",(0,t.jsx)("span",{onClick:()=>{J(!0),z((0,h.Zl)(D,"node--sim_confirmation_static_title_an","privacy-policy"))},children:K.A.privacyPolicy})]})})]})}),T&&(0,t.jsx)(W.A,{message:String(T)||""}),(0,t.jsx)(d.A,{className:Y().BtnContainer,mt:3,children:(0,t.jsx)(j.A,{variant:"contained",className:Y().GoBack,...(0,g.$h_)("confirm-request-details"),onClick:e=>{e.stopPropagation(),2===ei?(e=>{let l=[eN,eC];for(let n of eG){let t=l.map(l=>e[`${n}_${l}`]).filter(e=>void 0!==e);if(t.length>1&&!t.every(e=>e===t[0]))return!1}return!0})(f)?"family"===eL?e0():e1():B("The values for the First name, last name and date of birth across different document types do not match"):"family"===eL?e0():e1()},disabled:2===ei?(0,h.KC)(f,[...(0,_.ab)(K.A),...(0,_.RX)(K.A,en,ei,ea,em,eC,eN),...(0,_.o2)(K.A,en,ei,ea,em,eC,eN)])||!!T||!Q||!eK:(0,h.KC)(f,[...(0,_.ab)(K.A),...(0,_.RX)(K.A,en,ei,ea,em,eC,eN)])||!!T||!Q||(0,h.B9)(f[1==f.type_service?"email_address":"email_address_business"])||!eK,children:K.A.continueAndRegistration})})]}),eH((0,t.jsx)(G.A,{data:U,onClose:()=>J(!1),fromLoginScreen:!R}),Z,()=>J(!1),R)]})};var ej=n(78598),eb=n(80508),eC=n(79441);let ew=e=>{var l,n,a,r,d,c,u,v,x,f;let{formData:N,formErrors:S,setFormData:k,setFormErrors:D,handleChange:R,registrationData:F,isXs:E,registrationFields:$,LYCA_CONFIG:B,fieldsToValidates:I,verifyError:M,setVerifyError:H,getNodeType:V}=e,U=(0,o.wA)(),[z,Z]=(0,m.useState)(!1),[J,Q]=(0,m.useState)(),[ee,el]=(0,m.useState)(!1),[en,et]=(0,m.useState)(!1),[ei,ea]=(0,m.useState)(!1),eo=(null==(l=(0,h.Ly)(I,N,B))?void 0:l.length)>0,[ec,eu]=(0,m.useState)(),[em,e_]=(0,m.useState)(null),ep=(0,o.d4)(i.SC),eh=(0,o.d4)(i.u0),ev=(0,o.d4)(s.Xk),[eg,ex]=(0,m.useState)(),eA=V("node--summary_list_with_cta")||null;(0,m.useEffect)(()=>{ey()},[]);let ey=async()=>{try{var e;let l=await (0,ed.vs)(),n=[];
1l&&(null==(e=l.data)||e.forEach(e=>{e&&n.push({label:e.country_name,value:e.country_code})})),eu(n)}catch(e){}},ef=null==(a=V("node--marketing_consent_text"))||null==(n=a.children)?void 0:n.filter(e=>"paragraph--rm_marketing_consent"===e.type),ew=null==(c=V("node--marketing_consent_text"))||null==(d=c.field_heading)||null==(r=d[0])?void 0:r.processed,eN=e=>({details:{title:e.title,first_name:e.first_name,last_name:e.last_name,date_of_birth:(0,h.pv)(e.date_of_birth),personal_number:e.personal_number,mobile_number:ep.msisdn,sim_no:null==ep?void 0:ep.iccid,language:e.language,contact_number:e.contact_number,email_address:e.email_address,nationality:e.nationality,ischk_terms:!0,isrbt_exclude_directory_enquirie:"",ischk_marketing:!0,ischkmarketing_group:!1,ischkshare_cust_info:!1,poriting_mobileno:"",porting_simno:"",current_operator:"",isportin_chk:"",hear_aboutus:"Magazines",type_id:"Personal Number",address:{post_code:"0985",street:"BISKLORERUS",city:"OYTO",country:"OSLO",house_no:"1*3",county:"OSLO",houseno_extn:"3*1",apartment_no:"1*3"}}}),eS=e=>{let l=eh.map(e=>({iccid:e.iccid.slice(-4),puk_code:e.puk_code}));return{details:{no_of_sims:eh.length,sim_info:l,title:e.title,first_name:e.first_name,last_name:e.last_name,date_of_birth:(0,h.pv)(e.date_of_birth),email_address:e.email_address,contact_number:"",address:{postcode:null==eg?void 0:eg.post_code,street:null==eg?void 0:eg.street,city:null==eg?void 0:eg.city,country:"France",houseno:null==eg?void 0:eg.house_no},id_proof:e.type_of_document,id_number:e.document_id,preferred_language:"",chk_terms:en,sms_marketing:"1",retailer_id:"",retailer_name:"",type:"0"}}},ek=async()=>{(null===_.l||void 0===_.l?void 0:_.l.country_code)==="FR"?await eR():await eD()},eD=async()=>{var e,l,n,t,a,s,o,r;Z(!0);try{let{status:t}=await O.A.post(w.t.subscribeRegistartionNorway,{...eN(N)});if(200===t){await eF();let t=`${null==(l=eN(N))||null==(e=l.details)?void 0:e.first_name} ${null==(n=eN(N))?void 0:n.details.last_name}`;U((0,i.sk)(t)),U((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(a=l.response)||null==(t=a.data)?void 0:t.message)||(null==(s=l.response)?void 0:s.data);H(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(r=l.response)||null==(o=r.data)?void 0:o.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e)}finally{Z(!1)}},eR=async()=>{var e,l,n,t,a,s,o,r;Z(!0);try{let{status:t}=await O.A.post(w.t.subscribeRegistartionFrance,{...eS(N)});if(200===t){let t=`${null==(l=eS(N))||null==(e=l.details)?void 0:e.first_name} ${null==(n=eS(N))?void 0:n.details.last_name}`;U((0,i.sk)(t)),U((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(a=l.response)||null==(t=a.data)?void 0:t.message)||(null==(s=l.response)?void 0:s.data);H(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(r=l.response)||null==(o=r.data)?void 0:o.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e)}finally{Z(!1)}},eF=async()=>{try{let{status:e,data:l}=await O.A.post(w.t.sample,{...{request_type:"1",msisdn:ep.msisdn,iccid:ep.iccid,puk_code:ep.puk_code,lm_promotions:"0",other_product_promotion:"0",product_names:"0",means_of_contact:"0",channel:"",directory_services:String(ei),terms_and_condition_privacy_policy:String(en),terms_and_condition:String(en),identification_and_photo_chk:"false",details_entered_as_per_document_chk:"false",authenticate_toshare_personaldata:em}});200===e&&console.log("marketingConsent",l)}catch(e){console.log(e)}};return(0,t.jsxs)(m.Fragment,{children:[z&&(0,t.jsx)(L.A,{}),eo?(0,t.jsxs)(A.A,{className:er().FieldContainer,sx:{borderRadius:"8px 8px 0 0 !important"},children:[(0,t.jsx)(y.A,{className:er().FieldHeader,children:K.A.simDetails}),(0,t.jsx)(p.Ay,{container:!0,children:(0,t.jsx)(es,{rows:(0,h.Ly)(I,N,B)})})]}):null,(0,t.jsxs)(A.A,{className:er().FieldContainer,mt:1,sx:{borderRadius:eo?"0 !important":"8px 8px 0 0 !important"},children:[(0,t.jsx)(y.A,{className:er().FieldHeader,children:K.A.personalDetails}),(0,t.jsx)(p.Ay,{container:!0,columnSpacing:2,children:null==(u=(0,h.x$)((0,_.AT)(K.A,ec),ev))?void 0:u.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:N[e.name]||"",formData:N,formErrors:S,setFormData:k,handleChange:R,setFormErrors:D,helperText:S[e.name]})))})]}),(null===_.l||void 0===_.l?void 0:_.l.country_code)==="FR"&&(0,t.jsxs)(A.A,{className:er().FieldContainer,mt:1,sx:{borderRadius:eo?"0 !important":"8px 8px 0 0 !important"},children:[(0,t.jsx)(y.A,{className:er().FieldHeader,children:K.A.identificationDocDetails}),(0,t.jsx)(p.Ay,{container:!0,children:null==(v=(0,h.x$)((0,_.IF)(K.A,N.type_of_document),ev))?void 0:v.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:N[e.name]||"",formData:N,formErrors:S,setFormData:k,handleChange:R,setFormErrors:D,helperText:S[e.name]})))})]}),(null===_.l||void 0===_.l?void 0:_.l.country_code)==="FR"&&(0,t.jsxs)(A.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.communicationAddress}),(0,t.jsx)(y.A,{component:"h2",className:Y().FieldSubHeader,children:K.A.internationalAddress}),(0,t.jsx)(q.A,{onChangeMelisaAddress:e=>{ex(e)}})]}),(0,t.jsxs)(A.A,{className:Y().FieldContainer,mt:1,sx:{borderRadius:" 0 0 8px 8px !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:Y().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.portInReview}),(0,t.jsxs)(p.Ay,{container:!0,alignItems:"center",justifyContent:"space-between",mt:1.5,children:[(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{dis
1play:"flex",gap:"8px"},children:[(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(X.m,{checked:en,onChange:()=>et(!en),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isByEmail")})}),(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(A.A,{className:Y().OrderNew,children:(0,t.jsx)(P.A,{content:null==eA||null==(f=eA.field_content)||null==(x=f[0])?void 0:x.processed})})})]}),(null===_.l||void 0===_.l?void 0:_.l.country_code)==="NO"&&(null==ef?void 0:ef.length)>0?(0,t.jsxs)(m.Fragment,{children:[(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{display:"flex",gap:"8px",marginTop:"24px",marginBottom:"24px"},children:[(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(X.m,{checked:ei,onChange:()=>ea(!ei),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isByEmail")})}),(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(y.A,{component:"p",className:Y().OrderNew,children:K.A.directoryEnquiries})})]}),(0,t.jsx)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{display:"flex",gap:"8px"},children:(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(y.A,{mb:1.5,mt:0,className:er().radio_label,children:(0,t.jsx)(P.A,{content:ew})})})}),(0,t.jsx)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{display:"flex",gap:"8px"},children:(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(ej.A,{name:"authorizationRadioGroup",row:!1,value:Number(em)||"",onChange:e=>{let l=e.target.value;{var n,t;let e=null==ef?void 0:ef.find(e=>{var n;return Number(null==e||null==(n=e.field_marketing_consent_value)?void 0:n[0])===Number(l)}),i=((null==e||null==(t=e.field_content)||null==(n=t[0])?void 0:n.processed)||"").replace(/<[^>]*>/g,"").trim();window.digitalData.push({event:"link track",link:{name:i||"",location:"ID Details Verification",type:"Internal",destinationUrl:"",customAttributes:"",userSelections:""}})}e_(e=>e===l?null:l)},children:null==ef?void 0:ef.map(e=>{var l,n,i,a;return(0,t.jsx)(eb.A,{value:Number(null==e||null==(l=e.field_marketing_consent_value)?void 0:l[0]),control:(0,t.jsx)(eC.A,{sx:{padding:"8px","&.Mui-checked":{paddingTop:"3px",paddingRight:"12px"},"&:not(.Mui-checked)":{paddingTop:"1.8px",paddingRight:"12px"}},disableRipple:!0,icon:(0,t.jsx)(T(),{src:b.z.uncheckbox_portin,alt:"tick"}),checkedIcon:(0,t.jsx)(T(),{src:b.z.checkbox_portin,alt:"tick"}),checked:Number(em)===Number(null==e||null==(n=e.field_marketing_consent_value)?void 0:n[0])}),label:(0,t.jsx)("span",{className:er().radio_label,children:(0,t.jsx)(P.A,{content:null==e||null==(a=e.field_content)||null==(i=a[0])?void 0:i.processed})}),sx:{alignItems:"flex-start",marginBottom:"12px","&:last-child":{marginBottom:"0px"}}},e.id)})})})})]}):null]}),M&&(0,t.jsx)(W.A,{message:String(M)||""}),(0,t.jsx)(A.A,{className:Y().BtnContainer,mt:3,children:(0,t.jsx)(j.A,{...(0,g.$h_)("confirm-request-details"),variant:"contained",className:Y().GoBack,onClick:ek,disabled:!!(!en||(0,h.B9)(N.email_address)||(null===_.l||void 0===_.l?void 0:_.l.country_code)==="NO"&&(null==ef?void 0:ef.length)>0&&null===em||(0,h.MM)(N.date_of_birth,B.age_restriction_web_prepaid))||(0,h.KC)(N,[...(0,_.AT)(K.A,ec)])||(null===_.l||void 0===_.l?void 0:_.l.country_code)==="FR"&&(0,h.KC)(N,[...(0,_.AT)(K.A,ec),...(0,_.IF)(K.A)])||!!M,children:K.A.continueAndRegistration})})]}),eH((0,t.jsx)(G.A,{data:J,onClose:()=>el(!1),fromLoginScreen:!E}),ee,()=>el(!1),E)]})};var eN=n(32071),eS=n.n(eN);let ek=e=>{var l,n,a,s,r;let{getNodeType:c}=e,u=(0,o.wA)(),_=c("node--coles_description_with_2_buttons")||null,v=null==_||null==(l=_.children)?void 0:l.filter(e=>["field_button"].includes(null==e?void 0:e.cms_key)),x=(0,o.d4)(i.u0),A=(0,o.d4)(i.pS),[f,b]=(0,m.useState)(null);(0,m.useEffect)(()=>{null!==f&&u((0,i.j8)({...A,msisdn:f}))},[f,u]);let C=async()=>{let e=x.map(e=>null==e?void 0:e.actual_number),l=(null==A?void 0:A.planCode)?[A.planCode]:null;try{let{data:n,status:t}=await O.A.post(w.t.guestUserBundleInfo,{msisdn:e,bundles:l});if(200===t){let e=null==n?void 0:n.sim_details.find(e=>(null==e?void 0:e.primary)===!0);e?(b(null==e?void 0:e.msisdn),u((0,i.j8)({...A,msisdn:null==e?void 0:e.msisdn})),u((0,i.bE)(8))):u((0,i.rK)(4))}}catch(e){u((0,i.rK)(4))}};return(0,t.jsx)(d.A,{className:eS().FieldContainer,children:(0,t.jsx)(p.Ay,{container:!0,justifyContent:"center",alignItems:"center",children:(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:8,md:8,lg:8,textAlign:"center",children:[(0,t.jsx)(y.A,{className:eS().SetupAutoRenewTitle,mb:1,children:(0,t.jsx)(P.A,{content:null==_||null==(a=_.field_heading)||null==(n=a[0])?void 0:n.processed})}),(0,t.jsx)(y.A,{className:eS().SetupAutoRenewInfo,children:(0,t.jsx)(P.A,{content:null==_||null==(r=_.field_description)||null==(s=r[0])?void 0:s.processed})}),null==v?void 0:v.map((e,l)=>{if(Array.isArray(null==e?void 0:e.field_button_cta_text)){var n;let{textContent:a=""}=(0,h.fO)(null==e||null==(n=e.field_button_cta_text)?void 0:n[0].processed);return(0,t.jsx)(d.A,{className:eS().SetupAutoRenewal,mt:3,children:(0,t.jsx)(j.A,{...(0,g.$h_)(`${a}`),variant:"contained",className:0===l?eS().SetupAutoRenewBtn:eS().SetupAutoRenewLater,sx:{margin:"0 !important"},...(0,g.$h_)(`setup-renew-laterbtn-${l}`),onClick:e=>{e.stopPropagation(),0===l?C():u((0,i.rK)(4))},children:a})})}})]})})})};var eD=n(63978);let eR=e=>{var l,n,a,r;let{formData:c,getNodeType:u,registrationData:_}=e,[h,v]=(0,m.useState)(),[x,A]=(0,m.useState)(!1),[f,j]=(0,m.useState)(!1),[b,C]=(0,m.useState)(!1),w=(0,o.wA)(),N=(0,o.d4)(s.Rl);(0,o.d4)(s.Xk);let S=(0,o.d4)(s.Bn),[k,D]=(0,m.useState)(""),[R,F]=(0,m.useState)(),E=(0,o.d4)(i.pS),$=u("node--we_accept_card_list")||null,T=u("node--rmsummary_list_with_cta")||null,[B,I]=(0,m.useState)();(0,m.useEffect)(()=>{let e=Object.keys(c).filter(e=>e.includes("document_first_name")||e.includes("document_last_name")).map(e=>c[e]);I({msisdn:null==E?void 0:E.msisdn,bundle_code:null==E?void 0:E.planCode,first_name:e[0],last_name:e[1]})});let P=(0,m.useCallback)(async()=>{try{var e,l,n,t,i,a,s,o,r;let d=null==N||null==(l=N.data)||null==(e=l.getDestinationsListing)?void 0:e.edges;if(d){let e=null==(n=d.filter(e=>{var l;return(null==(l=e.node)?void 0:l.countryCode)===((null==S?void 0:S.country_code)==="SW"?"CH":null==S?void 0:S.country_code)}))?void 0:n.map(e=>e.node.destinationName).filter(e=>!!e);D((null==e?void 0:e[0])||(null==S?void 0:S.country_name));let l=[],c=[];N&&(null==N||null==(a=N.data)||null==(i=a.getDestinationsListing)||null==(t=i.edges)||t.forEach(e
1=>{e.node.country&&l.push({label:e.node.country,value:e.node.key})})),N&&(null==N||null==(r=N.data)||null==(o=r.getDestinationsListing)||null==(s=o.edges)||s.forEach(e=>{var l,n,t,i;(null==e||null==(n=e.node)||null==(l=n.callingCountry)?void 0:l.isdCode)&&c.push({label:null==(t=e.node.callingCountry)?void 0:t.isdCode,value:null==(i=e.node.callingCountry)?void 0:i.isdCode})})),v(l),F(c)}else D("")}catch(e){console.error("Error fetching countries:",e)}},[N]);return(0,m.useEffect)(()=>{P()},[P]),(0,t.jsxs)(d.A,{className:eS().FieldContainer,children:[$&&(0,t.jsxs)(p.Ay,{item:!0,container:!0,className:eS().flex_row,children:[(0,t.jsx)(y.A,{className:eS().textHeadPayBy,...(0,g.$h_)("pay-by-options-cols"),dangerouslySetInnerHTML:{__html:(null==(n=$.field_title)||null==(l=n[0])?void 0:l.processed)||""}}),(0,t.jsx)("div",{className:eS().paymentIcons,dangerouslySetInnerHTML:{__html:(null==(r=$.field_card_list)||null==(a=r[0])?void 0:a.processed)||""}})]}),(0,t.jsx)(p.Ay,{container:!0,justifyContent:"center",alignItems:"center",children:(0,t.jsx)(p.Ay,{className:eS().paymentFormColes,children:(0,t.jsx)(eD.A,{isQuickTopUp:!1,cmsData:[],acceptedCardList:{},open:x,setSwitchPaymentMode:e=>e?w((0,i.rK)(3)):"",country:h,onClose:()=>A(!1),payPalStatus:!1,type:void 0,modalFrom:"dashboard-card",setAddCard:j,getCardList:[],switchPaymentMode:b,isCvm:!1,autorenewalData:B,consentData:T})})})]})};var eF=n(65721),eE=n.n(eF),e$=n(36905),eT=n(50828),eB=n(40501);let eI=e=>{var l,n,a,r,d,c,v,f,b,N;let{formData:S,formErrors:k,setFormData:D,setFormErrors:R,handleChange:F,isXs:E,LYCA_CONFIG:$,fieldsToValidates:T,verifyError:B,setVerifyError:I,getNodeType:M}=e,H=(0,o.wA)(),[V,U]=(0,m.useState)(!1),[z,Y]=(0,m.useState)(),[Z,J]=(0,m.useState)(!1),[Q,ee]=(0,m.useState)(!1),[el,en]=(0,m.useState)(!1),et=(null==(l=(0,h.Ly)(T,S,$))?void 0:l.length)>0,[ei,ea]=(0,m.useState)(),[eo,er]=(0,m.useState)(null),ec=(0,o.d4)(i.SC);(0,o.d4)(i.u0);let eu=(0,o.d4)(s.Xk),[em,e_]=(0,m.useState)(),ep=M("node--summary_list_with_cta")||null,[eh,ev]=(0,m.useState)(!1),{executeRecaptcha:eg}=(0,e$._Y)(),ex=!!(null==eu?void 0:eu.global_captcha),eA=(0,m.useRef)(!1);(0,x.useRouter)();let[ey,ef]=(0,m.useState)(!1),[ej,eb]=(0,m.useState)(!1),[eC,ew]=(0,m.useState)(!1),[eN,eS]=(0,m.useState)(!0),[ek,eD]=(0,m.useState)(!1),[eR,eF]=(0,m.useState)(!1),[eI,eP]=(0,m.useState)(!1);(0,u.A)("(max-width:768px)"),(0,o.d4)(i.Jj),(0,o.d4)(i.SC);let eM=(0,o.d4)(i.NO);(0,m.useEffect)(()=>{eO()},[]);let eO=async()=>{try{var e;let l=await (0,ed.vs)(),n=[];l&&(null==(e=l.data)||e.forEach(e=>{e&&n.push({label:e.country_name,value:e.country_code})})),ea(n)}catch(e){}};null==(a=M("node--marketing_consent_text"))||null==(n=a.children)||n.filter(e=>"paragraph--rm_marketing_consent"===e.type),null==(c=M("node--marketing_consent_text"))||null==(d=c.field_heading)||null==(r=d[0])||r.processed;let eL=e=>{eb(e),ew(e)};(0,m.useEffect)(()=>{eA.current&&(ej||eC||(ef(!1),eS(!1)),eA.current=!1)},[ej,eC]),(0,m.useEffect)(()=>{eA.current&&(ey||eL(!1),eA.current=!1)},[eN]);let eV=e=>{let l={switchValue:ef,IsByEmail:eb,IsByText:ew,isOther:eS,isAccept:eD,isOpen:eF};eA.current=!0;let n=new Set(["IsByEmail","IsByText","switchValue","isOther"]);"switchValue"===e?(l[e](e=>!e),ey?eL(!1):eL(!0)):["IsByEmail","IsByText"].includes(e)?ey||eN?l[e](e=>!e):eL(!1):"isOther"===e?(l[e](e=>!e),eN||eL(!0)):l[e](e=>!e),n.has(e)&&eD(!1)};(0,m.useLayoutEffect)(()=>{ef((null==eM?void 0:eM.lm_promotions)==="2"),eb((null==eM?void 0:eM.means_of_contact)==="2"||(null==eM?void 0:eM.means_of_contact)==="4"),ew((null==eM?void 0:eM.means_of_contact)==="3"||(null==eM?void 0:eM.means_of_contact)==="4"),eS((null==eM?void 0:eM.other_product_promotion)==="2"),eD((null==eM?void 0:eM.terms_and_condition)==="true")},[eM]),(0,m.useEffect)(()=>{if(eR){let e=setTimeout(()=>{eV("isOpen")},5e3);return()=>clearTimeout(e)}},[eR]);let eK=(e,l)=>e&&l?"4":e?"2":l?"3":"1",eU=(e,l)=>{if(!e.showWhen)return!0;let{field:n,equals:t,in:i}=e.showWhen,a=null==l?void 0:l[n];return void 0!==t?a===t:!!Array.isArray(i)&&i.includes(a)},eG=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;return e.filter(e=>eU(e,l)).map(e=>({...e,validation:eU(e,l)?e.validation:void 0}))},ez=eG((0,_.rW)(K.A,S.type_of_document)||[],S),eY=e=>({details:{puk_code:ec.puk_code,msisdn:ec.msisdn,mobile_number:ec.msisdn,iccid:null==ec?void 0:ec.iccid,title:e.title,first_name:e.first_name,last_name:e.last_name,date_of_birth:(0,h.pv)(e.date_of_birth),email_address:e.email_address,pref_language:e.select_your_language,contact_number:e.personal_number,chk_terms:Q,hear_about_us:e.how_hear_about_us,secret_question:e.secret_ques,secret_answer:e.secret_ans,select_your_language:e.select_your_language,most_call_country:e.most_call_country,marketing_sms:ey?"1":"0",post_code:null==em?void 0:em.post_code,street:null==em?void 0:em.street_name,county:null==em?void 0:em.address2,city:null==em?void 0:em.city,country:"United Kingdom",house_number:null==em?void 0:em.house_no,lm_promotions:ey?"2":"1",other_product_promotion:eN?"2":"1",means_of_contact:eK(ej,eC)}}),eW=async()=>{switch(null===_.l||void 0===_.l?void 0:_.l.country_code){case"GB":await eZ();break;case"DK":await e2();break;case"NL":await e6();break;case"IE":await e4();break;case"PT":await e7()}},eq=async e=>{if(!ex||!eg)return{};let l=await eg(e);return{headers:{"captcha-response":(l?await (0,eT.bQ)(l,eB.H.rsaKey):null)||""}}},eZ=async()=>{var e,l,n,t,a,s,o,r,d,c,u,m,p,v,g,x,A,y;if(!ex||eg){U(!0);try{let t=await eq("registrationGb"),{data:a}=await O.A.post(w.t.manageMsisdnAccount,{...eQ(S)}),{status:s}=await O.A.post(w.t.registration,{...eY(S)},t);
1if(200===s){await eX(),await eJ(2);let t=`${null==(l=eY(S))||null==(e=l.details)?void 0:e.first_name} ${null==(n=eY(S))?void 0:n.details.last_name}`;H((0,i.sk)(t)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(a=l.response)||null==(t=a.data)?void 0:t.message)||(null==(s=l.response)?void 0:s.data);if("Invalid Email"!==e&&"No Record Found"!==e)I(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(r=l.response)||null==(o=r.data)?void 0:o.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e);else if("Invalid Email"==e){let e=`${null==(c=eY(S))||null==(d=c.details)?void 0:d.email_address}`,l=`${null==(m=eY(S))||null==(u=m.details)?void 0:u.msisdn}`;H((0,i.FH)(e)),H((0,i.KS)(l));let{status:n}=await O.A.post(w.t.registration,{...eY(S)},await eq("registrationGb"));if(200===n){await eX();let e=`${null==(v=eY(S))||null==(p=v.details)?void 0:p.first_name} ${null==(g=eY(S))?void 0:g.details.last_name}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}else if("No Record Found"==e)try{let{status:e}=await O.A.post(w.t.registration,{...eY(S)},await eq("registrationGb"));if(200===e){await eX(),await eJ(2);let e=`${null==(A=eY(S))||null==(x=A.details)?void 0:x.first_name} ${null==(y=eY(S))?void 0:y.details.last_name}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(e){e0(e)}}finally{U(!1)}}},eX=async()=>{try{let{status:e,data:l}=await O.A.post(w.t.sample,{...{request_type:"0",msisdn:ec.msisdn,iccid:ec.iccid,puk_code:ec.puk_code,lm_promotions:ey?"2":"1",other_product_promotion:eN?"2":"1",product_names:eN?"4":"1",means_of_contact:eK(ej,eC),channel:"",directory_services:String(el),terms_and_condition:String(Q),identification_and_photo_chk:"false",details_entered_as_per_document_chk:"false",terms_and_condition_privacy_policy:String(Q),authenticate_toshare_personaldata:eo}})}catch(e){console.log(e)}},eJ=async e=>{try{let{status:l}=await O.A.post(w.t.manageMsisdnAccount,{...{details:{request_type:e.toString(),msisdn_list:{mobile_number:[{msisdn:ec.msisdn}]},email_id:S.email_address}}})}catch(e){console.log(e)}},eQ=e=>({details:{request_type:"4",email_id:e.email_address}}),e0=e=>{var l,n,t,i,a;let s=(null==(n=e.response)||null==(l=n.data)?void 0:l.message)||(null==(t=e.response)?void 0:t.data);I(s),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e||null==(a=e.response)||null==(i=a.data)?void 0:i.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",s)},e1=e=>({details:{puk:ec.puk_code,msisdn:ec.msisdn,mobile_number:ec.msisdn,iccid:null==ec?void 0:ec.iccid,title:e.title,firstname:e.first_name,lastname:e.last_name,date_of_birth:(0,h.pv)(e.date_of_birth),email_address:e.email_address,contact_number:e.personal_number,chk_terms:Q,chk_email:!0,select_your_language:e.select_your_language,marketing_sms:ey?"1":"0",address:{street:null==em?void 0:em.street,house_no:null==em?void 0:em.house_no,apartment_no:(null==em?void 0:em.apartment_no)||"_",city:null==em?void 0:em.city,county:null==em?void 0:em.county,postcode:null==em?void 0:em.post_code,country:"Denmark"},rbt_flat_yes_no:e.flat_number_exist,flat_no:e.flat_number,side_name:e.side_name,is_exclude_yellow_pages:e.directory_enquiries,lm_promotions:ey?"2":"1",other_product_promotion:eN?"2":"1",means_of_contact:eK(ej,eC)}}),e2=async()=>{var e,l,n,t,a,s,o,r,d,c,u,m,p,v,g,x,A,y;U(!0);try{let{data:t}=await O.A.post(w.t.manageMsisdnAccount,{...eQ(S)}),{status:a}=await O.A.post(w.t.registrationDk,{...e1(S)});if(200===a){await eX(),await eJ(2);let t=`${null==(l=e1(S))||null==(e=l.details)?void 0:e.firstname} ${null==(n=e1(S))?void 0:n.details.lastname}`;H((0,i.sk)(t)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(a=l.response)||null==(t=a.data)?void 0:t.message)||(null==(s=l.response)?void 0:s.data);if("Invalid Email"!==e&&"No Record Found"!==e)I(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(r=l.response)||null==(o=r.data)?void 0:o.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e);else if("Invalid Email"==e){let e=`${null==(c=e1(S))||null==(d=c.details)?void 0:d.email_address}
1`,l=`${null==(m=e1(S))||null==(u=m.details)?void 0:u.msisdn}`;H((0,i.FH)(e)),H((0,i.KS)(l));let{status:n}=await O.A.post(w.t.registrationDk,{...e1(S)});if(200===n){await eX();let e=`${null==(v=e1(S))||null==(p=v.details)?void 0:p.firstname} ${null==(g=e1(S))?void 0:g.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}else if("No Record Found"==e)try{let{status:e}=await O.A.post(w.t.registrationDk,{...e1(S)});if(200===e){await eX(),await eJ(2);let e=`${null==(A=e1(S))||null==(x=A.details)?void 0:x.firstname} ${null==(y=e1(S))?void 0:y.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(e){e0(e)}}finally{U(!1)}},e3=e=>{let l="CHK_DO_NOT_LIST"===e.user_details_tab;return{details:{puk_code:ec.puk_code,msisdn:ec.msisdn,iccid:null==ec?void 0:ec.iccid,title:e.title,firstname:e.first_name,lastname:e.last_name,dob:(0,h.pv)(e.date_of_birth),email:e.email_address,contact:e.personal_number,is_terms_and_conditions:Q,marketing_sms:ey?"1":"0",is_sms_marketing:ey?"true":"false",company_name:"",indent_information:"",house_number:null==em?void 0:em.house_no,address_line1:null==em?void 0:em.street,address_line2:null==em?void 0:em.city,address_line3:null==em?void 0:em.county,county:null==em?void 0:em.county,postcode:null==em?void 0:em.post_code,country:"Ireland",chk_do_not_list:l,chk_pg:!l&&"CHK_PG"===e.user_data,chk_dg:!l&&"CHK_DG"===e.user_data,lm_promotions:ey?"2":"1",other_product_promotion:eN?"2":"1",means_of_contact:eK(ej,eC)}}},e4=async()=>{var e,l,n,t,a,s,o,r,d,c,u,m,p,v,g,x,A,y;U(!0);try{let{data:t}=await O.A.post(w.t.manageMsisdnAccount,{...eQ(S)}),{status:a}=await O.A.post(w.t.registrationIrl,{...e3(S)});if(200===a){await eX(),await eJ(2);let t=`${null==(l=e3(S))||null==(e=l.details)?void 0:e.firstname} ${null==(n=e3(S))?void 0:n.details.lastname}`;H((0,i.sk)(t)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(a=l.response)||null==(t=a.data)?void 0:t.message)||(null==(s=l.response)?void 0:s.data);if("Invalid Email"!==e&&"No Record Found"!==e)I(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(r=l.response)||null==(o=r.data)?void 0:o.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e);else if("Invalid Email"==e){let e=`${null==(c=e3(S))||null==(d=c.details)?void 0:d.email}`,l=`${null==(m=e3(S))||null==(u=m.details)?void 0:u.msisdn}`;H((0,i.FH)(e)),H((0,i.KS)(l));let{status:n}=await O.A.post(w.t.registrationIrl,{...e3(S)});if(200===n){await eX();let e=`${null==(v=e3(S))||null==(p=v.details)?void 0:p.firstname} ${null==(g=e3(S))?void 0:g.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}else if("No Record Found"==e)try{let{status:e}=await O.A.post(w.t.registrationIrl,{...e3(S)});if(200===e){await eX(),await eJ(2);let e=`${null==(A=e3(S))||null==(x=A.details)?void 0:x.firstname} ${null==(y=e3(S))?void 0:y.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(e){e0(e)}}finally{U(!1)}},e8=e=>({details:{puk:ec.puk_code,msisdn:ec.msisdn,mobile_number:ec.msisdn,iccid:null==ec?void 0:ec.iccid,title:e.title,firstname:e.first_name,lastname:e.last_name,dob:(0,h.pv)(e.date_of_birth),email_id:e.email_address,contact_number:e.personal_number,is_terms_and_conditions:Q,preferred_language:e.select_your_language,about_us:e.how_hear_about_us,secret_question:e.secret_ques,secret_answer:e.secret_ans,country_you_call_most:e.most_call_country,is_sms_marketing:ey?"true":"false",marketing_sms:ey?"1":"0",address:{street:null==em?void 0:em.street_name,house_no:null==em?void 0:em.house_no,house_no_ext:null==em?void 0:em.houseno_extn,city:null==em?void 0:em.city,county:null==em?void 0:em.county,postcode:null==em?void 0:em.post_code,country:"Netherlands"},lm_promotions:ey?"2":"1",other_product_promotion:eN?"2":"1",means_of_contact:eK(ej,eC)}}),e6=async()=>{var e,l,n,t,a,s,o,r,d,c,u,m,p,v,g,x,A,y;U(!0);try{let{data:t}=await O.A.post(w.t.manageMsisdnAccount,{...eQ(S)}),{status:a}=await O.A.post(w.t.registrationNld,{...e8(S)});if(200===a){await eX(),await eJ(2);
1let t=`${null==(l=e8(S))||null==(e=l.details)?void 0:e.firstname} ${null==(n=e8(S))?void 0:n.details.lastname}`;H((0,i.sk)(t)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(a=l.response)||null==(t=a.data)?void 0:t.message)||(null==(s=l.response)?void 0:s.data);if("Invalid Email"!==e&&"No Record Found"!==e)I(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(r=l.response)||null==(o=r.data)?void 0:o.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e);else if("Invalid Email"==e){let e=`${null==(c=e8(S))||null==(d=c.details)?void 0:d.email_id}`,l=`${null==(m=e8(S))||null==(u=m.details)?void 0:u.msisdn}`;H((0,i.FH)(e)),H((0,i.KS)(l));let{status:n}=await O.A.post(w.t.registrationNld,{...e8(S)});if(200===n){await eX();let e=`${null==(v=e8(S))||null==(p=v.details)?void 0:p.firstname} ${null==(g=e8(S))?void 0:g.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}else if("No Record Found"==e)try{let{status:e}=await O.A.post(w.t.registrationNld,{...e8(S)});if(200===e){await eX(),await eJ(2);let e=`${null==(A=e8(S))||null==(x=A.details)?void 0:x.firstname} ${null==(y=e8(S))?void 0:y.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(e){e0(e)}}finally{U(!1)}},e5=e=>({details:{puk_code:ec.puk_code,msisdn:ec.msisdn,iccid:null==ec?void 0:ec.iccid,title:e.title,firstname:e.first_name,lastname:e.last_name,dob:(0,h.pv)(e.date_of_birth),email:e.email_address,contact:e.personal_number,document_type:e.document_type,document_number:e.document_number,country_of_issue:e.document_origin_country,preferred_language:"",hear_about_us:"",country_you_call_most:"",secret_question:"",secret_answer:"",is_terms_and_conditions:Q,marketing_sms:ey?"1":"0",is_sms_marketing:ey?"true":"false",directory_services:"",check_promo:"",vat_no:e.nif_number,nif:e.nif_number,address_line1:null==em?void 0:em.street_name,address_line2:null==em?void 0:em.house_no,city:null==em?void 0:em.city,district:"",postcode:null==em?void 0:em.post_code,country:"Portugal",lm_promotions:ey?"2":"1",other_product_promotion:eN?"2":"1",means_of_contact:eK(ej,eC)}}),e7=async()=>{var e,l,n,t,a,s,o,r,d,c,u,m,p,v,g,x,A,y,f,j,b,C,N;U(!0);try{let{data:t}=await O.A.post(w.t.manageMsisdnAccount,{...eQ(S)}),{status:a}=await O.A.post(w.t.registrationPrt,{...e5(S)});if(200===a){await eX(),await eJ(2);let t=`${null==(l=e5(S))||null==(e=l.details)?void 0:e.firstname} ${null==(n=e5(S))?void 0:n.details.lastname}`;H((0,i.sk)(t)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(a=l.response)||null==(t=a.data)?void 0:t.message)||(null==(s=l.response)?void 0:s.data);if("Invalid Email"!==e&&"No Record Found"!==e)I(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(r=l.response)||null==(o=r.data)?void 0:o.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e);else if("Invalid Email"==e)try{let e=`${null==(c=e5(S))||null==(d=c.details)?void 0:d.email}`,l=`${null==(m=e5(S))||null==(u=m.details)?void 0:u.msisdn}`;H((0,i.FH)(e)),H((0,i.KS)(l));let{status:n}=await O.A.post(w.t.registrationPrt,{...e5(S)});if(200===n){await eX();let e=`${null==(v=e5(S))||null==(p=v.details)?void 0:p.firstname} ${null==(g=e5(S))?void 0:g.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(l){let e=(null==(A=l.response)||null==(x=A.data)?void 0:x.message)||(null==(y=l.response)?void 0:y.data);I(e),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==l||null==(j=l.response)||null==(f=j.data)?void 0:f.message)||"na"}),(0,h.C0)("activateSim-failure",2,"NA","",e)}else if("No Record Found"==e)try{let{status:e}=await O.A.post(w.t.registrationPrt,{...e5(S)});if(200===e){await eX(),await eJ(2);let e=`${null==(C=e5(S))||null==(b=C.details)?void 0:b.firstname} ${null==(N=e5(S))?void 0:N.details.lastname}`;H((0,i.sk)(e)),H((0,i.rK)(3)),(0,h.C0)("activateSim",3,"NA","")}}catch(e){e0(e)}}finally{U(!1)}};return(0,t.jsxs)(m.Fragment,{children:[V&&(0,t.jsx)(L.A,{}),et?(0,t.jsxs)(A.A,{className:eE().FieldContainer,sx:{borderRadius:"8px 8px 0 0 !important"},children:[(0,t.jsx)(y.A,{className:eE().FieldHeader,children:K.A.simDetails}),(0,t.jsx)(p.Ay,{container:!0,children:(0,t.jsx)(es,{rows:(0,h.Ly)(T,S,$)}
1)})]}):null,(0,t.jsxs)(A.A,{className:eE().FieldContainer,mt:1,sx:{borderRadius:et?"0 !important":"8px 8px 0 0 !important"},children:[(0,t.jsx)(y.A,{className:eE().FieldHeader,children:K.A.personalDetails}),(0,t.jsx)(p.Ay,{container:!0,columnSpacing:2,children:null==(v=(0,h.x$)((0,_.AT)(K.A,ei),eu))?void 0:v.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:S[e.name]||"",formData:S,formErrors:k,setFormData:D,handleChange:F,setFormErrors:R,helperText:k[e.name]})))})]}),["GB","NL","PT"].includes((null===_.l||void 0===_.l?void 0:_.l.country_code)||"")&&(0,t.jsxs)(A.A,{className:eE().FieldContainer,mt:1,sx:{borderRadius:et?"0 !important":"8px 8px 0 0 !important"},children:[(0,t.jsx)(y.A,{className:eE().FieldHeader,children:K.A.securityQuesDetails}),(0,t.jsx)(p.Ay,{container:!0,children:null==(f=(0,h.x$)((0,_.x9)(K.A,S.type_of_document),eu))?void 0:f.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.label},(0,t.jsx)(C.P,{field:e,value:S[e.name]||"",formData:S,formErrors:k,setFormData:D,handleChange:F,setFormErrors:R,helperText:k[e.name]})))})]}),(0,t.jsxs)(A.A,{className:eE().FieldContainer,mt:1,sx:{borderRadius:" 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:eE().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.communicationAddress}),(0,t.jsx)(y.A,{component:"h2",className:eE().FieldSubHeader,children:K.A.internationalAddress}),(0,t.jsx)(q.A,{setIsFormValid:ev,onChangeMelisaAddress:e=>{e_(e)}})]}),["DK","IE"].includes((null===_.l||void 0===_.l?void 0:_.l.country_code)||"")&&(0,t.jsx)(A.A,{className:eE().FieldContainer,mt:1,sx:{borderRadius:et?"0 !important":"8px 8px 0 0 !important"},children:(0,t.jsx)(p.Ay,{container:!0,children:eG((0,h.x$)((0,_.rW)(K.A,S.type_of_document),eu),S).map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:e.name},(0,t.jsx)(C.P,{field:e,value:S[e.name]||"",formData:S,formErrors:k,setFormData:D,handleChange:F,setFormErrors:R,helperText:k[e.name]})))})}),(0,t.jsxs)(A.A,{className:eE().FieldContainer,mt:1,sx:{borderRadius:" 0 !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:eE().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.lycaUpdate}),(0,t.jsx)(A.A,{className:eE().lyca_action,...(0,g.$h_)("lyca_action"),children:(0,t.jsxs)(A.A,{className:eE().lyca_action_item,...(0,g.$h_)("lyca_action_item"),children:[(0,t.jsxs)(y.A,{component:"div",variant:"h3",className:eE().heading_name_lyca,...(0,g.$h_)("heading_name_lyca"),children:[(0,t.jsx)(y.A,{component:"h3",variant:"h3",className:eE().field_name,...(0,g.$h_)("field_name"),children:K.A.lycaContact}),(0,t.jsx)(X.m,{checked:ey,onChange:()=>eV("switchValue"),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("switchValue")})]}),(0,t.jsx)(y.A,{component:"div",variant:"h3",className:eE().heading_name_lyca,...(0,g.$h_)("heading_name_lyca"),children:(0,t.jsx)(y.A,{component:"h3",variant:"h3",className:eE().field_name,sx:{width:"100% !important"},...(0,g.$h_)("field_name"),children:K.A.lycaPurposes})}),(0,t.jsxs)(y.A,{component:"div",variant:"h3",className:eE().heading_name_lyca,...(0,g.$h_)("heading_name_lyca"),children:[(0,t.jsx)(y.A,{component:"h3",variant:"h3",className:eE().field_name,...(0,g.$h_)("field_name"),children:K.A.byEmail}),(0,t.jsx)(X.m,{checked:ej,onChange:()=>eV("IsByEmail"),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isByEmail")})]}),(0,t.jsxs)(y.A,{component:"div",variant:"h3",className:eE().heading_name_lyca,...(0,g.$h_)("heading_name_lyca"),children:[(0,t.jsx)(y.A,{component:"h3",variant:"h3",className:eE().field_name,...(0,g.$h_)("field_name"),children:K.A.byText}),(0,t.jsx)(X.m,{checked:eC,onChange:()=>eV("IsByText"),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isByText")})]})]})}),(0,t.jsx)(A.A,{className:eE().lyca_action,sx:{marginTop:"23px",padding:"11px 26px 11px 24px !important"},...(0,g.$h_)("lyca_action"),children:(0,t.jsx)(A.A,{className:eE().lyca_action_item,...(0,g.$h_)("lyca_action_item"),children:(0,t.jsxs)(y.A,{component:"div",variant:"h3",className:eE().heading_name_lyca,sx:{margin:"0 !important"},...(0,g.$h_)("heading_name_lyca"),children:[(0,t.jsx)(y.A,{component:"h3",variant:"h3",className:eE().field_name,...(0,g.$h_)("field_name"),children:K.A.otherLycaProduct}),(0,t.jsx)(X.m,{checked:eN,onChange:()=>eV("isOther"),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isOther")})]})})})]}),(0,t.jsxs)(A.A,{className:eE().FieldContainer,mt:1,sx:{borderRadius:" 0 0 8px 8px !important"},children:[(0,t.jsx)(y.A,{component:"h2",className:eE().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.portInReview}),(0,t.jsx)(p.Ay,{container:!0,alignItems:"center",justifyContent:"space-between",mt:1.5,children:(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{dis
1play:"flex",gap:"8px"},children:[(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(X.m,{checked:Q,onChange:()=>ee(!Q),inputProps:{"aria-label":"ant design"},...(0,g.$h_)("isByEmail")})}),(0,t.jsx)(p.Ay,{item:!0,children:(0,t.jsx)(A.A,{className:eE().OrderNew,children:(0,t.jsx)(P.A,{content:null==ep||null==(N=ep.field_content)||null==(b=N[0])?void 0:b.processed})})})]})}),B&&(0,t.jsx)(W.A,{message:String(B)||""}),(0,t.jsx)(A.A,{className:eE().BtnContainer,mt:3,children:(0,t.jsx)(j.A,{...(0,g.$h_)("confirm-request-details"),variant:"contained",className:eE().GoBack,onClick:eW,disabled:!!(!Q||(0,h.B9)(S.email_address)||(0,h.MM)(S.date_of_birth,$.age_restriction_web_prepaid))||["GB","NL","PT"].includes((null===_.l||void 0===_.l?void 0:_.l.country_code)||"")&&((0,h.KC)(S,[...(0,_.AT)(K.A,ei),...(0,_.x9)(K.A)])||!eh)||["DK","IE"].includes((null===_.l||void 0===_.l?void 0:_.l.country_code)||"")&&((0,h.KC)(S,[...(0,_.AT)(K.A,ei),...ez])||!eh)||!!B,children:K.A.continueAndRegistration})})]}),eH((0,t.jsx)(G.A,{data:z,onClose:()=>J(!1),fromLoginScreen:!E}),Z,()=>J(!1),E)]})};var eP=n(62541);let eM=e=>{let l=(0,o.d4)(i.hI),n=(0,o.d4)(s.Xk),a=(null===_.l||void 0===_.l?void 0:_.l.country_code)==="GB"&&!!(null==n?void 0:n.global_captcha),r=(0,o.wA)();return(0,m.useLayoutEffect)(()=>{let e={AU:4,NO:5,FR:5,SW:1,DK:9,NL:9,IE:9,PT:9,GB:9}[(null===_.l||void 0===_.l?void 0:_.l.country_code)??""];e&&r((0,i.bE)(e))},[]),({1:(0,t.jsx)(Z,{...e}),2:(0,t.jsx)(J,{...e}),3:(0,t.jsx)(en,{...e}),4:(0,t.jsx)(ef,{...e}),5:(0,t.jsx)(ew,{...e}),6:(0,t.jsx)(en,{...e}),7:(0,t.jsx)(ek,{...e}),8:(0,t.jsx)(eR,{...e}),9:a?(0,t.jsx)(eP.A,{children:(0,t.jsx)(eI,{...e})}):(0,t.jsx)(eI,{...e})})[l]||null},eH=(e,l,n,i)=>i?(0,t.jsx)(k.A,{open:l,onClose:n,children:e}):(0,t.jsx)(D.default,{size:"sm",id:"homepageOfferT&CPopup",className:"success_modal",open:l,onClose:n,children:e});var eO=n(47176),eL=n(16134),eV=n.n(eL);let eK=e=>{var l,n,a,s;let{statusOptions:r,isExtraFields:d,onHandleChange:c,option:u,setOption:_,isFamily:h}=e,v=(0,o.wA)(),g=(0,o.d4)(i.cH),x=h?(e=>{var l;return null==(l=g||[])?void 0:l.find(l=>(null==l?void 0:l.type)===e)})("node--coles_content"):null;return(0,m.useEffect)(()=>{var e;v((0,i.j8)({planCode:null==x||null==(e=x.field_coles_plancode)?void 0:e[0]}))},[x]),x?(0,t.jsxs)(A.A,{className:eV().portInAvailability,children:[(0,t.jsx)(T(),{src:b.z.warningIcon,alt:"Add SIM",height:23,width:23}),(0,t.jsx)("span",{children:(0,t.jsx)(P.A,{content:null==x||null==(n=x.field_description)||null==(l=n[0])?void 0:l.processed})})]}):(0,t.jsxs)(A.A,{className:eV().user_container,children:[(0,t.jsx)("hr",{className:eV().dottedline}),(0,t.jsxs)(p.Ay,{container:!0,className:eV().prefNumberContainer,children:[(0,t.jsxs)(y.A,{className:eV().prefNumberText,children:[" ",K.A.yourPrefNumber]}),(0,t.jsx)(y.A,{className:eV().prefNumberDescText,children:K.A.getNewLycaNumberActivation})]}),(0,t.jsxs)(A.A,{className:eV().status_container,children:[(0,t.jsx)(y.A,{className:eV().port_heading,children:K.A.checkstatusBy}),u?(0,t.jsxs)(A.A,{className:eV().selectedOption,children:[(0,t.jsx)(y.A,{className:eV().selectedOptionText,children:null==r||null==(a=r.find(e=>e.name===u))?void 0:a.value}),(0,t.jsx)(A.A,{className:eV().changeDetails,children:(0,t.jsx)(y.A,{className:eV().changeText,onClick:()=>{_(""),c(!1)},children:K.A.change})})]}):null==r||null==(s=r.slice())?void 0:s.map(e=>{let{id:l,value:n,name:i,field:a}=e;return(0,t.jsxs)(A.A,{className:eV().optionBox,onClick:()=>{_(i),c(a)},children:[(0,t.jsx)(y.A,{className:eV().optionText,children:n}),(0,t.jsx)(T(),{src:b.z.graycircle,height:20,width:20,alt:"icon"})]},l)}),d&&(0,t.jsx)("hr",{className:eV().dottedline}),d&&(0,t.jsx)(y.A,{className:eV().brindOldLycaFormTitle,children:K.A.detailsOfPortNumber})]})]})};var eU=n(44221),eG=n(48656),ez=n.n(eG),eY=n(72524),eW=n(50346);let eq=e=>{var l,n,a,r,d,c,v,k,D,R,F;let{formData:E,setVerifyError:$,registrationData:B,formErrors:I,setFormErrors:P,setFormData:M,handleChange:H,getNodeType:V,verifyError:U,LYCA_CONFIG:G,isXs:z,registrationFields:Y,setRegistrationFields:q,fields:Z,setFields:X,fromPageData:J,option:Q,setOption:ee}=e,el=(0,o.wA)(),en=(0,x.useRouter)(),et=(0,u.A)("(max-width:768px)"),ei=(null==G?void 0:G.max_sim_limit_registration)||0,ea=`${null==G||null==(l=G.country_number_code)?void 0:l.replace("+","")}`,es=null==G?void 0:G.is_otp_enabled_for_port_in_web,eo=["FR"].includes(null==G?void 0:G.country_code),er=(0,o.d4)(i.SC),[ec,eu]=(0,m.useState)((0,_.EE)(K.A,G)),[em,e_]=(0,m.useState)(new Set),[ep,eh]=(0,m.useState)(""),[ev,eg]=(0,m.useState)(0),[ex,eA]=(0,m.useState)(!1),[ef,ej]=(0,m.useState)(null==G?void 0:G.is_reg_web_display_puk_first),[eb,eC]=(0,m.useState)(!1),[ew,eN]=(0,m.useState)(!1),[eS,ek]=(0,m.useState)(""),[eD,eR]=(0,m.useState)(""),eF=ey.A.get("NEXT_LOCALE")??"en",[eE,e$]=(0,m.useState)(!1);(0,o.d4)(s.Xk);let eT=(0,o.d4)(i.Jj),[eB,eI]=(0,m.useState)(!0),[eP,eM]=(0,m.useState)(""),[eL,eV]=(0,m.useState)(""),[eG,eq]=(0,m.useState)(!1),eZ=null===_.l||void 0===_.l?void 0:_.l.registrationOTP,[eX,eJ]=(0,m.useState)(""),eQ=(e,l)=>{let n={...e};
1return l.forEach(e=>delete n[e]),n},e0=async e=>{var l,n,t,i,a;let s=(null==e?void 0:e.msisdn)??"";eJ(s);try{let e=await (0,ed.Pj)(s);if((null==e?void 0:e.status)===200||(null==e?void 0:e.status)===204){if((null==e?void 0:e.data)&&(null==e||null==(t=e.data)?void 0:t.mnp_ind)==="2")return void $(K.A.enterValidMobileNumber);e1(s)}else(null==e||null==(n=e.response)||null==(l=n.data)?void 0:l.message)&&$(K.A.enterValidMobileNumber)}catch(e){$(null==(a=e.response)||null==(i=a.data)?void 0:i.message)}},e1=async e=>{eC(!0),eR("");try{let l=await (0,ed.lC)({reason_otp_generation:"login",preferred_language:(0,g.bhz)(),msisdn:e,operation:"Registration"});if(eC(!1),(null==l?void 0:l.status)===200){eN(!0),eg(null==G?void 0:G.otp_expiry);let{token_id:e=""}=(null==l?void 0:l.data)||{};eh(e)}}catch(e){var l,n;$((null==e||null==(n=e.response)||null==(l=n.data)?void 0:l.message)||K.A.invalidCredentials),eC(!1)}},e2=async()=>{eC(!0);try{let{status:e,data:l}=await O.A.post(w.t.validateOtp,{reason_otp_generation:"login",preferred_language:(0,g.bhz)(),msisdn:eX??"",token_id:ep,credential:eD,credential_type:"otp",email_id:""});eC(!1),200===e&&(el((0,eW.BV)(l)),el((0,i.rK)(2)))}catch(i){var e,l,n,t;ek((null==i||null==(l=i.response)||null==(e=l.data)?void 0:e.message)||K.A.invali
1dCredentials),$((null==i||null==(t=i.response)||null==(n=t.data)?void 0:n.message)||K.A.invalidCredentials),eC(!1)}},e3=async()=>{eR(""),eC(!0);try{let{status:e,data:l}=await (0,ed.l6)({reason_otp_generation:"login",preferred_language:(0,g.bhz)(),token_id:ep,msisdn:eX});if(eC(!1),200===e){eg(null==G?void 0:G.otp_expiry),eR("");let{token_id:e=""}=l||{};eh(e)}}catch(e){eC(!1)}},e4=(0,t.jsxs)("div",{className:ez().regEligibilityErrSec,children:[K.A.regEligibilityTxt," ",(0,t.jsx)("br",{}),(0,t.jsx)("span",{onClick:()=>{en.push(`/${eF}/quick-top-up/`)},className:ez().hereLink,children:K.A.regIccidCcDcTxt}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{onClick:()=>e$(!0),className:ez().hereLink,children:K.A.regIccidVoucherTxt})]}),e8=null==G?void 0:G.is_web_puk_enabled,e6=["FR","AU"].includes((null===_.l||void 0===_.l?void 0:_.l.country_code)??""),e5=null==(a=(0,_.uo)(K.A,G))||null==(n=a.filter(e=>!!e8||!e.isPukCode))?void 0:n.map(e=>{let{fieldAction:l,...n}=e;return n}),e7=()=>(null==G?void 0:G.is_web_puk_enabled)&&ef?K.A.pukCode:"LycaMobile",e9=()=>{var e;return(null==(e=(0,_.kF)(K.A,G))?void 0:e.length)>0?ex?"Opted Port In":"Opted New sim":""};(0,m.useEffect)(()=>{if((0,g.a44)(G)){var e,l,n;let t=null==(e=(0,_.uo)(K.A,G))?void 0:e.filter(e=>ef?!e.isMsisdn:!e.isPukCode),i=e8?t:e5,a=null==(n=(0,_.uo)(K.A,G))||null==(l=n.filter(e=>{var l;return null==e||null==(l=e.name)?void 0:l.startsWith(ef?"pukcode":"msisdn")}))?void 0:l.map(e=>{let{fieldAction:l,...n}=e;return n}),s=t.map(e=>e.name);M(e=>eQ(e,s)),P(e=>eQ(e,s)),X(i),(null==Y?void 0:Y.length)>0&&q(e=>null==e?void 0:e.map(e=>{var l,n,t,i;let s=(null==e?void 0:e.map(e=>e.name))||[];M(e=>eQ(e,s)),P(e=>eQ(e,s));let o=null==e||null==(t=e[1])||null==(n=t.name)||null==(l=n.split("_"))?void 0:l[1];return i=[...(a||[]).map(e=>({...e,name:`${e.name}_${o}`}))||[],...e.slice(1)],i.map(e=>e.isIccid&&e.isDisabled?{...e,isDisabled:!1}:e)}))}},[G,ef]),(0,m.useEffect)(()=>{if(ev>0){let e=setTimeout(()=>eg(e=>e-1),1e3);return()=>clearTimeout(e)}},[ev]),(0,m.useEffect)(()=>{let e=ex?(0,_.kF)(K.A,G):[];(0,g.a44)(G)&&eu([...Z,...(0,h.ed)(Y),...e])},[Y,ex,G,Z]);let le=(0,h.Zl)(B,"node--rm_redirection"),ll=e=>{X(l=>null==l?void 0:l.map(l=>"iccid"===l.name?{...l,isDisabled:e}:l))},ln=(e,l)=>{var n;let t=null==e||null==(n=e.split("_"))?void 0:n[1];q(e=>null==e?void 0:e.map(e=>null==e?void 0:e.map(e=>e.name===`iccid_${t}`?{...e,isDisabled:l}:e)))},lt=()=>{var e,l;let n=(()=>{for(let e=1;e<=ei;e++)if(!em.has(e))return e;return ei+1})(),t=(null==(l=(0,_.uo)(K.A,G)||[])||null==(e=l.filter(e=>ef?!e.isMsisdn:!e.isPukCode))?void 0:e.map(e=>{let{fieldAction:l,...n}=e;return n})).map(e=>e.isMsisdn?{...e,name:`${e.name}_${n}`,maxLength:null==G?void 0:G.msisdn_length}:e.isIccid?{...e,name:`${e.name}_${n}`,minLength:(null==G?void 0:G.iccid_min_length)||16,maxLength:(null==G?void 0:G.iccid_max_length)||19}:e.isPukCode?{...e,name:`${e.name}_${n}`,minLength:8,maxLength:8}:e);q(e=>[...e,t]),e_(e=>new Set(e).add(n))},li=async(e,l)=>{var n;let{name:t=""}=l.target||{};P(e=>{let{[t]:l,...n}=e;return n});let i=null==t||null==(n=t.split("_"))?void 0:n[1];if((null==e?void 0:e.isMsisdn)||(null==e?void 0:e.isPukCode)){if(i)return void ln(t,!1);ll(!1)}},la=async(e,l)=>{let n=(0,_.ev)(E),t={...n,iccid:e.iccid,msisdn:e.msisdn,aus:{...n.aus,...ep?{token_id:ep}:{},...(null==E?void 0:E.otp)?{otp:E.otp}:{},process_mode:h.WR[l]||null}};try{let{data:e,status:n}=await O.A.post(w.t.initiatePortIn(h.dg[null===_.l||void 0===_.l?void 0:_.l.country_code]),t);200===n&&("generate"===l&&(eh(e.reference_code),eN(!0),ek(""),eg(null==G?void 0:G.otp_expiry)),"resend"===l&&eg(null==G?void 0:G.otp_expiry),"validate"===l&&(eN(!1),el((0,i.rK)(2)),el((0,i.bE)(4)),el((0,i.bp)(t))))}catch(n){var a,s,o;let e=(null==n||null==(s=n.response)||null==(a=s.data)?void 0:a.message)||(null==n||null==(o=n.response)?void 0:o.data);if(["validate","resend"].includes(l))return void ek(e);null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:e||"na"}),el((0,S.ZD)({display:!0,severity:"error",message:e}))}},ls=async e=>{let{puk_code:l,msisdn:n,iccid:t}=e,i={...l?{puk_code:l}:{},...n?{msisdn:`${n}`}:{},...t?{iccid:t}:{}};try{let{status:e,data:l}=await O.A.post(w.t.getSimdetails,i);if(200===e)return l}catch(l){var a,s,o;let e=(null==l||null==(s=l.response)||null==(a=s.data)?void 0:a.message)||(null==l||null==(o=l.response)?void 0:o.data);null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:e||"na"}),"Please Enter Valid ICCID/PUKCODE/MSISDN"==e?$(K.A.enterValidIccidPukcodeMsisdn):$(e)}},lo=async()=>
1{let e=[...Z,...(0,h.ed)(Y)],l=null==e?void 0:e.reduce((e,l)=>{var n,t,i,a,s,o;let r=(null==l||null==(i=l.name)||null==(t=i.split)||null==(n=t.call(i,"_"))?void 0:n[1])?parseInt(null==l||null==(o=l.name)||null==(s=o.split)||null==(a=s.call(o,"_"))?void 0:a[1]):0,d=e[r]||{iccid:"",msisdn:"",puk_code:"",type:"",retailer_id:"",session_id:(0,N.A)()};return(null==l?void 0:l.isIccid)&&(d.iccid=(0,h.XF)(E[l.name])||""),(null==l?void 0:l.isPukCode)&&(d.puk_code=(0,h.XF)(E[l.name])||""),(null==l?void 0:l.isMsisdn)&&(d.msisdn=`${ea}${(0,h.XF)(E[l.name]).replace(/^0+/,"")}`),e[r]=d,e},[]).filter(Boolean);eC(!0);let n=null,t=[];try{if("family"===ld&&l&&(null===_.l||void 0===_.l?void 0:_.l.country_code)==="AU"){let e=null==l?void 0:l.map(e=>e.iccid),{status:n,data:t}=await O.A.post(w.t.colesSimValidation,{sim_details:e});if(200===n&&t.length){let e=!0;if(null==t||t.some(l=>{if(!1===l.status){console.log("item?.iccid",null==l?void 0:l.iccid);let n=(0,h.Ku)(E,null==l?void 0:l.iccid,ea);n&&P(e=>({...e,[n]:null===K.A||void 0===K.A?void 0:K.A.familySimIccidErrorMessage})),e=!1}}),!e)return}}for(let e of l)try{var a,s,o,r,d,c;let l=await ls(e);if("family"!==ld&&(null===_.l||void 0===_.l?void 0:_.l.country_code)==="AU"&&""==l.last_topup_date&&"0.00"==l.main_balance){let e=l.iccid,n=l.imsi;return el((0,i.uE)(e)),eM(e),eV(n),$(e4),!1}let u=e6||(null==(a=e.iccid)?void 0:a.length)===(null==(s=l.iccid)?void 0:s.length)?e.iccid:l.iccid,m=(null==(o=e.puk_code)?void 0:o.length)!=l.puk_code?l.puk_code:e.puk_code,{status:p,data:v}=await O.A.post(w.t.validateRegistrationV2,[{details:{...e,type:0,iccid:u,msisdn:l.msisdn,puk_code:m}}]);if(200===p)if((null==v?void 0:v.length)>0&&"0"===v[0].code){if(t=[...t,l],el((0,i.gZ)(t)),l&&!n&&(el((0,i.Mp)(l)),n=l),(0,h.C0)("activateSim",1,e7(),e9()),eZ)return e0(l);el((0,i.rK)(2))}else{let l=(null==e?void 0:e.puk_code)||(null==e?void 0:e.msisdn),n=(0,h.Ku)(E,l,ea);if(n){P(e=>({...e,[n]:K.A.alreadyRegistered}));let e=(null==(r=n.split("_"))?void 0:r[1])?parseInt(null==n||null==(c=n.split)||null==(d=c.call(n,"_"))?void 0:d[1]):0,l=e?`iccid_${e}`:"iccid";ll(!0),ln(`${l}`,!0),M(e=>{let{[l]:n,...t}=e;return t}),P(e=>{let{[l]:n,...t}=e;return t})}}}catch(e){if(e.response){let l=e.response.data;if(Array.isArray(l))l[0].errors.forEach(e=>{var n,t,i,a,s;if(["4","5"].includes(e.plintron_error_code)){let t=(0,h.Ku)(E,null==l||null==(n=l[0])?void 0:n.iccid,ea);t&&P(l=>({...l,[t]:e.message})),(0,h.C0)("activateSim-failure",1,e7(),e9(),e.message)}else if(["3","2"].includes(e.plintron_error_code))["iccid"].forEach(n=>{var t;let i=(0,h.Ku)(E,null==l||null==(t=l[0])?void 0:t[n],ea);i&&(P(l=>({...l,[i]:e.message})),ll(!0))}),(0,h.C0)("activateSim-failure",1,e7(),e9(),e.message);else if(["9","1"].includes(e.plintron_error_code)){let n=ef?"puk_code":"msisdn",o=null==l||null==(t=l[0])?void 0:t[n],r=(0,h.Ku)(E,o,ea);r&&P(l=>({...l,[r]:e.message})),(0,h.C0)("activateSim-failure",1,e7(),e9(),e.message),ll(!0);let d=(null==r||null==(i=r.split("_"))?void 0:i[1])?parseInt(null==r||null==(s=r.split)||null==(a=s.call(r,"_"))?void 0:a[1]):0,c=d?`iccid_${d}`:"iccid";ln(`${c}`,!0),M(e=>{let{[c]:l,...n}=e;return n}),P(e=>{let{[c]:l,...n}=e;return n})}else $(null==e?void 0:e.message);null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e?void 0:e.message)||"na"})});else{let e=l.message||l;null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:e||"na"}),$(e)}}throw e}n&&ex&&await la(n,"generate")}catch(e){console.error("An unexpected error occurred:",e)}finally{eC(!1)}},lr=[{id:1,name:"msisdn",value:K.A.activateMyNewLycaMobileSim,field:!1},{id:2,name:"port_in_msisdn",value:K.A.bringMyoldLycaNumber,field:!0}],[ld,lc]=(0,m.useState)((null==J?void 0:J.from)||null);return(0,m.useEffect)(()=>{"family"===ld&&0===em.size&&(0,g.a44)(G)&&(lt(),ee("msisdn"))},[G]),(0,m.useEffect)(()=>{(null==E?void 0:E.type_service)&&(P&&P(e=>{let l={...e};return delete l.customer_dob,l}),M(e=>eQ(e,["customer_dob"])))},[null==E?void 0:E.type_service]),(0,t.jsxs)(m.Fragment,{children:[eb&&(0,t.jsx)(L.A,{}),(0,t.jsxs)(A.A,{className:ez().FieldContainer,children:[(0,t.jsx)(y.A,{component:"h2",className:ez().FieldHeader,children:K.A.verifySIMDetails}),"family"===ld&&(0,t.jsx)(y.A,{component:"div",className:ez().FieldSubHeader,children:K.A.primarySIMDetails}),(0,t.jsxs)(p.Ay,{container:!0,columnSpacing:2.6,children:[(0,t.jsx)(p.Ay,{item:!0,xs:12,sm:9,md:9,lg:9,children:null==Z?void 0:Z.map(e=>(0,m.createElement)(p.Ay,{item:!0,...(null==e?void 0:e.parentGrid)||(null==e?void 0:e.grid),key:null==e?void 0:e.label},(0,t.jsx)(C.P,{field:e,value:E[e.name]||"",formData:E,formErrors:I,setFormData:M,handleChange:H,fieldsMsisdnCheck:li,handleSwitch:()=>ej(!ef),helperText:I[e.name],fromPageInfo:J})))}),(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:3,md:3,lg:3,mt:z?3:void 0,className:ez().simicon,sx:{paddingLeft:"12.12px !important",textAlign:z?"center":void 0},children:["family"!==ld&&(0,t.jsx)(T(),{src:b.z.portInSimIconNew,height:209.4,width:172.4,alt:"icon",fetchPriority:"high",loading:"eager",quality:100}),"family"===ld&&(0,t.jsx)(T(),{src:b.z.parentChildSimIcon,height:209.4,width:172.4,alt:"icon",fetchPriority:"high",loading:"eager",quality:100})]})]}),null==Y?void 0:Y.map((e,l)=>(0,t.jsxs)(m.Fragment,{children:[(0,t.jsx)("hr",{className:ez().dashedDivider}),"family"===ld&&(0,t.jsx)(y.A,{component:"div",className:ez().FieldSubHeader,children:K.A.secondarySIMDetails}),(0,t.jsxs)(p.Ay,{container:!0,columnSpacing:2.6,children:[null==e?void 0:e.map((e,n)=>(0,t.jsxs)(m.Fragment,{children:[(0,t.jsx)(f.A,{className:ez().dashedDivider}),(0,t.jsx)(p.Ay,{item:!0,xs:(e.isMsisdn||e.isPukCode)&&"family"!==ld?10:12,sm:9,md:9,lg:9,children:(0,t.jsx)(p.Ay,{item:!0,...e.grid,children:(0,t.jsx)(C.P,{field:e,value:E[e.name]||"",formData:E,formErrors:I,setFormData:M,handleChange:H,fieldsMsisdnCheck:li,helperText:I[e.name]})})}),"family"!==ld&&0===n&&(0,t.jsx)(p.Ay,{item:!0,xs:2,sm:3,md:3,lg:3,className:ez().simicon,sx:{paddingLeft:"12.12px !important",textAlign:z?"center":void 0},children:(0,t.jsx)(A.A,{className:ez().DeleteBox,onClick:()=>(e=>{q(l=>{if(e>=0&&e<(null==l?void 0:l.length)){var n,t,i;let a=null==l?void 0:l.filter((l,n)=>n!==e),s=null==(n=(null==l?void 0:l[e])||[])?void 0:n.map(e=>e.name);return M(e=>eQ(e,s)),P(e=>eQ(e,s)),e_(new Set(null==a||null==(i=a.flat())||null==(t=i.map(e=>{var l;let n=null==e||null==(l=e.name)?void 0:l.match(/_(\d+)$/);return n?parseInt(n[1],10):null}))?void 0:t.filter(Boolean))),a}return l})})(l),children:(0,t.jsx)(T(),{src:b.z.deleteBtn,width:15,height:16.67,alt:"icon",loading:"lazy",quality:100})})})]},e.name)),"family"===ld&&(0,t.jsx)(p.Ay,{item:!0,xs:12,sm:3,md:3,lg:3,mt:z?3:void 0,className:ez().simicon,sx:{paddingLeft:"12.12px !important",textAlign:z?"center":void 0},children:(0,t.jsx)(T(),{src:b.z.infoChildSimIcon,className:ez().infoChildSimIcon,height:209.4,width:172.4,alt:"icon",loading:"lazy",quality:100})})]})]})),(null==G?void 0:G.is_web_multi_sim_enabled)&&"family"!==ld&&(null==Y?void 0:Y.length)<ei&&(0,t.jsxs)(m.Fragment,{children:[(0,t.jsx)("hr",{className:ez().dashedDivider}),(0,t.jsxs)(A.A,{className:ez().AddSim,children:[(0,t.jsx)(T(),{src:b.z.plusCircleBlue,alt:"Add SIM",height:20,width:20}),(0,t.jsx)("span",{onClick:lt,children:K.A.addSim})]})]}),(null==(r=(0,_.kF)(K.A,G))?void 0:r.length)>0&&(null===_.l||void 0===_.l?void 0:_.l.country_code)!=="AU"&&(0,t.jsxs)(m.Fragment,{children:[(0,t.jsx)(eK,{statusOptions:lr,isExtraFields:ex,on
1HandleChange:e=>eA(e),option:Q,setOption:e=>{if(!e){var l;let e=null==(l=(0,h.dq)(E,(0,_.kF)(K.A,G)))?void 0:l.map(e=>e.name);M(l=>eQ(l,e)),P(e=>eQ(e,["customer_dob"])),U&&$("")}ee(e)},isFamily:ld}),ex?(0,t.jsx)(p.Ay,{container:!0,spacing:2,children:null==(d=(0,_.kF)(K.A,G))?void 0:d.map(e=>(0,m.createElement)(p.Ay,{item:!0,sx:{paddingTop:"0 !important"},...e.grid,key:e.label},(0,t.jsx)(C.P,{field:e,value:E[e.name]||"",formData:E,formErrors:I,setFormData:M,setFormErrors:P,handleChange:H,helperText:I[e.name]})))}):null]}),U&&("string"==typeof U?(0,t.jsx)(W.A,{message:U}):(0,t.jsx)("div",{className:ez().CustomError,children:U})),eE&&(0,t.jsx)(eY.A,{vouvherImage:null==eT||null==(c=eT.cms_data)?void 0:c.find(e=>(null==e?void 0:e.type)==="node--dashboard_voucher"),iccidNumber:eP,imsiNumber:eL,setIsCredit:eI,hideBackIcon:!0,fromTopupRegistration:!0,onVoucherSuccess:()=>{eq(!0),eI(!0),U&&$("")},onClose:()=>{e$(!1),U&&$("")}}),(0,t.jsx)(A.A,{className:ez().BtnContainer,mt:3,children:(0,t.jsx)(j.A,{...(0,g.$h_)("confirm-request-details"),variant:"contained",className:ez().GoBack,onClick:lo,disabled:0!==Object.keys(I).length||(0,h.KC)(E,ec)||(null==(v=(0,_.kF)(K.A,G))?void 0:v.length)>0&&!(Q.trim().length>0)||!!U||!!((null==(k=(0,_.kF)(K.A,G))?void 0:k.length)>0&&ex&&E.customer_dob&&(0,h.MM)(E.customer_dob,G.age_restriction_web_prepaid)),children:eP?K.A.clickHeretoContinueRegister:K.A.continue})}),!eo&&(0,t.jsxs)(y.A,{className:ez().OrderNew,children:[K.A.joinUs," "," ",(0,t.jsxs)("span",{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(String(le.field_order_new_sim_url))},children:[" ",K.A.orderSIM]})]}),(0,t.jsx)(eO.A,{content:null==(F=V("node--switch_to_lyca"))||null==(R=F.field_description)||null==(D=R[0])?void 0:D.processed,mt:3})]}),eH((0,t.jsx)(eU.A,{onClose:()=>eN(!1),validateOtp:()=>la(er,"validate"),otp:eD,setOtp:eR,handleOTPChange:e=>{es&&M({...E,otp:e}),ek(""),eR(e)},isMobile:et,count:ev,number:E.port_in_msisdn,resend:()=>la(er,"resend"),otpError:eS}),ew,()=>eN(!1),et),ew&&eH((0,t.jsx)(eU.A,{onClose:()=>eN(!1),validateOtp:()=>e2(),otp:eD,setOtp:eR,handleOTPChange:e=>{es&&M({...E,otp:e}),ek(""),eR(e)},isMobile:et,count:ev,number:eX,resend:()=>e3(),otpError:eS}),ew,()=>eN(!1),et)]})};var eZ=n(25359),eX=n.n(eZ),eJ=n(34358),eQ=n(22353);let e0=e=>{let{onPasswordChange:l}=e,[n,i]=(0,m.useState)(""),[a,s]=(0,m.useState)(""),[o,r]=(0,m.useState)(""),[d,c]=(0,m.useState)(""),u=e=>!(e.length<12)&&!(e.length>20)&&/[A-Z]/.test(e)&&/\d/.test(e)&&/[£$%^&*()_+{}|:"<>?~]/.test(e)?"":K.A.passwordSetupErrorMsg;return(0,m.useEffect)(()=>
1{l({password:n,confirmPassword:a,passwordError:o,confirmPasswordError:d})},[n,a,o,d]),(0,t.jsxs)(A.A,{className:eX().FieldContainer,children:[(0,t.jsxs)(A.A,{sx:{marginBottom:"15px"},children:[(0,t.jsx)(eJ.A,{type:"password",name:"password",id:"password",maxLength:20,textFieldLabel:K.A.enterNewPassword,textFieldValue:n,onTextFieldChange:e=>(e=>{i(e),r(u(e)),a&&e!==a?c("Passwords do not match."):c("")})(e.target.value)}),o&&(0,t.jsx)(eQ.A,{className:eX().alert,severity:"error",children:o})]}),(0,t.jsxs)(A.A,{children:[(0,t.jsx)(eJ.A,{type:"password",name:"confirm_password",id:"confirm_password",maxLength:20,textFieldLabel:K.A.confirmPassword,textFieldValue:a,onTextFieldChange:e=>(e=>{s(e);let l=u(e);l?c(l):n!==e?c("Passwords do not match."):c("")})(e.target.value)}),d&&(0,t.jsx)(eQ.A,{className:eX().alert,severity:"error",children:d})]})]})},e1=e=>{var l,n,a,r,d,c,u,v,f,C,N,S,k,D,R,F,E,$,B,I,M,H,L,V,U,G,z,Y;let{getNodeType:W}=e,q=(0,x.useRouter)(),Z=(0,o.wA)(),X=(0,o.d4)(s.i),J=(0,o.d4)(i.bN),Q=(0,o.d4)(i.m5)??"",el=(0,o.d4)(i.eO),en=(0,o.d4)(i.Ut),et=(0,o.d4)(s.Xk),ei=`${null==el||null==(l=el.details)?void 0:l.first_name} ${null==el||null==(n=el.details)?void 0:n.last_name}`,ea=W({6:"node--image_with_text_and_cta_button",4:(null==et?void 0:et.country_code)==="CH"?"node--description_with_2_buttons":"node--description_with_3_buttons"}[J]||"node--description_with_2_buttons"),es=null==ea||null==(a=ea.children)?void 0:a.filter(e=>"paragraph--registration_buttons"==e.type),eo=W("node--coles_autorenewal_with_2_buttons")??null,er=null==eo||null==(r=eo.children)?void 0:r.filter(e=>"paragraph--registration_buttons"==e.type);(0,m.useEffect)(()=>{4==J&&(null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationSuccess",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number"}))},[J,h.ov]);let[ed,ec]=(0,m.useState)({password:"",confirmPassword:"",passwordError:"",confirmPasswordError:""}),[eu,em]=(0,m.useState)(!1),e_=(0,o.d4)(i.Ds)??"",ep=(0,o.d4)(i.s1)??"",eh=async()=>{try{let e=ed.password,l=null===_.l||void 0===_.l?void 0:_.l.country_code;if(!l)return;if(["GB","DK","IE","NL","PT","USA"].includes(l)){await O.A.post(w.t.manageMsisdnAccount,{...ev(1,e_,ep,e)});let{status:l}=await O.A.post(w.t.manageMsisdnAccount,{...ev(2,e_,ep,e)});200==l&&em(!0)}}catch(e){console.log(e)}},ev=(e,l,n,t)=>({details:{request_type:e.toString(),msisdn_list:{mobile_number:[{msisdn:n}]},email_id:l,password:t}});return(0,t.jsx)(A.A,{className:ee().FieldContainer,children:(0,t.jsx)(p.Ay,{container:!0,justifyContent:"center",alignItems:"center",children:(0,t.jsx)(p.Ay,{item:!0,xs:12,sm:8.5,md:8.5,lg:8.5,textAlign:"center",children:6==J?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T(),{src:null==ea||null==(C=ea.children)||null==(f=C[0])||null==(v=f.children)||null==(u=v[0])||null==(c=u.uri)||null==(d=c[0])?void 0:d.url,height:76,width:76,alt:"failure"}),(0,t.jsx)(y.A,{className:ee().WelcomeCustomer,children:(0,h.fO)(null==ea||null==(S=ea.field_header)||null==(N=S[0])?void 0:N.processed).textContent}),(0,t.jsx)(y.A,{className:ee().ErrorSubHeading,children:(0,h.fO)(null==ea||null==(D=ea.field_description)||null==(k=D[0])?void 0:k.processed).textContent}),(0,t.jsx)(A.A,{className:ee().BtnContainer,children:(0,t.jsx)(j.A,{variant:"contained",className:ee().Primary,sx:{marginTop:"1.5rem"},onClick:()=>{if((null==et?void 0:et.country_code)==="AU")Z((0,i.rK)(2));else{var e;window.open((null==ea||null==(e=ea.field_button_cta_text_link)?void 0:e[0])??"/","_blank")}},children:(0,h.fO)(null==ea||null==(F=ea.field_cta_button_text)||null==(R=F[0])?void 0:R.processed).textContent})})]}):(0,t.jsx)(t.Fragment,{children:X?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T(),{src:b.z.topUpSuccess,height:76,width:76,alt:"Auto renewal success icon",loading:"lazy",quality:100}),(0,t.jsxs)(A.A,{mb:3,children:[(0,t.jsx)(y.A,{className:ee().WelcomeCustomer,children:(0,t.jsx)(P.A,{content:null==eo||null==($=eo.field_heading)||null==(E=$[0])?void 0:E.processed})}),(0,t.jsx)(y.A,{className:ee().CustomerName,children:(0,t.jsx)(P.A,{content:null==eo||null==(I=eo.field_description)||null==(B=I[0])?void 0:B.processed})})]}),null==er?void 0:er.map((e,l)=>{var n,i;let{textContent:a=""}=(0,h.fO)(null==e||null==(i=e.field_button_cta_text)||null==(n=i[0])?void 0:n.processed);return(0,t.jsx)(A.A,{className:ee().BtnContainer,children:(0,t.jsx)(j.A,{...(0,g.$h_)(`${a}
1`),variant:"contained",className:ee()[0==l?"Primary":"Tertiary"],sx:{margin:l===er.length-1?"0px":"0 0 1rem 0"},onClick:()=>{var l;return window.open((null==e||null==(l=e.field_button_cta_text_link)?void 0:l[0])??"/","_blank")},children:a})},l+1)})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T(),{src:b.z.tickgreen,height:76,width:76,alt:"success"}),(0,t.jsx)(y.A,{className:ee().WelcomeCustomer,children:K.A.welcomeAboard}),(null==el||null==(H=el.details)||null==(M=H.first_name)?void 0:M.length)>0?(0,t.jsx)(y.A,{className:ee().CustomerName,children:(0,h.nD)(ei)}):(0,t.jsx)(y.A,{className:ee().CustomerName,children:(0,h.nD)(Q)}),(0,t.jsxs)(A.A,{className:ee().ListItem,children:[(0,t.jsx)(P.A,{content:null==ea||null==(V=ea.field_description)||null==(L=V[0])?void 0:L.processed}),5===J&&(null==ea||null==(G=ea.field_text)||null==(U=G[0])?void 0:U.processed)&&(0,t.jsx)(P.A,{content:null==ea||null==(Y=ea.field_text)||null==(z=Y[0])?void 0:z.processed})]}),!eu&&""!=e_&&(0,t.jsxs)(A.A,{className:ee().BtnContainer,mt:3,children:[(0,t.jsx)(y.A,{component:"h2",className:ee().FieldHeader,sx:{marginBottom:"0 !important"},children:K.A.passwordSetup}),(0,t.jsx)(e0,{onPasswordChange:ec}),(0,t.jsx)(j.A,{variant:"contained",className:ee().GoBack,onClick:eh,disabled:ed.passwordError||ed.confirmPasswordError||!ed.password||!ed.confirmPassword,children:K.A.submit})]}),eu&&(0,t.jsx)(A.A,{className:ee().BtnContainer,mt:3,children:(0,t.jsx)(j.A,{variant:"contained",className:ee().GoBack,onClick:()=>q.push("/"),children:K.A.backHomePage})}),(null==et?void 0:et.country_code)==="CH"&&(null==ea?void 0:ea.field_show_download[0])===!0&&en&&(null==en?void 0:en.length)>0&&(0,t.jsx)(A.A,{className:ee().BtnContainer,children:(0,t.jsx)(j.A,{...(0,g.$h_)("complycube-dowload-pdf"),variant:"contained",className:ee().Primary,sx:{margin:"0 0 1rem 0"},onClick:()=>{let e=document.createElement("a");e.href=`data:application/pdf;base64,${en}`,e.download="user-details.pdf",e.click()},children:K.A.downloadConfirmationPDF})}),null==es?void 0:es.map((e,l)=>{var n,i;let{textContent:a=""}=(0,h.fO)(null==e||null==(i=e.field_button_cta_text)||null==(n=i[0])?void 0:n.processed);return(0,t.jsx)(A.A,{className:ee().BtnContainer,children:(0,t.jsx)(j.A,{...(0,g.$h_)(`${a}`),variant:"contained",className:ee()[0==l?"Primary":"Tertiary"],sx:{margin:l===es.length-1?"0px":"0 0 1rem 0"},onClick:()=>{var l;return window.open((null==e||null==(l=e.field_button_cta_text_link)?void 0:l[0])??"/","_blank")},children:a})},l+1)})]})})})})})};var e2=n(3769),e3=n.n(e2);let e4=e=>{var l,n,i,a,s,o,r;let{screens:c,currentIndex:u,headingLogo:m}=e,_=100/(null==c?void 0:c.length),h=null==m||null==(o=m.children)||null==(s=o[0])||null==(a=s.children)||null==(i=a[0])||null==(n=i.uri)||null==(l=n[0])?void 0:l.url;return(0,t.jsxs)(d.A,{className:e3().progressHeader_container,children:[(0,t.jsx)("div",{className:e3().progressHeader_logo_container,children:h&&(0,t.jsx)(T(),{src:h,alt:"logoImage",width:92,height:37,...(0,g.$h_)("brand-logo-image"),className:e3().brand_logo})}),(0,t.jsx)(p.Ay,{container:!0,spacing:2,className:e3().form_grid,children:null==c||null==(r=c.slice())?void 0:r.map((e,l)=>(0,t.jsx)(p.Ay,{item:!0,xs:12/c.length,className:e3().progress_header_title,sx:{color:(e=>e<u-1?"#46286E":e===u-1?"#2C68D8":"#6b7280")(l)},children:(0,t.jsx)("p",{children:e})},e))}),(0,t.jsx)("div",{className:e3().progress_bar_container,children:(0,t.jsx)("div",{className:e3().progress_bar,style:{background:`linear-gradient(to right, #08DC7D ${u>1?100*(u-1)/u-2:20}%, #006AE0 ${u>1?100*(u-1)/u:30}%)`,width:`${Math.min(_*u,100)}%`}})})]})};var e8=n(43040),e6=n(84940),e5=n.n(e6);let e7=e=>{let{headingDetails:l}=e;return(0,t.jsxs)(d.A,{className:e5().HeaderContainer,children:[(0,t.jsx)(y.A,{component:"h2",className:e5().Heading,children:l.Heading}),(0,t.jsx)(y.A,{component:"p",className:e5().Para,children:l.Para})]})};var e9=n(70131),le=n.n(e9),ll=n(44058),ln=n(8096),lt=n(78332),li=n(85488),la=n(60849),ls=n(42353),lo=n(18847),lr=n.n(lo);let ld=e=>{var l;let{getNodeType:i}=e,a=(0,x.useRouter)(),r=null==(l=i("node--sim_registration"))?void 0:l.children,u=i("node--rm_redirection"),v=i("node--accordion"),A=lr()(()=>Promise.all([n.e(27107),n.e(31793),n.e(31488),n.e(36697)]).then(n.bind(n,31488)),{loadableGenerated:{webpack:()=>[31488]},ssr:!1}),[f,C]=(0,m.useState)(""),[w,k]=(0,m.useState)(!1),[D,R]=(0,m.useState)(!1),[F,E]=(0,m.useState)(""),[$,T]=(0,m.useState)(!1),[B,I]=(0,m.useState)(""),[M,H]=m.useState(!1),O=(0,o.d4)(s.Xk),[V,U]=(0,m.useState)(),[G,z]=(0,m.useState)(!1),Y=(0,o.wA)(),W=async(e,l,n)=>{let t=(0,g.beD)(e)?((null==O?void 0:O.msisdn_length)??0)+1:null==O?void 0:O.msisdn_length;(null==e?void 0:e.length)<=(t??0)&&((0,ls.KK)(!1),U(!1),(0,la.UI)(eB.H.phoneNumberFromHomeTopup,!0),n?T(n.error):T(n),/^\d*$/.test(e)&&(C(e),I((0,g.c2J)(e))),k(!1),(null==e?void 0:e.length)===(t??0)&&R(!0))};return m.useEffect(()=>{if(D||M){let e=setTimeout(async()=>{let e=(null==O?void 0:O.msisdn_length)&&(0,g.NvD)(f,null==O?void 0:O.msisdn_length,k,E);if(!$&&!e&&(0,g.c2J)(f).length>0){var l,n,t,i,a;z(!0);try{let e=(null==O||null==(l=O.country_number_code)?void 0:l.substring(1))+(0,g.c2J)(f),{data:t,status:i}=await (0,ed.Pj)(e);z(!1),((n=[204,200],void 0===n)?void 0:n.includes(i))?((0,ls.KK)(!0),U(!0)):(E(K.A.enterValidMobileNumber??""),k(!0),(0,ls.KK)(!1),U(!1))}catch(e){null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e||null==(i=e.response)||null==(t=i.data)?void 0:t.message)||"na"}),E(e.message),Y((0,S.ZD)({display:!0,severity:"error",message:null==e||null==(a=e.response)?void 0:a.data.message})),z(!1),(0,ls.KK)(!1),U(!1),E(e.message),k(!0)}}},1e3);return()=>clearTimeout(e)}},[D,M,f]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.A,{className:ez().RMFieldContainer,children:[G&&(0,t.jsx)(L.A,{}),(0,t.jsx)(d.A,{sx:{flexGrow:1},children:(0,t.jsx)(c.A,{maxWidth:"lg",sx:{padding:"0 !important"},children:(0,t.jsx)(p.Ay,{container:!0,justifyContent:"center",children:(0,t.jsx)(p.Ay,{container:!0,xs:12,sm:10,md:8,lg:6,children:Array.isArray(r)&&(null==r?void 0:r.map((e,l)=>{var n,i,s,o,r,c,m,_,h;let v=(null==e||null==(n=e.field_cta_button_text_class)?void 0:n[0])==="OldNumber",x=null==e||null==(s=e.field_cta_button_text_class)||null==(i=s.toString())?void 0:i.trim(),A="GoBack"===x?"NEW_REGN":"EDIT_REGN";return(0,t.jsxs)(p.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,className:ez().RMContainer,children:[(0,t.jsx)(y.A,{className:ez().RMContainerHeader,children:(0,t.jsx)(P.A,{content:null==e||null==(r=e.field_heading)||null==(o=r[0])?void 0:o.processed})}),(0,t.jsx)(d.A,{className:ez().RMDetailsList,children:(0,t.jsx)(P.A,{content:null==e||null==(m
1=e.field_content)||null==(c=m[0])?void 0:c.processed})}),(0,t.jsxs)(d.A,{className:ez().BtnContainer,mt:3,children:[v&&(0,t.jsx)(d.A,{style:{marginBottom:"16px"},children:(0,t.jsx)(li.A,{typeValue:"string",placeholder:K.A.renewBundleFormPlaceholderText,inputValue:f,validators:[{check:lt.k0.required,message:K.A.enterMobileNumber},{check:lt.k0.number,message:K.A.enterMobileNumber}],textChange:W,country_number_code:null==O?void 0:O.country_number_code,showError:w&&!$,phoneNumberLocalError:F,className:ez().custom_input_field,pageId:"renew-bundle",verifiedIcon:V&&f?b.z.greenTick:""})}),(0,t.jsx)(j.A,{variant:"contained",...(0,g.$h_)(`${x}`),disabled:!!v&&!V,onClick:()=>{((e,l)=>{let n="nb"===a.locale?"no":a.locale,t=(()=>{let e=new Date,l=new Intl.DateTimeFormat("sv-SE",{timeZone:"Europe/Zurich",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(e).reduce((e,l)=>("literal"!==l.type&&(e[l.type]=l.value),e),{});return`${l.year}-${l.month}-${l.day} ${l.hour}:${l.minute}:${l.second}.${e.getMilliseconds().toString().padStart(3,"0")}`})(),i=[null==u?void 0:u.field_channel,null==u?void 0:u.field_brand_code,l?`${null==O?void 0:O.country_number_code.substring(1)}${B}
1`:"","LYCAWEB",`${e}`,null==u?void 0:u.field_response_url,n,t,(0,N.A)(),"0|0|1"].join("|"),s=`${null==u?void 0:u.field_rm_url}?Request=${i}`;window.open(s)})(A,v)},className:ez()[x],children:(0,t.jsx)(P.A,{content:null==e||null==(h=e.field_cta)||null==(_=h[0])?void 0:_.processed})})]})]},l+1)}))})})})})]}),(0,t.jsx)(d.A,{className:ez().FullWidthAccordion,children:(0,t.jsx)(p.Ay,{container:!0,children:(0,t.jsx)(p.Ay,{item:!0,xs:12,children:Array.isArray(v)?v.map((e,l)=>(0,t.jsx)(A,{data:e,className:"node--accordion"},l)):v&&(0,t.jsx)(A,{data:v,className:"node--accordion"})})})})]})};var lc=n(28438),lu=n.n(lc),lm=n(64027);let l_=e=>{var l,n;let{getNodeType:a,formData:r}=e,c=(0,x.useRouter)();(0,o.d4)(s.i),(0,o.d4)(i.bN);let u=(0,o.d4)(i.AM),p=(0,o.d4)(i.SC),v=(0,o.d4)(s.Xk),A=(0,o.d4)(i.eO),[f,C]=(0,m.useState)(!0);null==A||null==(l=A.details)||l.first_name,null==A||null==(n=A.details)||n.last_name;let[N,k]=(0,m.useState)({}),D=(0,o.wA)(),R=async()=>{try{let{status:e,data:l}=await O.A.get(w.t.getDocumentDetails(u.document_check_id));k(l),C(!1)}catch(e){D((0,i.rK)(2))}},F=async e=>{try{await O.A.post(w.t.printLogs,{message:e})}catch(l){console.log("ERROR in print logs",JSON.stringify({e:l}),e)}},E=async e=>{var l,n,t,a,s,o,d,m,v,g,x,A,y,f,j,b,k,R,E,$,T,B,P,M,H,L,V,U,G,z,Y,W,q,Z,X,J;try{C(!0),await F("COMPLYCUBE MESSAGE Initiating swiss subscriber");let _=null==N||null==(t=N.result)||null==(n=t.breakdown)||null==(l=n.extracted_data)?void 0:l.holder_details,h=null==N||null==(o=N.result)||null==(s=o.breakdown)||null==(a=s.extracted_data)?void 0:a.document_details,S=(null==(d=h.expiration_date)?void 0:d.day)>0?`${null==(m=h.expiration_date)?void 0:m.month}/${null==(v=h.expiration_date)?void 0:v.day}/${null==(g=h.expiration_date)?void 0:g.year}`:"",K=S.length>0?I()(S).format("DD/MM/YYYY"):"",W=`${null==(x=_.dob)?void 0:x.month}/${null==(A=_.dob)?void 0:A.day}/${null==(y=_.dob)?void 0:y.year}`,q=W.length>0?I()(W).format("DD/MM/YYYY"):"";await F(`COMPLYCUBE MESSAGE Created all user related feilds ${JSON.stringify({id_expiry_date:K,date_of_birth:q})}`);let Z=null==(j=N.result)||null==(f=j.breakdown)?void 0:f.extracted_images.reduce((e,l,n)=>(e[`attachment${n+1}`]={extension:"jpg",value:"data:image/jpeg;base64,"},e),{});await F("COMPLYCUBE MESSAGE Forming request body for all images retrieved from complycube");let X=null==_||null==(b=_.address)?void 0:b.postal_code,J=null==r||null==(k=r.melisaAddress)?void 0:k.post_code,Q=(null==X?void 0:X.trim())?X:(null==J?void 0:J.trim())?J:"",ee={details:{msisdn:null==p?void 0:p.msisdn,iccid:null==p?void 0:p.iccid,puk_code:p.puk_code,pref_language:c.locale,first_name:(null==_||null==(R=_.first_name)?void 0:R.length)>0?null==_||null==(E=_.first_name)?void 0:E.join(" "):"Lyca",last_name:(null==_||null==($=_.last_name)?void 0:$.length)>0?null==_||null==(T=_.last_name)?void 0:T.join(" "):"Mobile",gender:(null==_||null==(B=_.gender)?void 0:B.length)>0?null==_?void 0:_.gender.replace(/\b\w/g,e=>e.toUpperCase()):"Male",date_of_birth:q,email_id:(null==r?void 0:r.email)||"",nationality:(null==_?void 0:_.nationality)||"US",house_number:(null==_||null==(P=_.address)?void 0:P.line)||(null==r||null==(M=r.melisaAddress)?void 0:M.house_no),swiss_resident:(null==r?void 0:r.is_swiss_resident)==="1"?"Yes":"No",post_code:Q,street:(null==_||null==(H=_.address)?void 0:H.line)||(null==r||null==(L=r.melisaAddress)?void 0:L.street_name),city:(null==_||null==(V=_.address)?void 0:V.city)||(null==r||null==(U=r.melisaAddress)?void 0:U.city),country:(null==(G=_.address)?void 0:G.country)||(null==r||null==(z=r.melisaAddress)?void 0:z.country),id_type:(null==h?void 0:h.document_type)||"",id_number:(null==h?void 0:h.document_number)||"",title:(null==N?void 0:N.entity_name)||"",id_expiry_date:K,id_country_of_issue:null==h?void 0:h.issuing_country,type:"0",birth_place:(null==_?void 0:_.birth_place)||"",contact_number:(null==p?void 0:p.msisdn)||"",comply_cube_details:{check_id:N.id,client_id:N.client_id,document_id:N.document_id,outcome:(null==u?void 0:u.document_status)==="attention"||(null==u?void 0:u.identity_status)==="attention"?"attention":null==(Y=N.result)?void 0:Y.outcome,validation:"",image_id:u.livePhotoId,attention_type:(null==u?void 0:u.document_status)==="attention"||(null==u?void 0:u.identity_status)==="attention"?1:""},...Z,sign_upload:{extension:"pdf",value:e}},checkId:u.document_check_id};for(let e in await F(`COMPLYCUBE MESSAGE Initial payload is created ${(0,lm.zv)(ee)}`),ee.details){let l=ee.details[e];(""===l||void 0===l)&&delete ee.details[e]}await F(`COMPLYCUBE MESSAGE Payload is filtered ${(0,lm.zv)(ee)}`),D((0,i.MJ)(ee)),await F("COMPLYCUBE MESSAGE Invoking swiss subscriber API");let el=await O.A.post(w.t.swissSubscriberRegistration,ee);await F("COMPLYCUBE MESSAGE swiss subscriber API is success"),el&&D((0,i.rK)(4))}catch(e){await F(`COMPLYCUBE ERROR Swiss Subscriber error  ${JSON.stringify({error:e,message:null==e?void 0:e.message,status:null==e||null==(W=e.response)?void 0:W.status,responseData:null==e||null==(q=e.response)?void 0:q.data})}`),null===h.ov||void 0===h.ov||h.ov.digitalData.push({event:"registrationFaliure",url:window.location.href,country:null===_.l||void 0===_.l?void 0:_.l.country_code,regType:"Number",errorMessage:(null==e||null==(X=e.response)||null==(Z=X.data)?void 0:Z.message)||"na"}),C(!1),D((0,S.ZD)({display:!0,severity:"error",message:(null==e||null==(J=e.response)?void 0:J.data.message)||K.A.userRegistrationFailed}))}},{first_name:$,last_name:B,name:P,email:M,address:H,dateOfBirth:V,docType:U,issuerDetails:G,issueDate:z,idExpiryDate:Y}=(0,m.useMemo)(()=>{var e,l,n,t,i,a,s,o,d,c,u,m,_,p,h,v,g,x,A,y,f,j,b,C,w,S,k,D,R,F;let E=null==N||null==(n=N.result)||null==(l=n.breakdown)||null==(e=l.extracted_data)?void 0:e.holder_details,$=null==N||null==(a=N.result)||null==(i=a.breakdown)||null==(t=i.extracted_data)?void 0:t.document_details,T=(null==$?void 0:$.expiration_date)&&(null==$||null==(s=$.expiration_date)?void 0:s.day)>0?`${null==$||null==(o=$.expiration_date)?void 0:o.month}/${null==$||null==(d=$.expiration_date)?void 0:d.day}/${null==$||null==(c=$.expiration_date)?void 0:c.year}`:"",B=T.length>
10?I()(T).format("DD MMMM YYYY"):"",P=(null==$||null==(u=$.issuing_date)?void 0:u.day)>0?`${null==$||null==(m=$.issuing_date)?void 0:m.month}/${null==$||null==(_=$.issuing_date)?void 0:_.day}/${null==(p=$.issuing_date)?void 0:p.year}`:"",M=P.length>0?I()(P).format("DD MMMM YYYY"):"",H=`${null==E||null==(h=E.dob)?void 0:h.month}/${null==E||null==(v=E.dob)?void 0:v.day}/${null==E||null==(g=E.dob)?void 0:g.year}`,O=H.length>0?I()(H).format("DD MMMM YYYY"):"",L=(null==E||null==(x=E.first_name)?void 0:x.length)>0?null==E||null==(A=E.first_name)?void 0:A.join(" "):"Lyca",V=(null==E||null==(y=E.last_name)?void 0:y.length)>0?null==E||null==(f=E.last_name)?void 0:f.join(" "):"Mobile",K=null==E||null==(j=E.address)?void 0:j.postal_code,U=null==r||null==(b=r.melisaAddress)?void 0:b.post_code,G=(null==K?void 0:K.trim())?K:(null==U?void 0:U.trim())?U:"",z=`${L} ${V}`,Y=`${(null==E||null==(C=E.address)?void 0:C.line)||(null==r||null==(w=r.melisaAddress)?void 0:w.house_no)+", "+(null==r||null==(S=r.melisaAddress)?void 0:S.street_name)} 
2    ${(null==E||null==(k=E.address)?void 0:k.city)||(null==r||null==(D=r.melisaAddress)?void 0:D.city)} 
3    ${G}
4    ${(null==E||null==(R=E.address)?void 0:R.country)||(null==r||null==(F=r.melisaAddress)?void 0:F.country)}`;return{first_name:L,last_name:V,name:z,email:(null==r?void 0:r.email)||"",address:Y&&(null==Y?void 0:Y.trim().length)>0?null==Y?void 0:Y.trim():"",dateOfBirth:O,docType:null==$?void 0:$.document_type,issuerDetails:(null==$?void 0:$.issuing_country)||"",issueDate:M,idExpiryDate:B}},[N]),W=async()=>{try{C(!0),await F("COMPLYCUBE MESSAGE Invoking PDF Generation");let{status:e,data:l}=await O.A.post(w.t.generateComplyCubePDF(null==v?void 0:v.country_code),{first_name:(null==$?void 0:$.length)>0?$:"",last_name:(null==B?void 0:B.length)>0?B:"",dob:V||"",email_id:M||"",address:(null==H?void 0:H.length)>0?H:"",verification_document:(null==U?void 0:U.length)>0?U:"",issue_by:(null==G?void 0:G.length)>0?G:"",issue_date:(null==z?void 0:z.length)>0?z:"",expiry_date:(null==Y?void 0:Y.length)>0?Y:"",pdf_date:I()().format("DD-MM-YYYY")}),n=null==l?void 0:l.s3_bucket_url;await F("COMPLYCUBE MESSAGE Fetched Base 64 string"),D((0,i.CQ)(n)),E(n)}catch(l){var e;console.log(l),await F(`COMPLYCUBE ERROR PDF Generating error ${JSON.stringify({err:l})}`),C(!1),D((0,S.ZD)({display:!0,severity:"error",message:(null==l||null==(e=l.response)?void 0:e.data.message)||K.A.pdfGeneratingError}))}};return(0,m.useEffect)(()=>{R()},[u.document_check_id]),(0,t.jsxs)(t.Fragment,{children:[f&&(0,t.jsx)(L.A,{}),(null==N?void 0:N.result)&&(0,t.jsxs)(d.A,{className:lu().fieldContainer,children:[(0,t.jsxs)(d.A,{className:lu().complycubeReviewContainer,children:[(0,t.jsxs)(d.A,{className:lu().personalDetailsContainer,children:[(0,t.jsx)(y.A,{className:lu().personalDetailsTitle,children:K.A.personalDetailsTitle}),(0,t.jsxs)(d.A,{className:lu().currentDetails,children:[(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.profileIconGray,height:18,width:16,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.fullNameTitle}),(0,t.jsx)(y.A,{className:lu().value,children:P})]})]}),(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.dobCalendarIcon,height:20,width:18,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.dateOfBirth}),(0,t.jsx)(y.A,{className:lu().value,children:V})]})]}),(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.emailComplycubeDisplay,height:19,width:20,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.emailIdTitle}),(0,t.jsx)(y.A,{className:lu().value,children:M})]})]}),(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.addressExtractedData,height:20,width:20,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.Address}),(0,t.jsx)(y.A,{className:lu().value,children:H})]})]})]})]}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().documentDetailsContainer,children:[(0,t.jsx)(y.A,{className:lu().documentDetailsTitle,children:K.A.documentSummaryTitle}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().currentDetails,children:[(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.docTypeComplyCube,height:20,width:16,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.verificationTitle}),(0,t.jsx)(y.A,{className:lu().value,children:U})]})]}),(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.flagIconComplyCube,height:20,width:16,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.issuedByTitle}),(0,t.jsx)(y.A,{className:lu().value,children:G})]})]}),(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.dobCalendarIcon,height:20,width:18,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.issueDateTitle}),(0,t.jsx)(y.A,{className:lu().value,children:z})]})]}),(0,t.jsxs)(d.A,{display:"flex",className:lu().detailsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().iconContainer,children:(0,t.jsx)(T(),{src:b.z.dobCalendarIcon,height:20,width:18,alt:"profile"})}),(0,t.jsxs)(d.A,{display:"flex",flexDirection:"column",className:lu().displayContainer,children:[(0,t.jsx)(y.A,{className:lu().title,children:K.A.expiryDateTitle}),(0,t.jsx)(y.A,{className:lu().value,children:Y})]})]})]})]})]}),(0,t.jsxs)(d.A,{className:lu().actionsContainer,children:[(0,t.jsx)(d.A,{display:"flex",className:lu().primaryContainer,children:(0,t.jsx)(j.A,{...(0,g.$h_)("download-pdf"),variant:"contained",className:lu().downloadButtonContainer,sx:{margin:"0 0 1rem 0"},onClick:()=>W(),children:K.A.confirmDetails})}),(0,t.jsx)(j.A,{...(0,g.$h_)("redo-option"),variant:"contained",className:lu().redoButton,onClick:()=>D((0,i.rK)(2)),children:K.A.redoTitle})]})]})]})},lp=e=>{var l;let n=(0,g.a44)(null==e||null==(l=e.props)?void 0:l.from);(0,a.T)("registrationUrl",i.W3);let A=(0,x.useRouter)(),y=(null===_.l||void 0===_.l?void 0:_.l.country_code)==="SW"?[K.A.simDetails,K.A.idVerification,K.A.review,K.A.confirmation]:[K.A.simDetails,(null===_.l||void 0===_.l?void 0:_.l.country_code)==="DK"?K.A.personalDetailsTitle:K.A.idVerification,K.A.confirmation],f=(0,o.d4)(s.Xk),j=(0,o.d4)(i.cH),b=(0,o.d4)(i.bN),C=(0,o.d4)(i.hI),w=(0,u.A)("(max-width:768px)"),N=(0,r.A)(),S=(0,u.A)(N.breakpoints.down("sm")),[k,D]=(0,m.useState)((null===_.l||void 0===_.l?void 0:_.l.country_code)==="AU"?"msisdn":""),[R,F]=(0,m.useState)({}),[E,$]=(0,m.useState)({}),[T,B]=(0,m.useState)(""),[I,M]=(0,m.useState)([]),[H,O]=(0,m.useState)((0,_.uo)(K.A,f)),[V,U]=(0,m.useState)(null==e?void 0:e.props);(0,m.useEffect)(()=>{(0,g.a44)(f)&&!f.is_web_registration_enabled&&A.push("/")},[f]);let G=e=>{var l;return null==(l=j||[])?void 0:l.find(l=>(null==l?void 0:l.type)===e)},z=G("node--page_title"),Y=G("node--family_registration_title"),W={fieldsToValidates:[...H,...(0,h.ed)(I)],registrationFields:I,setRegistrationFields:M,fields:H,setFields:O,formData:R,registrationData:j,formErrors:E,setFormErrors:$,verifyError:T,handleChange:e=>{let{name:l,value:n}=e.target;l&&("type_of_document"===l?F(e=>({...e,[l]:n,document_id:""})):F(e=>({...e,[l]:n}))),B("")},setFormData:F,getNodeType:G,LYCA_CONFIG:f,isXs:S,setVerifyError:B,fromPageData:V,option:k,setOption:D},q=(0,h.N_)(null===_.l||void 0===_.l?void 0:_.l.country_code)?ld:eq,Z={1:(0,t.jsx)(q,{...W}),2:(0,t.jsx)(eM,{...W,setFormErrors:$}),3:(null===_.l||void 0===_.l?void 0:_.l.country_code)==="SW"?(0,t.jsx)(l_,{...W}):(0,t.jsx)(e1,{...W}),4:(0,t.jsx)(e1,{...W}),5:(0,t.jsx)(e1,{...W}),6:(0,t.jsx)(e1,{...W})},X=[{link:"/",icon:(0,t.jsx)(v.fA,{})}
4,{link:"/",name:K.A.SIMRegistration}],J={heading:K.A.SIMRegistration,subHeading:K.A.registeryourSIM};return(0,g.a44)(f)?(0,t.jsx)(m.Fragment,{children:(0,h.N_)(null===_.l||void 0===_.l?void 0:_.l.country_code)?(0,t.jsx)(ln.A,{breadcrumbs:w?[]:X,screenHeading:{...J},children:Z[b]||null}):(0,t.jsxs)(d.A,{className:le().PageContainer,children:[(0,t.jsx)(ll.A,{autoHide:2500}),(0,t.jsx)(e4,{headingLogo:G("node--landingpage_header"),screens:y,currentIndex:b}),(0,t.jsxs)(d.A,{className:le().RegistrationContainer,children:[(0,t.jsx)(e7,{headingDetails:((e,l)=>{var i,a,s,o,r,d,c,u;return({1:{Heading:n?(0,t.jsx)(P.A,{content:null==Y||null==(a=Y.field_heading)||null==(i=a[0])?void 0:i.value}):(0,t.jsx)(P.A,{content:null==z||null==(o=z.field_heading)||null==(s=o[0])?void 0:s.value}),Para:n?(0,t.jsx)(P.A,{content:null==Y||null==(d=Y.field_sub_heading)||null==(r=d[0])?void 0:r.value}):(0,t.jsx)(P.A,{content:null==z||null==(u=z.field_sub_heading)||null==(c=u[0])?void 0:c.value})},3:{Heading:(null===_.l||void 0===_.l?void 0:_.l.country_code)==="SW"?K.A.registrationReview:K.A.registrationCompleted,Para:(null===_.l||void 0===_.l?void 0:_.l.country_code)==="SW"?K.A.registrationReviewPara:""},4:{Heading:K.A.registrationCompleted,Para:""},5:{Heading:K.A.registrationCompleted,Para:""},"2-1":{Heading:K.A.idVerification,Para:K.A.continueRegistration},"2-2":{Heading:K.A.additionalID,Para:K.A.completeRegistration},"2-3":{Heading:K.A.IDDetails,Para:K.A.completeActivation},"2-4":{Heading:K.A.IDDetails,Para:K.A.completeActivation},"2-5":{Heading:K.A.IDDetails,Para:K.A.completeActivation},"2-6":{Heading:K.A.IDDetails,Para:K.A.completeActivation},"2-7":{Heading:K.A.IDDetails,Para:K.A.completeActivation},"2-8":{Heading:K.A.setToAutoRenewal,Para:K.A.enableAutoRenewalText},"2-9":{Heading:(null===_.l||void 0===_.l?void 0:_.l.country_code)==="DK"?K.A.personalDetailsTitle:K.A.IDDetails,Para:K.A.completeActivation}})[[1,3,4,5].includes(e)?e.toString():`${e}-${l}`]||{Heading:"",Para:""}})(b,C)}),(0,t.jsx)(d.A,{sx:{flexGrow:1},children:(0,t.jsx)(c.A,{maxWidth:"lg",sx:{padding:"0 !important"},children:(0,t.jsx)(p.Ay,{container:!0,justifyContent:"center",children:(0,t.jsx)(p.Ay,{item:!0,xs:[3,4].includes(b)||[3,6].includes(C)?11:12,sm:10,md:8,lg:6,children:Z[b]||null})})})})]}),(0,t.jsx)(e8.default,{data:G("node--landingpage_footer")})]})}):(0,t.jsx)(L.A,{})}},96828:e=>{e.exports={FieldContainer:"Confirmation_FieldContainer__vLzQt",FieldHeader:"Confirmation_FieldHeader__1FN52",WelcomeCustomer:"Confirmation_WelcomeCustomer__aSIkl",CustomerName:"Confirmation_CustomerName__KFyhe",ErrorSubHeading:"Confirmation_ErrorSubHeading__jV0MG",CustomerError:"Confirmation_CustomerError__LSr_P",BtnContainer:"Confirmation_BtnContainer__hjmxq",Primary:"Confirmation_Primary__v8uqs",Tertiary:"Confirmation_Tertiary__xW2YP",GoBack:"Confirmation_GoBack__ZlFUU",ListItem:"Confirmation_ListItem__cZJDo"}}}]);

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.