1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83862],{1173:e=>{e.exports={root:"styles_root__X6HVy","root--s":"styles_root--s__wVcF8","root--m":"styles_root--m__xuCrm","root--l":"styles_root--l__9BRc_","root--brandColour01":"styles_root--brandColour01__oap5o","root--disabled":"styles_root--disabled__NqY12","root--critical":"styles_root--critical__rhBvP","root--grey01":"styles_root--grey01__e_6lS","root--grey02":"styles_root--grey02__PcH6I","root--success":"styles_root--success__8CZsl","root--warning":"styles_root--warning__cDwGn"}},13959:e=>{e.exports={insuranceCoverSelector:"InsuranceCoverSelector_insuranceCoverSelector__3IxYj",insuranceCoverSelector__box:"InsuranceCoverSelector_insuranceCoverSelector__box__2hboz","insuranceCoverSelector__box--active":"InsuranceCoverSelector_insuranceCoverSelector__box--active__tA1k1",insuranceCoverSelector__input:"InsuranceCoverSelector_insuranceCoverSelector__input__ALtbq",insuranceCoverSelector__icon:"InsuranceCoverSelector_insuranceCoverSelector__icon__XC1Gv",insuranceCoverSelector__top:"InsuranceCoverSelector_insuranceCoverSelector__top__BlCg_",insuranceCoverSelector__paymentType:"InsuranceCoverSelector_insuranceCoverSelector__paymentType__ULSB4",insuranceCoverSelector__divider:"InsuranceCoverSelector_insuranceCoverSelector__divider__snu1J"}},22501:e=>{e.exports={sectionHeader:"styles_sectionHeader__v0rbm",sectionHeader__badge:"styles_sectionHeader__badge__17ZVp",sectionHeader__disabled:"styles_sectionHeader__disabled__vVBl5"}},27608:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var r=t(6796),i=t(85966);function s(){let e=(0,i._)(["\n query RelatedMultiProductOfferingSummaries(\n $productBySeoInput: [ProductBySeoInput!]!\n ) {\n relatedMultiProductOfferingSummaries(\n productBySeoInput: $productBySeoInput\n ) {\n productDetails {\n productSeoId\n }\n relatedProductOfferingSummaries {\n productSummary {\n code\n typeOfProduct\n name\n productOrigin\n images {\n formats {\n mimeType\n format\n url\n }\n altText\n }\n labels {\n type\n text\n __typename\n }\n ... on SubscriptionProductSummary {\n baseSubscriptionSeoId\n baseSubscriptionName\n specifications {\n name\n icon\n values {\n name\n unit\n values\n __typename\n }\n __typename\n }\n }\n ... on MarketplaceDeviceSummary {\n baseDeviceSeoId\n excess
1Fee {\n __typename\n name\n value\n }\n __typename\n }\n __typename\n }\n prices {\n __typename\n priceId\n payTodayPrice\n wasPayTodayPrice\n payMonthlyPrice\n wasPayMonthlyPrice\n totalPriceForSubscriptionPeriod\n subscriptionTermInMonths\n billingPolicy {\n __typename\n subscriptionTerm\n recurringPrice\n billingFrequency\n trial {\n duration\n term\n }\n }\n }\n productOfferingVariants {\n productSummary {\n code\n typeOfProduct\n name\n productOrigin\n images {\n formats {\n mimeType\n format\n url\n }\n altText\n }\n labels {\n type\n text\n }\n ... on SubscriptionProductSummary {\n baseSubscriptionSeoId\n specifications {\n name\n icon\n values {\n name\n unit\n values\n __typename\n }\n __typename\n }\n __typename\n }\n ... on GenericDeviceSummary {\n baseDeviceSeoId\n isDefaultDeviceVariant\n dimensions {\n key\n value\n text\n }\n features {\n name\n iconType\n assistiveText\n }\n manufacturer\n }\n }\n prices {\n __typename\n priceId\n payTodayPrice\n payMonthlyPrice\n wasPayTodayPrice\n wasPayMonthlyPrice\n billingPolicy {\n recurringPrice\n billingFrequency\n trial {\n duration\n term\n __typename\n }\n __typename\n }\n }\n __typename\n }\n __typename\n }\n }\n }\n"]);return s=function(){return e},e}let l=(0,t(11186).J1)(s()),a=e=>{let{products:n,skip:t=!1}=e,i=t||!n||0===n.length;return(0,r.I)(l,{skip:i,variables:{productBySeoInput:n}})}},34786:e=>{e.exports={mtcContent:"styles_mtcContent__C7o47"}},36735:e=>{e.exports={insurancePanel__insurancePanelHeader:"styles_insurancePanel__insurancePanelHeader__zjBWn",insurancePanel__insuranceHeaderIcon:"styles_insurancePanel__insuranceHeaderIcon__Hcf93",insurancePanel__insuranceProductInfo:"styles_insurancePanel__insuranceProductInfo__2fEK1",insurancePanel__stcInfoIcon:"styles_insurancePanel__stcInfoIcon__m71fB",insurancePanel__insuranceProductImage:"styles_insurancePanel__insuranceProductImage__f1YJ5",insurancePanel__featuresSubdued:"styles_insurancePanel__featuresSubdued__9_r_4"}},37435:e=>{e.exports={insuranceCoverSelector:"InsuranceCoverOption_insuranceCoverSelector___FFV5",insuranceCoverSelector__box:"InsuranceCoverOption_insuranceCoverSelector__box__4rwGS","insuranceCoverSelector__box--active":"InsuranceCoverOption_insuranceCoverSelector__box--active__JpNFC",insuranceCoverSelector__input:"InsuranceCoverOption_insuranceCoverSelector__input__DQo0D",insuranceCoverSelector__icon:"InsuranceCoverOption_insuranceCoverSelector__icon__GGiak",insuranceCoverSelector__top:"InsuranceCoverOption_insuranceCoverSelector__top__z51bS",insuranceCoverSelector__top__priceContainer:"InsuranceCoverOption_insuranceCoverSelector__top__priceContainer__1IPXe",insuranceCoverSelector__paymentType:"InsuranceCoverOption_insuranceCoverSelector__paymentType__GdeGy",insuranceCoverSelector__divider:"InsuranceCoverOption_insuranceCoverSelector__divider__uf4fi",alignText:"InsuranceCoverOption_alignText__dk5Zi",insuranceCoverOptionsWrapper:"InsuranceCoverOption_insuranceCoverOptionsWrapper__86oad"}},42704:(e,n,t)=>{"use strict";t.d(n,{A:()=>v});var r=t(55729),i=t(45959),s=t(46250),l=t(31332),a=t(83331),o=t(9426),u=t(27608),c=t(51319),d=t(52953),_=t(38771),m=t(4675);let v=(0,r.forwardRef)((e,n)=>{var t;let{finalProducts:v,from:p}=e,{code:h,baseDeviceSeoId:y}=(0,a.G)(),{isAuthenticated:x}=(0,i.Us)(),{isBundlesInsuranceModalOpen:P,setHighestPriceWBWProduct:f,setHighestPriceWBWProductRelatedOfferingsData:I,setHighestPriceWBWProductRelatedOfferingsLoading:g,setHighestPriceWBWProductRelatedOfferingsError:C,setHasRelatedDataLoaded:S,hasRelatedDataLoaded:b,isWBWExtrasAddToBasket:M,setWbwMtcClashNotificationData:j,setWbwUserHasMTC:D,setMultiProductInsuranceData:T}=(0,s.Z)(),{isWBWAtbBtn:E}=(0,l.t)(),A=(0,r.useRef)(!1),O=(0,r.useRef)(!1),N=(0,r.useRef)(!1);(0,r.useImperativeHandle)(n,()=>({setHasFetchedRef:e=>{A.current=e},setHasRelatedDataRef:e=>{O.current=e}}));let{multiItemsAddInsurance:k,insuranceClashNotification:B}=(0,d.W)(["multiItemsAddInsurance","insuranceClashNotification"]),F=(0,r.useMemo)(()=>!k&&(null==v?void 0:v.length)?v.reduce((e,n)=>{var t,r;return(null!=(t=n.price)?t:0)>(null!=(r=e.price)?r:0)?n:e},v[0]):null,[v,k]),H=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=H.current;(null==e?void 0:e.code)!==(null==F?void 0:F.code)&&(H.current=F,f(F))},[F,f]);let w=(0,r.useMemo)(()=>{var e;return{page:0,pageSize:20,dimensions:(null==F||null==(e=F.dimensions)?void 0:e.map(e=>({key:e.key,value:e.value})))||[]}},[null==F?void 0:F.dimensions]),R=(0,r.useMemo)(()=>!!k||(!E||p!==_.xe)&&(!M||p!==_.Tc)||(A.current=!0,(null==F?void 0:F.code)===h&&(null==F?void 0:F.seoId)===y),[F,h,E,M,y,p,k]),z=!x||R,{personalisedOffering:Y,loading:G}=(0,c.d)({placement:_.r_.MARKETPLACE_PDP,sections:[_.UP.MTC_NOTIFICATION_SECTION],dimensions:(null==F||null==(t=F.dimensions)?void 0:t.map(e=>({key:e.key,value:e.value})))||[],productSeoId:null==F?void 0:F.seoId,skip:z}),L=(0,r.useMemo)(()=>(null==Y?void 0:Y.length)>0?(0,m.iK)(Y):{},[Y]),V=(0,r.useMemo)(()=>(0,m.Is)(L),[L]),W=(0,r.useMemo)(()=>(0,m.vm)(L),[L]),{data:U,loading:X,error:K}=(0,o.A)({productSeoId:null==F?void 0:F.seoId,productSearch:w,skip:R});(0,r.useEffect)(()=>{N.current!==X&&(N.current=X,g(X))},[X,g]),(0,r.useEffect)(()=>
1{if(A.current){let e=!R&&!X&&!O.current,n=!z&&!G;(x?e&&n:e)&&(O.current=!0,A.current=!1,S(!0),I(U),C(K||null),j(W),D(V))}},[b,U,K,X,E,M,S,I,C,g,R,z,G,x,j,W,D,V]),(0,r.useEffect)(()=>{P&&(A.current=!1,O.current=!1)},[P]);let q=(0,r.useMemo)(()=>k&&(null==v?void 0:v.length)?v.filter(e=>null==e?void 0:e.seoId).map(e=>{var n;return{productSeoId:e.seoId,dimensions:(null==(n=e.dimensions)?void 0:n.map(e=>({key:e.key,value:e.value})))||[]}}):[],[k,v]),$=(0,r.useMemo)(()=>!k||0===q.length||(!E||p!==_.xe)&&(!M||p!==_.Tc),[k,q.length,E,M,p]),{data:Z,error:J}=(0,u.A)({products:q,skip:$});return(0,r.useEffect)(()=>{if(!k)return;if(J)return void S(!0);if(!(null==Z?void 0:Z.relatedMultiProductOfferingSummaries))return;let e=(0,m.Rb)(x,V,B),n=(0,m._L)(Z.relatedMultiProductOfferingSummaries,e),t={};null==v||v.forEach(e=>{var n;(null==e?void 0:e.seoId)&&(null==e||null==(n=e.excessFee)?void 0:n.length)&&(t[e.seoId]=e.excessFee)}),T({...n,perProductExcessFeeMap:t}),S(!0)},[k,Z,J,x,V,B,T,S]),null})},46452:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var r=t(6029),i=t(50212),s=t(1173),l=t.n(s);let a=e=>{let{width:n="s",color:t="grey01",testId:s}=e,a=(0,i.A)(l().root,[l()["root--".concat(n)],l()["root--".concat(t)]]);return(0,r.jsx)("hr",{"aria-hidden":!0,"data-testid":s,className:a})}},51319:(e,n,t)=>{"use strict";t.d(n,{d:()=>a});var r=t(6796),i=t(85966);function s(){let e=(0,i._)(["\n query GetPersonalisedOffering($personalisedSeoInput: PersonalisedSeoInput!) {\n getPersonalisedOffering(personalisedSeoInput: $personalisedSeoInput) {\n interactionId\n section\n actions {\n description\n title\n graphics {\n id\n url\n }\n ctas {\n title\n url\n type\n }\n }\n }\n }\n"]);return s=function(){return e},e}let l=(0,t(11186).J1)(s()),a=e=>{var n;let{placement:t,sections:i,skip:s=!1,productSeoId:a,dimensions:o=[]}=e,{data:u,loading:c,error:d}=(0,r.I)(l,{variables:{personalisedSeoInput:{placement:t,sections:i,productSeoId:a,dimensions:o}},skip:s});return{personalisedOffering:null!=(n=null==u?void 0:u.getPersonalisedOffering)?n:[],loading:c,error:d}}},53030:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>D});var r=t(6029),i=t(60469),s=t(22333),l=t(65161),a=t(49273),o=t(40511),u=t(33936),c=t(55729),d=t(3030),_=t(62641),m=t(83769),v=t(46250),p=t(82022);let h={CANCEL:"Cancel",CONFIRM_AGE:"Confirm age"};var y=function(e){return e.DAY="Day",e.MONTH="Month",e.YEAR="Year",e}({}),x=function(e){return e.INVALID_DATE="This must be a valid date, for example 31 05 1990",e.INCOMPLETE_DATE="Enter your date of birth, for example 31 05 1990",e.FUTURE_DATE="Date of birth must be in the past",e.UNDER_AGE="You must be over 18 to buy insurance",e.OVER_AGED="Please enter a valid birth date",e}({});let P={DEFAULT:{title:"Sorry, we couldn't update the date of birth.",subTitle:"Try to save it again or come back later."}},f={INTERSTITIAL_OPEN:"DOB - insurance insterstitial open",INTERSTITIAL_SUBMITTED:"DOB - insurance insterstitial submitted"},I=(e,n,t)=>{let r=new Date,i=r.getFullYear()-t;return r.getMonth()>n-1||r.getMonth()===n-1&&r.getDate()>=e?i:i-1},g=(e,n,t)=>I(e,n,t)>=18,C=(e,n,t)=>I(e,n,t)>120,S=(e,n,t)=>Number.isInteger(e)&&e>=n&&e<=t,b=(e,n,t,r)=>{let i=e.trim(),s=n.trim(),l=t.trim(),a=Number(i),o=Number(s),u=Number(l),c=new Date().getFullYear(),d=r[y.DAY]&&r[y.MONTH]&&r[y.YEAR],_=(e=>{let{dayNum:n,monthNum:t,yearNum:r,trimmedDay:i,trimmedMonth:s,touchedFields:l,minAllowedYear:a,maxAllowedYear:o}=e;return l[y.DAY]&&n&&(!/^\d{2}$/.test(i)||!S(n,1,31))||l[y.MONTH]&&t&&(!/^\d{2}$/.test(s)||!S(t,1,12))?x.INVALID_DATE:((e,n,t,r,i,s)=>{if(r[y.YEAR]&&t){if(t>new Date().getFullYear())return x.FUTURE_DATE;if(t>s)return x.UNDER_AGE;if(t<i)return x.OVER_AGED;if(!r[y.DAY]||!r[y.MONTH])return"";if(!g(e,n,t))return x.UNDER_AGE;if(C(e,n,t))return x.OVER_AGED}return null})(n,t,r,l,a,o)})({dayNum:a,monthNum:o,yearNum:u,trimmedDay:i,trimmedMonth:s,touchedFields:r,minAllowedYear:c-120,maxAllowedYear:c-18});return _?_:d?i&&s&&l?new Date(u,o-1,a)>new Date?x.FUTURE_DATE:((e,n,t)=>{if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(t)||e<1||n<1||n>12||t<1e3||t>9999)return!0;let r=new Date(t,n-1,e);return r.getFullYear()!==t||r.getMonth()!==n-1||r.getDate()!==e}
1)(a,o,u)?x.INVALID_DATE:g(a,o,u)?C(a,o,u)?x.OVER_AGED:"":x.UNDER_AGE:x.INCOMPLETE_DATE:""};var M=t(72163),j=t.n(M);let D=e=>{let{showErrorModal:n,setDOBActionResult:t}=e,[x]=(0,p.A)(!1),{saveDOB:I,isLoading:g,hasError:C,actionResult:S}=(0,d.CP)(),[M,D]=(0,c.useState)(!1),{send:T}=(0,_.useAnalytics)(),{toggleDOBModal:E,isDOBModalOpen:A=!1}=(0,v.Z)(),[O,N]=(0,c.useState)({[y.DAY]:"",[y.MONTH]:"",[y.YEAR]:""}),[k,B]=(0,c.useState)(""),[F,H]=(0,c.useState)({[y.DAY]:!1,[y.MONTH]:!1,[y.YEAR]:!1}),w=(0,c.useRef)(null),R=(0,c.useCallback)(e=>n=>{let{value:t}=n.target,r={...O,[e]:t};N(r),H(n=>({...n,[e]:!0})),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{B(b(r[y.DAY],r[y.MONTH],r[y.YEAR],{...F,[e]:!0}))},800)},[O,F]),z=(0,c.useCallback)(()=>{E(),N({[y.DAY]:"",[y.MONTH]:"",[y.YEAR]:""}),H({[y.DAY]:!1,[y.MONTH]:!1,[y.YEAR]:!1}),B(""),D(!1)},[E]);return(0,c.useEffect)(()=>{A&&T().journeyActionCompletedEvent().payload({journey:{name:m.j_,action:m.Y1,step:f.INTERSTITIAL_OPEN}})},[A,T]),(0,c.useEffect)(()=>{M&&!g&&(C?(D(!1),t(P.DEFAULT),z(),n(!0)):z())},[null==S?void 0:S.actionErrorCode,C,z,g,M,t,n]),(0,r.jsxs)(x,{"aria-label":"Date of Birth modal",onClose:E,isOpen:A,width:"auto","data-testid":"DOB-modal-popup",children:[(0,r.jsx)("div",{className:j().DOBModalHeader,children:(0,r.jsx)(x.Header,{title:"Add your date of birth",level:"2",subtitle:(0,r.jsxs)("span",{children:["You must be 18 or over to buy insurance."," ",(0,r.jsx)("br",{}),"We will also add this to your EE profile."]}),trailingActions:[(0,r.jsx)(x.CloseButton,{},"close-icon")]})}),(0,r.jsx)(x.Content,{children:(0,r.jsxs)("div",{className:j().DOBModalContent,children:[(0,r.jsx)("div",{className:j().DOBModalContent__subtitle,children:(0,r.jsx)(i.EY,{size:"m",styleVariant:"subdued",children:"For example 31 05 1990"})}),(0,r.jsx)(s.X,{size:"xxxs"}),(0,r.jsxs)("div",{className:j().DOBModalContent__form,children:[(0,r.jsx)("div",{className:j().DOBModalContent__form__content,children:Object.values(y).map(e=>(0,r.jsx)("div",{className:j().DOBModalContent__form__content__input,children:(0,r.jsx)(l.U,{hasError:!!k,id:"input-".concat(e),isRequired:!0,"data-testid":"input-".concat(e),value:O[e],onChange:R(e),label:{text:e,weight:"normal"},maxLength:e!==y.YEAR?2:4,inputMode:"numeric",type:"number"},e)},e))}),(0,r.jsx)(s.X,{size:"xxs"}),k&&(0,r.jsxs)("div",{className:j().DOBModalContent__form__error,children:[(0,r.jsx)(a.I,{source:u.default,size:"s",styleVariant:"critical"}),(0,r.jsx)(i.EY,{size:"m",styleVariant:"critical",children:k})]}),(0,r.jsx)(s.X,{size:"xs"}),(0,r.jsxs)("div",{className:j().DOBModalContent__form__actions,children:[(0,r.jsx)(o.$,{elementType:"button","data-testid":"DOB-cancel-btn","data-analytics-link":h.CANCEL,styleVariant:"secondary",onClick:z,children:h.CANCEL}),(0,r.jsx)(o.$,{elementType:"button","data-testid":"DOB-submit-btn","data-analytics-link":h.CONFIRM_AGE,styleVariant:"primary",isDisabled:function(){let e,n,t;return g||!!k||(e=O[y.DAY],n=O[y.MONTH],t=O[y.YEAR],!e||!n||!t)}(),onClick:()=>{H({[y.DAY]:!0,[y.MONTH]:!0,[y.YEAR]:!0});let e=b(O[y.DAY],O[y.MONTH],O[y.YEAR],F);if(!e){D(!0),I("".concat(O[y.YEAR],"-").concat(O[y.MONTH],"-").concat(O[y.DAY])),T().journeyActionCompletedEvent().payload({journey:{name:m.j_,action:m.c3,step:f.INTERSTITIAL_SUBMITTED}});return}B(e)},children:h.CONFIRM_AGE})]})]})]})})]})}},54420:(e,n,t)=>{"use strict";t.d(n,{M:()=>a});var r=t(6029),i=t(45959),s=t(40511),l=t(87863);let a=e=>{let{styleVariant:n="primary",label:t="Log in",isFullWidth:a=!1,disabled:o=!1}=e,{loginRequest:u}=(0,i.Us)();return(0,r.jsx)(s.$,{elementType:"button",isDisabled:o,"data-testid":"login-button",size:"m",styleVariant:n,onClick:()=>{u({scopes:l.F.scopes})},isFullWidth:a,"data-analytics-link":t,children:t})}},61398:(e,n,t)=>{"use strict";t.d(n,{F:()=>i});var r=t(71024);let i=t.n(r)()(()=>Promise.all([t.e(3786),t.e(7681),t.e(37453),t.e(15584),t.e(46463),t.e(65352),t.e(37119),t.e(2817),t.e(9313),t.e(13962),t.e(19690),t.e(10172)]).then(t.bind(t,19690)),{loadableGenerated:{webpack:()=>[19690]},ssr:!1})},72163:e=>{e.exports={DOBModalHeader:"styles_DOBModalHeader__l_hur",DOBModalContent__title:"styles_DOBModalContent__title__voq86",DOBModalContent__form__content:"styles_DOBModalContent__form__content___YKj_",DOBModalContent__form__error:"styles_DOBModalContent__form__error__cT8_R",DOBModalContent__form__actions:"styles_DOBModalContent__form__actions__K7r7Q"}},80512:e=>{e.exports={yellowSurface:"styles_yellowSurface__3DdMP"}}
1,80703:e=>{e.exports={airtimeNotification_wrapper:"styles_airtimeNotification_wrapper__3HAAu",airtimeNotification_link:"styles_airtimeNotification_link__15ujb"}},83862:(e,n,t)=>{"use strict";t.d(n,{j4:()=>z,jO:()=>Y.j,pc:()=>X,Xu:()=>S,Og:()=>Q,Nb:()=>ei,pj:()=>G.p,$e:()=>eo.$,y3:()=>eP,YU:()=>ef,C3:()=>eS,p1:()=>F,X3:()=>eD}),t(53030);var r=t(6029),i=t(55729),s=t(99460),l=t(37173),a=t(61398),o=t(31332),u=t(52953),c=t(46250),d=t(4675),_=t(11553),m=t(49273),v=t(60469),p=t(2817),h=t(39585),y=t(22333),x=t(9313),P=t(10340),f=t(62729),I=t(4585),g=t(99931),C=t.n(g);let S=e=>{let{whichDevicesAreCovered:n}=e,t=(0,x.dv)(),{isDevicesCoveredModalOpen:s=!1,toggleDevicesCoveredModal:l}=(0,c.Z)(),{isSmallMobile:a}=(0,I.A)(!0),o=t===P.I5.desktopLg||t===P.I5.desktop,{heading:u,subHeading:d,deviceList:g=[]}=n||{},S=(0,i.useCallback)(e=>(0,r.jsx)(_.F,{onClick:()=>{},leadingSemantics:!0,"data-testid":"tile-".concat(null==e?void 0:e.id),leading:(0,r.jsx)(m.I,{size:"m",source:(0,r.jsx)(f.$,{iconName:null==e?void 0:e.icon}),styleVariant:"primary"}),title:(0,r.jsx)("div",{className:C().title,children:(0,r.jsx)(v.EY,{size:"l",children:null==e?void 0:e.title})}),subtitle:(0,r.jsx)("div",{className:C().description,children:(0,r.jsx)(v.EY,{size:"m",styleVariant:"subdued",children:null==e?void 0:e.description})})},e.id),[]);return(null==g?void 0:g.length)?(0,r.jsx)(p._,{"aria-label":u,"data-testid":"which-devices-are-covered-drawer",isOpen:s,onClose:l,isDismissible:!0,width:o?"m":"l",position:a?"bottom":"right",kind:a?"fullScreen":void 0,children:(0,r.jsxs)("div",{className:C().modalContainer,children:[(0,r.jsx)(p._.Header,{title:u,subtitle:d,trailingActions:[(0,r.jsx)(p._.CloseButton,{},"close-icon")]}),(0,r.jsxs)(p._.Content,{children:[(0,r.jsx)("div",{className:C().tileGroupContainer,children:(0,r.jsx)(h.K,{dividerStyle:"none",emphasis:"low",children:null==g?void 0:g.map(e=>S(e))})}),(0,r.jsx)(y.X,{size:"xl"})]})]})}):null},b=(e,n,t,r,i)=>r?e:i?n:t,M=i.memo(e=>{let{hasMGIProduct:n,mgiProducts:t,hasMGIPlusSGIProduct:_,mgiPlusSgiProducts:m,hasSGIProduct:v,sgiProducts:p,hasBundlesProductInsurance:h,addItems:y,excessFee:x,simpleOfferingData:P,hasOnlySTCProduct:f,hasOnlyMTCProduct:I,hasSTCAndMTCProducts:g,stcAndMtcProducts:C,stcProducts:M,mtcProducts:j,insuredProductCode:D,highestPriceProductExcessFee:T,isWBWBasket:E,addAddToPlanItem:A,onAemError:O}=e,{CONTENT_ID_EE_TECH_COVER:N}=l.a,{whichDevicesAreCovered:k,error:B}=(0,s.I)(N),F=i.useRef(!1),{highestPriceWBWProduct:H,highestPriceWBWSgiProducts:w,highestPriceWBWMgiProducts:R,highestPriceWBWMgiPlusSgiProducts:z,hasHighestPriceWBWSgiProduct:Y,hasHighestPriceWBWMgiProduct:G,hasHighestPriceWBWMgiPlusSgiProduct:L,hasHighestWBWInsuranceProduct:V,isWBWExtrasAddToBasket:W,isATBFromMultiSkuBundle:U,highestPriceBundleProduct:X,hasHighestBundleInsuranceProduct:K,hasHighestValueBundleSgiProduct:q,hasHighestValueBundleMgiProduct:$,hasHighestValueBundleMgiPlusSgiProduct:Z,highestValueBundleSgiProducts:J,highestValueBundleMgiProducts:Q,highestValueBundleMgiPlusSgiProducts:ee,multiProductInsuranceData:en}=(0,c.Z)(),{isWBWAtbBtn:et}=(0,o.t)(),{multiItemsAddInsurance:er}=(0,u.W)(["multiItemsAddInsurance"]);i.useEffect(()=>{B&&O&&!F.current&&(F.current=!0,O(B))},[B,O]);let ei=er&&(et||W)&&((null==en?void 0:en.hasMultiProductStc)||(null==en?void 0:en.hasMultiProductMtc)),{hasMultiProductInsurance:es,multiProductHasSGI:el,multiProductHasMGI:ea,multiProductHasSGIPlusMGI:eo}=((e,n)=>{let t=!!e&&!!((null==n?void 0:n.hasMultiProductStc)||(null==n?void 0:n.hasMultiProductMtc));return{hasMultiProductInsurance:t,multiProductHasSGI:t&&!!(null==n?void 0:n.hasMultiProductStc)&&!(null==n?void 0:n.hasMultiProductMtc),multiProductHasMGI:t&&!!(null==n?void 0:n.hasMultiProductMtc)&&!(null==n?void 0:n.hasMultiProductStc),multiProductHasSGIPlusMGI:t&&!!(null==n?void 0:n.hasMultiProductStc)&&!!(null==n?void 0:n.hasMultiProductMtc)}})(!!er,en),eu=!er&&(et||W)&&V,ec=U&&K;return n||_||v||h||V||et||W||q||$||Z||ei||es?(0,r.jsxs)(r.Fragment,{children:[(e=>{let{hasMGIProduct:n,hasSGIProduct:t,hasMGIPlusSGIProduct:i,mgiPlusSgiProducts:s,sgiProducts:l,mgiProducts:o,simpleOffer
1ingData:u,addItems:c,insuredProductCode:_,excessFee:m,isWBWBasket:v,addAddToPlanItem:p}=e;return n||t||i?(0,r.jsx)(a.F,{relatedProductOfferingSummaryList:(0,d.WK)(null!=i&&i,null!=t&&t,null!=s?s:[],null!=l?l:[],null!=o?o:[]),simpleOfferingData:u,addItems:c,productCode:_,hasOnlySTCProduct:t,hasOnlyMTCProduct:n,hasSTCAndMTCProducts:i,highestPriceProductExcessFee:m,fromCEPdp:!0,isWBWBasket:v,addAddToPlanItem:p}):null})({hasMGIProduct:er?!!ea:b(G,$,n,eu,ec),hasSGIProduct:er?!!el:b(Y,q,v,eu,ec),hasMGIPlusSGIProduct:er?!!eo:b(L,Z,_,eu,ec),mgiPlusSgiProducts:b(z,ee,null!=m?m:[],eu,ec),sgiProducts:b(w,J,p,eu,ec),mgiProducts:b(R,Q,null!=t?t:[],eu,ec),simpleOfferingData:P,addItems:y,insuredProductCode:b(null==H?void 0:H.code,(null==X?void 0:X.__typename)==="MarketplaceDevice"?X.code:void 0,null!=D?D:"",eu,ec),excessFee:b(null==H?void 0:H.excessFee,(null==X?void 0:X.__typename)==="MarketplaceDevice"?X.excessFee:void 0,x,eu,ec),isWBWBasket:E,addAddToPlanItem:A}),(e=>{let{hasBundlesProductInsurance:n,insuredProductCode:t,hasSTCAndMTCProducts:i,hasOnlySTCProduct:s,stcAndMtcProducts:l,stcProducts:o,mtcProducts:u,simpleOffer
1ingData:c,addItems:_,hasOnlyMTCProduct:m,highestPriceProductExcessFee:v}=e;return n&&t&&d.WK?(0,r.jsx)(a.F,{relatedProductOfferingSummaryList:(0,d.WK)(null!=i&&i,null!=s&&s,null!=l?l:[],null!=o?o:[],null!=u?u:[]),simpleOfferingData:c,addItems:_,productCode:t,hasOnlySTCProduct:s,hasOnlyMTCProduct:m,hasSTCAndMTCProducts:i,highestPriceProductExcessFee:v}):null})({hasBundlesProductInsurance:h,insuredProductCode:D,hasSTCAndMTCProducts:g,hasOnlySTCProduct:f,stcAndMtcProducts:C,stcProducts:M,mtcProducts:j,simpleOfferingData:P,addItems:y,hasOnlyMTCProduct:I,highestPriceProductExcessFee:T}),(0,r.jsx)(S,{whichDevicesAreCovered:k})]}):null});var j=t(9426),D=t(27608),T=t(45959),E=t(51319),A=t(38771),O=t(80322),N=t(71024);let k=t.n(N)()(()=>Promise.resolve().then(t.bind(t,53030)),{loadableGenerated:{webpack:()=>[53030]},ssr:!1});var B=t(38804);let F=e=>{let{baseDeviceSeoId:n,selectedDimensions:t,isBundleProduct:s,isLoggedIn:l,productData:a,personalisedOffering:o,mainProductCode:_,addItems:m,addAddToPlanItem:v,excessFee:p,isWBWBasket:h=!1,showErrorModal:y,setDOBActionResult:x,children:P}=e,{hasSGIProduct:f,hasMGIProduct:I,mgiProducts:g,hasMGIPlusSGIProduct:C,mgiPlusSgiProducts:S,sgiProducts:b,hasOnlySTCProduct:N,hasOnlyMTCProduct:F,hasSTCAndMTCProducts:H,stcProducts:w,mtcProducts:R,stcAndMtcProducts:z,insuredProductCode:Y,highestPriceProductExcessFee:G,hasBundleProductInsurance:L,handleAemError:V,isDOBModalOpen:W,setIsDOBModalOpen:U,userWithMtc:X,hasMainProductInsurance:K,mtcClashNotificationData:q,bundleInsuranceEligibilityError:$,sgiMgiProductEligibilityError:Z,aemError:J}=(0,B.J)({baseDeviceSeoId:n,selectedDimensions:t,isBundleProduct:s,isLoggedIn:l,productData:a,personalisedOffering:o,mainProductCode:_}),{highestPriceBundleProduct:Q,hasHighestBundleInsuranceProduct:ee,hasHighestValueBundleSgiProduct:en,hasHighestValueBundleMgiProduct:et,hasHighestValueBundleMgiPlusSgiProduct:er,highestValueBundleSgiProducts:ei,highestValueBundleMgiProducts:es,highestValueBundleMgiPlusSgiProducts:el,userWithBundleMtc:ea,bundleMtcClashNotificationData:eo,multiProductInsuranceData:eu}=(e=>{let{isAuthenticated:n}=(0,T.Us)(),{multiItemsAddInsurance:t,insuranceClashNotification:r}=(0,u.W)(["multiItemsAddInsurance","insuranceClashNotification"]),{productData:s,mainProductCode:l="",baseDeviceSeoId:a="",selectedDimensions:o=[]}=e,c=(0,i.useMemo)(()=>t?(null==s?void 0:s.bundledProducts)&&s.bundledProducts.length>0?s.bundledProducts.filter(e=>{var n;return(null==e||null==(n=e.product)?void 0:n.__typename)==="MarketplaceDevice"&&e.product.baseDeviceSeoId}).map(e=>{var n;let t=e.product;return{productSeoId:t.baseDeviceSeoId,dimensions:(null==(n=t.dimensions)?void 0:n.map(e=>({key:e.key,value:e.value})))||[]}}):a?[{productSeoId:a,dimensions:(null==o?void 0:o.map(e=>({key:e.key,value:e.value})))||[]}]:[]:[],[t,null==s?void 0:s.bundledProducts,a,o]),_=(0,i.useCallback)(e=>{var n,t;if(!(null==e?void 0:e.prices))return 0;let r=e.prices.find(e=>(null==e?void 0:e.__typename)==="SubsidyPrice");return r?(null!=(n=r.payTodayPrice)?n:0)-(null!=(t=r.totalDiscountAmount)?t:0):0},[]),m=(0,i.useMemo)(()=>{let e=null==s?void 0:s.bundledProducts;if(!e||0===e.length)return null;let n=[...e].sort((e,n)=>{let t=_(e);return _(n)-t})[0];return(null==n?void 0:n.product)&&"MarketplaceDevice"===n.product.__typename?n.product:null},[s,_]),{bundleProductCode:v,bundleProductSeoId:p,bundleProductDimensions:h}=(0,i.useMemo)(()=>{var e,n,t;return(null==m?void 0:m.__typename)!=="MarketplaceDevice"?{bundleProductCode:"",bundleProductSeoId:"",bundleProductDimensions:[]}:{bundleProductCode:null!=(e=null==m?void 0:m.code)?e:"",bundleProductSeoId:null!=(n=null==m?void 0:m.baseDeviceSeoId)?n:"",bundleProductDimensions:null!=(t=null==m?void 0:m.dimensions)?t:[]}},[m]),y=(0,i.useMemo)(()=>({page:0,pageSize:20,dimensions:(null==h?void 0:h.map(e=>({key:e.key,value:e.value})))||[]}),[h]),x=!!t||v===l&&p===a,{data:P}=(0,j.A)({productSeoId:p,productSearch:y,skip:x}),{data:f}=(0,D.A)({products:c,skip:!t||0===c.length}),I=!n||x,{personalisedOffering:g}=(0,E.d)({placement:A.r_.MARKETPLACE_PDP,sections:[A.UP.MTC_NOTIFICATION_SECTION],dimensions:(null==h?void 0:h.map(e=>({key:e.key,value:e.value})))||[],productSeoId:p,skip:I}),C=(0,i.useMemo)(()=>(null==g?void 0:g.length)>0?(0,d.iK)(g):{},[g]),S=(0,i.useMemo)(()=>(0,d.Is)(C),[C]),b=(0,i.useMemo)(()=>(0,d.vm)(C),[C]),{hasHighestPriceWBWSgiProduct:M,hasHighestPriceWBWMgiProduct:N,hasHighestPriceWBWMgiPlusSgiProduct:k,hasHighestWBWInsuranceProduct:B,highestPriceWBWSgiProducts:F,highestPriceWBWMgiProducts:H,isMainProductHighest:w}
1=(0,O.G)({mainProductCode:l,baseDeviceSeoId:a,highestPriceWBWProduct:{code:v,seoId:p},highestPriceWBWProductRelatedOfferingsData:P,wbwUserHasMTC:!1}),R=(0,i.useMemo)(()=>{if(!t)return{};let e=null==s?void 0:s.bundledProducts;if(!e||0===e.length)return{};let n={};return e.forEach(e=>{let t=null==e?void 0:e.product;(null==t?void 0:t.__typename)==="MarketplaceDevice"&&t.baseDeviceSeoId&&Array.isArray(t.excessFee)&&t.excessFee.length>0&&(n[t.baseDeviceSeoId]=t.excessFee)}),n},[t,null==s?void 0:s.bundledProducts]),z=(0,i.useMemo)(()=>{if(!t||!(null==f?void 0:f.relatedMultiProductOfferingSummaries))return{perProductStcMap:{},perProductExcessFeeMap:R,allMtcProducts:[],hasMultiProductStc:!1,hasMultiProductMtc:!1,allProductsHaveStc:!1,allProductsHaveMtc:!1};let e=(0,d.Rb)(n,S,r);return{...(0,d._L)(f.relatedMultiProductOfferingSummaries,e),perProductExcessFeeMap:R}},[t,f,n,S,r,R]);return{highestPriceBundleProduct:m,hasHighestValueBundleSgiProduct:M,hasHighestValueBundleMgiProduct:N,hasHighestValueBundleMgiPlusSgiProduct:k,hasHighestBundleInsuranceProduct:B,highestValueBundleSgiProducts:F,highestValueBundleMgiProducts:H,highestValueBundleMgiPlusSgiProducts:[...null!=F?F:[],...null!=H?H:[]],isMainProductHighestInBundle:w,userWithBundleMtc:S,bundleMtcClashNotificationData:b,multiProductInsuranceData:z}})({productData:a,mainProductCode:_,baseDeviceSeoId:n,selectedDimensions:t}),{multiItemsAddInsurance:ec}=(0,u.W)(["multiItemsAddInsurance"]),ed=ec?!!(null==eu?void 0:eu.hasMultiProductStc)&&!(null==eu?void 0:eu.hasMultiProductMtc):f,e_=ec?!!(null==eu?void 0:eu.hasMultiProductMtc)&&!(null==eu?void 0:eu.hasMultiProductStc):I,em=ec?!!(null==eu?void 0:eu.hasMultiProductStc)&&!!(null==eu?void 0:eu.hasMultiProductMtc):C,ev=ec?!!(null==eu?void 0:eu.hasMultiProductStc)||!!(null==eu?void 0:eu.hasMultiProductMtc):K,ep=ec?!!(null==eu?void 0:eu.hasMultiProductStc)||!!(null==eu?void 0:eu.hasMultiProductMtc):L||ee,eh=i.useMemo(()=>({hasSGIProduct:ed,hasMGIProduct:e_,setIsDOBModalOpen:U,isDOBModalOpen:W,hasMGIPlusSGIProduct:em,userWithMtc:X,mainProductCode:_||"",baseDeviceSeoId:n||"",hasMainProductInsurance:ev,mtcClashNotificationData:q,highestPriceBundleProduct:Q,hasHighestBundleInsuranceProduct:ee,hasHighestValueBundleSgiProduct:en,hasHighestValueBundleMgiProduct:et,hasHighestValueBundleMgiPlusSgiProduct:er,highestValueBundleSgiProducts:ei,highestValueBundleMgiProducts:es,highestValueBundleMgiPlusSgiProducts:el,userWithBundleMtc:ea,bundleMtcClashNotificationData:eo,multiProductInsuranceData:eu}),[em,e_,ed,W,U,X,_,n,ev,q,Q,ee,en,et,er,ei,es,el,ea,eo,eu]),ey=i.useMemo(()=>({hasBundleProductInsurance:ep,hasOnlyMTCProduct:F,bundleInsuranceEligibilityError:$,sgiMgiProductEligibilityError:Z,aemError:J,setIsDOBModalOpen:U,DOBErrorCode:A.sx}),[ep,F,$,Z,J,U]);return(0,r.jsxs)(c.o,{insurance:eh,children:[P(ey),(0,r.jsx)(M,{hasMGIProduct:e_,mgiProducts:g,hasMGIPlusSGIProduct:em,mgiPlusSgiProducts:S,hasSGIProduct:ed,sgiProducts:b,hasBundlesProductInsurance:ec?L||ee:L,addItems:m,addAddToPlanItem:v,excessFee:p,isWBWBasket:h,simpleOfferingData:a,hasOnlySTCProduct:N,hasOnlyMTCProduct:F,hasSTCAndMTCProducts:H,stcAndMtcProducts:z,stcProducts:w,mtcProducts:R,insuredProductCode:Y||_,highestPriceProductExcessFee:G,onAemError:V}),(0,r.jsx)(k,{showErrorModal:y,setDOBActionResult:x})]})};var H=t(57593),w=t(21023),R=t(7889);let z=()=>(0,r.jsx)(H.E,{"data-testid":"aem-error-component-notification",icon:(0,r.jsx)(m.I,{size:"m",styleVariant:"subdued",source:R.default}),styleVariant:"info",title:"We can't load this right now",children:(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(v.EY,{children:"There's a problem getting the information to you. Try again later or get in touch with us if it's urgent."}),(0,r.jsx)(y.X,{size:"xxxs"}),(0,r.jsxs)(v.EY,{children:["Call"," ",(0,r.jsx)(w.N,{size:"m",href:"tel:150",styleVariant:"secondary",children:"150"})," ","from an EE mobile."]}),(0,r.jsxs)(v.EY,{children:["Call"," ",(0,r.jsx)(w.N,{size:"m",styleVariant:"secondary",children:"0800 079 8586"})," ","from any other mobile or landline."]}),(0,r.jsx)(y.X,{size:"xxxs"}),(0,r.jsx)(w.N,{size:"m",href:"#",onClick:e=>{e.preventDefault(),window.location.reload()},"data-testid":"aem-error-try-again-link",styleVariant:"secondary",children:"Try again"})]},".0")});t(19690),t(16575);var Y=t(98325);t(81791);var G=t(3391);t(91469);var L=t(39599),V=t(44512);let W=e=>
1{let{device:n,handleDeviceDataUpdate:t,handleDeviceLoaderUpdate:r,markDeviceAsFetched:s}=e,l=(null==n?void 0:n.orderLineItemId)||"",[a,o]=(0,i.useState)(null),[u,c]=(0,i.useState)(null),[d,_]=(0,i.useState)(null),m=(0,i.useRef)(!1),v=(0,i.useMemo)(()=>({productSeoId:(null==n?void 0:n.productSeoId)||"",dimensions:[]}),[null==n?void 0:n.productSeoId]),[p,,h]=(0,L.C)({productBySeoInput:v,skip:m.current||!!a}),y=(0,i.useCallback)(()=>{setTimeout(()=>{null==r||r(l,!1)},900),null==s||s(l),m.current=!0},[r,s,l]);h||m.current||a||!p||!n.id?h||m.current||a||p||y():o(p);let x=(0,i.useMemo)(()=>!!a&&!!n.id&&(0,V.hi)(a,n.id),[null==n?void 0:n.id,a]);(0,i.useEffect)(()=>{a&&_((0,V.cb)(a,n.id))},[n.id,a,h,l]);let P=(0,i.useMemo)(()=>{var e,t;let r=null==a||null==(t=a.getSimpleProductOffering)||null==(e=t.product)?void 0:e.baseDeviceSeoId;return!a||!x||r!==(null==n?void 0:n.productSeoId)||!!m.current||null===d},[null==n?void 0:n.productSeoId,a,d,x]),f=(0,i.useMemo)(()=>({page:0,pageSize:20,dimensions:null!=d?d:[]}),[d]),{data:I,loading:g}=(0,j.A)({productSeoId:(null==n?void 0:n.productSeoId)||"",productSearch:f,skip:P});return(0,i.useEffect)(()=>{P||!I||g||m.current||u||null===d?a&&null!==d&&(P||!g&&!I)&&y():c(I)},[a,d,l,u,g,I,y,P]),(0,i.useEffect)(()=>{u&&(t(l,{deviceData:a,relatedProductOfferingSummaries:u}),y())},[a,t,l,u,y]),null};t(42704);var U=t(33936);let X=()=>(0,r.jsx)(H.E,{"data-testid":"device-load-unhappy-path-notification",icon:(0,r.jsx)(m.I,{size:"s",styleVariant:"secondary",source:U.default}),styleVariant:"info",title:"This service isnât working right now",children:(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(v.EY,{children:"Weâre working hard to get it up and running. Try again later, visit our website or get in touch if itâs urgent."}),(0,r.jsx)(y.X,{size:"xxxs"}),(0,r.jsx)(w.N,{size:"m",href:"https://ee.co.uk",styleVariant:"secondary",children:"Visit the EE website"}),(0,r.jsx)(y.X,{size:"xxxs"}),(0,r.jsx)(w.N,{size:"m",href:"tel:0800-079-8586",styleVariant:"secondary",children:"Call us on 0800 079 8586"})]},".0")});var K=t(60825),q=t(54420);let $=e=>{let{label:n,isFullWidth:t,showHeading:i=!0,buttontext:s="Log in to your account"}=e;return(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K.D,{size:"s",textAlign:"left",font:"nonDottee",weight:"bold","data-testid":"login-text",children:n}),(0,r.jsx)(y.X,{size:"m"})]}),(0,r.jsx)(q.M,{label:s,styleVariant:"primary",isFullWidth:t})]})};var Z=t(80512),J=t.n(Z);let Q=e=>{let{checkEligibility:n}=e;return(0,r.jsxs)("div",{className:J().yellowSurface,children:[(0,r.jsx)(v.EY,{children:null==n?void 0:n.text}),(0,r.jsx)(y.X,{size:"xxxs"}),(0,r.jsx)($,{buttontext:null==n?void 0:n.ctaText,isFullWidth:!1,showHeading:!1})]})};var ee=t(16511),en=t(45190),et=t(80703),er=t.n(et);let ei=e=>{let{airtimeNotificationData:n}=e,[t,s]=(0,i.useState)(!0),{heading:l,description:a,actionLink:o}=n||{};return t&&(0,r.jsx)("div",{className:er().airtimeNotification_wrapper,children:(0,r.jsx)(H.E,{title:l,styleVariant:"info",icon:(0,r.jsx)(m.I,{size:"m",styleVariant:"secondary",source:ee.default}),isDismissible:!0,onClose:()=>s(!1),children:(0,r.jsxs)("div",{children:[(0,r.jsx)(v.EY,{children:a}),(0,r.jsx)("div",{className:er().airtimeNotification_link,dangerouslySetInnerHTML:{__html:(0,en.p)(o)}})]})})})};t(94182);var es=t(15547);t(95551),t(62641),t(83769),t(4233),t(37435),t(77259),t(50212),t(94353),t(44913),t(46452);var el=t(19356),ea=t(13959),eo=t(53752);t(76570);var eu=t(23561),ec=t(37453),ed=t(8229),e_=t(75841),em=t(81285),ev=t(58944),ep=t(20818),eh=t(36735),ey=t.n(eh);let ex=e=>{var n;let{type:t,isSelected:i,panelValue:s,productImage:l,productName:a,price:o,billingFrequency:u,unlimitedEligibleDevices:c,cancelAnytimeText:_,whichDevicesAreCoveredLabel:v,toggleDevicesCoveredModal:p,priceLoading:h=!1,showInfoIcon:x=!1}=e,P="MTC"!==t,f=(0,d.CK)(o||0);return(0,r.jsx)(eu.u.SelectPanel,{"data-testid":"select-panel-".concat(t.toLowerCase(),"-tech-cover"),fullWidth:!0,value:s||t,checked:i,children:(0,r.jsxs)("div",{className:ey().insurancePanel__insuranceTypePanel,children:[P?(0,r.jsxs)("div",{className:ey().insurancePanel__insuranceProductInfo,children:[(0,r.jsx)("div",{className:ey().insurancePanel__insuranceProductImage,children:l&&(0,r.jsx)(ec._,{src:l.src})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:ey().insurancePanel__insurancePanelHeader,children:(0,r.jsx)(K.D,{level:"2",size:"s",styleVariant:"brandColour",children:A.U4.SINGLE_TECH_TITLE})}),(0,r.jsx)(K.D,{level:"2",size:"s",weight:"bold",children:a}),(0,r.jsx)(ed.v,{size:"xs",styleVariant:"subdued",textAlign:"left",children:_}),(0,r.jsx)(y.X,{size:"xxs"})]}),x&&(0,r.jsx)("div",{className:ey().insurancePanel__stcInfoIcon,"data-testid":"stc-info-icon","aria-hidden":"true",children:(0,r.jsx)(m.I,{source:ev.default,size:"s"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:ey().insurancePanel__insurancePanelHeader,children:(0,r.jsx)(K.D,{level:"2",size:"s",styleVariant:"brandColour",children:A.U4.MULTI_TECH_TITLE})}),(0,r.jsxs)("div",{className:ey().insurancePanel__insuranceHeaderIcon,children:[(0,r.jsx)(K.D,{level:"2",size:"s",weight:"bold",children:null==c?void 0:c.heading}),(0,r.jsx)(e_.K,{label:{text:v||""},elementType:"button",icon:ev.default,size:"s",styleVariant:"secondary",onClick:()=>null==p?void 0:p(),"data-testid":"devices-covered-icon-button"})]}),(0,r.jsx)(ed.v,{size:"xs",styleVariant:"subdued",textAlign:"left",children:_}),(0,r.jsx)(y.X,{size:"xxxxs"}),(0,r.jsx)(ep.A,{}),(0,r.jsx)(y.X,{size:"xxxxs"}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,en.p)(null!=(n=null==c?void 0:c.text)?n:"")},className:ey().insurancePanel__featuresSubdued}),(0,r.jsx)(y.X,{size:"xs"})]}),h&&(0,r.jsx)(em.E,{"data-testid":"header-loader",kind:"block",rows:.4,size:15}),o&&!h&&(0,r.jsx)(el.g,{size:{integer:"s",decimal:"s",currency:"s"},"data-testid":"insurance-panel-price",value:f.value,hideDecimal:f.isHideDecimal,currency:"GBP",alignment:"left",isPriceBold:!0,trailingLabel:{text:u,textSize:"m"},leadingLabel:{text:A.U4.PRICE_PREFIX},isLabelInline:!0})]})})};t(8171),t(61e3);let eP=e=>{let{mappedDeviceData:n,selectedInsuranceType:t,hasPurchasedDevices:s,handleInsuranceTypeChange:l,stcLowestPriceAndFrequencyForDevice:a,mtcLowestPriceAndFrequency:o,cancelAnytime:u,unlimitedEligibleDevices:c,mtcError:d,userHasMTC:_,whichDevicesAreCoveredLabel:m,toggleDevicesCoveredModal:v,deviceRefs:p,allDevicesDataLoading:h,showInfoIcon:x}=e;return(0,r.jsxs)(eu.u,{"data-testid":"insurance-type-select-panel-group",name:"choose-insurance-type-panel-group",value:t,onChange:l,children:[d||_?null:(0,r.jsx)(ex,{type:es.FQ.MTC,isSelected:t===es.FQ.MTC,price:o.price,billingFrequency:o.billingFrequency,unlimitedEligibleDevices:c,cancelAnytimeText:u,whichDevicesAreCoveredLabel:m,toggleDevicesCoveredModal:v}),s&&n.map((e,n)=>{var s;let l=e.orderLineItemId,{price:o,billingFrequency:c}=a(l);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(y.X,{size:"xs"}),(0,r.jsx)("div",{ref:e=>{(null==p?void 0:p.current)&&(p.current[n]=e)},children:(0,r.jsx)(ex,{type:l,isSelected:t===l,productImage:{src:e.imageUrl,altText:e.name},productName:e.name,price:o,billingFrequency:c,cancelAnytimeText:u,priceLoading:null==h||null==(s=h[l])?void 0:s.loading,showInfoIcon:x})})]},l)})]})},ef=e=>{let{device:n,handleDeviceDataUpdate:t,shouldLoad:i,handleDeviceLoaderUpd
1ate:s,markDeviceAsFetched:l}=e;return i?(0,r.jsx)(W,{device:n,handleDeviceDataUpdate:t,handleDeviceLoaderUpdate:s,markDeviceAsFetched:l}):null};var eI=t(8135),eg=t(34786),eC=t.n(eg);let eS=e=>{let{mgiFeatures:n,whichDevicesAreCoveredLabel:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,en.p)(n)},className:eC().mtcContent,"data-testid":"tech-insurance-features"}),(0,r.jsx)(eI.A,{linkLabel:t}),(0,r.jsx)(y.X,{size:"m"})]})};var eb=t(46313),eM=t(22501),ej=t.n(eM);let eD=e=>{let{heading:n,badgeNumber:t,showIcon:i=!1,disabled:s=!1,dataTestId:l="section-heading"}=e;return(0,r.jsxs)("div",{className:"".concat(ej().sectionHeader," ").concat(s?ej().sectionHeader__disabled:""),children:[i?(0,r.jsx)(m.I,{source:eb.default,size:"m",styleVariant:"primary",role:"img","aria-label":"tick icon"}):void 0!==t&&(0,r.jsx)("div",{className:ej().sectionHeader__badge,children:t}),(0,r.jsx)(K.D,{level:"2",size:"m",weight:"bold","data-testid":l,children:n})]})}},91469:e=>{e.exports={table:"styles_table__lDCUU",coverTypeTh:"styles_coverTypeTh__GtT6L",compareCoverText:"styles_compareCoverText__Aqk4r",totalCost:"styles_totalCost__o_NQp"}},99931:e=>{e.exports={modalContainer:"styles_modalContainer__jiGAj",tileGroupContainer:"styles_tileGroupContainer__C6n55"}}}]);
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.