1(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{3114:function(e,t,n){"use strict";n.d(t,"b",(function(){return C})),n.d(t,"a",(function(){return O}));n(0);var l,a=n(28),i=n(527),r=n(150),o=n(6),d=n(48),c=o.default.div.withConfig({displayName:"StyledContractModalWrapper",componentId:"sc-1v82wej-0"})([""]),s=o.default.div.withConfig({displayName:"StyledBodyText",componentId:"sc-1v82wej-1"})([".current-plan-subtext{color:",";font-size:1rem;line-height:1.25rem;font-weight:700;}.current-plan-title{color:",";font-size:1.25rem;font-weight:700;line-height:1.5rem;}.service-cards-wrapper > div:first-child{padding:0.1rem 0;}"],d.l.black,d.l.black),u=o.default.div.withConfig({displayName:"StyledActionButton",componentId:"sc-1v82wej-2"})(["display:flex;flex-direction:row;gap:1rem;width:100%;& > *{flex:1;}"]),v=o.default.div.withConfig({displayName:"StyledContractServiceCard",componentId:"sc-1v82wej-3"})(["padding:0.5rem 0;margin-bottom:0.25rem;.card-content-subtext{color:",";font-size:0.875rem;font-weight:500;line-height:1.125rem;}.service-card-content{background-color:",";padding:1rem;width:100%;border-radius:0.5rem;display:flex;align-items:center;gap:1rem;margin-top:0.5rem;svg{color:",";}.card-icon{width:48px;height:48px;object-fit:contain;}.card-content-details{display:flex;flex-direction:column;.card-content-title{font-weight:700;font-size:1.25rem;line-height:1.5rem;color:",";}.card-content-summary,.card-content-address{font-size:1rem;line-height:1.25rem;font-weight:700;color:",";margin-top:0.5rem;}.card-content-expiry-date{font-size:1rem;line-height:1.25rem;font-weight:700;color:",";}}}"],d.l.secondaryGray,d.l.flashGrey,d.l.purePink,d.l.black,d.l.black,d.l.graniteGray),b=n(2),C=e=>{var{subtext:t,title:n,icon:l,details:a}=e;return Object(b.jsxs)(v,{children:[Object(b.jsx)(r.f,{variant:"body_s",className:"card-content-subtext",children:t}),Object(b.jsxs)("div",{className:"service-card-content",children:[Object(b.jsx)("div",{className:"card-icon",children:l}),Object(b.jsxs)("div",{className:"card-content-details",children:[Object(b.jsx)(r.f,{variant:"body_l",className:"card-content-title",children:n}),a]})]})]})},O=e=>{var{summary:t,expirationText:n,address:l}=e;return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(r.f,{variant:"body_m",className:"card-content-summary",children:t}),n&&Object(b.jsx)(r.f,{variant:"body_m",className:"card-content-expiry-date",children:n}),l&&Object(b.jsx)(r.f,{variant:"body_m",className:"card-content-address",children:l})]})};t.c=e=>{var t,{open:n,headerText:o,subText:d,currentPlanTitle:v,primaryCtaText:C,secondaryCtaText:O,serviceCards:T,onPrimaryClick:x,onSecondaryClick:m,onClose:p}=e;return Object(b.jsx)(c,{children:Object(b.jsx)(a.ODSDialog,{open:n,onClose:p,children:Object(b.jsx)(i.c,{bodyText:t||(t=Object(b.jsxs)(s,{children:[Object(b.jsx)(r.f,{variant:"body_m",className:"current-plan-subtext",children:d}),l||(l=Object(b.jsx)("br",{})),Object(b.jsx)(r.f,{weight:"bold",variant:"body_l",className:"current-plan-title",children:v}),Object(b.jsx)("div",{className:"service-cards-wrapper",children:T})]})),headerText:o,actionSlot:Object(b.jsxs)(u,{children:[Object(b.jsx)(a.ODSButton,{buttonType:"standard",label:O,size:"small",variant:"outline",onClick:m}),Object(b.jsx)(a.ODSButton,{buttonType:"standard",label:C,size:"small",variant:"primary",onClick:x})]}),showCloseButton:!0})})})}},3738:function(e,t,n){"use strict";n.r(t);var l,a=n(0),i=n(135),r=n(14),o=n(39),d=n(27),c=n(9),s=n(10),u=n(1),v=n(23),b=n(3114),C=n(111),O=n(232),T=n(156),x=n(150),m=n(2),p=e=>{var t,n,a,i,r,o,d,c,s,u,v,C,{service:O,tariffData:p}=e,f=Object(x.ib)({modulePath:"cart.fixed"})("existingFixedContractModal"),j=null==p||null===(t=p.characteristics)||void 0===t||null===(n=t.find(e=>"maxDownloadSpeed"===(null==e?void 0:e.name)))||void 0===n||null===(a=n.values)||void 0===a||null===(i=a[0])||void 0===i?void 0:i.value,h=null==p||null===(r=p.characteristics)||void 0===r||null===(o=r.find(e=>"maxUploadSpeed"===(null==e?void 0:e.name)))||void 0===o||null===(d=o.values)||void 0===d||null===(c=d[0])||void 0===c?void 0:c.value;return Object(m.jsx)(b.b,{subtext:f.currentPlanSubtext.replace("{0}",null==O?void 0:O.name),title:null!==(s=null==p?void 0:p.name)&&void 0!==s?s:"",icon:l||(l=Object(m.jsx)(T.ODSIcon,{name:"internet-home-type-standard",size:48})),details:Object(m.jsx)(b.a,{summary:j&&h?f.maxUploadDownloadSpeedText.replace("{0}",j).replace("{1}",h):null,expirationText:null==f||null===(u=f.expirationDateText)||void 0===u?void 0:u.replace("{0}",null!==(v=null==p?void 0:p.expiryDate)&&void 0!==v?v:""),address:null==p||null===(C=p.uiAddress)||void 0===C?void 0:C.autoSuggestAddress})})};t.default=e=>{var t,n,{open:l,onClose:T,onOpenAvailabilityCheck:x,onNoServicesFound:f,secondaryCtaText:j,tariffsD
1ata:h,pageName:N}=e,g=Object(i.a)({modulePath:"cart.fixed"})("existingFixedContractModal"),y=Object(o.d)(r.vb),_=Object(o.c)(),A=Object(a.useRef)(!1);Object(a.useEffect)(()=>{if(l&&!A.current){var e=u.Hc.COMMON.PAGE_CONTENT_ID.EXISTING_CONTRACT_MODAL_VIEWED.replace("{0}",s.T.EXISTING_FIXED_CONTRACT_MODAL);Object(v.ub)(N,u.dc.FIXED,e)}A.current=l},[l]);var I=e=>{var t,n=null!=e&&null!==(t=e.businessInteractionsForSelectedAttribute)&&void 0!==t&&t.length?e.businessInteractionsForSelectedAttribute:null==e?void 0:e.businessInteractions;return null==n?void 0:n.find(e=>e===s.d.TARIFF_CHANGE||e===s.d.CONTRACT_PROLONGATION)},E=null==y?void 0:y.filter(e=>(null==e?void 0:e.fixedContract)&&I(e)),{existingContractModalPriority:S,existingContractModalTariffChangeRedirectUrl:w,existingContractModalContractProlongRedirectUrl:D}=Object(o.d)(O.c),R=S?null==S||null===(t=S.split)||void 0===t||null===(n=t.call(S,","))||void 0===n?void 0:n.map(e=>{var t;return null==e||null===(t=e.trim)||void 0===t?void 0:t.call(e)}):[],F=null==R?void 0:R[0],G=((null==E?void 0:E.length)||0)>1,M=G?void 0:I(null==E?void 0:E[0]),P=G?F:M;if(null==E||!E.length)return l&&f&&f(),null;return Object(m.jsx)(b.c,{open:l,headerText:null==g?void 0:g.header,subText:(()=>{var e="";if(P===s.d.CONTRACT_PROLONGATION?e=null==g?void 0:g.prolongPlanSubtext:P===s.d.TARIFF_CHANGE&&(e=null==g?void 0:g.tariffChangePlanSubtext),G)return"".concat(null==g?void 0:g.multipleSubText," ").concat(e);var t,n,l,a=null==h?void 0:h.find(e=>{var t,n;return(null==e||null===(t=e.productRef)||void 0===t?void 0:t.id)===(null==E||null===(n=E[0])||void 0===n?void 0:n.id)}),i=null==g||null===(t=g.subtext)||void 0===t?void 0:t.replace("{0}",null!==(n=null==a||null===(l=a.uiAddress)||void 0===l?void 0:l.autoSuggestAddress)&&void 0!==n?n:"");return"".concat(i," ").concat(e)})(),currentPlanTitle:null==g?void 0:g.currentPlanTitle,primaryCtaText:P===s.d.CONTRACT_PROLONGATION?null==g?void 0:g.primaryCtaProlongationText:(s.d.TARIFF_CHANGE,null==g?void 0:g.primaryCtaTariffChangeText),secondaryCtaText:j||(null==g?void 0:g.secondaryCtaTextTariff),serviceCards:Object(m.jsx)(m.Fragment,{children:null==E?void 0:E.map(e=>{var t=null==h?void 0:h.find(t=>{var n;return(null==t||null===(n=t.productRef)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)});return Object(m.jsx)(p,{service:e,tariffData:t},null==e?void 0:e.id)})}),onPrimaryClick:()=>{var e=P===s.d.CONTRACT_PROLONGATION?C.j.primaryCtaProlongationText:(s.d.TARIFF_CHANGE,C.j.primaryCtaTariffChangeText),t=u.Hc.COMMON.PAGE_CONTENT_ID.EXISTING_CONTRACT_MODAL_CTA_CLICK.replace("{0}",e).replace("{1}",s.T.EXISTING_FIXED_CONTRACT_MODAL);Object(v.sb)(N,e,u.dc.FIXED,t),_(d.b.setHasShownExistingContractModal(!0)),null==T||T(),c.a&&c.a.location&&(P===s.d.CONTRACT_PROLONGATION||G?c.a.push(D):P===s.d.TARIFF_CHANGE&&c.a.push(w))},onSecondaryClick:()=>{var e=C.j.secondaryCtaTextTariff,t=u.Hc.COMMON.PAGE_CONTENT_ID.EXISTING_CONTRACT_MODAL_CTA_CLICK.replace("{0}",e).replace("{1}",s.T.EXISTING_FIXED_CONTRACT_MODAL);Object(v.sb)(N,e,u.dc.FIXED,t),_(d.b.setHasShownExistingContractModal(!0)),null==T||T(),null==x||x()},onClose:()=>{var e=u.Hc.COMMON.PAGE_CONTENT_ID.EXISTING_CONTRACT_MODAL_CLOSE.replace("{0}",s.T.EXISTING_FIXED_CONTRACT_MODAL);Object(v.tb)(N,u.dc.FIXED,e),_(d.b.setHasShownExistingContractModal(!0)),null==T||T()}})}}}]);
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.