1(window.webpackJsonp=window.webpackJsonp||[]).push([[152,44],{2187:function(e,t,i){"use strict";i.r(t);var n=i(0),a=i.n(n),r=i(39),l=i(158),o=i(156),c=i(38),s=i(3571),d=i(3416),u=i(303),b=i(3027),p=i(3340),g=i(3458),m=i(1341),v=i(14),h=i(101),O=i(55),f=i(3459),j=i(3415),y=i(3705),x=i(1321),S=i(6),C=i(28),w=i(3729),I=Object(S.default)(c.V).withConfig({displayName:"DeviceListingFiltersWrapper",componentId:"sc-3mn0ys-0"})(["padding:0;"]),T=S.default.div.withConfig({displayName:"DeviceListingLayout",componentId:"sc-3mn0ys-1"})(["display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;width:100%;box-sizing:border-box;background-color:var(--colours-basic-background-page,#fff);"]),D=S.default.div.withConfig({displayName:"PageContainer",componentId:"sc-3mn0ys-2"})(["flex:1 1 auto;display:flex;flex-direction:column;width:var(--columns-12-columns);max-width:100%;margin:0 auto;padding:var(--spacing-layout-2) 0;box-sizing:border-box;"]),P=S.default.div.withConfig({displayName:"DeviceListingPageHeaderCluster",componentId:"sc-3mn0ys-3"})(["margin-bottom:var(--spacing-layout-2);"]),N=S.default.section.withConfig({displayName:"DeviceListingSelectedPlanSection",componentId:"sc-3mn0ys-4"})(["display:flex;flex-direction:column;gap:var(--spacing-component-3);width:100%;"]),L=S.default.div.withConfig({displayName:"DeviceListingChooseDeviceSubtitle",componentId:"sc-3mn0ys-5"})(["margin-top:var(--spacing-layout-5);width:100%;"]),E=Object(S.default)(w.a).withConfig({displayName:"DeviceListingForwardTradeIn",componentId:"sc-3mn0ys-6"})(["margin-top:2.5rem;"]),A=Object(S.default)(C.ODSButton).withConfig({displayName:"DeviceListingToolbarIconButton",componentId:"sc-3mn0ys-7"})(["flex-shrink:0;box-sizing:border-box;border-radius:var(--radius-full,999px);"]),k=Object(S.default)(C.ODSButton).withConfig({displayName:"DeviceListingToolbarAppliedPill",componentId:"sc-3mn0ys-8"})(["flex-shrink:0;box-sizing:border-box;border-radius:var(--radius-full,999px);&&{background-color:var(--colours-basic-text);color:var(--colours-inverted-text);border-color:var(--colours-basic-text);}@media (hover:hover){&&:hover:not(:disabled){filter:brightness(1.12);}}"]),_=i(3126),F=i(33),B=i.n(F),R=i(3323),M=i(5),U=i.n(M),G=i(3264),z=i(1306);function H(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function V(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?H(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var q=class extends G.a{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions(V(V({},e),{},{behavior:Object(z.c)()}),t)}getOptimisticResult(e){return e.behavior=Object(z.c)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch(V(V({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch(V(V({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var i,n,{state:a}=e,r=super.createResult(e,t),{isFetching:l,isRefetching:o,isError:c,isRefetchError:s}=r,d=null==(n=null==(i=a.fetchMeta)?void 0:i.fetchMore)?void 0:n.direction,u=c&&"forward"===d,b=l&&"forward"===d,p=c&&"backward"===d,g=l&&"backward"===d;return V(V({},r),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Object(z.a)(t,a.data),hasPreviousPage:Object(z.b)(t,a.data),isFetchNextPageError:u,isFetchingNextPage:b,isFetchPreviousPageError:p,isFetchingPreviousPage:g,isRefetchError:s&&!u&&!p,isRefetching:o&&!b&&!g})}},K=i(3098);var Y=i(3341),W=()=>{var e,t,i,n,a,r,l,o,s,d,u,b=c.Uc.getState(),p=b.productList,{isLoggedIn:g,urlConfigurationByRoute:m,currentPageConfig:{configObj:h}}=Object(c.Eb)(b),O=c.Ac&&"location"in c.Ac?c.Ac.location.search:"",f=c.Ac&&"location"in c.Ac?c.Ac.location.pathname:"",j=null!==(e=[Object(c.xc)(O),Object(c.Cb)(b)].filter(
1Boolean)[0])&&void 0!==e?e:c.d.CONTRACT_PROLONGATION,{currentPage:y}=Object(c.mc)(O),x=Object(c.ic)(b).itemPerPage,S=null==p||null===(t=p.pagination)||void 0===t?void 0:t.itemsPerPage,C=Object(c.Dc)().pagination;u=null!=S&&S!==C.itemsPerPage?S:x>0?x:C.itemsPerPage;var w,I=Object(c.oc)(b)||"";""===I&&(I=null!==(w=c.l.getCookie(c.k.MSISDN.name))&&void 0!==w?w:"");var T=Object(Y.a)(O),D=Object(v.Yb)(b,T),P={isLoggedIn:g,urlConfigurationByRoute:m,productListingPathConfig:null==h?void 0:h[c.fb.PRODUCT_LISTING],publicBasePath:null===(i=b.appData)||void 0===i?void 0:i.PUBLIC_BASE_PATH,smeOrLeEligible:Object(c.rc)(b),magentaBenefitsEnabled:Object(c.nc)(b)||!1,businessInteraction:j,serviceId:I,productListTariffId:null!==(n=null==p?void 0:p.tariffId)&&void 0!==n?n:null,productListLoyalty:null!==(a=null==p?void 0:p.loyalty)&&void 0!==a?a:null,productListDiscountId:null!==(r=null==p?void 0:p.discountId)&&void 0!==r?r:null,contextBarBusinessInteraction:null==p||null===(l=p.contextBar)||void 0===l?void 0:l.businessInteraction,isFunnelJourneyFromState:!(null==p||!p.isFunnelJourney),paginationItemsPerPage:u,paginationCurrentPageFromStore:null!==(o=null==p||null===(s=p.pagination)||void 0===s?void 0:s.currentPage)&&void 0!==o?o:0,numberOfLoadingCards:null!==(d=null==p?void 0:p.numberOfLoadingCards)&&void 0!==d?d:null,forwardTradeInApplied:D};return{state:b,search:O,pathname:f,businessInteraction:j,urlPageNumber:y,itemsFetchLimit:Object(c.Wb)(b),sortByFallback:Object(c.sc)(b),snapshot:P}};function J(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?J(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):J(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Z=e=>{var t=c.Uc.getState(),{preorder:{considerInventory:i}}=Object(c.Db)(t),n=Object(c.Xc)(e,e.plan,i);return Q(Q({},e),{},{data:n})},X=(e,t)=>(0===t&&e.itemsPerPage>0&&c.Uc.dispatch(c.Pc.changeItemPerPage(e.itemsPerPage)),e),$=(e,t)=>Object(c.vb)(((e,t)=>{var{search:i,pathname:n,urlPageNumber:a,itemsFetchLimit:r,sortByFallback:l,snapshot:o}=W(),s=t;return Object(c.lb)({categoryId:e,search:i,pathname:n,isChanged:0===t,accumulatedItemCount:0,itemsFetchLimit:r,receivedProductListDataFromServer:!1,urlPageNumber:a,sortByFallback:l,snapshot:Q(Q({},o),{},{paginationCurrentPageFromStore:s})})})(e,t)).then(Z).then(e=>X(e,t)),ee=(e,t)=>Object(c.vb)(((e,t)=>{var{search:i,pathname:n,urlPageNumber:a,itemsFetchLimit:r,sortByFallback:l,snapshot:o}=W();return Object(c.lb)({categoryId:e,search:i,pathname:n,isChanged:!1,accumulatedItemCount:0,itemsFetchLimit:r,receivedProductListDataFromServer:!1,urlPageNumber:a,sortByFallback:l,snapshot:o,cursor:t})})(e,t)).then(Z).then(e=>X(e,1)),te=(e,t)=>{var i,n,a,r,l,o=t.reduce((e,t)=>{var i,n;return e+(null!==(i=null===(n=t.data)||void 0===n?void 0:n.length)&&void 0!==i?i:0)},0),c=null!==(i=null===(n=e.data)||void 0===n?void 0:n.length)&&void 0!==i?i:0,s=Math.max(1,null!==(a=e.itemsPerPage)&&void 0!==a?a:8),d=Math.max(1,null!==(r=null===(l=t[0])||void 0===l?void 0:l.itemsPerPage)&&void 0!==r?r:s),u=(e=>e.reduce((e,t)=>{var i;return Math.max(e,null!==(i=t.resultCount)&&void 0!==i?i:0)},0))(t);if(0===c)return!1;if(t.length>1&&c<s)return!1;if(u>0){var b=Math.max(1,Math.ceil(u/d));return o<u&&t.length<b}return c>=s},ie=(e,t)=>te(e,t)?t.length:null,ne=(e,t)=>(e=>!!e.nextCursor)(e)?(e=>{var{nextCursor:t}=e;return t&&t!==c.r?t:null})(e):ie(e,t),ae=e=>{var t=e.startsWith("?")?e.slice(1):e,i=new URLSearchParams(t);return i.delete(u.j.CURRENT_PAGE),i.delete("excludedCurrentPage"),i.delete("e"),i.toString()},re=(e,t)=>["contractProlongation","deviceListing","productsInfinite",e,t],le={categories:e=>["contractProlongation","deviceListing","categories",e],products:(e,t)=>["contractProlongation","deviceListing","products",e,t],productsInfinitePrefix:re,productsInfinite:(e,t,i)=>[...re(e,t),i],filters:(e,t)=>["contractProlongation","deviceListing","filters",e,t],filtersSheet:(e,t)=>["contractProlongation","deviceListing","filtersSheet",e,t]},oe=(e,t,i)=>{var n,a,l,o=ae(i),c=Object(Y.a)(i),s=Object(r.d)(e=>Object(v.Yb)(e,c));return n={queryKey:e?le.productsInfinite(e,o,s):["contractProlongation","deviceListing","productsInfinite","pending"],queryFn:(l=B()((function*(t){var{pageParam:i}=t;return"string"==typeof i?ee(e,i):$(e,"number"==typeof i?i:0)})),function(e){return l.apply(this,arguments)}),initialPageParam:0,staleTime:0,gcTime:0,getNextPageParam:(e,t)=>ne(e,t),enabled:t&&!!e},Object(K.a)(n,q,a)},ce=(e,t)=>{var i,n=c.Uc.getState(),a=Object(c.oc)(n)||"";""===a&&(a=null!==(i=c.l.getCookie(c.k.MSISDN.name))&&void 0!==i?i:"");var{tariffId:r,loyalty:l}=n.productList||{},o=new URLSearchParams(t.startsWith("?")?t.slice(1):t),s=r||o.get(c.b.TARIFF_ID)||"",d=l||o.get(c.b.LOYALTY)||"",u=[];return a&&u.push({key:c.h.ELIGIBLE_MSISDN,value:a}),u.push({key:c.h.BUSINESS_INTERACTION_TYPE,value:c.d.CONTRACT_PROLONGATION}),s&&u.push({key:c.b.PRODUCT_LISTING_SELECTED_TARIFF,value:s}),d&&u.push({key:c.b.PRODUCT_LISTING_SELECTED_AGREEMENT,value:d}),[{id:e,characteristics:u}]},se=function(){var e=B()((function*(e,t,i){var n,a=Object(c.Sc)(t),r=new URLSearchParams(i.startsWith("?")?i.slice(1):i);return Object(c.ub)({channel:Object(c.zb)().CHANNEL,conditions:[],categories:ce(e,i
1),filterCharacteristics:a,sendNonVisibleFilters:Object(c.F)(a),linkedTariffCategoryId:null!==(n=r.get(c.b.TARIFF_CATEGORY_ID))&&void 0!==n?n:"",filterSlug:""})}));return function(t,i,n){return e.apply(this,arguments)}}(),de=S.default.div.withConfig({displayName:"DeviceListingFilterSortIconGroup",componentId:"sc-eek55f-0"})(["display:flex;flex-shrink:0;align-items:center;gap:var(--spacing-component-2);"]),ue=S.default.span.withConfig({displayName:"DeviceListingFilterIconWrap",componentId:"sc-eek55f-1"})(["position:relative;display:inline-flex;flex-shrink:0;align-items:center;"]),be=S.default.div.withConfig({displayName:"QuickFiltersRow",componentId:"sc-eek55f-2"})(["display:flex;flex-wrap:nowrap;align-items:center;align-content:center;gap:var(--spacing-component-2);width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;&::-webkit-scrollbar{display:none;}@media (min-width:","rem){gap:var(--spacing-component-3);}.ODSToggleChip{flex-shrink:0;}@media ","{padding-inline:0;}"],c.Qc.tabletLandscape,c.Nc.above_767),pe=i(2),ge=e=>{var{label:t,onClick:i,appliedCount:n}=e;return(null!=n?n:0)>0?Object(pe.jsx)(k,{buttonType:"standard",variant:"secondary",size:"small",leftIcon:!0,buttonIcon:"filter-type-standard",label:"".concat(t," (").concat(n,")"),"aria-label":"".concat(t,", ").concat(n," selected"),onClick:i}):Object(pe.jsx)(ue,{children:Object(pe.jsx)(A,{buttonIcon:"filter-type-standard",buttonType:"iconOnly",label:t,size:"small",variant:"outline","aria-label":t,onClick:i})})},me=e=>{var{label:t,selected:i,onToggle:n}=e;return Object(pe.jsx)(C.ODSToggleChip,{label:t,transparentBg:!1,selected:i,onSelectedChange:e=>{e!==i&&n()}})},ve=i(636),he=S.default.div.withConfig({displayName:"SortByFlyoutRoot",componentId:"sc-f76qq2-0"})(["flex-shrink:0;min-width:0;display:flex;align-items:center;"]),Oe=Object(S.default)(ve.b).withConfig({displayName:"StyledSortSheetContent",componentId:"sc-f76qq2-1"})([".ODSSheet-TitleContainer{border-bottom-color:var(--colours-basic-stroke-subtle,#b6b6b6);}.ODSSheet-ActionSlotContainer .ODSSheet-DividerContainer{visibility:visible;}"]),fe=S.default.div.withConfig({displayName:"SortSheetInnerSlot",componentId:"sc-f76qq2-2"})(["display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:100%;min-height:0;padding-top:var(--spacing-component-3);padding-left:0;"]),je=S.default.div.withConfig({displayName:"SortSheetFilterChoiceGroup",componentId:"sc-f76qq2-3"})(["display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:100%;min-width:0;margin-top:var(--spacing-component-3);padding-right:var(--spacing-component-3);gap:var(--spacing-component-3);"]),ye=S.default.p.withConfig({displayName:"SortSheetSectionLabel",componentId:"sc-f76qq2-4"})(["margin:0;padding:var(--spacing-component-2) var(--spacing-component-1);box-sizing:border-box;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--colours-basic-text,#000);font-size:var(--typography-body-L-size,20px);font-weight:var(--typography-body-L-weight,655);line-height:var(--typography-body-L-line-height,24px);letter-spacing:var(--typography-body-L-letter-spacing,0);"]),xe=S.default.div.withConfig({displayName:"SortSheetRadioGrid",componentId:"sc-f76qq2-5"})(["display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-component-3);width:100%;padding:0 0 var(--spacing-component-3);box-sizing:border-box;.ODSRadioButton-Label{font:var(--body-m-bold);}@media ","{grid-template-columns:1fr;}"],c.Nc.below_768),Se=S.default.div.withConfig({displayName:"SortSheetActions",componentId:"sc-f76qq2-6"})(["display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--spacing-component-3);width:100%;"]),Ce=e=>{var t,{sortByTitle:i,sortControlAriaScope:a,options:r,selectedSortId:l,sortAppliedInUrl:o,onSelect:s}=e,{contractJourneyTranslation:d}=Object(_.a)(),[u,b]=Object(n.useState)(!1),[p,g]=Object(n.useState)(""),m=Object(c.dd)(c.Nc.above_767)?"large":"small",v=l&&r.some(e=>{var{id:t}=e;return t===l})?l:"",O=(v?null===(t=r.find(e=>{var{id:t}=e;return t===v}
1))||void 0===t?void 0:t.title:"")||i,f="".concat(a,", ").concat(O),j=Object(n.useCallback)(()=>{var e,t,i,n,a=null!==(e=null!==(t=null===(i=r.find(e=>e.isSelected))||void 0===i?void 0:i.id)&&void 0!==t?t:null===(n=r[0])||void 0===n?void 0:n.id)&&void 0!==e?e:"";g(v||a)},[v,r]);Object(n.useEffect)(()=>{u&&j()},[u,j]);var y=()=>{b(!1)},x=()=>{b(!0)};return Object(pe.jsxs)(he,{children:[o?Object(pe.jsx)(k,{buttonType:"standard",variant:"secondary",size:"small",leftIcon:!0,buttonIcon:"sort-type-standard",label:O,"aria-label":f,onClick:x}):Object(pe.jsx)(A,{buttonIcon:"sort-type-standard",buttonType:"iconOnly",label:f,size:"small",variant:"outline",onClick:x}),Object(pe.jsx)(c.K,{open:u,onOpenChange:e=>{b(e)},children:Object(pe.jsx)(Oe,{"data-mode":"light","data-scheme":"neutral",side:"right",animateFromBottomOnSmallViewport:!0,showImage:!1,showTitle:!0,showCloseButton:!0,closeButtonLabel:String(d("sortSheetCloseLabel")),onCloseButtonClick:y,stickyButtons:!0,titleSlot:Object(pe.jsx)(C.ODSSheetTitleLabel,{titleLabel:String(d("sortSheetTitle"))}),actionSlot:Object(pe.jsxs)(Se,{children:[Object(pe.jsx)(C.ODSButton,{variant:"outline",label:String(d("sortSheetCancel")),size:m,onClick:y}),Object(pe.jsx)(C.ODSButton,{variant:"primary",label:String(d("sortSheetApply")),size:m,onClick:()=>{if(p){var e=r.find(e=>{var{id:t}=e;return t===p});e&&(Object(h.K)(e.id),s(e.id,e.title)),b(!1)}else b(!1)}})]}),children:Object(pe.jsx)(fe,{children:Object(pe.jsxs)(je,{children:[Object(pe.jsx)(ye,{children:"".concat(String(d("sortLabel")),":")}),Object(pe.jsx)(xe,{children:r.map(e=>Object(pe.jsx)(C.ODSRadioButton,{label:e.title,size:"small",mode:"standard",checked:p===e.id,onCheckedChange:()=>{g(e.id)},inputProps:{name:"deviceListingSort",value:e.id}},e.id))})]})})})})]})};function we(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ie(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?we(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):we(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Te,De=(e,t,i,n)=>{var{search:a}=Object(c.cd)(),r=(e=>{if(!e||0===Object.keys(e).length)return"empty";var t=Object(c.Sc)(e).sort((e,t)=>e.id.localeCompare(t.id));return JSON.stringify(t)})(i);return Object(R.a)({queryKey:e?le.filtersSheet(e,r):["contractProlongation","deviceListing","filtersSheet","pending"],queryFn:()=>se(e,i||{},a),enabled:t&&!!e&&n,staleTime:0,gcTime:0})},Pe=i(7),Ne=i.n(Pe),Le=Object(S.default)(ve.b).withConfig({displayName:"StyledFilterAdvancedSheetContent",componentId:"sc-1ujsftc-0"})([".ODSSheet-TitleContainer{border-bottom-color:var(--colours-basic-stroke-subtle,#b6b6b6);}.ODSSheet-DividerContainer{visibility:visible;}"]),Ee=S.default.div.withConfig({displayName:"FilterSheetInnerSlot",componentId:"sc-1ujsftc-1"})(["display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:100%;min-height:0;padding-top:var(--spacing-component-3);padding-left:0;"]),Ae=S.default.div.withConfig({displayName:"FilterSheetActions",componentId:"sc-1ujsftc-2"})(["display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--spacing-component-3);width:100%;"]),ke=S.default.div.withConfig({displayName:"FilterSheetBody",componentId:"sc-1ujsftc-3"})(["display:block;min-height:2rem;width:100%;box-sizing:border-box;@media ","{padding-bottom:2rem;[class*='StyledOptionListGrid']{grid-template-columns:1fr;}}"],c.Nc.below_768),_e=Object(S.default)(ke).withConfig({displayName:"FilterSheetBodyForLoading",componentId:"sc-1ujsftc-4"})(["flex:1;min-height:0;display:flex;align-items:center;justify-content:center;"]),Fe=S.default.div.withConfig({displayName:"FilterSheetLoadingWrap",componentId:"sc-1ujsftc-5"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;"]),Be=["id","name","data","priceSteps"];function Re(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Me(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?Re(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Re(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Ue=e=>{var{isLoading:t,loadingText:i,filterCheckboxSize:r,colorSwatchPresentation:l,filters:o,hardwareSoloFilter:s,contractJourneyTranslation:d,colorKey:u,storageKey:b,brandFilterKey:p,deviceTypeFilterKey:g,operatingSystemFilterKey:m,installmentPriceFilterKey:v,dv2Enabled:h,dutyFreeText:O,currencySymbol:f,isBrandLogosAndColorRedesignEnabled:j,selected:y,isSelected:x,getValue:S,getSelectedFilterName:w,getBrandName:I,onFilterSelect:T,onPriceRangeFilterSelect:D,onFilterRemove:P}=e,N=Object(n.useMemo)(()=>{var e=Me({},y);return delete e[c.b.SORTING_LIST],s&&delete e[s],e},[y,s]),L=o.filter(e=>{var{id:t}=e;return t!==c.b.SORTING_LIST&&t!==s});return Object(pe.jsxs)(Ee,{children:[!t&&Object(pe.jsx)("div",{"data-filter-chips":!0,children:Object(pe.jsx)(c.S,{chipContainerLayout:"wrap",dutyFreeText:O,selected:N,brandFilterKey:p,getValue:S,getBrandName:I,onRemove:P,getSelectedFilterName:w,currencySymbol:f})}),t?Object(pe.jsx)(_e,{children:Object(pe.jsx)(Fe,{children:Object(pe.jsx)(C.ODSLoadingSpinner,{size:"large",labelAlignment:"vertical",labelText:i})})}):Object(pe.jsx)(ke,{children:L.map((e,t)=>{var{id:i,name:n,data:o,priceSteps:s}=e,O=Ne()(e,Be),y=Me(Me(Me({key:i,heading:n,data:o,dv2Enabled:h,onSelect:e=>T(i,e),isSelected:e=>x(i,e),isBrandLogosAndColorRedesignEnabled:j,id:i,brandFilterKey:p},O),r?{checkboxSize:r}:{}),l?{colorSwatchPresentation:l}:{}),w={[c.b.BFF_PRICE_RANGE_ID]:Object(pe.jsx)(c.P,Me({value:S(i),onSelect:e=>D(i,e),heading:n,priceSteps:s,labelMin:d("priceRangeLabelMin"),labelMax:d("priceRangeLabelMax"),currencySymbol:f,leftThumbAriaLabel:d("priceRangeAriaMin"),rightThumbAriaLabel:d("priceRangeAriaMax")},O),i),[p]:Object(pe.jsx)(c.U,Me({},y)),[c.b.BFF_AVAILABILITY_TRANSLATION_ID]:Object(pe.jsx)(c.c,Me({},y)),[u]:Object(pe.jsx)(c.j,Me({},y)),[b]:Object(pe.jsx)(c.c,Me({},y)),[g]:Object(pe.jsx)(c.n,Me({},y)),[m]:Object(pe.jsx)(c.J,Me({},y)),[v]:o.length?Object(pe.jsx)(c.Q,Me({},y)):null}[i]||Object(pe.jsx)(c.v,Me({},y));return Object(pe.jsxs)(a.a.Fragment,{children:[Object(pe.jsx)("div",{"data-filter-section":i,children:w}),t<L.length-1?Te||(Te=Object(pe.jsx)(C.ODSDivider,{variant:"horizontal"})):null]},i)})})]})};function Ge(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ze(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ge(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var He=e=>{var t,{categoryId:i,search:a,open:l,onOpenChange:o,urlFiltersData:s,applyFilterSelection:d,clearAllFilters:u,refetchUrlFilters:b}=e,{contractJourneyTranslation:p}=Object(_.a)(),g=Object(n.useCallback)(e=>String(p(e)),[p]),m=Object(c.dd)(c.Nc.above_767)?"large":"small",v=Object(r.d)(c.Mb),O=Object(r.d)(c.Gb),f=Object(r.d)(c.hc),j=Object(r.d)(e=>Object(c.gc)(e,"color")),y=Object(r.d)(e=>Object(c.gc)(e,"storage")),x=Object(r.d)(c.Bb),S=Object(r.d)(c.Lb),w=Object(r.d)(c.bc),I=Object(r.d)(c.Sb),T=Object(r.d)(c.Ec),D=Object(r.d)(c.Qb),P=Object(n.useMemo)(()=>Object(c.Pb)(a),[a]),[N,L]=Object(n.useState)(P),[E,A]=Object(n.useState)(!1),k=Object(n.useRef)(!1);Object(n.useEffect)(()=>{k.current&&!l&&Object(h.H)(h.d.ADVANCED_FILTERS_SELECTION,"",{elementTitle:h.d.ADVANCED_FILTERS_SELECTION,elementValue:h.e.CLOSE_ICON_CLICKED}),k.current=l},[l]);var F=De(i,l,N,E),B=Object(n.useMemo)(()=>{var e,t,i;return null!==(e=null!==(t=null===(i=F.data)||void 0===i?void 0:i.filterCharacteristics)&&void 0!==t?t:null==s?void 0:s.filterCharacteristics)&&void 0!==e?e:[]},[null===(t=F.data)||void 0===t?void 0:t.filterCharacteristics,null==s?void 0:s.filterCharacteristics]),R=Object(n.useMemo)(()=>B.find(e=>{var{id:t}=e;return t===x}
1),[B,x]),M=l&&F.isFetching&&!F.data,U=Object(n.useCallback)(()=>{o(!1)},[o]),G=(e=>{var{selected:t,setSelected:i,changed:a,setChanged:r,initialSelection:l,sheetOpen:o,filters:s,brandsFilter:d,dv2Enabled:u,onApplyFilterOnly:b,onClearUrl:p,onClose:g,onRefreshFacetsFromUrl:m}=e;Object(n.useEffect)(()=>{o&&(i(Ie({},l)),r(!1))},[o,l,i,r]);var v=Object(n.useCallback)((e,i)=>{var n;return(null!==(n=t[e])&&void 0!==n?n:[]).some(e=>e.toLocaleLowerCase()===i.toLocaleLowerCase())},[t]),h=Object(n.useCallback)((e,t)=>{var i,n,a,r,l=s.filter(e=>e.id===t),o=null;l.length>0&&(o=u?null===(i=l[0])||void 0===i||null===(n=i.data)||void 0===n?void 0:n.find(t=>{var{value:i}=t;return i.toLocaleLowerCase()===e.toLocaleLowerCase()}):null===(a=l[0])||void 0===a||null===(r=a.data)||void 0===r?void 0:r.find(t=>{var{name:i}=t;return i.toLocaleLowerCase()===e.toLocaleLowerCase()}));return o?Object(c.xb)(o.name,o.quantity):""},[s,u]);return{isSelected:v,getValue:Object(n.useCallback)(e=>{var i,n=null!==(i=t[e])&&void 0!==i?i:[];return n.length?[+n[0].split("-")[0],+n[n.length-1].split("-")[1]]:[]},[t]),getSelectedFilterName:h,getBrandName:Object(n.useCallback)(e=>{var t,i=null!==(t=null==d?void 0:d.data)&&void 0!==t?t:[],n=u?i.find(t=>{var{value:i}=t;return i.toLocaleLowerCase()===e.toLocaleLowerCase()}):i.find(t=>{var{name:i}=t;return i.toLocaleLowerCase()===e.toLocaleLowerCase()});return n?Object(c.xb)(n.name,n.quantity):""},[null==d?void 0:d.data,u]),handleFilterSelect:Object(n.useCallback)((e,t)=>{i(i=>Object(c.hb)(e,t,i)),r(!0)},[i,r]),handlePriceRangeFilterSelect:Object(n.useCallback)((e,t)=>{i(i=>((i[e]||[]).join("|")!==(t||[]).join("|")&&r(!0),Ie(Ie({},i),{},{[e]:t})))},[i,r]),handleFilterRemove:Object(n.useCallback)((e,t)=>{if(e===c.b.BFF_PRICE_RANGE_ID)return i(e=>{var t=Ie({},e);return delete t[c.b.BFF_PRICE_RANGE_ID],t}),void r(!0);i(i=>Object(c.hb)(e,null!=t?t:"",i)),r(!0)},[i,r]),handleApply:Object(n.useCallback)(()=>{var e=Ie({},t);delete e[c.b.SORTING_LIST],b(e)},[t,b]),handleReset:Object(n.useCallback)(()=>{var e=a;i({}),r(!1),p(),e&&m()},[a,i,r,p,m]),handlePanelClose:Object(n.useCallback)(()=>{g(),a&&m()},[a,g,m])}})({selected:N,setSelected:L,changed:E,setChanged:A,initialSelection:P,sheetOpen:l,filters:B,brandsFilter:R,dv2Enabled:f,onApplyFilterOnly:d,onClearUrl:u,onClose:U,onRefreshFacetsFromUrl:b});return Object(pe.jsx)(c.K,{open:l,onOpenChange:e=>{e?o(!0):G.handlePanelClose()},children:Object(pe.jsx)(Le,{"data-mode":"light","data-scheme":"neutral",side:"right",animateFromBottomOnSmallViewport:!0,showImage:!1,showTitle:!0,showCloseButton:!0,closeButtonLabel:g("filterSheetCloseLabel"),onCloseButtonClick:()=>{G.handlePanelClose()},stickyButtons:!0,titleSlot:Object(pe.jsx)(C.ODSSheetTitleLabel,{titleLabel:g("filterSheetTitle")}),actionSlot:Object(pe.jsxs)(Ae,{children:[Object(pe.jsx)(C.ODSButton,{variant:"outline",label:g("resetFilters"),size:m,onClick:()=>{Object(h.F)(ze({},N),g("resetFilters"),x),G.handleReset()}}),Object(pe.jsx)(C.ODSButton,{variant:"primary",label:g("applyFilters"),size:m,onClick:()=>{Object(h.p)(ze({},N),g("applyFilters"),x),G.handleApply(),o(!1)}})]}),children:Object(pe.jsx)(Ue,{isLoading:M,loadingText:g("loadingTextForFilter"),filterCheckboxSize:"small",colorSwatchPresentation:"filtersheet",filters:B,hardwareSoloFilter:D,contractJourneyTranslation:g,colorKey:j,storageKey:y,brandFilterKey:x,deviceTypeFilterKey:S,operatingSystemFilterKey:w,installmentPriceFilterKey:I,dv2Enabled:f,dutyFreeText:v,currencySymbol:O,isBrandLogosAndColorRedesignEnabled:T,selected:N,isSelected:G.isSelected,getValue:G.getValue,getSelectedFilterName:G.getSelectedFilterName,getBrandName:G.getBrandName,onFilterSelect:G.handleFilterSelect,onPriceRangeFilterSelect:G.handlePriceRangeFilterSelect,onFilterRemove:G.handleFilterRemove})})})},Ve=i(433),qe=()=>{var e;return(null!==(e=Object(r.d)(e=>Object(c.Zb)(e,"contractJourney")))&&void 0!==e?e:Ve.a).deviceListing},Ke=i(593),Ye=e=>{var t=e[c.b.SORTING_LIST];return null==t?"":Array.isArray(t)?null!=t[0]?String(t[0]):"":String(t)};function We(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}var Je,Qe=e=>{if(c.Ac&&"location"in c.Ac){var t=e.startsWith("?")?e:"?".concat(e);c.Ac.replace({pathname:c.Ac.location.pathname,search:t})}},Ze=e=>{var t=Object(Ke.b)(),i=Object(n.useCallback)(i=>{if(e){var n=i.startsWith("?")?i:"?".concat(i);((e,t,i)=>{var n=ae(i);
1e.invalidateQueries({queryKey:le.productsInfinitePrefix(t,n)}),e.invalidateQueries({queryKey:le.filters(t,n)})})(t,e,n)}},[e,t]);return{toggleQuickFilter:Object(n.useCallback)((t,n)=>{if(c.Ac&&"location"in c.Ac&&e){var a=c.Ac.location.search||"",r=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?We(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):We(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},Object(c.Pb)(a));delete r[c.b.SORTING_LIST];var l=Object(c.hb)(t,n,r),o=Object(c.Rc)(l),s=Object(c.Zc)(a,[{key:"filter[]",value:null},{key:"filter[]",value:o}],!0);Qe(s),i(s)}},[i,e]),setSortBy:Object(n.useCallback)(t=>{if(c.Ac&&"location"in c.Ac&&e){var n=c.Ac.location.search||"",a=Object(c.Zc)(n,[{key:c.b.SORTING_LIST,value:t}],!0);Qe(a),i(a)}},[i,e]),applyFilterSelection:Object(n.useCallback)(t=>{if(c.Ac&&"location"in c.Ac&&e){var n=((e,t)=>{var i=e.startsWith("?")?e:"?".concat(e),n=Object(c.Pb)(i),a=Ye(n),r=Object(c.Rc)(t),l=Object(c.Zc)(i,[{key:"filter[]",value:null},{key:"filter[]",value:r}],!0);return a&&(l=Object(c.Zc)(l,[{key:c.b.SORTING_LIST,value:a}],!0)),l.startsWith("?")?l:"?".concat(l)})(c.Ac.location.search||"",t);Qe(n),i(n)}},[i,e]),clearAllFilters:Object(n.useCallback)(()=>{if(c.Ac&&"location"in c.Ac&&e){var t=(e=>{var t=e.startsWith("?")?e:"?".concat(e),i=Object(c.Pb)(t),n=Ye(i),a=Object(c.Zc)(t,[{key:"filter[]",value:null},{key:"filter[]",value:[]}],!0);return n&&(a=Object(c.Zc)(a,[{key:c.b.SORTING_LIST,value:n}],!0)),a.startsWith("?")?a:"?".concat(a)})(c.Ac.location.search||"");Qe(t),i(t)}},[i,e])}},Xe=S.default.div.withConfig({displayName:"ProductCardSkeletonRoot",componentId:"sc-1t5mi6b-3"})(["display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--spacing-component-3);"]),$e=S.default.div.withConfig({displayName:"ProductCardSkeletonImage",componentId:"sc-1t5mi6b-4"})(["width:100%;height:200px;border-radius:var(--radius-large);overflow:hidden;.ODSSkeleton{width:100%;height:100%;}"]),et=S.default.div.withConfig({displayName:"ProductCardSkeletonLines",componentId:"sc-1t5mi6b-5"})(["display:flex;flex-direction:column;gap:var(--spacing-component-2);width:100%;& > *:nth-child(2){width:72%;}& > *:nth-child(3){width:88%;}"]),tt=S.default.div.withConfig({displayName:"PlanSectionLabelSkeleton",componentId:"sc-1t5mi6b-6"})(["width:12rem;max-width:70%;height:1.25rem;border-radius:var(--radius-small);overflow:hidden;.ODSSkeleton{width:100%;height:100%;}"]),it=S.default.div.withConfig({displayName:"PlanCardSkeletonBlock",componentId:"sc-1t5mi6b-7"})(["width:100%;min-height:5.5rem;border-radius:var(--radius-medium);overflow:hidden;.ODSSkeleton{width:100%;min-height:5.5rem;}"]),nt=Object(S.default)(it).withConfig({displayName:"SelectedPlanCardSkeletonBlock",componentId:"sc-1t5mi6b-8"})(["box-sizing:border-box;max-width:28rem;"]),at=S.default.div.withConfig({displayName:"PlanSubtitleSkeleton",componentId:"sc-1t5mi6b-9"})(["width:14rem;max-width:85%;height:1.5rem;border-radius:var(--radius-small);overflow:hidden;.ODSSkeleton{width:100%;height:100%;}"]),rt=S.default.div.withConfig({displayName:"SkeletonTextLine",componentId:"sc-1t5mi6b-10"})(["width:100%;min-height:0.875rem;border-radius:var(--radius-small);overflow:hidden;flex-shrink:0;.ODSSkeleton{width:100%;height:100%;min-height:0.875rem;}"]),lt=e=>Je||(Je=Object(pe.jsx)(I,{children:Object(pe.jsx)(it,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"medium"})})})),ot=(e,t)=>{var i=null!=e?e:{};return Object.entries(i).reduce((e,i)=>{var[n,a]=i;return n===c.b.SORTING_LIST?e:n===c.b.BFF_PRICE_RANGE_ID?null!=a&&a.length?e+1:e:t&&n===t?e:e+(a||[]).length},0)};function ct(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function st(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?ct(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ct(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var dt,ut,bt,pt,gt,mt,vt,ht,Ot=e=>{var{categoryId:t,search:i,filtersResponse:a,filtersLoading:l,initialListLoading:o=!1,filtersQueryRefetch:s,openFilterSheet:d=0,listingDefaultSortBy:u=null}=e,b=Object(r.d)(c.hc),{contractJourneyTranslation:p}=Object(_.a)(),g=String(p("sortByTitle")),m=String(p("sortByDropdownLabel")),{showFilters:v=!0}=qe(),{toggleQuickFilter:O,setSortBy:f,applyFilterSelection:j,clearAllFilters:y}=Ze(t),x=Object(r.d)(c.Bb),S=Object(r.d)(c.Qb),[C,w]=Object(n.useState)(!1),T=v;Object(n.useEffect)(()=>{d>0&&w(!0)},[d]);var D=Object(n.useMemo)(()=>Object(c.Pb)(i),[i]),P=Object(n.useMemo)(()=>ot(D,S),[D,S]),N=Object(n.useMemo)(()=>{var e=D[c.b.SORTING_LIST];return"string"==typeof e&&e.length>0},[D]),L=Object(n.useCallback)(()=>{Promise.resolve(s()).catch(e=>Object(c.Lc)(e))},[s]),E=Object(n.useMemo)(()=>((e,t,i)=>{var n;if(null==e||null===(n=e.quickFiltersCharacteristics)||void 0===n||!n.length)return[];var a=Object(c.Pb)(t);return e.quickFiltersCharacteristics.reduce((e,t)=>[...e,...t.data.map(e=>{var n,r=i?e.value:e.name,l=!(null==a||!a[t.id])&&(null===(n=a[t.id])||void 0===n?void 0:n.includes(r));return st(st({},e),{},{id:t.id,isSelected:l})})],[])})(null!=a?a:null,i,b),[a,i,b]),A=Object(n.useMemo)(()=>{var e,t=null==a||null===(e=a.filterCharacteristics)||void 0===e?void 0:e.find(e=>{var{id:t}=e;return t===c.b.SORTING_LIST}),n=Object(c.Pb)(i)[c.b.SORTING_LIST],r="string"==typeof n?n:"";return((null==t?void 0:t.data)||[]).map(e=>{var t,{value:i,isSelected:n}=e;return t=r?r===i:u?u===i:n,{id:i,title:String(p(i))||i,isSelected:t}})},[a,i,p,u]),k=A.find(e=>{var{isSelected:t}=e;return t}),F=N||Boolean(u&&k),B=A.length>0,R=T||B;if(o||l&&!a)return Object(pe.jsx)(lt,{showFilterMenuChip:T,showSortControl:B});var M=P>0?{appliedCount:P}:{};return Object(pe.jsxs)(I,{children:[Object(pe.jsx)(c.W,{children:Object(pe.jsxs)(be,{children:[R?Object(pe.jsxs)(de,{children:[T?Object(pe.jsx)(ge,st(st({label:String(p("filterChipCta"))},M),{},{onClick:()=>{Object(h.I)(h.d.ADVANCED_FILTERS_SELECTION,window.location.href,"","","",{elementTitle:h.d.ADVANCED_FILTERS_SELECTION}),Object(h.r)(String(p("filterChipCta")),window.location.href),w(!0)}})):null,B?Object(pe.jsx)(Ce,{sortByTitle:g,sortControlAriaScope:m,options:A,selectedSortId:null==k?void 0:k.id,sortAppliedInUrl:F,onSelect:e=>{f(e)}}):null]}):null,E.map(e=>{var{name:t,value:i,isSelected:n,id:a=""}=e;return Object(pe.jsx)(me,{label:t,filterValueSlug:i,selected:n,onToggle:()=>{var e=b?i:t;if(a===x&&!n){var r,l=null!==(r=D[x])&&void 0!==r?r:[];Object(h.q)([...l,e],e)}O(a,e)}},"".concat(a,"-").concat(i))})]})}),T?Object(pe.jsx)(He,{categoryId:t,search:i,open:C,onOpenChange:w,urlFiltersData:a,applyFilterSelection:j,clearAllFilters:y,refetchUrlFilters:L}):null]})},ft=S.default.div.withConfig({displayName:"SelectedPlanCardRoot",componentId:"sc-1tim1cp-0"})(["width:100%;min-width:0;.ODSCardBasic-Content{flex-direction:row;align-items:center;justify-content:space-between;column-gap:var(--spacing-layout-2);width:100%;}.ODSCardBasic-Content-Slot{flex:1 1 auto;min-width:0;}.ODSCardBasic.ODSCardBasic--size-small .ODSCardBasic-Actions-Slot{margin-top:0;flex-shrink:0;}"]),jt=S.default.div.withConfig({displayName:"SelectedPlanCardChangeWrap",componentId:"sc-1tim1cp-1"})(["display:flex;align-items:center;justify-content:flex-end;"]),yt=S.default.div.withConfig({displayName:"SelectedPlanCardContent",componentId:"sc-1tim1cp-2"})(["display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-component-2);min-width:0;"]),xt=e=>{var{primaryLine:t,secondaryLine:i,changeButtonLabel:n,changeButtonAriaLabel:a,onChangePlan:r}=e;return Object(pe.jsx)(ft,{children:Object(pe.jsx)(C.ODSCardBasic,{size:"small",customHeight:!1,contentSlot:Object(pe.jsxs)(yt,{children:[t?Object(pe.jsx)(c.L,{as:"p",variant:"title_s",children:t}):null,i?Object(pe.jsx)(c.L,{as:"p",variant:"body_m",weight:"bold",children:i}):null]}),actionSlot:Object(pe.jsx)(jt,{children:Object(pe.jsx)(C.ODSButton,{label:n,variant:"secondary",size:"small",onClick:r,"aria-label":a})})})})},St=()=>
1dt||(dt=Object(pe.jsxs)(N,{"aria-hidden":!0,children:[Object(pe.jsx)(tt,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"small"})}),Object(pe.jsx)(nt,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"large"})}),Object(pe.jsx)(L,{children:Object(pe.jsx)(at,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"small"})})})]})),Ct=e=>{var{showSelectedPlanSection:t,showPlanBlockSkeleton:i=!1,selectedPlanDisplay:n,onBackOrChangePlan:a,contractJourneyTranslation:r}=e;return Object(pe.jsxs)(P,{children:[i?ut||(ut=Object(pe.jsx)(St,{})):null,t?Object(pe.jsxs)(N,{children:[Object(pe.jsx)(c.L,{as:"p",variant:"body_m",weight:"bold",children:r("selectedPlanSectionLabel")}),Object(pe.jsx)(xt,{primaryLine:n.primaryLine,secondaryLine:n.secondaryLine,changeButtonLabel:r("selectedPlanChangeButton"),changeButtonAriaLabel:r("selectedPlanChangeButtonAriaLabel"),onChangePlan:a}),Object(pe.jsx)(L,{children:Object(pe.jsx)(c.L,{as:"p",variant:"title_s",children:r("chooseDeviceSubtitle")})})]}):null]})},wt=i(3629),It=()=>Object(pe.jsx)("svg",{preserveAspectRatio:"none",width:"100%",height:"100%",overflow:"visible",style:{display:"block"},viewBox:"0 0 200 232",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,focusable:!1,children:bt||(bt=Object(pe.jsx)("g",{id:"device-listing-filtered-empty-illustration",children:Object(pe.jsx)("path",{id:"device-listing-filtered-empty-illustration-union",d:"M150 16C177.614 16.0002 200 38.3859 200 66C200 93.6141 177.614 116 150 116H148C121.49 116 100 137.49 100 164V166C100 193.614 77.6141 216 50 216C22.3858 216 -1.20705e-06 193.614 0 166C1.20705e-06 138.386 22.3858 116 50 116C22.3858 116 -2.66298e-07 93.6142 0 66C2.41411e-06 38.3858 22.3858 16 50 16C50.2158 16 50.4313 16.0012 50.6465 16.0039C52.3671 16.0257 54.0667 16.1347 55.7412 16.3262C56.1598 16.374 56.5768 16.4272 56.9922 16.4854C58.031 16.6307 59.0598 16.8074 60.0771 17.0156C60.4839 17.0989 60.8889 17.1872 61.292 17.2803C65.7272 18.3041 69.9364 19.9184 73.833 22.0352C74.8955 22.6124 75.935 23.2267 76.9492 23.877C77.2873 24.0937 77.6226 24.3145 77.9551 24.5391C78.6203 24.9885 79.2741 25.4535 79.916 25.9336C81.841 27.3732 83.659 28.9481 85.3555 30.6445C86.2037 31.4928 87.0218 32.3712 87.8076 33.2783C90.4271 36.3023 92.6897 39.6439 94.5303 43.2373C95.0825 44.3154 95.5959 45.4164 96.0703 46.5381C96.3074 47.0987 96.5349 47.6645 96.752 48.2354C96.9691 48.8066 97.1764 49.3828 97.373 49.9639C97.4385 50.1574 97.5032 50.3513 97.5664 50.5459C97.6928 50.9351 97.8146 51.3264 97.9316 51.7197C98.0487 52.1132 98.161 52.5088 98.2686 52.9062C98.5374 53.8998 98.7762 54.9058 98.9844 55.9229C99.0677 56.3299 99.1454 56.7388 99.2188 57.1494C99.3287 57.7651 99.4274 58.3846 99.5146 59.0078C99.5437 59.2154 99.5721 59.4234 99.5986 59.6318C99.7047 60.4661 99.7901 61.3068 99.8545 62.1533C99.9511 63.4229 100 64.7057 100 66C100 38.3858 122.386 16 150 16ZM148 128C168.987 128 186 145.013 186 166C186 175.096 182.802 183.444 177.472 189.985L198.707 211.221C199.683 212.197 199.682 213.78 198.706 214.756C197.73 215.732 196.147 215.732 195.171 214.756L174.065 193.648C167.261 200.065 158.091 204 148 204C127.013 204 110 186.987 110 166C110 145.013 127.013 128 148 128ZM148 133C129.775 133 115 147.775 115 166C115 184.225 129.775 199 148 199C166.225 199 181 184.225 181 166C181 147.775 166.225 133 148 133ZM50.499 21.5049C25.6489 21.5051 5.50391 41.6498 5.50391 66.5C5.50396 91.3502 25.6489 111.495 50.499 111.495H95.4951V66.5C95.4951 41.6497 75.3493 21.5049 50.499 21.5049Z",fill:"var(--fill-0, #F1F1F1)"})}))}),Tt=S.default.div.withConfig({displayName:"EmptyStateRoot",componentId:"sc-1wng3s8-0"})(["grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--spacing-layout-5);width:100%;box-sizing:border-box;padding:var(--spacing-component-5) var(--spacing-component-0);@media ","{flex-direction:row;align-items:center;gap:var(--spacing-layout-6);}"],c.Nc.above_767),Dt=S.default.div.withConfig({displayName:"IllustrationWrap",componentId:"sc-1wng3s8-1"})(["flex-shrink:0;width:200px;height:232px;position:relative;max-width:100%;img,svg{display:block;width:100%;height:100%;object-fit:contain;}"]),Pt=S.default.div.withConfig({displayName:"TextBlock",componentId:"sc-1wng3s8-2"})(["display:flex;flex-direction:column;align-items:center;gap:var(--spacing-component-7);min-width:0;flex:1 1 auto;width:100%;max-width:100%;@media ","{align-items:flex-start;}"],c.Nc.above_767),Nt=S.default.div.withConfig({displayName:"TextHeader",componentId:"sc-1wng3s8-3"})(["display:flex;flex-direction:column;align-items:center;gap:var(--spacing-component-5);width:100%;text-align:center;@media ","{align-items:flex-start;text-align:start;}.listing-filtered-empty-title{margin:0;width:100%;font:var(--subtitle);letter-spacing:var(--subtitle-letter-spacing);line-height:var(--subtitle-line-height);color:var(--colours-basic-text);}.listing-filtered-empty-description{margin:0;width:100%;font:var(--body-m-bold);letter-spacing:var(--body-m-bold-letter-spacing);line-height:var(--body-m-bold-line-height);color:var(--colours-basic-text-recessive,#616161);}"],c.Nc.above_767),Lt=S.default.div.withConfig({displayName:"ActionsRow",componentId:"sc-1wng3s8-4"})(["display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--spacing-component-3);width:100%;@media ","{justify-content:flex-start;}"],c.Nc.above_767),Et=e=>{var{title:t,description:i,showAllDevicesLabel:n,editFiltersLabel:a,onShowAllDevices:r,onEditFilters:l,showEditFiltersButton:o=!0}=e;return Object(pe.jsxs)(Tt,{role:"status","aria-live":"polite",children:[pt||(pt=Object(pe.jsx)(Dt,{"aria-hidden":!0,
1children:Object(pe.jsx)(It,{})})),Object(pe.jsxs)(Pt,{children:[Object(pe.jsxs)(Nt,{children:[Object(pe.jsx)(C.ODSText,{as:"h2",className:"listing-filtered-empty-title",children:t}),Object(pe.jsx)(C.ODSText,{as:"p",className:"listing-filtered-empty-description",children:i})]}),Object(pe.jsxs)(Lt,{children:[Object(pe.jsx)(C.ODSButton,{type:"button",label:n,variant:"primary",size:"small",onClick:r}),o?Object(pe.jsx)(C.ODSButton,{type:"button",label:a,variant:"outline",size:"small",onClick:l}):null]})]})]})},At=()=>gt||(gt=Object(pe.jsxs)(Xe,{children:[Object(pe.jsx)($e,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"large"})}),Object(pe.jsxs)(et,{children:[Object(pe.jsx)(rt,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"small"})}),Object(pe.jsx)(rt,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"small"})}),Object(pe.jsx)(rt,{children:Object(pe.jsx)(C.ODSSkeleton,{variant:"medium"})})]})]})),kt=i(19),_t=i(3170),Ft=i(18),Bt=i(3228),Rt=S.default.div.withConfig({displayName:"CardOuter",componentId:"sc-gsi6xp-0"})(["position:relative;width:100%;min-width:0;opacity:",";pointer-events:",";"],e=>{var{disabled:t}=e;return t?.65:1},e=>{var{disabled:t}=e;return t?"none":"auto"}),Mt=S.default.div.withConfig({displayName:"OdsCardProductShell",componentId:"sc-gsi6xp-1"})([".ODSCardProduct-CardBg{z-index:0;}.ODSProductCardTopContent{z-index:1;}"]),Ut=S.default.div.withConfig({displayName:"ContentSlotStack",componentId:"sc-gsi6xp-3"})(["display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-component-3);width:100%;max-width:100%;box-sizing:border-box;text-align:start;.prolongation-product-card__storage-hint{font:var(--body-m-regular);letter-spacing:var(--body-m-regular-letter-spacing);color:var(--colours-basic-text-recessive);}"]),Gt=S.default.div.withConfig({displayName:"VariantRow",componentId:"sc-gsi6xp-4"})(["display:flex;justify-content:flex-start;flex-flow:row wrap;align-items:flex-start;gap:var(--spacing-component-3);"]),zt=S.default.div.withConfig({displayName:"ProductCardColorsWrap",componentId:"sc-gsi6xp-5"})(["display:inline-flex;justify-content:flex-start;.ODSProductCardColors{padding:0;}"]),Ht=S.default.span.withConfig({displayName:"VariantDivider",componentId:"sc-gsi6xp-6"})(["font:var(--body-m-regular);letter-spacing:var(--body-m-regular-letter-spacing);color:var(--colours-basic-text-recessive);"]),Vt=S.default.div.withConfig({displayName:"BundleImageSlot",componentId:"sc-gsi6xp-7"})(["display:flex;align-items:center;justify-content:center;gap:var(--spacing-component-2);width:100%;max-width:100%;min-width:0;height:100%;"]),qt=S.default.img.withConfig({displayName:"BundleImage",componentId:"sc-gsi6xp-8"})(["height:100%;"]),Kt=S.default.div.withConfig({displayName:"BundleImagePlusIcon",componentId:"sc-gsi6xp-9"})(["flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--colours-shades-neutral-shades-200,#ddd);width:2rem;height:2rem;border-radius:50%;@media ","{margin:0 var(--spacing-component-5);}"],c.Nc.above_767),Yt=S.default.div.withConfig({displayName:"BundleAddonStack",componentId:"sc-gsi6xp-10"})(["display:flex;flex-direction:column;align-items:center;justify-content:space-around;gap:var(--spacing-component-1);max-width:30%;height:100%;"]),Wt=S.default.img.withConfig({displayName:"BundleStackedAddonImage",componentId:"sc-gsi6xp-11"})(["flex:0 0 auto;max-width:3.25rem;max-height:3.25rem;object-fit:contain;"]),Jt=S.default.img.withConfig({displayName:"BundleAddonImage",componentId:"sc-gsi6xp-12"})(["flex:0 0 auto;max-width:3.25rem;max-height:3.25rem;width:auto;height:auto;object-fit:contain;"]),Qt=e=>{var{title:t,safeColors:i,storageHint:n,addonsData:a=[]}=e;return Object(pe.jsxs)(Ut,{children:[Object(pe.jsx)(C.ODSProductCardDescriptiveText,{heading:t,titleHeading:"h3"}),(i.length>0||n)&&Object(pe.jsxs)(Gt,{children:[i.length>0?Object(pe.jsx)(zt,{children:Object(pe.jsx)(C.ODSProductCardColors,{colors:i})}):null,i.length>0&&n?mt||(mt=Object(pe.jsx)(Ht,{"aria-hidden":!0,children:"|"})):null,n?Object(pe.jsx)(C.ODSText,{as:"span",className:"prolongation-product-card__storage-hint",children:n}):null]}),a.length>0&&a.map((e,t)=>{var{name:i}=e;return i&&Object(pe.jsxs)(C.ODSText,{as:"span",children:["+ ",i]},t)})]})},Zt=i(748),Xt=()=>
1vt||(vt=Object(pe.jsx)(Kt,{"aria-hidden":!0,children:Object(pe.jsx)(Zt.default,{color:"currentColor"})})),$t=e=>{var{imageUrl:t,alt:i,addonsData:n=[]}=e,a=(e=>e.flatMap(e=>{var t,i,n,a,r,l=null===(t=e.imageInfo)||void 0===t?void 0:t.url;return l?[{url:l,alt:null!==(i=null===(n=e.imageInfo)||void 0===n||null===(a=n.translations)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.description)&&void 0!==i?i:e.name}]:[]}))(n);return t||0!==a.length?a.length>=2?Object(pe.jsxs)(Vt,{children:[t?Object(pe.jsx)(qt,{src:t,alt:i}):null,Xt(),Object(pe.jsx)(Yt,{children:a.map((e,t)=>{var{url:i,alt:n}=e;return Object(pe.jsx)(Wt,{src:i,alt:n},t)})})]}):1===a.length?Object(pe.jsxs)(Vt,{children:[t?Object(pe.jsx)(qt,{src:t,alt:i}):null,Xt(),Object(pe.jsx)(Jt,{src:a[0].url,alt:a[0].alt})]}):Object(pe.jsx)("img",{src:t,alt:i}):null},ei=i(95),ti=S.default.div.withConfig({displayName:"PriceSlotRoot",componentId:"sc-1hepn3c-0"})(["display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-component-3);width:100%;max-width:100%;min-width:0;box-sizing:border-box;"]),ii=S.default.div.withConfig({displayName:"DiscountedPriceBlock",componentId:"sc-1hepn3c-1"})(["display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-component-0);width:100%;"]),ni=S.default.p.withConfig({displayName:"StartingLabel",componentId:"sc-1hepn3c-2"})(["margin:0;width:100%;font:var(--body-s-bold);letter-spacing:var(--body-s-bold-letter-spacing);line-height:var(--body-s-bold-line-height);color:var(--colours-basic-text-recessive,var(--colours-basic-text));"]),ai=S.default.div.withConfig({displayName:"RetailPriceRow",componentId:"sc-1hepn3c-3"})(["display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--spacing-component-3);min-height:26px;width:100%;"]),ri=S.default.span.withConfig({displayName:"MainRetailPrice",componentId:"sc-1hepn3c-4"})(["flex-shrink:0;margin:0;margin-top:0.4rem;font:var(--subtitle);letter-spacing:var(--subtitle-letter-spacing);line-height:var(--subtitle-line-height);color:var(--colours-basic-text);white-space:nowrap;"]),li=S.default.div.withConfig({displayName:"PriceSavingsCluster",componentId:"sc-1hepn3c-5"})(["display:flex;flex:1 1 0;min-width:0;align-items:flex-end;justify-content:flex-start;gap:var(--spacing-component-3);"]),oi=S.default.div.withConfig({displayName:"BeforePriceStrikeWrap",componentId:"sc-1hepn3c-6"})(["position:relative;display:flex;flex-direction:column;align-items:flex-start;flex-shrink:0;min-width:0;"]),ci=S.default.span.withConfig({displayName:"BeforePriceText",componentId:"sc-1hepn3c-7"})(["font:var(--body-s-bold);letter-spacing:var(--body-s-bold-letter-spacing);line-height:var(--body-s-bold-line-height);color:var(--colours-basic-text-recessive,var(--colours-basic-text));white-space:nowrap;"]),si=S.default.span.withConfig({displayName:"StrikeThroughRule",componentId:"sc-1hepn3c-8"})(["position:absolute;left:0;right:0;top:50%;height:2px;transform:translateY(-50%);background-color:var(--colours-basic-text-recessive,var(--colours-basic-text));"]),di=S.default.div.withConfig({displayName:"TagWrap",componentId:"sc-1hepn3c-9"})(["flex-shrink:0;"]),ui=S.default.div.withConfig({displayName:"InstallmentsBlock",componentId:"sc-1hepn3c-10"})(["display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-component-0);width:100%;"]),bi=S.default.div.withConfig({displayName:"InstallmentPricingRow",componentId:"sc-1hepn3c-11"})(["display:flex;flex-wrap:nowrap;align-items:baseline;gap:var(--spacing-component-1);width:100%;min-width:0;.prolongation-product-card-price-slot__installment-amount{flex:0 0 auto;line-height:var(--title-s-line-height);color:var(--colours-basic-text);white-space:nowrap;}.prolongation-product-card-price-slot__installment-suffix{flex:1 1 auto;min-width:0;line-height:var(--body-s-bold-line-height);color:var(--colours-basic-text-recessive,var(--colours-basic-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"]),pi=S.default.p.withConfig({displayName:"InstallmentMetaText",componentId:"sc-1hepn3c-12"})(["margin:0;width:100%;font:var(--body-s-bold);letter-spacing:var(--body-s-bold-letter-spacing);line-height:var(--body-s-bold-line-height);color:var(--colours-basic-text-recessive,var(--colours-basic-text));"]),gi=e=>{var t;return(null!==(t=null==e?void 0:e.trim().length)&&void 0!==t?t:0)>0},mi=e=>{var{installmentAmount:t,installmentSuffix:i,installmentTermsText:n,forwardTradeInAdditionallyText:a,supportText:r}=e,l=gi(t)&&gi(i),o=gi(n),s=gi(a);return Object(pe.jsxs)(ui,{children:[l?Object(pe.jsxs)(bi,{children:[Object(pe.jsx)(c.L,{as:"span",variant:"title_s",weight:"regular",className:"prolongation-product-card-price-slot__installment-amount",children:t}),Object(pe.jsx)(c.L,{as:"span",variant:"body_s",weight:"bold",className:"prolongation-product-card-price-slot__installment-suffix",children:i})]}):null,o?Object(pe.jsx)(pi,{children:n}
1):null,s?Object(pe.jsx)(pi,{children:a}):null,gi(r)?Object(pe.jsx)(pi,{children:r}):null]})},vi=e=>{var t;return(null!==(t=null==e?void 0:e.trim().length)&&void 0!==t?t:0)>0},hi=e=>{var{priceLabel:t,mainPrice:i,beforePrice:n,savingsTagLabel:a}=e,r=vi(n),l=vi(a),o=vi(i)||r||l;return Object(pe.jsxs)(ii,{children:[vi(t)?Object(pe.jsx)(ni,{children:t}):null,o?Object(pe.jsxs)(ai,{children:[vi(i)?Object(pe.jsx)(ri,{children:i}):null,r||l?Object(pe.jsxs)(li,{children:[r?Object(pe.jsxs)(oi,{children:[Object(pe.jsx)(ci,{children:n}),ht||(ht=Object(pe.jsx)(si,{"aria-hidden":!0}))]}):null,l?Object(pe.jsx)(di,{children:Object(pe.jsx)(C.ODSTagStatic,{label:a,type:"savings"})}):null]}):null]}):null]})},Oi=e=>{var{priceLabel:t,mainPrice:i,beforePrice:n,savingsTagLabel:a,installmentAmount:r,installmentSuffix:l,installmentTermsText:o,forwardTradeInAdditionallyText:c,supportText:s}=e,d=vi(t)||vi(i)||vi(n)||vi(a),u=vi(r)&&vi(l)||vi(s)||vi(o)||vi(c);return Object(pe.jsxs)(ti,{children:[d?Object(pe.jsx)(hi,{priceLabel:t,mainPrice:i,beforePrice:n,savingsTagLabel:a}):null,u?Object(pe.jsx)(mi,{installmentAmount:r,installmentSuffix:l,installmentTermsText:o,forwardTradeInAdditionallyText:c,supportText:s}):null]})},fi=i(510),ji=i(1389);function yi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function xi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):yi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Si=i(3768);function Ci(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function wi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ci(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Ii=(e,t,i)=>{var n=(e=>{var t,i,n=null===(t=e.installments)||void 0===t?void 0:t[0],a=null==n?void 0:n.totalPrice,r=null==n?void 0:n.totalPriceWithoutDiscount,l=null!==(i=null==n?void 0:n.appliedDiscount)&&void 0!==i?i:0,o=l>0?-l:l;return null==n||null==a||a<=0?null:xi(xi({},null!=r&&r>0?{totalPriceWithoutDiscount:r}:{}),{},{appliedDiscount:o,totalPrice:a})})(e.price);if(n)return((e,t,i)=>wi(wi({primaryPrice:Object(Si.a)(e.totalPrice,t,i)},null!=e.totalPriceWithoutDiscount&&e.totalPriceWithoutDiscount!==e.totalPrice?{beforePrice:Object(Si.a)(e.totalPriceWithoutDiscount,t,i)}:{}),0!==e.appliedDiscount?{savingsTagLabel:Object(Si.a)(e.appliedDiscount,t,i)}:{}))(n,t,i);var{price:a}=e;return null!=a.strikeThroughPrice&&a.strikeThroughPrice>0&&null!=a.basePrice&&a.basePrice>0?((e,t,i)=>({beforePrice:Object(Si.a)(e.strikeThroughPrice,t,i),primaryPrice:Object(Si.a)(e.basePrice,t,i)}))(a,t,i):{primaryPrice:Object(c.yb)(a,t,i,Si.a)}},Ti=e=>{var t;return null===(t=e.installments)||void 0===t?void 0:t[0]},Di=(e,t,i,n,a)=>{var r,l,{price:o}=e,c=Ti(o),s=e.numberOfInstallment>0?e.numberOfInstallment:null!==(r=null==c?void 0:c.numberOfInstallments)&&void 0!==r?r:0,d=Object(fi.b)(c),u=Object(fi.a)(s,d),b=null==c?void 0:c.recurringPrice,p=null!=b&&b>0?Object(Si.a)(b,t,i):"",g="";d?g=null!==(l=a.monthlyLabel)&&void 0!==l?l:n("perMonth"):u>0&&(g=n("perMonthForMonths").replace("{0}",String(u)));return{recurringFormatted:p,installmentSuffix:g,showInstallmentRow:u>0&&""!==p,rawMonths:s,displayMonths:u,hasBuyBackOrFti:d}},Pi=(e,t,i,n,a,r,l)=>{var o,c;if(!i||t<=0)return"";var s=e.upfrontPrice,d=null!=s&&s>0?Object(Si.a)(s,n,a):"",u=r("forMonthsPlusUpfront"),b=null!==(o=l.separator)&&void 0!==o?o:"+",p=null!==(c=l.upfrontLabel)&&void 0!==c?c:"";return u?d?u.replace("{0}",String(t)).replace("{1}",b).replace("{2}",d).replace("{3}",p).replace(/\s+/g," ").trim():u.replace("{0}",String(t)).replace("{1}","").replace("{2}","").replace("{3}","").replace(/\s+/g," ").trim():""},Ni=(e,t,i,n,a,r)=>{var l,o=r("forwardTradeInAdditionallyLabel"),c=Ti(e),s=null==c?void 0:c.totalPrice;if(!o||null==s||i<=0)return"";var d=o.replace(/\{0\}/g,"{2}").replace(/\{1\}/g,"{3}");return null!==(l=Object(ji.c)({termCount:t,totalAmount:s,buyBackAmount:null==c?void 0:c.buyBackPrice},d,n,a))&&void 0!==l?l:""},Li=(e,t,i,n,a)=>
1{if(t)return"";var r=e.upfrontPrice;return null!=r&&r>0?a("plusUpfront").replace("{0}",Object(Si.a)(r,i,n)):""},Ei=(e,t,i)=>"installmentsOnly"===e?{}:{priceLabel:t,mainPrice:i};function Ai(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}var ki=e=>{var{product:t,currencyConfig:i,hidePricesSection:a}=e,{contractJourneyTranslation:l}=Object(_.a)(),{monthlyLabel:o,upfrontLabel:c,separator:s}=Object(r.d)(ei.B),d=Object(n.useCallback)(e=>String(l(e)),[l]),u=Object(n.useMemo)(()=>function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{locale:a,currencySymbol:r}=t,{showInstallmentRow:l,recurringFormatted:o,installmentSuffix:c,rawMonths:s,displayMonths:d,hasBuyBackOrFti:u}=Di(e,a,r,i,n),{primaryPrice:b,beforePrice:p,savingsTagLabel:g}=Ii(e,a,r),m=Pi(e.price,d,u,a,r,i,n),v=Ni(e.price,s,d,a,r,i),h=Li(e.price,u,a,r,i),O=i("startingFromPriceLabel").trim();if(!b&&!l)return null;var f="oneTimeOnly";l&&b?f="oneTimeOrInstallments":l&&(f="installmentsOnly");var{mainPrice:j,priceLabel:y}=Ei(f,O,b);return wi(wi(wi(wi(wi(wi(wi(wi({},y?{priceLabel:y}:{}),j?{mainPrice:j}:{}),p?{beforePrice:p}:{}),g?{savingsTagLabel:g}:{}),l?{installmentAmount:o,installmentSuffix:c}:{}),m?{installmentTermsText:m}:{}),v?{forwardTradeInAdditionallyText:v}:{}),h?{supportText:h}:{})}(t,i,d,{monthlyLabel:o,upfrontLabel:c,separator:s}),[t,i,d,o,c,s]);return a||null===u?null:Object(pe.jsx)(Oi,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ai(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},u))},_i=e=>{var t,i,n,a,r,{productCardTagProps:l,linkAriaLabel:o,cardAction:s,title:d,thumbnail:u,safeColors:b,storageHint:p,addonsData:g,product:m,currencyConfig:v,hidePricesSection:h,isEUGuidelinesEnabled:O,primaryEnergy:f,energyLabelSheetTitle:j}=e,y=null!==(t=null==u||null===(i=u.url)||void 0===i?void 0:i.trim())&&void 0!==t?t:"",x=null!==(n=null==u||null===(a=u.translations)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.description)&&void 0!==n?n:d;return Object(pe.jsx)(Mt,{children:Object(pe.jsx)(C.ODSCardProduct,{size:"medium","aria-label":o,action:s,showColourSwatches:!1,imageSlot:Object(pe.jsx)($t,{imageUrl:y,alt:x,addonsData:g}),topContentSlot:Object(pe.jsx)(C.ODSProductCardTopContent,{size:"large",productCardTagProps:l,energyLabelSlot:O&&f?Object(pe.jsx)("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"group",children:Object(pe.jsx)(c.u,{url:f.energyLabel,energyEfficiencyClass:f.energyEfficiencyClass,productName:d,sheetTitle:j})}):null}),contentSlot:Object(pe.jsx)(Qt,{title:d,safeColors:b,storageHint:p,addonsData:g}),priceSlot:Object(pe.jsx)(ki,{product:m,currencyConfig:v,hidePricesSection:h})})})},Fi=e=>{var{className:t,disabled:i,productCardTagProps:n,linkAriaLabel:a,cardAction:r,product:l,title:o,thumbnail:c,safeColors:s,storageHint:d,addonsData:u,currencyConfig:b,hidePricesSection:p,isEUGuidelinesEnabled:g,primaryEnergy:m,energyLabelSheetTitle:v}=e;return Object(pe.jsx)(Rt,{disabled:i,className:t,children:Object(pe.jsx)(_i,{productCardTagProps:n,linkAriaLabel:a,cardAction:r,title:o,thumbnail:c,safeColors:s,storageHint:d,addonsData:u,product:l,currencyConfig:b,hidePricesSection:p,isEUGuidelinesEnabled:g,primaryEnergy:m,energyLabelSheetTitle:v})})},Bi=i(3630);function Ri(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Mi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(i),!0).forEach((function(t){U()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ri(Object(i)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Ui,Gi,zi,Hi,Vi,qi=e=>{var{product:t,index:i,renderAsLinks:n=!1,onClick:a,hidePricesSection:l,className:o,showBuyBackToggle:s=!1}=e,d=Object(c.ed)(),b=Object(r.d)(c.Ob),p=Object(r.d)(c.Tb),{contractJourneyTranslation:g}=Object(_.a)(),{showTradeInPurchaseBonus:m,showBonusProducts:h}=Object(Bt.a)(),O=String(g("storageLabel")),f=String(g("energyLabelSheetTitle")),{productSlug:j,categoryId:y,productName:x,thumbnail:S,availabilityStatus:C,promotionTag:w,colors:I,storageText:T,variantSlug:D,brandSlug:P,isOutOfStockDeviceForMNAShop:N,addonsData:L=[]}=t,E=Object(c.Vc)(x),A=C===c.C.OUT_OF_STOCK||!!N,{search:k}=Object(c.cd)(),F=new URLSearchParams(k),B=F.get("tariffId"),R=F.get("tariffCategoryId"),M=F.get("loyalty"),U=F.get("isFunnelJourney"),G=F.get("adult"),z=F.get("deviceListingCategoryId"),H=F.get("currentTariffId"),V=Object(Y.a)(k),q=Object(r.d)(e=>Object(v.Yb)(e,V)),K=s?"&".concat(Ft.f.FORWARD_TRADE_IN_APPLIED,"=").concat(q):"",W="".concat(u.k.DEVICE_DETAIL,"/").concat(P,"/").concat(j,"/").concat(D,"?bp=").concat(c.d.CONTRACT_PROLONGATION,"&tariffId=").concat(B,"&tariffCategoryId=").concat(R,"&loyalty=").concat(M,"&isFunnelJourney=").concat(U,"&adult=").concat(G,"&categoryId=").concat(y,"&deviceListingCategoryId=").concat(z,"¤tTariffId=").concat(null!=H?H:"").concat(K),J=(e=>{var t,i,n,{characteristics:a,mainAutomaticOnTopAddons:r=[]}=e,l=null==a||null===(t=a.find(e=>e.key===c.s.ENERGY_EFFICIENCY_CLASS))||void 0===t?void 0:t.value,o=null==a||null===(i=a.find(e=>e.key===c.s.ENERGY_LABEL))||void 0===i?void 0:i.value,s=l&&o?{energyEfficiencyClass:l,energyLabel:o}:null,d=r.reduce((e,t)=>{var{characteristics:i}=t;if(!i)return e;var n=e=>{var t,n,a;return null===(t=i.find(t=>t.name===e))||void 0===t||null===(n=t.values)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.value},a=n(c.s.ENERGY_EFFICIENCY_CLASS),r=n(c.s.ENERGY_LABEL);return a&&r&&e.push({energyEfficiencyClass:a,energyLabel:r}),e},[]);return null!==(n=(s?[s,...d]:d)[0])&&void 0!==n?n:null})(t),Q=T?O.replace("{0}",T):null,Z=(null!=I?I:[]).slice(0,5).map(e=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e)?e:"#d9d9d9"),X=Object(Bi.a)(w,b.currencySymbol,null!=m&&m),$=[E,Q].filter(Boolean).join(", "),ee=!A&&n?{cardAction:()=>{null==a||a(t,i),d(W)}}:{};return Object(pe.jsx)(Fi,Mi(Mi({className:o,disabled:A,productCardTagProps:X},ee),{},{linkAriaLabel:$,index:i,product:t,title:E,thumbnail:S,safeColors:Z,storageHint:Q,addonsData:h?L:[],currencyConfig:b,hidePricesSection:l,isEUGuidelinesEnabled:p,primaryEnergy:J,energyLabelSheetTitle:f}))},Ki=e=>{var{data:t,keyPrefix:i="",renderAsLinks:n=!1,hidePricesSection:a,className:r,showBuyBackToggle:l=!1}=e,o=c.Ac&&"location"in c.Ac?c.Ac.location.search:"",s=Object(c.bd)(o),{linkedTariffCategoryId:d}=Object(_t.a)(),u=(e,t)=>{var{deviceDetailedList:i}=Object(kt.l)();Object(x.s)(e,null!=t?t:-1,d,i,l)};return Object(pe.jsx)(pe.Fragment,{children:t.filter(c.Ic).map((e,t)=>Object(pe.jsx)(qi,{product:e,index:t,renderAsLinks:n,getLinkAddress:s,onClick:u,hidePricesSection:a,className:r,showBuyBackToggle:l},"".concat(i).concat(e.id)))})},Yi=S.default.div.withConfig({displayName:"DeviceGrid",componentId:"sc-1qjhena-0"})(["display:grid;grid-template-columns:1fr;row-gap:var(--spacing-layout-7);column-gap:var(--spacing-layout-7);margin-top:var(--spacing-component-5);margin-bottom:var(--spacing-layout-6);@media ","{margin-bottom:var(--spacing-layout-8);}@media ","{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:var(--spacing-layout-10);column-gap:var(--grid-gutters,8px);margin-top:var(--spacing-component-8);margin-bottom:var(--spacing-layout-10);}@media ","{grid-template-columns:repeat(3,minmax(0,1fr));}"],c.Nc.above_360,c.Nc.above_767,c.Nc.above_1039),Wi=S.default.div.withConfig({displayName:"DeviceListingLoadMoreCell",componentId:"sc-1qjhena-1"})(["grid-column:1 / -1;display:flex;justify-content:center;width:100%;min-width:0;@media ","{justify-content:stretch;padding:0 var(--spacing-layout-2);}.ODSButton{@media ","{width:100%;max-width:100%;}}"],c.Nc.below_768,c.Nc.below_768),Ji=e=>{var t,{showFilteredEmptyState:i,clearAllFilters:n,onEditFiltersFromEmptyState:a,showFilters:r,showInitialSkeleton:l,listingRows:o,tariffIdForKeys:c,categoryId:s,showLoadMoreSection:d,productsInfinite:u,showLoadMore:b,showBuyBackToggle:p}=e,{contractJourneyTranslation:g}=Object(_.a)();return t=l?Array.from({length:6},(e,t)=>Object(pe.jsx)(At,{},"device-listing-skeleton-".concat(t))):i?Object(pe.jsx)(Et,{title:String(g("filteredEmptyTitle")),description:String(g("filteredEmptyDescription")),showAllDevicesLabel:String(g("filteredEmptyShowAllDevices")),editFiltersLabel:String(g("filteredEmptyEditFilters")),onShowAllDevices:n,onEditFilters:a,showEditFiltersButton:r}):Object(pe.jsx)(Ki,{data:o,keyPrefix:c,renderAsLinks:!0,showBuyBackToggle:p}
1),Object(pe.jsxs)(Yi,{children:[t,s&&d&&!l&&!i?Object(pe.jsx)(Wi,{children:Object(pe.jsx)(C.ODSButton,{label:u.isFetchingNextPage?String(g("loading")):String(g("showMoreDevices")),variant:"secondary",size:"large",loading:u.isFetchingNextPage,disabled:!b&&!u.isFetchingNextPage,onClick:()=>{u.fetchNextPage()}})}):null]})},Qi=e=>{var t,i;if(null==e||!e.length)return null;var n=e.find(e=>e.name===c.b.DEFAULT_SORT),a=null==n||null===(t=n.values)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.value;return"string"!=typeof a||""===a.trim()?null:a.trim()},Zi=()=>{var e,t,i,a,p,S,C,w,I,P,N,L,A,k,F,B,{contractJourneyTranslation:M}=Object(_.a)(),{userData:U,isLoggedIn:G,fetchUserProfile:z,selectedServiceId:H}=Object(b.a)(),V=Object(r.d)(v.oe),q=Object(n.useMemo)(()=>{var e;return null==U||null===(e=U.currentServices)||void 0===e?void 0:e.find(e=>e.id===H)},[null==U?void 0:U.currentServices,H]),{showFilters:K=!0}=qe(),Y=Object(r.d)(c.Qb),W=Object(r.d)(c.Fb),J=Object(r.d)(c.Hb),Q=String(M("pageTitleNewFlow")),{search:Z}=Object(c.cd)();Object(wt.a)(Z);var X=null!==(e=Object(c.dc)(u.j.DEVICE_LISTING_CATEGORY_ID,Z))&&void 0!==e?e:"",$=null!==(t=Object(c.dc)(u.j.TARIFF_ID,Z))&&void 0!==t?t:"",ee=!!X,te=((e,t)=>Object(R.a)({queryKey:e?le.categories(e):["contractProlongation","deviceListing","categories","pending"],queryFn:()=>Object(c.tb)(null!=e?e:"",!1,void 0,void 0),enabled:t&&!!e,staleTime:0,gcTime:0}))(null!=X?X:null,ee),ie=te.data,{metaTagTitle:ne,metaTagDescription:re}=Object(n.useMemo)(()=>Object(j.b)(ie&&"characteristics"in ie?ie.characteristics:void 0),[ie]),ce=ne||Q,de=Object(n.useMemo)(()=>Object(j.a)(ne,re),[ne,re]),ue=Object(c.ed)(),[be,ge]=Object(n.useState)(0),me=Object(l.a)(c.Nc.below_768)?u.h.SMALL:u.h.LARGE;Object(n.useEffect)(()=>{G&&z({})},[G,z]);var ve=oe(null!=X?X:null,ee,Z),he=((e,t,i)=>{var n=ae(i);return Object(R.a)({queryKey:e?le.filters(e,n):["contractProlongation","deviceListing","filters","pending"],queryFn:()=>se(e,Object(c.Pb)(i),i),enabled:t&&!!e,staleTime:0,gcTime:0})})(null!=X?X:null,ee,Z),{clearAllFilters:Oe}=Ze(null!=X?X:null),fe=Object(n.useCallback)(()=>{Object(x.r)(ce,X)},[ce,X]);Object(n.useEffect)(()=>{Object(h.B)()},[]);var je=Object(n.useRef)(0);Object(n.useEffect)(()=>{je.current=0},[X]),Object(n.useEffect)(()=>{var e,t,i=null===(e=ve.data)||void 0===e?void 0:e.pages,n=null!==(t=null==i?void 0:i.length)&&void 0!==t?t:0;if(!(n<=je.current)){var a=je.current;je.current=n;var r=Object(c.vc)();i.slice(a).forEach((e,t)=>{var n,l,o;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.length){var c=a+t,s=e.plan?h.b.DEVICE_TARIFF_LIST_SECTION:h.b.DEVICE_LIST_SECTION,d=i.slice(0,c).flatMap(e=>{var t;return null!==(t=e.data)&&void 0!==t?t:[]}).length;Object(h.D)({responseData:e,impressionEventCategoryId:X,currencyLocale:W,events:r,deviceDetailedList:s,countOfExistedItems:d,businessInteraction:null===(l=e.contextBar)||void 0===l?void 0:l.businessInteraction,showBuyBackToggle:null!==(o=e.showBuyBackToggle)&&void 0!==o?o:void 0})}})}},[ve.data,X,W]);var ye=Object(n.useMemo)(()=>{var e,t,i;return null!==(e=null===(t=ve.data)||void 0===t||null===(i=t.pages)||void 0===i?void 0:i.flatMap(e=>{var t;return null!==(t=e.data)&&void 0!==t?t:[]}))&&void 0!==e?e:[]},[null===(i=ve.data)||void 0===i?void 0:i.pages]),xe=Object(n.useMemo)(()=>{var e,t,i;return(i=null!==(e=null===(t=ve.data)||void 0===t?void 0:t.pages)&&void 0!==e?e:null)&&0!==i.length?Qi(i[0].characteristics):Qi(null)},[null===(a=ve.data)||void 0===a?void 0:a.pages]),Se=Object(n.useMemo)(()=>{var e=Object(c.Pb)(Z);return ot(e,Y)},[Z,Y]),Ce=ve.hasNextPage&&!ve.isFetchingNextPage,we=ye.length>0&&(ve.hasNextPage||ve.isFetchingNextPage),Ie=null===(p=ve.data)||void 0===p||null===(S=p.pages)||void 0===S?void 0:S[0],Te=null==Ie?void 0:Ie.plan,De=!(null==Ie||!Ie.showBuyBackToggle),Pe=Object(n.useRef)(!1);Object(n.useEffect)(()=>{var e;Te&&!Pe.current&&(Pe.current=!0,Object(h.L)(null!==(e=Te.name)&&void 0!==e?e:""))},[Te]);var Ne=null!==(C=Object(c.dc)(u.j.CURRENT_TARIFF_ID,Z))&&void 0!==C?C:"",{handleContinue:Le,continueCtaLoading:Ee}=Object(d.a)({preferredTariff:Te,selectedService:q,currentTariffId:Ne||(null==J?void 0:J.id)||""}),Ae=Object(n.useMemo)(()=>{return Te?(c=null===(t=(e=Te).dataBenefits)||void 0===t?void 0:t[0],{primaryLine:null!==(a=[null==c||null===(i=c.label)||void 0===i?void 0:i.trim(),null==c||null===(n=c.value)||void 0===n?void 0:n.trim()].find(e=>!!e))&&void 0!==a?a:"",secondaryLine:null!==(r=[null===(l=e.name)||void 0===l?void 0:l.trim(),null===(o=e.productName)||void 0===o?void 0:o.trim()].find(e=>!!e))&&void 0!==r?r:""}):{primaryLine:"",secondaryLine:""};var e,t,i,n,a,r,l,o,c},[Te]),ke=!!X&&ve.isSuccess&&!!Te,_e=Object(n.useMemo)(()=>{var e,t;return!X||((e,t,i)=>Boolean(e&&!t.isError&&!t.hasAnyPage&&(t.isPending||!i.isError&&i.isPending)))(X,{isError:ve.isError,hasAnyPage:Boolean(null===(e=ve.data)||void 0===e||null===(t=e.pages)||void 0===t?void 0:t.length),isPending:ve.isPending},{isError:te.isError,isPending:te.isPending})},[X,ve.isError,null===(w=ve.data)||void 0===w||null===(I=w.pages)||void 0===I?void 0:I.length,ve.isPending,te.isError,te.isPending])||Ee;Object(n.useEffect)(()=>{!_e&&ce&&fe()},[_e,ce,fe]);var Fe=Object(n.useMemo)(()=>!!X&&!_e&&ve.isSuccess&&!ve.isError&&0===ye.length&&Se>0,[X,_e,ve.isSuccess,ve.isError,ye.length,Se]),Be=Object(n.useCallback)(()=>{ge(e=>e+1)},[]),Re=Object(n.useCallback)(()=>{var e,t,i=M("selectedPlanChangeButton");Object(x.d)(O.d.PAGE_NAME,O.a.DEVICE_JOURNEY_CTA.DEVICE_LISTING_ELEMENT_TITLE,null!==(e=null==Te?void 0:Te.name)&&void 0!==e?e:"",null!==(t=null==J?void 0:J.name)&&void 0!==t?t:"",i),ue(-1)},[ue,null==Te?void 0:Te.name,null==J?void 0:J.name,M]),Me=null==Te?void 0:Te.prices,Ue=Te?{planName:null===(P=Te.name)||void 0===P?void 0:P.trim(),planLoyalty:null!==(N=null===(L=Te.characteristics)||void 0===L||null===(A=L.find(e=>
1"selectedProductOfferingTerm"===e.name))||void 0===A||null===(k=A.values)||void 0===k||null===(F=k[0])||void 0===F||null===(B=F.label)||void 0===B?void 0:B.trim())&&void 0!==N?N:"",planThumbnail:Ui||(Ui=Object(pe.jsx)(o.ODSIcon,{name:"sim-card-type-standard",size:28})),deviceThumbnail:null,includeDeviceInPriceOverview:!1}:null,Ge=!!X&&(_e||ve.isSuccess&&!!Te);return Object(pe.jsxs)(T,{children:[Gi||(Gi=Object(pe.jsx)(c.x,{})),Object(pe.jsx)(c.z,{title:ce,meta:de}),V?zi||(zi=Object(pe.jsx)(m.a,{})):Object(pe.jsx)(g.a,{isLoggedIn:G,userData:null!=U?U:null,showSubtitleSkeleton:Ee||G&&(X?!ve.isFetched:!U),selectedServiceId:H}),Object(pe.jsxs)(D,{"aria-busy":_e,children:[Object(pe.jsx)(Ct,{showSelectedPlanSection:ke&&!_e,showPlanBlockSkeleton:_e,selectedPlanDisplay:Ae,onBackOrChangePlan:Re,contractJourneyTranslation:e=>String(M(e))}),X?Object(pe.jsx)(Ot,{categoryId:X,search:Z,filtersResponse:he.data,filtersLoading:he.isLoading,initialListLoading:_e,filtersQueryRefetch:he.refetch,openFilterSheet:be,listingDefaultSortBy:xe}):Object(pe.jsx)(lt,{showFilterMenuChip:K,showSortControl:!1}),Object(pe.jsx)(E,{isVisible:De&&!_e}),Object(pe.jsx)(Ji,{showFilteredEmptyState:Fe,clearAllFilters:Oe,onEditFiltersFromEmptyState:Be,showFilters:K,showInitialSkeleton:_e,listingRows:ye,tariffIdForKeys:$,categoryId:X,showLoadMoreSection:we,productsInfinite:ve,showLoadMore:Ce,showBuyBackToggle:De}),Object(pe.jsx)(y.a,{totalSavings:null==Ie?void 0:Ie.totalSavings})]}),Hi||(Hi=Object(pe.jsx)(f.a,{})),Ge?Object(pe.jsx)(s.a,{tariffPrice:Me,combinedPrice:Me,priceOverviewSectionMeta:Ue,onSheetOpen:()=>{var e=M("paymentDetails");Object(x.w)(O.d.PAGE_NAME,e)},pageName:O.d.PAGE_NAME,primaryCtaLabel:String(M("continueWithoutDevice")),onPrimaryCtaClick:()=>{var e,t,i=String(M("continueWithoutDevice"));Object(x.t)(O.d.PAGE_NAME,null!==(e=null==Te?void 0:Te.name)&&void 0!==e?e:"",null!==(t=null==J?void 0:J.name)&&void 0!==t?t:"",i),Le()},primaryCtaVariant:"outline",primaryCtaSize:me,secondaryCtaSize:me,secondaryCtaLabel:"",secondaryCtaVariant:"secondary",primaryCtaDisabled:_e}):null]})};t.default=()=>Vi||(Vi=Object(pe.jsx)(p.a,{children:Object(pe.jsx)(Zi,{})}))},2980:function(e,t,i){"use strict";var n,a,r=i(369),l=i(735),o=i(710),c=i(120),s=i(88),d=i(25),u=i(2993),b=i(2);t.a=e=>{var{label:t,onClickHandler:i,className:p,doNotCallEvent:g=!1,showBackwardIcon:m}=e;return Object(b.jsx)(u.a,{className:"dt-back ".concat(p),children:Object(b.jsxs)(r.b,{"data-qa":s.c.BACK_BUTTON,className:"link",onClickHandler:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>{i(),!g&&Object(d.g)(t,window.location.href)}),onKeyDownHandler:e=>{i(),!g&&Object(d.g)(t,window.location.href),e.preventDefault()},variant:"button",children:[m?n||(n=Object(b.jsx)(l.default,{color:"currenColor",size:"xsmall",className:"back-icon"})):a||(a=Object(b.jsx)(o.default,{color:"currenColor",size:"medium"})),Object(b.jsx)(c.a,{className:"text",variant:"smallBold",children:t})]})})}},2993:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n=i(6).default.div.withConfig({displayName:"StyledCtaWrapper",componentId:"sc-1nt8gcq-0"})(["&.dt-back .anchorText{display:inline-flex;flex-direction:row;align-items:flex-start;font-weight:medium;cursor:pointer;color:",";
1.dt_icon svg path{fill:",";}.text{text-overflow:ellipsis;max-width:18.75rem;overflow:hidden;white-space:nowrap;text-decoration:underline;}&:hover{color:",";}}&.backLinkLabel a{position:absolute;top:0.5em;}margin-bottom:1rem;.back-icon{margin-right:8px;}"],e=>e.theme.base.deepCerculean,e=>e.theme.base.deepCerculean,e=>e.theme.base.oceanBlue)},3045:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i(32),a=i(11),r=i(19),l=i(15),o=e=>{var t,i,o=Object(r.b)(),c=Object(l.u)(),s=null==o||null===(t=o.translation)||void 0===t||null===(i=t.cart)||void 0===i?void 0:i.global;if(e===a.s.SAVING_DISCOUNT){var d,u,b,p,g,m,v,h,O,{fixed:f,tariff:j,ott:y,global:x}=(null==o||null===(d=o.translation)||void 0===d?void 0:d.cart)||{},S=(null==o||null===(u=o.fixed)||void 0===u||null===(b=u.categories)||void 0===b||null===(p=b.characteristics)||void 0===p||null===(g=p.find(e=>e.name===n.O.LOB))||void 0===g||null===(m=g.values)||void 0===m||null===(v=m[0])||void 0===v?void 0:v.value)===n.M.OTT,C=!S&&!!(null!=o&&null!==(h=o.fixed)&&void 0!==h&&h.tariffs||null!=o&&null!==(O=o.fixed)&&void 0!==O&&O.categories),w=S?null==y?void 0:y.savingDiscountIconHtml:C?null==f?void 0:f.savingDiscountIconHtml:null==j?void 0:j.savingDiscountIconHtml;return{heading:x.savingDiscountHeading,description:w||""}}var{cashbackDetailsModal:I,loyaltyBonusBenefitDetailsModal:T,magentaOneDiscountDetailsModal:D,promotionDiscountDetailsModal:P,campaignDiscountDetailsModal:N,nsoDiscountDetailsModal:L,additionalNsoDiscountDetailsModal:E,marketingDiscountDetailsModal:A,addOnDiscountDetailsModal:k,tariffDiscountDetailsModal:_,consentDiscountDetailsModal:F,ebillDiscountDetailsModal:B,dinerseDiscountDetailsModal:R,priceAlterationDiscountDetailsModal:M,contractDiscountDetailsModal:U,credibleUserDiscountDetailsModal:G,installmentDiscountDetailsModal:z,magentaOneDataDiscount:H,magentaDiscountDetailsModal:V,tradeInBenefitDetailsModal:q,tradeInBonusDetailsModal:K,mnpBonusDetailsModal:Y,additionalDataDetailsModal:W,happyHourDataDetailsModal:J,streamingDataDetailsModal:Q,unlimitedDataDetailsModal:Z,yearlyBillingPlanModal:X,discountedMobileModal:$,loyaltyBudgetModal:ee,refundDiscountForPrepaidSaldoModal:te}=s,ie={[a.s.LOYALTY_BONUS_BENEFIT]:T,[a.s.MAGENTA_ONE_DISCOUNT]:D,[a.s.CASHBACK]:I,[a.s.PROMOTION_DISCOUNT]:P,[a.s.CAMPAIGN_DISCOUNT]:N,[a.s.NSO_DISCONT]:L,[a.s.ADDITIONAL_NSO_DISCOUNT]:E,[a.s.MARKETING_DISCOUNT]:A,[a.s.ADD_ON_DISCOUNT]:k,[a.s.TARIFF_DISCOUNT]:_,[a.s.CONSENT_DISCOUNT]:F,[a.s.EBILL_DISCOUNT]:B,[a.s.DINERS_DISCOUNT]:R,[a.s.PRICE_ALTERATION_DISCOUNT]:M,[a.s.CONTRACT_DISCOUNT]:U,[a.s.CREDIBLE_USER_DISCOUNT]:G,[a.s.INSTALLMENT_DISCOUNT]:z,[a.s.MAGENTA_ONE_DATA_DISCOUNT]:H,[a.s.MAGENTA_DISCOUNT]:V,[a.s.TRADE_IN_DISCOUNT]:q,[a.s.TRADE_IN_BONUS]:K,[a.s.MNP_BONUS]:Y,[a.s.ADDTIONAL_MRC_DATA]:W,[a.s.HAPPY_HOUR]:J,[a.s.STREAMING_DATA_DISCOUNT]:Q,[a.s.UNLIMITED_DATA_DISCOUNT]:Z,[a.s.MOBILE_YEARLY_BILLING]:X,[a.s.FIXED_YEARLY_BILLING]:X,[a.s.FIXED_DISCOUNTED_MOBILE]:$,[a.s.LOYALTY_BUDGET]:ee,[a.s.REFUND_DISCOUNT]:te}[e];return ie?c&&ie[c]||ie:null}},3061:function(e,t,i){"use strict";i.r(t);var n=i(673),a=i(202),r=i(2980),l=i(120),o=i(675),c=i(48),s=i(70),d=i(39),u=i(14),b=i(6),p=i(1311),g=Object(b.default)(p.a).withConfig({displayName:"StyledInfoIconModal",componentId:"sc-1u88l9t-0"})(["&.dialogBoxBottomAlign{.dt_overlay .dt_outsideClick{margin-bottom:0;.dialogBoxContentWrap{width:100vw;max-width:100%;border-radius:1rem 1rem 0 0;max-height:60vh;.dialogBoxContent{min-height:12.5rem;padding-bottom:12.5rem;@media ","{& .description{padding-bottom:2.5rem;}}}.dt_dialogBoxHeader,.dt_dialogBoxBody{text-align:left;}.dt_dialogBoxHeader{.dt_title{font-size:2.5rem;}}.dt_dialogBoxBody{margin-bottom:1rem;}}}}@media (min-width:","px){&.dialogBoxBottomAlign{.dt_overlay .dt_outsideClick{width:39.6875rem;margin-bottom:inherit;.dialogBoxContentWrap{width:100%;height:100%;border-radius:1rem;max-height:inherit;.dialogBoxContent{padding-left:3rem;padding-right:3rem;padding-top:5rem;padding-bottom:0px;max-height:35rem;}.closeIcon{top:2rem;right:2rem;}}}}}"],c.p.below_768,c.j.tabletPortrait),m=i(2);t.default=e=>{var t=Object(d.c)(),{backBtnLabel:i}=Object(d.d)(u.pj),{openModal:b,heading:p,description:v,onClickHandler:h,closeButtonAriaLabel:O}=e;return b?Object(m.jsx)(n.a,{children:Object(m.jsxs)(g,{isOpen:b,showCloseButton:!0,onClose:h,onBackdropClick:h,onEscape:h,className:"dialogBoxBottomAlign",type:"fullHeight",closeOnBackdropClick:!0,closeOnEscape:!0,closeButtonAriaLabel:O,children:[Object(m.jsx)(o.a,{mediaQueryForHiding:c.p.above_767,children:Object(m.jsx)(r.a,{label:i,onClickHandler:()=>
1{t(s.a.setShowInfoIconModal(!1)),t(s.a.setTotalSavingsModalOpen(!0))},className:"backBtn"})}),p&&Object(m.jsx)(l.a,{as:"h2",className:"heading",variant:"h3",id:"dialogeHeaderId",children:p}),v&&Object(m.jsx)(l.a,{className:"description",variant:"body",children:Object(m.jsx)(a.a,{template:v,defaultCss:!0,disableShadowDom:!0})})]})}):null}},3076:function(e,t,i){"use strict";i.d(t,"a",(function(){return l})),i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return c})),i.d(t,"d",(function(){return s}));var n=i(1),a=i(25),r=i(23),l=e=>{Object(a.i)({mqtData:{action:n.Hc.COMMON.EVENTS.TOGGLE_SWITCH,category:Object(r.k)(),label:n.Hc.COMMON.LABEL.DEVICE_RETURN_DEAL,event_type:n.M.EVENT,service_line:n.dc.MOBILE,trigger_type:n.Hc.COMMON.TRIGGER_TYPE.CLICK,attribute:{elementTitle:n.D.DEVICE_RETURN_DEAL,elementPosition:n.C.PAGE_BODY,elementValue:e?n.F.ENABLE:n.F.DISABLE}}})},o=e=>{Object(a.i)({mqtData:{action:n.Hc.COMMON.EVENTS.LINK_CLICKED,category:Object(r.k)(),label:n.Hc.COMMON.LABEL.MORE_INFORMATION_DEVICE_RETURN_DEAL,event_type:n.M.EVENT,service_line:n.dc.MOBILE,trigger_type:n.Hc.COMMON.TRIGGER_TYPE.CLICK,attribute:{elementTitle:"",elementPosition:e,elementValue:n.F.MORE_INFORMATION_DEVICE_RETURN_DEAL,targetPage:n.qb}}})},c=()=>{Object(a.i)({mqtData:{action:n.Hc.COMMON.EVENTS.CTA_CLICKS,category:Object(r.k)(),label:n.Hc.COMMON.LABEL.MORE_INFO_DEVICE_RETURN_DEAL,event_type:n.M.EVENT,service_line:n.dc.MOBILE,trigger_type:n.Hc.COMMON.TRIGGER_TYPE.CLICK,attribute:{elementTitle:"",elementPosition:n.C.PAGE_BODY,elementValue:n.F.MORE_INFO_DEVICE_RETURN_DEAL,targetPage:n.qb}}})},s=(e,t)=>{Object(a.i)({mqtData:{action:n.Hc.COMMON.EVENTS.POPUP_OPEN,category:Object(r.k)(),label:n.Hc.COMMON.LABEL.TRADE_IN_CONFLICT,event_type:n.M.EVENT,service_line:n.dc.MOBILE,trigger_type:n.Hc.COMMON.TRIGGER_TYPE.SHOW,attribute:{product_name:e,product_id:t}}})}},3126:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(1365),a=()=>Object(n.a)("deviceListing")},3228:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i(39),a=i(38),r=i(433),l=()=>{var e;return(null!==(e=Object(n.d)(e=>Object(a.Zb)(e,"contractJourney")))&&void 0!==e?e:r.a).deviceDetail}},3341:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(18),a=e=>"true"===new URLSearchParams(e).get(n.f.HW_ONLY_SALE)},3416:function(e,t,i){"use strict";i.d(t,"a",(function(){return b}));var n=i(5),a=i.n(n),r=i(0),l=i(39),o=i(38),c=i(21),s=i(55);function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){a()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var b=e=>{var t,{preferredTariff:i,selectedService:n,currentTariffId:a}=e,[d,b]=Object(r.useState)(!1),p=Object(l.c)(),g=Object(l.d)(o.Hb);return{handleContinue:Object(r.useCallback)(()=>{var e,t,r,l,d,m,v,h,O,f,j,y,x,S,C,w,I,T=null!==(e=null==i?void 0:i.id)&&void 0!==e?e:"",D=(e=>{var t,i,n,a,r,l=null==e||null===(t=e.characteristics)||void 0===t?void 0:t.find(e=>"selectedProductOfferingTerm"===e.name);return(null!==(i=null==l||null===(n=l.values)||void 0===n||null===(a=n[0])||void 0===a||null===(r=a.value)||void 0===r?void 0:r.toLowerCase())&&void 0!==i?i:"").includes("month")?o.e.MONTHLY:o.e.YEARLY})(i),P=null==i||null===(t=i.characteristics)||void 0===t?void 0:t.find(e=>"selectedProductOfferingTerm"===e.name),N=null!==(r=null==P||null===(l=P.values)||void 0===l||null===(d=l[0])||void 0===d?void 0:d.value)&&void 0!==r?r:"",L=Boolean(null==n?void 0:n.fixedContract),E=Boolean((null==n?void 0:n.ottContract)||(null==n?void 0:n.ottTVContract)||(null==n?void 0:n.ottSportsContract)),A=null!==(m=null==g||null===(v=g.uiAddress)||void 0===v?void 0:v.id)&&void 0!==m?m:"",k=(e=>{var t;if("cartLineItems"in e&&null!==(t=e.cartLineItems)&&void 0!==t&&t[0]){var i,n,{cartLineItems:a}=e,r=Boolean(null===(i=a[0])||void 0===i||null===(n=i.cartItems)||void 0===n?void 0:n[0]);return u(u(u({},e),r&&{operationType:c.b.ADD_ITEM_BASKET}),{},{cartLineItems:a.map((e,t)=>{var i;return 0===t&&r&&null!==(i=e.cartItems)&&void 0!==i&&i[0]?u(u({},e),{},{cartItems:e.cartItems.map((e,t)=>0===t?u(u({},e),{},{action:c.b.REPLACE}):e)}):e})})}return e})({operationType:c.b.ADD_ITEM_BASKET,quantity:1,cartLineItems:[{quantity:1,businessInteraction:o.d.CONTRACT_PROLONGATION,cartItems:[{action:c.b.REPLACE,quantity:1,group:c.c.TARIFF,product:{id:T,characteristic:[{name:"selectedProductOffer
1ingTerm",value:N}],categoryId:null!==(h=null==i||null===(O=i.tariffCategory)||void 0===O?void 0:O.id)&&void 0!==h?h:""},prices:null!==(f=null==i?void 0:i.prices)&&void 0!==f?f:[]}],existingService:u({id:null!==(j=null==n?void 0:n.id)&&void 0!==j?j:""},(null!=a?a:null==g?void 0:g.id)&&{productOfferingId:null!=a?a:null==g?void 0:g.id})}],magentaBenefitsEnabled:!1,nextMagentaFamily:{},preSalesFlow:!1,swapRequest:!0,cartDetails:u(u({},void 0!==(null==i?void 0:i.forFriendsEligible)&&{forFriendsEligible:i.forFriendsEligible}),void 0!==(null==i?void 0:i.tariffChangeType)&&{tariffChangeType:i.tariffChangeType})}),_=u(u({},k),{},{swapRequest:!0,analyticsData:{tariff:i,categoryId:null!==(y=null==i||null===(x=i.tariffCategory)||void 0===x?void 0:x.id)&&void 0!==y?y:"",overrides:{pageName:s.g.PAGE_NAME,label:s.g.PRODUCT_ADDED_LABEL,ribbon:s.g.RIBBON_RECOMMENDED}}});p(o.qb.setDataForPatchSwapBasket({id:T,duration:D,manageableAssetId:null!==(S=null==n?void 0:n.id)&&void 0!==S?S:"",addressId:A,isFixedVariantAvailable:L,isOttVariantAvailable:E})),b(!0),p(o.qb.addFixedServicePlanInBasket(u(u({},_),{},{swapVisibleFromHeader:!0,redirectToOneCheckout:!0,analyticsData:{tariff:i,categoryId:null!==(C=null==i||null===(w=i.tariffCategory)||void 0===w?void 0:w.id)&&void 0!==C?C:"",overrides:{pageName:s.g.PAGE_
1NAME},relationship_id:null!==(I=null==n?void 0:n.id)&&void 0!==I?I:"",contractDuration:N.replace("agreement","")}})))},[null==g?void 0:g.id,null==g||null===(t=g.uiAddress)||void 0===t?void 0:t.id,a,p,i,n]),continueCtaLoading:d}}},3629:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=i(0),a=i(39),r=i(27),l=i(14),o=i(290),c=i(18),s=e=>{var t=Object(a.c)(),i=Object(a.d)(e=>Object(l.Ec)(e)),s=Object(n.useMemo)(()=>new URLSearchParams(e).get(c.f.FORWARD_TRADE_IN_APPLIED),[e]),d=null===s?null:Object(o.i)(s),u=null===s||d===i;return Object(n.useEffect)(()=>{u||t(r.b.setForwardTradeInApplied(d))},[u,d,t]),u}},3630:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return d}));var n=i(0),a=i(38),r=i(303),l=i(3126),o=e=>{switch(e){case"LAUNCH":return"preOrder";case"TIME":case"QUOTA":case"QUOTA_TIME":case"TRADEIN":case"FORWARD_TRADE_IN":return"discount";default:return"default"}},c=(e,t,i)=>{var{contractJourneyTranslation:c}=Object(l.a)(),s=Object(n.useMemo)(()=>Object(a.Mc)(e),[e]),d=Object(a.ad)(null!=s?s:{badgeType:"PROMOTION"});return Object(n.useMemo)(()=>{if(e&&"GENERIC_INFO"!==e.badgeType&&null!=s&&s.badgeType){var{badgeType:n}=s;if(n===r.d.TRADEIN){var a;if(!i||null===(a=s.arguments)||void 0===a||!a[0])return;return{label:"+".concat(s.arguments[0]," ").concat(t," ").concat(c("purchaseBonus")),variant:"discount"}}var l=d.label;if(l)return{label:l,variant:o(n)}}},[e,s,i,d.label,t,c])},s=(e,t,i)=>{var a=c(e,t,i);return Object(n.useMemo)(()=>a?{label:a.label,variant:a.variant}:void 0,[a])},d=(e,t,i)=>{var a=c(e,t,i);return Object(n.useMemo)(()=>a?{label:a.label,type:"promotion"}:void 0,[a])}},3705:function(e,t,i){"use strict";i.d(t,"a",(function(){return I}));var n=i(7),a=i.n(n),r=i(0),l=i(39),o=i(28),c=i(70),s=i(14),d=i(504),u=i(3061),b=i(3045),p=i(133),g=i(38),m=i(6),v=Object(m.default)(o.ODSBox).withConfig({displayName:"StyledTotalSavings",componentId:"sc-1po4v0t-0"})(["display:flex;flex-direction:column;gap:var(--spacing-component-3,0.5rem);.totalSavingsTitle{font:var(--title-s);}"]),h=Object(m.default)(o.ODSBox).withConfig({displayName:"StyledTotalSavingsCards",componentId:"sc-1po4v0t-1"})(["display:flex;flex-direction:column;gap:var(--spacing-component-5,1rem);@media ","{flex-direction:row;align-items:stretch;}"],g.Nc.above_767),O=i(27),f=i(3076),j=Object(m.default)(o.ODSBox).withConfig({displayName:"StyledTotalSavingsCard",componentId:"sc-wtxpll-0"})(["display:flex;flex-direction:column;flex:1;min-width:0;padding:1.5rem;background-color:",";border-radius:var(--radius-large);border:",";.totalSavingsCardTitle{font:var(--body-l);}.totalSavingsCardValue{font:var(--body-l);color:var(--colours-basic-text-dominant);white-space:nowrap;}.totalSavingsCardText{font:var(--body-m-regular);letter-spacing:var(--body-m-regular-letter-spacing);line-height:var(--body-m-regular-line-height);margin-bottom:1rem;}.totalSavingsCardTag,.totalSavingsCardAction{margin-top:auto;align-self:flex-start;width:fit-content;}"],e=>{var{isClaimed:t}=e;return t?"var(--colours-basic-background-card)":"var(--colours-basic-background)"},e=>{var{isClaimed:t}=e;return t?"none":"1px dashed var(--colours-basic-stroke-subtle)"}),y=Object(m.default)(o.ODSBox).withConfig({displayName:"StyledTotalSavingsCardHeader",componentId:"sc-wtxpll-1"})(["display:flex;justify-content:space-between;gap:var(--spacing-component-3,0.5rem);margin-bottom:0.125rem;"]),x=i(2),S=e=>{var{cardContent:t}=e,{applied:i}=Object(l.d)(s.kj),n=Object(l.c)(),{isClaimed:a,name:r,title:c,value:d,text:u,btnText:b}=t;return Object(x.jsxs)(j,{isClaimed:a,children:[Object(x.jsxs)(y,{children:[Object(x.jsx)(o.ODSText,{as:"p",className:"totalSavingsCardTitle",children:c}),d&&Object(x.jsx)(o.ODSText,{as:"p",className:"totalSavingsCardValue",children:d})]}),u&&Object(x.jsx)(o.ODSText,{as:"p",className:"totalSavingsCardText",children:u}),a?Object(x.jsx)(o.ODSTagStatic,{type:"savings",className:"totalSavingsCardTag",label:i}):b&&Object(x.jsx)(o.ODSLink,{className:"totalSavingsCardAction",label:b,rightIcon:"navigation-right-type-standard-size-small",type:"secondary",linkType:"button",onClick:()=>
1{if(r===p.d)return n(O.b.setForwardTradeInInfoDrawerOpen(!0)),void Object(f.c)(g.o.SIDE_BAR);r===p.B&&n(O.b.setShowInfoIconModal(p.B))}})]})},C=e=>({heading:null==e?void 0:e.heading,unclaimedDescription:null==e?void 0:e.unclaimedDescription,btnText:null==e?void 0:e.activateNow,claimedDescription:null==e?void 0:e.claimedDescription}),w=["id"],I=e=>{var{totalSavings:t}=e,i=Object(l.c)(),{heading:n}=Object(l.d)(s.kj),m=Object(l.d)(s.Th),O=(()=>{var{buyBackDeviceDiscount:e,deviceFinancialAdvantage:t,unlimitedDataDiscount:i,magentaOneBenefit:n}=Object(l.d)(s.kj);return Object(r.useMemo)(()=>{return{[p.d]:C(e),[p.h]:C(t),[p.B]:C(i),[p.n]:(a=n,{heading:null==a?void 0:a.heading,unclaimedDescription:null==a?void 0:a.description,btnText:null==a?void 0:a.activateNow,claimedDescription:null==a?void 0:a.description})};var a},[e,t,i,n])})(),f=Object(l.d)(s.Lh),{locale:j,currencySymbol:y}=Object(l.d)(s.rc),I=m?Object(b.a)(m):null,T=Object(r.useRef)(m);Object(r.useEffect)(()=>{T.current=m},[m]),Object(r.useEffect)(()=>()=>{T.current===p.B&&i(c.a.setShowInfoIconModal(!1))},[i]);var D=Object(r.useMemo)(()=>[...(null==t?void 0:t.discounts)||[],...(null==t?void 0:t.unclaimedBenefits)||[]].flatMap(e=>{var{heading:t,unclaimedDescription:i,claimedDescription:n,btnText:a}=O[e.name]||{};if(!t)return[];var r=Number(e.discount),l=""!==e.discount&&!Number.isNaN(r);return[{id:"".concat(e.name,"-").concat(e.unclaimed?"unclaimed":"claimed"),name:e.name,title:t,value:l?Object(g.wb)(Object(d.b)(r,f),j,y):void 0,text:e.unclaimed?i:n,btnText:a,isClaimed:!e.unclaimed}]}),[null==t?void 0:t.discounts,null==t?void 0:t.unclaimedBenefits,O,f,j,y]);return 0===D.length?null:Object(x.jsxs)(x.Fragment,{children:[Object(x.jsxs)(v,{children:[Object(x.jsx)(o.ODSText,{as:"h2",className:"totalSavingsTitle",children:n}),Object(x.jsx)(h,{children:D.map(e=>{var{id:t}=e,i=a()(e,w);return Object(x.jsx)(S,{cardContent:i},t)})})]}),m&&Object(x.jsx)(u.default,{openModal:Boolean(m),onClickHandler:()=>i(c.a.setShowInfoIconModal(!1)),heading:null==I?void 0:I.heading,description:null==I?void 0:I.description})]})}},3729:function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var n=i(39),a=i(14),r=i(27),l=i(135),o=i(3341),c=i(587),s=i(1),d=i(3076),u=i(28),b=i(6),p=i(48),g=Object(b.default)(u.ODSColumn).withConfig({displayName:"StyledForwardTradeIn",componentId:"sc-ez1lse-0"})(["display:flex;justify-content:space-between;flex-direction:row;border-radius:var(--radius-large);border:",";margin-bottom:1rem;background:var(--colours-basic-background-card);padding:2rem;gap:1rem;.moreInformationLink{width:fit-content;.ODSLink-LinkContainer,.ODSLink-LinkContainer:visited,.ODSLink-LinkContainer:hover{font:var(--body-m-bold);letter-spacing:var(--body-m-bold-letter-spacing);line-height:var(--body-m-bold-line-height);}}.forwardTradeInTitle{font-family:var(--title-s-font-family);font-weight:var(--title-s-font-weight);letter-spacing:var(--title-s-letter-spacing);font-size:1.5rem;line-height:1;}.forwardTradeInSubtitle{font:var(--body-m-regular);letter-spacing:var(--body-m-regular-letter-spacing);line-height:var(--body-m-regular-line-height);}.forwardTradeInSwitch{flex-shrink:0;}@media ","{.forwardTradeInTitle{font-size:2rem;line-height:1;}.forwardTradeInSubtitle{font:var(--body-l);letter-spacing:var(--body-l-letter-spacing);line-height:var(--body-l-line-height);}}"],e=>{var{hasBorder:t}=e;return t?"2px solid var(--colours-basic-stroke)":"none"},p.p.above_767),m=Object(b.default)(u.ODSColumn).withConfig({displayName:"StyledForwardTradeInContent",componentId:"sc-ez1lse-1"})(["display:flex;flex-direction:column;gap:0.5rem;"]),v=i(2),h=e=>{var{onToggle:t,isVisible:i,variant:b,onBeforeToggle:p,displayApplied:h,className:O}=e,f=Object(n.c)(),{search:j}=Object(c.b)(),y=Object(o.a)(j),x=Object(n.d)(e=>Object(a.Yb)(e,y)),S=Object(l.a)({modulePath:"cart.productList.forwardTradeIn"});if(!i)return null;var C=null!=h?h:x;return Object(v.jsxs)(g,{className:O,variant:b,hasBorder:C,children:[Object(v.jsxs)(m,{children:[Object(v.jsx)(u.ODSText,{id:"forwardTradeInTitle",as:"h2",className:"forwardTradeInTitle",children:S("title")}),Object(v.jsx)(u.ODSText,{as:"p",className:"forwardTradeInSubtitle",children:S("subtitle")}),Object(v.jsx)(u.ODSLink,{className:"moreInformationLink",alignment:"left",label:S("ctaText"),rightIcon:"navigation-right-type-standard-size-small",type:"secondary",linkType:"button",onClick:()=>{f(r.b.setForwardTradeInInfoDrawerOpen(!0)),Object(d.c)(s.C.PAGE_BODY)}})]}),Object(v.jsx)(u.ODSSwitchIcon,{className:"forwardTradeInSwitch",disabled:!1,selected:C,size:"small",inputProps:{name:"forwardTradeIn","aria-labelledby":"forwardTradeInTitle",onCh
1ange:e=>{var i=e.target.checked;!1!==(null==p?void 0:p(i))&&(f(r.b.setForwardTradeInApplied(i)),Object(d.a)(i),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.