1"use strict";(self.webpackChunkcommerce_1=self.webpackChunkcommerce_1||[]).push([[3085],{96937(e,s,o){var n=o(9370),r=o(98915),t=o(38746),a=o(38678);const i=t.A.mdiAuthQueryStrings;t.A.faceIdQueryStrings;o.d(s,["Fw",0,e=>{const s=n.stringify({responseType:i.responseType.code,clientId:i.clientId.maxis,scope:i.scope,brand:i.brand,redirectUrl:window.location.origin+r.HX.webToCommerceUriCollection.mdiLoginUrl,logintype:e?i.loginType.encourage:i.loginType.enforce,banner:t.A.enableEnforceLoginBanner}),o=[t.A.apiConfig.mdiAuthEndPoint,s].join("?");window.open(o,"_self")},"Y3",0,()=>{const e=n.stringify({responseType:i.responseType.code,clientId:i.clientId.maxis,scope:i.scope,brand:i.brand,redirectUrl:window.location.origin+r.HX.didAuthUrl,prompt:i.prompt}),s=[t.A.apiConfig.mdiAuthEndPoint,e].join("?");window.sessionStorage.setItem(a.Q1.preDidUrl,window.location.toString()),window.open(s,"_self")},"bI",0,function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some(e=>Array.isArray(e.subscriptions)&&e.subscriptions.length>0)},"t9",0,()=>{const e=n.stringify({responseType:i.responseType.code,clientId:i.clientId.maxis,scope:i.scope,brand:i.brand,redirectUrl:window.location.origin+r.HX.webToCommerceUriCollection.mdiLoginUrl,prompt:i.prompt}),s=[t.A.apiConfig.mdiAuthEndPoint,e].join("?");window.open(s,"_self")},"vW",0,e=>{const s=Object.values(t.A.maxisStorePrefix),o="^(?:".concat(s.join("|"),")\\d+_[^\\s]+$$");return new RegExp(o).test(e)}])},63085(e,s,o){o.r(s),o.d(s,{default:()=>R});var n=o(89379),r=o(5544),t=o(65043),a=o(91688),i=o(92646),l=o(60223),c=o(53536),f=o.n(c),d=o(36645),m=o(91479),p=o(24448),u=o(13318),g=o(67628),x=o(10121),h=o(73588),b=o(99897),w=o(96937),y=o(38746),A=o(87280),j=o(70579);const C={en:{ELP_loginPrompt:"<b>Already using Maxis?</b> Log in for faster and smoother checkout.",ELP_loginPromptCta:"Log in"},ms:{}},v=(0,g.A)(function(e){let s=e.intl,o=e.i18nLabels,r=e.show,t=e.setShowLoginPrompt,a=e.screenName;return r?(0,j.jsx)("div",{className:"encourage-login-prompt",children:(0,j.jsxs)("div",{className:"d-flex align-items-center justify-content-between container encourage-login-prompt-container",children:[(0,j.jsxs)("div",{className:"d-flex align-items-center justify-content-between full-width",children:[(0,j.jsx)("p",{className:"fs-12 fs-md-16 maxis-black mb-0",children:(0,j.jsx)(x.n3,(0,n.A)({},o.ELP_loginPrompt))}),(0,j.jsx)(h.$n,{reactButtonClass:"cta-button cursor-pointer full-width encourage-login-prompt-cta",buttonClass:"radius-8 ls-150 h-auto primary text-uppercase mb-0",buttonLabel:s.messages.ELP_loginPromptCta,onClick:()=>{const e=a===A.A.pageNames.plp?y.A.analyticsConfig.gaLabels.w2cPLPLoginPrompt:y.A.analyticsConfig.gaLabels.w2cPDPLoginPrompt;m.n.analyticsUtility.triggerGAForEventClicks(e,y.A.analyticsConfig.gaActions.goToLogin,y.A.analyticsConfig.gaCategories.login),(0,w.Fw)(!0)}})]}),(0,j.jsx)(h.$n,{fullWidth:!1,reactButtonClass:"cursor-pointer encourage-login-prompt-close d-flex align-items-center justify-content-center",buttonClass:"mb-0 border-0 p-0 h-auto d-flex align-items-center justify-content-center",buttonLabel:(0,j.jsx)(b.Brl,{className:"text-black",width:12,height:12}),onClick:()=>{t(!1)}})]})}):null});function I(e){return(0,j.jsx)(v,(0,n.A)((0,n.A)({},e),{},{i18nLabels:C}))}var N=o(59496),L=o(92382),O=o(58387),S=o(47562),P=o(60578);const k=e=>{let s=e.onClick,o=e.currentSlide,n=e.slideCount;return(0,j.jsx)("div",{onClick:o===n-2?void 0:s,className:(0,O.A)("cursor-pointer arrow-item arrow-item__next",o===n-2&&"custom-arrow__disable"),children:(0,j.jsx)(P.Qp,{})})},M=e=>{let s=e.onClick,o=e.currentSlide;return(0,j.jsx)("div",{onClick:0===o?void 0:s,className:(0,O.A)("cursor-pointer arrow-item arrow-item__pre",0===o&&"custom-arrow__disable"),children:(0,j.jsx)(P.nk,{})})},_=e=>{let s=e.showModal,o=e.onHide,a=e.mdiUserInfo,i=e.i18nLabels,l=e.intl,c=e.getPersonalOfferRedirectUrl,d=e.offerList,p=e.updateClickedStatus;const u=m.n.useWindowSize(),g=(0,r.A)(u,1)[0]>=1014,b=(0,t.useMemo)(()=>{const e=[],s=[];return f().isEmpty(d)||d.forEach(o=>{const r={tagName:o.campaignOfferInfo.offerLabelName,desc:l.formatMessage(i.MyOffer_myOfferDesc,{phoneNumber:m.n.formatMsisdnWithSpaces(o.serviceID)}),buttonLabel:l.messages.MyOffer_btnLabel,shopImageUrl:o.campaignOfferInfo.shopImageUrl,offerDescription:o.campaignOfferInfo.offerDescription,rebateDescription:o.campaignOfferInfo.rebateDescription,offerContext:o.campaignOfferInfo.offerContext};o.offerType===y.A.personalOfferConfig.offerTypes.atl&&e.push((0,n.A)((0,n.A)({},o),{},{offerInfoView:r})),o.offerType===y.A.personalOfferConfig.offerTypes.so1&&s.push((0,n.A)((0,n.A)({},o),{},{offerInfoView:r}))}),[e,s]},[d]),w=(0,r.A)(b,2),A=w[0],C=w[1],v=e=>{const s=(0,n.A)({},e);delete s.offerInfoView;const o=e.offerType===y.A.personalOfferConfig.offerTypes.so1,r=o&&e.targetSys===y.A.so1TargetSys.pega;m.n.analyticsUtility.triggerGAForEventClicks(e.offerInfoView.buttonLabel,e.offerInfoView.offerContext,y.A.analyticsConfig.gaCategories.myOffer);const t=(0,n.A)((0,n.A)({},y.A.personalOfferConfig.redirectUrlDefaultQueryParams),{},{nickname:a.name,accountNumber:a.account,msisdn:a.msisdn,offerCategory:e.campaignOfferInfo.offerCategory,uuid:a.gaAppUuid,urlType:e.offerType,offerDetails:e.campaignOfferInfo.offerContext});if(o){const s=m.n.getValues(e,"so1Payload.campaignOfferInfo.offerCategory","");t.urlType="SO1_".concat(s),t.offerDetails=m.n.getValues(e,"campaignOfferInfo.rebateDescription","")}if(r){const o={serviceID:a.msisdn,coID:m.n.getValues(e,"campaignOfferInfo.coID",""),offerStatus:y.A.personalOfferConfig.clickedStatus};return void p({idType:y.A.customerAccountListIdTypes.msisdn,msisdn:a.msisdn},o).then(e=>{e.status===y.A.apiSuccess&&c(t,s).then(e=>{e.url&&window.open(e.url,"_self")})})}c(t,s).then(e=>{e.url&&window.open(e.url,"_self")})};return(0,j.jsx)(S.A,{show:s,onHide:o,containerClassName:"my-offer-modal-container",modalOverlayClassName:"my-offer-modal-overlay",closeBtnWrapper:"close-cta",children:(0,j.jsx)("div",{className:"offer-wrapper",children:(0,j.jsxs)("div",{className:"container",children:[(0,j.jsxs)("div",{className:"flex-center lh-normal flex-column",children:[(0,j.jsx)("div",{className:"maxis-semiBold fs-16 text-black",children:(0,j.jsx)(x.sA,(0,n.A)((0,n.A)({},i.MyOffer_greetingLabel),{},{values:{name:a.name}}))}),(0,j.jsx)("div",{className:"maxis-bold fs-24 fs-md-32 fs-lg-48 text-black",children:l.messages.MyOffer_myOfferTitle})]}),!f().isEmpty(C)&&(0,j.jsx)("div",{className:"so1-offer-list flex-center",children:C.map((e,s)=>(0,j.jsxs)("div",{className:"so1-offer-card",children:[(0,j.jsx)("div",{className:"offer-img-wrapper",children:(0,j.jsx)("img",{className:"offer-img",src:e.offerInfoView.shopImageUrl,alt:"device"})}),(0,j.jsxs)("div",{className:"offer-content lh-normal",children:[(0,j.jsx)("div",{className:"offer-tag fs-12 maxis-bold ls-100 text-uppercase",children:e.offerInfoView.tagName}),(0,j.jsx)("div",{className:"fs-sm-14 fs-16 fs-lg-20 maxis-semiBold ls-normal lh-normal text-brown-grey mt-4px",children:e.offerInfoView.offerDescription}),(0,j.jsx)("div",{className:"offer-title fs-sm-16 fs-20 fs-lg-24 maxis-bold ls-normal text-black mt-4px",children:e.offerInfoView.rebateDescription}),(0,j.jsx)("div",{className:"fs-sm-12 fs-14 maxis ls-normal text-brown-grey mt-4px",children:e.offerInfoView.desc}),(0,j.jsx)(h.$n,{onClick:()=>v(e),fullWidth:!1,buttonLabel:e.offerInfoView.buttonLabel,buttonClass:"offer-cta primary maxis-bold button-hover-anim text-uppercase mb-0"})]})]},"so1-offer-".concat(s+1)))}),!f().isEmpty(A)&&(0,j.jsxs)("div",{className:"atl-offer-list",children:[(0,j.jsx)("hr",{className:"mt-3 mb-0"}),(0,j.jsx)(L.A,{slidesToShow:2,infinite:!1,dots:!g,arrows:g,nextArrow:(0,j.jsx)(k,{}),prevArrow:(0,j.jsx)(M,{}),customPaging:()=>(0,j.jsx)("div",{className:"custom-dot"}),children:A.map(e=>(0,j.jsx)("div",{children:(0,j.jsxs)("div",{className:"atl-offer-card",children:[(0,j.jsx)("div",{className:"offer-img-wrapper",children:(0,j.jsx)("img",{className:"offer-img",src:e.offerInfoView.shopImageUrl,alt:"device"})}),(0,j.jsxs)("div",{className:"offer-content",children:[(0,j.jsxs)("div",{className:"offer-top d-flex flex-column lh-normal",children:[(0,j.jsx)("div",{className:"offer-tag fs-12 maxis-bold ls-100 text-uppercase",children:e.offerInfoView.tagName}),(0,j.jsx)("div",{className:"offer-title fs-sm-14 fs-20 fs-lg-24 maxis-bold ls-normal text-black mt-4px",children:e.offerInfoView.offerContext})]}),(0,j.jsxs)("div",{className:"offer-bottom",children:[(0,j.jsx)("div",{className:"offer-decs fs-sm-12 fs-16 maxis ls-normal text-brown-grey lh-normal",children:e.offerInfoView.desc}),(0,j.jsx)(h.$n,{onClick:()=>v(e),fullWidth:!1,buttonLabel:e.offerInfoView.buttonLabel,buttonClass:"offer-cta primary maxis-bold button-hover-anim text-uppercase mb-0 mt-0 d-none d-lg-block",reactButtonClass:"d-flex align-items-end"}),(0,j.jsx)("div",{className:"d-block d-lg-none mt-auto",children:(0,j.jsx)(P.Qp,{})})]})]})]})},"alt-offer-".concat(e+1)))})]})]})})})};o.dn(_);const T={en:{MyOffer_greetingLabel:"Hey {name},",MyOffer_myOfferTitle:"Personalized only for you",MyOffer_btnLabel:"GET THIS",MyOffer_myOfferDesc:"exclusively for +{phoneNumber}"},ms:{}},U=(0,g.A)(_);function E(e){return(0,j.jsx)(U,(0,n.A)((0,n.A)({},e),{},{i18nLabels:T}))}var V=o(92514),D=o(57769),B=o(75995);const R=(0,u.A)(e=>{const s=e.footerRedux,o=e.screenName,c=e.mdiUserInfo,u=e.myOfferInfo,g=e.ciInfo,x=e.setShowMyOfferModal,h=e.getPersonalOfferRedirectUrl,b=e.updateCartRedux,C=e.updateClickedStatus,v=e.queryParams,L=void 0===v?{}
1:v,O=e.w2cUIConfig,S=e.cart,P=L.mcReferralCode,k=L.mcStoreCode,M=d.A.location,_=(0,t.useState)(!0),T=(0,r.A)(_,2),U=T[0],R=T[1],W=(0,V.A)().updateSearchParams,H=(0,t.useState)(!1),Q=(0,r.A)(H,2),$=Q[0],F=Q[1],G=(0,t.useState)(!1),X=(0,r.A)(G,2),q=X[0],z=X[1],Y=(0,t.useState)(!1),J=(0,r.A)(Y,2),K=J[0],Z=J[1],ee=P||k,se=[P,k].some(Boolean);(0,t.useEffect)(()=>{const e=o===A.A.pageNames.pdp,s=o===A.A.pageNames.plp,n=!f().isEmpty(g);R([!c.isMdiLoggedIn,e||s,!n,!y.A.disableMdiLogin,!O.isProductDetailsPageLoading,!S.isThankYouPrivateVoucher].every(Boolean)),F(se&&(e||s)),z(n&&(e||s))},[o,c,g,L,O]),(0,t.useEffect)(()=>{e.updateW2CUIConfig({enableGlobalMessage:!1})},[]),(0,t.useEffect)(()=>{const e=document.getElementById("footerDiv");e&&(e.style.margin="0px")},[s]);const oe=(0,n.A)((0,n.A)({},e),{},{showLoginPrompt:U,setShowLoginPrompt:R,setShowMcCodeModal:Z});delete oe.childrenRoutes;const ne=e=>{const s=(0,w.vW)(e),o={mcReferralCode:s?void 0:e,mcStoreCode:s?e:void 0};W(o),b((0,n.A)({},o))};return(0,j.jsxs)("div",{className:"web-to-commerce",children:[(0,j.jsx)(p.A,{}),(0,j.jsx)(D.A,{show:q,ciInfo:g}),(0,j.jsx)(N.A,{show:$,isEditMode:!0,currentMcCode:P||k,saveMcCodeCallback:ne,isWebView:!0,setShowMcCodeModal:Z}),(0,j.jsx)(I,{show:U,setShowLoginPrompt:R,screenName:o}),(0,j.jsx)(i.A,{component:null,children:(0,j.jsx)(l.A,{timeout:500,classNames:"fade-page-transition",children:(0,j.jsx)(t.Suspense,{fallback:null,children:(0,j.jsx)(a.dO,{location:M,children:(e.childrenRoutes||[]).map(e=>(0,j.jsx)(a.qh,{exact:!0,path:e.path,render:s=>{const o=(0,n.A)((0,n.A)({},oe),m.n.getRouteComponentProps(e,s,{language:oe.language}));return(0,j.jsx)(e.component,(0,n.A)({},o))}},"web-to-commerce-children-".concat(M.path)))})})},M.pathname)}),(0,j.jsx)(E,{offerList:u.myOfferList,showModal:u.showMyOfferModal,onHide:()=>x(!1),getPersonalOfferRedirectUrl:h,mdiUserInfo:c,updateClickedStatus:C}),(0,j.jsx)(B.A,{isEditMode:!0,isWebView:!0,showModal:K,saveMcCodeCallback:ne,currentMcCode:ee,setShowMcCodeModal:Z})]})})},57769(e,s,o){o.d(s,{A:()=>f});var n=o(89379),r=(o(65043),o(67628)),t=o(99897),a=o(70579);const i=e=>{let s=e.intl,o=e.show,n=void 0!==o&&o,r=e.ciInfo;return n?(0,a.jsx)("div",{className:"corporate-ci-info d-flex bg-clear-white",children:(0,a.jsx)("div",{className:"container d-flex justify-content-start justify-content-md-end",children:(0,a.jsxs)("div",{className:"ci-content",children:[(0,a.jsx)(t.c6W,{}),(0,a.jsxs)("div",{className:"ci-text",children:[(0,a.jsx)("span",{className:"maxis-semiBold fs-md-14 fs-12 text-black",children:r.companyName}),(0,a.jsxs)("span",{className:"maxis-semiBold fs-md-14 fs-12 text-black",children:[s.messages.CII_brn," ",r.brn]})]})]})})}):null};o.dn(i);const l={en:{CII_brn:"BRN:"},ms:{}},c=(0,r.A)(i);function f(e){return(0,a.jsx)(c,(0,n.A)((0,n.A)({},e),{},{i18nLabels:l}))}},92514(e,s,o){o.d(s,{A:()=>r});var n=o(91688);function r(){const e=(0,n.W6)();return{updateSearchParams:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new URLSearchParams(window.location.search);for(const e in s)s[e]?o.set(e,s[e]):o.delete(e);e.replace({search:o.toString()})}}}}}]); 2//# sourceMappingURL=3085.5c62e266.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.