1"use strict";(self.webpackChunkcommerce_1=self.webpackChunkcommerce_1||[]).push([[5693],{15693(e,t,a){a.r(t),a.d(t,{default:()=>Ft});var s=a(89379),i=a(65043),l=a(97508),n=a(28887),o=a(5544),r=a(53536),c=a.n(r),d=a(86178),m=a.n(d),p=a(45852),u=a(9370),v=a(10121),g=a(58387),b=a(38746),x=a(73588),h=a(87263),f=a(78522),y=a(91479),A=a(10668),C=a(99897),N=a(70579);a.dn(M);const T=b.A.apiConfig,j=b.A.deviceTypes,P=b.A.analyticsConfig,D=P.eventNames,k=P.gaActions,I=P.gaLabels,S=P.gaCategories,w=y.n.analyticsUtility;function M(e){var t,a;let l=e.i18nLabels,n=e.intl,r=e.deviceDetails,d=e.selectSkuDetails,m=e.stockDetails,p=e.preSelectedQueryParams,u=e.isPreOrder,g=e.isSingleContractAndPlan,M=e.plansOptions,L=e.groupPlans,O=e.selectPlan,E=e.JPPCookie,B=e.isJPPOffer,R=e.deviceUpfrontPrice,F=e.ciInfo,U=e.skuId,_=e.handleNotifyMeModal,H=e.selectedSkuDetails,V=e.deviceInformation,G=e.cartDetails,W=e.savingPrice,J=e.isHomeDevices,Y=e.setShowPriceGuideModal,Z=e.selectPurchasingOption,q=e.setSelectPurchasingOption,z=e.listPurchasingOption,K=e.homeDeviceMinimalPricing,$=e.homeDevicePreSelectedQueryParams,X=e.isBookingDevicePurchase,Q=e.openContractLearnMore,ee=e.setSelectedBroadbandPlan,te=e.preferredPickUpStoreDetails,ae=e.togglePreferredPickUpStoreModal,se=e.handlePreNavigateTo,ie=e.openPromotionModal,le=e.setShowTradeInModal,ne=e.listDevicePurchasingOption,oe=e.selectDevicePurchasingOption,re=e.setSelectDevicePurchasingOption,ce=e.isOutrightDevice,de=e.isDeviceWithOutrightFlow,me=e.isSO1Valid,pe=e.isPwpOutrightFlow,ue=e.privateVoucherInfo;const ve=G.contractId,ge=G.contractPrice,be=G.brandTitle,xe=G.planName,he=G.colour,fe=G.storageType,ye=G.contractTitle,Ae=(Number(R)||0)-(Number(null===E||void 0===E?void 0:E.JPP)||0),Ce="number"===typeof R&&R.toString()||"",Ne=(0,s.A)({},p).colour,Te=(0,s.A)({},p).storage,je=(0,i.useState)(Ne||r.defColour),Pe=(0,o.A)(je,2),De=Pe[0],ke=Pe[1],Ie=y.n.getValues(r,"colours[".concat(De,"].availableStorages"),[]),Se=(0,i.useState)(Te||Ie[0]),we=(0,o.A)(Se,2),Me=we[0],Le=we[1],Oe=r&&r.deviceType===j.broadband,Ee=r&&r.nonSaleable||{promo:"",roiFormUrl:"",skuids:[]},Be=(null===Ee||void 0===Ee||null===(t=Ee.skuids)||void 0===t?void 0:t.includes(U))||(null===Ee||void 0===Ee||null===(a=Ee.skuids)||void 0===a?void 0:a.includes(f.HR.all)),Re=null===ve||void 0===ve?void 0:ve.includes(b.A.ZEROLUTION_CONTRACT_ID),Fe=Boolean(be&&xe&&he&&fe&&ye),Ue=[],_e=(null===r||void 0===r?void 0:r.deviceType)===j.wearables,He=L&&M&&L.length>0&&M.contractsInfo&&M.contractsInfo.find(e=>e.contractId===L[0].planGroup&&e.deviceType===r.deviceType),Ve=L&&M&&L.length>0&&M.plansList&&M.plansList.find(e=>e.planId===y.n.getValues(L,"[0].plans[0].planId","")),Ge=((0,s.A)({},r).disableNotifyMe||[]).includes(U),We=m.stockLabel&&![u,m.hasDeviceReservationOption,m.hasDeviceBackOrderOption,m.onlineStockStatus,m.retailStockStatus,X,Be,Oe,Ge,J].some(Boolean),Je=u&&!m.onlineStockStatus&&!m.retailStockStatus&&!m.hasDeviceReservationOption&&!X&&m.stockLabel&&!Be&&!Oe&&!J,Ye=Fe&&m.hasDeviceReservationOption&&!X&&m.stockLabel&&!Be&&!Oe&&!J,Ze=[Fe,m.hasDeviceBackOrderOption,m.stockLabel,!Be].every(Boolean),qe=[We,Je].some(Boolean),ze=r&&(De||J),Ke=!X&&!J,$e=X,Xe=!X,Qe=!X,et=[!m.onlineStockStatus,m.retailStockStatus,m.stockLabel,!Be,!J].every(Boolean),tt=[ce,!me,!pe,m.onlineStockStatus].every(Boolean),at=[!pe,!J].every(Boolean),st=[(m.onlineStockStatus||m.retailStockStatus)&&!m.isNonSellable,m.hasDeviceReservationOption,m.registerDeviceInterestStatus,qe,Ye,J,Ze].some(Boolean)?"text-gunmetal":"text-alert",it={promotionTag:{tagName:ue.promoLabel},promotionTitle:ue.shortTitle,promotionDescription:ue.description},lt=pe&&!c().isEmpty(ue)?[it]:r.promotionInfo||[],nt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.id!==(0,s.A)({},Z).id&&ee(null),q(e)},ot=function(){re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})};(0,i.useEffect)(()=>{r.tagName=null!==F&&void 0!==F&&F.isCiEligible?n.messages.ciTagLabel:r.tagName},[F,r]),(0,i.useEffect)(()=>{!J&&r.pricingDetails.forEach(e=>{e.colour===De&&e.storageType===Me&&(e.colourName=r.colours[De].colourName,d(e)),De&&Me||d({})})},[Me,De]),(0,i.useEffect)(()=>{!((null===Ie||void 0===Ie?void 0:Ie.length)>0&&Ie.find(e=>e===Me))&&(null===Ie||void 0===Ie?void 0:Ie.length)>0&&Le(Ie[0])},[Ie]),(0,i.useEffect)(()=>{ce&&ot(ne[0])},[H]),(0,i.useEffect)(()=>
1{if(J&&z.length>0){const e=z.find(e=>e.id===(null===$||void 0===$?void 0:$.intention))||z[0];nt(e)}},[]),(0,i.useEffect)(()=>{var e;const t=null!==He&&void 0!==He&&null!==(e=He.contractId)&&void 0!==e&&e.includes(b.A.ZEROLUTION_CONTRACT_ID)?b.A.ZEROLUTION_CONTRACT_ID:b.A.NORMAL_CONTRACT_ID;g&&O({planName:Ve&&Ve.planGroup,selectedPlanId:Ve&&Ve.planId,planPrice:Ve?Ve.planDetails.planPrice:null,planImagePath:Ve?Ve.planDetails.planIconPath:"",isSupplementary:Ve?Ve.planDetails.isSupplementary:null,contractId:t,contractTitle:He&&He.contractTitle,contractDuration:He&&He.contractDuration,isDisableCart:He&&"true"===He.isDisableCart})},[M,L]),!J&&De&&r.colours[De].seoImages.forEach(e=>{e.imagePath&&Ue.push({imagePath:"".concat(T.aemEndPoint).concat(e.imagePath),imageAltText:e.altText})}),J&&(r.seoImages||[]).forEach(e=>{e.imagePath&&Ue.push({imagePath:"".concat(T.aemEndPoint).concat(e.imagePath),imageAltText:e.altText})});return ze&&(0,N.jsxs)("div",{className:"d-md-flex col-12 px-0 justify-content-center pb-md-2 ".concat(g?"mb-sm-up--60px":X?"":"mb-md-2 align-items-center"),children:[(0,N.jsx)(x.FN,{autoScroll:!1,indicatorClass:"device-options-carousel-indicators mb-1 mb-md-2",imageClass:"pdp-device-images",className:"px-0 col-12 col-md-6 col-lg-7 device-display ".concat(g?"py-5 mb-2 sticky-carousel align-self-start":X?"reserve-purchase":""),navigatorClass:"d-flex d-md-none mx-1",showMiniIcons:!0,miniIconClass:"mini-icons d-none d-md-flex px-0 align-items-center",slides:Ue}),(0,N.jsxs)("div",{className:"px-0 col-12 col-md-6 col-lg-5 ".concat(de||pe?"":"mb-25px"),children:[(0,N.jsxs)("div",{id:"brand-section",className:"col-12 text-left px-0 px-md-3 pt-3 pb-2",children:[B?(0,N.jsxs)("div",{className:"d-flex flex-column flex-xl-row",children:[(0,N.jsx)(x.JU,{labelClass:"fs-14 ls-100 lh-100 text-lightish-blue maxis-bold mb-0 border-lightish-blue w-fit px-8px py-3px mr-xl-1 mb-xl-0 mb-1",labelData:n.formatMessage(l.jppDeviceTagLabel,{price:null===E||void 0===E?void 0:E.JPP})}),(0,N.jsx)(x.JU,{labelData:n.messages.jppTagOffer,labelClass:"tag border-lightish-blue maxis-bold fs-12 fs-lg-14 ls-038 ls-lg-100 px-1 mb-2 alternate w-fit d-flex align-items-center"})]}):(0,s.A)({},F).promoLabel?(0,N.jsx)(x.JU,{labelClass:"fs-14 ls-100 lh-100 text-lightish-blue maxis-bold mb-0 border-lightish-blue w-fit px-8px py-3px text-uppercase",labelData:F.promoLabel}):r.tagName?(0,N.jsx)(x.JU,{labelClass:"fs-14 ls-100 lh-100 text-lightish-blue maxis-bold mb-0 border-lightish-blue w-fit px-8px py-3px",labelData:r.tagName}):null,(0,N.jsx)(x.JU,{labelClass:"fs-16 ls-100 text-steel maxis mb-0 text-uppercase mt-8px",labelData:r.brandTitle}),(0,N.jsx)("h2",{id:"deviceTitleSection",className:"fs-34 fs-lg-48 lh-121 lh-sm-171 text-black maxis-bold mb-0 mt--8px mt-md-0",children:r.deviceTitle})]}),(0,N.jsxs)("div",{id:"price-stock-section",className:"col-12 px-0 text-left py-3 px-0 px-md-3 mt--4px mt-md-0",children:[(()=>{const e=(r.outrightDetails||[]).find(e=>e.skuId===(0,s.A)({},H).skuId)||{};return de?(0,N.jsx)(x.JU,{labelClass:"fs-18 text-gunmetal mb-0 maxis-bold spacing-1 mt--8px",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.RMprice),{},{values:{price:(0,N.jsx)("span",{className:"fs-28 text-gunmetal mb-0 maxis-bold spacing-2",children:e.outrightPrice||"--"})}}))}):J?(0,N.jsxs)("div",{className:"text-gunmetal fs-18 maxis-bold mb-1",children:[(0,N.jsx)("span",{className:"fs-14 text-capitalize mr-1",children:n.messages.fromLabel}),(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.pricePerMth),{},{values:{price:(0,N.jsx)("span",{className:"fs-28 mb-0",children:K})}}))]}):(0,N.jsx)(x.JU,{labelClass:"fs-18 text-gunmetal mb-0 maxis-bold spacing-1 mt--8px",labelData:Re&&ge?(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.pricePerMth),{},{values:{price:(0,N.jsx)("span",{className:"fs-28 text-gunmetal mb-0 maxis-bold spacing-2",children:ge})}})):(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.RMprice),{},{values:{price:(0,N.jsx)("span",{className:"fs-28 text-gunmetal mb-0 maxis-bold spacing-2",children:(B?Ae:Ce)||"--"})}}))})})(),(0,N.jsx)(x.JU,{labelClass:"fs-14 text-steel mt--2px",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.rrPMessage),{},{values:[Re,!ge,de].includes(!0)?{rrpPrice:(0,N.jsx)("span",{className:"fs-14 text-steel",children:"".concat(n.messages.RM).concat(null===V||void 0===V?void 0:V.priceRrp)}),saveDevicePrice:""}
1:{rrpPrice:(0,N.jsx)("span",{className:"fs-14 text-steel strike-through",children:"".concat(n.messages.RM).concat(null===V||void 0===V?void 0:V.priceRrp)}),saveDevicePrice:(0,N.jsx)("span",{className:"fs-12 save-price text-lightish-blue maxis-semiBold pl-1",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.saveDevicePrice),{},{values:{price:W}}))})}}))}),J&&(0,N.jsx)("div",{className:"fs-14 text-gunmetal",children:n.messages.disclaimerForHomeDeviceStocksAvailability}),r.whileStockLasts&&(0,N.jsx)(x.JU,{labelClass:"fs-14 text-gunmetal mb-0 maxis-bold",labelData:n.messages.stockLastsLabel}),Ke&&(0,N.jsx)(x.JU,{labelClass:"".concat(st," fs-14 maxis mb-0 spacing-1 text-uppercase"),labelData:m.stockLabel}),qe&&(0,N.jsx)(x.sr,{onClick:()=>_(!0),target:"_blank",wrapperClassName:"text-uppercase mt-2px",color:h.T.frogGreen,label:n.messages.notifyMeLabel}),Ye&&(0,N.jsx)(x.sr,{onClick:()=>{w.triggerGAForEventClicks(I.reserveDeviceTop,k.clickEvent,S.ecommerce,{gaDeviceName:"".concat(r.deviceTitle," ").concat(P.reservation),gaDeviceColor:H.colourName,gaDeviceStorage:H.storageType}),w.pushToInsiderEvent({event_name:"".concat(b.A.insiderConfig.eventName.reserveNow,"_").concat(r.device)}),se(m)},target:"_blank",wrapperClassName:"text-uppercase mt-2px",color:h.T.frogGreen,label:n.messages.reserveMyDeviceLabel}),Ze&&(0,N.jsx)("div",{className:"text-black ls-lg-100 maxis-semiBold maxis-lg-bold fs-14 lh-normal mt-3px",children:y.n.getValues(r,"backOrderDetails.message","")}),et&&(0,N.jsxs)(N.Fragment,{children:[te.storeName&&(0,N.jsx)(x.JU,{labelClass:"text-gunmetal mb-0",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.selectedPreferredPickUpStore),{},{values:{storeName:te.storeName}}))}),(0,N.jsx)(x.sr,{onClick:()=>(e=>{ae(e);const t={event:D.eventClicks,gaCategory:S.ecommerce,gaAction:k.clickEvent,gaLabel:I.checkStock,gaDeviceName:r.deviceTitle,gaDeviceColor:H.colourName,gaDeviceStorage:H.storageType};w.pushToGTM(t)})(!0),target:"_blank",wrapperClassName:"text-uppercase mt-2px",color:h.T.frogGreen,label:n.messages.checkStockInStoreLabel})]}),lt.map((e,t)=>(0,N.jsx)(i.Fragment,{children:(0,N.jsx)(A.A,{promotionTag:e.promotionTag,promotionTitle:e.promotionTitle,promotionDescription:e.promotionDescription,children:(e.promotionMoreInformation||e.promotionTermsAndCondition)&&(0,N.jsxs)("div",{className:"ml-0 row align-items-baseline",children:[(0,N.jsx)("div",{className:"fs-12 maxis lh-normal text-lightish-blue mt-1 cursor-pointer",onClick:()=>ie(e.promotionMoreInformation),children:n.messages.moreInformation}),(0,N.jsx)("div",{className:"mx-1",children:"|"}),(0,N.jsx)("div",{className:"fs-12 maxis lh-normal text-lightish-blue mt-1 cursor-pointer",onClick:()=>ie(e.promotionTermsAndCondition),children:n.messages.termsAndConditions})]},"promotion-".concat(t))})},"promotion-info-".concat(t)))]}),Oe||J?(0,N.jsx)("div",{className:"mt-2"}):(0,N.jsxs)("div",{className:"border-left-desktop-pink",children:[$e&&(0,N.jsxs)("div",{className:"py-1 px-0 px-md-3",children:[(0,N.jsx)(x.JU,{labelClass:"fs-16 maxis-bold text-black mb-1",labelData:n.messages.selectedDeviceDetailLabel}),(0,N.jsx)(x.JU,{labelClass:"fs-14 text-steel text-uppercase mb-1",labelData:"".concat(null===H||void 0===H?void 0:H.colourName,", ").concat(null===H||void 0===H?void 0:H.storageType)}),(0,N.jsx)("div",{className:"col-12 notify-card d-flex align-items-center mt-3",children:(0,N.jsx)(x.JU,{labelClass:"fs-14 text-gunmetal ls-normal ml-2 mb-0 py-2 py-md-0",labelData:n.messages.changeSkuLabel})})]}),Xe&&(0,N.jsxs)("div",{id:"colors-section",className:"py-3 px-0 px-md-3",children:[(0,N.jsx)(x.JU,{labelClass:"fs-16 maxis-bold text-black mb-1",labelData:n.messages.selectColorLabel}),(0,N.jsx)(x.JU,{labelClass:"fs-14 ls-100 maxis text-steel mb-1 text-uppercase",labelData:r.colours[De].colourName}),Object.keys(r.colours).map(e=>{const t=e===De?"thick-border-green":"";return(0,N.jsx)("span",{className:"".concat(t," mr-2 px-2 color-circle cursor-pointer"),style:{backgroundColor:"#".concat(e)},onClick:()=>{ke(e)}},e)})]}),Qe&&Ie&&Ie.length>0&&"na"!==Ie[0]&&(0,N.jsxs)("div",{id:"storage-section",className:"py-3 px-0 px-md-3 mt--3px mt-md-0",children:[(0,N.jsx)(x.JU,{labelClass:"fs-16 maxis-bold text-black mb-2",labelData:_e?n.messages.selectCaseSizeLabel:n.messages.selectCapacityLabel}),(0,N.jsx)("div",{className:"d-flex flex-wrap",children:Ie.map((e,t)=>{const a=e===Me?"thick-border-green device-storage-selected":"border-gunmetal";return(0,N.jsx)(i.Fragment,{children:(0,N.jsx)(x.JU,{labelClass:"".concat(a," m-sm-3px device-storage maxis-bold text-center\n ls-150 fs-14 text-gunmetal mb-1 text-uppercase p-2 cursor-pointer ").concat(t===Ie.length-1?"mr-0":"mr-2"),labelData:e,clickEvent:()=>{Le(e)}})},"device-storage-".concat(e))})})]})]}),J&&(0,N.jsxs)("div",{className:"border-left-desktop-pink purchasing-section",children:[(0,N.jsxs)("div",{className:"py-3 px-0 px-md-3",children:[(0,N.jsx)(x.JU,{labelClass:"fs-16 maxis-bold text-black mb-2",labelData:n.messages.selectAPurchasingOptionLabel}),(0,N.jsx)("div",{children:z.map((e,t)=>(0,N.jsx)("div",{children:(0,N.jsx)(x.$n,{buttonLabel:e.label,buttonClass:"bold thin-border px-0 outline-primary-transparent-v2 ls-150 lh-normal ".concat((null===Z||void 0===Z?void 0:Z.id)===e.id?"selected":""),reactButtonClass:"button-box purchasing-option",onClick:()=>{nt(e)}})},"purchasing_option_".concat(t)))})]}),(0,N.jsxs)("div",{className:"py-3 px-0 px-md-3",children:[(0,N.jsx)(x.JU,{labelClass:"fs-16 maxis-bold text-black mb-2",labelData:n.messages.checkPricingGuide}),(0,N.jsx)(x.JU,{labelClass:"fs-14 fs-lg-16 maxis text-gunmetal lh-18px mb-2 price-guide-short-description",labelData:n.messages.priceGuideDe
1scription}),(0,N.jsx)(x.sr,{onClick:()=>{return e=n.messages.viewPricesLable.toUpperCase(),Y(!0),void w.triggerGAForEventClicks(e);var e},wrapperClassName:"text-uppercase mt-2px",labelClass:"maxis-extraBold price-guide-link",color:h.T.blueGreen,label:n.messages.viewPricesLable})]})]}),g&&He&&Ve&&(0,N.jsxs)("div",{className:"single-contract-plan py-3 px-0 px-md-3 border-left-desktop-pink",children:[(0,N.jsx)(x.JU,{labelClass:"maxis-bold fs-16 text-black",labelData:n.messages.only_one_contract_available}),(0,N.jsx)(x.$n,{fullWidth:!1,id:"singleContractButton",buttonClass:"contract-button text-uppercase maxis-bold-important fs-14 ls-150 text-gunmetal",buttonLabel:He.contractTitle}),(0,N.jsx)(x.JU,{labelClass:"maxis-semiBold fs-16 text-gunmetal lh-normal ls-normal",labelData:B?n.formatMessage(l.jppContractDesc,{period:null===E||void 0===E?void 0:E.contractPeriod}):He.contractDescription.split("/br").join("")}),(0,N.jsx)(x.sr,{label:He.linkText,onClick:()=>Q(He.linkUrl)}),(0,N.jsx)(x.JU,{labelClass:"maxis-bold fs-16 text-black mt-40px mb-2",labelData:n.messages.only_one_plan_available}),(0,N.jsxs)("div",{className:"plan-box cursor-pointer row mx-0 align-items-center d-md-block pt-md-4",children:[(0,N.jsx)("div",{className:"col-5 col-md-12 px-md-5",children:(0,N.jsx)(x.JU,{parentClass:"text-center",labelClass:"maxis-extraBold fs-24 text-blue-green lh-117 ls-normal",labelData:Ve.planGroup})}),(0,N.jsxs)("div",{className:"col-7 col-md-12 px-md-4",children:[(0,N.jsx)(x.JU,{parentClass:"text-center",labelClass:"maxis-bold fs-14 text-gunmetal lh-121 ls-normal mb-1",labelData:Ve.planDetails.smsCallsDescription}),(0,N.jsx)(x.JU,{parentClass:"text-center",labelClass:"maxis-bold fs-14 text-gunmetal lh-121 ls-normal mb-1",labelData:Ve.planDetails.shareLinesDescription}),(0,N.jsx)(x.JU,{parentClass:"text-center",labelClass:"maxis-bold fs-14 text-gunmetal lh-121 ls-normal mb-3",labelData:(0,N.jsx)("span",{dangerouslySetInnerHTML:{__html:Ve.planDetails.shareLinesPrice}})}),(0,N.jsx)(x.JU,{parentClass:"text-center",labelClass:"maxis-bold fs-15 text-blue-green ls-normal",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},l.pricePerMth),{},{values:{price:(0,N.jsx)("span",{className:"fs-24 lh-100 ls-normal",children:Ve.planDetails.planPrice})}}))})]})]})]}),tt&&(0,N.jsx)("div",{className:"border-left-desktop-pink purchasing-section",children:(0,N.jsxs)("div",{className:"py-3 px-0 px-md-3",children:[(0,N.jsx)(x.JU,{labelClass:"fs-16 maxis-bold text-black mb-2",labelData:n.messages.selectAPurchasingOptionLabel}),(0,N.jsx)("div",{children:ne.map((e,t)=>(0,N.jsx)("div",{children:(0,N.jsx)(x.$n,{buttonLabel:e.label,buttonClass:"bold thin-border px-0 outline-primary-transparent-v2 ls-150 lh-normal ".concat((0,s.A)({},oe).id===e.id?"selected":""),reactButtonClass:"button-box purchasing-option",onClick:()=>{ot(e)}})},"device_purchasing_option_".concat(t)))})]})}),at&&(0,N.jsxs)("div",{className:"trade-in-component px-md-3",children:[(0,N.jsx)(C.b2O,{}),(0,N.jsxs)("div",{className:"ml-1",children:[(0,N.jsx)("div",{className:"maxis fs-lg-16 fs-14 lh-normal text-gunmetal",children:n.messages.tradeInDescription}),(0,N.jsx)("div",{className:"mt-1",children:(0,N.jsx)(x.sr,{wrapperClassName:"maxis-extraBold fs-lg-16 fs-14 ls-normal",label:n.messages.checkNow,onClick:()=>{le(!0),w.pushToGTM({event:D.eventTradeInClicks,event_category:S.ecommerce,event_action:f.HR.analyticsConfig.gaActions.checkDeviceValuePDP,event_label:r.deviceTitle})}})})]})]})]})]})}var L=a(83182);function O(e){let t=e.overview;return(0,i.useEffect)(()=>{t.includes("html")&&(document.getElementById("further")&&(document.getElementById("further").style.display="none"),document.getElementById("seeMore")&&document.getElementById("seeMore").addEventListener("click",()=>{document.getElementById("further")&&(document.getElementById("further").style.display="block"),document.getElementById("seeMore")&&(document.getElementById("seeMore").style.display="none"),document.getElementById("close")&&(document.getElementById("close").style.display="block")}),document.getElementById("close")&&document.getElementById("close").addEventListener("click",()=>{document.getElementById("further")&&(document.getElementById("further").style.display="none"),document.getElementById("close")&&(document.getElementById("close").style.display="none"),document.getElementById("seeMore")&&(document.getElementById("seeMore").style.display="block")}))},[]),(0,N.jsx)("div",{className:"overview flex-column pt-3",children:(0,N.jsx)("div",{dangerouslySetInnerHTML:{__html:t||""}})})}function E(e){let t=e.deviceSpec;const a=y.n.useWindowSize(),s=(0,o.A)(a,1)[0];return(0,N.jsxs)("div",{className:"specflex",children:[(0,N.jsx)("div",{className:"col-xl-6 col-lg-6 px-0 specTableDiv",children:(0,N.jsx)("table",{className:"specTable w-100",children:(0,N.jsx)("tbody",{children:function(){const e=y.n.removeColonDotsFromStr;return t.specifications?t.specifications.map(t=>(0,N.jsxs)("tr",{className:"specTableTd",children:[(0,N.jsx)("td",{className:"fs-14 maxis ls-100 nowrap-whitespace text-gunmetal",children:e(t.specTitle.toUpperCase())}),(0,N.jsx)("td",{className:"fs-16 fs-sm-14 maxis-bold text-blue-green",children:t.specDescription})]},t.specTitle)):null}()})})}),(0,N.jsxs)("div",{className:"col-xl-5 col-lg-6 d-flex flex-column pt-3 pt-md-0 pl-xl-5",children:[(0,N.jsx)("div",{className:"icons-flex d-flex flex-row",children:t.icons?t.icons.map((e,t)=>(0,N.jsx)("div",{className:"specifications-icon ".concat(s<1014&&t<3||s>=1014&&t<4?"mt-md-0":""),children:(0,N.jsx)("img",{className:"iconImg",src:"".concat(b.A.apiConfig.aemEndPoint).concat(e),alt:"iconImg"})},"device_spec_".concat(t))):null}),(0,N.jsx)("div",{className:"specDesc fs-16 lh-163 maxis",children:(0,N.jsx)("p",{children:t.specificationDesc?t.specificationDesc:null})})]})]})}function B(e){let t=e.deviceTabDetails,a=e.intl,s=e.compTitle2,i=void 0===s?"":s;if(!t)return null;const l=[{title:a.messages.overviewLabel,id:a.messages.overviewLabelID,content:(0,N.jsx)(O,{overview:t.overviewHtml})},{title:a.messages.specificationLabel,id:a.messages.specificationsLabel,content:t&&(0,N.jsx)(E,{deviceSpec:t})}];return(0,N.jsxs)("div",{className:"container deviceTabs max-md-width",children:[(0,N.jsx)("div",{className:"d-flex flex-column",children:(0,N.jsx)(x.uT,{compTitlePart1:a.messages.aboutLabel,compTitlePart2:i||a.messages.theDeviceLabel,tag:"h2"})}),(0,N.jsx)(L.A,{config:l,customTabListClass:"tabHeaderStyle pb-0 d-flex pt-4 m-0",customTabClass:"fs-14 maxis text-gunmetal tabLabelStyle",containerClass:"max-md-width"})]})}var R=a(78638),F=a(46013);const U=e=>{let t=e.handleClose,a=e.show,s=e.titleLabel,i=e.messageLabel,l=e.primaryButtonLabel,n=e.secondaryButtonLabel,o=e.onClickPrimaryButton,r=e.onClickSecondaryButton;return(0,N.jsx)(F.A,{show:a,onHide:t,className:"my-modal tng-zero-payment-modal d-flex justify-content-center",centered:!0,children:(0,N.jsx)(F.A.Body,{children:(0,N.jsxs)("div",{className:"container-fluid p-0 m-0",children:[(0,N.jsx)("div",{className:"d-flex flex-row-reverse fs-14",children:(0,N.jsx)(x.$n,{id:"closeCartPopup",buttonClass:"position-absolute cursor-pointer close-icon",reactButtonClass:"maxis-extraBold",buttonLabel:(0,N.jsx)(C.uv5,{width:12}),onClick:t,fullWidth:!1})}),(0,N.jsx)("div",{className:"row title-popup",children:(0,N.jsx)("div",{className:"col-12 px-15px text-center text-blue-green maxis-bold fs-18 fs-lg-26 lh-120",children:s})}),(0,N.jsx)("div",{className:"row justify-content-center",children:(0,N.jsx)("div",{className:"col-12 col-md-11 text-gunmetal text-center pb-2 fs-14 fs-lg-16 lh-143 lh-lg-150 title m-0 p-0 px-2 px-md-5",children:i})}),(0,N.jsxs)("div",{className:"row justify-content-center pt-md-2 button-section",children:[(0,N.jsx)("div",{className:"col-md-8 col-11 p-0",children:(0,N.jsx)(x.$n,{buttonClass:"primary ls-0 fs-14 button-hover-anim maxis-extraBold letter-spacing-15",buttonLabel:l,onClick:()=>{o()}})}),(0,N.jsx)("div",{className:"col-md-8 col-11 p-0",children:(0,N.jsx)(x.$n,{buttonClass:"outline-primary button-hover-anim ls-0 fs-14 maxis-extraBold bg-transparent text-brown-grey letter-spacing-15",buttonLabel:n,onClick:()=>{r()}})})]})]})})})};function _(e){let t=e.intl,a=e.i18nLabels,i=e.planInfoClass,l=void 0===i?"":i,n=e.price,o=e.name,r=e.inclSeparateMthEnding,c=void 0!==r&&r,d=e.inclStar,m=void 0!==d&&d,p=e.planTitleClass,u=void 0===p?"":p,g=e.planPriceClass,b=void 0===g?"":g,h=e.isOverrideTitleStyle,f=void 0!==h&&h,y=e.action,A=void 0===y?()=>{}:y,C=e.showIncludedPrice,T=void 0!==C&&C;return(0,N.jsxs)("div",{className:"".concat(l," row"),onClick:A,children:[(0,N.jsx)("div",{className:"col-8 d-flex align-items-end plan-name",children:(0,N.jsx)("span",{className:"".concat(f?"":"maxis-bold text-gunmetal"," fs-14 ").concat(u),children:o})}),(0,N.jsx)("div",{className:"col-4 ".concat(T?"d-flex justify-content-end align-items-center":""),children:(j=n,P="fs-12",D="fs-20",k="justify-content-end text-gunmetal maxis-bold ".concat(b),(0,N.jsx)("div",{className:"d-flex ".concat(k),children:T?(0,N.jsx)(x.JU,{labelClass:"mb-0 maxis-bold spacing-1 ".concat(P),labelData:t.messages.includedLabel}):(0,N.jsx)(x.JU,{labelClass:"mb-0 maxis-bold spacing-1 ".concat(P),labelData:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.RMprice),{},{values:{price:(0,N.jsxs)("span",{className:"mb-0 maxis-bold spacing-2 ".concat(D),children:[j||"--",m?"*":""]})}}
1)),j&&c?t.formatMessage(a.cart_recurringPriceFormatEndingText):""]})})}))})]});var j,P,D,k}function H(e){var t;let a=e.cartAction,i=e.cartLabel,l=e.totalRecurringCharge,n=e.togglePriceDetails,o=e.expandPriceDetails,r=e.isBroadband,d=e.intl,m=e.i18nLabels,p=e.getCapitalizeString,u=e.jppOfferPrice,g=e.isZerolutionContract,b=e.formattedContractTitle,h=e.cartId,f=e.disabled,A=e.getPrice,T=e.getThousandSeparatorValue,j=e.isWearable,P=e.cartDetails,D=e.watchPlan,k=e.deviceInformation,I=e.savingPrice,S=e.so1Details,w=e.isHomeDevices,M=e.selectedBundleDevice,L=e.bundleUpfrontPrice,O=e.isHomeDevicesWithoutPlan,E=e.showUpfrontPaymentAsterick,B=e.isPlanWithHardBundle,R=e.isAddDeviceToExistingFibre;const F=P.deviceTitle,U=P.planName,H=P.planPrice,V=P.colour,G=P.storageType,W=P.contractTitle,J=P.contractPrice,Y=S.rebateInfo,Z=void 0===Y?{}:Y,q=S.isSO1Valid,z=y.n.getPriceNumber(J)||0,K=(()=>{const e=q&&!g?Z.rebateAmount:0;return e>z?z:e})(),$=[W&&U||w,!R].every(Boolean),X=y.n.getValues(M,"contract.deviceUpfrontPrice",0)||"0",Q=(()=>{let e=w?L:Number(P.deviceUpfrontPrice)||0;return K>0&&(e-=K),u>0&&(e-=u),e>=0?e:0})(),ee=()=>g?(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},m.zerolutionRebateDescription),{},{values:{rebateAmount:Z.rebateAmount,rebateDuration:Z.rebateDuration}})):(0,N.jsx)("span",{className:"fs-10 text-steel mb-0",children:d.messages.so1OfferDescription}),te=()=>(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},m.rrPMessage),{},{values:g||!J?{rrpPrice:(0,N.jsx)("span",{className:"fs-10 text-steel mb-0",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},m.rrpPrice),{},{values:{price:k.priceRrp}}))}),saveDevicePrice:""}:{rrpPrice:(0,N.jsx)("span",{className:"fs-10 text-steel mb-0 strike-through",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},m.rrpPrice),{},{values:{price:k.priceRrp}}))}),saveDevicePrice:(0,N.jsx)("span",{className:"fs-10 text-lightish-blue maxis-semiBold mb-0 pl-1",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},m.saveDevicePrice),{},{values:{price:I}}))})}}));return(0,N.jsxs)("div",{className:"mobile-only row mx-0",children:[$&&(0,N.jsxs)("div",{className:"mobile-cart w-100 col-12 ",onClick:()=>n(!o),children:[(0,N.jsxs)("div",{className:"text-center cursor-pointer pb-2px ".concat(o?"mb--4px pt-4px":""),children:[(0,N.jsx)(C.kcQ,{className:o?"flip-down":"floating-action flip-up"}),(0,N.jsx)("div",{className:"text-steel fs-12 mt-4px",children:o?d.messages.mini_cart_collapse_label:d.messages.mini_cart_expand_label})]}),(0,N.jsxs)("div",{className:"row align-items-baseline container max-md-width mx-auto px-0",children:[j||w?(0,N.jsxs)("div",{className:"col-12 px-0 ".concat(o?"animate-out-v2 my-2 wearable-expand-price":"animate-in"),children:[(0,N.jsxs)("div",{className:"device-info text-left",children:[(0,N.jsx)("p",{className:"maxis-bold fs-14 text-gunmetal ".concat(w?"mb-0":"mb--9px"),children:F}),!w&&(0,N.jsx)("span",{className:"maxis fs-10 text-steel",children:(0,N.jsx)(te,{})})]}),(0,N.jsxs)("div",{className:"device-plan text-left ".concat(j?"wearable-device-plan":"home-device-plan"," "),children:[(0,N.jsx)("p",{className:"maxis-extraBold fs-18 text-blue-green mb-10px",children:j?d.messages.wearableTitle:d.messages.homeDeviceTitle}),(0,N.jsxs)("p",{className:"maxis-bold fs-14 text-gunmetal mb--14px pb-3px",children:[(0,N.jsx)("span",{className:"pr-1",children:F}),!r&&!w&&(0,N.jsx)("span",{className:"maxis",children:d.formatMessage(m.cart_selectedVariant,{colour:p(V),storageType:G})})]}),(0,N.jsx)(_,{intl:d,i18nLabels:m,planInfoClass:"mb--5px wearable-plan-info ".concat(w?"home-device-contract-minicart":""),planPriceClass:"".concat(w?"home-device-price-minicart":""),planTitleClass:"".concat(w&&!b?"maxis text-steel":""),name:b||(j?d.messages.cart_chooseAContractLabel:d.messages.selectContractTypeLabel),price:(parseInt(J,10)||0)-u,isOverrideTitleStyle:w&&!b,inclSeparateMthEnding:g}),j&&(0,N.jsx)(_,{intl:d,i18nLabels:m,planInfoClass:"wearable-plan-info",name:null===D||void 0===D?void 0:D.planGroup,price:null===D||void 0===D||null===(t=D.planDetails)||void 0===t?void 0:t.planPrice,inclSeparateMthEnding:!0})]}),(0,N.jsxs)("div",{className:"mobile-plan text-left",children:[(0,N.jsx)("p",{className:"maxis-extraBold fs-18 text-blue-green mb-2px",children:j?d.messages.mobileTitle:d.messages.broadbandTitle}),(0,N.jsx)(_,{intl:d,i18nLabels:m,planInfoClass:"wearable-plan-info",planTitleClass:"".concat(w&&!U?"maxis text-steel":""),name:U||(j?d.messages.cart_
1chooseAPlanLabel:d.messages.selectFibrePlanLabel),price:H,isOverrideTitleStyle:w&&!U,inclSeparateMthEnding:!0}),w&&!c().isEmpty(M)&&(0,N.jsx)(_,{intl:d,i18nLabels:m,planInfoClass:"wearable-plan-info",planTitleClass:"".concat(w&&!M.title?"maxis text-steel":""),name:M.title||d.messages.selectBundleLabel,price:X,isOverrideTitleStyle:w&&!M.title,showIncludedPrice:B})]})]}):(0,N.jsxs)("div",{className:"col-12 cart-details cart-details-mobile ".concat(o?"animate-out my-2 device-expand-price":"animate-in"),children:[(0,N.jsxs)("div",{className:" d-flex text-gunmetal",children:[(0,N.jsx)("span",{className:"maxis-bold pr-1",children:F}),!r&&(0,N.jsx)("span",{children:d.formatMessage(m.cart_selectedVariant,{colour:p(V),storageType:G})})]}),(0,N.jsx)(x.ph,{name:b||d.messages.cart_chooseAContractLabel,value:(0,N.jsx)(te,{}),valueAsChild:A((parseInt(J,10)||0)-u,g,"fs-12","fs-20",""),fieldNameClass:"".concat(W?"maxis-bold mb-0":"text-steel fs-12 maxis mb-0"),fieldValueClass:"fs-10 text-left text-steel mb-0",alignNameClass:"text-left",fieldInfoClass:"align-items-baseline text-gunmetal",alignment:"vertical"}),q&&!g&&K>0&&(0,N.jsx)(x.ph,{name:d.messages.offerAppliedLabel,value:ee(),valueAsChild:A(-1*K,g,"fs-12 text-frog-green","fs-20",""),fieldNameClass:"maxis-bold mb-0",fieldValueClass:"fs-10 text-left text-steel mb-0",alignNameClass:"text-left",fieldInfoClass:"align-items-baseline mt-3 text-gunmetal",alignment:"vertical"}),(0,N.jsx)(x.ph,{name:U||d.messages.cart_chooseAPlanLabel,valueAsChild:A(H,!0,"fs-12","fs-20",""),fieldNameClass:"".concat(U?"maxis-bold mb-0":"text-steel fs-12 maxis mb-0"),alignNameClass:"text-left",fieldInfoClass:"align-items-baseline mt-3 text-gunmetal",alignment:"vertical"}),q&&g&&Z.rebateAmount>0&&(0,N.jsx)(x.ph,{name:d.messages.offerAppliedLabel,value:ee(),valueAsChild:A(-1*Z.rebateAmount,g,"fs-12 text-frog-green","fs-20",""),fieldNameClass:"maxis-bold mb-0",fieldValueClass:"fs-10 text-left text-steel mb-0",alignNameClass:"text-left",fieldInfoClass:"align-items-baseline mt-3 text-gunmetal",alignment:"vertical"})]}),(0,N.jsxs)("div",{className:"col-6 text-gunmetal mb-2 px-0",children:[A(l,!0,"fs-12","fs-20","",!1,{showPricePlaceholder:O}),(0,N.jsx)(x.JU,{labelClass:"fs-11 lh-11px ls-100 text-gunmetal maxis d-flex mb-0",labelData:d.messages.cart_monthlyPaymentLabel})]}),(0,N.jsxs)("div",{className:"col-6 text-blue-green mb-2 px-0",children:[A(T(Q),!1,"fs-18","fs-32 lh-32px","justify-content-end",E,{showPricePlaceholder:O}),(0,N.jsx)(x.JU,{labelClass:"fs-11 lh-11px ls-100 text-blue-green maxis d-flex mb-0 justify-content-end",labelData:d.messages.cart_totalPaymentLabel})]})]})]}),(0,N.jsx)("div",{className:"w-100 white-background",children:(0,N.jsx)("div",{id:"m".concat(h),className:"mobile-add-to-cart w-100 py-3 ".concat(f?"disable":"cursor-pointer"),onClick:a,children:(0,N.jsx)(x.JU,{labelClass:"maxis-semiBold mb-0 ls-150 text-uppercase",labelData:i})})})]})}function V(e){let t=e.intl,a=e.i18nLabels,i=e.cartAction,l=e.getPrice,n=e.cartId,o=e.disabled,r=e.cartLabel,c=e.scrollToSKUSection,d=e.deviceTitle,m=e.colour,p=e.storageType,u=e.outrightPrice,g=e.showTNGnonEkycModal,h=e.setShowTNGnonEkycModal,f=e.rrpPrice;return(0,N.jsxs)("div",{id:"pdp-outright-mini-cart",className:"outright-mini-cart w-100",children:[(0,N.jsx)(U,{show:g,onClickPrimaryButton:()=>{h(!1),R.B.openDeeplink(b.A.TNGekycDeepLink)},onClickSecondaryButton:()=>h(!1),handleClose:()=>h(!1),primaryButtonLabel:t.messages.TNGnonEkycModalPrimaryButtonText,secondaryButtonLabel:t.messages.TNGnonEkycModalSecondaryButtonText,titleLabel:t.messages.TNGnonEkycModalTitle,messageLabel:t.messages.TNGnonEkycModalMessage}),(0,N.jsx)("div",{className:"container px-0 non-mobile",children:(0,N.jsxs)("div",{className:"cart py-7px",children:[(0,N.jsxs)("div",{id:"cart-sku-details",className:"device-info-placeholder px-0 col-4",onClick:c,children:[(0,N.jsxs)("div",{className:"d-flex text-gunmetal mt-1",children:[(0,N.jsx)("span",{className:"maxis-bold pr-1",children:d}),(0,N.jsx)("span",{children:t.formatMessage(p?a.cart_selectedVariant:a.cart_selectedVariantWithoutStorage,{colour:y.n.getCapitalizeString(m),storageType:p})})]}),(0,N.jsx)(x.JU,{labelClass:"fs-10 text-steel text-left mb--9px",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.rrPMessage),{},{values:{rrpPrice:(0,N.jsx)("span",{className:"fs-10 text-steel mb-0 ",children:"".concat(t.messages.RM).concat(f)}),saveDevicePrice:""}}))})]}),(0,N.jsxs)("div",{className:"d-flex",children:[(0,N.jsxs)("div",{className:"device-price-placeholder text-blue-green",children:[l(y.n.getThousandSeparatorValue(Number(u)||0),!1,"fs-24 lh-24px","fs-40"," mt-3 mb-1",!1),(0,N.jsx)(x.JU,{labelClass:"maxis d-flex mb-0 ls-100",labelData:t.messages.toPayNowLabel})]}),(0,N.jsx)("div",{className:"btn-placeholder px-0 d-flex flex-column align-items-stretch justify-content-center",children:(0,N.jsx)(x.$n,{id:"d".concat(n),onClick:i,buttonClass:"addToCartBtn mb-0 primary ".concat(o?"":"button-hover-anim"," ls-150 text-uppercase"),disabled:o,buttonLabel:r})})]})]})}),(0,N.jsxs)("div",{className:"mobile-only row mx-0",children:[(0,N.jsx)("div",{className:"mobile-cart w-100",children:(0,N.jsxs)("div",{className:"d-flex justify-content-between align-items-center container px-0",children:[(0,N.jsxs)("div",{className:"d-flex flex-column align-items-start mt-10px",children:[(0,N.jsxs)("div",{className:"text-gunmetal",children:[(0,N.jsx)("span",{className:"maxis-bold pr-1",children:d}),(0,N.jsx)("p",{className:"mb-4px lh-normal",children:t.formatMessage(p?a.cart_selectedVariantMobile:a.cart_selectedVariantWithoutStorageMobile,{colour:y.n.getCapitalizeString(m),storageType:p})})]}),(0,N.jsx)("div",{className:"maxis fs-12 text-gunmetal",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.rrPMessage),{},{values:{rrpPrice:(0,N.jsx)("span",{className:"fs-12 text-gunmetal mb-0",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.rrpPrice),{},{values:{price:f}}))}),saveDevicePrice:""}}))})]}),(0,N.jsxs)("div",{className:"col-6 text-blue-green px-0",children:[l(y.n.getThousandSeparatorValue(u),!1,"fs-18","fs-32 lh-32px","justify-content-end",!1),(0,N.jsx)(x.JU,{labelClass:"fs-11 lh-13px ls-100 text-blue-green maxis d-flex mb-0 justify-content-end",labelData:t.messages.toPayNowLabel})]})]})}),(0,N.jsx)("div",{className:"w-100 white-background",children:(0,N.jsx)("div",{id:"m".concat(n),className:"mobile-add-to-cart w-100 py-3 ".concat(o?"disable":"cursor-pointer"),onClick:i,children:(0,N.jsx)(x.JU,{labelClass:"maxis-semiBold mb-0 ls-150 text-uppercase",labelData:r})})})]})]})}a.dn(U);const G=y.n.analyticsUtility,W=y.n.getThousandSeparatorValue,J=y.n.getCapitalizeString,Y=e=>{var t,a,l,n,r;let d=e.intl,m=e.cartDetails,p=e.deviceInformation,h=e.i18nLabels,A=e.stockDetail
1s,T=e.selectedPlanDetails,j=e.deviceDetails,P=e.scrollToSKUSection,D=e.scrollToPlansSection,k=e.isJPPOffer,I=e.plansOptions,S=e.savingPrice,w=e.reserveNowModalToggle,M=e.so1Details,L=e.isHomeDevices,O=e.hasCoverageCheckOptions,E=e.fibreCoverageStatus,B=e.homeDeviceContract,F=e.selectedBroadbandPlan,Y=e.isSticky,Z=e.getTotalGlobalHeaderHeight,q=e.scrollTo,z=e.selectPurchasingOption,K=e.navigateToMarketingPage,$=e.isNgbbFibreSpecialOffer,X=e.isHomeDevicesUgradeMyFibre,Q=e.setShowRoiModal,ee=e.marketingPageUrl,te=e.isAddDeviceToExistingFibre,ae=e.selectedSkuDetails,se=e.preNavigateWithTnGAuthenthication,ie=e.showTNGnonEkycModal,le=e.setShowTNGnonEkycModal,ne=e.isNewLineSignUpOnlyOffer,oe=e.isVdslAddress,re=e.coverageCheckFailWithRoi,ce=e.toggleRegisterFibreInterestModal,de=e.showCoverageCheckResultBlock,me=e.isDeviceWithOutrightFlow;const pe=m.brandTitle,ue=m.deviceTitle,ve=m.deviceType,ge=m.variantSize,be=m.operatingSystem,xe=m.deviceAdvPayment,he=m.planName,fe=m.planId,ye=m.planPrice,Ae=m.colour,Ce=m.storageType,Ne=m.contractTitle,Te=m.contractPrice,je=m.skuId,Pe=m.contractPeriod,De=m.contractId,ke=m.deviceUpfrontPrice,Ie=m.JPPCookie,Se=m.selectedBundle,we=void 0===Se?[]:Se,Me=m.orderType,Le=m.color,Oe=b.A.analyticsConfig,Ee=we.find(e=>e.deviceType===b.A.deviceTypes.wifi)||{},Be=y.n.getValues(Ee,"contract.deviceUpfrontPrice",0)||"0",Re=b.A.planListWithHardBundle.includes(fe),Fe=[L,!c().isEmpty(Ee),!Ee.onlineStock,!Ee.retailStock].every(Boolean),Ue=we.map(e=>{var t;return(null===e||void 0===e||null===(t=e.contract)||void 0===t?void 0:t.deviceUpfrontPrice)||0}).reduce((e,t)=>e+t,0),_e=ve===b.A.deviceTypes.broadband,He=ve===b.A.deviceTypes.wearables,Ve=T&&T.isDisableCart,Ge=j&&j.nonSaleable||{promo:"",roiFormUrl:"",skuids:[]},We=null===j||void 0===j?void 0:j.tradeUpDeals,Je=k&&parseInt(null===Ie||void 0===Ie?void 0:Ie.JPP,10)||0,Ye=De===b.A.NORMAL_CONTRACT_ID&&((null===We||void 0===We?void 0:We.includes("".concat(je,"-").concat(fe)))||(null===We||void 0===We?void 0:We.includes("".concat(f.HR.all,"-").concat(f.HR.all)))||(null===We||void 0===We?void 0:We.includes("".concat(f.HR.all,"-").concat(fe)))||(null===We||void 0===We?void 0:We.includes("".concat(je,"-").concat(f.HR.all)))),Ze=(null===Ge||void 0===Ge||null===(t=Ge.skuids)||void 0===t?void 0:t.includes(je))||(null===Ge||void 0===Ge||null===(a=Ge.skuids)||void 0===a?void 0:a.includes(f.HR.all)),qe=(0,i.useState)(!1),ze=(0,o.A)(qe,2),Ke=ze[0],$e=ze[1],Xe=He&&y.n.getValues(I,"plansList",[]).filter(e=>e.planId===f.HR.defaultWatchPlanId).slice(0,1),Qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=(arguments.length>6&&void 0!==arguments[6]?arguments[6]:{}).showPricePlaceholder,r=void 0!==o&&o;const c=Number(e)||0;return(0,N.jsxs)("div",{className:"d-flex ".concat(l),children:[c<0&&(0,N.jsx)("span",{className:"pr-1 fs-20 ".concat(a),children:"-"}),(0,N.jsx)(x.JU,{labelClass:"mb-0 maxis-bold spacing-1 ".concat(a),labelData:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},h.RMprice),{},{values:{price:(0,N.jsxs)("span",{className:"mb-0 maxis-bold spacing-2 ".concat(i),children:[r?"--":Math.abs(c),n?"*":""]})}})),(Math.abs(c)||r)&&t?d.formatMessage(h.cart_recurringPriceFormatEndingText):""]})})]})},et=De&&De.includes(b.A.ZEROLUTION_CONTRACT_ID),tt=M.rebateInfo,at=void 0===tt?{}:tt,st=M.isSO1Valid&&at.rebateAmount||0;let it=et&&Te&&ye?(y.n.getPriceNumber(Te)||0)+(y.n.getPriceNumber(ye)||0)-st:y.n.getPriceNumber(ye)||0;if(He){var lt,nt;const e=null===Xe||void 0===Xe||null===(lt=Xe[0])||void 0===lt||null===(nt=lt.planDetails)||void 0===nt?void 0:nt.planPrice;it+=parseFloat(null===e||void 0===e?void 0:e.toString().replace(",",""))||0}const ot=[L,O,!E,!oe,!re,!de].every(Boolean),rt=[L,B,F].every(Boolean),ct=[oe||re,F].every(Boolean),dt=me?Boolean(pe&&Ae):Boolean(pe&&he&&Ae&&Ne),mt=A.hasDeviceBackOrderOption&&dt,pt=[L,!m.onlineStock,!m.retailStock].every(Boolean),ut=[pt,!ot,!$,!oe].every(Boolean);let vt=!Ye&&!Ze&&(Ve?!Ve:!(dt&&A&&(A.onlineStockStatus||A.retailStockStatus)));((A.hasDeviceReservationOption&&dt||A.registerDeviceInterestStatus)&&dt||ot||rt||$||ct||mt||te)&&(vt=!1),(Fe||ut)&&(vt=!0);
1const gt=Ne&&d.formatMessage(h.cart_contractTitleLabel,{contractTitle:Ne}),bt=function(){vt||(A.hasDeviceReservationOption&&(G.triggerGAForEventClicks(b.A.analyticsConfig.gaLabels.reserveDeviceBottom,b.A.analyticsConfig.gaActions.clickEvent,b.A.analyticsConfig.gaCategories.ecommerce,{gaDeviceName:"".concat(j.deviceTitle," ").concat(Oe.reservation),gaDeviceColor:ae.colourName,gaDeviceStorage:ae.storageType}),G.pushToInsiderEvent({event_name:"".concat(b.A.insiderConfig.eventName.reserveNow,"_").concat(j.device)})),se(A))};let xt=Ye?"BtnLearnMore":"BtnAddToCart";xt=Ve?"BtnCheckInStore":xt,xt=Ze?"BtnRegisterInterest":xt;const ht=()=>{const e=Z(),t=document.getElementById("fibreCoverageSection");q(t,e,Y)},ft=L&&(()=>{if($)K({gaCategory:Oe.gaCategories.ecommerce});else{if(!oe&&!re)return X?(G.pushToGTM({event:Oe.eventNames.eventClicks,gaCategory:Oe.gaCategories.ecommerce,gaAction:Oe.gaActions.maxisHomeDeviceRegisterInterest,gaLabel:Oe.gaLabels.registerInterest,gaHomeDeviceDevice:ue,gaHomeDevicePlan:he,gaHomeDeviceContract:De}),void Q(!0)):void(ot?(G.triggerGAForEventClicks(d.messages.checkCoverageTitle,b.A.analyticsConfig.gaActions.bottom),ht()):(rt||te)&&((()=>{const e=Oe.eventNames,t=Oe.maxisBrand,a=Oe.deviceCategoryForPlan,i=Oe.planCategory,l=Oe.categoryTypes,n=Oe.addOnCategory,o=Oe.addOnCategoryForPlan,r=Me===b.A.orderType.FIBRE_ORDER,d=[];let m;const p=G.getDeviceType(ve),u=be||Oe.operatingSystem.na,v=b.A.bundleNames.maxisHomeDevice,g=b.A.ZerolutionFibreDevice,x=(0,s.A)({},z).id||Oe.notApplicable,h={name:ue,id:je,price:24*((parseFloat(Te)||0)-Je),brand:pe,category:[l.device,p,u].join("/"),variant:ge||"",dimension12:g,dimension13:Le||"",quantity:1,dimension35:v,dimension95:x};if(d.push(h),fe){const e={name:he,id:fe,price:24*parseFloat(ye||0),brand:t,category:[l.plan,a.broadband,r?i.maxisFibre:i.maxisHomeWifi].join("/"),variant:te&&b.A.flowType.addHomeDevice||b.A.flowType.addNewLine,dimension12:g,quantity:1,dimension35:v,dimension95:x};d.push(e)}var f;c().isEmpty(Ee)||(m={name:Ee.title,id:Ee.skuId,price:24*parseFloat((null===Ee||void 0===Ee||null===(f=Ee.contract)||void 0===f?void 0:f.deviceUpfrontPrice)||0),brand:t,category:[l.addOn,n.router,o.zte].join("/"),variant:(null===Ee||void 0===Ee?void 0:Ee.variantSize)||"",dimension12:g,quantity:1,dimension35:v,dimension95:x},d.push(m)),G.pushToGTM({event:e.eCommerceAdd,ecommerce:{add:{products:d}}})})(),bt()));ce()}})||(Ve||Ze||Ye)&&(()=>{const e=Te&&Te.toString().replace(",",""),t=xe&&xe.toString().replace(",",""),a=G.getDeviceType(ve),s=pe.toLowerCase().includes("apple")?b.A.analyticsConfig.operatingSystem.ios:b.A.analyticsConfig.operatingSystem.android,i=G.getDeviceTypeForPlan(ve),l=De===b.A.ZEROLUTION_CONTRACT_ID&&Pe===b.A.ZEROLUTION24_TENURE,n=De===b.A.ZEROLUTION_CONTRACT_ID&&Pe===b.A.ZEROLUTION36_TENURE,o=De===b.A.ZEROLUTION_CONTRACT_ID&&Pe===b.A.ZEROLUTION48_TENURE&&b.A.ZEROLUTION48_PERIOD||n&&b.A.ZEROLUTION36_PERIOD||l&&b.A.ZEROLUTION24_PERIOD||Pe,r=b.A.analyticsConfig.contractTypes[String(De).toLowerCase()+o],c=[{name:ue,id:je,price:De&&Pe&&e&&De.includes(b.A.ZEROLUTION_CONTRACT_ID)?o*parseFloat(e):parseFloat(e)+parseFloat(t),brand:pe,category:[b.A.analyticsConfig.categoryTypes.device,a,_e?pe:s].join("/"),variant:_e?"":Ce,dimension12:r,dimension13:Ae.toLocaleUpperCase()},{name:he,id:fe,price:Pe&&T&&T.planPrice&&o*parseFloat(T.planPrice.toString().replace(",","")),brand:b.A.analyticsConfig.maxisBrand,category:[b.A.analyticsConfig.categoryTypes.plan,i,G.getPlanCategory(T.planName)].join("/"),variant:"",dimension12:r}];(m.addOnPlans||[]).forEach(e=>{c.push({name:e.planGroup,id:e.planId,price:Number(o)*Number(y.n.getValues(e,"planDetails.planPrice")),brand:b.A.analyticsConfig.maxisBrand,category:[b.A.analyticsConfig.categoryTypes.plan,b.A.analyticsConfig.deviceCategory.wearables,G.getPlanCategory(T.planName)].join("/"),variant:"",dimension12:r,quantity:Number(e.quantity)||1,dimension35:b.A.bundleNames.maxisPostpaidWithDeviceBundle})});const d=b.A.analyticsConfig.eventNames,p=d.ecommerceAddWhere,v=d.ecommerceAddForm;(Ze||Ve)&&G.pushToGTM({event:Ze?v:p,ecommerce:{add:{products:c}}});const g=u.stringify({customerType:"existing",contract:"normal",promo:Ge.promo||"",device:[pe,ue].join(" "),color:J(Ae),capacity:Ce,rateplan:T.planName,preferredDelivery:"collect"}
1),x=Ge.roiFormUrl?[Ge.roiFormUrl,"?",g].join(""):"",h=u.stringify({title:[null===j||void 0===j?void 0:j.brandTitle,null===j||void 0===j?void 0:j.deviceTitle].join(" "),articleModel:[null===j||void 0===j?void 0:j.brandTitle,null===j||void 0===j?void 0:j.deviceTitle].join(" ")}),A=[b.A.consumeSiteOrigin,"/",f.HR.roiUrl,"?",h].join("");window.open(Ze?x:Ye&&f.HR.tradeDealURL||A,"_blank")})||ne&&(()=>{Q(!0)})||bt,yt=A.onlineStockStatus||A.retailStockStatus,At=$&&d.messages.findOutMore||(oe||re)&&d.messages.continueLabel||A.hasDeviceReservationOption&&d.messages.reserveNow||(Ze||X)&&d.messages.registerInterest||Ve&&d.messages.checkInStore||Ye&&d.messages.learnMore||ot&&d.messages.checkCoverageTitle||yt&&ne&&d.messages.signUpNowLabel||te&&!pt&&d.messages.selectMyFibreLabel||(yt||L&&!Fe&&!pt||mt)&&d.messages.addToCartLabel||d.messages.outOfStockLabel,Ct=He||L&&!te,Nt=!te,Tt=L&&(Number.isNaN(parseInt(Te,10))||Number.isNaN(parseInt(ye,10))),jt=!L||!Tt,Pt={cartAction:ft,cartLabel:At,totalRecurringCharge:it,togglePriceDetails:$e,expandPriceDetails:Ke,isBroadband:_e,intl:d,i18nLabels:h,getCapitalizeString:J,jppOfferPrice:Je,isZerolutionContract:et,formattedContractTitle:gt,cartId:xt,disabled:vt,getPrice:Qe,getThousandSeparatorValue:W,isWearable:He,savingPrice:S,deviceInformation:p,cartDetails:m,reserveNowModalToggle:w,watchPlan:Xe[0],so1Details:M,isHomeDevices:L,selectedBundleDevice:Ee,bundleUpfrontPrice:Ue,isHomeDevicesWithoutPlan:Tt,showUpfrontPaymentAsterick:jt,isPlanWithHardBundle:Re,isAddDeviceToExistingFibre:te},Dt=y.n.getValues(j,"outrightDetails",[]).find(e=>e.skuId===(0,s.A)({},ae).skuId)||{},kt={intl:d,i18nLabels:h,cartAction:ft,getPrice:Qe,cartId:xt,disabled:vt,cartLabel:At,scrollToSKUSection:P,deviceTitle:ue,colour:Ae,storageType:Ce,outrightPrice:Dt.outrightPrice,showTNGnonEkycModal:ie,setShowTNGnonEkycModal:le,rrpPrice:p.priceRrp};return(0,N.jsxs)(N.Fragment,{children:[me&&(0,N.jsx)(V,(0,s.A)({},kt)),!me&&(0,N.jsxs)("div",{id:"pdp-cart-section",className:"cart-section w-100",children:[(0,N.jsx)(U,{show:ie,onClickPrimaryButton:()=>{le(!1),R.B.openDeeplink(b.A.TNGekycDeepLink)},onClickSecondaryButton:()=>le(!1),handleClose:()=>le(!1),primaryButtonLabel:d.messages.TNGnonEkycModalPrimaryButtonText,secondaryButtonLabel:d.messages.TNGnonEkycModalSecondaryButtonText,titleLabel:d.messages.TNGnonEkycModalTitle,messageLabel:d.messages.TNGnonEkycModalMessage}),(0,N.jsx)("div",{className:"container px-0 non-mobile",children:(0,N.jsxs)("div",{className:"cart ".concat(Ct?"cart-wearable":"py-7px"),children:[Ct&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"text-center cursor-pointer mt--10px ".concat(Ke?"mb-17px pt-10px":"floating-action-wrapper"),children:[(0,N.jsx)(C.kcQ,{className:Ke?"flip-down":"floating-action flip-up",onClick:()=>$e(!Ke)}),(0,N.jsx)("div",{className:"text-steel fs-12 mt-4px",children:Ke?d.messages.mini_cart_collapse_label:d.messages.mini_cart_expand_label})]}),(0,N.jsxs)("div",{className:"cart-wearable-details row px-0 ".concat(Ke?"desktop-animate-out":"desktop-animate-in"),children:[(0,N.jsx)("div",{className:"col-3 col-xl-2"}),(0,N.jsxs)("div",{className:"col-4 px-0 text-left",children:[(0,N.jsx)("p",{className:"device-info-desktop maxis-extraBold fs-18 text-blue-green",children:He?d.messages.wearableTitle:d.messages.homeDeviceTitle}),(0,N.jsxs)("div",{className:"pl-18px mt--13px",children:[(0,N.jsxs)("p",{className:"maxis-bold fs-14 lh-186 text-gunmetal mb--12px",onClick:P,children:[(0,N.jsx)("span",{className:"pr-1",children:ue}),!_e&&!L&&(0,N.jsx)("span",{className:"maxis",children:d.formatMessage(h.cart_selectedVariant,{colour:J(Ae),storageType:Ce})})]}),(0,N.jsx)(_,{intl:d,i18nLabels:h,planInfoClass:"mb--5px ".concat(L?"home-device-contract-minicart":""),planPriceClass:"".concat(L?"home-device-price-minicart":""),planTitleClass:"lh-186 ".concat(L&&!gt?"maxis text-steel":""),name:gt||(He?d.messages.cart_chooseAContractLabel:d.messages.selectContractTypeLabel),price:Number.isNaN(parseInt(Te,10))?null:Te.toString(),isOverrideTitleStyle:L&&!gt,inclSeparateMthEnding:et,action:P}),He&&(0,N.jsx)(_,{intl:d,i18nLabels:h,planInfoClass:"mt-6px",name:null===(l=Xe[0])||void 0===l?void 0:l.planGroup,price:null===(n=Xe[0])||void 0===n||null===(r=n.planDetails)||void 0===r?void 0:r.planPrice,inclSeparateMthEnding:!0})]})]}),(0,N.jsxs)("div",{className:"".concat(He?"col-4 pr-0":"col-4 col-lg-5 col-xl-4 pr-lg-4 pr-xl-0"," pl-24px pl-xl-30px"),children:[(0,N.jsx)("p",{className:"device-info-desktop text-left maxis-extraBold fs-18 text-blue-green",children:He?d.messages.mobileTitle:d.messages.broadbandTitle}),(0,N.jsx)(_,{intl:d,i18nLabels:h,planInfoClass:"pl-18px mt--17px",planTitleClass:"lh-186 ".concat(L&&!he?"maxis text-steel":""),name:he||(He?d.messages.cart_
1chooseAPlanLabel:d.messages.selectFibrePlanLabel),price:ye,isOverrideTitleStyle:L&&!he,action:L?ht:()=>{},inclSeparateMthEnding:!0}),L&&!c().isEmpty(Ee)&&(0,N.jsx)(_,{intl:d,i18nLabels:h,planInfoClass:"pl-18px",planTitleClass:"lh-186 ".concat(L&&!Ee.title?"maxis text-steel":""),name:Ee.title||d.messages.selectBundleLabel,price:Be,isOverrideTitleStyle:L&&!Ee.title,action:L?ht:()=>{},showIncludedPrice:Re})]})]})]}),(0,N.jsxs)("div",{className:(0,g.A)("row w-100",Ct&&"mt--13px",!Nt&&"mx-0"),children:[Nt?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"col-3 col-xl-2 text-gunmetal pl-4",children:[Qe(it,!0,"fs-18 ls-050","fs-32 lh-181 ls-normal","total-monthly-payment-minicart",!1,{showPricePlaceholder:Tt}),(0,N.jsx)(x.JU,{parentClass:"monthly-payment-minicart",labelClass:"fs-14 maxis d-flex mb-0 ls-100 lh-normal",labelData:d.messages.cart_monthlyPaymentLabel})]}),(0,N.jsx)("div",{className:"col-4 ".concat(Ct?"cart-details-wearable":"cart-details"),children:Ct?(0,N.jsxs)("div",{id:"cart-sku-details",className:"text-left",onClick:P,children:[(0,N.jsx)("p",{className:"maxis-bold fs-14 text-gunmetal ".concat(He?"mb-2px":"mb-0"),children:ue}),!L&&(0,N.jsx)("div",{className:"maxis fs-10 text-steel mb-0",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},h.rrPMessage),{},{values:et?{rrpPrice:(0,N.jsx)("span",{className:"maxis fs-10 text-steel",children:"".concat(d.messages.RM).concat(p.priceRrp)}),saveDevicePrice:""}:{rrpPrice:(0,N.jsx)("span",{className:"fs-10 text-steel mb-0 strike-through",children:"".concat(d.messages.RM).concat(p.priceRrp)}),saveDevicePrice:(0,N.jsx)("span",{className:"fs-10 text-lightish-blue maxis-semiBold mb-0 pl-1",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},h.saveDevicePrice),{},{values:{price:S}}))})}}))})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{id:"cart-sku-details",onClick:P,children:[(0,N.jsxs)("div",{className:"d-flex text-gunmetal mt-1",children:[(0,N.jsx)("span",{className:"maxis-bold pr-1",children:ue}),_e?"":(0,N.jsx)("span",{children:d.formatMessage(h.cart_selectedVariant,{colour:J(Ae),storageType:Ce})})]}),(0,N.jsx)(x.ph,{name:gt||d.messages.cart_chooseAContractLabel,valueAsChild:Qe((Number(Te)||0)-Je,et,"fs-15","fs-24 lh-24px",""),fieldNameClass:"".concat(Ne?"text-gunmetal maxis-bold mb-0":"text-steel fs-12 maxis mb-0"),alignNameClass:"text-left",alignValueClass:"text-blue-green",fieldInfoClass:"align-items-baseline mt--5px"}),(0,N.jsx)(x.JU,{labelClass:"fs-10 text-steel text-left mb--9px",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},h.rrPMessage),{},{values:et||!Te?{rrpPrice:(0,N.jsx)("span",{className:"fs-10 text-steel mb-0 ",children:"".concat(d.messages.RM).concat(p.priceRrp)}),saveDevicePrice:""}:{rrpPrice:(0,N.jsx)("span",{className:"fs-10 text-steel mb-0 strike-through",children:"".concat(d.messages.RM).concat(p.priceRrp)}),saveDevicePrice:(0,N.jsx)("span",{className:"fs-10 text-lightish-blue maxis-semiBold mb-0 pl-1",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},h.saveDevicePrice),{},{values:{price:S}}))})}}))})]}),(0,N.jsx)(x.ph,{name:he||d.formatMessage(h.cart_chooseAPlanLabel),valueAsChild:Qe(ye,!0,"fs-15","fs-24 lh-24px",""),fieldNameClass:"".concat(he?"text-gunmetal maxis-bold mb-0":"text-steel fs-12 maxis mb-0"),clickEvent:D,alignNameClass:"text-left",alignValueClass:"text-blue-green",fieldInfoClass:"align-items-baseline mt-2"})]})}),(0,N.jsx)("div",{className:"d-none d-xl-block col-xl-1"}),(0,N.jsx)("div",{className:"col-2 px-0",children:(0,N.jsx)("div",{className:"flex-row justify-content-end",children:(0,N.jsxs)("div",{className:"cart-price text-blue-green pb-2",children:[(0,N.jsx)("div",{className:"d-flex",children:Qe(W((Number(L?Ue:ke)||0)-Je),!1,"fs-24 lh-24px","fs-40"," mt-3 mb-1",jt,{showPricePlaceholder:Tt})}),(0,N.jsx)(x.JU,{labelClass:"maxis d-flex mb-0 ls-100",labelData:d.messages.cart_totalPaymentLabel})]})})})]}):(0,N.jsx)("div",{className:"col-9 px-0 pl-lg-3 pl-xl-3 flex align-items-center fs-18 maxis-extraBold text-gunmetal",children:ue}),(0,N.jsx)("div",{className:"col-3 px-0 d-flex flex-column align-items-stretch justify-content-center",children:(0,N.jsx)(x.$n,{id:"d".concat(xt),onClick:ft,buttonClass:(0,g.A)("addToCartBtn primary ls-150 text-uppercase",!vt&&"button-hover-anim"),disabled:vt,reactButtonClass:"mx-3 pt-2",buttonLabel:At,href:$&&ee||null})})]})]})}),(0,N.jsx)(H,(0,s.A)({},Pt))]})]})};a.dn(Y);var Z=a(92382),q=(a(4430),a(69078),a(86855)),z=a(98915),K=a(75746),$=a(30078),X=a(54131);const Q=e=>{let t=e.intl,a=e.i18nLabels,i=e.plan,l=void 0===i?{}:i,n=e.label,r=e.action,c=e.isFWBB,d=void 0!==c&&c,m=e.descriptionMinHeight,p=void 0===m?0:m,u=e.isSelected,g=void 0!==u&&u,h=e.showDescriptionList,f=void 0===h||h,A=e.applyMinHeight,C=void 0===A||A;return(()=>{const e=l.planDetails,i=void 0===e?{}:e,c=l.planInfoForTNG,m=void 0===c?{}:c,u=l.planPromotionTagDetails,h=void 0===u?{}:u,A=l.hasHomeDevicePlanPromotion,T=void 0!==A&&A,j=l.planShortName,P=l.planName,D=m.descriptionList,k=void 0===D?[]:D,I=(null===i||void 0===i?void 0:i.planLabelDetails)||{},S=I.bgColor,w=I.copyColor,M=I.outlineColor,L={backgroundColor:T&&h.bgColor||S||X.A.clearWhite,color:T&&h.textColor||w||X.A.lightishBlue,borderColor:T&&h.outlineColor||M||X.A.lightishBlue},O=T&&h.tagName||i.planTagName||"",E=(j||"").split(" "),B=(0,o.A)(E,2),R=B[0],F=B[1],U=(P||"").replace(t.messages.wifiTitle,"").trim(),_=(C&&d?"wifi-plan-description-section":C&&"fibre-plan-description-section")||"",H=y.n.getValues(l,"pricing.promoPrice",""),V=Boolean(H);return(0,N.jsx)("div",{className:"fibre-plan-card ".concat(f?"":"existing-fibre-card"),onClick:r,children:(0,N.jsx)("div",{className:"card bg-white plane m-0 position-relative ".concat(g?"plan-card-selected":""),children:(0,N.jsxs)("div",{className:"body-card cursor-pointer m-0",children:[(0,N.jsx)("div",{className:"plan-tag",children:O&&(0,N.jsx)("div",{className:"d-flex justify-content-center",children:(0,N.jsx)("p",{className:"tag fs-12 maxis-bold ls-100 m-0",style:L,children:O})})}),(0,N.jsxs)("div",{className:"plan-name text-black text-left mt-17px maxis-extraBold px-20px ".concat(f?"mb-17px":"mb-25px"),children:[(0,N.jsx)("p",{className:"mb-2px fs-16 lh-18px",children:d?t.messages.wifiTitle:t.messages.fibreTitle}),d?(0,N.jsx)("p",{className:"mb-0 lh-32px fs-35",children:U}):(0,N.jsxs)("div",{className:"lh-32px fs-24",children:[(0,N.jsx)("span",{className:"fs-35 mr-1",children:R}),F]})]}),f&&(0,N.jsx)("div",{className:"fibre-description-list text-left px-20px pb-2 pb-md-0 ".concat(_),style:{minHeight:p>0?p:null},children:(k||[]).map((e,t)=>{var a,s,i,l;return(0,N.jsx)("div",{className:"description-item pb-2 position-relative ".concat(e.tagName?"show-tag":""),children:(0,N.jsx)(x.nD,{title:(s=e.icon,i=e.tagName,l=e.title,(0,N.jsxs)("div",{className:"d-flex",children:[(0,N.jsx)("div",{children:(0,N.jsx)("img",{className:"description-icon",src:"".concat(b.A.apiConfig.aemEndPoint).concat(s),alt:"description_icon"})}),(0,N.jsxs)("div",{className:"pl-2 d-flex flex-column ".concat(i?"justify-content-between":"justify-content-center"),children:[i&&(0,N.jsx)("div",{children:(0,N.jsx)("span",{className:"blue-tag fs-12 maxis-semiBold text-white ls-100 bg-lightish-blue",children:i})}),(0,N.jsx)("div",{className:"fs-14 text-black maxis-bold lh-normal mt-1",children:l})]})]})),isPlanOnly:!0,children:(null===e||void 0===e||null===(a=e.subDescriptionList)||void 0===a?void 0:a.length)>0&&(0,N.jsx)("ul",{className:"pt-10px pl-20px mb-0",children:e.subDescriptionList.map((e,t)=>(0,N.jsx)("li",{className:"fs-14 text-gunmetal lh-18px",dangerouslySetInnerHTML:{__html:e}},"sub_description_".concat(t)))})})},"description_list_".concat(t))})}),(0,N.jsxs)("div",{className:"row m-0",children:[(0,N.jsxs)("div",{className:"col-6 p-0 d-flex flex-column justify-content-center text-left pl-20px",children:[V&&(0,N.jsx)("div",{className:"maxis fs-16 text-brown-grey ls-normal strike-through lh-15px mb--5px",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.priceMonthly),{},{values:{price:l.planPrice,monthlyLabel:t.messages.monthlyLabel}}))}),(0,N.jsx)("div",{className:"maxis-bold fs-15 text-black",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.priceMonthly),{},{values:{price:(0,N.jsx)("span",{className:"fs-24",children:V?H:l.planPrice}),monthlyLabel:t.messages.monthlyLabel}}))})]}),(0,N.jsx)("div",{className:"col-6 p-0",children:(0,N.jsx)("div",{className:"d-flex align-items-stretch full-width",children:(0,N.jsx)(x.$n,{reactButtonClass:"w-100",buttonClass:"primary button-hover-anim mb-0 p-0 btn-select",buttonLabel:n})})})]})]})})})})()};a.dn(Q);const ee=e=>{let t=e.intl,a=e.i18nLabels,i=e.device,l=e.selectedBundle,n=e.setSelectedBundle,o=e.vWidth,r=void 0===o?0:o,c=e.showPrice,d=void 0===c||c,m=e.isPlanWithHardBundle;return(()=>{const e=(0,s.A)({},i),o=e.skuId,c=e.deviceType,p=e.title,u=void 0===p?"":p,g=e.mobileImagePath,h=void 0===g?"":g,f=e.tabletImagePath,A=void 0===f?"":f,T=e.onlineStock,j=e.retailStock,P=e.tagName,D=void 0===P?"":P,k=e.description,I=void 0===k?"":k,S=r<768?h:A,w=l.filter(e=>e.skuId===o&&e.deviceType===c).length>0,M=!T&&!j,L=()=>M?(0,N.jsx)("span",{children:t.messages.outOfStockButtonLabel}):m?w?(0,N.jsxs)("span",{className:"button-hover-anim",children:[(0,N.jsx)(C.OkO,{className:"mr-10px"}
1),(0,N.jsx)("span",{children:t.messages.plan_selected})]}):(0,N.jsx)("span",{className:"button-hover-anim",children:t.messages.plan_select}):w?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("span",{className:"added-label button-hover-anim",children:[(0,N.jsx)(C.OkO,{className:"mr-10px"}),(0,N.jsx)("span",{children:t.messages.addedLabel})]}),(0,N.jsx)("span",{className:"remove-label button-hover-anim",children:t.messages.removeLabel})]}):(0,N.jsx)("span",{className:"button-hover-anim",children:t.messages.addThisLabel});return(0,N.jsx)("div",{className:"bundle-card-section pb-3 m-auto",onClick:()=>{if(!M){if(m){if(w)return;const e=l.filter(e=>e.deviceType!==b.A.deviceTypes.wifi);return void n([...e,i])}w?n(l.filter(e=>e.skuId!==o&&e.deviceType!==c)):(n([...l,i]),y.n.analyticsUtility.triggerGAForEventClicks(u,b.A.analyticsConfig.gaActions.addThisBundle))}},children:(0,N.jsxs)("div",{className:"bundle-card position-relative bg-white ".concat(w?"bundle-card-selected":""," ").concat(M?"bundle-card-disabled":""),children:[(0,N.jsx)("img",{className:"w-100 bundle-card-img",src:"".concat(b.A.apiConfig.aemEndPoint).concat(S),alt:"bundle-card-img"}),(0,N.jsxs)("div",{className:"bundle-card-content ".concat(M?"":"cursor-pointer"),children:[(0,N.jsx)("div",{className:"bundle-tag-name",children:D&&(0,N.jsx)("div",{className:"d-flex flex-column justify-content-center text-center",children:(0,N.jsx)(x.JU,{labelData:D,parentClass:"d-flex justify-content-center",labelClass:"tag fs-12 maxis-bold ls-100 m-0 border-lightish-blue text-lightish-blue bg-white"})})}),(0,N.jsxs)("div",{className:"content-card mb-5 py-2 lh-normal",children:[(0,N.jsx)("div",{className:"maxis-bold text-black fs-20 fs-xl-24",children:u}),(0,N.jsx)("div",{className:"fs-14 fs-xl-16 maxis text-black mt-1",children:I})]}),d&&(0,N.jsx)("div",{className:"bundle-price text-center maxis-bold fs-24 text-blue-green",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.RMprice),{},{values:{price:(0,N.jsx)("span",{className:"fs-34",children:y.n.getValues(i,"contract.deviceUpfrontPrice",0)})}}))}),(0,N.jsx)("div",{className:"bundle-action-button maxis-bold fs-14 text-white bg-frog-green flex-center-full ls-150",children:(0,N.jsx)("span",{children:(0,N.jsx)(L,{})})})]})]})})})()};a.dn(ee);var te=a(26527);const ae=(e,t,a,i,l)=>a.map((a,n)=>(0,N.jsx)("div",{id:y.n.formatToCamelCase("".concat("".concat(e?"m ":"d ","btn "),a.contractId)),className:t.container,children:(0,N.jsx)("button",{className:"button-border ".concat(t.button," ").concat(a.contractId===(0,s.A)({},i).contractType?"selected":""," ").concat(e?"px-3":""),type:"button",onClick:()=>l(a),children:(0,N.jsx)("p",{align:t.align,children:(0,N.jsx)("span",{className:"contract-title text-uppercase",children:a.contractTitle})})})},"home_device_contract_".concat(n))),se=e=>{let t=e.vWidth,a=e.isMobile,i=e.style,l=e.selectedBroadbandPlan,n=e.aemHomeDeviceContractList,o=e.homeDeviceAvailableContracts,r=e.homeDeviceContract,d=e.selectHomeDeviceContract;const m=c().isEmpty(l)?o:y.n.filterHomeDeviceContracts({isHomeDevices:!0,aemHomeDeviceContractList:n,selectedBroadbandPlan:l});return m.length>2&&t<1014?(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},(0,f.pU)(m.length,"contract",0,f.HR.sliderSpeed)),{},{children:ae(a,i,m,r,d)})):(0,N.jsx)("div",{className:"d-flex",children:ae(a,i,m,r,d)})},ie=e=>{let t=e.homeDeviceContract;return(0,N.jsx)("div",{className:"home-devices-contract-description mx-0 mx-lg-2 d-flex flex-column align-items-center",children:(0,N.jsxs)("div",{className:"maxis-semiBold fs-16 text-blue-green",id:"homeDeviceContractDescription",children:[(t.contractDescription||"").split("/br").map((e,t)=>(0,N.jsx)("div",{className:"lh-150 lh-lg-181 description-line",children:(0,N.jsx)("span",{children:e})},"contract_description_".concat(t))),(0,N.jsx)(x.sr,{label:t.linkText,color:h.T.blueGreen,url:t.linkUrl,wrapperClassName:"mt-3",labelClass:"text-uppercase",target:"_blank"})]})})};function le(e){var t,a,l,n;let r=e.plansOptions,d=e.selectPlan,m=e.preSelectedQueryParams,p=e.intl,u=e.i18nLabels,h=e.groupPlans,A=e.deviceDetails,T=e.selectedSkuDetails,j=e.check2F1Offer,P=e.checkDeviceShareLineOffer,D=e.checkTradeDeal,k=e.checkHomeDevicePlanPromotions,I=e.listTargetRatePlanId,S=e.isSO1Valid,w=e.openContractLearnMore,M=e.so1OfferDetails,L=e.isHomeDevices,O=e.homeDeviceContract,E=e.setHomeDeviceContract,B=e.hasCoverageCheckOptions,R=e.isFibreComingSoon,F=e.planList,U=e.selectedBroadbandPlan,_=e.setSelectedBroadbandPlan,H=e.selectedBundle,V=e.setSelectedBundle,G=e.bundleDetails,W=void 0===G?[]:G,J=e.eligibleFibrePlans,Y=e.isHomeWifiEligible,X=e.homeDevicePreSelectedQueryParams,ae=e.fibreCoverageType,le=e.fibrePlanMinimalSpeed,ne=e.isSticky,oe=e.getTotalGlobalHeaderHeight,re=e.scrollTo,ce=e.eligibleHomeWifiPlans,de=e.privacyTnc,me=e.generalTnc,pe=(e.setShowNgbbFibreSpecialOfferInfoModal,e.navigateToMarketingPage),ue=e.isNgbbFibreSpecialOffer,ve=e.isHomeDevicesUgradeMyFibre,ge=e.selectPurchasingOption,be=e.isTNGenv,xe=e.isAddDeviceToExistingFibre,he=e.marketingPageUrl,fe=e.toggleDevicePlanComparisonModal,ye=e.showDevicePlanComparisonDisclaimerStatus,Ae=e.openToolTipsModal,Ce=e.isVdslAddress,Ne=e.coverageCheckFailWithRoi,Te=e.setShowCoverageCheckResultBlock,je=e.showCoverageCheckResultBlock,Pe=e.aemHomeDeviceContractList,De=e.homeDeviceContractList;
1const ke=L&&!B,Ie={privacyPolicy:de.tncUrl||"#",tnc:me.tncUrl||"#"},Se=y.n.useWindowSize(),we=(0,o.A)(Se,1)[0],Me=(h||[]).length>2&&we<=1335,Le=y.n.formatToCamelCase,Oe=y.n.analyticsUtility,Ee=((null===le||void 0===le?void 0:le.planShortName)||"").split(" "),Be=(0,o.A)(Ee,2),Re=Be[0],Fe=Be[1],Ue=null===A||void 0===A?void 0:A.deviceType,_e=c().compact((r.contractsInfo||[]).map((e,t)=>{const a=f.HR.defaultContractSearchArray.findIndex(t=>t===e.contractId);return Ue&&e.deviceType&&e.deviceType!==Ue?null:(0,s.A)((0,s.A)({},e),{},{index:-1===a?r.contractsInfo.length+t:a})})).sort((e,t)=>e.index>t.index?1:-1),He=()=>{const e=((null===r||void 0===r?void 0:r.plansList)||[]).map(e=>e.planId);return(h||[]).filter(t=>(t.plans||[]).some(t=>e.includes(t.planId)))},Ve=(()=>{const e=He().map(e=>e.planGroup);return c().filter(_e,t=>-1!==e.findIndex(e=>e===t.contractId))})(),Ge=(()=>{const e=He().map(e=>e.planGroup),t=A.defContract;return t&&e.includes(t)&&f.HR.defaultContractSearchArray.includes(t)?t:f.HR.defaultContractSearchArray.find(t=>e.includes(t))})()||h&&h.length>0&&h[0].planGroup,We=c().filter(r.contractsInfo||[],e=>e.contractId===Ge&&e.deviceType===Ue)[0],Je=(null===m||void 0===m||null===(t=m.selectedContract)||void 0===t?void 0:t.contractId)||(null===We||void 0===We?void 0:We.contractId),Ye=(null===m||void 0===m||null===(a=m.selectedContract)||void 0===a?void 0:a.contractTitle)||(null===We||void 0===We?void 0:We.contractTitle),Ze=(null===m||void 0===m||null===(l=m.selectedContract)||void 0===l?void 0:l.contractDuration)||(null===We||void 0===We?void 0:We.contractDuration),qe=(null===m||void 0===m||null===(n=m.selectedContract)||void 0===n?void 0:n.isDisableCart)||(null===We||void 0===We?void 0:We.isDisableCart),ze=null===m||void 0===m?void 0:m.selectedPlan,Ke=(0,i.useState)({contractId:Je,contractTitle:Ye,contractDuration:Ze,isDisableCart:qe}),$e=(0,o.A)(Ke,2),Xe=$e[0],Qe=$e[1],et=(0,i.useState)(De),tt=(0,o.A)(et,2),at=tt[0],st=tt[1],it=Ue===b.A.deviceTypes.wearables,lt=(0,i.useState)(!it&&ze||""),nt=(0,o.A)(lt,2),ot=nt[0],rt=nt[1],ct=()=>rt(""),dt=[!it,ye].every(Boolean),mt=null===A||void 0===A?void 0:A.deviceTitle,pt=Ue===b.A.deviceTypes.broadband,ut=pt,vt=c().find(h||[],{planGroup:Xe.contractId})||c().find(h||[],{planGroup:Ge}),gt=(it?y.n.getValues(r,"plansList",[]).filter(e=>e.planId===f.HR.defaultWatchPlanId).slice(0,1):r&&vt&&c().filter(r.plansList||[],e=>{if(S){const t=y.n.getValues(e,"planDetails.mupPlanId");return c().findIndex(vt.plans,{planId:e.planId})>-1&&I.find(a=>a===e.planId||a===t)}return c().findIndex(vt.plans,{planId:e.planId})>-1})||[]).map(e=>(0,te.p_)({plan:e,deviceDetails:A,contract:Xe,skuDetails:T,intl:p})),bt=(J||[]).filter(e=>-1!==(e.contract||[]).findIndex(e=>(null===e||void 0===e?void 0:e.type)===(null===O||void 0===O?void 0:O.contractId)&&(null===e||void 0===e?void 0:e.tenure)===(null===O||void 0===O?void 0:O.contractTenure))).length,xt=ke&&bt||gt&>.length||0,ht=0!==xt||L,ft=it&&p.messages.maxisWatchPlanDescription||L&&xe&&p.messages.fibrePlan_selectExistingFibrePlanText||L&&p.messages.fibrePlan_selectPlanText||p.messages.plan_selectPlanText,yt=[!ut,ht,!L||ge,!xe].every(Boolean),At=it&&p.messages.devicePlanTitle||xe&&p.messages.existingFibre_title_part1||p.messages.plan_title_part1,Ct=xe&&p.messages.existingFibre_title_part2||p.messages.plan_title_part2,Nt=ke&&!xe,Tt=!xe,jt=b.A.planListWithHardBundle.includes((0,s.A)({},U).planId),Pt=W.filter(e=>e.planId===(0,s.A)({},U).planId),Dt=[!c().isEmpty(U),Pt.length].every(Boolean),kt=(0,i.useState)(0),It=(0,o.A)(kt,2),St=It[0],wt=It[1];(0,i.useEffect)(()=>{setTimeout(()=>{(J.length>0?J:ce||[]).length<2||!je?wt(0):(()=>{const e=Array.from(document.getElementsByClassName("fibre-description-list")).map(e=>e.clientHeight);e.length>0&&wt(Math.max(...e))})()},1e3)},[J.length,ce.length,je]);const Mt=()=>{const e=document.getElementById("homeDeviceContractDescription");return(null===e||void 0===e?void 0:e.offsetWidth)||0},Lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={contractId:b.A.ZerolutionFibreDevice,contractTitle:e.contractTitle,contractType:e.contractId,contractDescription:e.contractDescription,linkText:e.linkText,linkUrl:e.linkUrl,contractTenure:Number(e.contractDuration||"")-1,
1contractName:p.formatMessage(u.zerolutionContractName,{period:e.contractDuration})};E(t)};(0,i.useEffect)(()=>{if(L){let e={};if(at.length>0&&(e=(0,s.A)({},X).contractType&&at.find(e=>e.contractId===X.contractType)||at[0],Lt(e)),(0,s.A)({},X).plan&&(ae||ke)){const t=(J.length>0?J:ce||[]).find(e=>e.planId===X.plan);if(!c().isEmpty(t)){const a=k(e.contractType,t);t.hasHomeDevicePlanPromotion=a||void 0}_(t)}}},[at]),(0,i.useEffect)(()=>{L&&!c().isEqual(De,at)&&st(De)},[De]);const Ot=e=>{if(ke)return Wt(J||[],!1);if(it)return(0,N.jsx)(K.A,{selected:!0,isDisable:!0,isMobile:e,showShareLinesPrice:!1,showCardBodyPlanPriceSection:!0,showCardPriceCtaFooter:!1,plan:(0,s.A)({},gt[0]),splitBodyContentDisplayClass:"d-md-none",topBottomBodyContentDisplayClass:"d-md-block d-none mt-lg-0 mt-md-5",planCardContainerClass:"watch-plan",openToolTipsModal:Ae});const t=gt||[];if(t.length>0){const a=t.reduce((e,t)=>(e[t.planId]=t,e),{});if(1===t.length){const e=t[0]||{};e.planId!==ot.planId&&rt(e)}else JSON.stringify(ot)!==JSON.stringify(a[(0,s.A)({},ot).planId])&&rt(a[ot.planId]);return t.map((t,a)=>(0,N.jsx)(K.A,{plan:t,action:()=>{t!==ot?rt(t):ct()},label:t&&(null===ot||void 0===ot?void 0:ot.planId)===t.planId?p.messages.plan_selected:p.messages.plan_select,index:a,selected:t&&(null===ot||void 0===ot?void 0:ot.planId)===t.planId,isMobile:e,openToolTipsModal:Ae},a))}return null},Et=(e,t)=>L?(0,N.jsx)(se,{vWidth:we,isMobile:e,style:t,selectedBroadbandPlan:U,aemHomeDeviceContractList:Pe,homeDeviceAvailableContracts:at,homeDeviceContract:O,selectHomeDeviceContract:Lt}):Ve.map((a,s)=>(0,N.jsx)("div",{className:t.container,children:(0,N.jsx)("button",{id:Le("".concat("".concat(e?"m ":"d ","btn "),a.contractId)),className:"".concat(1===Ve.length&&"contract-type-only"," ").concat(t.button,"\n ").concat(a.contractId===Xe.contractId?"selected":""," button-border"),type:"button",onClick:()=>{Rt(a)},children:(0,N.jsx)("p",{align:t.align,children:(0,N.jsx)("span",{className:"contract-title text-uppercase",children:a.contractTitle})})})},s)),Bt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[b.A.mosPlanId.postpaid199,b.A.mosPlanId.postpaid188,b.A.mosPlanId.postpaid169,b.A.mosPlanId.postpaid158,b.A.mosPlanId.postpaid139,b.A.mosPlanId.postpaid128,b.A.mosPlanId.postpaid109,b.A.mosPlanId.postpaid98,b.A.mosPlanId.postpaid79,b.A.tabletPlanId.tablet28,b.A.tabletPlanId.tablet18];return e.sort((e,a)=>{let s=t.indexOf(e.planId),i=t.indexOf(a.planId);return-1===s&&(s=t.length,t.push(e.planId)),-1===i&&(i=t.length,t.push(a.planId)),s-i})[0]};(0,i.useEffect)(()=>{const e=(Xe.contractId||"").includes(b.A.ZEROLUTION_CONTRACT_ID)?b.A.ZEROLUTION_CONTRACT_ID:b.A.NORMAL_CONTRACT_ID,t=ot||{};d({contractId:e,planName:t.planGroup,is2F1Plan:t.is2F1Plan,selectedPlanId:t.planId,contractTitle:Xe.contractTitle,isTradeUpDeal:t.isTradeUpDeal,simOptions:t.simOptions||[],contractDuration:Xe.contractDuration,isDisableCart:"true"===Xe.isDisableCart,hasDevicePlanPromotion:t.hasDevicePlanPromotion,isDeviceShareLineOfferPlan:t.isDeviceShareLineOfferPlan,mupPlanId:y.n.getValues(t,"planDetails.mupPlanId",""),planPrice:y.n.getValues(t,"planDetails.planPrice",null),planImagePath:y.n.getValues(t,"planDetails.planIconPath",""),isSupplementary:y.n.getValues(t,"planDetails.isSupplementary",null)})},[Xe,ot]),(0,i.useEffect)(()=>{(h||[]).find(e=>e.planGroup===Je)?Qe({contractId:Je,contractTitle:Ye,contractDuration:Ze,isDisableCart:qe}):Qe({contractId:null===We||void 0===We?void 0:We.contractId,contractTitle:null===We||void 0===We?void 0:We.contractTitle,contractDuration:null===We||void 0===We?void 0:We.contractDuration,isDisableCart:null===We||void 0===We?void 0:We.isDisableCart});const e=(gt||[]).length>0&&-1===gt.findIndex(e=>e.planId===ze.planId)?Bt(gt):ze;rt(e)},[We]);const Rt=e=>{if(e.contractId!==Xe.contractId){document.querySelectorAll(".plan-contract button.selected").forEach(e=>{e.classList.remove("selected")})}const t=()=>{Qe(e),(e=>{const t=c().filter(h||[],{planGroup:e})[0],a=r&&t&&c().filter(r.plansList||[],e=>c().findIndex(t.plans,{planId:e.planId})>-1);if(ot&&0===c().filter(a,{planId:ot.planId}).length){const e=Bt(a);e?rt(e):ct()}})(e.contractId)};Me?setTimeout(t,f.HR.sliderSpeed):t()},Ft=()=>{const e=M.state,t=M.token;let a=z.HX.plpUrl;S&&(a="".concat(z.HX.plpUrl,"?token=").concat(t,"&state=").concat(e)),(0,q.A)(a)},Ut=e=>{var t;Te(!0);(0,s.A)({},e);const a=oe(),i=(null===(t=document.getElementsByClassName("fibre-coverage-result-external-action-slot-wrapper"))||void 0===t?void 0:t[0])||{};re(i,a,ne)},_t=()=>{Oe.triggerGAForEventClicks(b.A.analyticsConfig.gaLabels.comingSoon,p.messages.findOutMoreTitle),(0,q.A)(b.A.maxisFibrePreSaleUrl)},Ht=()=>{Oe.triggerGAForEventClicks(b.A.analyticsConfig.gaLabels.coveredPartially,p.messages.seeOtherDevicesTitle),window.location="".concat(z.HX.plpUrl,"#").concat(b.A.deviceTypes.homeDevices)},Vt=()=>{pe({gaLabel:b.A.analyticsConfig.gaLabels.coverageCheckCoveredNGBB})},Gt=()=>{const e=R&&_t||ue&&Vt||Ht;return(0,N.jsxs)("div",{className:"hardstop-section pb-2 pb-md-3 ".concat(R?"px-3":"px-2"),children:[R||ue?(0,N.jsx)("div",{className:"text-center ".concat(R?"py-4":"pt-2 pt-md-0 pb-2 pb-md-3"),children:(0,N.jsxs)("span",{children:[(0,N.jsx)(C.NKr,{className:"mr-10px mt--5px",height:22,width:22}),(0,N.jsx)("span",{className:"text-blue-green fs-16 fs-md-18 maxis-extraBold lh-normal",children:R?p.messages.fibreC
1omingSoonTitle:p.messages.ngbbSpecialOfferTitle})]})}):(0,N.jsx)("div",{className:"text-md-center pt-3 pt-md-2 pb-4",children:(0,N.jsxs)("div",{className:"d-flex justify-content-md-center position-relative hardstop-title text-blue-green fs-18 fs-md-16 fs-lg-18 maxis-extraBold lh-normal",children:[(0,N.jsx)(C.w0d,{className:"mr-10px text-alert icon-not-tick",height:22,width:22}),(0,N.jsx)("div",{className:"pl-4 pl-md-0",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},u.fibreCoverageHardstopTitle),{},{values:{speed:Re,unit:Fe}}))})]})}),(0,N.jsx)("div",{className:"fs-16 fs-lg-18 maxis-semiBold text-gunmetal text-center lh-normal mx-auto sub-title ".concat(R?"sub-title-coming-soon px-2 px-md-0":"sub-title-hardstop"," ").concat(ue?"px-2 px-md-0 sub-title-ngbb-offer":""),children:R?p.messages.fibreComingSoonPopUpSubTitle:ue?p.messages.ngbbSpecialOfferSubTitle:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},u.fibreCoverageHardstopSubTitle),{},{values:{speed:Re,unit:Fe}}))}),(0,N.jsx)("div",{children:(0,N.jsx)(x.$n,{onClick:e,buttonClass:"primary text-uppercase ls-150 button-hover-anim mb-0",reactButtonClass:"navigate-button my-3 mb-md-4 mx-auto",buttonLabel:R||ue?p.messages.findOutMoreTitle:p.messages.seeOtherDevicesTitle,href:ue&&he||null})})]})},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map((a,i)=>{if(-1!==(a.contract||[]).findIndex(e=>(null===e||void 0===e?void 0:e.type)===(null===O||void 0===O?void 0:O.contractId)&&(null===e||void 0===e?void 0:e.tenure)===(null===O||void 0===O?void 0:O.contractTenure))){const l=(0,s.A)({},U).planId===a.planId,n=k(O.contractType,a),o=y.n.getValues(A,"devicePlanPromotions[0].planCardTag",{});return n&&(a.hasHomeDevicePlanPromotion=n,a.planPromotionTagDetails=o),(0,N.jsx)("div",{children:(0,N.jsx)(Q,{intl:p,i18nLabels:u,plan:a,label:l?p.messages.plan_selected:p.messages.plan_select,isFWBB:t,descriptionMinHeight:St,action:()=>(e=>{(null===U||void 0===U?void 0:U.planId)===(null===e||void 0===e?void 0:e.planId)?_(null):(_(e),Oe.triggerGAForEventClicks(null===e||void 0===e?void 0:e.planGroup,b.A.analyticsConfig.gaActions.selectPlan))})(a),isSelected:l,showDescriptionList:!xe,applyMinHeight:e.length>1})},"fibre_plan_".concat(i))}return null})},Jt=()=>Pt.map((e,t)=>(0,N.jsx)("div",{children:(0,N.jsx)(ee,{intl:p,i18nLabels:u,device:e,selectedBundle:H,setSelectedBundle:V,vWidth:we,showPrice:!jt,isPlanWithHardBundle:jt})},"fibre_plan_bundle_".concat(t))),Yt=e=>R||ue?(0,N.jsx)(Gt,{}):J.length>0?(0,N.jsxs)("div",{className:"home-device-list-plan-card mb-md-3 mt-2 pb-4",children:[(0,N.jsx)("div",{className:"text-center mb-4 pt-3",children:(0,N.jsxs)("span",{children:[(0,N.jsx)(C.NKr,{className:"mr-10px mt--5px",height:22,width:22}),(0,N.jsx)("span",{className:"text-black fs-14 fs-md-16 fs-xl-18 maxis-extraBold",children:Ce||Ne?p.messages.getAccessToMaxisFibre:p.messages.yourAreaIsCoveredFor})]})}),(0,N.jsx)("p",{className:"mb-3 mb-md-2 pt-md-2 fs-16 maxis-bold text-black text-center",children:p.messages.fibrePlanToHave}),e?(0,N.jsx)("div",{children:Wt(J,!1)}):(0,N.jsx)(i.Fragment,{children:(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},(0,f.ML)(J.length-1)),{},{rtl:!0,children:Wt(J,!1)}))},"fibre-eligible-plan-slider-".concat(J.length))]}):Y?(0,N.jsxs)("div",{className:"home-device-list-plan-card mb-md-3 pb-3 pb-md-4",children:[(0,N.jsx)("div",{className:"text-center mb-4 pt-3",children:(0,N.jsxs)("span",{children:[(0,N.jsx)(C.w0d,{className:"mr-10px text-alert mt--5px",height:22,width:22}),(0,N.jsx)("span",{className:"text-black fs-16 fs-xl-18 maxis-extraBold",children:e?p.messages.coverageCheckFailedForMobile:p.messages.coverageCheckFailed})]})}),(0,N.jsx)("p",{className:"mb-3 mb-md-2 pt-md-2 fs-16 maxis-bold text-black text-center",children:p.messages.proceedWith4GWifiPlan}),e?(0,N.jsx)("div",{children:Wt(ce||[],!0)}):(0,N.jsx)(i.Fragment,{children:(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},(0,f.ML)(ce.length-1)),{},{rtl:!0,children:Wt(ce||[],!0)}))},"fibre-plan-slider-".concat((F.fwbbPlans||[]).length)),Dt&&(0,N.jsxs)("div",{className:"fibre-plan-bundle-section",children:[(0,N.jsx)("p",{className:"mb-0 fs-16 maxis-bold text-black text-center mt-50px lh-normal px-1",children:p.messages.selectBundleDeviceTitle}),(0,N.jsx)("div",{className:"fs-16 maxis-semiBold text-blue-green bundle-description text-md-center",children:(0,N.jsx)("span",{className:"bg-powder-blue p-1",children:p.messages.selectBundleDeviceDescription})}),e?(0,N.jsx)("div",{children:Jt()}):(0,N.jsx)(i.Fragment,{children:(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},(0,f.ML)(Pt.length-1)),{},{children:Jt()}))},"fibre-plan-bundle-slider-".concat(Pt.length))]})]}):(0,N.jsx)(Gt,{}),Zt=()=>(0,N.jsx)("div",{className:"text-center pt-3 pt-lg-4",children:(0,N.jsx)("div",{className:"maxis-bold fs-16 text-black mb-md-4",children:p.messages.coverageCheckPopUpTitle})});return(0,N.jsx)("div",{children:(e=>{const t={container:"".concat(e?"flex-sm-fill mb-4":"pt-1 mb-2"," react-button mt-2 align-self-center plan-type-btn-container"),button:"".concat(e?"min-width":"big-width text-center"," outline-primary-transparent bt
1n mb-3 mx-2"),align:"".concat(e?"center":"left")},a=c().findIndex(Ve,e=>e.contractId===Xe.contractId);return(0,N.jsxs)("div",{className:(0,g.A)("plans-options",ut&&"plans-options-one-only",!ht&&"mb-40px",L&&"home-device-plans-options",L&&!ge&&"intention-empty",xe&&"existing-fibre-plan-options"),children:[(0,N.jsx)("div",{className:"plans-options-background-container",children:(0,N.jsx)("div",{id:"plans-options-background-section".concat(e?"-mobile":""),className:"plans-options-background ".concat((it?"wearable-plans-options-background":!ht&&"no-available-contract-background")||L&&"home-device-plans-options-background"||""," mx-auto")})}),(0,N.jsxs)("div",{className:"plans-options-header container max-md-width",children:[(0,N.jsx)("div",{className:"header d-flex justify-content-center",children:(0,N.jsx)("div",{className:"p-title-width mt-0 mt-md-4 pt-3 mb-4",children:(0,N.jsx)(x.uT,{compTitlePart1:At,compTitlePart2:Ct,tag:"h2"})})}),(0,N.jsx)("div",{className:"upper-content",children:ht?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"d-flex justify-content-left justify-content-md-center",children:(0,N.jsx)("div",{className:"px-0 py-0 px-md-3 p-width d-flex\n ".concat(ut?"justify-content-left justify-content-md-center":"justify-content-left"),children:(0,N.jsx)("p",{className:"fs-20 maxis-bold-important mb-0 text-black",children:1===(h||[]).length?p.messages.only_one_contract_available:p.messages.plan_selectPlan})})}),(0,N.jsx)("div",{className:"d-flex justify-content-left justify-content-md-center px-0 px-md-1 plan-contract ".concat(1===(h||[]).length?"onlyOne":""),children:Ve.length>2||we<340?(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},(0,f.pU)(Ve.length,"contract",a,f.HR.sliderSpeed)),{},{children:Et(e,t)})):Et(e,t)}),L&&O&&(0,N.jsx)("div",{className:"d-flex justify-content-left justify-content-md-center px-0 px-md-1 plan-contract",children:(0,N.jsx)(ie,{homeDeviceContract:O})}),(0,N.jsx)("div",{className:"d-flex justify-content-left justify-content-md-center",children:(0,N.jsx)("div",{className:"px-0 pl-md-3 pr-md-1 p-width",children:(r.contractsInfo||[]).filter(e=>e.contractId===Xe.contractId&&e.deviceType===Ue).map((e,t)=>(0,N.jsxs)("div",{id:e.contractId,children:[(0,N.jsx)("div",{className:"",children:e.contractDescription.split("/br").map((e,t)=>(0,N.jsx)("p",{children:(0,N.jsx)("span",{className:"white-background maxis-semiBold text-blue-green",children:e})},t))}),(0,N.jsx)("div",{className:"mt-3 pt-1",children:(0,N.jsx)(x.sr,{label:e.linkText,onClick:()=>w(e.linkUrl)})})]},t))})}),ut?(0,N.jsx)("div",{className:"d-flex justify-content-left justify-content-md-center",children:(0,N.jsx)("div",{className:"only-one-plan-text fs-16 maxis-bold text-black",children:p.messages.only_one_plan_available})}):null]}):(0,N.jsx)("div",{className:"d-flex justify-content-left justify-content-md-center",children:(0,N.jsx)("div",{className:"px-0 pl-md-3 pr-md-1 p-width",children:(0,N.jsxs)("div",{className:"mt-3",children:[[p.messages.noAvailableContractFirstMessage,p.messages.noAvailableContractSecondMessage,p.messages.noAvailableContractLastMessage].map((e,t)=>(0,N.jsx)("div",{className:"no-available-plan maxis-semiBold text-blue-green",children:(0,N.jsx)("span",{className:"no-available-plan-line",children:e})},"no-availabel-plan-".concat(t))),(0,N.jsx)("div",{className:"mt-2 pt-1",children:(0,N.jsx)(x.sr,{label:p.messages.browseOtherDevicesLabel,onClick:Ft})})]})})})})]}),yt&&(0,N.jsx)("div",{className:"d-flex justify-content-left justify-content-md-center container max-md-width",children:(0,N.jsx)("div",{className:"px-0 pb-0 pt-4 px-md-3 p-width",children:(0,N.jsx)("p",{className:"fs-16 maxis-bold mb-0 w-100",children:ft})})}),Nt&&(0,N.jsx)("div",{className:"container max-md-width",children:(0,N.jsx)("div",{className:"upgrade-fibre-description mt-15px",children:(0,N.jsx)("div",{className:"description-line-item maxis-semiBold fs-16 text-blue-green mx-auto",style:{width:"".concat(Mt(),"px")},children:ve?(0,N.jsxs)("span",{children:[" ",p.messages.selectFibrePlanToUpgradeDescription]}):(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},u.selectExistingMaxisFibreDescription),{},{values:{here:(0,N.jsx)(x.$n,{fullWidth:!1,reactButtonClass:"d-inline here-btn",buttonClass:"btn-link h-auto p-0 rounded-0 border-0 maxis-semiBold",buttonLabel:p.messages.hereLabel,onClick:()=>y.n.openExternalLink(b.A.fibreSpeedUpgradeUrl,be)})}}))})})}),L&&B&&(0,N.jsx)("div",{className:"fibre-coverage-section mt-3 mx-auto",id:"fibreC
1overageSection",children:(0,N.jsx)($.A,{initCookieAddressForm:!0,fibreCoverageCheckCallback:Ut,legalDocumentLinks:Ie,headerSlot:(0,N.jsx)(Zt,{}),children:O&&Yt(e)})}),Tt&&(0,N.jsxs)("div",{id:"plan-options",className:(0,g.A)("plans-options-body container",ke&&"upgrade-fibre-section mt-3 mt-md-1",2===xt&&"upgrade-fibre-section-with-two-plan"),children:[(0,N.jsx)("div",{className:"d-flex flex-wrap justify-content-center",children:e?Ot(e):(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},(0,f.pU)(xt,"",2,500,ke)),{},{rtl:!0,children:Ot(e)}))}),dt&&(0,N.jsx)("div",{className:"text-left text-lg-center mt-1",children:(0,N.jsxs)("div",{className:"d-inline fs-16 lh-138 device-mobile-plan-comparison-learn-more-container",children:[(0,N.jsx)("div",{className:"d-inline pr-1 text-dark-grey-2",children:p.messages.deviceMobilePlanComparisonLearnMore}),(0,N.jsx)(x.$n,{fullWidth:!1,reactButtonClass:"d-inline learn-more-btn",buttonClass:"btn-link h-auto p-0 mb-0 rounded-0 border-0 font-weight-normal",buttonLabel:p.messages.learnMore,onClick:fe})]})}),j({selectedContract:Xe,plan:ot,deviceDetails:A})&&(0,N.jsx)(x.JU,{labelData:(0,N.jsx)(v.n3,(0,s.A)({},u.description2F1Offer)),labelClass:"maxis-extraBold fs-14 ls-normal lh-normal text-gunmetal mb-0"}),P({plan:ot,deviceDetails:A,skuDetails:T,contractId:(0,s.A)({},Xe).contractId})&&(0,N.jsx)(x.JU,{labelData:(0,N.jsx)(v.n3,(0,s.A)({},u.shareLineOfferDescription)),labelClass:"fs-14 ls-normal lh-normal text-gunmetal mb-0"}),D({deviceDetails:A,plan:ot,skuDetails:T,contractId:(0,s.A)({},Xe).contractId})&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x.JU,{labelData:p.formatMessage(u.descriptionTradeDeal,{device:"".concat(mt,", ").concat(T.storageType.toUpperCase())}),labelClass:"maxis-extraBold fs-14 ls-normal lh-normal text-gunmetal mb-0"}),(0,N.jsx)("div",{className:"d-flex align-items-center cursor-pointer w-fit mt-1 text-uppercase",onClick:()=>window.open(f.HR.tradeDealURL,"_blank"),children:(0,N.jsx)(x.sr,{label:p.messages.learnMore})})]}),"true"===(null===Xe||void 0===Xe?void 0:Xe.isDisableCart)&&(0,N.jsx)(x.JU,{labelClass:"maxis-semiBold fs-14 ls-normal lh-normal text-gunmetal my-1",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},u.descriptionIsDisableCartContract),{},{values:{contract:(0,N.jsx)("span",{className:"maxis-extraBold",children:p.formatMessage(u.isDisableCartContractLabel,{contract:"".concat(Xe.contractTitle)})})}}))})]}),pt&&(0,N.jsx)("div",{className:"d-flex justify-content-center",children:(0,N.jsx)("div",{className:"rebate-desc fs-14 maxis-semiBold lh-normal text-gunmetal",children:p.messages.rm30_rebate_for_12_mth})})]})})(we<768)})}var ne=a(91688);function oe(e){let t=e.intl,a=e.deviceDetails,l=e.preOrderSuggestedDevice,n=e.queryParams;const r=b.A.apiConfig,d=y.n.useWindowSize(),m=(0,o.A)(d,1)[0],p=[...l||[]],v=p.filter(e=>a.device!==e.device&&a.brand===e.brand)||[],g=(e,t,a)=>{const s=f.HR.actionField;y.n.analyticsUtility.triggerGAClickEventWithProductDetails({productInfo:t,actionField:s,index:a}),(e=>{window.open(e,"_blank")})(e)};return(0,N.jsxs)(N.Fragment,{children:[(null===v||void 0===v?void 0:v.length)>0&&(0,N.jsx)("div",{className:"".concat(m>768?"fs-24":"container fs-16"," maxis-extraBold text-gunmetal"),children:t.messages.otherDevice}),(0,N.jsx)(i.Fragment,{children:(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},{arrows:!1,infinite:!1,autoplay:!1,slidesToShow:3,swipe:!0,variableWidth:!1,className:"device-suggest-slick-slider",mobileFirst:!0,verticalSwiping:!1,lazyLoad:"progressive",responsive:[{breakpoint:1014,settings:{slidesToShow:3}},{breakpoint:767,settings:{slidesToShow:1,dots:!0}},{breakpoint:768,settings:{slidesToShow:2,dots:!0}}]}),{},{children:v.map((e,a)=>{const s=[(0,ne.tW)(z.HX.pdpCategoryUrlMatch,{deviceType:e.deviceType,brand:e.brand,device:e.device}),u.stringify(c().pickBy({mcReferralCode:n.mcReferralCode,mcStoreCode:n.mcStoreCode},c().identity))].join("?");return(0,N.jsxs)("div",{className:"m_deviceCard d-flex align-items-center px-2 py-2 mx-auto",onClick:()=>g(s,e,a),children:[(0,N.jsx)("div",{className:"deviceImage mr-2",children:(0,N.jsx)("img",{src:r.aemEndPoint+e.imagePath,className:"img-fluid",alt:"suggested-device"})}),(0,N.jsxs)("div",{className:"deviceDetails",children:[(0,N.jsx)("div",{className:"deviceNameLabel maxis-extraBold fs-16 text-gunmetal",children:e.deviceTitle}),(0,N.jsx)("div",{className:"deviceDescription maxis-semiBold fs-12 text-gunmetal my-10px line-clamp-2",children:e.preOrderDe
1sc}),(0,N.jsx)("div",{className:"deviceBtn maxis-extraBold fs-14 text-blue-green",children:(0,N.jsx)(x.sr,{label:t.messages.findOutNow})})]})]},a)})}))},"suggested-device-slider-".concat(p.length))]})}var re=a(31807);function ce(e){let t=e.intl,a=e.upsellDevices,i=e.isSO1Valid,l=e.mmaUserInfo;const n={showLowestPrice:!i&&(0,s.A)({},l).flowType!==b.A.mmaFlowTypes.privateVoucher,showOutrightPrice:(0,s.A)({},l).flowType===b.A.mmaFlowTypes.privateVoucher};return(0,N.jsxs)("div",{id:"upsellDeviceList",className:"upsell-devices",children:[(0,N.jsx)("div",{className:"upsell-devices-background-container",children:(0,N.jsx)("div",{className:"upsell-devices-background mx-auto"})}),(0,N.jsxs)("div",{className:"upsell-devices-body container",children:[(0,N.jsx)("div",{className:"header d-flex align-items-center pl-15px",children:(0,N.jsx)("div",{className:"p-title-width mt-0 mt-md-4 pt-3 mb-4",children:(0,N.jsxs)("span",{className:"component-title",children:[" ",t.messages.upsell_header_part1,(0,N.jsx)("br",{}),t.messages.upsell_header_part2,(0,N.jsx)("div",{})]})})}),(0,N.jsx)("div",{className:"d-flex flex-wrap justify-content-center row mx-mobile",children:(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},{arrows:!1,infinite:!1,autoplay:!1,slidesToShow:4,swipe:!0,variableWidth:!1,className:"w-100",mobileFirst:!0,verticalSwiping:!1,lazyLoad:"progressive",centerPadding:"-15px",responsive:[{breakpoint:1350,settings:{slidesToShow:3.2}},{breakpoint:1014,settings:{slidesToShow:3.2}},{breakpoint:768,settings:{slidesToShow:3.2,dots:!0}},{breakpoint:767,settings:{slidesToShow:1.5,dots:!0}}]}),{},{children:(a||[]).map((e,s)=>{let i=t.messages.buyNowbuttonlabel;return(e.isDisableCart||e.isNonSaleable)&&(i=t.messages.findOutMore),(0,N.jsx)(K.A,{isUpsellDevice:!0,device:e,action:()=>((e,t)=>{const s=b.A.analyticsConfig.eventNames,i=y.n.analyticsUtility,l=i.getDeviceType(e.deviceType),n={name:e.deviceTitle,id:e.device,price:e.lowestPrice.price,brand:e.brandTitle,category:"Device/".concat(l,"/").concat(e.deviceType===b.A.deviceTypes.broadband?e.brandTitle:e.operatingSystem),position:a.length-t};i.pushToGTM({event:s.eCommerceClick,ecommerce:{click:{actionField:{list:"PDP:You may also like"},products:[n]}}}),e.isDisableCart?window.open(e.roiUrl,"_blank"):(0,q.A)([z.HX.pdpCategoryUrl,e.deviceType,e.brand,e.device].join("/"))})(e,s),label:i,index:s,isDisable:!1,productCardConfig:n},s)})}))},"upsell-device-slider-".concat(null===a||void 0===a?void 0:a.length))]})]})}var de=a(58613),me=a.n(de);const pe=e=>{const t=e.intl,a=(0,i.useState)(""),l=(0,o.A)(a,2),n=l[0],r=l[1],d=(0,i.useState)({}),m=(0,o.A)(d,2),p=m[0],u=m[1],v=(0,i.useState)([]),g=(0,o.A)(v,2),h=g[0],f=g[1],A=(0,i.useState)({}),T=(0,o.A)(A,2),j=T[0],P=T[1];(0,i.useEffect)(()=>{let t=[];(e.storeMasterList||[]).forEach(e=>{if(e.stores.length>0){const a=e.stores.map(e=>(0,s.A)((0,s.A)({},e),{},{openingHours:me()(e.openingHours).text().replace("Opening Hours","").replace("Operating Hours ","").replace(/:/,"").replace(/\n\n/g,"\n").trim()}));t=[...t,...a]}}),n&&(t=c().filter(t,e=>k(n,e))),f(t)},[n,e.storeMasterList]),(0,i.useEffect)(()=>{const t=y.n.getValues(e,"preferredPickUpStoreDetails.realViewCode","");if(e.show&&t){const e=h.find(e=>e.realViewCode===t);e&&u(e)}},[e.show]);const D=()=>{r(""),u({}),P({}),e.toggleModal(!1)},k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;const a=[t.address,t.postal,t.region,t.state,t.storeName,t.title,t.town,t.realViewCode].filter(Boolean).map(e=>String(e).toLowerCase()),s=e.toLowerCase();return a.some(e=>e.includes(s))},I=Boolean(p.realViewCode);return(0,N.jsxs)(F.A,{size:"lg",centered:!0,show:e.show,onHide:D,className:"preferred-pickup-store-modal",dialogClassName:"h-100 m-0 mx-auto",children:[(0,N.jsx)(F.A.Header,{className:"border-0",children:(0,N.jsx)(C.E46,{className:"close-button",onClick:D})}),(0,N.jsx)(F.A.Body,{children:(0,N.jsxs)("div",{className:"",children:[(0,N.jsxs)("div",{className:"row mb-3",children:[(0,N.jsx)("div",{className:"col-12 text-center fs-18 fs-md-24 text-blue-green maxis-extraBold mb-1",children:t.messages.checkStockModalTitle}),(0,N.jsx)("div",{className:"col-12 fs-md-16 text-center maxis-semiBold",children:t.messages.checkStockModalDesc})]}),(0,N.jsx)("div",{className:"row store-search-container justify-content-center mb-4",children:(0,N.jsx)("div",{className:"col-12 col-md-11 col-lg-12",onClick:()=>{const t={event:b.A.analyticsConfig.eventNames.eventClicks,gaCategory:b.A.analyticsConfig.gaCategories.ecommerce,gaAction:b.A.analyticsConfig.gaActions.searchStore,gaLabel:"",gaDeviceName:e.deviceDetails.deviceTitle,gaDeviceColor:e.selectedSkuDetails.colourName,gaDeviceStorage:e.selectedSkuDetails.storageType};y.n.analyticsUtility.pushToGTM(t)},children:(0,N.jsx)(x.cl,{idValue:"store-search-bar",inputValue:n,inputBoxType:"Green-Search-Input",inputClass:"store-search-input-field maxis-semiBold",CloseLabel:()=>r(""),reactInputBoxClassName:"px-0 search-box mx-0 btn-block",inputBoxLabelClass:"fs-14 fs-sm-12 fs-md-16 maxis text-black mb-1",inputPlaceholder:t.messages.checkStockSearchPlaceHolder,inputChangeHandler:e=>r(e.target.value||"")})})}),(0,N.jsx)("div",{className:"row pickup-store-list-wrapper mb-3",children:(0,N.jsxs)("div",{className:"col-12 pickup-store-list-container p-3 p-md-4",children:[h.map((e,a)=>{const i=p.realViewCode===e.realViewCode;return(0,N.jsxs)("div",{className:"row store-details-container justify-content-md-between",children:[(0,N.jsxs)("div",{className:"col-12 col-md-8",children:[(0,N.jsx)("div",{className:"maxis-bold fs-16 fs-md-18",children:e.storeName}),(0,N.jsx)("div",{className:"fs-12 fs-md-14 mb-15px mb-2",children:e.address}),(0,N.jsxs)("div",{className:"open-hour-container mb-15px",children:[(0,N.jsxs)("div",{className:"maxis-bold fs-14 fs-md-14 cursor-pointer mb-1",onClick:()=>{return t=e.realViewCode,void P(e=>(0,s.A)((0,s.A)({},e),{},{[t]:!e[t]}));var t},children:[(0,N.jsx)("span",{className:"mr-2",children:t.messages.openHoursLabel}),(0,N.jsx)("span",{children:j[e.realViewCode]?(0,N.jsx)(C.w$n,{className:"open-hour-dropdown-icon"}):(0,N.jsx)(C.VqP,{className:"open-hour-dropdown-icon"})})]}),j[e.realViewCode]&&(0,N.jsx)("div",{className:"preserve-whitespace",children:e.openingHours})]})]}),(0,N.jsx)("div",{className:"col-auto",children:(0,N.jsx)(x.$n,{fullWidth:!1,onClick:()=>(e=>{u(t=>t.realViewCode===e.realViewCode?{}:e)})(e),buttonLabel:(0,N.jsxs)("div",{children:[i&&(0,N.jsx)(C.NKr,{className:"mr-10px"}
1),(0,N.jsx)("span",{children:i?t.messages.plan_selected:t.messages.plan_select})]}),buttonClass:"maxis-bold ls-150 mb-3 store-selection-btn ".concat(i?"selected":""," ")})})]},"pickup-store-list-item-".concat(e.realViewCode,"-").concat(a))}),0===h.length&&(0,N.jsx)("div",{className:"row h-100 align-content-center",children:(0,N.jsx)("div",{className:"col-12 text-center lh-18px",children:t.messages.noResultStockLabel})})]})}),(0,N.jsx)("div",{className:"row justify-content-center",children:(0,N.jsx)("div",{className:"col-12 col-lg-8",children:(0,N.jsx)(x.$n,{id:"submit-preferred-pick-up-store-btn",disabled:!I,buttonLabel:t.messages.continueLabel,onClick:()=>{I&&(e.setPreferredPickUpStoreDetails(p),(()=>{const t={event:b.A.analyticsConfig.eventNames.eventClicks,gaCategory:b.A.analyticsConfig.gaCategories.ecommerce,gaAction:b.A.analyticsConfig.gaActions.clickEvent,gaLabel:b.A.analyticsConfig.gaLabels.storeContinue,gaDeviceName:e.deviceDetails.deviceTitle,gaDeviceColor:e.selectedSkuDetails.colourName,gaDeviceStorage:e.selectedSkuDetails.storageType};y.n.analyticsUtility.pushToGTM(t)})(),D())},buttonClass:"primary ls-150 ".concat(I?"button-hover-anim":""," ")})})})]})})]})};function ue(e){let t=e.intl,a=e.fullName,s=e.email,i=e.phoneNumber,l=e.fullnameMsg,n=e.invalidEmailMsg,o=e.invalidPhoneNumberMsg,r=e.onValueChange,c=e.onNumberChange;const d=b.A.countryCode;return(0,N.jsxs)("div",{className:"contact-form d-flex flex-column mx-0 px-0",children:[(0,N.jsx)(x.cl,{idValue:"fullName",inputValue:a,label:t.messages.fullNameLabel,inputBoxLabelClass:"maxis fs-14 text-brown-grey mb-0",reactInputBoxClassName:"px-0 mb-15px",inputClass:"input-box maxis text-black fs-16 pl-2 box ".concat(""!==l?"b-alert":"b-steel"),inputChangeHandler:e=>r(e.target),isValid:""===l,errorMessage:l}),(0,N.jsxs)("div",{className:"row mx-0 px-0 contact-field",children:[(0,N.jsx)(x.cl,{idValue:"email",inputValue:s,label:t.messages.emailLabel,inputBoxLabelClass:"maxis fs-14 text-brown-grey mb-0",reactInputBoxClassName:"email-input px-0 mb-15px",inputClass:"input-box maxis text-black fs-16 pl-2 box ".concat(""!==n?"b-alert":"b-steel"),inputChangeHandler:e=>r(e.target),isValid:""===n,errorMessage:n}),(0,N.jsx)(x.cl,{idValue:"phoneNumber",inputValue:null===i||void 0===i?void 0:i.substring(2),label:t.messages.mobileNumberLabel,maxLength:10,inputPlaceholder:"123456789",inputBoxLabelClass:"maxis fs-14 text-brown-grey mb-0",reactInputBoxClassName:"mobile-number-input px-0 mb-15px",inputClass:"input-box maxis text-black fs-16 pl-2 box ".concat(""!==o?"b-alert":"b-steel"),inputBoxType:"Telephone-Input",constantValueClass:"fs-16 maxis-bold text-gunmetal",constantValue:(0,N.jsxs)("div",{className:"d-flex align-items-center ml-2",children:[d,(0,N.jsx)("div",{className:"vert-line m-1 ".concat(""!==o?"b-alert":"b-steel")})]}),inputChangeHandler:e=>c(e.target),isValid:""===o,errorMessage:o})]})]})}a.dn(pe),a.dn(ue);const ve=b.A.analyticsConfig.gaLabels,ge=y.n.analyticsUtility;function be(e){let t=e.intl,a=e.deviceTitle,s=e.isPreOrder;return(0,N.jsxs)("div",{className:"d-flex flex-wrap justify-content-center thank-you",children:[(0,N.jsxs)("div",{className:"left-block",children:[(0,N.jsx)(x.JU,{labelClass:"maxis-extraBold maxis-lg-bold fs-18 fs-lg-24 lh-111 lh-lg-125 text-blue-green mb-14px mb-lg-9px",labelData:t.messages.thankYouTitle}),(0,N.jsx)(x.JU,{labelClass:"fs-22 fs-lg-28 maxis-extraBold text-black lh-md-below-077 lh-normal",labelData:a}),(0,N.jsx)(x.JU,{labelClass:"item-message fs-14 fs-lg-16 maxis-semiBold text-gunmetal lh-121 lh-lg-106",labelData:s?t.messages.preOrderThankYouMessage:t.messages.thankYouMessage})]}),(0,N.jsxs)("div",{className:"right-block",children:[(0,N.jsx)(x.JU,{labelClass:"title-wrapper title-first fs-21 fs-lg-24 lh-md-below-081 lh-lg-normal text-white",labelData:t.messages.browseOtherDevicesTitle}),(0,N.jsx)(x.JU,{labelClass:"title-wrapper fs-16 fs-lg-18 maxis-bold text-frog-green lh-normal",labelData:t.messages.browseOtherDevicesMessage}),(0,N.jsx)("div",{className:"btn-wrapper",children:(0,N.jsx)(x.$n,{buttonClass:"primary letter-spacing-15 fs-14 button-hover-anim",buttonLabel:t.messages.letsGoLabel,onClick:()=>{ge.triggerGAForEventClicks(ve.notifyMeTQ),(0,q.A)(z.HX.plpUrl)}})})]})]})}var xe=a(92730);b.A.analyticsConfig.gaLabels,y.n.analyticsUtility;const he=e=>{var t,a,l;let n=e.intl,r=e.i18nLabels,c=e.handleNotifyMeModal,d=e.showNotifyMeModal,m=e.contactFormProps,p=e.onNotifyMeSubmit,g=e.deviceDetails,h=e.selectedSkuDetails,y=e.privacyTnc,A=e.generalTnc,T=e.showThankYou,j=e.isTNGenv;const P=(0,i.useState)(!1),D=(0,o.A)(P,2),k=D[0],I=D[1],S=(0,i.useState)(""),w=(0,o.A)(S,2),M=w[0],L=w[1],O=e=>{L(e),I(!0)},E=(0,s.A)({},h).colourName||"",B=E.charAt(0).toUpperCase()+E.slice(1),R=null===h||void 0===h||null===(t=h.storageType)||void 0===t?void 0:t.toUpperCase(),U=null===h||void 0===h?void 0:h.colour,_=null===g||void 0===g||null===(a=g.colours)||void 0===a||null===(l=a[U])||void 0===l?void 0:l.images[0],H=u.stringify({title:[null===g||void 0===g?void 0:g.brandTitle,null===g||void 0===g?void 0:g.deviceTitle].join(" "),articleModel:[null===g||void 0===g?void 0:g.brandTitle,null===g||void 0===g?void 0:g.deviceTitle].join(" ")}),V=([b.A.consumeSiteOrigin,"/",f.HR.roiUrl,"?",H].join(""),null===g||void 0===g?void 0:g.isPreOrder);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(xe.A,{handleClose:()=>I(!1),tncUrl:M,show:k}),(0,N.jsx)(F.A,{className:"notify-me-modal",dialogClassName:"justify-content-center",centered:!0,backdrop:"static",show:d,onHide:()=>c(!1),children:(0,N.jsxs)(F.A.Body,{children:[(0,N.jsxs)("div",{className:"d-flex flex-row-reverse notify-me-modal-md-close-icon",children:[(0,N.jsx)(C.E46,{className:"d-none d-md-block cursor-pointer",onClick:()=>c(!1)}),(0,N.jsx)(C.eVV,{className:"d-md-none d-block x-icon cursor-pointer",onClick:()=>c(!1)})]}),T&&(0,N.jsx)(be,{intl:n,deviceTitle:null===g||void 0===g?void 0:g.deviceTitle,isPreOrder:V}),!T&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x.JU,{labelClass:"d-flex justify-content-center notify-me-title maxis-extraBold text-blue-green text-center",labelData:n.messages.notifyMeModalTitle}),(0,N.jsx)(x.JU,{labelClass:"notify-me-message message-first maxis-semiBold preserve-whitespace text-gunmetal text-center",labelData:V?n.messages.notifyMePreOrderMessageFirst:n.messages.notifyMeMessageFirst}),!1,(0,N.jsx)("div",{className:"d-flex justify-content-center",children:(0,N.jsxs)("div",{className:"device-wrapper",children:[(0,N.jsx)("img",{className:"device-img",src:"".concat(b.A.apiConfig.aemEndPoint).concat(_),alt:"device-illustration"}),(0,N.jsxs)("div",{className:"ml-25px",children:[(0,N.jsx)("p",{className:"ls-088 m-0 p-0text-uppercase text-steel fs-14",children:null===g||void 0===g?void 0:g.brandTitle}),(0,N.jsx)("p",{id:"deviceName",className:"text-gunmetal maxis-extraBold fs-sm-20 fs-24 lh-100 lh-sm-120 m-0 p-0 mr-sm-15px",children:null===g||void 0===g?void 0:g.deviceTitle}),(0,N.jsx)("p",{id:"skuInfo",className:"lh-150 fs-16 text-steel maxis-semiBold m-0 p-0",children:"".concat(B," - ").concat(R)})]})]})}),(0,N.jsx)("div",{className:"d-flex justify-content-center",children:(0,N.jsx)(ue,(0,s.A)({},m))}),(0,N.jsx)("div",{className:"d-flex justify-content-center",children:(0,N.jsx)("div",{className:"btn-item",children:(0,N.jsx)(x.$n,{buttonClass:"primary letter-spacing-15 fs-14 button-hover-anim",buttonLabel:n.messages.submitLabel,onClick:p})})}),(0,N.jsx)(x.JU,{labelClass:"fs-12 text-brown-grey text-center mb-0",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},r.policyMessage),{},{values:{maxisPolicyLink:j?(0,N.jsx)("span",{className:"link-blue",onClick:()=>O(y.tncUrl),children:n.messages.maxisPolicyLink}):(0,N.jsx)("a",{href:y.tncUrl,target:"_blank",rel:"noopener noreferrer",className:"link-blue",children:n.messages.maxisPolicyLink}),tncLink:j?(0,N.jsx)("span",{className:"link-blue",onClick:()=>O(A.tncUrl),children:n.messages.tncLink}):(0,N.jsx)("a",{href:A.tncUrl,target:"_blank",rel:"noopener noreferrer",className:"link-blue",children:n.messages.tncLink})}}))})]})]})})]})};function fe(e){let t=e.intl,a=e.i18nLabels,l=e.plansOptions,n=e.groupPlans,r=e.selectedSkuDetails,d=e.preSelectedQueryParams,m=e.selectPlan,p=e.deviceDetails,u=e.selectedPlanDetails,g=e.check2F1Offer,h=e.checkDeviceShareLineOffer,A=e.checkTradeDeal,C=e.toggleDevicePlanComparisonModal,T=e.showDevicePlanComparisonDisclaimerStatus,j=e.openToolTipsModal;
1const P=(0,i.useState)((0,s.A)({},d).selectedPlan||{}),D=(0,o.A)(P,2),k=D[0],I=D[1],S=(null===u||void 0===u?void 0:u.contractId)===b.A.ZEROLUTION_CONTRACT_ID&&u.contractId+u.contractDuration||(null===u||void 0===u?void 0:u.contractId),w=c().find((null===l||void 0===l?void 0:l.contractsInfo)||[],{contractId:S,deviceType:null===p||void 0===p?void 0:p.deviceType})||{},M=(n||[]).find(e=>e.planGroup===w.contractId)||{},L=c().filter((null===l||void 0===l?void 0:l.plansList)||[],e=>c().findIndex(M.plans,{planId:e.planId})>-1).map(e=>(0,te.p_)({intl:t,plan:e,deviceDetails:p,contract:w,skuDetails:r})),O=null===p||void 0===p?void 0:p.brandTitle,E=null===p||void 0===p?void 0:p.deviceTitle;(0,i.useEffect)(()=>{L.length>0&&!c().find(L,{planId:k.planId})&&I(L[0])},[M]),(0,i.useEffect)(()=>{const e=(0,s.A)({},u).selectedPlanId;e&&k.planId!==e&&I(c().find(L||[],{planId:e})||{})},[u]),(0,i.useEffect)(()=>{const e=k.planId;m((0,s.A)((0,s.A)({},u),{},{selectedPlanId:e,planName:k.planGroup,planPrice:y.n.getValues(k,"planDetails.planPrice",null),isSupplementary:y.n.getValues(k,"planDetails.isSupplementary",null,!0),planImagePath:y.n.getValues(k,"planDetails.planIconPath",""),is2F1Plan:k.is2F1Plan,hasDevicePlanPromotion:k.hasDevicePlanPromotion,isDeviceShareLineOfferPlan:k.isDeviceShareLineOfferPlan,isTradeUpDeal:k.isTradeUpDeal}))},[k]);const B=e=>{let a=e.keyPrefix,s=void 0===a?"":a,i=e.reverseOrder;return(void 0!==i&&i?[...L||[]].reverse():L||[]).map((e,a)=>{const i=s+a,l=e&&k&&e.planId===k.planId;return(0,N.jsx)(K.A,{plan:e,index:i,action:()=>{I(e)},selected:l,label:l&&t.messages.plan_selected||t.messages.plan_select,openToolTipsModal:j},i)})};return(0,N.jsx)("div",{className:"mobile-plan-pair-options",children:(0,N.jsxs)("div",{className:"position-relative",children:[(0,N.jsx)("div",{id:"mobile-plan-pair-options-background",className:"mobile-plan-pair-options-background"}),(0,N.jsxs)("div",{className:"container pt-md-3",children:[(0,N.jsx)("div",{className:"pt-3 mb-4",children:(0,N.jsx)(x.uT,{compTitlePart1:t.messages.pairWith,compTitlePart2:t.messages.mobilePlan})}),(0,N.jsxs)("div",{className:"d-flex flex-column align-items-md-center fs-16 mb-4",children:[(0,N.jsx)("div",{className:"maxis-bold mb-4",children:t.messages.choosePreferredMaxisMobilePlanTitle}),(0,N.jsx)("div",{className:"preferred-maxis-mobile-plan-description",children:(0,N.jsx)("span",{className:"bg-white text-blue-green maxis-semiBold",children:t.messages.choosePreferredMaxisMobilePlanDescription})})]}),(0,N.jsxs)("div",{className:"container px-0",children:[(0,N.jsx)("div",{className:"d-md-none",children:(0,N.jsx)(B,{keyPrefix:"mobile"})}),(0,N.jsx)("div",{className:"d-none d-md-block w-100",children:(0,N.jsx)(Z.A,(0,s.A)((0,s.A)({},(0,f.pU)(L.length,"",2)),{},{children:B({keyPrefix:"desktop",reverseOrder:!0})}))},"plan-slider-".concat(L.length)),T&&(0,N.jsx)("div",{className:"text-left text-lg-center mt-1",children:(0,N.jsxs)("div",{className:"d-inline fs-16 lh-138 device-mobile-plan-comparison-learn-more-container",children:[(0,N.jsx)("div",{className:"d-inline pr-1 text-dark-grey-2",children:t.messages.deviceMobilePlanComparisonLearnMore}),(0,N.jsx)(x.$n,{fullWidth:!1,reactButtonClass:"d-inline learn-more-btn",buttonClass:"btn-link h-auto p-0 mb-0 rounded-0 border-0 font-weight-normal",buttonLabel:t.messages.learnMore,onClick:C})]})}),g({selectedContract:w,plan:k,deviceDetails:p})&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x.JU,{labelData:t.formatMessage(a.description2F1Offer,{device:"".concat(O," ").concat(E)}),labelClass:"maxis-extraBold fs-14 ls-normal lh-normal text-gunmetal mb-0"}),(0,N.jsx)(x.JU,{labelData:t.messages.availInMaxisStore,labelClass:"maxis-semiBold fs-14 ls-normal lh-normal text-gunmetal mb-1"}),(0,N.jsx)("div",{className:"d-flex align-items-center cursor-pointer w-fit mt-1 text-uppercase",onClick:()=>window.open([b.A.consumeSiteOrigin,"/",f.HR.learnMore2F1Url].join(""),"_blank"),children:(0,N.jsx)(x.sr,{label:t.messages.learnMore})})]}),h({plan:k,deviceDetails:p,skuDetails:r,contractId:w.contractId})&&(0,N.jsx)(x.JU,{labelData:(0,N.jsx)(v.n3,(0,s.A)({},a.shareLineOfferDescription)),labelClass:"fs-14 ls-normal lh-normal text-gunmetal mb-0"}),A({contractId:w.contractId,plan:k,deviceDetails:p,skuDetails:r})&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x.JU,{labelData:t.formatMessage(
1a.descriptionTradeDeal,{device:"".concat(E,", ").concat(r.storageType.toUpperCase())}),labelClass:"maxis-extraBold fs-14 ls-normal lh-normal text-gunmetal mb-0"}),(0,N.jsx)("div",{className:"d-flex align-items-center cursor-pointer w-fit mt-1 text-uppercase",onClick:()=>window.open(f.HR.tradeDealURL,"_blank"),children:(0,N.jsx)(x.sr,{label:t.messages.learnMore})})]}),"true"===(null===w||void 0===w?void 0:w.isDisableCart)&&(0,N.jsx)(x.JU,{labelClass:"maxis-semiBold fs-14 ls-normal lh-normal text-gunmetal my-1",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.descriptionIsDisableCartContract),{},{values:{contract:(0,N.jsx)("span",{className:"maxis-extraBold",children:t.formatMessage(a.isDisableCartContractLabel,{contract:"".concat(w.contractTitle)})})}}))})]})]})]})})}a.dn(he);var ye=a(72416);const Ae=e=>{let t=e.intl,a=e.i18nLabels,i=e.showPriceGuideModal,l=e.setShowPriceGuideModal,n=e.listBroadbandPlan,o=e.deviceDetails,r=e.isMobile,c=e.priceGuideContracts;const d=o||{},m=d.deviceTitle,p=d.brandTitle,u="d-flex flex-column justify-content-center text-center",g=c.length>2?r?85:160:r?95:225,h=c.length>2?r?5:10:r?10:40,f=function(){let e=arguments.length>1?arguments[1]:void 0;return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find(t=>t.type===b.A.ZerolutionFibreDevice&&t.tenure===e)||{}).deviceMonthPrice},y=()=>(0,N.jsxs)("div",{className:"price-guide-table w-100",children:[(0,N.jsxs)("div",{className:"table-header d-flex bg-blue-green text-white fs-14 maxis-extraBold px-2",children:[(0,N.jsx)("div",{style:{width:"calc(100% - ".concat(g*c.length,"px)")}}),c.map((e,s)=>{const i=r&&t.formatMessage(a.priceGuideZerolutionContractShortName,{period:e.contractDuration})||t.formatMessage(a.priceGuideZerolutionContractFullName,{period:e.contractDuration});return(0,N.jsx)("div",{className:u,style:{width:g,padding:"0 ".concat(h,"px")},children:i},"contract_name_".concat(s))})]}),(0,N.jsx)("div",{className:"table-body text-gunmetal bg-light-pink px-2",children:n.map((e,i)=>(0,N.jsxs)("div",{className:"d-flex text-gunmetal py-1 py-md-0 plan-row ".concat(i<n.length-1?"apply-border-row":""," ").concat(c.length>2?"pl-1 pl-md-2":"pl-2"),children:[(0,N.jsx)("div",{className:"lh-normal fs-14 maxis-semiBold d-flex flex-column justify-content-center text-gunmetal",style:{width:"calc(100% - ".concat(g*c.length,"px)")},children:r?e.planShortName||"--":e.planGroup||"--"}),c.map((i,l)=>{return(0,N.jsx)("div",{className:u,style:{width:g,padding:"0 ".concat(h,"px")},children:(n=f(e.contract||[],Number(i.contractDuration||"")-1),Number.isNaN(parseInt(n,10))?(0,N.jsx)("div",{className:"fs-16 maxis-bold",children:"--"}):(0,N.jsxs)("div",{children:[(0,N.jsx)("span",{className:"fs-14 maxis-bold",children:t.messages.RM}),(0,N.jsx)("span",{className:"fs-12 maxis-semiBold",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.homeDevicePricePerMth),{},{values:{price:(0,N.jsx)("span",{className:"fs-16 maxis-bold",children:n})}}))})]}))},"price_".concat(l));var n})]},"fibre_plan_row_".concat(i)))})]});return(0,N.jsxs)(F.A,{show:i,onHide:()=>l(!1),centered:!0,className:"price-guide-modal",dialogClassName:"justify-content-center",children:[(0,N.jsxs)(F.A.Title,{children:[(0,N.jsx)(C.E46,{className:"icon-close-modal cursor-pointer",onClick:()=>l(!1)}),(0,N.jsx)("div",{className:"text-center pt-40px",children:(0,N.jsx)("p",{className:"maxis-extraBold mb-10px fs-24 fs-md-26 text-blue-green lh-30px",children:t.messages.priceGuideLabel})})]}),(0,N.jsxs)(F.A.Body,{children:[(0,N.jsxs)("div",{className:"justify-content-center align-items-center",children:[(0,N.jsxs)("div",{className:"text-center",children:[(0,N.jsx)("p",{className:"maxis fs-14 text-gunmetal price-guide-description mb-30px",children:t.messages.priceGuideDe
1scription}),(0,N.jsx)("p",{className:"mb-0 text-blue-green maxis-extraBold lh-25px fs-18 fs-md-20",children:m}),(0,N.jsx)("p",{className:"mb-0 fs-12 maxis text-steel ls-100 text-uppercase",children:p})]}),(0,N.jsx)(y,{})]}),(0,N.jsx)("div",{className:"text-center",children:(0,N.jsx)(x.$n,{buttonClass:"primary button-hover-anim ls-150 text-uppercase got-it-button mb-0 maxis-bold fs-14",fullWidth:!1,buttonLabel:t.messages.gotItButtonLabel,onClick:()=>l(!1)})})]})]})};a.dn(Ae);var Ce=a(18968);const Ne=e=>{let t=e.showNgbbFibreSpecialOfferInfoModal,a=e.setShowNgbbFibreSpecialOfferInfoModal,s=e.navigateToMarketingPage,i=e.marketingPageUrl;return(0,N.jsx)(F.A,{show:t,onHide:()=>a(!1),centered:!0,className:"ngbb-fibre-special-offer-modal",dialogClassName:"justify-content-center",children:(0,N.jsxs)(F.A.Body,{children:[(0,N.jsx)(C.E46,{className:"icon-close-modal cursor-pointer position-absolute",onClick:()=>a(!1)}),(0,N.jsx)(Ce.A,{onClick:s,marketingPageUrl:i})]})})};a.dn(Ne);const Te=e=>{let t=e.intl,a=e.i18nLabels,i=e.showRoiModal,l=e.setShowRoiModal,n=e.cartDetails,o=e.onValueChange,r=e.onChangeRoiNumber,c=e.roiFullName,d=e.roiEmail,m=e.roiPhoneNumber,p=e.invalidRoiFullNameMsg,u=e.invalidRoiEmailMsg,g=e.invalidRoiPhoneNumberMsg,h=e.isRoiSuccess,f=e.setIsRoiSuccess,A=e.submitRoiForm,T=e.privacyTnc,j=e.generalTnc,P=e.setRoiFullName,D=e.setRoiEmail,k=e.setRoiPhoneNumber,I=e.isHomeDeviceRoi,S=e.toggleRegisterConfirmation,w=e.registerConfirmed;const M=b.A.countryCode,L=b.A.analyticsConfig,O=n.deviceTitle,E=n.contractName,B=n.planName,R=n.brandTitle,U=n.colour,_=n.storageType,H=n.contractTitle,V=I?[{title:O,subTitle:[E]},{title:B,subTitle:null}]:[{title:"".concat(R," ").concat(O),subTitle:[U,_]},{title:B,subTitle:[H]}],G=I?[t.messages.phoneZerolutionUpsellBenefit1,t.messages.phoneZerolutionUpsellBenefit2,t.messages.phoneZerolutionUpsellBenefit3]:[t.messages.fibreUpsellBenefit1,t.messages.fibreUpsellBenefit2],W=![c,d,m,I||w].every(Boolean),J=()=>{I?(y.n.analyticsUtility.triggerGAForEventClicks(L.gaLabels.seeAllPhones),(0,q.A)(z.HX.plpUrl)):(0,q.A)(b.A.maxisBroadbandUrl)},Y=()=>(0,N.jsx)("div",{className:"d-flex flex-column align-items-center ".concat(h?"d-md-block":"d-lg-block"),children:(0,N.jsx)("div",{children:V.map((e,t)=>(0,N.jsxs)("div",{className:"d-flex",children:[(0,N.jsx)(C.NKr,{className:"mr-16px mt-4px check-icon"}),(0,N.jsxs)("div",{className:"fs-16 fs-md-18 text-black",children:[(0,N.jsx)("div",{className:"maxis-extraBold mb-1",children:e.title}),(e.subTitle||[]).map((e,t)=>(0,N.jsx)("p",{className:"mb-1 maxis-semiBold",children:e},"roi_subitem_".concat(t)))]})]},"roi_item_".concat(t)))})}),Z=()=>(0,N.jsxs)("div",{className:"roi-success bg-blue-green text-clear-white",children:[(0,N.jsx)("div",{className:"fs-20 fs-md-24 maxis title mb-2",children:I?t.messages.phoneZerolutionUpsellTitle:t.messages.fibreUpsellTitle}),(0,N.jsx)("div",{className:"fs-16 fs-md-18 maxis-bold text-frog-green lh-normal mb-2",children:I?t.messages.phoneZerolutionUpsellSubTitle:t.messages.fibreUpsellSubTitle}),G.map((e,t)=>(0,N.jsxs)("div",{className:"d-flex mb-2",children:[(0,N.jsx)("div",{children:(0,N.jsx)(C.NKr,{className:"mr-16px mt-4px check-icon"})}),(0,N.jsx)("div",{className:"fs-16 maxis-bold lh-18px",children:e})]},"benefit_".concat(t))),(0,N.jsx)("div",{className:"mt-4",children:(0,N.jsx)(x.$n,{onClick:J,buttonClass:"maxis-bold primary text-uppercase ls-150 button-hover-anim mb-0",buttonLabel:I?t.messages.browseDevicesButtonLabel:t.messages.browseFibreButtonLabel,fullWidth:!0})})]}),K=()=>{h&&(P(""),D(""),k("")),l(!1),f(!1)};return(0,N.jsxs)(F.A,{show:i,onHide:K,centered:!0,className:"home-device-roi-modal",dialogClassName:"justify-content-center ".concat(h?"roi-success-content":""),children:[(0,N.jsxs)(F.A.Title,{children:[(0,N.jsx)(C.E46,{className:"icon-close-modal cursor-pointer position-absolute",onClick:K}),(0,N.jsxs)("div",{className:"mt-4 p-2 text-center ".concat(h?"d-block d-md-none":"d-block d-lg-none"),children:[(0,N.jsx)("p",{className:"maxis-bold maxis-sm-extraBold fs-18 fs-md-26 text-blue-green mb-0",children:h?t.messages.thankYouForYourInterestInLabel:t.messages.registerYourInterestPopUpTitle}),!h&&(0,N.jsx)("p",{className:"fs-14 fs-md-16 maxis text-gunmetal mb-0 lh-normal pt-1",children:I?t.messages.registerHomeDeviceYourInterestSubTitle:t.messages.registerYourInterestPopUpSubTitle})]})]}),(0,N.jsx)(F.A.Body,{children:(0,N.jsx)("div",{className:"home-device-roi-body",children:h?(0,N.jsxs)("div",{className:"row m-0 roi-success-container",children:[(0,N.jsx)("div",{className:"col-12 col-md-6 p-0",children:(0,N.jsxs)("div",{className:"d-md-flex flex-md-column justify-content-md-between h-100",children:[(0,N.jsxs)("div",{children:[(0,N.jsx)("p",{className:"fs-24 maxis-bold text-blue-green d-none d-md-block",children:t.messages.thankYouForYourInterestInLabel}),(0,N.jsx)(Y,{})]}),(0,N.jsx)("div",{className:"fs-14 fs-md-16 text-black maxis-semiBold mt-2 mb-4 m-md-0 text-center text-md-left",children:t.messages.weWillBeInTouchWithYouSoon})]})}),(0,N.jsx)("div",{className:"col-12 col-md-6 p-0",children:(0,N.jsx)(Z,{})})]}):(0,N.jsxs)("div",{className:"row m-0 roi-form",children:[(0,N.jsxs)("div",{className:"col-12 col-lg-4 p-0 pr-lg-0 pr-xl-4",children:[(0,N.jsxs)("div",{className:"mt-lg-4 d-none d-lg-block",children:[(0,N.jsx)("p",{className:"maxis-bold maxis-sm-extraBold fs-18 fs-md-26 fs-lg-35 mb-3 mb-lg-2 mb-xl-3 text-blue-green register-interest-title",children:t.messages.registerYourInterestPopUpTitle}),(0,N.jsx)("p",{className:"fs-14 fs-md-16 maxis text-gunmetal mb-0 lh-normal",children:I?t.messages.registerHomeDeviceYourInterestSubTitle:t.messages.registerYourInterestPopUpSubTitle})]}),(0,N.jsxs)("div",{className:"mt-1 mt-md-3 ".concat(I?"mt-lg-5":"mt-lg-4"," mb-3 mb-md-4 mb-lg-0 pt-lg-4"),children:[(0,N.jsx)("p",{className:"fs-14 fs-lg-16 maxis text-brown-grey ls-100 mb-8px text-center text-lg-left",children:t.messages.youHaveSelected}),(0,N.jsx)(Y,{})]})]}),(0,N.jsx)("div",{className:"col-12 col-lg-8 p-0 pl-lg-2 pl-xl-0",children:(0,N.jsxs)("div",{className:"roi-contact-form",children:[(0,N.jsx)("div",{className:"maxis-bold fs-18 fs-lg-24 text-blue-green mb-13px",children:t.messages.leaveUsYourDetailsLabel}),(0,N.jsxs)("div",{className:"row mx-0",children:[(0,N.jsx)(x.cl,{idValue:"roiFullName",inputValue:c,inputChangeHandler:e=>o(e.target),reactInputBoxClassName:"col-12 p-0 mb-13px mb-md-4",inputClass:"input-box maxis text-black fs-16 pl-2 box ".concat(""!==p?"b-alert":"b-steel"),inputPlaceholder:t.messages.fullNameInputPlaceholder,inputBoxLabelClass:"maxis fs-14 text-steel mb-1",label:t.messages.fullNameInputLabel,isValid:""===p,errorMessage:p}),(0,N.jsx)(x.cl,{idValue:"roiEmail",inputValue:d,label:t.messages.emailInputLabel,inputBoxLabelClass:"maxis fs-14 text-steel mb-1",reactInputBoxClassName:"col-12 col-md-7 col
1-lg-8 p-0 pr-lg-3 mb-13px mb-md-0",inputClass:"input-box maxis text-black fs-16 pl-2 box ".concat(""!==u?"b-alert":"b-steel"),inputChangeHandler:e=>o(e.target),inputPlaceholder:t.messages.emailInputPlaceholder,isValid:""===u,errorMessage:u}),(0,N.jsx)(x.cl,{inputType:"tel",maxLength:10,inputBoxType:"Telephone-Input",idValue:"roiPhoneNumber",inputValue:null===m||void 0===m?void 0:m.substring(2),inputChangeHandler:e=>r(e.target),reactInputBoxClassName:"col-12 col-md-5 col-lg-4 p-0 pl-md-3 pl-lg-0",inputPlaceholder:"123456789",inputBoxLabelClass:"maxis fs-14 text-steel mb-1",label:t.messages.mobileNumberInputLabel,isValid:""===g,inputClass:"input-box maxis text-black fs-16 box ".concat(""!==g?"b-alert":"b-steel"),constantValueClass:"fs-16 maxis-bold text-gunmetal",constantValue:(0,N.jsxs)("div",{className:"d-flex align-items-center ml-2",children:[M,(0,N.jsx)("div",{className:"vert-line m-1 ".concat(""!==g?"b-alert":"b-steel")})]}),errorMessage:g,invalidClassName:""===g?"":"pt-md-1"})]}),!I&&(0,N.jsxs)("div",{className:"register-checkbox-confirmation",children:[(0,N.jsx)(x.oV,{onChange:S,id:"register-checkbox-id",checked:w}),(0,N.jsx)("div",{className:"maxis-semiBold fs-14 fs-sm-12 text-black lh-normal",children:t.messages.registerCheckboxContent})]}),(0,N.jsx)("div",{className:"row mx-0 justify-content-center",children:(0,N.jsx)(x.$n,{onClick:A,buttonLabel:t.messages.submitLabel,buttonClass:"primary text-uppercase ls-150 button-hover-anim maxis-bold",reactButtonClass:"roi-submit-btn",disabled:W})}),(0,N.jsx)("div",{className:"row mx-0 maxis fs-12 text-steel text-center justify-content-center",children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.policyMessage),{},{values:{maxisPolicyLink:(0,N.jsx)("a",{className:"link-blue",target:"_blank",rel:"noopener noreferrer",href:null===T||void 0===T?void 0:T.tncUrl,children:t.messages.maxisPolicyLink}),tncLink:(0,N.jsx)("a",{className:"link-blue",target:"_blank",rel:"noopener noreferrer",href:null===j||void 0===j?void 0:j.tncUrl,children:t.messages.tncLink})}}))})]})})]})})})]})};a.dn(Te);var je=a(48884),Pe=a(89189);const De=e=>{const t=e.intl,a=e.i18nLabels,i=e.show,l=e.toggleModal,n=e.planList,o=void 0===n?[]:n,r=e.tableFooterMessage,c=[{id:"ratePlan",title:t.messages.ratePlan,cssClass:"col-4 text-left"},{id:"price",title:t.messages.price,cssClass:"col-4 text-center"},{id:"internetData",title:t.messages.internetData,cssClass:"col-4 text-center"}],d={cssClass:"col-4 text-left maxis-semiBold fs-14 text-dark-grey"},m={cssClass:"col-4 text-center maxis-bold fs-12"},p={cssClass:"col-4 text-center maxis-semiBold fs-14 text-dark-grey-2"};return(0,N.jsx)(F.A,{show:i,onHide:l,centered:!0,size:"lg",className:"plan-upgrade-comparison-modal",dialogClassName:"h-100 m-0 mx-auto",children:(0,N.jsxs)(F.A.Body,{children:[(0,N.jsx)("div",{className:"text-center mb-2 modal-title-container px-1",children:(0,N.jsx)("h2",{className:"maxis-bold fs-24 fs-md-26 mb-4 mt-40px text-black",children:e.modalTitle})}),(0,N.jsxs)("div",{className:"scrollable-section px-1 mb-4",children:[(0,N.jsx)("div",{children:(e.descriptionList||[]).map((e,t)=>(0,N.jsx)("p",{className:"mb-2 text-center text-dark-grey-2 fs-14 fs-lg-16",children:e},"description-".concat(t)))}),o.length>0&&(0,N.jsxs)("div",{className:"plan-comparison-table-wrapper",children:[(0,N.jsxs)("div",{className:"plan-comparison-table mb-3 border",children:[(0,N.jsx)("div",{className:"row table-header-row",children:c.map(e=>(0,N.jsx)("div",{className:"table-header-col maxis-bold fs-14 text-dark-grey ".concat(e.cssClass),children:e.title},e.id))}),(0,N.jsx)("div",{className:"comparison-table-content-container",children:o.map((e,i)=>(0,N.jsxs)("div",{className:"row table-content-row align-items-center",children:[(0,N.jsx)("div",{className:"table-content-col ".concat(d.cssClass),children:e.ratePlan}),(0,N.jsx)("div",{className:"table-content-col ".concat(m.cssClass),children:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.cart_recurringPriceFormat),{},{values:{amount:(0,N.jsxs)("span",{children:[(0,N.jsx)("span",{className:"maxis-bold fs-14",children:t.messages.RM}),(0,N.jsx)("span",{className:"fs-16 maxis-bold",children:e.price})]})}}))}),(0,N.jsx)("div",{className:"table-content-col ".concat(p.cssClass," plan-quota"),dangerouslySetInnerHTML:{__html:e.internetData}})]},"comparison-row-".concat(i,"-").concat(e.id)))})]}),(0,N.jsx)("div",{className:"text-center text-dark-grey-2 mb-4 fs-14 fs-md-16",children:r})]}),(0,N.jsx)("div",{className:"row justify-content-center m-0",children:(0,N.jsx)("div",{className:"col-12 col-md-6",children:(0,N.jsx)(x.$n,{id:"plan-upgrade-comparison-got-it-btn",buttonLabel:t.messages.gotItButtonLabel,onClick:e.toggleModal,buttonClass:"primary ls-150 button-hover-anim mb-0"})})})]})]})})};a.dn(De);const ke=e=>{let t=e.intl,a=e.i18nLabels,i=e.showDeviceReservationModal,l=e.reserveNowModalToggle,n=e.deviceDetails,o=e.confirmBookingOrderAction,r=e.bookingTnc,d=e.tng,m=e.loginTNG,p=e.setShowTNGnonEkycModal;return(0,N.jsx)(F.A,{show:i,onHide:l,centered:!0,className:"reserve-now-modal",dialogClassName:"justify-content-center",children:(0,N.jsxs)(F.A.Body,{className:"text-center",children:[(0,N.jsx)("div",{className:"d-flex justify-content-end close-icon",children:(0,N.jsx)(C.E46,{className:"cursor-pointer",onClick:l})}),(0,N.jsx)(x.JU,{labelClass:"mt-3 maxis-extraBold fs-18 fs-md-26 text-blue-green",labelData:t.messages.deviceReservationTitle}),(0,N.jsx)(x.JU,{labelClass:"label-wrapper maxis fs-14 fs-lg-16 text-gunmetal text-left",labelData:t.messages.deviceReservationDescription1}),(0,N.jsx)(x.JU,{labelClass:"label-wrapper maxis fs-14 fs-lg-16 text-gunmetal text-left",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.deviceReservationDescription3),{},{values:{bookingFees:(0,N.jsx)("span",{className:"text-black maxis-bold",children:"".concat(t.messages.RM).concat(null===n||void 0===n?void 0:n.bookingFees)})}}))}),(0,N.jsx)(x.JU,{labelClass:"label-wrapper maxis fs-14 fs-lg-16 text-gunmetal text-left",labelData:t.messages.deviceReservationDescription4}),(0,N.jsx)(x.JU,{labelClass:"label-wrapper maxis fs-14 fs-lg-16 text-gunmetal text-left",labelData:(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},a.referLinkForInfoMessage),{},{values:{tncLabel:(0,N.jsx)("a",{href:r.tncUrl,target:"_blank",rel:"noopener noreferrer",className:"link-blue",children:t.messages.tncLabel}),faq:(0,N.jsx)("a",{href:b.A.iphone15FAQUrl,target:"_blank",rel:"noopener noreferrer",className:"link-blue",children:t.messages.faqLabel})}}))}),(0,N.jsx)(x.$n,{fullWidth:!1,onClick:()=>{const e=()=>{o()},t=e=>{e.showNonEkycModal&&p(!0)},a=y.n.getValues(d,"authResponse.user",{});d.isTNGenv&&c().isEmpty(a)?R.B.login({TNGloginReduxFunc:m,TNGloginCallBack:e,onTNGloginFail:t}):o()},buttonClass:"primary button-wrapper text-uppercase maxis-bold fs-14 button-hover-anim",buttonLabel:t.messages.deviceReservationButtonLabel})]})})};a.dn(ke);var Ie=a(64949),Se=a(3426),we=a(62238);const Me="registerFibreInterest",Le="roiSuccess",Oe=e=>{let t=e.hideModal,a=void 0===t?()=>{}:t;return(0,N.jsx)("div",{className:"row m-0 w-100 no-gutters",children:(0,N.jsx)("div",{className:"col text-right",children:(0,N.jsx)(x.$n,{fullWidth:!1,onClick:a,id:"closeCoveragePopUp",buttonClass:"cursor-pointer mb-0 close-btn border-0 h-auto",buttonLabel:(0,N.jsx)(C.uv5,{className:"close-icon"}),reactButtonClass:"maxis-extraBold ml-auto"})})})},Ee=e=>{const t=e.intl,a=e.i18nLabels,l=e.showRegisterFibreInterestModal,n=e.toggleRegisterFibreInterestModal,r=e.submitRoi,c=e.cartDetails,d=void 0===c?{}:c,m=e.coverageCheckFailWithRoi,p=e.homeDeviceContract,u=e.deviceDetails,v=Me,g=d.planName||"",x=[{name:d.planName},...(d.selectedBundle||[]).map(e=>({name:e.title,contract:y.n.getValues(e,"contract.tenure")?t.formatMessage(
1a.zerolutionContractWithTenure,{tenure:Number(e.contract.tenure)+1}):""}))],h={name:"",email:"",mobileNo:"",address:""},f=(0,i.useState)(v),A=(0,o.A)(f,2),C=A[0],T=A[1],j=(0,i.useState)({}),P=(0,o.A)(j,2),D=P[0],k=P[1],I=(0,i.useState)(h),S=(0,o.A)(I,2),w=S[0],M=S[1],L=(0,i.useState)({}),O=(0,o.A)(L,2),E=O[0],B=O[1];(0,i.useEffect)(()=>{l&&R()},[l]),(0,i.useEffect)(()=>{const e={};Object.keys(h).forEach(t=>{e[t]=t}),k(e)},[]);const R=()=>{M((0,s.A)((0,s.A)({},w),{},{address:y.n.getValues(d,"coverageCheckResult.fullAddress",""),mobileNo:y.n.getValues(d,"coverageCheckResult.mobileNumber","").substring(2)}))},F=()=>{n(),B({}),M(h),T(v)},U={roiItems:x},_={roiItems:x,currentSelectedPlanName:g,submitRoiForm:()=>{var e;let t={orderType:b.A.orderType.FIBRE_ROI,name:w.name,mobileNumber:b.A.countryCode+w.mobileNo,email:w.email,address:w.address,ratePlan:g,gaSid:(null===(e=y.n.getCookie("_ga"))||void 0===e?void 0:e.length)<=30?y.n.getCookie("_ga"):null};var a;m&&(t={orderType:b.A.orderType.FIBRE_ZEROLUTION_ROI,name:w.name,mobileNumber:b.A.countryCode+w.mobileNo,email:w.email,ratePlan:g,contract:p.contractId,contractDuration:p.contractTenure+1,model:u.deviceTitle,gaSid:(null===(a=y.n.getCookie("_ga"))||void 0===a?void 0:a.length)<=30?y.n.getCookie("_ga"):null,otherComment:b.A.roiFormComment.outOfCoverage});return r(t)},navigateToRoiSuccessPage:()=>{T(Le)},isManualCoverageCheckReqRoi:y.n.getValues(d,"coverageCheckResult.needManualCoverageCheck"),getters:{roiFormKey:D,roiForm:w,errorBag:E},setters:{setRoiForm:M,setErrorBag:B}},H={[Me]:(0,N.jsx)(Ie.A,(0,s.A)({},_)),[Le]:(0,N.jsx)(Se.A,(0,s.A)({},U))}[C]||null;return(0,N.jsx)(we.A,{size:"xl",modalBodyClass:"p-0",toggleModal:F,dialogClass:"h-100 m-0 mx-auto",modalContentHeaderClass:"w-100",modalHeaderClass:"border-0 p-0",modalClass:"fibre-home-device-register-interest-modal",showModal:l,modalContentHeader:(0,N.jsx)(Oe,{hideModal:F}),children:(0,N.jsx)("div",{id:"fibreHomeDeviceRegisterInterestModal",className:"pb-15px",children:H},C)})};a.dn(Ee);var Be=a(47570);const Re=e=>{let t=e.showModal,a=e.toggleModal,s=e.promotionDetails;return(0,N.jsxs)(we.A,{showModal:t,toggleModal:a,modalContentHeader:s.title,modalContentHeaderClass:"col-12 fs-26 fs-sm-18 maxis-bold text-center text-blue-green",modalHeaderClass:"border-0 pb-0 no-gutters row mb-2",dialogClass:"h-100 m-0 mx-auto modal-size",modalBodyClass:"mb-2",showCloseIcon:!0,children:[(s.description||[]).map((e,t)=>(0,N.jsx)("div",{className:"text-gunmetal fs-sm-14 fs-16 ml-1 ml-lg-4",dangerouslySetInnerHTML:{__html:e}},"desc-".concat(t))),(0,N.jsx)("div",{className:"row justify-content-center button-section",children:(0,N.jsx)(Be.A,{fullWidth:!1,buttonClass:"primary mb-0 letter-spacing-15 fs-14 button-hover-anim btn-class",buttonLabel:s.buttonText,onClick:a})})]})};a.dn(Re);var Fe=a(67628);const Ue="https://exchange.getinstacash.com.my/maxis/v1.php?source=mira#calculateBox";function _e(e){let t=e.intl,a=e.i18nLabels,s=e.showModal,i=e.handleModal;const l=[{iconComponent:(0,N.jsx)(C.$UC,{}),stepTitle:t.formatMessage(a.stepIndexLabel,{stepIndex:1}),stepDesc:t.messages.step1Description},{iconComponent:(0,N.jsx)(C.C6Z,{}),stepTitle:t.formatMessage(a.stepIndexLabel,{stepIndex:2}),stepDesc:t.messages.step2Description},{iconComponent:(0,N.jsx)(C.b2O,{}),stepTitle:t.formatMessage(a.stepIndexLabel,{stepIndex:3}),stepDesc:t.messages.step3Description}];return(0,N.jsx)(F.A,{show:s,onHide:()=>i(!1),centered:!0,className:"trade-in-modal",dialogClassName:"justify-content-center",children:(0,N.jsxs)(F.A.Body,{className:"text-center",children:[(0,N.jsx)("div",{className:"d-flex justify-content-end close-icon",children:(0,N.jsx)(C.eVV,{className:"cursor-pointer",onClick:()=>i(!1)})}),(0,N.jsx)("div",{className:"trade-in-modal-iframe-wrapper",children:(0,N.jsx)("iframe",{sandbox:"allow-scripts allow-forms",referrerPolicy:"no-referrer",src:Ue,title:"trade-in",scrolling:"yes"})}),(0,N.jsxs)("div",{className:"trade-in-steps-placeholder",children:[(0,N.jsx)("div",{className:"title",children:t.messages.stepsTitle}),l.map((e,t)=>(0,N.jsxs)("div",{className:"d-flex col-12 col-sm-8 trade-in-step-row",children:[(0,N.jsx)("div",{className:"mr-1",children:e.iconComponent}),(0,N.jsxs)("div",{className:"step-description",children:[(0,N.jsx)("div",{className:"maxis-bold fs-lg-16 fs-14 text-gunmetal",children:e.stepTitle}),(0,N.jsx)("div",{className:"maxis fs-lg-16 fs-14 lh-normal text-gunmetal",children:e.stepDesc})]})]},"trade-in-step-row-".concat(t)))]})]})})}const He={en:{stepsTitle:"Follow these steps to trade-in",stepIndexLabel:"Step {stepIndex}",step1Description:"Bring your old device when collecting your new device at a Maxis Store.",step2Description:"Hand over your old device to our Maxis crew for evaluation.",step3Description:"Use the value of your old device to enjoy lower prices on your outright purchases or rebate back into your Maxis bill."}};class Ve extends i.Component{render(){return(0,N.jsx)(_e,(0,s.A)({},this.props))}}const Ge=(0,l.Ng)(()=>({i18nLabels:He}),null)((0,Fe.A)(Ve));var We=a(59496),Je=a(75995);function Ye(e){var t,a,l,n;let c=e.intl,d=e.i18nLabels,m=e.deviceTabDetails,p=e.planOptionsProps,u=e.deviceOptionsProps,v=e.cartDetailsProps,h=e.scrollTo,A=e.confirmationOverlayProps,C=e.groupPlans,T=e.upsellDevicesProps,j=e.isJPPOffer,P=e.isTNGenv,D=e.notifyMeModalProps,k=e.mobilePlanPairProps,I=e.checkStockProps,S=e.offerName,w=e.isSO1Valid,L=e.isDeviceEligibleSO1,O=e.contractId,E=e.isHomeDevices,R=e.priceGuideModalProps,F=e.coverageCheckResult,U=e.isBookingDevicePurchase,_=e.ngbbFibreSpecialOfferInfoModalProps,H=e.roiModalProps,V=e.cartDetails,G=e.showOutStandingBillModal,W=e.toggleDevicePlanComparisonModal,J=e.comparisonDevicePlanModalMetaData,Z=e.toolTipsModalMeta,z=e.closeToolTipsModal,K=e.reserveNowModalProps,$=e.registerFibreInterestModalProps,X=e.closePromotionModal,Q=e.promotionModalMeta,ee=e.showTradeInModal,te=e.setShowTradeInModal,ae=e.isDeviceWithOutrightFlow,se=e.queryParams,ie=e.saveMcCodeCallback;const ne=(0,i.useState)(null),de=(0,o.A)(ne,2),me=de[0],ue=de[1],ve=(0,i.useState)(null),ge=(0,o.A)(ve,2),be=ge[0],xe=ge[1],Ce=(0,i.useState)(!1),Ie=(0,o.A)(Ce,2),Se=Ie[0],we=Ie[1],Me=(0,i.useState)(!1),Le=(0,o.A)(Me,2),Oe=Le[0],Be=Le[1],Fe=(0,i.useRef)(null),Ue=(0,i.useRef)(null),_e=(0,i.useRef)(null),He=(0,i.useRef)(null),Ve=(0,i.useRef)(null),Ye=y.n.useWindowSize(),Ze=(0,o.A)(Ye,2),qe=Ze[0],ze=Ze[1],Ke=(0,i.useState)(!1),$e=(0,o.A)(Ke,2),Xe=$e[0],Qe=$e[1],et=(0,i.useState)(null),tt=(0,o.A)(et,2),at=tt[0],st=tt[1],it=(0,i.useState)(null),lt=(0,o.A)(it,2),nt=lt[0],ot=lt[1],rt=(0,i.useState)(0),ct=(0,o.A)(rt,2),dt=ct[0],mt=ct[1],pt=(0,i.useState)(0),ut=(0,o.A)(pt,2),vt=ut[0],gt=ut[1],bt=(0,i.useState)(!0),xt=(0,o.A)(bt,2),ht=xt[0],ft=xt[1],yt=(0,i.useState)(!1),At=(0,o.A)(yt,2),Ct=At[0],Nt=At[1],Tt=(0,i.useState)(""),jt=(0,o.A)(Tt,2),Pt=jt[0],Dt=jt[1],kt=P||w,It=O.includes(b.A.ZEROLUTION_CONTRACT_ID),St=w&&It&&c.messages.TNGfaqModalMessageZerolution||w&&c.messages.TNGfaqModalMessageNormal||c.messages.TNGfaqModalTitle,wt=w?null:It?c.messages.TNGfaqModalMessageZerolution:c.messages.TNGfaqModalMessageNormal,Mt=C&&1===C.length&&C[0].plans&&1===C[0].plans.length,Lt=y.n.getValues(u,"deviceDetails.deviceType",""),Ot=Lt===b.A.deviceTypes.wearables,Et=y.n.getValues(V,"mmaUserInfo.isMMADeviceContractOrRecontract",!1),Bt=([w,!Mt,!(0,r.isEmpty)(p.plansOptions)].every(Boolean)||!(0,r.isEmpty)(p.plansOptions)&&((C||[]).length>0||E)&&!Mt)&&!ae,Rt=[w,Et].includes(!0),Ft=[se.mcReferralCode,se.mcStoreCode].some(Boolean),Ut=se.mc
1ReferralCode||se.mcStoreCode,_t=(0,i.useState)(!1),Ht=(0,o.A)(_t,2),Vt=Ht[0],Gt=Ht[1],Wt={singleContract:[{id:"deviceOptions",title:"DEVICE",ref:Fe},{id:"deviceOverview",title:"OVERVIEW",ref:_e}],wearable:[{id:"deviceOptions",title:"WEARABLE",ref:Fe},{id:"devicePlans",title:"CONTRACT",ref:Ue},{id:"deviceMobilePlans",title:"MOBILE PLAN",ref:He},{id:"deviceOverview",title:"OVERVIEW",ref:_e}],default:[{id:"deviceOptions",title:"DEVICE",ref:Fe},{id:"devicePlans",title:"PLAN",ref:Ue},{id:"deviceOverview",title:"OVERVIEW",ref:_e}]},Jt=(Mt||ae)&&Wt.singleContract||Ot&&Wt.wearable||Wt.default,Yt=Jt[0].id;j||P||!T||(0,r.isEmpty)(T.upsellDevices)||Jt.push({id:"upsellDevices",title:"ADDONS",ref:Ve});const Zt=(Mt||ae?"floating-section-2step-indicator":Ot&&"floating-section-wearable-indicator")||"floating-section-indicator",qt=()=>P?(document.getElementById("global-header")&&document.getElementById("global-header").getBoundingClientRect().height)+(document.getElementById("global-header-sm")&&document.getElementById("global-header-sm").getBoundingClientRect().height)+(document.getElementById("global-header-md")&&document.getElementById("global-header-md").getBoundingClientRect().height)+(document.getElementById("global-header-xl")&&document.getElementById("global-header-xl").getBoundingClientRect().height):document.getElementById("header-container")&&document.getElementById("header-container").getBoundingClientRect().height,zt=()=>{document.getElementById("device-details")&&we(w?window.scrollY>0:document.getElementById("device-details").getBoundingClientRect().top<0)};(0,i.useEffect)(()=>(window.addEventListener("scroll",zt),()=>{window.removeEventListener("scroll",zt)}),[]);const Kt=()=>{var e,t,a,s,i;mt(((null===Fe||void 0===Fe||null===(e=Fe.current)||void 0===e?void 0:e.clientHeight)||0)+((null===Ue||void 0===Ue||null===(t=Ue.current)||void 0===t?void 0:t.clientHeight)||0)+((null===He||void 0===He||null===(a=He.current)||void 0===a?void 0:a.clientHeight)||0)+50);const l=(null===(s=document.getElementById("deviceTitleSection"))||void 0===s||null===(i=s.getBoundingClientRect())||void 0===i?void 0:i.top)||0;gt(l+20)};(0,i.useEffect)(()=>{window.addEventListener("load",Kt)},[]),(0,i.useEffect)(()=>{setTimeout(()=>{Kt()},0)},[qe,ze,F,Se]);(0,i.useEffect)(()=>{let e=null;const t=()=>{if(document.getElementById("pdp-header")){var t,a,s;ft(!1);const i=P?document.getElementById("pdp-header").getBoundingClientRect().height:0;let l=Math.ceil(window.scrollY+(qe<1014?i+qt():180));w&&(l=Math.ceil(window.scrollY+i+(qe<768?13:10)));const n=((e,t,a)=>{if(!(a&&e&&t))return!1;if(e===t)return!1;if(e<=260)return!1;const s=a.from,i=a.to;return e<t!==Jt.findIndex(e=>e.id===s)<Jt.findIndex(e=>e.id===i)})(e,l,me);e=l;const o=Jt.find((e,t)=>{const a=e.ref.current;if(a){const e=(e=>{const t=e.getBoundingClientRect().height,a=e.offsetTop||0;return{height:t,offsetTop:a,offsetBottom:a+t}})(a),s=e.offsetBottom,i=e.offsetTop;return w&&0===t?l>=i&&l<s+(qe<768?25:10):l>=i&&l<s}return!1});o&&be!==o.id&&!Xe&&!me&&xe(o.id),(o&&me&&me.to===o.id||n)&&ue(null),!me&&be===(null===o||void 0===o?void 0:o.id)&&Xe&&Qe(!1);const r=qe<768?null===(t=document.getElementById("plans-options-background-section-mobile"))||void 0===t?void 0:t.getBoundingClientRect():null===(a=document.getElementById("plans-options-background-section"))||void 0===a?void 0:a.getBoundingClientRect();st(r);const c=null===(s=document.getElementById("mobile-plan-pair-options-background"))||void 0===s?void 0:s.getBoundingClientRect();ot(c)}};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[be,me,Xe,qe]);const $t=(null===u||void 0===u||null===(t=u.deviceDetails)||void 0===t?void 0:t.brandTitle)||"",Xt=(null===u||void 0===u||null===(a=u.deviceDetails)||void 0===a?void 0:a.deviceTitle)||"",Qt=c.formatMessage(It?d.seoPricePerMth:d.RMprice,{price:V.contractPrice}),ea=(null===u||void 0===u||null===(l=u.deviceDetails)||void 0===l?void 0:l.seoTitle)||c.formatMessage(d.PDPmetaTitle,{brand:$t,model:Xt}),ta=(null===u||void 0===u||null===(n=u.deviceDetails)||void 0===n?void 0:n.seoDescription)||c.formatMessage(d.PDPmetaDesc,{brand:$t,model:Xt,devicePriceLabel:Qt,deviceCategory:Lt});document.title=ea,document.querySelector('meta[name="description"]').setAttribute("content",ta);const aa=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(null===(e=document.getElementById(a))||void 0===e||null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.top)||0},sa=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(null===(e=document.getElementById(a))||void 0===e||null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.bottom)||0},ia=e=>{var t;kt?(t=e,Nt(!0),Dt(t)):(0,q.A)(e)};return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{id:"device-details",className:"device-details mb-40px",children:[Ft&&(0,N.jsx)("div",{className:"d-none d-lg-block mc-code
1-info-pdp",children:(0,N.jsx)(We.A,{isWebView:!0,isEditMode:!0,currentMcCode:Ut,saveMcCodeCallback:ie,setShowMcCodeModal:Gt})}),!Se&&(0,N.jsx)("div",{className:"container max-md-width",children:(0,N.jsx)("h1",{className:"d-none d-md-block px-0 fs-24 lh-24px text-black maxis-bold mb-0 pt-md-3",children:y.n.getValues(u,"deviceDetails.deviceTitle","")})}),u.deviceDetails&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(pe,(0,s.A)((0,s.A)({},I),{},{show:Oe,toggleModal:Be})),(Ot||E)&&(0,N.jsx)("div",{className:"number-indicator-section position-absolute",style:{height:"".concat("".concat(qe<768?dt-vt+70:dt,"px")),top:"".concat(qe<768?"".concat(vt,"px"):"")},children:(0,N.jsx)("div",{className:"indicator d-flex flex-column justify-content-center position-sticky",children:[...Jt].slice(0,-1).map((e,t)=>(0,N.jsx)("div",{id:"number-indicator-item-".concat(t),className:"number-indicator-item d-flex justify-content-center text-white maxis-bold fs-14 fs-lg-18 align-items-center position-relative cursor-pointer ".concat(ht&&0===t||0===t&&aa("number-indicator-item-".concat(t))<(null===at||void 0===at?void 0:at.top)||1===t&&(E?aa("number-indicator-item-0")>=(null===at||void 0===at?void 0:at.top):aa("number-indicator-item-0")>=(null===at||void 0===at?void 0:at.top)&&aa("number-indicator-item-".concat(t))<(null===nt||void 0===nt?void 0:nt.top))||2===t&&aa("number-indicator-item-1")>=(null===nt||void 0===nt?void 0:nt.top)?"item-selected":aa("number-indicator-item-".concat(t))>=(null===at||void 0===at?void 0:at.top)&&sa("number-indicator-item-".concat(t))<=(null===at||void 0===at?void 0:at.bottom)||aa("number-indicator-item-".concat(t))>=(null===nt||void 0===nt?void 0:nt.top)&&sa("number-indicator-item-".concat(t))<=(null===nt||void 0===nt?void 0:nt.bottom)?"landing-plan-section":""),onClick:()=>{!w&&Qe(be!==e.id),ue({from:be,to:e.id}),xe(e.id),h(e.ref.current,qt(),Se,e.id===Yt)}},e.id))})}),(0,N.jsx)("div",{id:"pdp-header",className:(0,g.A)("header-tab-wrapper mb-3 mt-md-3",Rt&&"no-global-header",P&&"tng-header-tab-wrapper"),children:(0,N.jsxs)("div",{className:(0,g.A)("container max-md-width sticky-header px-sm-0 mb-1 bg-transparent justify-content-around justify-content-md-start",P&&"tng-pdp-header",!Se&&"bb-sm-1-light-pink header-at-top",Ot&&"wearable-header"),children:[Jt.map((e,t)=>(0,N.jsx)("div",{className:"pdp-subHeader-tab pb-3px pb-md-1 px-0 px-md-4 text-center d-flex align-items-end",onClick:()=>{!w&&Qe(be!==e.id),ue({from:be,to:e.id}),xe(e.id),h(e.ref.current,qt(),Se,e.id===Yt)},children:(0,N.jsx)(x.JU,{labelClass:"fs-14 fs-sm-12 maxis-bold mb-0\n ".concat(be&&be===e.id||!be&&0===t?"text-black":"text-dark-grey-2"),labelData:e.title})},e.id)),(0,N.jsx)("div",{className:"floating-section-indicator-container",children:(0,N.jsx)("div",{className:"".concat(Zt," ").concat(Zt,"-").concat(be," ").concat(3===Jt.length?"floating-section-3step-indicator-".concat(be):"","\n ")})})]})}),Ft&&(0,N.jsx)("div",{className:"d-lg-none mc-code-info-pdp",children:(0,N.jsx)(We.A,{isWebView:!0,isEditMode:!0,currentMcCode:Ut,saveMcCodeCallback:ie,setShowMcCodeModal:Gt})}),(0,N.jsxs)("div",{id:"device-details",className:"device",children:[(0,N.jsxs)("div",{className:"container max-md-width",id:"deviceOptions",ref:Fe,children:[w&&L&&S&&(0,N.jsx)("div",{className:"pt-2",children:(0,N.jsx)("div",{className:"so1-offer-name maxis-semiBold fs-12 text-gunmetal lh-117 mb-4",dangerouslySetInnerHTML:{__html:S}})}),(0,N.jsx)(M,(0,s.A)((0,s.A)({},u),{},{groupPlans:C,isSingleContractAndPlan:Mt,togglePreferredPickUpStoreModal:Be,openContractLearnMore:ia}))]}),u.isPreOrder&&!U&&!(0,r.isEmpty)(u.preOrderSuggestedDevice)&&(0,N.jsx)("div",{id:"deviceSuggested",className:"container-md p-0 deviceSuggested",children:(0,N.jsx)(oe,(0,s.A)({deviceDetails:u.deviceDetails,preOrderSuggestedDevice:u.preOrderSuggestedDevice,queryParams:se},p))}),(0,N.jsx)("div",{id:"devicePlans",className:Ot?"pb-0":"",ref:Ue,children:Bt&&(0,N.jsx)(le,(0,s.A)({groupPlans:C,deviceDetails:u.deviceDetails,openContractLearnMore:ia,isSticky:Se,getTotalGlobalHeaderHeight:qt},p))}),Ot&&(0,N.jsx)("div",{id:"mobile-plan-pair",ref:He,children:(0,N.jsx)(fe,(0,s.A)({},k))}),(0,N.jsx)("div",{id:"deviceOverview",className:"pt-5",ref:_e,children:m&&(0,N.jsx)(B,{intl:c,deviceTabDetails:m,compTitle2:Ot&&c.messages.theWearableLabel})}),(0,N.jsx)("div",{id:"upsellDevices",ref:Ve,children:!j&&!P&&T&&!(0,r.isEmpty)(T.upsellDevices)&&(0,N.jsx)(ce,(0,s.A)({},T))})]})]}),(0,N.jsx)("div",{className:"px-0",children:(0,N.jsx)(Y,(0,s.A)((0,s.A)({},v),{},{scrollToSKUSection:()=>h(document.getElementById("deviceOptions"),qt()),scrollToPlansSection:()=>h(document.getElementById("devicePlans"),qt()),isSticky:Se,getTotalGlobalHeaderHeight:qt}))}),(0,N.jsx)(he,(0,s.A)({},D)),(0,N.jsx)(ke,(0,s.A)({},K)),(0,N.jsx)(ye.A,{intl:c,i18nLabels:d,titleLabel:St,handleClose:()=>Nt(!1),show:Ct,messageLabel:wt,body:(la=Pt,f.Fu[la]),showOkayButton:w}),(0,N.jsx)(Ae,(0,s.A)((0,s.A)({},R),{},{isMobile:qe<768})),(0,N.jsx)(Ne,(0,s.A)({},_)),(0,N.jsx)(Te,(0,s.A)({}
1,H)),(0,N.jsx)(Pe.A,{showModal:Z.show,toolTipsDetails:Z.toolTipsDetails,ctaButtonText:c.messages.planTooltipCtaButtonText,ctaButtonAction:z,toggleModal:z}),(0,N.jsx)(je.A,{show:G,primaryBtnText:c.messages.payNow,primaryBtnAction:()=>{window.open(b.A.maxisAppDeepLink.billingPage,"_self")},secondaryBtnText:c.messages.backToHome,secondaryBtnAction:()=>{window.open(b.A.maxisAppDeepLink.homePage,"_self")}})]}),A.showConfirmationView&&(0,N.jsx)(re.A,(0,s.A)({},A)),(0,N.jsx)(De,(0,s.A)({intl:c,i18nLabels:d,toggleModal:W},J)),(0,N.jsx)(Ee,(0,s.A)({},$)),(0,N.jsx)(Re,{showModal:Q.show,promotionDetails:Q.promotionDetails,toggleModal:X}),(0,N.jsx)(Ge,{showModal:ee,handleModal:te}),(0,N.jsx)(Je.A,{isEditMode:!0,isWebView:!0,showModal:Vt,saveMcCodeCallback:ie,currentMcCode:Ut,setShowMcCodeModal:Gt})]});var la}var Ze=a(20336),qe=a(51859),ze=a(92514);const Ke=b.A.maxisCookiesName,$e=b.A.pdpUrlCookiesName,Xe=b.A.maxisCookiesOptions,Qe=b.A.analyticsConfig,et=b.A.deviceTypes,tt=b.A.bundleNames,at=b.A.maxisJPPCookieName,st=b.A.customerSubType,it=b.A.ratePlanType,lt=b.A.cartIdCookiesName,nt=b.A.maxisCartIdCookies,ot=b.A.so1OfferCategory,rt=b.A.fibreCookieName,ct=b.A.orderType,dt=b.A.NORMAL_CONTRACT_ID,mt=b.A.bottomPlacedErrorCodes,pt=b.A.channelCode,ut=b.A.maxisFibreCookieKeys,vt=b.A.broadbandPlanId,gt=b.A.daasProjectTypes,bt=Qe.eventNames,xt=Qe.gaActions,ht=Qe.gaLabels,ft=Qe.gaCategories,yt=Qe.liveChatqStatus,At=Qe.notApplicable,Ct=y.n.analyticsUtility,Nt=y.n.getCookie,Tt=y.n.saveCookie,jt=y.n.deleteCookie,Pt=y.n.filterAccountList,Dt=y.n.openExternalLink,kt=ot.MULTIDEVICE_NEW_R,It=ot.MULTIDEVICE_NEW_D,St=ot.TABLET_D,wt=ot.TABLET_R,Mt=Ze.A.freebies,Lt=Ze.A.fibreAddOns;function Ot(e){var t,a;const l=e.intl,n=e.brand,r=e.device,d=e.ciInfo,g=e.deviceType,x=e.cartDetails,h=e.getStockList,A=e.getCartDetails,C=e.getDevicePlans,T=e.getAccessoryPlans,j=e.devicePlansInfo,P=e.getPlansOptions,D=e.updateCartRedux,k=e.getDeviceDetails,I=e.getDeviceOverviewSpec,S=e.getPreOrderStockList,w=e.getAemConfig,M=e.clearCart,L=e.getUpsellDeviceList,O=e.breDetails,E=e.getMaxisStoreList,B=e.setStorePickup,F=e.updateCiDapWaiveFlag,U=e.cartId,_=e.submitNotifyMeForm,H=e.updateLoggedInIdentificationInfo,V=e.so1OfferDetails,G=e.getCustomerList,W=e.breCheck,J=e.getUpSellFreeGiftDetails,Y=e.createCart,Z=e.clearOrderRedux,K=e.getHomeDevicesInfo,$=e.getFibrePlanOptions,X=e.getMSPlanCatalog,Q=e.planList,ee=e.queryParams,ae=e.message,se=e.getListBundleDetails,ie=e.getFibreDeviceDetailsFromUrl,le=e.checkBookingRef,ne=e.bookingRefInfo,oe=e.updateSO1Details,re=e.submitRoi,ce=e.loginTNG,de=e.tng,me=e.revokeMessage,pe=e.updateW2CUIConfig,ue=e.getCustomerListV5,ve=e.customerIdentificationDetails,ge=g===et.homeDevices,be=g===et.accessories,xe=((null===ee||void 0===ee?void 0:ee.mcStoreCode)||"").split("_")[0],he=(0,i.useState)(null),fe=(0,o.A)(he,2),ye=fe[0],Ae=fe[1],Ce=(0,i.useState)(null),Ne=(0,o.A)(Ce,2),Te=Ne[0],je=Ne[1],Pe=(0,i.useState)(null),De=(0,o.A)(Pe,2),ke=De[0],Ie=De[1],Se=(0,i.useState)(null),we=(0,o.A)(Se,2),Me=we[0],Le=we[1],Oe=(0,i.useState)({}),Ee=(0,o.A)(Oe,2),Be=Ee[0],Re=Ee[1],Fe=(0,i.useState)(!1),Ue=(0,o.A)(Fe,2),_e=Ue[0],He=Ue[1],Ve=(0,i.useState)(Nt(Ke)),Ge=(0,o.A)(Ve,2),We=Ge[0],Je=Ge[1],Ze=(0,i.useState)(null),ot=(0,o.A)(Ze,2),Ot=ot[0],Et=ot[1],Bt=(0,i.useState)(null),Rt=(0,o.A)(Bt,2),Ft=Rt[0],Ut=Rt[1],_t=(0,i.useState)({}),Ht=(0,o.A)(_t,2),Vt=Ht[0],Gt=Ht[1],Wt=(0,i.useState)({}),Jt=(0,o.A)(Wt,2),Yt=Jt[0],Zt=Jt[1],qt=(0,i.useState)([]),zt=(0,o.A)(qt,2),Kt=zt[0],$t=zt[1],Xt=(0,i.useState)(new Date),Qt=(0,o.A)(Xt,2),ea=Qt[0],ta=Qt[1],aa=(0,i.useState)(""),sa=(0,o.A)(aa,2),ia=sa[0],la=sa[1],na=(0,i.useState)({}),oa=(0,o.A)(na,2),ra=oa[0],ca=oa[1],da=(0,i.useState)(!1),ma=(0,o.A)(da,2),pa=ma[0],ua=ma[1],va=Nt(at)||null,ga=(0,i.useState)(!1),ba=(0,o.A)(ga,2),xa=ba[0],ha=ba[1],fa=(0,i.useState)(null),ya=(0,o.A)(fa,2),Aa=ya[0],Ca=ya[1],Na=(0,i.useState)(null),Ta=(0,o.A)(Na,2),ja=Ta[0],Pa=Ta[1],Da=(0,i.useState)(null),ka=(0,o.A)(Da,2),Ia=ka[0],Sa=ka[1],wa=(0,i.useState)(!1),Ma=(0,o.A)(wa,2),La=Ma[0],Oa=Ma[1],Ea=(0,i.useState)(!1),Ba=(0,o.A)(Ea,2),Ra=Ba[0],Fa=Ba[
11],Ua=(0,i.useState)({show:!1,toolTipsDetails:{}}),_a=(0,o.A)(Ua,2),Ha=_a[0],Va=_a[1],Ga=(0,i.useState)(""),Wa=(0,o.A)(Ga,2),Ja=Wa[0],Ya=Wa[1],Za=(0,i.useState)(""),qa=(0,o.A)(Za,2),za=qa[0],Ka=qa[1],$a=(0,i.useState)(""),Xa=(0,o.A)($a,2),Qa=Xa[0],es=Xa[1],ts=(0,i.useState)(""),as=(0,o.A)(ts,2),ss=as[0],is=as[1],ls=(0,i.useState)(""),ns=(0,o.A)(ls,2),os=ns[0],rs=ns[1],cs=(0,i.useState)(""),ds=(0,o.A)(cs,2),ms=ds[0],ps=ds[1],us=(null===d||void 0===d?void 0:d.idType)||b.A.validIDs.malaysianIdCard.value,vs=(null===d||void 0===d?void 0:d.idValue)||"",gs=(0,i.useState)(us),bs=(0,o.A)(gs,1)[0],xs=(0,i.useState)(vs),hs=(0,o.A)(xs,2),fs=hs[0],ys=hs[1],As=(0,i.useState)(!1),Cs=(0,o.A)(As,2),Ns=Cs[0],Ts=Cs[1],js=(0,i.useState)({}),Ps=(0,o.A)(js,2),Ds=Ps[0],ks=Ps[1],Is=(0,i.useState)({}),Ss=(0,o.A)(Is,2),ws=Ss[0],Ms=Ss[1],Ls=(0,i.useState)({}),Os=(0,o.A)(Ls,2),Es=Os[0],Bs=Os[1],Rs=(0,i.useState)([]),Fs=(0,o.A)(Rs,2),Us=Fs[0],_s=Fs[1],Hs=(0,i.useState)([]),Vs=(0,o.A)(Hs,2),Gs=Vs[0],Ws=Vs[1],Js=(0,i.useState)([]),Ys=(0,o.A)(Js,2),Zs=Ys[0],qs=Ys[1],zs=(0,i.useState)({}),Ks=(0,o.A)(zs,2),$s=Ks[0],Xs=Ks[1],Qs=y.n.getValues(x,"mmaUserInfo.isViaFibreDeviceFlow",!1),ei=V.campaignOfferInfo,ti=void 0===ei?{}:ei,ai=V.isSO1Valid,si=void 0!==ai&&ai,ii=V.selectedEligibleOffer,li=void 0===ii?{}:ii,ni=ti.offerShortName||"",oi=(null===(t=li.targetRatePlan)||void 0===t?void 0:t.split("|"))||[],ri=y.n.getListTargetRatePlanId(oi),ci=(null===(a=li.dvcArticleID)||void 0===a?void 0:a.split("|"))||[],di=(0,i.useState)(!1),mi=(0,o.A)(di,2),pi=mi[0],ui=mi[1],vi=ee.entry,gi=Nt(rt),bi=f.mW.getANewFibreId,xi=f.mW.addDeviceToExistingFibreId,hi=f.mW.getDeviceAndUpgradeMyFibreId,fi=[{label:l.messages.getANewFibreOptionLabel,id:bi},{label:l.messages.addDeviceToExistingMaxisFibreOptionLabel,id:xi},{label:l.messages.getDeviceAndUpgradeMyFibreOptionLabel,id:hi,show:!1}].filter(e=>!1!==e.show),yi=(0,i.useState)(null),Ai=(0,o.A)(yi,2),Ci=Ai[0],Ni=Ai[1],Ti=(0,i.useState)(!1),ji=(0,o.A)(Ti,2),Pi=ji[0],Di=ji[1],ki=(0,i.useState)([]),Ii=(0,o.A)(ki,2),Si=Ii[0],wi=Ii[1],Mi=(0,i.useState)([]),Li=(0,o.A)(Mi,2),Oi=Li[0],Ei=Li[1],Bi=(0,i.useState)(null),Ri=(0,o.A)(Bi,2),Fi=Ri[0],Ui=Ri[1],_i=(0,i.useState)([]),Hi=(0,o.A)(_i,2),Vi=Hi[0],Gi=Hi[1],Wi=(0,i.useState)(null),Ji=(0,o.A)(Wi,2),Yi=Ji[0],Zi=Ji[1],qi=(0,i.useState)([]),zi=(0,o.A)(qi,2),Ki=zi[0],$i=zi[1],Xi=(0,i.useState)(!1),Qi=(0,o.A)(Xi,2),el=Qi[0],tl=Qi[1],al=(0,i.useState)(!1),sl=(0,o.A)(al,2),il=sl[0],ll=sl[1],nl=(0,s.A)({},Ci).id===bi&&!Qs,ol=ge&&(0,s.A)({},Ci).id===hi,rl=ge&&(0,s.A)({},Ci).id===xi,cl=(0,i.useState)(!1),dl=(0,o.A)(cl,2),ml=dl[0],pl=dl[1],ul=(0,i.useState)(!1),vl=(0,o.A)(ul,2),gl=vl[0],bl=vl[1],xl=(0,i.useState)([]),hl=(0,o.A)(xl,2),fl=hl[0],yl=hl[1],Al=(0,i.useState)({}),Cl=(0,o.A)(Al,2),Nl=Cl[0],Tl=Cl[1],jl=x.coverageCheckResult,Pl=void 0===jl?{}:jl,Dl=Pl.status,kl=void 0===Dl?null:Dl,Il=Pl.upcoming,Sl=Pl.type,wl=void 0===Sl?"":Sl,Ml=Pl.tag,Ll=void 0===Ml?"":Ml,Ol=Pl.projectType,El=void 0===Ol?"":Ol,Bl=Pl.fullAddress,Rl=void 0===Bl?null:Bl,Fl=null,Ul=(Q.fwbbPlans||[]).filter(e=>Si.find(t=>t.planId===e.planId)).length>0,_l=[!c().isEmpty(Pl),gl,!kl,!wl,!Ul].every(Boolean),Hl=!c().isEmpty(Fl)&&!Il&&y.n.equalsIgnoringCase(Ll,b.A.fibreInfrastructureProvider.maxis),Vl=ge&&nl&&y.n.equalsIgnoringCase(wl,b.A.fibreType.veryHighSpeedDigitalSubscriberLine),Gl=[rl,ol,Vl,Qs,_l].includes(!0),Wl=void 0!==f.HR.newLineSignUpOnlyOffer_DevicesAndPlans.find(e=>e.devices.includes((0,s.A)({},ye).device)&&e.plans.contractId===(0,s.A)({},Be).contractId&&e.plans.planIds.includes((0,s.A)({},Be).selectedPlanId));function Jl(e,t){const a=Si.find(e=>e.planId===t.planId);return c().isEmpty(a)?e:[...e,(0,s.A)((0,s.A)({},t),{},{contract:a.contract,etfRank:a.etfRank})]}const Yl=[vt.fibre3Gbps,vt.fibre5Gbps],Zl=[gt.titanGiga,gt.greenfieldGiga].some(e=>{const t=y.n.getValues(x,"mmaUserInfo.daasInstallationAddress",{}),a=t.projectType||t.projectName||"";return y.n.equalsIgnoringCase(a,e)}),ql=(()=>{let e=c().reduce((Q.fibrePlans||[]).filter(e=>rl||!0!==e.isNonSaleable||Qs&&Zl&&Yl.includes(e.planId)),Jl,[]);return!nl||Vl||_l||(e=y.n.getEligibleFibrePlan(e,wl,Ll)),e})(),zl=c().reduce(Q.fwbbPlans||[],Jl,[]),Kl=Gl&&ql||wl&&(0,qe.vf)(ql,wl)||[],$l=0===Kl.length&&Ul,Xl=[ge,!
1Il,!Hl,kl&&wl||!c().isEmpty(Pl)&&gl].every(Boolean),Ql=(0,i.useState)({show:!1,promotionDetails:{}}),en=(0,o.A)(Ql,2),tn=en[0],an=en[1],sn=(0,i.useState)(null),ln=(0,o.A)(sn,2),nn=ln[0],on=ln[1],rn=(0,i.useState)(0),cn=(0,o.A)(rn,2),dn=cn[0],mn=cn[1],pn=(0,i.useState)(null),un=(0,o.A)(pn,2),vn=un[0],gn=un[1],bn=(0,i.useState)(null),xn=(0,o.A)(bn,2),hn=xn[0],fn=xn[1],yn=(null===ne||void 0===ne?void 0:ne.status)===b.A.apiSuccess,An=(0,i.useState)(!1),Cn=(0,o.A)(An,2),Nn=Cn[0],Tn=Cn[1],jn=(0,i.useState)(""),Pn=(0,o.A)(jn,2),Dn=Pn[0],kn=Pn[1],In=(0,i.useState)(""),Sn=(0,o.A)(In,2),wn=Sn[0],Mn=Sn[1],Ln=(0,i.useState)(""),On=(0,o.A)(Ln,2),En=On[0],Bn=On[1],Rn=(0,i.useState)(""),Fn=(0,o.A)(Rn,2),Un=Fn[0],_n=Fn[1],Hn=(0,i.useState)(""),Vn=(0,o.A)(Hn,2),Gn=Vn[0],Wn=Vn[1],Jn=(0,i.useState)(""),Yn=(0,o.A)(Jn,2),Zn=Yn[0],qn=Yn[1],zn=(0,i.useState)(!1),Kn=(0,o.A)(zn,2),$n=Kn[0],Xn=Kn[1],Qn=(0,i.useState)([]),eo=(0,o.A)(Qn,2),to=eo[0],ao=eo[1],so=(0,ze.A)().updateSearchParams,io=(0,i.useState)(!1),lo=(0,o.A)(io,2),no=lo[0],oo=lo[1],ro={show:!1,modalTitle:l.messages.planUpgradeComparisonModalTitle,descriptionList:[(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},e.i18nLabels.planUpgradeComparisonDescriptions1),{},{values:{date:(0,N.jsx)("span",{className:"maxis-bold text-black",children:f.HR.default5gPlanUpgradeStartDate})}})),(0,N.jsx)(v.sA,(0,s.A)((0,s.A)({},e.i18nLabels.planUpgradeComparisonDescriptions2),{},{values:{date:(0,N.jsx)("span",{className:"maxis-bold text-black",children:f.HR.default5gPlanUpgradeStartDate})}}))],planList:[],tableFooterMessage:l.messages.planUpgradeTableFooterMessage},co=(0,i.useState)(!1),mo=(0,o.A)(co,2),po=mo[0],uo=mo[1],vo=(0,i.useState)(ro),go=(0,o.A)(vo,2),bo=go[0],xo=go[1],ho=(0,s.A)({},x.privateVoucherInfo),fo=y.n.getValues(x,"mmaUserInfo.flowType","")===b.A.mmaFlowTypes.privateVoucher,yo=[void 0,u.stringify({address:Rl})].join("?"),Ao=y.n.getValues(x,"mmaUserInfo.isMMADeviceContractOrRecontract",!1),Co=[si,Ao,fo,Qs].includes(!0),No=(0,i.useState)(!1),To=(0,o.A)(No,2),jo=To[0],Po=To[1],Do=(0,i.useState)(!1),ko=(0,o.A)(Do,2),Io=ko[0],So=ko[1],wo=[{label:l.messages.deviceWithContractLabel,id:f.aH.deviceWithContractId,show:g!==et.accessories&&!fo},{label:l.messages.deviceOnlyLabel,id:f.aH.deviceOnlyId}].filter(e=>!1!==e.show),Mo=(0,i.useState)(null),Lo=(0,o.A)(Mo,2),Oo=Lo[0],Eo=Lo[1],Bo=-1!==((0,s.A)({},ye).outrightDetails||[]).findIndex(e=>e.skuId===(0,s.A)({},ke).skuId),Ro=Bo&&(0,s.A)({},Oo).id===f.aH.deviceOnlyId,Fo=[ge,be,Ro].some(Boolean)?void 0:(0,s.A)({},ye).allowDeviceCare,Uo=()=>{Fa(!Ra)},_o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=t.deviceType===et.wifi;(a?C:T)({sku:t.skuId||""}).then(t=>{const i=(null===t||void 0===t?void 0:t.length)&&t[0][a?"device":"accessory"];if(a?Zi(i):Zt(i),!a){const a=[];e.forEach(e=>{var i;const l=((null===t||void 0===t||null===(i=t[0])||void 0===i?void 0:i.plan)||[]).find(t=>{const a=t.uxfAttributes||{},s=a.productSpecRelationId,i=a.billingOfferId;return"".concat(s,"_").concat(i)===e.planId});l&&a.push((0,s.A)((0,s.A)({},e),{},{contract:l.contract,etfRank:l.etfRank}))}),Ei(a),Le({plansList:a})}})},Ho=e=>{Vi.some(t=>t.skuId===e.skuId)?Gi(t=>t.map(t=>t.skuId===e.skuId?e:t)):Gi(t=>[...t,e])},Vo=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const r=(0,s.A)({},n.deliveryPartner),d=r.name,m=r.campaignCode,p=((null===i||void 0===i?void 0:i.plan)||[]).find(e=>{const t=e.uxfAttributes||{},s=t.productSpecRelationId,i=t.billingOfferId;return"".concat(s,"_").concat(i)===(null===a||void 0===a?void 0:a.planId)}),u=null===o||void 0===o?void 0:o.uxfAttributes,v=l&&b.A.NORMAL_CONTRACT_ID||b.A.ZerolutionFibreDevice,g=null===p||void 0===p?void 0:p.contract.filter(e=>e.type===v),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return 0===e.length?null:[dt,b.A.BundledHomeWiFiDevice].includes(t)?e[0]:e.find(e=>e.tenure===(null===nn||void 0===nn?void 0:nn.contractTenure))}(g||[],v),h=(0,s.A)({},x),f=h.deviceMonthPrice,A=h.deviceAdvancePrice,C=h.deviceUpfrontPrice,N=(0,s.A)((0,s.A)((0,s.A)({},o),n),{},{contract:x,etfRate:(0,s.A)({},x).etfRate,equipmentCid:y.n.getValues(o,"uxfAttributes.productSpecId",""),contractPrice:l?C:f,storage:"Not Applicable"===o.storage?null:o.storage,onlineStock:null!==(e=n.onlineStock)&&void 0!==e&&e,retailStock:null!==(t=n.retailStock)&&void 0!==t&&t,name:n.title,imagePath:n.smallImagePath,bundleImagePath:n.imagePath,deviceMonthPrice:f,deviceAdvancePrice:A,offeringId:"".concat(null===u||void 0===u?void 0:u.productOfferId,"_").concat(null===u||void 0===u?void 0:u.productSpecId),showDescriptionZerolutionContract:Boolean(x),c
1ontractList:g,campaignCode:l?void 0:m,deliveryPartner:l?void 0:d,planAdvancePrice:null===p||void 0===p?void 0:p.planAdvancePrice});if(n.skuId&&l)Ho(N);else{const e=[...Ki.filter(e=>e.skuId!==N.skuId&&e.deviceType!==N.deviceType),N];$i(c().isEmpty(a)?e.filter(e=>e.deviceType!==et.wifi):e);const t=(0,s.A)({},N);delete t.isPrime,D(t)}},Go=(e,t)=>{const a=y.n.getValues(Nl,"mmaUserInfo.flowType","")===b.A.mmaFlowTypes.privateVoucher,i=t===bt.eCommerceDetail&&-1!==((0,s.A)({},e).outrightDetails||[]).findIndex(t=>t.skuId===(0,s.A)({},e).defSku)&&1===wo.length&&wo[0].id===f.aH.deviceOnlyId||Ro||a,l=(x.contractId||"").includes(b.A.ZEROLUTION_CONTRACT_ID),n=x.contractPeriod||0,o=l?n+1:n,r=x.contractId&&o?x.contractId.toLowerCase()+o:(e.defContract||"").toLowerCase(),c=!i&&Qe.contractTypes[r]||Qe.contractTypes.noContract,d=i?Qe.intentionOptions.deviceWithoutContract:Qe.intentionOptions.deviceWithContract,m=i&&(0,s.A)({},e).deviceType===b.A.deviceTypes.accessories&&tt.outrightAccessories||i&&tt.outrightDevices||ge&&tt.maxisHomeDevice||Ct.checkGoWiFi(x.planName)&&tt.maxisGoWifi||tt.maxisPostpaidWithDeviceBundle,p=e.deviceType===b.A.deviceTypes.broadband,u=e.operatingSystem||Qe.operatingSystem.na,v=e.brandTitle,g=![b.A.deviceTypes.mobiles,b.A.deviceTypes.tablets].includes(e.deviceType)&&Qe.operatingSystem.na||(e.brandTitle||"").toLowerCase().includes("apple")&&Qe.operatingSystem.ios||Qe.operatingSystem.android,h=[Qe.categoryTypes.device,Ct.getDeviceType(e.deviceType),ge&&u||p&&v||g].join("/"),A=((0,s.A)({},e).outrightDetails||[]).find(e=>e.skuId===(0,s.A)({},ke).skuId)||{};let C=i&&A.outrightPrice||ge&&e.price||e.lowestPrice.price;if([bt.ecommerceAddReserve,bt.eCommerceAdd].includes(t)&&!i){const e=y.n.getPriceNumber(x,"deviceAdvPayment")||0,t=y.n.getPriceNumber(x,"contractPrice")||0;C=l&&o*t||t+e}return{dimension12:c,dimension95:d,contractPeriod:o,devicePrice:C,deviceCategory:h,dimension35:m}},Wo=e=>{var t,a;let s=e.skuDetails,i=e.stockDetails,l=e.homeDeviceDetails;const n=ge?l:ye,o=n.deviceType===b.A.deviceTypes.broadband,r=Go(n,bt.eCommerceDetail),c=r.dimension12,d=r.dimension95,m=r.devicePrice,p=r.deviceCategory,u=r.dimension35,v=!o&&s.storageType||b.A.analyticsConfig.notApplicable,g=[{name:n.deviceTitle,id:s.skuId||b.A.analyticsConfig.notApplicable,price:m,brand:n.brandTitle,category:p,variant:v,quantity:1,dimension12:c,dimension13:s.colourName||b.A.analyticsConfig.notApplicable,dimension35:u,dimension95:d}],x={event:bt.eCommerceDetail,online_stock_quantity:null!==(t=i.onlineStock)&&void 0!==t?t:b.A.analyticsConfig.notApplicable,shop_stock_quantity:null!==(a=i.retailStock)&&void 0!==a?a:b.A.analyticsConfig.notApplicable,ecommerce:{detail:{products:g}}};y.n.analyticsUtility.pushToGTM(x)};(0,i.useEffect)(()=>{ge&&wi(Oi.filter(e=>rl||!0!==e.isNonSaleable||Qs&&Zl&&Yl.includes(e.planId)))},[Ci,Oi]),(0,i.useEffect)(()=>{if(ge){const e=Ki.find(e=>e.deviceType===b.A.deviceTypes.wifi);fn((0,s.A)((0,s.A)({},hn),{},{bundleDevice:null===e||void 0===e?void 0:e.skuId})),D({selectedBundle:Ki,primaryDevices:Ki,withRouter:!c().isEmpty(e)})}},[Ki]),(0,i.useEffect)(()=>{Si.length>0&&ge&&(mn(Math.min(...Si.map(e=>Math.min(...((null===e||void 0===e?void 0:e.contract)||[]).map(e=>(null===e||void 0===e?void 0:e.deviceMonthPrice)||0))))),gn(Si.reduce((e,t)=>e.planPrice<t.planPrice?e:t)))},[Si]);(0,i.useEffect)(()=>{if(ge){const e=Fi||{},t=e.planDetails,a=void 0===t?{}:t,i=e.planOfferingId,l=e.productOfferId,n=e.planName,o=e.planId,r=void 0===o?"":o,d=e.planPrice,m=e.hasHomeDevicePlanPromotion,p=e.etfRank,u=e.ngbb,v=void 0===u?[]:u,g=e.foreignerDepositPrice,h=e.planAdvancePrice,f=e.freebies,A=void 0===f?[]:f;let C=nl?y.n.getValues(Pl,"projectType",""):void 0;if(Qs){const e=y.n.getValues(x,"mmaUserInfo.daasInstallationAddress",{}),t=e.projectType||e.projectName||"";C=t.toUpperCase()}const N=(v.find(e=>(e.projectCode||[]).includes(C))||{}).promoBoId,T=Fi||rl?Kl.length>0?ct.FIBRE_ORDER:ct.FWBB_ORDER:void 0,P=T===ct.FWBB_ORDER,k=(null===j||void 0===j?void 0:j[null===ye||void 0===ye?void 0:ye.skuId])||{};nn&&!c().isEmpty(k)&&Vo(Fi,k,!1,ye,Yt);const I=Vi.filter(e=>e.planId===(0,s.A)({},Fi).planId);
1if(I.forEach(e=>{const t=j[e.skuId]||{};P&&nn&&!c().isEmpty(t)&&Vo(Fi,t,!0,e,(0,s.A)({},t.device))}),0===I.length&&P){const e=Vi.filter(e=>e.planId!==(0,s.A)({},Fi).planId);Gi(e)}const S=Nt(rt);D((0,s.A)({planId:r,planName:n,freebies:A.filter(e=>e.userType===b.A.userType.all),orderType:T,planPrice:d,JPPCookie:P?null:va,productOfferId:l,planOfferingId:i,isSupplementary:a.isSupplementary||"false",planImagePath:null===a||void 0===a?void 0:a.planIconPath,planProductOfferingId:l,mcReferralCode:x.ciMcReferralCode||(null===ee||void 0===ee?void 0:ee.mcReferralCode),intention:rl?b.A.flowType.CRP:b.A.flowType.addNewLine,selectPurchasingOption:Ci,mcStoreCode:null===ee||void 0===ee?void 0:ee.mcStoreCode,isAddDeviceToExistingFibre:rl,etfRank:p,ngbbBoId:N,foreignerDepositPrice:g,planAdvancePrice:h,hasHomeDevicePlanPromotion:m,hasPlanPromotion:void 0,eligibleFibrePlans:rl?Kl:void 0},nn)),Qs||D({fibreCookie:S,ngbbProjectCode:C,projectType:El}),fn((0,s.A)((0,s.A)({},hn),{},{contractType:null===nn||void 0===nn?void 0:nn.contractType,plan:null===Fi||void 0===Fi?void 0:Fi.planId}))}},[Fi,nn,Yi,Ci,Si]),(0,i.useEffect)(()=>{const e=(0,s.A)({},Fi).planId,t=b.A.planListWithHardBundle.includes(e),a=Ki.filter(e=>e.deviceType!==b.A.deviceTypes.wifi);if(t&&Vi.length>0){const t=Vi.filter(t=>t.planId===e),s=t.find(e=>e.skuId===b.A.apiConfig.tozedS200PlusMeshRouterSkuId&&(e.retailStock||e.onlineStock))||t.find(e=>e.retailStock||e.onlineStock)||t[0];$i([...a,s])}else $i(a)},[Vi]),(0,i.useEffect)(()=>{ge&&(Ci&&fn((0,s.A)((0,s.A)({},hn),{},{intention:Ci.id,plan:(0,s.A)({},Fi).planId})),kl||wl||bl(!1))},[Ci]),(0,i.useEffect)(()=>{ge&&hn&&(()=>{var e;const t=null===(e=Object.keys(ee))||void 0===e?void 0:e.filter(e=>0!==(null===e||void 0===e?void 0:e.length));let a=(null===t||void 0===t?void 0:t.length)>0&&(null===t||void 0===t?void 0:t.map(e=>"".concat(e,"=").concat(ee[e]||"")))||[];null!==hn&&void 0!==hn&&hn.skuId&&(a=a.filter(e=>!e.startsWith("skuid=")),a.push("skuid=".concat(null===hn||void 0===hn?void 0:hn.skuId))),null!==hn&&void 0!==hn&&hn.intention&&(a=a.filter(e=>!e.startsWith("intention=")),a.push("intention=".concat(null===hn||void 0===hn?void 0:hn.intention))),null!==hn&&void 0!==hn&&hn.contractType&&(a=a.filter(e=>!e.startsWith("contractType=")),a.push("contractType=".concat(null===hn||void 0===hn?void 0:hn.contractType))),a=a.filter(e=>!e.startsWith("plan=")),null!==hn&&void 0!==hn&&hn.plan&&a.push("plan=".concat(null===hn||void 0===hn?void 0:hn.plan)),a=a.filter(e=>!e.startsWith("bundleDevice=")),null!==hn&&void 0!==hn&&hn.bundleDevice&&a.push("bundleDevice=".concat(null===hn||void 0===hn?void 0:hn.skuId)),a.length>0&&window.history.replaceState({},"","?".concat(a.join("&")))})()},[hn]),(0,i.useEffect)(()=>{if(ge&&Fi&&nn){-1!==(Fi.contract||[]).findIndex(e=>(null===e||void 0===e?void 0:e.type)===nn.contractId&&(null===e||void 0===e?void 0:e.tenure)===nn.contractTenure)||Ui(null)}},[nn]),(0,i.useEffect)(()=>{c().isEmpty(Pl)&&ge&&nl&&(Ui(null),bl(!1));if(!1===y.n.getValues(x,"coverageCheckResult.status",null,!0)&&ge){var e;const t={orderType:ct.FIBRE_ZEROLUTION_ROI,name:"",mobileNumber:Pl.mobileNumber,email:"",ratePlan:"",contract:x.contractId,contractDuration:x.contractTenure+1,model:x.deviceTitle,gaSid:(null===(e=Nt("_ga"))||void 0===e?void 0:e.length)<=30?Nt("_ga"):null,dap:x.deviceAdvancePrice,otherComment:Vl?void 0:b.A.roiFormComment.outOfCoverage,address:Pl.fullAddress};re(t)}},[Pl]),(0,i.useEffect)(()=>{if(nl&&c().isEmpty(Pl)){const e=(0,s.A)({},Pl),t=e.status,a=void 0===t?null:t,i=(0,s.A)({},gi).raw_address,l=void 0===i?{}:i;let n=(0,s.A)({},e);const o=l[ut.TYPE];if(null===a)if(l[ut.UPCOMING])n={status:!0,upcoming:!0,type:o,tag:l[ut.TAG]};else if(o){const e=o!==b.A.fibreType.veryHighSpeedDigitalSubscriberLine;n={status:e,needManualCoverageCheck:!1===e,type:o,tag:l[ut.TAG],projectType:l[ut.PROJECTTYPE],fullAddress:l[ut.FULLADDRESS],mobileNumber:l[ut.MOBILENUMBER]}}D({coverageCheckResult:n,fibreServiceProvider:n.tag})}else nl||Ui(null)},[nl]),(0,i.useEffect)(()=>{const e=Q.fibrePlans||[],t=Q.fwbbPlans||[];if(e.length>0&&t.length>0&&ye&&ge){const a=e.concat(t);_o(a,ye)}},[Q.fibrePlans,Q.fwbbPlans,ye]),(0,i.useEffect)(()=>{const e=Q.fwbbPlans||[];e.length>
10&&ge&&e.forEach(e=>{se(e.planId).then(t=>{const a=((0,s.A)({},t).deviceBundleDetailsList||[]).filter(e=>e.deviceType===et.wifi).map(e=>e.devicePath);a.length>0&&a.forEach(t=>{ie(t).then(t=>{if(c().isEmpty(t))return;let a=Object.values(t||{})[0]||{};a.skuId?h(a.skuId,xe).then(t=>{const i=y.n.getValues(t,"productAvailability",[]),l=i.filter(e=>1===e.stockType),n=i.filter(e=>2===e.stockType);a=(0,s.A)((0,s.A)({},a),{},{planId:e.planId,onlineStock:c().sumBy(l,"balance")>0,retailStock:c().sumBy(n,"balance")>0}),Ho(a),_o([],a)}):(Ho((0,s.A)((0,s.A)({},a),{},{planId:e.planId})),_o([],(0,s.A)((0,s.A)({},a),{},{planId:e.planId})))})})})})},[Q.fwbbPlans]),(0,i.useEffect)(()=>{window.scrollTo(0,0),ge&&!b.A.enableHomeDeviceOrder&&(0,q.A)(z.HX.plpUrl),(()=>{const t=e.getPrivacyTnc,a=e.getGeneralTnc,s={idType:bs,idValue:fs};t(s).then(e=>Ms(e)),a(s).then(e=>ks(e))})();const t=ge?f.HR.defaultDeviceTypeForHomeDevice:g;if(I(t,n,r).then(e=>{je(e)}),ge){if(c().isEmpty(gi)&&D({coverageCheckResult:{}}),Qs){const e=x.mmaUserInfo||{},t=e.agetId,a=e.channel,i=e.dwellingType,l=e.salesCode,n=e.tmOrderId,o=e.tmServiceId,r=e.remark,c=e.justification,d=e.daasInstallationAddress,m=void 0===d?{}:d,p=m.rawAddress||{},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[e.streetType,e.streetName].filter(Boolean).join(" ");return y.n.fibreCoverageCookiesGenerator((0,s.A)((0,s.A)({},e),{},{postCode:e.postcode,projectType:e.projectName,fibrePlanId:"",address1:[e.unit,e.buildingName,t].filter(Boolean).join(", "),address2:e.section,_ga:ee._ga,_gl:ee._gl}))}((0,s.A)((0,s.A)({},m),p)),v=m.projectType||m.projectName||"";D({salesCode:l,agetId:t,channel:a,tmOrderId:n,tmServiceId:o,dwellingType:i,remark:r,justification:c,fibreServiceProvider:m.tag,ngbbProjectCode:v,fibreCookie:u,projectType:v})}return P().then(e=>{const t=((0,s.A)({},e).contractsInfo||[]).filter(e=>e.deviceType===b.A.deviceTypes.homeDevices);yl(t)}),void K(n,r).then(e=>{if(c().isEmpty(e))return;let t=Object.values(e||{})[0]||{};const a=(0,s.A)({},t.deliveryPartner),i=a.name,l=void 0===i?"":i,n=a.campaignCode;(y.n.equalsIgnoringCase(l,b.A.deliveryPartner.mtt)?Promise.resolve(S({campaignCode:n,skuId:t.skuId})):Promise.resolve(h(t.skuId,xe))).then(e=>{const a=y.n.getValues(e,"productAvailability",[]),i=a.filter(e=>1===e.stockType),l=a.filter(e=>2===e.stockType);t=(0,s.A)((0,s.A)({},t),{},{onlineStock:c().sumBy(i,"balance")>0,retailStock:c().sumBy(l,"balance")>0}),Wo({skuDetails:t.skuId,stockDetails:{onlineStock:c().sumBy(i,"balance"),retailStock:c().sumBy(l,"balance")},homeDeviceDetails:t}),ua(!0),Ae(t),Promise.allSettled([$({nonSaleable:!0}),X(b.A.msPlansApiMeta.config[b.A.msPlansApiMeta.keys.ftth]),X(b.A.msPlansApiMeta.config[b.A.msPlansApiMeta.keys.fwbb])]).then(e=>{let t=(0,o.A)(e,3),a=t[0],s=t[1],i=t[2];y.n.setPlansInRedux(a.value,s.value.plan,{isFWBB:!1,isFTTH:!0,freebies:Mt,fibreAddOns:Lt}),y.n.setPlansInRedux(a.value,i.value.plan,{isFWBB:!0,isFTTH:!1,freebies:Mt,fibreAddOns:Lt})});const n=(0,s.A)({},ee),r=n.plan,d=n.contractType,m=n.intention,p=n.bundleDevice;fn({skuId:t.skuId,plan:r,contractType:d,intention:m,bundleDevice:p})})})}Promise.allSettled([w(),null!==ee&&void 0!==ee&&ee.bookingRef?le({token:ee.bookingRef}):Promise.resolve(!1)]).then(e=>{let t=(0,o.A)(e,2),a=t[0],i=t[1];if((0,s.A)({},d).isCiEligible&&F({brand:n,device:r}),k(g,n,r).then(e=>{const t=e&&e[r];if(si&&t){(t.pricingDetails||[]).find(e=>ci.includes(null===e||void 0===e?void 0:e.skuId))&&ui(!0)}if(t&&t.isPreOrder){const e=new Date;ta(e);const s=m()(e).toDate(),i=y.n.getValues(a,"value.preOrderConfigs",[]),l=y.n.getPreOrderConfigs(i,t.campaignId);c().isEmpty(l)||la(l.preOrderEndDate);const n=y.n.getValues(l,"preOrderPhaseConfigs[0].deliveryDateRange","").split("-")[0];s<m()(n,"DD/MM/YYYY HH:mm").toDate()?(0,q.A)(z.HX.plpUrl):Ae(t)}else t?Ae(t):(0,q.A)(z.HX.pageNotFoundUrl)}),i.value){const e=i.value.contractType.startsWith(b.A.ZEROLUTION_CONTRACT_ID)?i.value.contractPeriod+1:i.value.contractPeriod;if(i.value.status===b.A.apiSuccess){const t=u.stringify((0,s.A)((0,s.A)({},ee),{},{skuid:i.value.skuId,plan:i.value.plan,contractType:"".concat(i.value.contractType).concat(e)})),a=[window.location.origin,window.location.pathname,"?",t].join("");window.history.replaceState({},"",a)}}}),P().then(e=>{Le(e)}),L(g,n,r).then(e=>{Ut(e.upSellProducts)}),E().then(e=>{Ws(e)}),J(g,n,r).then(e=>{Xs(e)})},[]),(0,i.useEffect)(()=>{const t=(ae.globalMessage||[]).map(e=>e.code)||[];ae.globalMessage&&pe({enableGlobalMessage:!0}),t.length>0&&mt.includes(t[t.length-1])&&e.revokeMessage()},[]),(0,i.useEffect)(()=>{const e=Nt(Ke);e&&e.cartId&&e.JWTtoken&&!1===(null===x||void 0===x?void 0:x.isFaceIdDone)&&(M(),jt(Ke,Xe))},[x]),(0,i.useEffect)(()=>{e.tng.isTNGenv&&jt(Ke,Xe),ge&&x.color&&D({color:void 0})},[]),(0,i.useEffect)(()=>{const t=(0,s.A)({},x).isNewCustomer,a=(null===ye||void 0===ye?void 0:ye.bookingFlag)||!1,i=ee.channel,l=(void 0===i?"":i).toUpperCase()===pt.MAXBOT;if(Tl({mmaUserInfo:x.mmaUserInfo,privateVoucherInfo:x.privateVoucherInfo,ciMcReferralCode:x.ciMcReferralCode}),Pa(null===x||void 0===x?void 0:x.isFaceIdDone),ge||M(),!0!==t&&!1!==t||(Ca(t),Sa(!Ia
1)),ye&&!ge){let t=(0,s.A)({brandTitle:ye.brandTitle,deviceTitle:ye.deviceTitle,brandId:ye.brand,titleId:ye.device,deviceType:ye.deviceType,isPreOrder:ye.isPreOrder||!1,campaignId:ye.campaignId||null,JPPCookie:va,isMerdekaPromo:ye.tagName===f.HR.merdekaPromo,citoken:null!==d&&void 0!==d&&d.isCiEligible?null===d||void 0===d?void 0:d.citoken:null,orderType:null!==d&&void 0!==d&&d.isCiEligible?ye.isPreOrder?b.A.orderType.PRE_ORDER_CI:b.A.orderType.NORMAL_ORDER_CI:null,channel:l&&pt.MAXBOT||null,hashParameters:g,preOrderNote:ye.preOrderNote,inStoreDeal:ye.inStoreDeal,supportedSimSize:ye.supportedSimSize,simOptionsFooterMessage:ye.simOptionsFooterMessage},Nl);a&&(t=(0,s.A)((0,s.A)({},t),{},{bookingFees:Number(ye.bookingFees)||0,bookingCode:ye.campaignCode||null})),yn&&(t=(0,s.A)((0,s.A)({},t),{},{bookingFees:Number(ye.bookingFees)||0,bookingId:ne.bookingId,campaignId:ne.campaignId})),D(t),ye.bookingFlag&&e.getBookingTnc().then(e=>Bs(e))}else if(ye&&ge){const e=(0,s.A)((0,s.A)({},ye),{},{isHomeDevices:ge,hashParameters:g},Nl);delete e.isPrime,D(e)}},[ye]),(0,i.useEffect)(()=>{!U||!1===ja||!0!==Aa&&!1!==Aa||D({isNewCustomer:Aa})},[Aa,Ia]);const Jo=e=>{if(e){const t=e.uxfAttributes;D({deviceOfferingId:"".concat(t.productOfferId,"_").concat(t.productSpecId)})}};(0,i.useEffect)(()=>{if((0,s.A)({},ke).skuId){const e=ye.deviceType===b.A.deviceTypes.wearables||ye.deviceType===b.A.deviceTypes.accessories,t=e&&f.HR.planType.mop||ye.planType||ye.deviceType,a=f.HR.plansApiConfig[t]||{};if(uo(((t===f.HR.planType.both?a.filterPlans:a.familyType)||"").includes(b.A.familyType.MOP)),Object.keys(j).includes(ke.skuId)){const e=j[ke.skuId],t=e.device,s=e.plan,i=(s||[]).filter(e=>!a.filterPlans||a.filterPlans.includes(e.familyType));(0,te.f7)({deviceInfo:t,planInfo:i,setGroupPlans:Et,breDetails:O,JPPCookie:va,setIsJPPOffer:ha,ciInfo:d,so1OfferDetails:V,deviceDetails:ye}),qs(s),Zt(t),Jo(t)}else e?T((0,s.A)({customerType:"C",customerSubType:"M",sku:ke.skuId},a)).then(e=>{qs(e[0].plan),Zt(e[0].accessory),(0,te.f7)({deviceInfo:e[0].accessory,planInfo:e[0].plan,setGroupPlans:Et,breDetails:O,JPPCookie:va,setIsJPPOffer:ha,ciInfo:d,so1OfferDetails:V,deviceDetails:ye}),Jo(e[0].accessory)}):C((0,s.A)({customerType:"C",customerSubType:"M",sku:ke.skuId},a)).then(e=>{const t=y.n.getValues(e,"[0].plan",[]).filter(e=>!a.filterPlans||a.filterPlans.includes(e.familyType));qs(t),Zt(e[0].device),e&&e[0]&&((0,te.f7)({deviceInfo:e[0].device,planInfo:t,setGroupPlans:Et,breDetails:O,JPPCookie:va,setIsJPPOffer:ha,ciInfo:d,so1OfferDetails:V,deviceDetails:ye}),Jo(e[0].device))});ca({})}},[ke]),(0,i.useEffect)(()=>{if(ke&&ye&&(!c().isEmpty(Be)||Ro)){const t=e.queryParams||{},a=Object.keys(t).filter(e=>0!==(null===e||void 0===e?void 0:e.length));let i=(null===a||void 0===a?void 0:a.length)>0&&(null===a||void 0===a?void 0:a.map(e=>"".concat(e,"=").concat(t[e]||"")))||[];const l=[],n=c().find(y.n.getValues(Me,"plansList",[]),{planId:f.HR.defaultWatchPlanId});ye.deviceType===b.A.deviceTypes.wearables&&n&&!Ro&&l.push(n);const o=(0,te.Hp)(ke,Be,ye.colours,Ot,l,O);if(D((0,s.A)((0,s.A)({},o),{},{mcReferralCode:x.ciMcReferralCode||(null===t||void 0===t?void 0:t.mcReferralCode),mcStoreCode:null===ee||void 0===ee?void 0:ee.mcStoreCode})),ke.skuId&&(i=i.filter(e=>!e.startsWith("skuid=")),i.push("skuid=".concat(ke.skuId))),Be.selectedPlanId){const e="".concat(Be.contractId).concat(Be.contractDuration);i=i.filter(e=>!e.startsWith("plan=")&&!e.startsWith("contractType=")),i.push("plan=".concat(Be.selectedPlanId)),i.push("contractType=".concat(e))}if(window.history.replaceState({},"","?".concat(i.join("&"))),!ge){const e=Number(y.n.getValues(ye,"safeDeviceConfig[".concat(ke.skuId,"].waiveDuration"),b.A.safeDeviceDefaultFreeMonths));D({safeDeviceFreeDuration:e})}}},[ke,Be,Ot]);const Yo=e=>{const t=c().filter(e,e=>e.balance>0&&2===e.stockType),a={};t.forEach(e=>{a[e.store.storeCode]=e}),Gt(a)},Zo=async(e,t)=>e&&t?S({skuId:e,campaignCode:t},!1).then(e=>{if(e){const t=[...Kt];(e.productAvailability||[]).forEach(e=>{t.push(e)}),$t(t)}return e}):{},qo=async t=>{const a=c().findIndex(e.productAvailability,{skuid:t.skuId})<0,i={onlineStock:-1,retailStock:-1},l=function(){let e=0,a=0;const s={onlineStock:!1,retailStock:!1};return(arguments.length>
10&&void 0!==arguments[0]?arguments[0]:[]).forEach(i=>{if(i.skuid!==String(t.skuId))return;const l=1===i.stockType,n=2===i.stockType;-1!==i.balance?l?e+=i.balance:n&&(a+=i.balance):s[l?"onlineStock":n&&"retailStock"]=!0}),s.onlineStock&&0===e&&(e=-1),s.retailStock&&0===a&&(a=-1),{onlineStock:e,retailStock:a}};try{if(yn){return l((await S({campaignCode:ne.campaignId,skuId:ne.skuId})).productAvailability||[])}const n=ye.campaignId,o=void 0===n?null:n,r=ye.campaignCode,d=void 0===r?null:r;if(ye.isPreOrder){let e=!1,n=(0,s.A)({},i);const r=m()(ia,"DD/MM/YYYY HH:mm").toDate();if([t.skuId,o,a,ea,r,ea<r].every(Boolean)){n=l((await S({campaignCode:o,skuId:t.skuId})).productAvailability||[]),e=n.onlineStock>0||n.retailStock>0}if(!e&&ye.bookingFlag&&d){n=l((await Zo(t.skuId,d)).productAvailability||[])}return n}if(t.skuId){if(a){const e=await h(t.skuId,xe,b.A.stockType.both);let a=l(e.productAvailability||[]);if(Yo(e.productAvailability||[]),ye.bookingFlag&&d){a=l((await Zo(t.skuId,d)).productAvailability||[])}if(ye.backOrderFlag&&d){const e=await(async(e,t)=>S({skuId:e,campaignCode:t}).then(e=>{if(e){const t=[...to];(e.productAvailability||[]).forEach(e=>{t.push(e)}),ao(t)}return e}))(t.skuId,d);a=l(e.productAvailability||[])}return a}const s=c().filter(e.productAvailability,{skuid:t.skuId});return Yo(s),l(s)}}catch(n){return i}return i};(0,i.useEffect)(()=>{c().isEmpty(ke)||qo(ke)},[ea,ia]),(0,i.useEffect)(()=>{xa&&ys(va.IDValue)},[xa]),(0,i.useEffect)(()=>{const e=Gs.map(e=>(0,s.A)((0,s.A)({},e),{},{stores:e.stores.filter(e=>Vt[e.realViewCode])}));_s(e)},[Vt]),(0,i.useEffect)(()=>{const e=b.A.mosPlanId,t=e.postpaid79,a=e.postpaid109,i=e.postpaid139,l=e.postpaid169,n=e.postpaid199,o=c().reduce((0,s.A)({},Me).plansList||[],(e,t)=>{const a=t.planDetails||{};return(0,s.A)((0,s.A)({},e),{},{[t.planId]:{ratePlan:t.planGroup,price:a.planPrice,quota:a.quota}})},{}),r=[{id:t,ratePlan:(0,s.A)({},o[t]).ratePlan,price:(0,s.A)({},o[t]).price,internetData:(0,s.A)({},o[t]).quota},{id:a,ratePlan:(0,s.A)({},o[a]).ratePlan,price:(0,s.A)({},o[a]).price,internetData:(0,s.A)({},o[a]).quota},{id:i,ratePlan:(0,s.A)({},o[i]).ratePlan,price:(0,s.A)({},o[i]).price,internetData:(0,s.A)({},o[i]).quota},{id:l,ratePlan:(0,s.A)({},o[l]).ratePlan,price:(0,s.A)({},o[l]).price,internetData:(0,s.A)({},o[l]).quota},{id:n,ratePlan:(0,s.A)({},o[n]).ratePlan,price:(0,s.A)({},o[n]).price,internetData:(0,s.A)({},o[n]).quota}];xo(e=>(0,s.A)((0,s.A)({},e),{},{planList:r}))},[Me]);const zo=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=ye.deviceType,a=x.contractPeriod,s=Ct.getDeviceTypeForPlan(t),i=t===b.A.deviceTypes.broadband,l=e?bt.ecommerceAddReserve:bt.eCommerceAdd,n=Go(ye,l),o=n.dimension12,r=n.dimension95,d=n.contractPeriod,m=n.devicePrice,p=n.deviceCategory,u=n.dimension35,v=!i&&"--"!==x.storageType&&x.storageType||b.A.analyticsConfig.notApplicable,g=[{name:e?"".concat(x.deviceTitle," ").concat(Qe.reservation):x.deviceTitle,id:x.skuId,price:m,brand:x.brandTitle,category:p,variant:v,dimension12:o,dimension13:ke.colourName&&ke.colourName.toLocaleUpperCase(),quantity:1,dimension35:u,dimension95:r}];!c().isEmpty(Be)&&!Ro&&g.push({name:x.planName,id:x.planId,price:a&&d*parseFloat(Be.planPrice.toString().replace(",","")),brand:Qe.maxisBrand,category:[Qe.categoryTypes.plan,s,Ct.getPlanCategory(Be.planName)].join("/"),variant:b.A.analyticsConfig.notApplicable,dimension12:o,quantity:1,dimension35:Ct.checkGoWiFi(x.planName)?tt.maxisGoWifi:tt.maxisPostpaidWithDeviceBundle,dimension95:r}),(x.addOnPlans||[]).forEach(e=>{g.push({name:e.planGroup,id:e.planId,price:Number(d)*Number(y.n.getValues(e,"planDetails.planPrice")),brand:Qe.maxisBrand,category:[Qe.categoryTypes.plan,Qe.deviceCategory.wearables,Ct.getPlanCategory(Be.planName)].join("/"),variant:b.A.analyticsConfig.notApplicable,dimension12:o,quantity:Number(e.quantity)||1,dimension35:b.A.bundleNames.maxisPostpaidWithDeviceBundle,dimension95:r})}),Ct.pushToGTM({event:l,ecommerce:{add:{products:g}}})},Ko=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=y.n.createCartPayload(e);Y(t).then(t=>{Z();const a=t.customer,i=(0,s.A)((0,s.A)({},Nt(Ke)),{},{cartId:t.cartId,idType:a.idType,idValue:a.idValue});Tt(Ke,i,(0,s.A)({},Xe)),Tt(lt,i.cartId,(0,s.A)((0,s.A)({},Xe),nt)),Tt($e,{pdpUrl:window.location.href},Xe),D({cartId:i.cartId});const l=e.creditTier===b.A.errorCodeKeyList.errorCodeDAP&&!b.A.ignoreCreditTierError,n=Qs&&a.isNewCustomer,o=(si||fo||n)&&!l?z.HX.cartUrl:z.HX.accountSubscriptionUrl;(0,q.A)(o)})},$o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qe.steps.tacValidate;Ct.pushToGTM({event:bt.eCommerceTac,step:e,option:Qe.tacOptions.existingCustomerNoLine,tac_flow_bundle:be&&tt.outrightAccessories||tt.outrightDevices})},Xo=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const l=t.mobileNumber,n=t.customerUuid,o=l||We.mobileNumber,r={idType:t.idType,idValue:t.idValue};H(r);const d=(0,s.A)({},r),m={plan:x.productOfferId,ratePlanType:"false"===x.isSupplementary?it.principal:it.shareline,etfWaiverFlag:li.etfWaiverFlag},p=Fi||rl?Kl.length>0?b.A.orderType.FIBRE_ORDER:b.A.orderType.FWBB_ORDER:void 0;[b.A.orderType.FIBRE_ORDER,b.A.orderType.FWBB_ORDER].includes(p)?m.orderType=p:(m.contractType=x.contractId,m.skuId=x.skuId),x.deviceType!==b.A.deviceTypes.tablets||ge||(m.ratePlanType=y.n.getTabletDeviceRatePlanType(e.devicePlansInfo,e.cartDetails)),i&&(m.orderType=b.A.orderType.BOOKING_ORDER),x.deviceType!==b.A.deviceTypes.wearables||p||(m.orderType=b.A.orderType.WATCH_ORDER);const u=(Ki||[]).find(e=>e.deviceType===b.A.deviceTypes.wifi);p===b.A.orderType.FWBB_ORDER&&!c().isEmpty(u)&&(m.contractType=b.A.NORMAL_CONTRACT_ID,m.skuId=u.skuId||null);const v=(Ki||[]).find(e=>e.deviceType!==b.A.deviceTypes.wifi)||{};c().isEmpty(v)||p!==b.A.orderType.FIBRE_ORDER||(m.contractType=b.A.ZerolutionFibreDevice,m.skuId=v.skuId||null);const g=b.A.enableCtosBreDapCalculation&&Boolean(m.skuId)&&Boolean(m.contractType),h=Qs&&(0,s.A)({},x.mmaUserInfo).dapWaiver===b.A.conditionAnswer.yes.key;if(g)if(c().isEmpty(v)||p!==b.A.orderType.FIBRE_ORDER){const t=y.n.getValues(e,"devicePlansInfo[".concat(e.cartDetails.skuId,"]"),{}),a=((((t.plan||[]).find(t=>t.uxfAttributes.productOfferId===e.cartDetails.productOfferId)||{}).contract||[]).find(t=>t.tenure===e.cartDetails.tenure)||{}).deviceAdvancePrice||0,s=y.n.getValues(t,"device.priceRrp")||0;m.deviceRRPAmount=s.toString(),m.deviceDAPAmount=a.toString()}else{const e=v.priceRrp||0,t=h?0:v.deviceAdvancePrice||0;m.deviceRRPAmount=e.toString(),m.deviceDAPAmount=t.toString()}W(d,m).then(i=>{const l=i.status,d=i.ratePlanAdvancePaymentWaive,m=void 0===d?"":d,p=i.lineDepositWaive,u=void 0===p?"":p,v=i.accountList,f=l===b.A.apiSuccess,A=((null===i||void 0===i?void 0:i.deviceAdvancePaymentWaive)||"")===b.A.conditionAnswer.yes.key||h,C=!A&&g,N=C?Number(i.deviceDAPAmount)||0:!A&&x.deviceAdvPayment||0;(e=>{Ct.pushToGTM({event:bt.eventStatusCheck,gaCategory:ft.breCheckStatus,gaAction:e&&xt.breCheckSuccess||xt.breCheckFailed,gaLabel:ht.na})})(f);if(y.n.getValues(i,"errorMessage.code","")===b.A.errorCodeKeyList.outstandingBillError)return void Po(!0);if(!f)return void Ct.pushToLiveChatQ(yt.breFailed);D({foreignerDepositPrice:u===b.A.no?x.foreignerDepositPrice:null,deviceAdvPayment:N,mobileNumber:o,customerUuid:n});const T=si&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=t.state,s=t.serviceID,i=t.account,l=e.find(e=>e.accountNo===i)||{},n=[It,kt,St,wt].includes(ti.offerCategory),o=((l.msisdnList||[]).find(e=>e.hasOption&&e.msisdn===s)||{}).msisdn;if(!o)return{};const r=n?b.A.flowType.addShareLine:b.A.flowType.CRP,c=n?null:o,d=n?o:null,m=(0,te.Ye)(V,x)||{},p=m.rebateInfo,u=void 0===p?{}:p,v=y.n.getPriceNumber(x.contractPrice)||0,g=x.contractId.includes(b.A.ZEROLUTION_CONTRACT_ID),h=si&&!g?u.rebateAmount:0,f=h>v?v:h,A=v-f;oe({actualSo1RebateAmount:f,rebatedDevicePrice:A});const C=ri.find(e=>[x.planId,x.mupPlanId].includes(e)),N=oi.find(e=>e.includes(C));
1return{orderType:b.A.orderType.NORMAL_ORDER_SO1,awsState:a,intention:r,intentionNumber:c,intentionAccNo:l.accountNo,principalNumber:d,so1InfoObj:m.so1InfoObj,contractPrice:A,planId:C,planOfferingId:N}}(v,t)||{};if(si&&c().isEmpty(T))return void e.setMessage({code:b.A.errorCodeKeyList.errorCode119});const j=(0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)({},x),a.customerPersonalDetails),T),r),{},{lineDepositWaive:u,deviceAdvancePaymentWaive:A?b.A.yes:b.A.no,ratePlanAdvancePaymentWaive:m,mobileNumber:o,foreignerDepositPrice:u===b.A.no?x.foreignerDepositPrice:null,deviceAdvPayment:N,isNewCustomer:a.isNewUser,freeGiftProducts:$s.freeGiftProducts||[],cbrNumber:o,creditTier:i.creditTier||null,customerUuid:n,customerEntry:vi});Qs&&(j.selectedBundle=(x.selectedBundle||[]).map(e=>{const t=e,a=C?Number(i.deviceDAPAmount)||0:!A&&t.deviceAdvancePrice||0;return t.contract&&(t.contract.deviceAdvancePrice=a),t.deviceAdvancePrice=a,t}),j.email=t.email||j.email),si&&D({isNewCustomer:a.isNewUser,intention:T.intention,intentionNumber:T.intentionNumber,intentionAccNo:T.intentionAccNo,principalNumber:T.principalNumber,contractPrice:T.contractPrice}),Ao&&Ct.pushToGTM({event:bt.eCommerceTac,step:Qe.steps.tacValidate,option:Qe.gaOptions.existingCustomerAddNewDevice,tac_flow_bundle:ge&&tt.maxisHomeDevice||tt.maxisPostpaidWithDeviceBundle}),D({customerEntry:vi}),Ko(j)})},Qo=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const a=si?V:x.mmaUserInfo,i=Pt(a.accountList),l={idType:a.idType,idValue:a.idValue,isPrincipalPlanName:!0,brand:"".concat(b.A.maxisBrand,",").concat(b.A.hotlinkBrand)};y.n.fetchAllCustomerList(G,ue,l,{isUpgradeToMaxis:!1,isAddDeviceToExistingFibre:rl}).then(l=>{const n=(0,s.A)({},l).status===b.A.apiSuccess;let o=!1;(c().isEmpty((0,s.A)({},l).customerAccountList)||l.is101CodeViolation)&&e.revokeMessage();const r=y.n.customerTypesFlagFactory((0,s.A)({},l).customerAccountList||[]),d=r.isMaxisCustomer,m=r.isHotlinkPostpaidCustomer,p=r.isPurePrepaidCustomer;[n,!d,m].every(Boolean)&&(o=!0,D({customerSubType:st.hotlinkIndividual}));const u=!o&&(c().isEmpty(i)||p);if(D({isNewCustomer:u}),rl&&(u||o))return void e.setMessage({code:b.A.errorCodeKeyList.existingFibreError});if(fo){const e=((0,s.A)({},ye).outrightDetails||[]).find(e=>e.skuId===(0,s.A)({},ke).skuId)||{},t=y.n.getValues(x,"mmaUserInfo.mobileNumber","")||We.mobileNumber,a=(0,s.A)((0,s.A)((0,s.A)({},x),l.customerPersonalDetails),{},{idType:y.n.getValues(x,"mmaUserInfo.idType",""),idValue:y.n.getValues(x,"mmaUserInfo.idValue",""),mobileNumber:t,isNewCustomer:!1,cbrNumber:t,quantity:1,orderType:b.A.orderType.OUTRIGHT_ORDER,freeGiftProducts:$s.freeGiftProducts||[],intention:b.A.flowType.addNewLine,devicePromoVoucher:c().isEmpty(ho)?void 0:"DV:".concat(ho.code),voucherInfo:c().isEmpty(ho)?void 0:ho,isDeviceWithOutrightFlow:Ro,outrightPrice:Ro?e.outrightPrice:null,customerUuid:y.n.getValues(x,"mmaUserInfo.customerUuid","")});return $o(),$o(Qe.steps.tacContinueToCart),void Ko(a)}if(rl){const t=y.n.filterCustomerEligibleFibrePlans(Kl,l.customerAccountList);if(0===t.length)return void e.setMessage({code:b.A.errorCodeKeyList.existingFibreError});const a=t.length>1?t.reduce((e,t)=>t.planPrice>e.planPrice?t:e):t[0],s=(a.contract||[]).find(e=>e.type===b.A.ZerolutionFibreDevice&&e.tenure===x.contractTenure)||{};if(c().isEmpty(s))return void e.setMessage({code:b.A.errorCodeKeyList.existingFibreError});(Ki||[]).forEach(e=>{e.deviceType!==b.A.deviceTypes.wifi&&(e.contract=s,e.deviceAdvancePrice=s.deviceAdvancePrice)}),x.productOfferId=a.productOfferId,x.selectedBundle=Ki,D({productOfferId:a.productOfferId})}const v=(0,s.A)((0,s.A)({},l),{},{isNewUser:u});Xo(a,v,t)})},er=()=>{Uo()},tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.hasDeviceReservationOption,a=void 0!==t&&t,i=e.hasDeviceBackOrderOption,l=void 0!==i&&i,n=l?y.n.getValues(ye,"backOrderDetails",{}):{},o=Nt(Ke),r=Nt($e),d=o&&o.cartId&&Boolean(o.JWTtoken)||!1,m=ra.realViewCode?c().pick(ra,["realViewCode","postal"]):void 0;Je(o);const p=b.A.planListWithHardBundle.includes((0,s.A)({},Fi).planId),u=y.n.getValues(x,"hasDevicePlanPromotion"),v=y.n.getValues(x,"hasHomeDevicePlanPromotion"),g=Ki.find(e=>e.deviceType===b.A.deviceTypes.wifi)||{},h=[p,!c().isEmpty(g)].every(Boolean)&&g.planAdvancePrice||y.n.getValues(x,"planAdvancePrice",null);Ao&&Ct.pushToInsiderEvent({event_name:b.A.insiderConfig.eventName.clickAddToCartAddNewDevice});const f=((0,s.A)({},ye).outrightDetails||[]).find(e=>e.skuId===(0,s.A)({},ke).skuId)||{},A={isDeviceBackOrder:l,hasDeviceReservationOption:a,preferredOrderPickUpStore:m,isPlanWithHardBundle:p,planAdvancePrice:h,backOrderDetails:n,notes:l?n.notes:void 0,backOrderCampaignCode:l?(0,s.A)({},ye).campaignCode:void 0,isBookingDevicePurchaseOrder:void 0,promoMessage:void 0,devicePlanPromotionDetail
1s:void 0,isDeviceWithOutrightFlow:Ro,outrightPrice:Ro?f.outrightPrice:null,allowDeviceCare:Fo,hasCoverageCheckOptions:nl,devicePlanMiniCartMetaData:{showDevicePlanMiniCart:!Ro,deviceInformation:Yt,plansOptions:Me,so1Details:(0,te.Ye)(V,x)}};if(yn&&(A.isBookingDevicePurchaseOrder=!0),(u||v)&&(A.promoMessage=y.n.getValues(ye,"devicePlanPromotions[0].promotionBannerMessage",""),A.devicePlanPromotionDetails=(0,s.A)({eligibleFlow:b.A.devicePlanPromoEligibleFlows.all},y.n.getValues(ye,"devicePlanPromotions[0]",""))),D(A),d){!ge&&!a&&zo();const e=r.pdpUrl!==window.location.href,t=(0,s.A)((0,s.A)({},o),{},{productChangeFlag:e});Tt(Ke,t,(0,s.A)({},Xe)),D({cartId:o.cartId}),H({idType:o.idType,idValue:o.idValue}),e?He(!0):Co?Qo():a?er():(0,q.A)(z.HX.accountSubscriptionUrl)}else a?er():(!ge&&zo(),Tt($e,{pdpUrl:window.location.href},Xe),Co?Qo():(0,q.A)(z.HX.tacAuthenticationUrl))},ar=(0,s.A)((0,s.A)({actions:{selectSkuDetails:e=>{Ie(e),qo(e).then(t=>{pa?(e=>{var t,a;let s=e.skuDetails,i=e.stockDetails;const l=ye.deviceType===b.A.deviceTypes.broadband,n=Go(ye),o=n.dimension12,r=n.dimension95,c=n.devicePrice,d=n.deviceCategory,m=n.dimension35,p=!l&&s.storageType||b.A.analyticsConfig.notApplicable,u=[{name:ye.deviceTitle,id:s.skuId,price:c,brand:ye.brandTitle,category:d,variant:p,quantity:1,dimension12:o,dimension13:s.colourName,dimension35:m,dimension95:r}],v={event:bt.eCommerceVariant,online_stock_quantity:null!==(t=i.onlineStock)&&void 0!==t?t:b.A.analyticsConfig.notApplicable,shop_stock_quantity:null!==(a=i.retailStock)&&void 0!==a?a:b.A.analyticsConfig.notApplicable,ecommerce:{variantSelect:{products:u}}};y.n.analyticsUtility.pushToGTM(v)})({skuDetails:e,stockDetails:t}):(Wo({skuDetails:e,stockDetails:t}),ua(!0))})},selectPlan:e=>{Re(e)},handlePreNavigateTo:tr,buttonHandleClick:function(t){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(He(!1),"confirm"===t)Ct.triggerGAForEventClicks(ht.yesTakeMeToMyCart,xt.cart),(()=>{if(We){const e={cartId:We.cartId||"",idType:We.idType||"",idValue:We.idValue||""};A(e).then(e=>{const t=e[We.cartId]||{};D({cartId:t.cartId}),t.cartId&&(0,q.A)(z.HX.cartUrl)})}})();else{Ct.triggerGAForEventClicks(ht.noClearIt,xt.cart);const t=Nt(Ke),i=(0,s.A)((0,s.A)({},t),{},{productChangeFlag:!0});if(Tt(Ke,i,(0,s.A)({},Xe)),Tt($e,{pdpUrl:window.location.href},Xe),rl&&!Qs)return void G({idType:ve.idType,idValue:ve.idValue,isPrincipalPlanName:!0,brand:"".concat(b.A.maxisBrand,",").concat(b.A.hotlinkBrand)},{isUpgradeToMaxis:!1,isAddDeviceToExistingFibre:rl}).then(t=>{const a=y.n.filterCustomerEligibleFibrePlans(Kl,t.customerAccountList);if(0===a.length)return void e.setMessage({code:b.A.errorCodeKeyList.existingFibreError});const i=a.length>1?a.reduce((e,t)=>t.planPrice>e.planPrice?t:e):a[0],l=(i.contract||[]).find(e=>e.type===b.A.ZerolutionFibreDevice&&e.tenure===x.contractTenure)||{};if(c().isEmpty(l))return void e.setMessage({code:b.A.errorCodeKeyList.existingFibreError});const n=(x.selectedBundle||[]).filter(e=>e.deviceType!==b.A.deviceTypes.wifi).map(e=>(0,s.A)((0,s.A)({},e),{},{contract:l,deviceAdvancePrice:l.deviceAdvancePrice}));D({selectedBundle:n,productOfferId:i.productOfferId}),(0,q.A)(z.HX.accountSubscriptionUrl)});Co?Qo():a?er():yn&&Aa?(0,q.A)(z.HX.tacAuthenticationUrl):(0,q.A)(z.HX.accountSubscriptionUrl)}},updateShowConfirmationView:He,handleNotifyMeModal:e=>{Oa(e);const t={event:bt.eventClicks,gaCategory:ft.ecommerce,gaAction:xt.clickEvent,gaLabel:ht.notifyMe,gaDeviceName:ye.deviceTitle,gaDeviceColor:null===ke||void 0===ke?void 0:ke.colourName,gaDeviceStorage:null===ke||void 0===ke?void 0:ke.storageType};Ct.pushToGTM(t)},setFullName:Ya,setPhoneNumber:Ka,setEmail:es,setFullNameMsg:is,setInvalidEmailMsg:rs,setInvalidPhoneNumberMsg:ps,onNotifyMeSubmit:()=>{if((()=>{let e="";return Ja||(is(l.messages.mandatoryField),e=""===e?"fullName":e),Qa?y.D.validateEmail(Qa)||(rs(l.messages.invalidEmailFormat),e=""===e?"email":e):(rs(l.messages.mandatoryField),e=""===e?"email":e),za?y.D.isMalaysianPhoneNumber(za)||(ps(l.messages.mobileFieldInsufficientLength),e=""===e?"phoneNumber":e):(ps(l.messages.mandatoryField),e=""===e?"phoneNumber":e),e&&document.getElementById(e).focus(),""===e})()){const e=(0,te.y_)({deviceDetails:ye,selectedSkuDetails:ke,fullName:Ja,email:Qa,phoneNumber:za});_(e).then(e=>{(null===e||void 0===e?void 0:e.message)===b.A.apiSuccess&&(Ts(!0),Ct.pushToGTM({event:bt.formSubmission,gaCategory:ft.leads,gaAction:xt.formSubmission,gaLabel:ht.notifyMe,gaDeviceName:ye.deviceTitle,gaDeviceColor:null===ke||void 0===ke?void 0:ke.colourName,gaDeviceStorage:null===ke||void 0===ke?void 0:ke.storageType}))})}},reserveNowModalToggle:Uo,confirmBookingOrderAction:()=>{const e=!0;D({isDeviceBookingOrder:e,isPreOrder:!1}),zo(!0),Ct.pushToInsiderEvent({event_name:"".concat(b.A.insiderConfig.eventName.reserveNow2,"_").concat(ye.device)});const t=Nt(Ke);t&&t.cartId&&Boolean(t.JWTtoken)||!1?(0,q.A)(z.HX.accountSubscriptionUrl):Co?(Tt($e,{pdpUrl:window.location.href},Xe),Qo(e)):(Tt($e,{pdpUrl:window.location.href},Xe),(0,q.A)(z.HX.tacAuthenticationUrl))},navigateToMarketingPage:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ct.pushToGTM((0,s.A)({event:bt.eventClicks,gaCategory:ft.ctaButton,gaAction:xt.findOutMore,gaLabel:"",gaFibreTag:Ll||At,gaFibreProjectType:El||At},t)),Dt(yo,e.tng.isTNGenv,{openMethod:"_self"})},setRoiFullName:kn,setRoiEmail:Bn,setRoiPhoneNumber:Mn,setInvalidRoiFullNameMsg:_n,setInvalidRoiEmailMsg:Wn,setInvalidRoiPhoneNumberMsg:qn,setIsRoiSuccess:Xn,submitRoiForm:()=>{if((()=>{let e="";return Dn||(_n(l.messages.mandatoryField),e=""===e?"roiFullName":e),En?y.D.validateEmail(En)||(Wn(l.messages.invalidEmailFormat),e=""===e?"roiEmail":e):(Wn(l.messages.mandatoryField),e=""===e?"roiEmail":e),wn?y.D.isMalaysianPhoneNumber(wn)||(qn(l.messages.mobileFieldInsufficientLength),e=""===e?"roiPhoneNumber":e):(qn(l.messages.mandatoryField),e=""===e?"roiPhoneNumber":e),e&&document.getElementById(e).focus(),""===e})())if(ge){var e;const t={gaHomeDeviceDevice:ye.deviceTitle,gaHomeDevicePlan:Fi.planName,gaHomeDeviceContract:nn.contractId};Ct.pushToGTM((0,s.A)({event:bt.eventClicks,gaCategory:ft.ecommerce,gaAction:xt.maxisHomeDeviceRegisterInterest,gaLabel:ht.submit},t));const a={orderType:ct.FIBRE_ZEROLUTION_ROI,name:Dn,mobileNumber:wn,email:En,ratePlan:Fi.planName,contract:nn.contractId,contractDuration:nn.contractTenure+1,model:ye.deviceTitle,gaSid:(null===(e=Nt("_ga"))||void 0===e?void 0:e.length)<=30?Nt("_ga"):null,dap:x.deviceAdvancePrice};re(a).then(e=>{(null===e||void 0===e?void 0:e.message)===b.A.apiSuccess&&(Ct.pushToGTM((0,s.A)({event:bt.formSubmission,gaCategory:ft.leads,gaAction:xt.formSubmission,gaLabel:"".concat(l.messages.maxisHomeDeviceGaLabel," - ").concat(Ci.id
1),gaID:(0,p.A)().replace(/-/g,"")},t)),Xn(!0))})}else if(Wl){var t,a;const e={orderType:ct.DEVICE_K2_PROMO,name:Dn,mobileNumber:wn,email:En,skuId:x.skuId,device:x.brandTitle,model:x.deviceTitle,capacity:x.storageType,colour:x.colour,gaSid:(null===(t=Nt("_ga"))||void 0===t?void 0:t.length)<=30?Nt("_ga"):null,ratePlan:Be.planName,contract:Be.contractId,contractDuration:null===(a=Be.contractDuration)||void 0===a?void 0:a.toString()};re(e).then(e=>{(null===e||void 0===e?void 0:e.message)===b.A.apiSuccess&&Xn(!0)})}},setShowRoiModal:Tn,setPreferredPickUpStoreDetails:ca,toggleDevicePlanComparisonModal:()=>{xo(e=>(0,s.A)((0,s.A)({},e),{},{show:!e.show}))},closeToolTipsModal:()=>{Va(e=>(0,s.A)((0,s.A)({},e),{},{show:!1}))},openToolTipsModal:function(){Va({show:!0,toolTipsDetails:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},preNavigateWithTnGAuthenthication:e=>{const t=()=>{tr(e)},a=e=>{e.showNonEkycModal&&oo(!0)},s=y.n.getValues(de,"authResponse.user",{});de.isTNGenv&&c().isEmpty(s)?R.B.login({TNGloginReduxFunc:ce,TNGloginCallBack:t,onTNGloginFail:a}):tr(e)},setShowTNGnonEkycModal:oo,toggleRegisterFibreInterestModal:()=>{pl(!ml)},setShowCoverageCheckResultBlock:bl,submitRoi:re,openPromotionModal:function(){an({show:!0,promotionDetails:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},closePromotionModal:()=>{an(e=>(0,s.A)((0,s.A)({},e),{},{show:!1}))},saveMcCodeCallback:e=>{const t={mcReferralCode:ee.mcReferralCode?e:void 0,mcStoreCode:ee.mcStoreCode?e:void 0};so(t),D((0,s.A)({},t))},revokeMessage:me}},e),{},{deviceDetails:ye,deviceTabDetails:Te,deviceInformation:Yt,selectedSkuDetails:ke,plansOptions:Me,selectedPlanDetails:Be,showConfirmationView:_e,cookiesState:We,groupPlans:Ot,currentMalaysiaTime:ea,preOrderEndDate:ia,upsellDevices:Ft,stockList:Vt,setStorePickup:B,isJPPOffer:xa,deviceBookingInventory:Kt,ciInfo:d,showNotifyMeModal:La,showDeviceReservationModal:Ra,fullName:Ja,email:Qa,phoneNumber:za,fullnameMsg:ss,invalidEmailMsg:os,invalidPhoneNumberMsg:ms,privacyTncDetails:ws,generalTncDetails:Ds,bookingTncDetails:Es,storeMasterList:Us,showThankYou:Ns,filteredPlans:Zs,listTargetRatePlanId:ri,offerName:ni,isSO1Valid:si,isDeviceEligibleSO1:pi,so1OfferDetails:V,showPriceGuideModal:Pi,setShowPriceGuideModal:Di,listBroadbandPlan:Si,isHomeDevices:ge,selectPurchasingOption:Ci,setSelectPurchasingOption:Ni,listPurchasingOption:fi,homeDeviceContract:nn,setHomeDeviceContract:on,hasCoverageCheckOptions:nl,fibreCoverageStatus:kl,isFibreComingSoon:Il,planList:Q,selectedBroadbandPlan:Fi,setSelectedBroadbandPlan:Ui,bundleDetails:Vi,eligibleFibrePlans:Kl,isHomeWifiEligible:$l,selectedBundle:Ki,setSelectedBundle:$i,homeDeviceMinimalPricing:dn,fibrePlanMinimalSpeed:vn,fibreCoverageType:wl,coverageCheckResult:Pl,bookingRefInfo:ne,eligibleHomeWifiPlans:zl,showNgbbFibreSpecialOfferInfoModal:el,setShowNgbbFibreSpecialOfferInfoModal:tl,isNgbbFibreSpecialOffer:Hl,isHomeDevicesUgradeMyFibre:ol,showRoiModal:Nn,roiFullName:Dn,roiEmail:En,roiPhoneNumber:wn,invalidRoiFullNameMsg:Un,invalidRoiEmailMsg:Gn,invalidRoiPhoneNumberMsg:Zn,isRoiSuccess:$n,isNewLineSignUpOnlyOffer:Wl,isAddDeviceToExistingFibre:rl,marketingPageUrl:yo,preferredPickUpStoreDetails:ra,comparisonDevicePlanModalMetaData:bo,showDevicePlanComparisonDisclaimerStatus:po,toolTipsModalMeta:Ha,showOutStandingBillModal:jo,showTNGnonEkycModal:no,isVdslAddress:Vl,coverageCheckFailWithRoi:_l,toggleRegisterConfirmation:()=>{ll(!il)},registerConfirmed:il,showRegisterFibreInterestModal:ml,showCoverageCheckResultBlock:gl,promotionModalMeta:tn,showTradeInModal:Io,setShowTradeInModal:So,listDevicePurchasingOption:wo,selectDevicePurchasingOption:Oo,setSelectDevicePurchasingOption:Eo,isDeviceWithOutrightFlow:Ro,isOutrightDevice:Bo,aemHomeDeviceContractList:fl,needCheckHomeDeviceContracts:Xl,deviceBackOrderInventory:to,isPwpOutrightFlow:fo,privateVoucherInfo:ho,isViaFibreDeviceFlow:Qs,allowedPlanIds:Yl,hasValidProjectType:Zl});return(0,N.jsx)(Ye,(0,s.A)({},(0,te.Ay)(ar)))}const Et={en:{fromLabel:"from",RM:"RM",RMprice:"RM {price}",pricePerMth:"RM {price} /month",priceWithMthPlaceholder:"RM{price}{month}",inStock:"in stock",selectColorLabel:"\u2013 Select Color",selectCapacityLabel:"\u2013 Select Capacity",stockLastsLabel:"While stocks last",inStockLabel:"IN STOCK",retailInStockLabel:"IN STOCK (IN STORE PICK UP ONLY)",onlineInStockLabel:"SHIPPING ONLY",onlineOutOfStock:"TEMPORARILY OUT OF STOCK",checkStockAtPartnerLabel:"Check stock at partner stores",overviewLabel:"OVERVIEW",specificationLabel:"SPECIFICATIONS",aboutLabel:"About",theDeviceLabel:"the device",theWearableLabel:"the wearable",overviewLabelID:"overviewLabel",specificationsLabel:"specificationsLabel",addToCartLabel:"ADD TO CART",outOfStockLabel:"OUT OF STOCK",signUpNowLabel:"SIGN UP NOW",cart_deviceTitle:"{brandTitle} {deviceTitle}",cart_selectedVariant:" \u2013 {colour} / {storageType}",cart_selectedVariantMobile:"{colour} / {storageType}",cart_selectedVariantWithoutStorage:" \u2013 {colour}",cart_selectedVariantWithoutStorageMobile:"{colour}",cart_recurringPriceFormat:"{amount}/month",cart_recurringPriceFormatEndingText:"/month",cart_monthlyPaymentLabel:"MONTHLY PAYMENT",cart_totalPaymentLabel:"TOTAL PAYMENT",cart_chooseAPlanLabel:"\u2013 Choose a plan \u2013",cart_chooseAContractLabel:"\u2013 Choose a Contract \u2013",cart_contractTitleLabel:"w/ {contractTitle}",plan_select:"SELECT",plan_selected:"SELECTED",plan_selectPlan:"\u2013 Choose your preferred device contract",only_one_contract_available:"\u2013 Only one contract available for this device",plan_selectPlanText:"\u2013 Choose a plan",devicePlanTitle:"Device plan",plan_title_part1:"Plans",plan_title_part2:"& contracts",only_one_plan_available:"\u2013 Only one plan available for this device",rm30_rebate_for_12_mth:"*Maxis Postpaid Customer can enjoy RM30 rebate for first 12 months.",account_overlay_tacLabel:"Verification",account_overlay_tacDescription:"Ready to buy?\nHelp us to identify you.\n\nJust fill your ID details and mobile number to proceed.",account_overlay_selectLineLabel:"Subscriptions\nlist",account_overlay_selectLineDescription:"Hi {name}.\nContract an existing or new line ",account_overlay_selectLineAdditionalInfo:"Looking for something else? For help click {here}",confirmationMessage:"You have pending order, do you want to continue with previous order?",confirmationOverlay_confirmButtonLabel:"Yes, take me to my cart.",confirmationOverlay_NoButtonLabel:"No, clear it.",tagName2F1:"2 PHONES WITH GREATER SAVINGS",description2F1Offer:"Enjoy greater savings on 2<sup>nd</sup> device with new share line sign up.",availInMaxisStore:"Only available in Maxis stores.",shareLineOffer:"SHARE LINE OFFER",tradeInOffer:"Trade-In Offer",shareLineOfferDescription:"<b>SHARE LINE OFFER:</b> New Share Line will be added to your account. Our agent will contact you for further details.",descriptionTradeDeal:"Get the {device} for RM999 when you trade-in with Maxis.",availInMaxisPartnerStore:"Only available in Maxis and partner stores.",learnMore:"Learn more",checkInStore:"CHECK IN STORE",registerInterest:"Register interest",registrationOfInterestOnly:"Registration of Interest Only",popUpModelTitle:"You have something in your cart!",PDPmetaTitle:"Shop {brand} {model} Device Plan & deals | Maxis Store",PDPmetaDesc:"Get the new {brand} {model} with high-speed internet, unlimited calls & SMS from {devicePriceLabel}. Buy now with Maxis {deviceCategory} device plan.",descriptionIsDisableCartContract:"{contract} option is only available in Maxis Stores.",isDisableCartContractLabel:"{contract} contract",preOrderEndLabel:"Pre-Order Ended",soldOut:"SOLD OUT",youMayAlsoLike:"You may also like",findOutMore:"FIND OUT MORE",findOutNow:"FIND OUT NOW",selectSize:"Select Size",NAShipping:"Not Available for Shipping",buyNowbuttonlabel:"BUY NOW",upsell_header_part1:"You may",upsell_header_part2:"also like",otherDevice:"Other Device Options",checkStockInStoreLabel:"CHECK STOCK IN STORE",checkStockModalTitle:"Check Stock In Store",checkStockModalDesc:"Select a preferred store for collection and continue to checkout online",checkStockSearchPlaceHolder:"Store name / Zipcode / Street name",noResultStockLabel:"We have no stocks currently available for the location selected. Please try another location.",continueLabel:"CONTINUE",openHoursLabel:"Opening Hours",jppDeviceTagLabel:"JARINGAN PRIHATIN RM{price}",jppContractDesc:"Pay upfront and enjoy biggest savings on your new smartphone. RM0 advance payment*. {period}-month contract applies. *Subject to eligibility, advance payment may be applicable.",jppTagOffer:"+RM120 REBATE",reserveNow:"Reserve Now",reservationOnly:"Reservation Only",ciTagLabel:"CORPORATE INDIVIDUAL OFFER",ciOffer1BillRebate98:"Monthly Fee Waiver (2 Months)",ciOffer1BillRebate128:"Bill Rebate (RM10 x 24 Months)",ciOffer1BillRebate158:"Bill Rebate (RM15 x 24 Months)",ciOffer1BillRebate188:"Bill Rebate (RM20 x 24 Months)",TNGnonEkycModalTitle:"Account Verification needed",TNGnonEkycModalMessage:"Please verify account to proceed.",TNGnonEkycModalPrimaryButtonText:"OKAY, PROCEED",TNGnonEkycModalSecondaryButtonText:"NO, THANK YOU",TNGfaqModalTitle:"Touch \u2018n Go eWallet \u2013 Maxis Seamless User Experience FAQ",TNGfaqModalMessageNormal:"Normal Device Contract",TNGfaqModalMessageZerolution:"Zerolution",notifyMeLabel:"Notify me when restocked",notifyMePreOrderLabel:"Notify me when launched",notifyMeModalTitle:"Restocking soon. Don\u2019t miss it!",notifyMePreOrderModalTitle:"Notify me when launched",notifyMeMessageFirst:"We\u2019re working with our supplier to get it restocked. You\u2019ll be notified once it is available.",notifyMePreOrderMessageFirst:"Please fill in the form below and we will notify you when the item is restocked.\nPrices are subject to change without notice.",notifyMeMessageSecond:"You may also {link}.",notifyMeLink:"check device availability in partner store",fullNameLabel:"Full Name (as per I/C or passport)",mobileNumberLabel:"Mobile Number",emailLabel:"Email Address",mandatoryField:"This field is mandatory",invali
1dEmailFormat:"Wrong email format, please re-enter",mobileFieldInsufficientLength:"Mobile Number should be 9 or 10 digits",submitLabel:"SUBMIT",policyMessage:"By clicking \u201cSubmit\u201d, you are agreeing to {maxisPolicyLink} and {tncLink}.",maxisPolicyLink:"Maxis\u2019 Privacy Policy",tncLink:"Terms & Conditions",browseOtherDevicesTitle:"Browse other available devices",browseOtherDevicesMessage:"While waiting for your preferred device, check out the other great offers!",letsGoLabel:"LET'S GO",thankYouTitle:"Thanks for your interest in",thankYouMessage:"We\u2019ll get in touch once the device is back in stock!",preOrderThankYouMessage:"We\u2019ll get in touch once the device is restocked!",mobileTitle:"Mobile",wearableTitle:"Wearable",rrPMessage:"RRP {rrpPrice} {saveDevicePrice}",maxisWatchPlanDescription:"\u2013 All Maxis watch comes with a Maxis watch plan",pairWith:"Pair with",mobilePlan:"a mobile plan",choosePreferredMaxisMobilePlanTitle:"\u2013 Choose your new mobile plan or your existing mobile plan",choosePreferredMaxisMobilePlanDescription:"Our Maxis watch plan needs to be paired with a Maxis Postpaid plan to enjoy the number mirroring functionality.",saveDevicePrice:"SAVE RM{price}",selectCaseSizeLabel:"\u2013 Select Case Size",hereLabel:"here",reserveMyDeviceLabel:"RESERVE MY DEVICE NOW",deviceReservationTitle:"Device Reservation",deviceReservationDescription1:"Sorry, your selected device is out of stock now . ",deviceReservationDescription2:"Don\u2019t worry! Once the stock is replenished, you\u2019ll be the first to get it when you make a reservation for the device.",deviceReservationDescription3:"Don\u2019t worry! Once the stock is replenished, you\u2019ll be the first to get it when you make a reservation now with a reservation fee of {bookingFees}. To proceed, please click on \u201cRESERVE MY DEVICE\u201d to reserve.",deviceReservationDescription4:"Subject to eligibility, advance payment may be applicable.",referLinkForInfoMessage:"Click for {faq}",faqLabel:"FAQ",tncLabel:"T&C",deviceReservationButtonLabel:"Reserve My Device",selectAPurchasingOptionLabel:"\u2013 Select a purchasing option",getANewFibreOptionLabel:"GET A NEW FIBRE",addDeviceToExistingMaxisFibreOptionLabel:"USE MY FIBRE",getDeviceAndUpgradeMyFibreOptionLabel:"GET DEVICE & UPGRADE MY FIBRE",checkPricingGuide:"\u2013 Price guide",priceGuideDe
1scription:"Check out the latest offers and enjoy lowest rates with our Zerolution instalments",priceGuideLabel:"Price Guide",gotItButtonLabel:"GOT IT",homeDevicePricePerMth:"{price}/month",zerolution36Label:"Zerolution 36M",zerolution24Label:"Zerolution 24M",homeDevicesContractFirstDescription:"Pay for your device on a {month}-month, zero interest instalment plan.",homeDevicesContractSecondDescription:"The most affordable way to own a device.",homeDevicesContractThirdDescription:"*Subject to eligibility, advance payment may be applicable.",fibrePlan_selectPlanText:"\u2013 Choose your preferred fibre plan",fibrePlan_selectExistingFibrePlanText:"\u2013 Choose your existing fibre plan",homeDeviceTitle:"Home Device",broadbandTitle:"Broadband",selectContractTypeLabel:"\u2013 Select contract type \u2013",selectFibrePlanLabel:"\u2013 Select fibre plan \u2013",selectBundleLabel:"\u2013 Select bundle \u2013",checkCoverageTitle:"CHECK COVERAGE",searchTitle:"SEARCH",coverageCheckTitle:"\u2014 Let\u2019s check if your area is fibre covered",locationEnableHint:"Enable location access or search for your installation address. {learnMore}.",unableToFindYourAddress:"Unable to find your address? {link}.",whatsappUs:"WhatsApp us",fibreComingSoonTitle:"Maxis Fibre is coming to you soon!",fibreComingSoonPopUpSubTitle:"Get early access to fibre upon availability. You will be contacted for the upgrade at the earliest availability.",findOutMoreTitle:"FIND OUT MORE",yourAreaIsCoveredFor:"Your area is covered for Maxis Home Fibre",fibrePlanToHave:"\u2014 Select a fibre plan",coverageCheckFailed:"Unfortunately, your area isn\u2019t covered for Maxis Home Fibre",coverageCheckFailedForMobile:"Your area is not covered for Maxis Fibre",proceedWith4GWifiPlan:"\u2014 You may still proceed with Maxis Home WiFi",fibreCoverageHardstopTitle:"Your area is not covered for Maxis Fibre {speed} {unit} or above.",fibreCoverageHardstopSubTitle:"Your area must be covered for Maxis Fibre {speed} {unit} or above in order for you to get this device. You may browse other devices if your area is not covered.",seeOtherDevicesTitle:"SEE OTHER DEVICES",fibreTitle:"Maxis Home Fibre",fibreSpeed:"{speed} Mbps",wifiTitle:"Maxis Home",priceMonthly:"RM {price}{monthlyLabel}",monthlyLabel:"/month",selectBundleDeviceTitle:"This Maxis Home WiFi plan comes with a 5G router and mesh",selectBundleDeviceDescription:"Enjoy great connectivity and multitasking with our 5G router and mesh",addThisLabel:"ADD THIS",addedLabel:"ADDED",removeLabel:"REMOVE",outOfStockButtonLabel:"OUT OF STOCK",viewPricesLable:"View prices",selectedDeviceDetailLabel:"\u2013 Selected device details",changeSkuLabel:"Changes of model, colour and capacity is not allowed once the reservation is confirmed",offerAppliedLabel:"Offer applied",zerolutionRebateDescription:"Zerolution discount RM {rebateAmount} x {rebateDuration} months",so1OfferDescription:"Offer up to device price or maximum discount",rrpPrice:"RM{price}",okayButtonLabel:"OKAY",browseOtherDevicesLabel:"BROWSE OTHER DEVICES",noAvailableContractFirstMessage:"Sorry, there are no available contracts & plans",noAvailableContractSecondMessage:"on this device for you. Please select other",noAvailableContractLastMessage:"device to proceed.",ngbbSpecialOfferTitle:"Your area is covered!\u200b There\u2019s also an exclusive deal just for you.",ngbbSpecialOfferSubTitle:"Enjoy extra savings on your superfast home internet plan when you sign up with Maxis today.",browseDevicesButtonLabel:"BROWSE DEVICES",selectFibrePlanToUpgradeDescription:"Choose a fibre plan that you want upgrade to and add/ renew with this home devices in order to proceed.",registerYourInterestPopUpTitle:"Register your interest",registerYourInterestPopUpSubTitle:"We will call you within 48 business hours to complete the registration process",registerHomeDeviceYourInterestSubTitle:"Leave us your details and our agent will contact you within 24 hours",registerCheckboxContent:"I understand that this device promotion is only eligible for new line sign-ups",youHaveSelected:"YOU\u2019VE SELECTED",leaveUsYourDetailsLabel:"Leave us your details",fullNameInputLabel:"Full name (
1as per IC or Passport)",fullNameInputPlaceholder:"Your full name as per I/C or passport",emailInputLabel:"Email address",emailInputPlaceholder:"e.g [email protected]",mobileNumberInputLabel:"Mobile number",thankYouForYourInterestInLabel:"Thank you for your interest in",weWillBeInTouchWithYouSoon:"We\u2019ll be in touch with you soon!",phoneZerolutionUpsellTitle:"Why not check out our latest devices too?",phoneZerolutionUpsellSubTitle:"Get your latest mobile devices on Zerolution today!",phoneZerolutionUpsellBenefit1:"Easy to own with affordable monthly instalments",phoneZerolutionUpsellBenefit2:"Free 3 months device protection for phones and tablets",phoneZerolutionUpsellBenefit3:"Unlimited data for you and family with Maxis Postpaid and Maxis Home Fibre",fibreUpsellTitle:"Why not check out Maxis Home Fibre too?",fibreUpsellSubTitle:"Superfast fibre internet with whole home coverage",fibreUpsellBenefit1:"Free WiFi 6 certified router",fibreUpsellBenefit2:"Maxis MaxWiFi by Maxperts",browseFibreButtonLabel:"BROWSE FIBRE",zerolution36MonthsName:"Zerolution 3
16-months",zerolution24MonthsName:"Zerolution 24-months",selectExistingMaxisFibreDescription:"Choose a fibre plan that you want upgrade to and add/ renew with this home devices in order to proceed. For existing Maxis Fibre customer, please click {here} for Free Speed Upgrade.",chatNowLabel:"Chat now",seoPricePerMth:"RM{price}/month",selectedPreferredPickUpStore:"Selected {storeName}",planUpgradeComparisonModalTitle:"About the all new Maxis Postpaid Rate Plans",planUpgradeComparisonDescriptions1:"We are making Maxis Postpaid plans even better with even more data. Customers can now enjoy 5G internet starting from {date}.",planUpgradeComparisonDescriptions2:"Customers can only contract or recontract a device with the all new Maxis 5G postpaid plans. Below are the benefits you can get upon sign-up:",planUpgradeTableFooterMessage:"Enjoy 5G on our all new postpaid plans",ratePlan:"Rate plan",price:"Price",internetData:"Internet data",deviceMobilePlanComparisonLearnMore:"Learn all about the new Maxis Postpaid plans and get the best value when you sign-up.",planTooltipCtaButtonText:"GOT IT",maxisHomeDeviceGaLabel:"Maxis Home Device",freeLabel:"FREE",payNow:"Pay now",backToHome:"Back to home",mini_cart_expand_label:"EXPAND",mini_cart_collapse_label:"COLLAPSE",coverageCheckPopUpTitle:"\u2014 Let\u2019s check if your area is fibre covered",coverageCheckerSubTitle:"Already a Maxis Home Fibre customer? Click {here} to upgrade your plan to enjoy great add-ons.",getAccessToMaxisFibre:"Get access to Maxis fibre now",zerolutionContractWithTenure:"Zerolution Contract {tenure} months",includedLabel:"INCLUDED",moreInformation:"More Information",termsAndConditions:"Terms and Conditions",disclaimerForHomeDeviceStocksAvailability:"Delivery lead-time is subject to stock availability upon order confirmation",tradeInDescription:"Find out the trade-in value of your old device now!",checkNow:"CHECK NOW",deviceWithContractLabel:"BUY DEVICE WITH PLAN",deviceOnlyLabel:"BUY DEVICE ONLY",toPayNowLabel:"TO PAY NOW",zerolutionContractName:"Zerolution {period}-months",priceGuideZerolutionContractFullName:"Zerolution Contract {period}-Months",priceGuideZerolutionContractShortName:"Zerolution {period}-month",deliveryOnly:"DELIVERY ONLY",selectMyFibreLabel:"SELECT MY FIBRE",existingFibre_title_part1:"Device",existingFibre_title_part2:"Contracts"},ms:{}};var Bt=a(67773);class Rt extends i.Component{render(){return(0,N.jsx)(Ot,(0,s.A)({},this.props))}}const Ft=(0,l.Ng)(e=>{const t=y.n.getCookie(b.A.maxisCookiesName)||{},a=y.n.getValues(e,"cart.cartId")||t.cartId;return{i18nLabels:Et,productAvailability:y.n.getValues(e,"offlineInventory.productAvailability",[]),cartDetails:e.cart,customerDetails:y.n.getValues(e,"customer.customerPersonalDetails",{}),devicePlansInfo:y.n.getValues(e,"deviceDetails.devicePlansInfo",{}),preOrderConfig:e.applicationServices,breDetails:y.n.getValues(e,"customer.breCheckDetails",{}),ciInfo:e.ciInfo,bookingRefInfo:e.bookingRefInfo||{},tng:e.tng||{},cartId:a,so1OfferDetails:e.so1OfferDetails||{},message:e.message,planList:e.planList||{},customerIdentificationDetails:y.n.getValues(e,"customer.customerIdentificationDetails",{})}},e=>(e({type:Bt.BI,payload:b.A.pageName.pdp}),{getDeviceDetails:(t,a,s)=>e((0,n.rH)(t,a,s)),getDeviceOverviewSpec:(t,a,s)=>e((0,n.RE)(t,a,s)),getStockList:function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2?arguments[2]:void 0;return e((0,n.FF)(t,{isRealTime:!1,storeCode:a,stockType:s}))},getAemConfig:()=>e((0,n.qt)()),getPreOrderStockList:(t,a)=>e((0,n._Z)(t,{isRealTimeFlag:!1,saveData:a})),getPlansOptions:()=>e((0,n.hk)()),clearCustomer:()=>e((0,n.k3)()),updateCartRedux:t=>e((0,n.Bw)(t)),clearCart:()=>e((0,n.iL)()),getCartDetails:t=>e((0,n.gB)(t)),revokeMessage:()=>e((0,n.Ct)()),getDevicePlans:t=>e((0,n.lP)(t)),getAccessoryPlans:t=>e((0,n.du)(t)),updateLoggedInIdentificationInfo:t=>e((0,n.RH)(t)),getUpsellDeviceList:(t,a,s)=>e((0,n.kF)(t,a,s)),getMaxisStoreList:()=>e((0,n.cx)()),setStorePickup:t=>e((0,n.Cw)(t)),updateCiDapWaiveFlag:t=>e({type:Bt.Jq,payload:t}),loginTNG:t=>e((0,n.DT)(t)),getPrivacyTnc:t=>e((0,n.Ks)(t)),getGeneralTnc:t=>e((0,n.gP)(t)),submitNotifyMeForm:t=>e((0,n.mO)(t)),getCustomerList:(t,a)=>e((0,n.Wz)(t,a)),breCheck:(t,a)=>e((0,n.QD)(t,a)),getUpSellFreeGiftDetails:(t,a,s)=>e((0,n.c3)(t,a,s)),createCart:t=>e((0,n.zA)(t)),clearOrderRedux:()=>e((0,n.cV)()),setMessage:t=>e((0,n.yH)(t)),getBookingTnc:t=>e((0,n.$P)(t)),getHomeDevicesInfo:(t,a)=>e((0,n.Zf)(t,a)),getFibrePlanOptions:t=>e((0,n._q)(t)),getMSPlanCatalog:t=>e((0,n.T9)(t)),getListBundleDetails:t=>e((0,n.VT)(t)),getFibreDeviceDetailsFromUrl:t=>e((0,n.am)(t)),checkBookingRef:t=>e((0,n.V1)(t)),updateSO1Details:t=>e((0,n.b5)(t)),submitRoi:t=>e((0,n.uO)(t)),updateW2CUIConfig:t=>e({type:Bt.pN,payload:t}),getCustomerListV5:t=>e((0,n.t1)(t))}))((0,Fe.A)(Rt))}}]); 2//# sourceMappingURL=5693.0f050139.chunk.js.map
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.