1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5907],{61:e=>{e.exports={"tv-hue-hero__canvas-container":"tv-hue-hero_tv-hue-hero__canvas-container__yQ7iU"}},105:e=>{e.exports={"landscape-card":"product-card-landscape_landscape-card__4h2xT",footer:"product-card-landscape_footer___fpBY","landscape-card_container":"product-card-landscape_landscape-card_container__9yXIf",pill:"product-card-landscape_pill__5lwB5","pill--price":"product-card-landscape_pill--price__7nvg6",pill_title:"product-card-landscape_pill_title__5Zhkg","pill_title-content":"product-card-landscape_pill_title-content__zIez2",pill_icon:"product-card-landscape_pill_icon__PViEs","desktop-only":"product-card-landscape_desktop-only__w5ydL","landscape-card--volt":"product-card-landscape_landscape-card--volt__tmyio","landscape-card_description-items":"product-card-landscape_landscape-card_description-items__L3NNI",pill__netflix:"product-card-landscape_pill__netflix__P9RzX",pill_text_description:"product-card-landscape_pill_text_description__Eeuda",pill_description:"product-card-landscape_pill_description__rrPW9","pill_text_description--price":"product-card-landscape_pill_text_description--price__u4rmi",pill__link:"product-card-landscape_pill__link__BXlSO","manual-card-button":"product-card-landscape_manual-card-button__w1pF5"}},198:e=>{e.exports={"vm-equipment-carousel-enhanced":"vm-equipment-carousel-enhanced_vm-equipment-carousel-enhanced__UQr6q","background-red":"vm-equipment-carousel-enhanced_background-red__zRs39","background-purple":"vm-equipment-carousel-enhanced_background-purple__IvhVJ","background-black":"vm-equipment-carousel-enhanced_background-black__ao84f","with-table-background":"vm-equipment-carousel-enhanced_with-table-background__PifOq"}},408:(e,t,r)=>{"use strict";r.d(t,{Carousel:()=>h});var n=r(95155),o=r(5772),i=r(12115),a=r(42737),s=r(82567),l=r(29243),c=r(29722),d=r(79247),u=r(23450),_=r.n(u),p=r(40592),m=r.n(p);let h=({payments:e,flares:t})=>{let r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{r.current?.swiper.autoplay.start()},[]),(0,n.jsxs)("section",{className:m().container,onMouseOver:()=>r.current?.swiper.autoplay.stop(),onMouseOut:()=>r.current?.swiper.autoplay.start(),onFocus:()=>r.current?.swiper.autoplay.stop(),onBlur:()=>r.current?.swiper.autoplay.start(),"aria-label":"Payments carousel",children:[(0,n.jsx)("div",{className:m().carousel,children:(0,n.jsx)(a.Carousel,{ref:r,modules:[d._R,d.t9,d.Ij,d.Vx,d.dK,_()],breakpoints:[],isPagination:!1,isNavigation:!1,effect:"cards-stack",loop:!0,centeredSlides:!0,loopAdditionalSlides:2,direction:"vertical",slides:e.concat(e).concat(e).map(e=>({children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,c.A)(m().slide__content,m()["slide__content--back"],m()[`slide__content--${e.variant}`])}),(0,n.jsx)("div",{className:(0,c.A)(m().slide__content,m()["slide__content--front"],m()[`slide__content--${e.variant}`]),children:e.details?.map(e=>{let t=(0,l.ZQ)(e.logo);return(0,n.jsxs)("div",{className:(0,c.A)(m().slide__slot,m()[`slide__slot--${e.position}`]),children:[t&&(0,n.jsx)(o.default,{unoptimized:!0,src:t.src,alt:t.alt,width:70,height:50}),e.text&&(0,n.jsx)(s.E,{className:m().slide__text,color:"inherit",children:e.text})]},e._uid)})})]})}))})}),(0,n.jsx)("div",{className:m().logos,children:e.map(e=>{let t=(0,l.ZQ)(e.logo);return t?(0,n.jsx)(o.default,{unoptimized:!0,src:t.src,alt:t.alt,width:70,height:50,className:m().logos__logo},t.src):null})}),(0,n.jsx)("div",{className:m().flares,children:t.map((e,t)=>{let r=(0,l.ZQ)(e);return(0,n.jsx)(o.default,{unoptimized:!0,src:r?.src??"",alt:r?.alt??"",width:0===t?132:540,height:0===t?139:133,className:(0,c.A)(m().flares__flare,m()[`flares__flare--${t}`])},r?.src)})})]})}},881:e=>{e.exports={loader:"byob-loader_loader__xyp_L","loader--blur":"byob-loader_loader--blur__S1xha",loader__text:"byob-loader_loader__text__VbHd_"}},1684:(e,t,r)=>{"use strict";r.d(t,{P:()=>n.MediaBundle});var n=r(53165)},1827:e=>{e.exports={"burger-menu-section":"burger-menu-sections_burger-menu-section___7AyT","burger-menu-section--selected":"burger-menu
1-sections_burger-menu-section--selected__iSdj3","burger-menu-section__header":"burger-menu-sections_burger-menu-section__header__o2_gF","burger-menu-section__title":"burger-menu-sections_burger-menu-section__title__iE1jy","burger-menu-section__back-button":"burger-menu-sections_burger-menu-section__back-button__fgR9w","burger-menu-section__list":"burger-menu-sections_burger-menu-section__list__4qRBD","burger-menu-section__list-item":"burger-menu-sections_burger-menu-section__list-item__79XQi","burger-menu-section__list-item-link":"burger-menu-sections_burger-menu-section__list-item-link__WhCxj","burger-menu-section__banner":"burger-menu-sections_burger-menu-section__banner__HvCaO"}},1905:(e,t,r)=>{"use strict";r.d(t,{TVFilterForm:()=>b});var n=r(95155),o=r(12115),i=r(12572),a=r(32389),s=r(51073),l=r(29722),c=r(38198),d=r(91329),u=r(76537),_=r(29081),p=r(98744),m=r(53952),h=r.n(m);let b=({filter_options:e,sb_ref:t="",label:r})=>{let{setTvFilters:m,bundlesNr:b}=(0,d.Y)(),[g,f]=(0,o.useState)([]),x=(0,c.G)(),v=(0,_.Og)("tv-filter-section","tv-filter-section-icon","tv-addon-filter-items","tv-addon-filter-item","tv-addon-counters","reset-filter-link"),{setSort:y}=(0,u.useProductFilterSort)();return(0,o.useEffect)(()=>{m({[t]:g})},[g]),(0,n.jsxs)("form",{className:h()["tv-filter-form-container"],...v["tv-filter-section"],children:[(0,n.jsx)(a.H,{id:"tv-addon",children:(0,n.jsx)("div",{className:h()["tv-addon-content"],children:(0,n.jsxs)("div",{className:h()["tv-filter-options"],children:[(0,n.jsxs)("span",{className:h()["tv-addon-content__label"],children:[(0,n.jsx)(s.I,{icon:i.kDP,...v["tv-filter-section-icon"]}),r]}),(0,n.jsx)("div",{className:h()["tv-addon-filter-items"],...v["tv-addon-filter-items"],children:e.map(e=>{let{value:t,label:r,image:o}=e;return(0,n.jsx)("div",{className:h()["tv-addon-filter-item"],...v["tv-addon-filter-item"],children:(0,n.jsx)(p.default,{id:t,label:r||"",isFlag:!0,isSquare:!0,isSmall:!0,isBordered:!0,isLabelFullWidth:!x,image:o,checked:g.includes(t),onChange:e=>{e.target.checked?f([...g,e.target.id]):f(g.filter(t=>t!==e.target.id))}})},t)})})]})})}),(0,n.jsxs)("div",{className:h()["tv-addon-counters"],...v["tv-addon-counters"],children:[(0,n.jsxs)("button",{type:"button",className:(0,l.A)({[h().reset]:!0,[h().disabled]:0===g.length}),onClick:()=>{f([]),y("")},...v["reset-filter-link"],children:["Reset filters",g.length?` (${g.length})`:""]})," ",(0,n.jsx)("span",{children:"|"})," ",b?.[t]?.visible," of"," ",b?.[t]?.total," products"]})]})}},2068:(e,t,r)=>{"use strict";r.d(t,{g:()=>h});var n=r(95155),o=r(96653),i=r(71505),a=r(82567),s=r(29722),l=r(47277),c=r(52911),d=r(24646),u=r(29081),_=r(30710),p=r(74240),m=r.n(p);let h=({discounted:e,discountedPeriod:t=1,afterPeriodPrice:r,priceChanges:p,className:h,forceMobile:b=!1,initialBillSplitAmount:g,showBillSplit:f,isProductInfo:x,dailyTldPrice:v,cancellationInfo:y,contractTerm:j})=>{let[w,N]=e.split("."),k=(0,u.Og)("product-card-horizontal-price","discounted-main-price-tile","price-split-drawer","daily-cost","cancellation-info-link","contract-term"),E=(0,d.useDailySplitter)();return(0,n.jsxs)(i.N,{justify:"between",direction:"column",gap:"xs",className:(0,s.A)({[m().price]:!0,[`${h}`]:h,"force-mobile":b}),...k["product-card-horizontal-price"],children:[(0,n.jsxs)(i.N,{direction:"column",align:"start",className:m()["price-container"],children:[(0,n.jsxs)(a.E,{as:"span",size:"T600",weight:"heavy",className:m()["price-main"],...k["discounted-main-price-tile"],children:[`\xa3${w}`,N&&"00"!==N&&(0,n.jsxs)(a.E,{as:"span",size:"T200",weight:"heavy",className:m()["price-decimals"],children:[".",N]}),(0,n.jsx)(a.E,{as:"span",size:"T200",weight:"bold",children:t>1?(0,n.jsxs)(n.Fragment,{children:["\xa0for ",t," months*"]}):(0,n.jsx)(n.Fragment,{children:"\xa0a month"})})]}),r&&(0,n.jsxs)(a.E,{as:"span",size:"T200",weight:"regular",children:["then ",(0,_.a7)(r)," a month"]}),!0===f&&g&&g>0?(0,n.jsxs)(a.E,{...k["price-split-drawer"],size:"T200",color:"info",className:x?m()["price-split-drawer"]:m()["price-split"],children:[(0,_.a7)(g)," per person"]}):null,E&&v?(0,n.jsxs)(a.E,{size:"T200",color:"info",className:`${m()["price-split"]}`,...k["daily-cost"],children:[(0,_.a7)(v)," per day"]}):null]}),p&&p.length>0&&p.map((e,t)=>e&&(0,n.jsx)(a.E,{"data-testid":"price-changes",className:`${m()["price-increase"]} price-increase`,as:"span",size:"T200",weight:"light",children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},e)},`${e}${t}`)),j&&(0,n.jsx)(a.E,{as:"span",size:"T200",weight:"bold",...k["contract-term"],children:j}),y?.title&&y.content&&(0,n.jsx)("div",{...k["cancellation-info-link"],children:(0,n.jsx)(l.o,{title:y.title,text:(0,n.jsx)("div",{className:m()["cancellation-info"],children:(0,n.jsx)(c.S,{document:y.content,StoryblokComponent:o.Dp})}),children:(0,n.jsx)(a.E,{as:"span",size:"T200",color:"inherit",children:"Cancellation rights apply"})})})]})}},2083:e=>{e.exports={wrapper:"compare-button_wrapper__HLD04",button:"compare-button_button__yyc0I",content:"compare-button_content__PSSzn",pulseBg:"compare-button_pulseBg__cOFlM",animate:"compare-button_animate__5rPTf",pulse:"compare-button_pulse__31sLJ"}},2130:e=>{e.exports={"vm-countdown-clock-wrapper":"vm-countdown-clock_vm-countdown-clock-wrapper__SHJZt","theme-primary":"vm-countdown-clock_theme-primary__qTS4e","theme-secondary":"vm-countdown-clock_theme-secondary__XEiMU","theme-tertiary":"vm-countdown-clock_theme-tertiary__aSTYT","theme-success":"vm-countdown-clock_theme-success__GsQiB","theme-onyx":"vm-countdown-clock_theme-onyx__zymiP","theme-dark":"vm-countdown-clock_theme-dark__MuI44","theme-light":"vm-countdown-clock_theme-light__Qyw8W","theme-info":"vm-countdown-clock_theme-info__mEyf_","theme-warning":"vm-countdown-clock_theme-warning__Ues2T","theme-danger":"vm-countdown-clock_theme-danger__B8zcq","copy-text":"vm-countdown-clock_copy-text__ixrhM","vm-countdown-timer":"vm-countdown-clock_vm-countdown-timer__bYSdT",counter:"vm-countdown-clock_counter__KywzR",digits:"vm-countdown-clock_digits__rvTvp",unit:"vm-countdown-clock_unit__n9U2w",single:"vm-countdown-clock_single__pv3d4"}},2131:e=>
1{e.exports={"modal-button":"products-modal_modal-button__77tU9","modal-text":"products-modal_modal-text__Xqv6L"}},2439:e=>{e.exports={"product-info":"product-info_product-info__zPCVo","product-info_scrollable":"product-info_product-info_scrollable__FsiWv","product-info_background":"product-info_product-info_background__34R37","product-info_title":"product-info_product-info_title__3IMbT","button-close":"product-info_button-close__Y8b3j","product-info_items":"product-info_product-info_items__YMa7r","product-info_items--closed":"product-info_product-info_items--closed__nnj8T","product-info_summary":"product-info_product-info_summary__YFVWb","product-info_summery_title":"product-info_product-info_summery_title__KOKIa","product-info_gift":"product-info_product-info_gift__T0gUv","product-info_gift--vm_purple":"product-info_product-info_gift--vm_purple__aGeH6","product-info_gift--tertiary":"product-info_product-info_gift--tertiary__QphLn","product-info_gift--red":"product-info_product-info_gift--red__rRLNR","product-info_gift--primary":"product-info_product-info_gift--primary__0rSRo","product-info_gift--blue":"product-info_product-info_gift--blue__sALZw","product-info_gift--info":"product-info_product-info_gift--info__lcutZ","product-info_gift--secondary":"product-info_product-info_gift--secondary__AStrt","product-info_gift--green":"product-info_product-info_gift--green__znIYz","product-info_gift--success":"product-info_product-info_gift--success__5jNLr","product-info_gift--onyx":"product-info_product-info_gift--onyx__XHSVB","product-info_gift--black":"product-info_product-info_gift--black__84v_5","product-info_gift--warning":"product-info_product-info_gift--warning__4igdx","product-info_gift--danger":"product-info_product-info_gift--danger__mApah","product-info_gift--dark":"product-info_product-info_gift--dark__9hCHW","product-info_gift--light":"product-info_product-info_gift--light__YcA4T","sale-banner--onyx":"product-info_sale-banner--onyx__JLup_","product-info_footer":"product-info_product-info_footer__dqIIm","product-info_footer--entertainment":"product-info_product-info_footer--entertainment__ZKy9q","product-info_footer-images":"product-info_product-info_footer-images__LmI5c","product-info_footer-price":"product-info_product-info_footer-price__Cno7X","product-info_footer--manual":"product-info_product-info_footer--manual__UyH_M","product-info_footer-button--manual":"product-info_product-info_footer-button--manual__HhJnp","product-info_price":"product-info_product-info_price__JsZud","force-mobile":"product-info_force-mobile__o1hx5","product-info_modal":"product-info_product-info_modal__MufHZ","product-info_modal--open":"product-info_product-info_modal--open__7m8kv","product-info_modal-container":"product-info_product-info_modal-container__YJ5Qk","product-info_modal-title":"product-info_product-info_modal-title__ua5Eu","button-back":"product-info_button-back__B7i3N"}},2531:(e,t,r)=>{"use strict";r.d(t,{P:()=>n.MediaBundle});var n=r(11516)},2730:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(12115),o=r(66045),i=r(67526);let a=({onSettle:e}={})=>{let{setIsLoading:t}=(0,n.useContext)(i.ByobContext),{showBasketNotification:r}=(0,o.rf)(),[a,s]=(0,n.useTransition)(),l=(0,n.useRef)(!1),c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{a?(l.current=!0,t(!0)):l.current&&(t(!1),l.current=!1,c.current&&(r(c.current),c.current=null,e?.()))},[a,t,r,e]),{isPending:a,startTransition:s,queueNotification:e=>{c.current=e},showBasketNotification:r}}},2955:e=>{e.exports={"bundles-carousel":"bundles-carousel_bundles-carousel__qIUTX","has-open-item":"bundles-carousel_has-open-item__fflMI"}},3264:e=>{e.exports={tile:"dynamo-tile_tile__LhSGY","modal-anchor":"dynamo-tile_modal-anchor__QSGoS"}},3288:e=>{e.exports={card:"dynamo-card_card__flmpl","card__image--aside":"dynamo-card_card__image--aside__VqsrX",img:"dynamo-card_img__shlIq","card__image--inset":"dynamo-card_card__image--inset__TPDqO",card__border:"dynamo-card_card__border__FPKrC"}},3703:e=>{e.exports={loading:"Loader_loading__CQ6Eo",dots:"Loader_dots__UNv_u","loading-text-wrapper":"Loader_loading-text-wrapper__ehFNJ","loading-text":"Loader_loading-text__iPYx_"}},4735:e=>{e.exports={"uf-tile":"tile_uf-tile___wMyu","uf-tile__icon":"tile_uf-tile__icon__1F36P",tile__image:"tile_tile__image__wax3r","uf-tile__text":"tile_uf-tile__text__Lv3u3","t
1ile--hide-title":"tile_tile--hide-title__wZvz_"}},4787:e=>{e.exports={"price-split":"footer-price_price-split__IfcPl","price-split-drawer":"footer-price_price-split-drawer__8If7Q","price-increase":"footer-price_price-increase__6wKKy",price:"footer-price_price__UagK_"}},5334:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={src:"/vm-upper-funnel/assets/_next/static/media/sorry.871ff7ed.svg",height:167,width:476,blurWidth:0,blurHeight:0}},5344:(e,t,r)=>{"use strict";r.d(t,{F:()=>n.AddToBasket});var n=r(66649)},5383:(e,t,r)=>{"use strict";r.d(t,{F:()=>m});var n=r(95155),o=r(12115),i=r(42737),a=r(89810),s=r(29722),l=r(38198),c=r(97297),d=r(96067),u=r(67526),_=r(44576),p=r.n(_);let m=({blok:e,slides:t,align:r="center",className:_})=>{let{overflow_section_mobile:m,overflow_section_tablet:h,overflow_section_desktop:b,...g}=e,f=Number(e.tablet_breakpoint),x=Number(e.desktop_breakpoint),v=(0,l.G)({width:f}),y=(0,l.G)({width:x}),{setIsLoading:j}=(0,o.useContext)(u.ByobContext);return(0,o.useEffect)(()=>{j(!1)},[j]),(0,n.jsx)(a.ModalProvider,{children:(0,n.jsxs)(d.ProductsModalProvider,{children:[(0,n.jsx)("div",{className:(0,s.A)(p()["byob-product-carousel"],p()[`byob-product-carousel--align-${r}`],_),children:(0,n.jsx)(i.Carousel,{loop:g.loop,autoplay:g.autoplay,effect:g.effect,theme:g.theme?g.theme:void 0,slides:t,breakpoints:{0:{slidesPerView:"auto",overflow:m},[f]:{slidesPerView:"auto",overflow:h},[x]:{slidesPerView:"auto",overflow:b}},updateBreakpointsDynamically:!0,spaceBetween:g.spaceBetween??(v||y?24:8),speed:800,isPagination:g.pagination,isNavigation:g.navigation})}),(0,n.jsx)(c.ProductsModal,{})]})})}},5423:(e,t,r)=>{"use strict";r.d(t,{o:()=>n.o});var n=r(47277)},5560:e=>{e.exports={"vm-tv-listing":"vm-tv-listing_vm-tv-listing__hvYLH","vm-tv-listing_show":"vm-tv-listing_vm-tv-listing_show__kFMXN","vm-tv-listing-input":"vm-tv-listing_vm-tv-listing-input__2AJBA","vm-tv-listing-container":"vm-tv-listing_vm-tv-listing-container__fUyn5","view-all-button":"vm-tv-listing_view-all-button__bKjq3","vm-tv-listing-buttons":"vm-tv-listing_vm-tv-listing-buttons__QqU77","vm-tv-listing-button":"vm-tv-listing_vm-tv-listing-button__087xL"}},5616:e=>{e.exports={breadcrumbs:"breadcrumbs-legacy_breadcrumbs__1uS52","uf-breadcrumbs__list-item":"breadcrumbs-legacy_uf-breadcrumbs__list-item__BXYdq"}},5620:(e,t,r)=>{"use strict";r.d(t,{z:()=>n});let n=e=>{let t=Number(e),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%3600/60),i=Math.floor(t%60);return{d:`${r}d`,h:`${n}h`,m:`${o}m`,s:`${i}s`}}},6024:e=>{e.exports={"hero-banner__flares":"hero-flares_hero-banner__flares__5_yGi"}},6389:e=>{e.exports={"bundle-description":"Description_bundle-description__k5Udj"}},6471:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var n=r(95155),o=r(12572),i=r(51073),a=r(82567),s=r(9759);let l=({variant:e,onClick:t,onRemoveClick:r,isSelected:l,removable:c})=>{let d=c&&l,u=d&&o.CX1||l&&o.U6d||o.ajm,_=d&&"Remove"||l&&"Selected"||"Add";return(0,n.jsx)(s.r,{variant:e,onClick:d?r:t,active:l,disabled:l&&!c,icon:(0,n.jsx)(i.I,{icon:u,size:"md"}),children:(0,n.jsx)(a.E,{color:"inherit",weight:"bold",children:_})})}},7452:e=>{e.exports={"product-card-ribbon":"sale-ribbon-portrait_product-card-ribbon__5f2sB","product-card-ribbon--primary":"sale-ribbon-portrait_product-card-ribbon--primary__ThyBq","product-card-ribbon--secondary":"sale-ribbon-portrait_product-card-ribbon--secondary__E6A5V","product-card-ribbon--onyx":"sale-ribbon-portrait_product-card-ribbon--onyx__VWteO","product-card-ribbon-volt":"sale-ribbon-portrait_product-card-ribbon-volt__2Ykte","product-card-ribbon--volt-banner":"sale-ribbon-portrait_product-card-ribbon--volt-banner__qSCD3"}},7988:e=>{e.exports={"iframe-container":"vm-speed-test_iframe-container__3KjVl"}},8674:e=>{e.exports={"column-flex-start":"VertexSearch_column-flex-start__2hkes",container:"VertexSearch_container__fUNzn","search-placeholder":"VertexSearch_search-placeholder__40WxW","layout-split":"VertexSearch_layout-split__3YJOR","search-form":"VertexSearch_search-form__WXLkQ",disabled:"VertexSearch_disabled___V7vV",button:"VertexSearch_button__UY4aS",search:"VertexSearch_search___yjfI",close:"VertexSearch_close__nhv_c",portal:"VertexSearch_portal__ZZ1nu",hidden:"VertexSearch_hidden__fQRas",backdrop:"VertexSearch_backdrop__e63BL",content:"VertexSearch_content__Z9IeY","search-form-container":"
1VertexSearch_search-form-container__NmMv2","close-modal":"VertexSearch_close-modal__8uXFl",box:"VertexSearch_box__zRB3T","box-title":"VertexSearch_box-title__PFkaA",autocomplete:"VertexSearch_autocomplete__8mUaf",suggestions:"VertexSearch_suggestions__37xEM",suggestion:"VertexSearch_suggestion__55wmA","grid-container":"VertexSearch_grid-container__nrimm",grid:"VertexSearch_grid__Nq82m","skeleton-card":"VertexSearch_skeleton-card__apXcP"}},9552:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeaderToggle:()=>c});var n=r(95155),o=r(12115),i=r(94714),a=r(51073),s=r(25685),l=r(97157);let c=()=>{let{expanded:e,setExpanded:t}=(0,o.useContext)(l.NavigationCtx),r=(0,o.useCallback)(()=>{t(e=>!e)},[t]);return(0,n.jsx)(s.I,{title:"Open Navigation",icon:(0,n.jsx)(a.I,{icon:i.STX}),onClick:r,"aria-expanded":e})}},9579:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,i:()=>i});var n=r(65305);let o=(e,t)=>{if(!e||!t)return"";let r=t?.total?.[0]?.duration,n=t?.total?.[0]?.saving,o=e.includes("{{SAVINGS}}")||e.includes("{{SAVINGS_DURATION}}");if(!n&&o)return"";if(!n||!r)return e;let i={SAVINGS:n.replace(/\.00$/,""),SAVINGS_DURATION:r};return e.replaceAll(/\{\{\s*(SAVINGS|SAVINGS_DURATION)\s*\}\}/g,(e,t)=>i[t].toString())},i=(e,t)=>{if(!e)return;let{banner_text:r,sp_increase_banner_text:o,sp_decrease_banner_text:i,banner_sp_increase:a,banner_sp_decrease:s}=e,l=e=>e&&e.trim().length>0?e.trim():void 0,c=l(r),d=l(o),u=l(i);return t===n.kL.INCREASE?a===n.o6.SHOW?d??c:void 0:t===n.kL.DECREASE?s===n.o6.SHOW?u??c:void 0:c}},9604:(e,t,r)=>{"use strict";r.d(t,{G:()=>i,I:()=>a});var n=r(41463);let o=/\/(\d+)x(\d+)\/[^/]+\/[^/]+\.(\w+)$/,i=(e,t)=>{if(!e?.filename)return;let r=o.exec(e.filename);if(!r)return;let i=+r[1],a=+r[2],s="svg"===r[3],l=e.filename;try{let r=new URL(e.filename);if(t)r.hostname=t;else{let e=n?.env?.CDN_DOMAIN;e&&(r.hostname=e)}l=r.toString()}catch(t){console.warn("coerceClientImage: Failed to parse image URL - falling back to original",{filename:e.filename,error:t})}return{alt:e.alt||"",src:l,title:e.title?e.title:void 0,width:i,height:a,unoptimized:s}},a=(e,t)=>{if(e&&o.exec(e))try{let r=new URL(e);if(t)r.hostname=t;else{let e=n?.env?.CDN_DOMAIN;e&&(r.hostname=e)}return r.toString()}catch(t){return console.warn("coerceClientImageSrc: Failed to parse image URL - falling back to original",{filename:e,error:t}),e}}},9759:(e,t,r)=>{"use strict";r.d(t,{r:()=>l});var n=r(95155),o=r(18401),i=r(29722),a=r(60929),s=r.n(a);let l=({variant:e,active:t,className:r,...a})=>(0,n.jsx)(o.$,{variant:"secondary",decoration:"outline",className:(0,i.A)("light"===e&&s()["button--light"],t&&s()["button--active"],a.decoration&&s()[`button--${a.decoration}`],r),...a})},10202:(e,t,r)=>{"use strict";r.r(t),r.d(t,{VBook:()=>h});var n=r(95155),o=r(5772),i=r(12115),a=r(96653),s=r(31725),l=r(11389),c=r(51073),d=r(29722),u=r(67270),_=r(57900),p=r(68018),m=r.n(p);let h=({id:e,title:t,content:r,cta:p,image:h,imageTint:b,attachmentY:g,attachmentX:f,logo:x,...v})=>{let y=(0,i.useRef)(null),{expanded:j,setExpanded:w}=(0,i.useContext)(_.BookshelfContext),N=(0,i.useId)(),k=(0,i.useCallback)(()=>{w(e),y.current?.focus()},[w,e]),E=(0,u.G)(x);return(0,n.jsxs)("div",{"data-testid":"v-book",ref:y,tabIndex:-1,className:(0,d.A)({[m()["v-book"]]:!0,[m()["v-book--expanded"]]:j===e,[m()["v-book--tint-black"]]:"black"===b}),style:{"--background-image":`${h}`,"--attachment-x":`${f}%`,"--attachment-y":`${g}%`},...v,children:[E&&(0,n.jsx)("div",{className:m()["v-book__logo-container"],children:(0,n.jsx)(o.default,{unoptimized:!0,"data-testid":"v-book-logo",className:m()["v-book__logo"],src:E?.src,alt:E?.alt,loading:"eager",width:0,height:0})}),!E&&(0,n.jsx)("div",{"data-testid":"v-book-title",className:m()["v-book__title"],children:t}),(0,n.jsxs)("section",{"data-testid":"v-book-content",id:N,"aria-label":t,"aria-hidden":j!==e,className:m()["v-book__content"],children:[(0,n.jsx)("div",{className:m()["v-book__description"],children:(0,n.jsx)(s.SY,{document:r,StoryblokComponent:a.Dp})}),(0,n.jsx)("div",{className:m()["v-book__cta"],children:p})]}),(0,n.jsx)("div",{className:m()["v-book__controls"],children:(0,n.jsxs)("button",{"data-testid":"v-book-toggle",type:"button",className:m()["v-book__control"],onClick:k,"aria-controls":N,"aria-expanded":j===e,children:[(0,n.jsx)("span",{className:m()["v-book__control-indicator"],children:(0,n.jsx)(c.I,{icon:l.jVj,"aria-hidden":!0})}),(0,n.jsx)("span",{className:m()["v-book__control-text"],children:"Expand"})]})})]})}},10785:(e,t,r)=>{"use strict";r.d(t,{ProductCarousel:()=>d});
1var n=r(95155),o=r(12115),i=r(82567),a=r(23337),s=r(84858),l=r(67526),c=r(5383);let d=({blok:e})=>{let{validBundles:t,intentType:r}=(0,o.useContext)(l.ByobContext),d=(e=>{switch(e){case"tv":return s.s;case"broadband":return a.k}})(r),u=t.map(e=>{let{variant:t,title:r,description:o,image:i,is_addon:a}=e?.sbBundle.content.byob_additional_content?.[0]?.content||{};return{children:d&&e?(0,n.jsx)(d,{variant:t,title:r,description:o,image:i,is_addon:a,msaBundle:e.msaBundle,sbBundle:e.sbBundle}):null}});return t.length?(0,n.jsx)(c.F,{slides:u,blok:e}):(0,n.jsx)(i.E,{align:"center",children:"We're sorry, it looks like there's no products available to you on this page."})}},10930:e=>{e.exports={title:"title_title__GvMMF","title-landscape":"title_title-landscape__TglSk"}},11155:e=>{e.exports={"uf-sidenav__section":"side-nav-section_uf-sidenav__section__VQ_0F","sidenav__section--divider":"side-nav-section_sidenav__section--divider__vehBu"}},11247:(e,t,r)=>{"use strict";r.d(t,{_:()=>d});var n=r(95155),o=r(54505),i=r(29722),a=r(29081),s=r(49105),l=r.n(s),c=r(13941);let d=({className:e,children:t,instance:r,position:s="right",...d})=>{let{open:u}=(0,c.b)(),_=u===r?`${l().open} drawer-open`:"",p=(0,a.Og)("drawer-section");return(0,n.jsx)(o.e,{className:(0,i.A)({[l().drawer]:!0,[`${e}`]:e,[_]:u,[l()["drawer--left-position"]]:"left"===s}),...p["drawer-section"],...d,children:t})}},11516:(e,t,r)=>{"use strict";r.r(t),r.d(t,{MediaBundle:()=>m});var n=r(95155),o=r(5772),i=r(11241),a=r(29722),s=r(65305),l=r(29081),c=r(44705),d=r(67270),u=r(17373),_=r(41768),p=r.n(_);let m=({background:e,photos:t,forceMobile:r=!1})=>{let _=(0,l.Og)("product-card-horizontal-bundle-image","product-card-horizontal-flare-image","product-card-horizontal-type-images"),m=t.filter(e=>e.productType&&e.productType!==s.po.NONPRODUCT),h=m.find(e=>e.productType===s.po.TV)?`photos-${m.length}-tv`:`photos-${m.length}`,b=(0,c.u)(e?.filename?.toString()),g=(0,d.G)(e),f=(0,u.Z)("landscape");return(0,n.jsxs)(i.s,{..._["product-card-horizontal-bundle-image"],wrap:"wrap",className:(0,a.A)({[p()["media-bundle"]]:!0,"force-mobile":r}),justify:"around",align:"center",children:[(0,n.jsx)(i.s,{className:`${p()["flare-container"]} ${p()[b||""]}`,children:g&&(0,n.jsx)(o.default,{alt:g.alt,src:g.src,fill:!0,..._["product-card-horizontal-flare-image"]})}),(0,n.jsx)(i.s,{justify:"center",align:"center",className:(0,a.A)({[p().photos]:!0,[p()[h]]:!0}),..._["product-card-horizontal-type-images"],children:m.map(e=>(0,n.jsx)(o.default,{sizes:f[e.productType],className:p()[e.productType],alt:e.alt,src:e.src,width:e.width,height:e.height,...(0,l.sE)("product-card-horizontal-type-image",null)},e.src.toString()))})]})}},12180:(e,t,r)=>{"use strict";r.d(t,{I:()=>s,OpenItemsProvider:()=>a,q:()=>l});var n=r(95155),o=r(12115);let i=(0,o.createContext)(void 0),a=({children:e})=>{let[t,r]=(0,o.useState)(new Map),a=(0,o.useCallback)(e=>{r(t=>new Map(t).set(e,!1))},[]),s=(0,o.useCallback)(e=>{r(t=>{let r=new Map(t);return r.delete(e),r})},[]),l=(0,o.useCallback)((e,t)=>{r(r=>new Map(r).set(e,t))},[]),c=Array.from(t.values()).some(e=>e),d=(0,o.useMemo)(()=>({isAnyItemOpen:c,registerItem:a,unregisterItem:s,updateItem:l}),[c,a,s,l]);return(0,n.jsx)(i.Provider,{value:d,children:e})},s=()=>{let e=(0,o.useContext)(i);if(!e)throw Error("useOpenItems must be used within an OpenItemsProvider");return e},l=()=>{let{registerItem:e,unregisterItem:t,updateItem:r}=s(),[n]=(0,o.useState)(()=>Symbol());return(0,o.useEffect)(()=>(e(n),()=>t(n)),[n,e,t]),e=>{r(n,e)}}},12612:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});let n=e=>/netflix/i.test(e)},13161:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tile:()=>c});var n=r(95155),o=r(12115),i=r(29722),a=r(29081),s=r(4735),l=r.n(s);let c=(0,o.forwardRef)(({as:e="a",children:t,className:r,icon:o,image:s,href:c,hideTitle:d,active:u,..._},p)=>{let{onClick:m,style:h,...b}=_,g=(0,a.Og)("tile-link","tile-icon","tile-image","tile-text"),f=!!c,x={...b,ref:p,className:(0,i.A)("tile",l()["uf-tile"],{"tile--active":u,[l()["tile--hide-title"]]:d},r),"data-testid":"tile-link",...g["tile-link"],role:f?"link":"button",onClick:f?m:e=>e.preventDefault(),style:f?h:{pointerEvents:"none",cursor:"default",...h},...f&&{href:c}};return(0,n.jsxs)(e,{...x,children:[o&&(0,n.jsx)("span",{className:(0,i.A)("tile__icon",l()["uf-tile__icon"]),...g["tile-icon"],children:o}),s&&(0,n.jsx)("span",{className:l().tile__image,...g["tile-image"],children:s}),(0,n.jsx)("span",{className:(0,i.A)("tile__text",l()["uf-tile__text"]),...g["tile-text"],children:t})]})});c.displayName="Tile"},13339:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var n=r(65305);let o=(e,t)=>{if(!e||!t)return null;let r=e.products?.find(e=>
1e.productCode===t);return{productName:(()=>{switch(r?.productDisplayGroup?.[0]){case"rolling_contract_setup":return"Rolling contract fee";case"standard_setup":return"Setup fee";default:return r?.productName}})(),productCode:t}},i=e=>{let t=e?.sbProducts,r=e?.basketPricing?.products,i=e?.basketPricing?.totalOneOffCost?.filter(e=>e.chargeType===n.e$.ONE_OFF_PAY_LATER||e.chargeType===n.e$.ONE_OFF_PAY_NOW).flatMap(e=>e.charges),a=i?.filter(e=>e?.productCode&&e?.chargeCategory===n.ZE.EQUIPMENT)?.reduce((n,i)=>({...n,[`${i?.productCode}`]:{price:Number(i?.price?.amount||"0")+Number(n?.[`${i?.productCode}`]?.price||"0"),...o(e?.basketPricing,i?.productCode),blok:t?.find(e=>e.slug===i?.productCode),productGroup:r?.find(e=>e.productCode===i?.productCode)?.productGroup}}),{}),s=i?.filter(e=>e?.productCode&&e?.chargeCategory==="Setup")?.reduce((n,i)=>({...n,[`${i?.productCode}`]:{price:Number(i?.price?.amount)+Number(n?.[`${i?.productCode}`]?.price||0),...o(e?.basketPricing,i?.productCode),blok:t?.find(e=>e.slug===i?.productCode),productGroup:r?.find(e=>e.productCode===i?.productCode)?.productGroup}}),{});return{hasSetupFees:!!(s&&Object.values(s).find(({productName:e,price:t})=>"Setup fee"===e&&t>0)),setupCharges:{"Equipment provided":a,"One-off fees":s}}}},13941:(e,t,r)=>{"use strict";r.d(t,{DrawerProvider:()=>l,b:()=>c});var n=r(95155),o=r(12115),i=r(65305),a=r(87797);let s=(0,o.createContext)({open:i.Qb.NONE,setOpen:()=>{},selectedBundle:void 0,setSelectedBundle:()=>{},selectedBundleStyle:"default",setSelectedBundleStyle:()=>{},billSplit:!1,setBillSplit:()=>{}}),l=({children:e})=>{let{removeToasts:t}=(0,a.R)(),[r,l]=(0,o.useState)(!1),[c,d]=(0,o.useState)(void 0),[u,_]=(0,o.useState)("default"),[{open:p},m]=(0,o.useState)({open:i.Qb.NONE});(0,o.useEffect)(()=>{c&&(c.msaBundle?m({open:i.Qb.PRODUCT_INFO}):m({open:i.Qb.PRODUCT_INFO_MANUAL}))},[c]),(0,o.useEffect)(()=>{t()},[c,p]);let h=(0,o.useMemo)(()=>({open:p,setOpen:m,selectedBundle:c,setSelectedBundle:d,billSplit:r,setBillSplit:l,selectedBundleStyle:u,setSelectedBundleStyle:_}),[p,c,u,r]);return(0,n.jsx)(s.Provider,{value:h,children:e})},c=()=>(0,o.useContext)(s)},14237:e=>{e.exports={"uf-show-more":"show-more_uf-show-more__mrjdS"}},15355:(e,t,r)=>{"use strict";r.d(t,{Cz:()=>l,GV:()=>d,Jt:()=>c});var n=r(65305),o=r(32694),i=r(28877);let a=e=>e.map(e=>e?.productCode).join("|"),s=(e,t)=>{let r=e.find(e=>e?.productCategory===t);return r?r.productCode:""},l=(e,t,r,o,a)=>{let s,l,c,d,{tldPricing:u,contract:_,setupFees:p}=(0,i.O)(e),m=e?.products?.filter(e=>e.classification===n.ZE.DISCOUNT);return{item_id:m?.map(e=>e.productCode).join("|"),item_name:t?.content.display_name?.content?.[0]?.content?.[0]?.text||t?.name,affiliation:"vm - sales",currency:"GBP",cohort_id:e?.cohort_id,discount:e.products?.find(e=>e.classification===n.ZE.DISCOUNT)?.prices?.[0]?.price?.amount||"0",index:1,item_brand:"virgin",item_category:"bundle",item_category2:(l=(s=new Set(e?.journeyTypes??[])).has("Broadband"),c=s.has("Phone"),d=s.has("TV"),l?c&&d?"triple":c||d?"dual":"solus":""),item_category3:e?.journeyTypes?.join("|").toLowerCase(),item_list_id:"sales_none_product_listing",item_list_name:"sales none product listing",item_variant:e?.cohort_id,price:u?.pricing.discountedTld?.amount||u?.pricing.timeLimitedDiscount,quantity:1,compax_id:e.bundleId,ongoing_price:u?.pricing.regular,activation_fee:p?.standard_setup.amount,tld_price:u?.pricing.discountedTld?.amountWithDiscount||0,tld_length:u?.pricing.discountedTld?.discountDuration||0,contract_length:_.term,mdm_codes:e?.products?.map(({productCode:e})=>e).join("|"),tld_type:u?.pricing.discountedTld?.tldType,delivery_method:o,flash_campaign_name:r?.banner?.content.banner_text||r?.promotion?.content.promotion_title,...a}},c=e=>{switch(e){case o._3.BASE_BUNDLE:return"sales_byo_tv_base_bundle";case o._3.TV_CHANNELS:return"sales_byo_tv_channels";case o._3.BROADBAND:return"sales_byo_tv_broadband";case o._3.STREAM_BOXES:return"sales_byo_tv_stream_boxes"}},d=(e,t,r,o)=>{var i,c;let d,u,_,p,m,h,b,g,f,x,v=l(e,t,r,o),y=(e.products||[]).filter(e=>e?.classification===n.ZE.CORE),j=(d=e.products||[]).filter(e=>e?.classification===n.ZE.ADD_ON&&e?.productCategory==="TV"&&!e?.productDisplayGroup?.includes("stream_package_details")&&!e?.productDisplayGroup?.includes("tv_boxes")).c
1oncat(d.filter(e=>e?.classification===n.ZE.ADD_ON&&(e?.productGroup?.includes("disney_interest")||e?.productGroup?.includes("netflix_interest")||e?.productGroup?.includes("netflix_enrol")))),w=(u=e.products??[],u?.filter(e=>e?.classification===n.ZE.ADD_ON&&e?.productDisplayGroup?.includes("streamtv"))),N=(_=e.products??[],_?.filter(e=>e?.classification===n.ZE.ADD_ON&&e?.productDisplayGroup?.includes("stream_channel_packs"))),k=(e.products||[]).filter(e=>e?.productCategory==="PH"),E=(e.products||[]).filter(e=>"SIM"===e.productCategory);return{...v,index:0,item_name:(i=w[0],p=y.find(e=>e?.productCategory==="BB"),m=y.find(e=>e?.productCategory==="PH"),h=y.find(e=>e?.productCategory==="SIM"),b=y.find(e=>e?.productCategory==="TV"),(g=y.map(e=>e?.productName))&&1===g.length&&p?p.productName+(i?" + Flex":""):p?.productName+(i?" + Flex":"")+(m?" + Phone":"")+(h?" + Sim":"")+(b?" + Tv":"")),item_category:"bundles",item_list_id:void 0,item_list_name:void 0,bundleId:e.bundleId,components:y.map(e=>e?.productName).join("|"),bundle_tv:s(y,"TV"),bundle_tv_addon:a(j.slice(0,5)),bundle_tv_addon_2:a(j.slice(5)),bundle_tv_stream:a(w),bundle_tv_stream_addon:a(N.slice(0,10)),bundle_tv_stream_addon_2:a(N.slice(10)),bundle_broadband:s(y,"BB"),bundle_phone:a(k),bundle_sim:a(E),bundle_other_components:(c=e?.products??[],f=c?.filter(e=>(e?.classification===n.ZE.ADD_ON||e?.classification===n.ZE.EQUIPMENT)&&!e?.bundleProduct&&e?.productCategory==="TV"&&(e?.productDisplayGroup?.includes("ao_stream_tv_box")||e?.productDisplayGroup?.includes("default_set_top_box"))||e?.classification===n.ZE.SETUP||e?.productDisplayGroup?.includes("hidden_addon")),x=f?.map(e=>e?.productCode&&e?.originalProductCode?`${e.productCode}_${e.originalProductCode}`:e?.productCode?`${e.productCode}`:""),x?.join("|"))}}},15952:(e,t,r)=>{"use strict";r.d(t,{default:()=>_});var n=r(95155),o=r(11389),i=r(18401),a=r(51073),s=r(29722),l=r(12115),c=r(29081),d=r(95820),u=r.n(d);let _=function({buttonTitle:e,buttonVariant:t}){let{visible:r,fixed:d}=(()=>{let[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(!1),o=(0,l.useCallback)(()=>{let{documentElement:e,body:r}=document,o=window.scrollY||e.scrollTop||r.scrollTop,i=(e.scrollHeight||r.scrollHeight)-(e.clientHeight||r.clientHeight);t(o/i>.3),n(o/i>.99)},[]);return(0,l.useEffect)(()=>(document.addEventListener("scroll",o),()=>{document.removeEventListener("scroll",o)}),[o]),{visible:e,fixed:r}})(),_=(0,c.Og)("back-to-top-button","back-to-top-chevronup-icon");return(0,n.jsx)("div",{className:(0,s.A)({[u()["back-to-top"]]:!0,[u()["back-to-top--visible"]]:r&&!d,[u()["back-to-top--static"]]:d}),children:(0,n.jsxs)(i.$,{className:u().backToTop,variant:t,onClick:()=>{let e=document.querySelector("#topOfPage");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},"data-testid":"back-to-top",rounded:"xl",..._["back-to-top-button"],children:[(0,n.jsx)(a.I,{icon:o.XpQ,..._["back-to-top-chevronup-icon"]}),e]})})}},16053:e=>{e.exports={"progress-bar":"byob-progress-bar_progress-bar__zTsC_",grow:"byob-progress-bar_grow___Lwjs"}},16075:e=>{e.exports={"entertainment-logo":"entertainment-logo_entertainment-logo__N8LtZ","entertainment-logo__img":"entertainment-logo_entertainment-logo__img__ScUxb","entertainment-logo__img--portrait":"entertainment-logo_entertainment-logo__img--portrait__MqcS_"}},16116:e=>{e.exports={card:"tv-product-card_card__sscJO","card--selected":"tv-product-card_card--selected__3rI6y",title:"tv-product-card_title__Gx0fy",description:"tv-product-card_description__xA5l8",feature:"tv-product-card_feature__rIxWt",pricing:"tv-product-card_pricing__LZbmB",originalPrice:"tv-product-card_originalPrice__T4iua",currentPrice:"tv-product-card_currentPrice__61QSe",pricingSubText:"tv-product-card_pricingSubText__MhjDA",contractInfo:"tv-product-card_contractInfo___Sk6d","card--purple":"tv-product-card_card--purple__4tD87",featureText:"tv-product-card_featureText__Xt8pd",seeAllChannels:"tv-product-card_seeAllChannels__rjV1s","card--black":"tv-product-card_card--black__XTsxt",promoPrice:"tv-product-card_promoPrice__9vRaP","card--white":"tv-product-card_card--white__T4Z3q",cardContent:"tv-product-card_cardContent__9ZMoT",topSection:"tv-product-card_topSection__ovw4S",bottomSection:"tv-product-card_bottomSection__fBq4V",imageContainer:"tv-product-card_imageContainer__kVnF8",deviceImage:"tv-product-card_deviceImage__m5JmU","deviceImage--withRoundel":"tv-product-card_deviceImage--withRoundel__Bp_RM",contractPreText:"tv-product-card_contractPreText__OMKfb",contractDuration:"tv-product-card_contractDuration__W685k"}},16420:(e,t,r)=>{"use strict";r.d(t,{S:()=>n.S});var n=r(52911)},16999:(e,t,r)=>{"use strict";r.d(t,{BasketNotification:()=>m,BasketNotificationProvider:()=>h,useBasketNotification:()=>p});var n=r(95155),o=r(5772),i=r(12115),a=r(11389),s=r(38207),l=r(51073),c=r(29722),d=r
1(49209),u=r.n(d);let _=(0,i.createContext)(void 0),p=()=>{let e=(0,i.useContext)(_);if(void 0===e)throw Error("useBasketNotification must be used within a BasketNotificationProvider");return e},m=({notification:e,animationState:t,onClose:r,onTransitionEnd:i})=>{let{image:d,title:_,description:p,variant:m="default"}=e,h=(0,c.A)(u()["basket-notification-container"],u()[`basket-notification-container--${t}`],{[u()["basket-notification-purple"]]:"purple"===m});return(0,n.jsx)("div",{className:h,onTransitionEnd:i,children:(0,n.jsx)(s.Fc,{actions:(0,n.jsx)(s.DS,{onClose:r}),className:u()["basket-notification"],variant:"success",children:(0,n.jsxs)("div",{className:u()["basket-notification-content"],children:[(0,n.jsxs)("div",{className:u()["basket-notification-header"],children:[(0,n.jsx)(l.I,{icon:a.PcF,size:"lg",color:"success"}),(0,n.jsx)("h3",{className:u()["basket-notification-header-text"],children:"Added to bag"})]}),(0,n.jsxs)("div",{className:u()["basket-notification-details"],children:[d&&(0,n.jsx)(o.default,{src:d,alt:_,width:32,height:32,className:u()["basket-notification-image"]}),(0,n.jsxs)("div",{className:u()["basket-notification-text-content"],children:[(0,n.jsx)("h4",{className:u()["basket-notification-title"],children:_}),(0,n.jsx)("p",{className:u()["basket-notification-description"],children:p})]})]})]})})})},h=({children:e})=>{let[t,r]=(0,i.useState)({notification:null,pendingNotification:null,isVisible:!1,animationState:"entering"}),o=(0,i.useCallback)(e=>{r(t=>t.isVisible?{...t,pendingNotification:e,animationState:"exiting"}:{notification:e,pendingNotification:null,isVisible:!0,animationState:"entering"})},[]),a=(0,i.useCallback)(()=>{r(e=>({...e,animationState:"exiting"}))},[]),s=(0,i.useCallback)(()=>{r(e=>"exiting"===e.animationState?e.pendingNotification?{notification:e.pendingNotification,pendingNotification:null,isVisible:!0,animationState:"entering"}:{notification:null,pendingNotification:null,isVisible:!1,animationState:"entering"}:e)},[]);(0,i.useEffect)(()=>{if("entering"===t.animationState){let e=setTimeout(()=>{r(e=>({...e,animationState:"visible"}))},50);return()=>clearTimeout(e)}},[t.animationState]),(0,i.useEffect)(()=>{if("visible"===t.animationState){let e=setTimeout(()=>{a()},t.notification?.duration??5e3);return()=>clearTimeout(e)}},[t.animationState,a,t.notification?.duration]);let l=(0,i.useMemo)(()=>({showBasketNotification:o}),[o]);return(0,n.jsxs)(_.Provider,{value:l,children:[e,t.isVisible&&t.notification&&(0,n.jsx)(m,{notification:t.notification,animationState:t.animationState,onClose:a,onTransitionEnd:s})]})}},17256:e=>{e.exports={"sale-banner":"sale-banner-portrait_sale-banner__ksm2M","sale-banner--countdown":"sale-banner-portrait_sale-banner--countdown__O777I","sale-banner--volt":"sale-banner-portrait_sale-banner--volt__mTk9D","sale-banner--black":"sale-banner-portrait_sale-banner--black__WYOdz","sale-banner--vm_purple":"sale-banner-portrait_sale-banner--vm_purple__gA8QQ","sale-banner--tertiary":"sale-banner-portrait_sale-banner--tertiary__Y2h2g","sale-banner--red":"sale-banner-portrait_sale-banner--red__TDwBg","sale-banner--primary":"sale-banner-portrait_sale-banner--primary__Tr7x1","sale-banner--blue":"sale-banner-portrait_sale-banner--blue__QbgWN","sale-banner--info":"sale-banner-portrait_sale-banner--info___ybYx","sale-banner--secondary":"sale-banner-portrait_sale-banner--secondary__Bik7C","sale-banner--green":"sale-banner-portrait_sale-banner--green__3lhhv","sale-banner--success":"sale-banner-portrait_sale-banner--success__WxBHA","sale-banner--onyx":"sale-banner-portrait_sale-banner--onyx__AzH9d","sale-banner--warning":"sale-banner-portrait_sale-banner--warning__oDawz","sale-banner--danger":"sale-banner-portrait_sale-banner--danger__Ur7p9","sale-banner--dark":"sale-banner-portrait_sale-banner--dark__Q9Pf2","sale-banner--light":"sale-banner-portrait_sale-banner--light__6DZTX","countdown-item":"sale-banner-portrait_countdown-item__0MdrV"}},17373:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let n={broadband:"130px",sim:"110px",tv:"360px",landline:"200px",nonproduct:"0px"},o={broadband:"(max-width: 1024px) 130px, 100px",sim:"(max-width: 1024px) 110px, 88px",tv:"(max-width: 1024px) 360px, 200px",landline:"(max-width: 1024px) 200px, 160px",nonproduct:"0px"},i=e=>"portrait"===e?n:o},17955:(e,t,r)=>{"use strict";r.d(t,{AnimatedCarousel:()=>I});var n=r(95155),o=r(5772),i=r(12115);r(13445),r(5575);var a=r(42737);let s=.15,l=.05,c=.25,d=.35,u=.2,_=.3,p=.25,m=.35,h=.4,b=.45,g=.07,f=.04,x=.05,v="power2.out",y="back.out(1.1)",j="back.out(1.2)",w="back.out(1.5)",N='[class*="vm-equipment-carou
1sel-slide"]',k=(e=!1)=>window.matchMedia("(prefers-reduced-motion: reduce)").matches||e,E=e=>({flares:e.querySelectorAll(".flare"),textContent:e.querySelectorAll('[class*="text-content"], [class*="cta-container"]'),mainContent:e.querySelector('[class*="main-content-container"]'),images:e.querySelectorAll('img:not([class*="vm-icons-list"] img), picture:not([class*="vm-icons-list"] picture), svg:not([class*="vm-icons-list"] svg), [class*="image"]:not([class*="vm-icons-list"] [class*="image"])')}),S=e=>{let t=e.querySelector(".swiper-slide-active");return t?t.querySelector(N):null};var T=r(45911),C=r(25296),A=r.n(C);let I=({slides:e,autoplay:t=!1,autoplayDelay:r=5e3,loop:C=!0,transitionSpeed:I=600,disableAnimations:P=!1})=>{let M,O,B,L,D,R,F,V,$,z=(0,i.useRef)(null),U=(0,i.useRef)(0),{animateSlideExit:H,animateSlideEnter:G,animateInitialEntrance:q,initializeSlideElements:W}=(M=(0,i.useCallback)(e=>{let t=E(e);t.flares.length>0&&T.os.set(t.flares,{opacity:0}),t.textContent.length>0&&T.os.set(t.textContent,{opacity:0}),t.mainContent&&T.os.set(t.mainContent,{opacity:0}),t.images.length>0&&T.os.set(t.images,{opacity:0})},[]),O=(0,i.useCallback)((e,t=!0,r={})=>{let{duration:n=c,stagger:o=.05,ease:i=v}=r;return T.os.to(e,{opacity:0,scale:.65,rotation:t?"+=29":"-=29",x:t?-40:40,y:T.os.utils.random(-17,17),duration:n,stagger:o,ease:i})},[]),B=(0,i.useCallback)(e=>{if(0===e.length)return;let t=T.os.timeline({repeat:-1,yoyo:!0});return e.forEach((e,r)=>{let n=T.os.timeline({repeat:-1,yoyo:!0,delay:.6*r});n.to(e,{x:`+=${T.os.utils.random(-16.8,16.8)}`,y:`+=${T.os.utils.random(-14.4,14.4)}`,rotation:`+=${T.os.utils.random(-8.4,8.4)}`,scale:`+=${T.os.utils.random(-.084,.108)}`,duration:T.os.utils.random(3.5,6.5),ease:"sine.inOut"}),t.add(n,0)}),t},[]),L=(0,i.useCallback)((e,t=!0,r={})=>{let{duration:n=d,stagger:o=g,ease:i=w}=r;return T.os.fromTo(e,{opacity:0,scale:1.35,rotation:t?"-=29":"+=29",x:t?40:-40,y:T.os.utils.random(-17,17)},{opacity:1,scale:1,rotation:0,x:0,y:0,duration:n,stagger:o,ease:i,onComplete:()=>{B(e)}})},[B]),D=(0,i.useCallback)((e,t=!0,r={})=>{let{duration:n=u,stagger:o=.05,ease:i=v}=r;return T.os.to(e,{x:t?-75:75,y:T.os.utils.random(-10,10),opacity:0,duration:n,stagger:o,ease:i})},[]),R=(0,i.useCallback)((e,t=!0,r={})=>{let{duration:n=_,stagger:o=f,ease:i=v}=r;return T.os.fromTo(e,{x:t?75:-75,y:T.os.utils.random(-10,10),opacity:0},{x:0,y:0,opacity:1,duration:n,stagger:o,ease:i,delay:s})},[]),F=(0,i.useCallback)((e,t=!0,r={})=>{let{duration:n=p,ease:o=v}=r;return T.os.to(e,{scale:.85,opacity:.6,y:t?-35:35,x:T.os.utils.random(-15,15),rotation:t?-4:4,duration:n,ease:o})},[]),V=(0,i.useCallback)((e,t=!0,r={})=>{let{duration:n=m,ease:o=v}=r;return T.os.fromTo(e,{scale:1.1,opacity:.6,y:t?25:-25,x:T.os.utils.random(-15,15),rotation:t?2:-2},{scale:1,opacity:1,y:0,x:0,rotation:0,duration:n,ease:o,delay:l})},[]),$=(0,i.useCallback)((e,t=!0)=>{if(!e)return;T.os.killTweensOf(e.querySelectorAll("*"));let r=T.os.timeline(),n=E(e);return n.flares.length>0&&r.add(O(Array.from(n.flares),t),0),n.textContent.length>0&&r.add(D(Array.from(n.textContent),t),.05),n.mainContent&&r.add(F(n.mainContent,t),.1),n.images.length>0&&r.to(n.images,{scale:.75,opacity:.4,rotation:t?-6:6,y:t?-45:45,x:T.os.utils.random(-20,20),duration:.35,ease:v,stagger:.05},.05),r},[O,D,F]),{animateSlideExit:$,animateSlideEnter:(0,i.useCallback)((e,t=!0)=>{let r;if(!e)return;T.os.killTweensOf(e.querySelectorAll("*"));let n=T.os.timeline(),o=E(e);return r=t?1:-1,o.flares.length>0&&T.os.set(o.flares,{scale:1.3,x:35*r,y:T.os.utils.random(-15,15)}),o.textContent.length>0&&T.os.set(o.textContent,{x:75*r,y:T.os.utils.random(-10,10)}),o.mainContent&&T.os.set(o.mainContent,{scale:1.1,y:25*r,x:T.os.utils.random(-15,15),rotation:2*r}),o.images.length>0&&T.os.set(o.images,{scale:1.2,y:45*r,x:T.os.utils.random(-20,20),rotation:6*r}),o.mainContent&&n.add(V(o.mainContent,t),0),o.flares.length>0&&n.add(L(Array.from(o.flares),t),.1),o.textContent.length>0&&n.add(R(Array.from(o.textContent),t),.15),o.images.length>0&&n.to(o.images,{opacity:1,scale:1,y:0,x:0,rotation:0,duration:h,ease:y,stagger:x},.05),n},[L,R,V]),animateInitialEntrance:(0,i.useCallback)(e=>{let t=E(e),r=T.os.timeline();return t.mainContent&&T.os.set(t.mainContent,{scale:.8,rotation:T.os.utils.random(-3,3)}),t.flares.length>0&&T.os.set(t.flares,{scale:1.4,rotation:T.os.utils.random(-10,10)}),t.textContent.length>0&&T.os.set(t.textContent,{x:50,y:T.os.utils.random(-15,15)}),t.images.length>0&&T.os.set(t.images,{scale:.7,y:35,x:T.os.utils.random(-25,25),rotation:T.os.utils.random(-8,8)}),t.mainContent&&r.to(t.mainContent,{opacity:1,scale:1,rotation:0,duration:b,ease:v}),t.flares.length>0&&r.to(t.flares,{opacity:1,scale:1,rotation:0,duration:.5,stagger:g,ease:j,onComplete:()=>{B(Array.from(t.flares))}},"-=0.3"),t.textContent.length>0&&r.to(t.textContent,{opacity:1,x:0,y:0,duration:_,stagger:f,ease:v},"-=0.2"),t.images.length>0&&r.to(t.images,{opacity:1,scale:1,y:0,x:0,rotation:0,duration:b,stagger:g,ease:"back.out(1.4)"},"-=0.4"),r},[B]),initializeSlideElements:M,animateFlareExit:O,animateFlareEnter:L,animateFlareHover:B,animateTextExit:D,animateTextEnter:R,animateContentExit:F,animateContentEnter:V}),Y=(0,i.useCallback)(()=>{z.current&&z.current.querySelectorAll(".swiper-slide").forEach(e
1=>{let t=e.classList.contains("swiper-slide-active");e.querySelectorAll("a, button, input, select, textarea").forEach(e=>{e.setAttribute("tabindex",t?"0":"-1")})})},[]),K=(0,i.useCallback)(t=>{if(k(P)||!z.current)return;let r=U.current,n=t.realIndex??t.activeIndex;if(r===n)return;let o=((e,t,r)=>{if(r<=1)return!0;let n=t-e;return Math.abs(n)>1?n<0:n>0})(r,n,e.length);z.current.querySelectorAll(N).forEach(e=>{H(e,o)}),setTimeout(()=>{if(!z.current)return;let e=S(z.current);e&&G(e,o)},250),setTimeout(()=>{Y()},50),U.current=n},[H,G,e.length,P,Y]);return(0,i.useEffect)(()=>{!z.current||k(P)||(z.current.querySelectorAll(N).forEach(e=>{W(e)}),setTimeout(()=>{Y()},100))},[W,P,Y]),(0,i.useEffect)(()=>{if(!z.current||k(P))return;let e=setTimeout(()=>{if(!z.current)return;let e=S(z.current);e&&q(e)},80);return()=>clearTimeout(e)},[q,P]),(0,n.jsxs)("div",{ref:z,className:A()["vm-equipment-carousel"],children:[(0,n.jsx)("button",{className:`${A().carousel__button} ${A()["carousel__button--prev"]}`,"aria-label":"Previous slide",children:(0,n.jsx)(o.default,{unoptimized:!0,alt:"Left chevron icon",src:"/vm-upper-funnel/assets/icons/chevron-left.svg",width:11,height:19})}),(0,n.jsx)(a.Carousel,{onSlideChange:K,slides:e,spaceBetween:500,centeredSlides:!0,updateBreakpointsDynamically:!0,speed:I,autoplay:!!t&&{delay:r,disableOnInteraction:!0},slidesPerView:1.01,loop:C,isNavigation:!1,navigation:{nextEl:`.${A()["carousel__button--next"]}`,prevEl:`.${A()["carousel__button--prev"]}`},pagination:{clickable:!0},threshold:50,longSwipesRatio:.3,longSwipesMs:150,roundLengths:!1,setWrapperSize:!0,freeMode:!0,touchReleaseOnEdges:!0}),(0,n.jsx)("button",{className:`${A().carousel__button} ${A()["carousel__button--next"]}`,"aria-label":"Next slide",children:(0,n.jsx)(o.default,{unoptimized:!0,alt:"Right chevron icon",src:"/vm-upper-funnel/assets/icons/chevron-right.svg",width:11,height:19})})]})}},18104:e=>{e.exports={"vm-product-filter-sort__product-count":"vm-product-filter-sort_vm-product-filter-sort__product-count__N8UsG","vm-product-filter-sort__column":"vm-product-filter-sort_vm-product-filter-sort__column____0Ja","vm-product-filter-sort__sort-column":"vm-product-filter-sort_vm-product-filter-sort__sort-column__u4qiK","vm-product-filter-sort__tag":"vm-product-filter-sort_vm-product-filter-sort__tag__txCyG","vm-product-filter-sort__tag-button":"vm-product-filter-sort_vm-product-filter-sort__tag-button__qzy8c","vm-product-filter-sort__wrapper":"vm-product-filter-sort_vm-product-filter-sort__wrapper__u9Qi0","vm-product-filter-sort__container":"vm-product-filter-sort_vm-product-filter-sort__container__f_paW","vm-product-filter-sort__container-mobile":"vm-product-filter-sort_vm-product-filter-sort__container-mobile__oUj7Z","vm-product-filter-sort__col-mobile":"vm-product-filter-sort_vm-product-filter-sort__col-mobile__SGpFH","vm-product-filter-sort__button":"vm-product-filter-sort_vm-product-filter-sort__button__CmD7x","vm-product-filter-sort__button-label":"vm-product-filter-sort_vm-product-filter-sort__button-label__RV62_","vm-product-filter-sort__button-icon":"vm-product-filter-sort_vm-product-filter-sort__button-icon__W_dRf","vm-product-filter-sort__button-selected":"vm-product-filter-sort_vm-product-filter-sort__button-selected__UeBp5","vm-product-filter-sort__container_mobile":"vm-product-filter-sort_vm-product-filter-sort__container_mobile__k_BOi","vm-product-filter-sort__container_mobile__col":"vm-product-filter-sort_vm-product-filter-sort__container_mobile__col__GEa6E","vm-product-count-label":"vm-product-filter-sort_vm-product-count-label__U6G7T","filter-link-button":"vm-product-filter-sort_filter-link-button__Nj0Zp","vm-product-filter-sort__tag-container":"vm-product-filter-sort_vm-product-filter-sort__tag-container__DfVXr"}},18114:e=>{e.exports={"webgl-guard":"webgl-guard_webgl-guard__qrrg_","webgl-guard__fallback-container":"webgl-guard_webgl-guard__fallback-container__Ueuac","webgl-guard__image-wrapper":"webgl-guard_webgl-guard__image-wrapper__HDVTs","webgl-guard__image":"webgl-guard_webgl-guard__image__ydGye","webgl-guard__text-fallback":"webgl-guard_webgl-guard__text-fallback__wLrsB"}},18677:(e,t,r)=>{"use strict";r.d(t,{MyAccount:()=>x});var n=r(95155),o=r(98500),i=r.n(o),a=r(12115),s=r(94714),l=r(11389),c=r(18401),d=r(11241),u=r(51073),_=r(29722),p=r(69839),m=r(29081),h=r(9339);let b=(0,h.createServerReference)("005c27182d8a1c739ecdb85e84982a3074d655b360",h.callServer,void 0,h.findSourceMapURL,"loginAction");var g=r(93227),f=r.n(g);let x=()=>{let[e,t]=(0,a.useActionState)(b,{error:!1,redirectUrl:void 0}),[,r]=(0,a.useTransition)(),[o,h]=(0,a.useState)(!1),g=(0,m.Og)("sign-in-button","sign-in-icon","sign-in-my-account-text","sign-in-navigation-overlay","sign-in-myvm-text-link","sign-in-myvm-chevron","sign-in-myemail-text-link","sign-in-myemail-chevron","sign-in-noaccount-text-link","sign-in-noaccount-chevron","sign-in-overlay");return(0,a.useEffect)(()=>{e?.redirectUrl&&(window.location.href=e.redirectUrl)},[e]),(0,n.jsxs)(d.s,{align:"center",className:f().container,children:[(0,n.jsxs)(c.$,{className:(0,_.A)(f().button,{[f()["button--open"]]:o}),onClick:()=>{h(!o)},...g["sign-in-button"],children:[(0,n.jsx)(u.I,{icon:s.Rdw,size:"lg",...g["sign-in-icon"]}),(0,n.jsxs)("span",{className:f().text,...g["sign-in-my-account-text"],children:[" ","My Account"]})]}),o&&(0,n.jsxs)(d.s,{direction:"column",className:f().navigation,...g["sign-in-navigation-overlay"],children:[(0,n.jsxs)(i(),{className:"sign-in text-button",...g["sign-in-myvm-text-link"],href:"/myvmo2/login",prefetch:p.Ad,onClick:()=>{r(()=>{t()})},children:["Sign in to My Virgin Media",(0,n.jsx)(u.I,{className:f().arrow,icon:l.qhg,...g["sign-in-myvm-chevron"]})]}),(0,n.jsxs)(i(),{href:"https://mail.virginmedia.com/",...g["sign-in-myemail-text-link"],prefetch:p.Ad,children:["Sign in to My Email",(0,n.jsx)(u.I,{className:f().arrow,icon:l.qhg,...g["sign-in-myemail-chevron"]})]}),(0,n.jsxs)(i(),{href:"/my-virgin-media/register",...g["sign-in-noaccount-text-link"],prefetch:p.Ad,children:["No account? Sign up",(0,n.jsx)(u.I,{className:f().arrow,icon:l.qhg,...g["sign-in-noaccount-chevron"]})]})]}),o&&(0,n.jsx)(d.s,{className:f().overlay,...g["sign-in-overlay"],onClick:()=>{h(!1)}})]})}},18829:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(31650);let o=(e,t)=>{(0,n.K)({...t,event:e})}},18928:e=>{e.exports={"product-info_price":"price_product-info_price__hE3uj","product-info_price_title":"price_product-info_price_title__xJdTP","product-info_price_title--top-space":"price_product-info_price_title--top-space__wyOtr","product-info_price_title_button":"price_product-info_price_title_button__GTrir","product-info_price_title_button_icon":"price_product-info_price_title_button_icon__Ekh0S","product-info_price_title_button--open":"price_product-info_price_title_button--open__dRTG6","product-info_price_description":"price_product-info_price_description__HIqqw","product-info_price_description--open":"price_product-info_price_description--open__oUuXV"}},19145:(e,t,r)=>{"use strict";r.d(t,{EH:()=>i});var n,o=((n={}).UNSERVICEABLE="unserviceable",n.FULLY_SERVICEABLE="fullyServiceable",n.PARTIALLY_SERVICEABLE="partiallyServiceable",n.UNKNOWN="unknown",n);let i=e=>(e&&e.supportedTechnologyTypes?.some(e=>"Broadband"===e.service&&e.serviceable)?o.FULLY_SERVICEABLE:o.UNSERVICEABLE)===o.FULLY_SERVICEABLE},19264:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BasketLoaderTrigger:()=>a});var n=r(95155),o=r(12115),i=r(67526);let a=({children:e})=>{let{setIsBasketRedirectPending:t}=(0,o.useContext)(i.ByobContext);return(0,n.jsx)("span",{onClickCapture:e=>{"A"===e.target.nodeName&&(e.preventDefault(),t(!0))},children:e})}},19438:(e,t,r)=>{"use strict";function n(e){return e.replace("~~","<strike>").replace("~~","</strike>")}r.d(t,{n:()=>n})},19544:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShoppingCartButton:()=>y});var n=r(95155),o=r(12115),i=r(94714),a=r(11389),s=r(18401),l=r(51073),c=r(82567),d=r(65305),u=r(13941),_=r(51970),p=r(67526),m=r(32694),h=r(30710),b=r(13339),g=r(9339);let f=(0,g.createServerReference)("40f86345062efb1d0fb8c40900f401edf3ec46ab18",g.callServer,void 0,g.findSourceMapURL,"shoppingCartAction");var x=r(53471),v=r.n(x);let y=()=>{let{basket:e,setBasket:t}=(0,_.D)(),{steps:{current:r},selectedBundle:g,setIsLoading:x}=(0,o.useContext)(p.ByobContext),{setOpen:y}=(0,u.b)(),[j,w]=(0,o.useState)(null),N=null!==r,k=(0,o.useRef)(!1),E=e?.basketPricing?.bundleId,S=e?.basketPricing?.products?.filter(e=>"AddOn"===e.classification||"Core"===e.classification).map(e=>e.productCode),T=e?(0,b.x)(e)?.setupCharges:void 0;if((0,o.useEffect)(()=>{E&&j&&t({basketPricing:e?.basketPricing,bundleBlok:j?.bundleBlok,flashSales:j?.flashSales,sbProducts:j?.sbProducts})},[j,e?.basketPricing,t,E]),(0,o.useEffect)(()=>{j?.bundleBlok&&k.current&&(k.current=!1,x(!1),y({open:d.Qb.SHOPPING_CART}))},[j,y,x]),!E||N&&!g&&r===m._3.BASE_BUNDLE)return null;let C=!!N&&e?.basketPricing?.products?.some(e=>e.inferredDeltaPrice?.display&&e.inferredDeltaPrice?.from);return(0,n.jsxs)(n.Fragment,{children:[N&&(0,n.jsxs)(c.E,{size:"T200",weight:"bold",className:v()["shopping-cart-from"],children:[C&&"From ",(0,h.a7)(e?.basketPricing?.totalMonthlyCosts?.total?.[0]?.amount)]}),(0,n.jsxs)(s.$,{className:v()["shoping-cart-button"],"data-cy":"shopping-cart-icon",onClick:async()=>{E&&(k.current=!0,x(!0),w(await f({bundleId:E,addOns:S,setupCharges:T})))},"aria-label":"Shopping cart",children:[(0,n.jsx)(l.I,{icon:i.QcO,size:"lg","aria-hidden":"true"}),(0,n.jsx)("div",{className:v()["shoping-cart-check"],"aria-hidden":"true",children:(0,n.jsx)(l.I,{icon:a.PcF,size:"md","data-cy":"shopping-cart-check"})}),(0,n.jsx)("span",{className:"srOnly",children:"Shopping cart"})]})]})}},19554:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,HeroLayoutContext:()=>a});var n=r(95155),o=r(12115);let i=(0,o.createContext)({layout:"full"}),a=({layout:e,children:t})=>{let r=(0,o.useMemo)(()=>({layout:e}),[e]);return(0,n.jsx)(i.Provider,{value:r,children:t})},s=()=>{let e=(0,o.useContext)(i);return void 0===e?{layout:"full"}:e}},20335:(e,t,r)=>{"use strict";r.d(t,{ByobLoader:()=>_});var n=r(95155),o=r(5772),i=r(12115),a=r(82567),s=r(29722),l=r(67526),c=r(45772),d=r(881),u=r.n(d);let _=({text:e,duration:t="2000"})=>{let{isBasketRedirectPending:r,setIsBasketRedirectPending:d,isLoading:_,hasCriticalFullPageError:p}=(0,i.useContext)(l.ByobContext),m=Number(t);return(0,i.useEffect)(()=>
1{if(!r)return;let e=setTimeout(()=>{let e=window.location.origin,t=`${(0,c.m)(e)}/buy/init-checkout`;window.location.href=t},m);return()=>clearTimeout(e)},[m,r,d]),!p&&(r||_)?(0,n.jsxs)("div",{className:(0,s.A)(u().loader,r&&u()["loader--blur"]),children:[(0,n.jsx)(o.default,{unoptimized:!0,src:"/vm-upper-funnel/assets/loading-white.gif",alt:"Loading...",width:"110",height:"64"}),r&&(0,n.jsx)(a.E,{size:"T700",weight:"bold",className:u().loader__text,children:e})]}):null}},20467:(e,t,r)=>{"use strict";r.d(t,{ByobUpsellPopup:()=>P});var n=r(95155),o=r(12115),i=r(65305),a=r(69839),s=r(51970),l=r(67526),c=r(32694),d=r(55451),u=r(67927),_=r(55397),p=r(18829),m=r(89684),h=r(32493),b=r(2730),g=r(12572),f=r(38207),x=r(71505),v=r(51073),y=r(39010),j=r(82567),w=r(29722),N=r(30710),k=r(9759),E=r(60929),S=r.n(E),T=r(56279),C=r.n(T);let A=/(\d+\.?\d*)/,I=({title:e,text:t,price:r,dynamoCta:i,selected:a,customCtaBlok:s,customCtaActiveBlok:l,customCtaCallback:c})=>{let[d,u]=(0,o.useState)(!0),_=A.exec(r??"")?.[0],p=(0,N.a7)(_),m=r?.replace(A,""),h=a?l:s;return(0,n.jsx)(f.Fc,{className:C().popup,variant:"info",actions:(0,n.jsx)(k.r,{small:!0,variant:"light",decoration:"transparent",icon:(0,n.jsx)(v.I,{icon:d?g.SaX:g.LDw,color:"light"}),iconOnly:!0,"aria-label":d?"Collapse":"Expand",onClick:()=>u(e=>!e)}),children:(0,n.jsx)(y.w,{layout:"spacious",variant:"transparent",verticalRhythm:"none",children:(0,n.jsxs)("div",{className:C().popup__content,children:[(0,n.jsxs)(x.N,{direction:"column",gap:"sm",className:C().popup__header,children:[(0,n.jsx)(j.E,{weight:"bold",color:"light",className:C().popup__title,children:e}),d&&(0,n.jsx)(j.E,{size:"T200",color:"light",children:t})]}),d&&(0,n.jsxs)("div",{className:C().popup__actions,children:[r&&(0,n.jsxs)(j.E,{size:"T200",weight:"bold",color:"light",className:C().popup__price,children:[(0,n.jsx)(j.E,{as:"span",weight:"bold",color:"light",className:C().popup__priceSum,children:p}),m]}),(0,n.jsx)("span",{className:(0,w.A)(C().popup__cta),children:i?(0,n.jsx)("span",{className:S()["button--light"],children:i}):(0,n.jsx)(k.r,{variant:"light",responsive:h?.responsive,icon:h?.icon_new&&(0,n.jsx)(v.I,{icon:h.icon_new}),active:a,iconPosition:h?.icon_position,iconOnly:h?.icon_only,onClick:c,children:h?.title})})]})]})})})},P=e=>{let{customisations:t,showUpsellPopup:r,steps:g,counterpartBundle:f,selectedBundle:x,storyblokProducts:v,validBundles:y,intentType:j}=(0,o.useContext)(l.ByobContext),{basket:w}=(0,s.D)(),{startTransition:N,queueNotification:k,showBasketNotification:E}=(0,b.j)(),S=t?.addOns.find(e=>e.display_groups.includes("sky_uhd")),T=S?.id?v[S.id]:void 0,C=T?(0,h.uM)("",[T],!1):void 0,A=t?.addOns.find(e=>e.display_groups.includes("symmetric_extra_charge")),P=A?.id?v[A.id]:void 0,M=P?(0,h.uM)("",[P],!1):void 0,O=(0,o.useRef)(!1);(0,o.useEffect)(()=>{O.current&&M&&(E({title:M[0]?.name??"",description:(0,m.s)(A?.contract?.term),duration:5e3}),O.current=!1)},[M,A,E]);let B=(()=>{switch(g.current){case"tv"===j?c._3.TV_CHANNELS:c.Al.TV_CHANNELS:{if(!S)return{};let e=!!w?.basketPricing?.products?.find(e=>e.productDisplayGroup?.includes("sky_uhd"));return{selected:e,price:`${S.price.monthly.amount} a month`,customCtaCallback:()=>{N(async()=>{if(e)await (0,_.J)(S.productCodes);else{let e=await (0,u.M)({productCodes:S.productCodes,addOn:{title:C?.[0].name??"",description:(0,m.s)(S.contract?.term)}});e.success&&k({title:e.addOn?.title??"",description:e.addOn?.description,duration:5e3})}(0,p.A)(a.bk.CONTENT,{event_name:a.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${C?.[0].name} ${e?"remove":"add"}`,content_name:"Customise",content_text:S.productCodes.join("|")}})})}}}case"tv"===j?c._3.BROADBAND:c.Al.BASE_BUNDLE:{if(!f||!x)return{};let{sbBundle:e}=y.find(e=>e?.msaBundle.bundleId===x.msaBundle.bundleId)||{},t=(0,h.uM)("",e?.content.products??[],!1).find(e=>e.productType===i.po.BROADBAND),r=!!x.msaBundle.journeyTypes?.includes("Symmetric");return{selected:r,customCtaCallback:()=>{N(async()=>{let e=await (0,d.u)({id:f.bundleId??"",body:{commitmentState:"tv"===j?"Confirmed":"Provisional"},bundle:{title:"",isSelected:r}});e.success&&!e.bundle?.isSelected&&(O.current=!0),(0,p.A)(a.bk.CONTENT,{event_name:a.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${t?.name} add`,content_name:"Customise",content_text:f.bundleId}})})}}}}})();return r?(0,n.jsx)(I,{...e,...B}):null}},20516:(e,t,r)=>{"use strict";r.d(t,{NB:()=>o,XI:()=>n});let n=4,o=20},20820:(e,t,r)=>{"use strict";r.r(t),r.d(t,{MaterialCarousel:()=>g});var n=r(95155),o=r(5772),i=r(42737),a=r(29722),s=r(45687),l=r(79247);function c({swiper:e,on:t,extendParams:r}){r({materialEffect:{slideSplitRatio:.65}}),t("beforeInit",()=>{if("material"!==e.params.effect)return;e.classNames.push(`${e.params.containerModifierClass}material`),e.isElement&&e.hostEl&&e.hostEl.classList.add(`swiper-${e.params.direction}`);let t={loopAdditionalSlides:1,watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode};Object.assign(e.params,t),Object.assign(e.originalParams,t)}),t("setTranslate",()=>{"material"===e.params.effect&&(()=>{let{slides:t,slidesSizesGrid:r,params:n,size:o,rtlTranslate:i}=e,{spaceBetween:a,cssMode:s,centeredSlides:l}=n,{slidesPerView:c}=n,{slideSplitRatio:d}=n.materialEffect,u=l&&Math.ceil(c)%2==1&&Math.ceil(c)-Math.floor(c)==1;u&&(c=Math.floor(c));let _=l&&parseInt(c,10)!==c,p=l?Math.ceil(c):c,m=l&&p%2==1,h=l&&p%2==0,b=i?-1:1,g=l?_?(c-Math.floor(c))/2:.5:Math.min(Math.max(d,0),1),f=l?_?(c-Math.floor(c))/2:.5:1-Math.min(Math.max(d,0),1),x=_?.5+(.5-f):f;if(u){let e=Math.floor(n.slidesPerView)-1;x=.5+(.5-(f=g=(n.slidesPerView-e)/2))}for(let n=0;n<t.length;n+=1){let d,u=t[n],v=u.querySelector(".swiper-material-wrapper"),y=u.querySelectorAll(".swiper-material-animate-opacity"),j=u.querySelectorAll("[data-swiper-material-scale]"),w=u.querySelectorAll('[class*="carousel__channel-logo"]'),N=-u.progress+(i&&!l?c-1:0),k=u.swiperSlideOffset-(i?(e.slidesSizesGrid[0]+a)*(c-1):0),E=e.translate,S=0,T=0,C=r[n],A=0!==f||l?a/C:0,I=s?E:0;if(N<=0)if(l&&c>1){if(N<=0&&N>=-(p-2)&&(S=E,d=1,T=1),m&&N<-(p-Math.ceil(p/2))){let e=Math.ceil(p/2)-Math.abs(N);T=(d=e)**4,S=E+C*(1-e)*(1+2*A)*b}if(h&&N<-(p/2-1)&&N>=-(p/2)){let e=p/2-Math.abs(N);T=(((d=g-A+(x+2*A)*(p/2-Math.abs(N)))-g)/(1-g))**4,S=E+C*(x+A)*(1-e)*b}if(h&&N<-p/2){let e=p/2+1-Math.abs(N);d=0,e>=0&&(e=Math.max(Math.min(e=-(2*A)+e*(1+2*A),1),0),d=(f-A)*e),S=E+C*b*(x+A)*(2-e)+C*b*(f-A)*(1-e)}}else d=1+N,S=-k,T=d**4;if(1===c)N>
10&&(d=1-N,S=-k+o*Math.min(N,1)*b,T=d**4);else{if(N>0&&N<=c-2&&(S=E,d=1,T=1),h?N>p/2-1&&N<=p/2:N>p-2&&N<=p-1){let e=h?Math.floor(p/2):1;d=g-A+(x+2*A)*(p-e-Math.abs(N)),S=E,T=1===g?d**4:((d-g)/(1-g))**4}if(m&&N>c-Math.ceil(c/2)){let e=Math.ceil(c/2)-(c-Math.abs(N));S=E-2*A*C*e,T=(d=1-e)**4}if(N>c-1&&N<=c&&!l){let e=c-Math.abs(N),t=g-A,r=f-A;d=r+(t-r)*e,S=E-C*(f+A)*(1-e)*b,0===f&&(T=d**4)}if(N>(l?p/2:p)&&!m){let e=(l?p/2+1:p+1)-Math.abs(N),t=0;d=0,e>=0&&(e=Math.max(Math.min(e=-(2*A)+e*(1+2*A),1),0),d=(f-A)*e,t=-e*(f+A)*C+e*a*(_?2:1)),S=-k+(o*Math.min(N,1)+t)*b,T=0}}d<0&&(d=0),d>1&&(d=1),0===d&&(d=1e-5),u.style.setProperty("--swiper-material-scale",d),y.forEach(e=>{e.style.opacity=T}),j.forEach(e=>{let t=parseFloat(e.getAttribute("data-swiper-material-scale")),r=parseFloat(e.getAttribute("data-image-offset"));(Number.isNaN(t)||!t&&0!==t)&&(t=1),r&&(r=`translateX(${(1-d)*r}px)`),e.style.transform=`${r} scale(${1+(t-1)*(1-d)})`}),w.forEach(e=>{let t=-100*(1-d);t=t<-50?-50:t;let r=100*(1-d);r=r>50?50:r,e.style.transform=`translateX(${t}%)`,e.style.left=`${r}%`}),e.isHorizontal()?(v.style.width=`${100*d}%`,v.style.transform=`translate3d(${S-I+(i?(1-d)*C:0)}px, 0, 0)`):(v.style.height=`${100*d}%`,v.style.transform=`translate3d(0, ${S-I}px, 0)`)}})()}),t("setTransition",(t,r)=>{"material"===e.params.effect&&(t=>{let{slides:r}=e,n=[];for(let e=0;e<r.length;e+=1){let o=r[e],i=o.querySelector(".swiper-material-wrapper"),a=o.querySelectorAll(".swiper-material-animate-opacity");[i,...o.querySelectorAll("[data-swiper-material-scale]"),...a].forEach(e=>{e.style.transitionDuration=`${t}ms`}),n.push(i)}!function({swiper:e,duration:t,transformElements:r,allSlides:n}){let{activeIndex:o}=e;if(e.params.virtualTranslate&&0!==t){let t=!1;(n?r:r.filter(t=>{let r=t.classList.contains("swiper-slide-transform")?t.parentElement?t.parentElement:e.slides.filter(e=>e.shadowRoot&&e.shadowRoot===t.parentNode)[0]:t;return e.getSlideIndex(r)===o})).forEach(r=>{var n;(n=()=>{if(t||!e||e.destroyed)return;t=!0,e.animating=!1;let r=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(r)})&&r.addEventListener("transitionend",function e(t){t.target===r&&(n.call(r,t),r.removeEventListener("transitionend",e))})})}}({swiper:e,duration:t,transformElements:n,allSlides:!0})})(r)}),t("slidesUpdated",()=>{if(!e.params.centeredSlides&&e.params.slidesPerView>1&&!e.params.loop&&e.params.materialEffect.slideSplitRatio<1){let t=e.snapGrid[e.snapGrid.length-1];e.snapGrid.push(t+e.slidesSizesGrid[0]+e.params.spaceBetween)}e.__preventObserver__=!0,e.el.style.setProperty("--swiper-material-slide-size",`${e.slidesSizesGrid[0]}px`),requestAnimationFrame(()=>{e.__preventObserver__=!1})})}window.SwiperElementRegisterParams&&window.SwiperElementRegisterParams(["materialEffect"]);var d=r(82567),u=r(29243),_=r(60513),p=r(40531),m=r.n(p);let h=({content:e})=>{let t=(0,u.ZQ)(e.background_image),r=(0,u.ZQ)({filename:e.channel_icon??null});return(0,n.jsxs)("div",{className:"swiper-material-wrapper",children:[(0,n.jsxs)("div",{className:m()["carousel__slide-content-wrapper"],children:[t&&(0,n.jsx)(o.default,{sizes:"400px",src:t.src,alt:t.alt,width:t.width,height:t.height,"data-swiper-material-scale":"1.25","data-image-offset":`${e.image_offset??0}px`,className:m().carousel__img,loading:"lazy"}),(0,n.jsx)("div",{className:(0,a.A)(m().carousel__overlay,m()["carousel__overlay--inactive"])}),(0,n.jsx)("div",{className:(0,a.A)(m().carousel__overlay,m()["carousel__overlay--active"])})]}),(0,n.jsxs)("div",{className:m().carousel__content,children:[r&&(0,n.jsx)(_.W,{src:r.src,width:r.width,height:r.height,alt:"Channel logo: "+(e.channel_icon_alt_text??e.footer_title??""),className:m()["carousel__channel-logo"],loading:"lazy"}),e.footer_title&&(0,n.jsx)(d.E,{color:"light",size:"T400",className:(0,a.A)(m().carousel__text,m()["carousel__text--title"]),children:e.footer_title}),e.footer_subtitle&&(0,n.jsx)(d.E,{color:"light",size:"T400",className:m().carousel__text,children:e.footer_subtitle})]})]})},b={3:{0:{slidesPerView:1.35,spaceBetween:16},768:{slidesPerView:2,spaceBetween:24}},4:{0:{slidesPerView:2,spaceBetween:16},768:{slidesPerView:4,spaceBetween:24}},5:{0:{slidesPerView:1.35,spaceBetween:16},768:{slidesPerView:3,spaceBetween:24},1440:{slidesPerView:5,spaceBetween:24}},6:{0:{slidesPerView:2,spaceBetween:16},768:{slidesPerView:4,spaceBetween:24},1440:{slidesPerView:6,spaceBetween:24}},auto:{0:{slidesPerView:2,spaceBetween:16},768:{slidesPerView:4,spaceBetween:24},1440:{slidesPerView:6,spaceBetween:24},1920:{slidesPerView:8,spaceBetween:24}}},g=({blok:e})=>{let{cards:t,pagination:r,navigation:d,autoplay:u,height:_,cards_per_view:p,contained:g,edge_to_edge:f}=e,x="3"===p||"5"===p;if(!t.length)return null;let v=p&&p in b?b[p]:b.auto,y=Math.max(1,Math.ceil((2*Math.max(...Object.values(v).map(e=>Math.ceil(e.slidesPerView)))+2)/t.length)),j=Array.from({length:y},()=>t).flat(),w={nextEl:`.${m()["carousel__button--next"]}`,prevEl:`.${m()["carousel__button--prev"]}`},N={el:`.${m().carousel__pagination}`,type:"custom",renderCustom:(e,t,r)=>{let o=Math.ceil(r/y/4),i=Math.ceil(t/y/4);return(0,s.F0)(Array.from({length:o},(e,t)=>t+1).map(e=>(0,n.jsx)("span",{className:(0,a.A)(m().carousel__page,{[m()["carousel__page--active"]]:e===i})},`page-${e}`)))}},k=(0,n.jsxs)("div",{className:(0,a.A)(m().carousel,{[m()["carousel--squishy-peek"]]:x,[m()["carousel--contained"]]:g,[m()["carousel--edge-to-edge"]]:f}),children:[(0,n.jsx)(i.Carousel,{modules:[l._R,l.t9,l.Ij,l.Vx,l.dK,c],autoplay:u,effect:"material",isNavigation:!1,navigation:{enabled:d,...w},isPagination:!1,pagination:{enabled:r,...N},breakpoints:v,className:(0,a.A)(m().carousel__swiper,{[m()[`carousel__swiper--${_}`]]:!!_}),spaceBetween:16,centeredSlides:!0,loop:!0,initialSlide:Math.floor(j.length/2),slideToClickedSlide:!0,slides:j.map(({content:e})=>({children:(0,n.jsx)(h,{content:e})}))}),d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:(0,a.A)(m().carousel__button,m()["carousel__button--prev"]),"aria-label":"Previous slide",children:(0,n.jsx)(o.default,{unoptimized:!0,alt:"Left chevron icon",src:"/vm-upper-funnel/assets/icons/chevron-left.svg",width:11,height:19})}),(0,n.jsx)("button",{className:(0,a.A)(m().carousel__button,m()["carousel__button--next"]),"aria-label":"Next slide",children:(0,n.jsx)(o.default,{unoptimized:!0,alt:"Right chevron icon",src:"/vm-upper-funnel/assets/icons/chevron-right.svg",width:11,height:19})})]}),r&&(0,n.jsx)("div",{className:m().carousel__pagination})]});return x?(0,n.jsx)("div",{className:m()["carousel-wrapper"],children:k}):k}},21022:(e,t,r)=>{"use strict";r.d(t,{VmPostServiceableSuccessGuard:()=>b});
1var n=r(95155),o=r(12115),i=r(12572),a=r(97771),s=r(51073),l=r(29722),c=r(19554),d=r(29081),u=r(77059),_=r.n(u);function p({postcode:e,resetServiceablity:t}){let{layout:r}=(0,c.C)(),o=(0,d.Og)("postcode-result-section","postcode-result-text","postcode-change-address-link");return(0,n.jsxs)("div",{className:(0,l.A)(_().postcodeFormContainer,{[_()["postcodeFormContainer--layout-full"]]:"full"===r,[_()["postcodeFormContainer--layout-split"]]:"split"===r}),"data-testid":"success-result",...o["postcode-result-section"],children:[(0,n.jsx)(s.I,{icon:i.ArU,size:"lg"}),(0,n.jsxs)("div",{className:_()["postcode-result__content"],children:[(0,n.jsxs)("p",{className:_()["postcode-result__content--text"],...o["postcode-result-text"],children:["Virgin Media is available at ",e]}),(0,n.jsx)("span",{className:_()["postcode-result__change"],...o["postcode-change-address-link"],children:(0,n.jsx)(a.M,{iconPosition:"start",asChild:!0,children:(0,n.jsx)("button",{onClick:t,children:"Change address"})})})]})]})}var m=r(85592),h=r(19145);let b=()=>{let{availability:e,address:t,resetAddress:r,setLoading:i}=(0,o.useContext)(m.s);return e&&t?.postcode&&(0,h.EH)(e)?(0,n.jsx)(p,{postcode:t.postcode,resetServiceablity:()=>{r(),i(!1)}}):null}},21475:(e,t,r)=>{"use strict";r.d(t,{WebGLGuard:()=>i});var n=r(95155),o=r(12115);let i=({children:e,fallbackComponent:t})=>{let[r,i]=(0,o.useState)(null),[a,s]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{i((()=>{try{let e=document.createElement("canvas");return!!(e.getContext("webgl")||e.getContext("experimental-webgl"))}catch(e){return console.error("Error checking if WebGL is available",e),!1}})());let e=e=>{console.error("Global GLTF loading error in equipment carousel:",e.detail),s(!0)};return window.addEventListener("gltf-load-error",e),()=>window.removeEventListener("gltf-load-error",e)},[]),null===r)?(0,n.jsx)(n.Fragment,{children:e}):!1===r||a?(0,n.jsx)(n.Fragment,{children:t}):(0,n.jsx)(n.Fragment,{children:e})}},21576:(e,t,r)=>{"use strict";r.d(t,{x:()=>_});
1var n=r(95155),o=r(12115),i=r(11389),a=r(51073),s=r(29722),l=r(29081),c=r(14237),d=r.n(c);let u={arrowDown:i.SUl,arrowRight:i.qhg},_=({title:e,titleExpanded:t,defaultExpanded:r=!1,expandsUpwards:c,horizontalRule:_,icon:p,iconSize:m="md",renderWhenCollapsed:h,triggerPosition:b,onClick:g,children:f})=>{let[x,v]=(0,o.useState)(r),y=(0,o.useId)(),j=(0,l.Og)("show-more-trigger","show-more-title","show-more-content"),w=(0,s.A)("show-more",d()["uf-show-more"],{"show-more--expanded":x,"show-more--expands-upwards":c,"show-more--horizontal-rule":_,[d()["show-more--trigger-position-start"]]:"start"===b,"show-more--trigger-position-center":"center"===b,"show-more--trigger-position-center-sm":"center-sm"===b,"show-more--trigger-position-end":"end"===b}),N=p?u[p]:null;return(0,n.jsxs)("div",{id:y,className:w,children:[(0,n.jsx)("div",{className:"show-more__trigger-container",children:(0,n.jsxs)("button",{type:"button","data-testid":"show-more__trigger",...j["show-more-trigger"],className:"show-more__trigger",id:`${y}-trigger`,"aria-describedby":`${y}-title`,"aria-expanded":x,"aria-controls":`${y}-panel`,onClick:()=>{v(!x),g&&g()},children:[N&&(0,n.jsx)("span",{className:"show-more__icon",children:(0,n.jsx)(a.I,{icon:N,ratio:.75,size:m})}),(0,n.jsx)("span",{className:"show-more__title",id:`${y}-title`,...j["show-more-title"],children:x&&t?t:e}),(0,n.jsx)("span",{className:"show-more__indicator",children:(0,n.jsx)(a.I,{icon:i.SUl,ratio:.75,size:m})})]})}),(0,n.jsx)("section",{className:d()["show-more__panel"],id:`${y}-panel`,"aria-labelledby":`${y}-trigger`,"data-testid":"show-more__panel",children:(h||x)&&(0,n.jsx)("div",{className:"show-more__content",...j["show-more-content"],children:f})})]})}},21703:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Bookshelf:()=>c});var n=r(95155),o=r(12115),i=r(29722),a=r(57900),s=r(30253),l=r.n(s);let c=({hBooks:e,vBooks:t,defaultExpanded:r})=>{let[s,c]=(0,o.useState)(r),d=(0,o.useMemo)(()=>({expanded:s,setExpanded:c}),[s]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"data-testid":"bookshelf-vertical",className:(0,i.A)({[l().bookshelf]:!0,[l()["bookshelf--vertical"]]:!0}),children:e}),(0,n.jsx)(a.BookshelfContext.Provider,{value:d,children:(0,n.jsx)("div",{"data-testid":"bookshelf-horizontal",className:(0,i.A)({[l().bookshelf]:!0,[l()["bookshelf--horizontal"]]:!0}),children:t})})]})}},21800:e=>{e.exports={AddressList:"address-list_AddressList___Mo0c","not-shown-link":"address-list_not-shown-link__rAOdi","form-Item-error":"address-list_form-Item-error__ZeXLl","error-message":"address-list_error-message__RYUZM","postcode-checker_address_heading__container":"address-list_postcode-checker_address_heading__container__pw_Nr","postcode-checker__address-content-container":"address-list_postcode-checker__address-content-container__W0XQy","address-content":"address-list_address-content__2jXKu"}},21888:e=>{e.exports={product:"tv-product-card_product__5R6v5","product__img-wrapper":"tv-product-card_product__img-wrapper__xG1az",product__img:"tv-product-card_product__img__6iiYr","product__img-content":"tv-product-card_product__img-content__YRekq","product__channel-logo":"tv-product-card_product__channel-logo__VV5hT",product__content:"tv-product-card_product__content__RMfdy","product__title-wrapper":"tv-product-card_product__title-wrapper__OikEp",product__link:"tv-product-card_product__link__JmgqC",product__terms:"tv-product-card_product__terms__EnHCE",product__term:"tv-product-card_product__term__UWMcy","product--selected":"tv-product-card_product--selected__MdMpV","product--no-gradient":"tv-product-card_product--no-gradient__PB9Q9","product--wide":"tv-product-card_product--wide__R_nzB","product__term-title":"tv-product-card_product__term-title__qsxxJ","product__term-price":"tv-product-card_product__term-price__U_yrN"}},22096:e=>{e.exports={title:"vm-products-svc_title__BFux6","no-results":"vm-products-svc_no-results__0KPw_","responsive-wrapper":"vm-products-svc_responsive-wrapper__bgNPh"}},22116:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(12115);function o(e){let[t,r]=(0,n.useState)(e),o=t;return[()=>o,e=>(o=e,r(e),o)]}},23337:(e,t,r)=>{"use strict";r.d(t,{k:()=>H});var n=r(95155),o=r(12115),i=r(65305),a=r(69839),s=r(51970),l=r(67526),c=r(55451),d=r(18829),u=r(89684),_=r(99852),p=r(32493),m=r(28877),h=r(12612),b=r(70186),g=r(86433),f=r(23862),x=r(13941),v=r(2730),y=r(5772),j=r(18401),w=r(99916),N=r(11241),k=r(71505),E=r(82567
1),S=r(29243),T=r(29722),C=r(6471),A=r(73294),I=r(99044),P=r.n(I),M=r(96653),O=r(12572),B=r(51073),L=r(16420),D=r(80660),R=r(84048),F=r.n(R);let V=({description:e,speed:t,netflix:r})=>(0,n.jsxs)(N.s,{direction:"column",gap:"sm",children:[(0,n.jsxs)(N.s,{gap:"sm",children:[(0,n.jsx)(B.I,{icon:(0,D.q)(t),className:F()["description__speed-icon"]}),(0,n.jsxs)(E.E,{children:[(0,n.jsx)(E.E,{weight:"bold",as:"span",children:t})," ","Mbps"]})]}),(0,n.jsxs)(N.s,{gap:"sm",children:[(0,n.jsx)(B.I,{icon:O.uni,size:"md"}),e&&(0,n.jsx)(L.S,{document:e,StoryblokComponent:M.Dp})]}),r&&(0,n.jsxs)(N.s,{gap:"sm",align:"start",children:[(0,n.jsx)(k.N,{justify:"center",width:"23px",shrink:0,margin:"xs 0 0 0",children:(0,n.jsx)(y.default,{unoptimized:!0,alt:"Netflix logo",src:"/vm-upper-funnel/assets/icons/netflix-n.png",width:16,height:16})}),(0,n.jsx)(E.E,{weight:"bold",children:r.name})]})]});var $=r(30710);let z=({price:e,isDelta:t})=>{let r=t?(0,$.xQ)(e):(0,$.a7)(e);return(0,n.jsx)(k.N,{justify:"center",align:"center",direction:"column",gap:"sm",children:(0,n.jsx)(k.N,{direction:"column",align:"center",children:(0,n.jsxs)(E.E,{weight:"light",children:[(0,n.jsx)(E.E,{size:"T500",weight:"medium",as:"span",children:r}),"\xa0a month"]})})})},U=({headerImg:e,headerSelectedImg:t,bundleName:r="",bundleDescription:o,netflixDescription:i,isSelected:a,removable:s,customAttributes:l,speed:c,onDrawerTriggerClick:d,contract:u,onAddClick:_,onRemoveClick:p,deltaPrice:m,tldPricing:h,priceChanges:b})=>{let g=(0,S.ZQ)(e||void 0),f=(0,S.ZQ)(t||void 0),x=(0,D.h)(c)[0],v=a?f:g,I=!!h?.pricing.timeLimitedDiscount;return(0,n.jsx)(w.Zp,{"data-testid":"product-card",className:(0,T.A)(P()["product-card"],a&&P()[`product-card--${x}`]),borderWidth:2,rounded:"lg",...l,children:(0,n.jsxs)(k.N,{direction:"column",className:P()["product-card__content-wrapper"],children:[(0,n.jsxs)("div",{className:P()["product-card__title-wrapper"],children:[v&&(0,n.jsx)(y.default,{src:v.src,alt:v.alt,width:"298",height:"88"}),(0,n.jsxs)(k.N,{direction:"column",className:P()["product-card__title"],children:[(0,n.jsx)(E.E,{as:"h3",size:"T800",weight:"medium",color:"light",children:r.split(" ")[0]}),(0,n.jsx)(E.E,{size:"T200",color:"light",children:r.split(" ").slice(1).join(" ")})]})]}),(0,n.jsxs)(k.N,{direction:"column",padding:"md md lg md",gap:"sm",justify:"between",className:P()["product-card__content"],children:[(0,n.jsx)(V,{description:o,speed:c,netflix:i}),(0,n.jsxs)(k.N,{gap:"sm",direction:"column",children:[I?(0,n.jsx)(z,{price:h.pricing.timeLimitedDiscount}):(0,n.jsx)(z,{isDelta:!0,price:m}),(0,n.jsx)(k.N,{justify:"center",align:"center",direction:"column",gap:"sm",children:(0,n.jsx)(j.$,{className:"button-link",onClick:d,children:"Find out more"})}),b&&b.length>0&&(0,n.jsxs)(E.E,{"data-testid":"price-changes",as:"span",size:"T200",weight:"light",align:"center",children:[b.map((e,t)=>(0,n.jsx)("span",{children:e},`${e}${t}`))," "]}),(0,n.jsx)(N.s,{justify:"center",children:(0,n.jsx)(C.o,{isSelected:a,removable:s,onClick:()=>_?.(),onRemoveClick:()=>p?.()})}),(0,n.jsx)(N.s,{align:"center",justify:"center",direction:"column",children:(0,n.jsx)(A.d,{contract:u})})]})]})]})})},H=({sbBundle:e,msaBundle:t,deltaPrice:r})=>{let{setSelectedBundle:y,setBillSplit:j,setSelectedBundleStyle:w}=(0,x.b)(),{basket:N}=(0,s.D)(),{steps:k,intentType:E}=(0,o.useContext)(l.ByobContext),S=(k.current??1)>1,{startTransition:T,queueNotification:C}=(0,v.j)();try{let o=(0,b.M)(e),s=e.content.description,l=(0,p.uM)("",o,!!t?.journeyTypes?.includes("Stream")),x=l.find(e=>e.productType===i.po.BROADBAND),v=l.find(e=>(0,h.v)(e.name)),k=o.find(e=>e.content.product_type===i.pu.BROADBAND)?.content?.speed_profile,{byob_header:A,byob_header_selected:I}=k?.content||{},{contract:P,tldPricing:M,priceChanges:O}=(0,m.O)(t),B=(0,_.r)(e,t),L=t.bundleId===N?.basketPricing?.bundleId;return(0,n.jsx)(U,{headerImg:A,headerSelectedImg:I,bundleName:x?.name,customAttributes:B,speed:k?.content.display_speed,bundleDescription:s,netflixDescription:v,onDrawerTriggerClick:()=>{j(!1),w("default"),y({sbBundle:e,msaBundle:t,flashSales:void 0})},contract:P,isSelected:L,removable:"broadband"===E,onAddClick:()=>{T(async()=>
1{if(S){let e=await (0,c.u)({id:t.bundleId??"",body:{commitmentState:"Confirmed"},bundle:{title:x?.name??"",description:(0,u.s)(t.contract?.term)}});e.success&&C({title:e.bundle?.title??"",description:e.bundle?.description,duration:5e3})}else{let e=await (0,g.R)({success:!1},{id:t.bundleId??"",body:{commitmentState:"Provisional"},product:{title:x?.name??"",description:(0,u.s)(t.contract?.term)}});e.success&&C({title:e.product?.title??"",description:e.product?.description,duration:5e3})}(0,d.A)(a.bk.CONTENT,{event_name:a.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${x?.name} add`,content_name:"Customise",content_text:t.bundleId}})})},onRemoveClick:()=>{T(async()=>{(await (0,f.X)()).success&&(0,d.A)(a.bk.CONTENT,{event_name:a.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${x?.name} remove`,content_name:"Customise",content_text:t.bundleId}})})},tldPricing:S?void 0:M,priceChanges:S?void 0:O,deltaPrice:r})}catch(e){return console.warn(`${e}`),null}}},23382:e=>{e.exports={"webgl-background":"webgl-background_webgl-background__vc5l4"}},23450:e=>{"use strict";e.exports=function(){function e(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}return window.SwiperElementRegisterParams&&window.SwiperElementRegisterParams(["cardsStackEffect"]),function({swiper:t,on:r,extendParams:n}){n({cardsStackEffect:{slideShadows:!0}}),function(e){let t,{effect:r,swiper:n,on:o,setTranslate:i,setTransition:a,overwriteParams:s,perspective:l,recreateShadows:c,getEffectParams:d}=e;o("beforeInit",()=>{if(n.params.effect!==r)return;n.classNames.push(`${n.params.containerModifierClass}${r}`),l&&l()&&n.classNames.push(`${n.params.containerModifierClass}3d`);let e=s?s():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)}),o("setTranslate",()=>{n.params.effect===r&&i()}),o("setTransition",(e,t)=>{n.params.effect===r&&a(t)}),o("transitionEnd",()=>{n.params.effect===r&&c&&d&&d().slideShadows&&(n.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),c())}),o("virtualUpdate",()=>{n.params.effect===r&&(n.slides.length||(t=!0),requestAnimationFrame(()=>{t&&n.slides&&n.slides.length&&(i(),t=!1)}))})}({effect:"cards-stack",swiper:t,on:r,setTranslate:()=>{let{slides:r,rtlTranslate:n}=t,o=t.params.cardsStackEffect,i=t.size/2,a=n?-1:1;for(let s=0;s<r.length;s+=1){let l=r[s],c=l.progress,d=Math.min(Math.max(c,-4),4),u=l.swiperSlideOffset;t.params.centeredSlides&&t.params.cssMode&&(u-=r[0].swiperSlideOffset);let _=t.params.cssMode?-u-t.translate:-u,p=0,m=0,h=0,b=0;if(d<0){let e=Math.abs(d),t=-Math.min(2,e)*Math.PI/2;m=i*Math.cos(t)-i+"px",_=_-a*i*Math.sin(t)+"px",b=-Math.max(-180,-(80*Math.min(4,2*e)))}else if(d>0){let e=Math.abs(d),t=Math.min(4,e)*Math.PI/4;m=i*Math.cos(t)-i+"px",_=_-a*i*Math.sin(t)+"px",b=20*e}else _=`${_}px`;t.isHorizontal()?n&&(b=-b):(p=_,_=0,h=-b,b=0);let g=` 2 translate3d(${_}, ${p}, ${m}) 3 scale(1) 4 rotateX(${h}deg) 5 rotateY(${b}deg) 6 `;if(o.slideShadows){let t=l.querySelector(".swiper-slide-shadow");t||(t=function(t,r){var n,o;let i,a=`swiper-slide-shadow${t?` swiper-slide-shadow-${t}`:""}`,s=e(r),l=s.querySelector(`.${a.split(" ").join(".")}`);return l||(void 0===(n=a.split(" "))&&(n=[]),(i=document.createElement("div")).classList.add(...Array.isArray(n)?n:(void 0===(o=n)&&(o=""),o.trim().split(" ").filter(e=>!!e.trim()))),l=i,s.append(l)),l}("cards",l)),t&&(t.style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}l.style.zIndex=-Math.abs(Math.round(c))+r.length,function(t){let r=e(t);return r!==t&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}(l).style.transform=g}},setTransition:r=>{let n=t.slides.map(t=>e(t));n.forEach(e=>{e.style.transitionDuration=`${r}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=`${r}ms`})}),function(e){let{swiper:t,duration:r,transformElements:n,allSlides:o}=e,{activeIndex:i}=t;if(t.params.virtualTranslate&&0!==r){let e=!1;(o?n:n.filter(e=>{let r=e.classList.contains("swiper-slide-transform")?e.parentElement?e.parentElement:t.slides.filter(t=>t.shadowRoot&&t.shadowRoot===e.parentNode)[0]:e;return t.getSlideIndex(r)===i}
6)).forEach(r=>{var n;(n=()=>{if(e||!t||t.destroyed)return;e=!0,t.animating=!1;let r=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(r)})&&r.addEventListener("transitionend",function e(t){t.target===r&&(n.call(r,t),r.removeEventListener("transitionend",e))})})}}({swiper:t,duration:r,transformElements:n})},perspective:()=>!0,overwriteParams:()=>({centeredSlides:!0,slidesPerView:1,slidesPerGroup:1,spaceBetween:0,loopAdditionalSlides:1,watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}}()},23862:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(9339);let o=(0,n.createServerReference)("005eabe6fae91772f00fe109db2890ce59557efc8c",n.callServer,void 0,n.findSourceMapURL,"removeFromBasketAction")},23926:e=>{e.exports={"grid-container":"vm-flex-grid_grid-container__PwaE_",tile:"vm-flex-grid_tile__Bq9vX"}},24607:e=>{e.exports={"tabs__tab-list--scrollable-container":"tabs-list_tabs__tab-list--scrollable-container__Zwyl8","uf-tab-list__tab":"tabs-list_uf-tab-list__tab__c1JdM","uf-tabs__container":"tabs-list_uf-tabs__container__Hu9NL"}},24646:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DailySplitterProvider:()=>s,useDailySplitter:()=>l,useDailySplitterUpdater:()=>c});var n=r(95155),o=r(12115);let i=(0,o.createContext)(!1),a=(0,o.createContext)(()=>{});function s({children:e,initialActive:t=!1}){let[r,l]=(0,o.useState)(t);return(0,n.jsx)(i.Provider,{value:r,children:(0,n.jsx)(a.Provider,{value:l,children:e})})}function l(){return(0,o.useContext)(i)}function c(){return(0,o.useContext)(a)}},25296:e=>{e.exports={"vm-equipment-carousel":"vm-equipment-carousel_vm-equipment-carousel__59n6O","background-red":"vm-equipment-carousel_background-red__2bBOH","background-purple":"vm-equipment-carousel_background-purple__Pxwlp","background-black":"vm-equipment-carousel_background-black__jQQjQ","carousel-wrapper":"vm-equipment-carousel_carousel-wrapper__P8_p8",carousel__button:"vm-equipment-carousel_carousel__button__ktvF_","carousel__button--next":"vm-equipment-carousel_carousel__button--next__O9_Ny","carousel__button--prev":"vm-equipment-carousel_carousel__button--prev__vukVz"}},25685:(e,t,r)=>{"use strict";r.d(t,{I:()=>c});var n=r(95155),o=r(12115),i=r(29722),a=r(29081),s=r(96267),l=r.n(s);let c=(0,o.forwardRef)(({icon:e,...t},r)=>{let o=(0,a.Og)("burger-menu");return(0,n.jsx)("button",{className:(0,i.A)("header-icon",l()["uf-header-icon"]),ref:r,...t,...o["burger-menu"],children:e})});c.displayName="HeaderButton"},25893:e=>{e.exports={"promo-banner":"promo-card_promo-banner__YhU0v",primary:"promo-card_primary__NCYe9",secondary:"promo-card_secondary__OqAy8",tertiary:"promo-card_tertiary__pL2qU",success:"promo-card_success__sHWJC",warning:"promo-card_warning__jX1Tp",info:"promo-card_info__Po2YP",danger:"promo-card_danger__MCZO8",light:"promo-card_light__9Qcyz",dark:"promo-card_dark___UeQn",onyx:"promo-card_onyx__DKWSx","promo-banner_inner":"promo-card_promo-banner_inner__EaLMz",left:"promo-card_left___w1lo","promo-banner_content":"promo-card_promo-banner_content__AH_qy","promo-banner_content__title":"promo-card_promo-banner_content__title__CZ4De","promo-banner_content__copy":"promo-card_promo-banner_content__copy__xJ7kK","promo-banner__icon":"promo-card_promo-banner__icon__JRtPl","promo-banner_image":"promo-card_promo-banner_image__CZap1","promo-banner_image-background":"promo-card_promo-banner_image-background__BJ2T7","vm-container":"promo-card_vm-container__N3D5I","promo-banner_action":"promo-card_promo-banner_action__FB7_p"}},26271:e=>{e.exports={"modal-text":"products-modal-text_modal-text__IDrl3","modal-images-container":"products-modal-text_modal-images-container__Ar_jn"}},26551:(e,t,r)=>{"use strict";r.r(t),r.d(t,{VerticalCarousel:()=>u});var n=r(95155),o=r(5772),i=r(82567),a=r(29722),s=r(67270),l=r(94249),c=r.n(l);let d=({card:e,isHalf:t})=>{let r=(0,s.G)(e.background_image),l=(0,s.G)({filename:e.channel_icon??null});return(0,n.jsxs)("div",{className:(0,a.A)(c().slide,t?c()["slide-half"]:c()["slide-full"]),children:[r&&(0,n.jsx)(o.default,{sizes:"400px",src:r.src,alt:r.alt,width:r.width,height:r.height,"data-swiper-material-scale":"1.25","data-image-offset":`${e.image_offset??0}px`,className:c()["slide-img"],loading:"lazy"}),(0,n.jsx)("div",{className:c()["slide-overlay"]}
6),(0,n.jsxs)("div",{className:c()["slide-content"],children:[l&&(0,n.jsx)(o.default,{unoptimized:!0,src:l.src,alt:"Channel logo: "+(e.channel_icon_alt_text??e.footer_title??""),width:l.width,height:l.height,className:c()["slide-logo"],loading:"lazy"}),e.footer_title&&(0,n.jsx)(i.E,{color:"light",size:"T400",className:c()["slide-title"],children:e.footer_title}),e.footer_subtitle&&(0,n.jsx)(i.E,{color:"light",size:"T400",children:e.footer_subtitle})]})]})},u=({blok:e})=>(0,n.jsx)("div",{className:c().container,children:e.cards?.map((t,r)=>{if(r%3==2)return(0,n.jsx)(d,{card:t.content},t.id);if(r%3==0){let o=e.cards[r+1];return(0,n.jsxs)("div",{className:c()["slide-wrapper"],children:[(0,n.jsx)(d,{card:t.content,isHalf:!0}),o&&(0,n.jsx)(d,{card:o.content,isHalf:!0})]},`wrapper-${t.id}`)}return null})})},27231:e=>{e.exports={"hero-banner__background-container":"hero-background-image_hero-banner__background-container__20rz1","hero-banner__background-container--mobile":"hero-background-image_hero-banner__background-container--mobile__RFR1E","hero-banner__background-container--tablet":"hero-background-image_hero-banner__background-container--tablet__3sWQG","hero-banner__background-container--desktop":"hero-background-image_hero-banner__background-container--desktop__k2Vv_"}},27304:e=>{e.exports={breadcrumbs:"dynamo-breadcrumbs_breadcrumbs__byKJ0","breadcrumbs--layout-1-1":"dynamo-breadcrumbs_breadcrumbs--layout-1-1__snHMi","breadcrumbs--layout-2-1":"dynamo-breadcrumbs_breadcrumbs--layout-2-1__7bcna","breadcrumbs--layout-1-2":"dynamo-breadcrumbs_breadcrumbs--layout-1-2__KLc9Z","breadcrumbs--layout-split":"dynamo-breadcrumbs_breadcrumbs--layout-split__twyp2"}},27649:e=>{e.exports={"sm-1":"flex-grid_sm-1__D83je","sm-2":"flex-grid_sm-2__SunvQ","md-1":"flex-grid_md-1__UnUP4","md-2":"flex-grid_md-2__BOgQd","md-3":"flex-grid_md-3__iCCm7","md-4":"flex-grid_md-4__qRQr6","md-5":"flex-grid_md-5__Nug5J","lg-1":"flex-grid_lg-1__Bu8uu","lg-2":"flex-grid_lg-2__tOsAg","lg-3":"flex-grid_lg-3__iIMaR","lg-4":"flex-grid_lg-4__pWv_3","lg-5":"flex-grid_lg-5__BcBwZ","lg-6":"flex-grid_lg-6__VaiKx","flex-grid":"flex-grid_flex-grid__76Poz"}},28090:e=>{e.exports={page:"vm-byob-dynamic-page_page__H2giF",page__body:"vm-byob-dynamic-page_page__body__zNAyd",page__device:"vm-byob-dynamic-page_page__device__72YNL","page--non-serviceable":"vm-byob-dynamic-page_page--non-serviceable__UIcUR","page--serviceable":"vm-byob-dynamic-page_page--serviceable__7ogR9",page__header:"vm-byob-dynamic-page_page__header__gMuJi",byob:"vm-byob-dynamic-page_byob__NJ4kr",page__cta:"vm-byob-dynamic-page_page__cta__SydB3",page__footer:"vm-byob-dynamic-page_page__footer__HVAwu",page__flare:"vm-byob-dynamic-page_page__flare__7xtvq","page--tv":"vm-byob-dynamic-page_page--tv__y633D","page__flare--left":"vm-byob-dynamic-page_page__flare--left__DnJYI","page--broadband":"vm-byob-dynamic-page_page--broadband__VWJ3k","page__flare--right":"vm-byob-dynamic-page_page__flare--right__Wjv_N","page--step-1":"vm-byob-dynamic-page_page--step-1__mf6P4","page--step-2":"vm-byob-dynamic-page_page--step-2__nE7Tb","slide-in":"vm-byob-dynamic-page_slide-in__4uczB","page--step-3":"vm-byob-dynamic-page_page--step-3__mOZNy","page--step-4":"vm-byob-dynamic-page_page--step-4__WbOV2"}},28877:(e,t,r)=>{"use strict";r.d(t,{O:()=>l});var n=r(20516),o=r(65305),i=r(30710);let a=e=>{let{totalMonthlyCosts:t,contract:r,products:n}=e,o=!!e?.journeyTypes?.includes("Stream"),i=t?.vmBundleSubtotal||[],a=t?.sim?.[0],s=a?.amount??"0",l=Number(n?.find(e=>e?.productGroup?.includes("streamtv"))?.prices?.find(e=>e?.chargeType==="RecurringCharge")?.price?.amount)||0,c=t?.total||[],d=t?.totalPreviousPrice,u=i?.[0]?.duration||0,_=r?.term||0,p=function(e){let t=new Date,r=0;for(let n=0;n<e;n++)r+=new Date(new Date(t.getFullYear(),t.getMonth()+n+1,1).getTime()-1).getDate();return r}(_);if(c.length>0&&i.length>0)return{totalMonthlyCosts:t,vmBundleSubtotal:i,simPricing:a,flexPricing:l,term:_,isStream:o,simAmount:s,daysInContractTerm:p,totalPreviousPrice:d,total:c,duration:u};throw Error(`Pricing invalid for bundleId ${e.bundleId}`)};var s=r(92455);let l=(e,t=n.XI)=>{let r=e.products?.reduce((e,{productDisplayGroup:t,prices:r})=>{let n=r?.filter(e=>[o.e$.ONE_OFF_PAY_NOW,o.e$.ONE_OFF_PAY_LATER].includes(e.chargeType))?.reduce((e,t)=>
6e+(Number(t?.price?.amount)||0),0);return!n||(t?.includes("standard_setup")&&(e.standard_setup.amount=e.standard_setup.amount+n),t?.includes("rolling_contract_setup")&&(e.rolling_contract_setup.amount=e.rolling_contract_setup.amount+n),t?.includes("stream_setup")&&(e.stream_setup.amount=e.stream_setup.amount+n)),e},{standard_setup:{text:"setup fee",amount:0},rolling_contract_setup:{text:"rolling contract fee",amount:0},stream_setup:{text:"Flex activation fee",amount:0}}),l=e.products?.filter(e=>e.classification?.toLowerCase()==="setup"&&e.prices?.find(e=>e?.chargeType==="OneOffPayNow"&&~~parseFloat(`${e?.price.amount}`)>0)),c=(e=>{let{total:t,totalPreviousPrice:r,vmBundleSubtotal:n}=a(e);return{strikeThroughDiscount:~~Number(r?.amount),discountedTld:n?.length===3?{amountWithDiscount:(0,i.$g)(t?.[0]?.amount),amount:(0,i.$g)(t?.[1]?.amount),broadbandAmountWithDiscount:(0,i.$g)(n?.[0]?.amount),broadbandAmount:(0,i.$g)(n?.[1]?.amount),discountDuration:t?.[0]?.duration||0,afterDurationInMonths:t?.[0]?.duration||0,tldType:"bundle"}:null,timeLimitedDiscount:(0,i.$g)(n?.[0]?.amount),timeLimitedTotal:(0,i.$g)(t?.[0]?.amount),regular:(0,i.$g)(t?.[t.length-1]?.amount)}})(e),d=(e=>{let{totalMonthlyCosts:t,vmBundleSubtotal:r,term:n,isStream:o,simAmount:i,daysInContractTerm:s}=a(e),l=0,c=parseFloat(r[0]?.amount||"0"),d=parseFloat(r[1]?.amount||"0"),u=parseFloat(i),_=parseFloat(t?.addOns?.[0]?.amount||"0"),p=r[0].duration??0;return l=r?.length===3?c*p+d*(n-p)+u*n:(c+u)*n,o&&(l+=_*n),Math.round(l/s*100)/100})(e),u=(0,s.x)(e),_=(0,s.x)(e,"broadband"),p=(0,s.x)(e,"sim"),m=(e=>{let t=e.totalMonthlyCosts?.totalPoundsAndPencePriceSteps?.filter(e=>void 0!==e.duration),r=e.journeyTypes?.includes("Student"),n=r&&t?t.slice(0,1):t;if(!n?.length)return[];let o=n?.map((e,t)=>{let r,n,o;if(!e?.startDate)return"";let a=(n=(r=new Date(e.startDate)).toLocaleString("default",{month:"long"}),o=r.getFullYear(),`${n} ${o}`),s=(0,i.$g)(e.amount);switch(t){case 0:case 1:return`<strong>\xa3${s}</strong> from ${a} bill`;default:return""}}),a=(e=>{let t=e.totalMonthlyCosts?.totalPoundsAndPencePriceSteps?.filter(e=>void 0!==e.duration);if(t?.[0].startDate){let e=new Date(t?.[0].startDate).getFullYear(),r=new Date().getFullYear();if(e>r)return`<strong>No price rise</strong> in ${r}`}return""})(e);return a&&o.length<2&&!r&&o.unshift(a),o})(e),{simPricing:h,flexPricing:b,totalMonthlyCosts:g}=a(e),f=g?.sim||[],x={setupFees:r,oneOffPayNowCharges:l,tldPricing:{pricing:c,simPricing:h,discountedSim:f.length>=2&&f[0]?.duration?{amount:(0,i.$g)(f[1]?.amount),afterDurationInMonths:f[0]?.duration||0}:null,flexPricing:b,dailyTldPrice:d,initialBillSplitAmount:c&&t>0?Number(c.timeLimitedTotal)/t:0},contract:{term:e.contract?.term,isRolling:e.contract?.term===1},priceChanges:u,simPriceChanges:p,broadbandPriceChanges:_,priceChangesHorizontal:m,discountAmount:(e=>{let t=e.totalMonthlyCosts?.total;if(!Array.isArray(t)||t.length<3)return 0;let r=t[0]?.amount??0;return Number(t[1]?.amount??0)-Number(r)})(e)};if(!x?.contract?.term||1>Number(x?.contract?.term))throw Error(`Contract term is invalid for bundleId ${e.bundleId}`);if(!(x.setupFees&&Object.values(x.setupFees).every(({amount:e})=>e>=0)&&(!x?.tldPricing?.simPricing||Number(x?.tldPricing?.simPricing?.amount)>=0)&&1))throw Error(`Pricing is invalid for bundleId ${e.bundleId}`);return x}},28887:(e,t,r)=>{"use strict";r.d(t,{CountdownClockClient:()=>l});var n=r(95155),o=r(12115),i=r(2130),a=r.n(i);let s=({value:e,label:t})=>{let r=1===e.length,o=`${a().counter} ${r?a().single:""}`;return(0,n.jsxs)("div",{className:o,children:[(0,n.jsx)("span",{className:a().digits,children:e}),(0,n.jsx)("span",{className:a().unit,children:t})]})},l=({endDateTime:e,displaySeconds:t,initialRemainingTime:r})=>{let[i,l]=(0,o.useState)(r);return(0,o.useEffect)(()=>{let t=setInterval(()=>{let r=(e=>{if(!e)return null;let t=new Date(e).getTime()-Date.now();if(t<=0)return{days:"0",hours:"00",minutes:"00",seconds:"00"};let r=Math.floor(t/864e5),n=Math.floor(t/36e5%24),o=Math.floor(t/1e3/60%60),i=Math.floor(t/1e3%60);return{days:String(r),hours:String(n).padStart(2,"0"),minutes:String(o).padStart(2,"0"),seconds:String(i).padStart(2,"0")}})(e);r?(l(r),"00"===r.days&&"00"===r.hours&&"00"===r.minutes&&"00"===r.seconds&&
6clearInterval(t)):clearInterval(t)},1e3);return()=>clearInterval(t)},[e]),(0,n.jsxs)("div",{className:a()["vm-countdown-timer"],children:[(0,n.jsx)(s,{value:i.days,label:"Days"}),(0,n.jsx)(s,{value:i.hours,label:"Hours"}),(0,n.jsx)(s,{value:i.minutes,label:"Minutes"}),t&&(0,n.jsx)(s,{value:i.seconds,label:"Seconds"})]})}},29081:(e,t,r)=>{"use strict";let n;r.d(t,{Og:()=>d,sE:()=>c});var o=r(12115),i=r(69839);function a(...e){return e.filter(e=>"string"==typeof e&&e.length>0).map(e=>e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/\d{4,}/g,e=>e.slice(0,3)).slice(0,50)).filter(e=>e.length>0).join("__")}let s=new Map;function l(e,t=i.ZD){return!0===t||!1!==t&&("string"==typeof t?t===e:!!Array.isArray(t)&&t.includes(e))}function c(...e){let t,r=Array.isArray(i.q_)?i.q_:[i.q_];(t=window.location.href)!==n&&(s.clear(),n=t);let o=e.map(e=>null==e||!1===e?null:Array.isArray(e)?a(...e):a(e)),d=1===e.length;return Object.fromEntries(r.map((e,t)=>{let r=d?o[0]:o[t];return null==r?null:[e,function(e,t){if(!l(e))return t;s.has(e)||s.set(e,new Map);let r=s.get(e),n=r.get(t)??0;return r.set(t,n+1),0===n?t:`${t}_${n}`}(e,r)]}).filter(e=>null!==e))}function d(...e){let t=(0,o.useId)().replace(/[:_-]/g,"");if(0===e.length)return{};let r=Array.isArray(i.qK)?i.qK:[i.qK],n={};for(let o=0;o<e.length;o++){let s=e[o],c=`${t}${o}`,d=a(s);n[s]=Object.fromEntries(r.map(e=>{let t=l(e,i.JA)?`${d}-${c}`:d;return[e,t]}))}return n}},29185:(e,t,r)=>{"use strict";r.d(t,{VmPostServiceableSuccessToastGuard:()=>m});var n=r(95155),o=r(12115),i=r(82849),a=r(38207),s=r(29081),l=r(93053),c=r.n(l);function d({maxSpeed:e}){let t=(0,s.Og)("success-toast-notification","success-toast-notification-text");return(0,n.jsx)("div",{className:c().successContainer,"data-testid":"success-toast",...t["success-toast-notification"],children:(0,n.jsx)(a.Fc,{title:"",variant:"success",children:(0,n.jsxs)("span",{className:c().successText,...t["success-toast-notification-text"],children:["Great news! You can get top ",(0,n.jsx)("br",{})," broadband speeds of up to"," ",function(e){if(e){let t,r=parseInt(e,10);switch(!0){case r>=2e3:t="Gig2";break;case r>=1e3:t="Gig1";break;default:t=`M${r}`}return t}return""}(e||""),"."]})})})}var u=r(69839),_=r(85592),p=r(19145);let m=()=>{let[e,t]=(0,o.useState)(!1),{availability:r}=(0,o.useContext)(_.s),a=(0,o.useRef)(null);return((0,o.useEffect)(()=>{i.A.get(u.eT.SHOW_ADDRESS_SEARCH_SUCCESS_TOAST)&&(t(!0),i.A.remove(u.eT.SHOW_ADDRESS_SEARCH_SUCCESS_TOAST),Object.keys(i.A.get()).forEach(e=>{e.startsWith(u.eT.PRODUCT_SORT_FILTER_SETTING)&&i.A.remove(e,{path:"/"})}))},[r]),r&&(0,p.EH)(r))?(0,n.jsx)(n.Fragment,{children:e&&(0,n.jsx)("div",{className:"vm-post-serviceable-success-guard",ref:a,children:(0,n.jsx)(d,{maxSpeed:r.additionalPremiseDetails?.broadband?.maxDownstreamSpeed||r.broadband.maxDownstreamSpeed})})}):null}},29801:(e,t,r)=>{"use strict";r.d(t,{c:()=>m,u:()=>h});var n=r(95155),o=r(11241),i=r(82567),a=r(29722),s=r(29081),l=r(96454),c=r.n(l),d=r(7452),u=r.n(d);let _={portrait:{ribbon:"product-card-ribbon",text:"product-card-ribbon-text",voltRibbon:"product-card-volt-ribbon"},landscape:{ribbon:"product-card-horizontal-ribbon",text:"product-card-horizontal-ribbon-text",voltRibbon:"product-card-horizontal-volt-ribbon"}},p=e=>"portrait"===e?u():c(),m=({sale:e,layout:t})=>{let r=p(t),l=_[t],c=(0,s.Og)(l.ribbon,l.text);if(!e.content.ribbon_text)return null;let d=(e=>{let t=e.split(" "),r=e.length/2,n="",o="";for(let e of t)n.length<r?n+=`${e} `:o+=`${e} `;return[n.trimEnd(),o.trimEnd()]})(e.content.ribbon_text),u=e.content.ribbon_colour;return(0,n.jsx)(o.s,{direction:"column",...c[l.ribbon],className:(0,a.A)({[r["product-card-ribbon"]]:!0,[r["product-card-ribbon--primary"]]:"primary"===u,[r["product-card-ribbon--secondary"]]:"secondary"===u,[r["product-card-ribbon--volt"]]:"volt"===u,[r["product-card-ribbon--onyx"]]:"onyx"===u}),children:d.map(e=>(0,n.jsx)(i.E,{size:"T200",color:"light",lineHeight:"T100",...c[l.text],children:e},e))})},h=({layout:e,forceMobile:t=!1})=>{let r=p(e),i=_[e],l=(0,s.Og)(i.voltRibbon);return(0,n.jsx)(o.s,{direction:"column",...l[i.voltRibbon],className:(0,a.A)({"volt-banner":!0,"force-mobile":t,[r["product-card-ribbon"]]:!0,[r["product-card-ribbon--volt-banner"]]:!0})})}},30027:e=>{e.exports={"product-sort__wrapper":"product-sort-radio_product-sort__wrapper__4OJtL","product-sort__container":"product-sort-radio_product-sort__container__0xpxt","product-sort__button-mobile":"product-sort-radio_product-sort__button-mobile__Q565z","product-sort__button":"product-sort-radio_product-sort__button__qZcmd","product-sort__button-label":"product-sort-radio_product-sort__button-label__oH1uq","product-sort__button-icon":"product-sort-radio_product-sort__button-icon__els5p","product-sort__button-selected":"product-sort-radio_product-sort__button-selected___8san","product-sort__dropdown":"product-sort-radio_product-sort__dropdown__bBfU1","product-sort__dropdown-card-input":"product-sort-radio_product-sort__dropdown-card-input__k5icq","product-sort__dropdown-card":"product-sort-radio_product-sort__dropdown-card__HnsYe","product-sort__dropdown-label":"product-sort-radio_product-sort__dropdown-label__4CHF2","fade-in":"product-sort-radio_fade-in__LOcOA"}}
6,30253:e=>{e.exports={bookshelf:"bookshelf_bookshelf__9BDLB","bookshelf--vertical":"bookshelf_bookshelf--vertical__MxPVC","bookshelf--horizontal":"bookshelf_bookshelf--horizontal__ARYL5"}},30323:(e,t,r)=>{"use strict";r.d(t,{BurgerMenuButton:()=>c});var n=r(95155),o=r(94714),i=r(51073),a=r(65305),s=r(13941),l=r(25685);r(59147),r(59333),r(29081),r(72429),r(63924),r(46496),r(73394),r(44357),r(89534),r(70785),r(18677),r(19544),r(97157),r(9552),r(5772),r(98500),r(69839);let c=()=>{let{open:e,setOpen:t}=(0,s.b)();return(0,n.jsx)(l.I,{title:"Open Navigation",icon:(0,n.jsx)(i.I,{icon:o.STX}),onClick:()=>{t({open:a.Qb.SIDE_NAV})},"aria-expanded":e===a.Qb.SIDE_NAV})}},30710:(e,t,r)=>{"use strict";function n(e){if(!e)return"0";let t="string"==typeof e?parseFloat(e):e;return Number.isInteger(t)||t-Math.floor(t)==0?t.toString():Number.isNaN(t)?(console.warn("formatPrice: received NaN price input:",e),"0.00"):t.toFixed(2)}r.d(t,{$g:()=>n,a7:()=>o,xQ:()=>i});let o=e=>`\xa3${n(e)}`,i=e=>{let t=o(e),r=t.includes("-")?`-${t.replace("-","")}`:`+${t}`;return t===o("0")?t:r}},31012:e=>{e.exports={"no-results":"vm-no-results_no-results__Oy_EK"}},31332:e=>{e.exports={TelephoneInput:"telephone-input_TelephoneInput__bynoH",input:"telephone-input_input__CteK_","divider-line":"telephone-input_divider-line__hmtS3","by-entering-your-num":"telephone-input_by-entering-your-num__IRkmL","plum-link":"telephone-input_plum-link__X7AUD"}},31641:(e,t,r)=>{"use strict";r.d(t,{PostcodeCapture:()=>X});var n=r(95155),o=r(12115),i=r(33546),a=r(12572),s=r(18401),l=r(51073),c=r(29722),d=r(99003),u=r(19554),_=r(29081),p=r(3703),m=r.n(p);function h({loaderText:e}){let t=(0,_.Og)("page-loading-screen");return(0,n.jsxs)("div",{className:m()["loading-text-wrapper"],children:[(0,n.jsxs)("div",{className:m().loading,...t["page-loading-screen"],children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}),e?(0,n.jsx)("p",{className:m()["loading-text"],children:e}):null]})}var b=r(69839),g=r(23696);let f=g.z.object({postcode:g.z.string().min(5,"Please enter a valid UK postcode").max(8,"Please enter a valid UK postcode").regex(/^[A-Z]{1,2}\d[A-Z0-9]? ?\d[A-Z]{2}$/i,"Please enter a valid UK postcode")});var x=r(85592),v=r(18829),y=r(98500),j=r.n(y),w=r(73321),N=r(94714),k=r(11241),E=r(65305),S=r(86282),T=r(13941),C=r(51970),A=r(45772),I=r(21800),P=r.n(I),M=r(27710);let O=({addressIdentification:e})=>"uprn"in e?e.uprn:e.addressId,B=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function L({options:e,errorMessage:t,id:r,serviceabilityAttrs:o,onChange:i}){if(e.length>1){let a=[...e].sort((e,t)=>B.compare(e.displayAddress,t.displayAddress));return(0,n.jsx)(M.F,{className:t?P()["form-Item-error"]:"",id:`AddressList#${r}`,name:"serviceability-address-list",...o,label:(0,n.jsx)("h3",{className:P().label,children:"Select address"}),onChange:i,options:a.map(e=>({label:e.displayAddress,value:O(e)})),height:"22.5vh",autoFocus:!0})}return 1===e.length?(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:P()["postcode-checker_address_heading__container"],children:(0,n.jsxs)("h3",{children:["We've found a match for ",e[0].postcode]})}),(0,n.jsx)("div",{className:P()["postcode-checker__address-content-container"],children:(0,n.jsx)("p",{className:P()["address-content"],children:e[0].displayAddress})})]}):null}function D({options:e=[],onSelect:t,errorMessage:r}){let i,s,c=(0,o.useId)(),d=(0,_.Og)("address-list-section","serviceability-address-list","address-list-error-message","address-list-error-icon","address-not-shown-link");return(0,o.useEffect)(()=>{e?.length===1&&t(e[0])},[e]),(0,n.jsxs)(k.s,{direction:"column",className:P().AddressList,...d["address-list-section"],children:[(0,n.jsx)(L,{options:e,errorMessage:r,id:c,serviceabilityAttrs:d["serviceability-address-list"],onChange:r=>{let{value:n}=r.target,o=e?.find(e=>O(e)===n);t(o);let i=Number(document?.querySelector(`[data-value="${n}"]`)?.getAttribute("data-idx"))||0;(0,v.A)(b.bk.SERVICEABILITY,{eventCategory:b.sd.SERVICEABILITY,eventAction:b.hh.SERVICEABILITY_SELECT_ADDRESS,event_name:b.qy.SERVICEABILITY_SELECT_ADDRESS,eventLabel:i,serviceability:{postcode:o.postcode.toLowerCase().split(" ")[0],premise_uid:(0,S.t)(o),uprn:(0,S.y)(o)},event_params:{content_position:i}})}}),r&&(0,n.jsxs)("p",{className:P()["error-message"],...d["address-list-error-message"],children:[(0,n.jsx)(l.I,{icon:a.VtD,size:"sm",...d["address-list-error-icon"]})," ",r]}),(0,n.jsx)(j(),{href:(i=window.location.origin,s=(0,A.m)(i),`${s}/where-you-live`),className:P()["not-shown-link"],...d["address-not-shown-link"],children:"My address is not shown"})]})}var R=r(78107),F=r(38119),V=r(31332),$=r.n(V);function z(e){let t=(0,o.useId)(),r=(0,_.Og)("telephone-input-section","telephone-input-divider-line","serviceability-telephone-input","privacy-policy-consent","privacy-policy-link");return(0,n.jsxs)(k.s,{direction:"column",className:$().TelephoneInput,...r["telephone-input-section"],children:[(0,n.jsxs)("div",{className:$()["divider-line"],...r["telephone-input-divider-line"],children:[(0,n.jsx)(F.d,{}),(0,n.jsx)("h3",{children:"What's your number ?"}),(0,n.jsx)(R.FormInput,{id:`TelephoneInput#${t}`,name:"serviceability-telephone-input",className:$().input,...r["serviceability-telephone-input"],onChange:t=>e.onChange(t.target.value),affix:"+44",inputMode:"tel",type:"tel",maxLength:11,...e.errorMessage?{error:{message:e.errorMessage,type:""}}:{}})]}),(0,n.jsxs)("span",{className:$()["by-entering-your-num"],...r["privacy-policy-consent"],children:["By entering your number, you consent to us calling or messaging you (via text or WhatsApp) about this search and personalising your online experience. For more details please see our"," ",(0,n.jsx)("a",{href:"https://www.virginmedia.com/legal/privacy-policy",target:"_blank",className:$()["plum-link"],...r["privacy-policy-link"],children:"Privacy Policy"}),"."]})]})}var U=r(19145),H=r(9339);let G=(0,H.createServerReference)("60b6e58785886bc232c72a1aeac3d5adfa0239d141",H.callServer,void 0,H.findSourceMapURL,"addressCaptureAction");var q=r(91240),W=r.n(q);let Y=({postCodeSearchError:e})=>{let t=(0,_.Og)("postcode-search-error-wrapper","postcode-search-error-icon","postcode-search-error-message","address-capture-form","address-check-availability-button"),{setBasket:r}=(0,C.D)(),[i,a]=(0,o.useState)({error:!1}),{setOpen:d}=(0,T.b)(),p=(0,o.useRef)(null),{layout:m}=(0,u.C)();(0,o.useEffect)(()=>{p.current&&p.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[]);let g=(0,w.useRouter)(),{addresses:f,setLoading:y,setPostcode:I,resetAddress:P}=(0,o.useContext)(x.s),[M,O]=(0,o.useState)(""),[B,L]=(0,o.useState)(void 0),[R,F]=(0,o.useState)(null),[V,$]=(0,o.useState)(""),H=async e=>{if(e.preventDefault(),B||$("Please select an address"),M&&!/^(0?7\d{9}|0?[12345689]\d{8,9})$/.exec(M.replace(/\D/g,"")))return void F("Please enter a valid UK phone number");if(F(null),B){let{addressIdentification:e}=B;y(!0);let t=await G(i,{address:e,phoneNumber:M});a(t),t?.clearBasket&&(r({}),d({open:E.Qb.NONE}))}},q=(0,o.useCallback)(()=>{},[g]);return((0,o.useEffect)(()=>
6{if(i.availability){let{outcome:{evaluations:e}={}}=i.availability;if(!(0,U.EH)(i.availability)){P(),I(" ");let t=e?.some(e=>"UNSERVICEABLE_COMING_SOON"===e)??!1,r=e?.some(e=>"SPOTTERS"===e)??!1;g.push(((e,t,r=!1)=>{let n,o=(0,A.m)(e);return n=t?"/coming-soon":r?"/where-you-live":"/keep-me-posted",sessionStorage.setItem("ignore-access-check","true"),o+n})(window.location.origin,t,r))}let t=i?.availability?.supportedTechnologyTypes?.filter(e=>"Broadband"===e.service&&e.technologies?.length>0)?.flatMap(e=>e.technologies.map(e=>"DOCSIS"===e?"HFC":e))?.join("|")||"",r={eventCategory:b.sd.SERVICEABILITY,eventAction:b.hh.SERVICEABILITY_CONFIRM_ADDRESS,event_name:b.qy.SERVICEABILITY_CONFIRM_ADDRESS,eventLabel:B?.postcode.toLowerCase().split(" ")[0],serviceability:{delivery_method:t,serviceability_status:i.availability.outcome.description,postcode:B?.postcode.toLowerCase().split(" ")[0],uprn:B?(0,S.y)(B):void 0,premise_uid:B?(0,S.t)(B):void 0},event_params:{dynamic_postcode:B?.postcode.toLowerCase().split(" ")[0]}};M&&""!==M.trim()&&(r={...r,user_provided_details:{phone_number:M.replace(/^(\d)(\d{5})\s*(\d{5})/,"+44$2$3")}}),(0,v.A)(b.bk.SERVICEABILITY,r),q()}},[i,q,B]),i.availability)?(0,n.jsx)("div",{className:W().loaderContainer,children:(0,n.jsx)(h,{loaderText:"Let's see if your home can get Virgin Media...."})}):e||i.error?(0,n.jsx)("div",{className:W().loaderContainer,children:(0,n.jsxs)("div",{className:W().errorContainer,...t["postcode-search-error-wrapper"],children:[(0,n.jsx)(l.I,{icon:N.nJf,size:"2xl",...t["postcode-search-error-icon"]}),(0,n.jsx)("p",{className:W().errorMessage,...t["postcode-search-error-message"],children:"Whoops. We didn't quite get that. Have another go or try again later."}),(0,n.jsx)("br",{}),(0,n.jsx)(j(),{prefetch:b.Ad,className:W().errorMessageLink,href:"#",onClick:()=>{window.location.reload()},children:"Refresh now"})]})}):f?.length&&(0,n.jsx)("div",{className:W().loaderContainer,ref:p,children:(0,n.jsx)(k.s,{direction:"column",className:(0,c.A)(W().AddressList,{[W()["AddressList--mobile-centered"]]:"split"===m}),children:(0,n.jsxs)("form",{"data-testid":"address-capture-form",className:W().AvailabilityForm,...t["address-capture-form"],onSubmit:e=>{H(e)},children:[(0,n.jsx)(D,{onSelect:e=>{L(e),$("")},options:f,errorMessage:V}),(0,n.jsx)(z,{onChange:O,errorMessage:R}),(0,n.jsx)(s.$,{type:"submit",variant:"tertiary",rounded:"xl",...t["address-check-availability-button"],children:"Check availability"})]})})})},K=(0,H.createServerReference)("60543c422d57b2a0f8005b17a736e787cf12d25393",H.callServer,void 0,H.findSourceMapURL,"postcodeCaptureAction");var Q=r(49146),Z=r.n(Q);let X=()=>{let[,e]=(0,o.useTransition)(),{addresses:t,setAddresses:r,postcode:p,setPostcode:m,setAvailability:g,setAllowPostcodeCapture:y}=(0,o.useContext)(x.s),{layout:j}=(0,u.C)(),[w,N,k]=(0,o.useActionState)(K,{error:!1}),E="Postcode",S=(0,_.Og)("postcode-section","postcode-input","postcode-check-availability-button","postcode-checker-error-wrapper","postcode-format-error-message","postcode-format-error-icon"),{register:T,setValue:C,handleSubmit:A,formState:{errors:I}}=(0,d.mN)({defaultValues:{postcode:p?.trim()||""},mode:"onSubmit",reValidateMode:"onChange",resolver:(0,i.u)(f)});(0,o.useEffect)(()=>{p&&C("postcode",p),w.addresses&&r(w.addresses)},[p,w,r,C]);let P=null;return k?P=(0,n.jsx)("div",{className:Z().loaderContainer,children:(0,n.jsx)(h,{loaderText:"Finding your address..."})}):p&&(t?.length||w?.error)&&(P=(0,n.jsx)(Y,{postCodeSearchError:!!w?.error})),(0,n.jsxs)("div",{className:(0,c.A)(Z().postcodeForm,"postcodeContainer",{[Z()["postcodeForm--layout-full"]]:"full"===j,[Z()["postcodeForm--layout-split"]]:"split"===j}),...S["postcode-section"],children:[(0,n.jsx)("p",{className:Z().title,children:"Enter your postcode to see what you can get:"}),(0,n.jsxs)("form",{className:(0,c.A)({[Z().row]:!0,[Z().error]:w.error||I.postcode?.message}),onSubmit:A(t=>{e(()=>{y(!1),g(void 0),m(t.postcode),N(t)});let r=t.postcode.toLowerCase().split(" ")[0];(0,v.A)(b.bk.SERVICEABILITY,{eventCategory:b.sd.SERVICEABILITY,eventAction:b.hh.SERVICEABILITY_INIT,eventLabel:r,event_name:b.qy.SERVICEABILITY_INIT,serviceability:{postcode:r}})}),children:[(0,n.jsx)("input",{type:"text",placeholder:E,id:"postcode",...S["postcode-input"],"aria-label":E,...T("postcode",{onBlur:e=>{e.target.value=e.target.value.trim().replace(/ +/g,"").toUpperCase().replace(/([A-Z]{1,2}\d{1,2}) ?(\d[A-Z]{2})/,"$1 $2")}}),className:Z().postcodeForm__input}),(0,n.jsx)(s.$,{type:"submit",variant:"tertiary",className:Z().postcodeForm__button,...S["postcode-check-availability-button"],rounded:!0,children:"Check availability"})]}),(0,n.jsx)("div",{className:Z()["error-container"],children:(0,n.jsx)("div",{className:Z()["error-content"],
6children:I.postcode?.message&&(0,n.jsx)("div",{className:(0,c.A)({[Z()["postcode-checker__error-label--postcode-error-msg"]]:!0,[Z()["postcode-checker__error-label--postcode-error-msg--address"]]:!!t?.length}),...S["postcode-checker-error-wrapper"],children:(0,n.jsx)("label",{className:Z().postcodeForm__error,children:(0,n.jsxs)("span",{className:Z()["postcode-checker__error-label"],...S["postcode-format-error-message"],children:[(0,n.jsx)(l.I,{icon:a.VtD,size:"sm",...S["postcode-format-error-icon"]}),I.postcode?.message]})})})})}),P]})}},31650:(e,t,r)=>{"use strict";function n(e){window.dataLayer||(window.dataLayer=[]),window.dataLayer.push(e)}r.d(t,{K:()=>n})},32154:e=>{e.exports={"compare-checkbox":"compare-checkbox_compare-checkbox__ImRRp",active:"compare-checkbox_active__H50s9","compare-badge":"compare-checkbox_compare-badge__RjVvn",divider:"compare-checkbox_divider__Wsjsy"}},32493:(e,t,r)=>{"use strict";r.d(t,{gm:()=>a,E0:()=>u,uM:()=>d,xU:()=>s,UY:()=>l});var n=r(65305),o=r(12612);function i(e,t,r){let i="/vm-upper-funnel/assets/icons",a=e.toLowerCase().includes("volt"),s=t.content.product_type?.toLowerCase(),l=t.name.toLowerCase();return(0,o.v)(l)?`${i}/netflix-n.png`:s===n.po.TV&&r?`${i}/stream.svg`:l.includes("extra")&&a?`${i}/extras-volt.svg`:s===n.po.BROADBAND||s===n.po.SIM?`${i}/${s}${a?"-volt":""}.svg`:s===n.po.LANDLINE||s===n.po.TV?`${i}/${s}.svg`:null}function a(e){return e?.map(e=>e?.content?.map(e=>e?.marks?e?.marks?.reduce((e,t)=>`<${t.type}>${e}</${t.type}>`,e.text):e.text).join("")).join("")}function s(e){let t=e?.uf_display_name?.content,r=t?a(t):"";if(r.trim())return r;let n=e?.display_name?.content;return n?a(n):""}function l(e){let t=e?.display_name?.content,r=t?a(t):"";return r.trim()?r:s(e)}function c(e){return e.type===n.KT.PARAGRAPH&&e.content?e.content.filter(e=>e.type===n.KT.TEXT).map(e=>e.text):[]}function d(e,t,r){return t?.map(t=>{let o=t?.content?.uf_display_name?.content,s=t?.content?.display_name?.content,l=o&&a(o).trim()?o:s??o,c=t?.content?.uf_description?.content,d=t?.content?.sales_description?.content,u=t?.content?.product_additional_images?.find(({uid:e})=>e===n.tJ.SALES_MODAL_IMAGES)?.multiple_images;if(!l||!d&&!c)throw Error(`Product display_name or sales_description missing for ${t?.name}`);return{name:a(l),icon:i(e,t,r),salesDescriptionItems:d?.flatMap(e=>e?.content),ufDescription:t?.content?.uf_description,modals:(t.content?.uf_modals||[]).map(e=>({linkText:e.trigger?.[0]?.title??e.title,title:e.title,text:e.body,images:u,id:e.trigger?.[0]?.link?.url})),productType:t.content?.product_type?.toLowerCase()||"",nonProductType:t.content?.non_product_type?.toLowerCase()||"",mediaTitle:t.content.entertainment_card?.[0]?.content?.footer_title,mediaDescription:t.content.entertainment_card?.[0]?.content?.footer_subtitle,mediaLogo:t.content.entertainment_card?.[0]?.content?.channel_icon?.toString()}})}function u(e,t,r){return t?.map(t=>{let o=t?.content?.display_name?.content;if(!o)throw Error(`Manual product display_name missing for ${t?.name}`);let s=t?.content?.uf_description?.content?.flatMap(e=>e?.content?.flatMap(e=>e.type===n.KT.LIST_ITEM&&e.content?e.content.flatMap(c):e.type===n.KT.PARAGRAPH&&e.content?c(e):[])||[])||[];return{name:a(o),icon:i(e,t,r),salesDescriptionItems:s,xsus_description:t?.content?.xsus_description}})}},32694:(e,t,r)=>{"use strict";r.d(t,{Al:()=>a,_3:()=>i,ut:()=>s});var n,o,i=((n={})[n.BASE_BUNDLE=1]="BASE_BUNDLE",n[n.TV_CHANNELS=2]="TV_CHANNELS",n[n.STREAM=3]="STREAM",n[n.BROADBAND=4]="BROADBAND",n[n.STREAM_BOXES=5]="STREAM_BOXES",n),a=((o={})[o.BASE_BUNDLE=1]="BASE_BUNDLE",o[o.TV=2]="TV",o[o.TV_CHANNELS=3]="TV_CHANNELS",o[o.STREAM=4]="STREAM",o);let s=(e,t)=>{let r="tv"===e?[3,5]:[4];for(let e=t;e>=1;e-=1)if(!r.includes(e))return e;return t}},33245:(e,t,r)=>{"use strict";r.d(t,{default:()=>Y});var n=r(95155),o=r(73321),i=r(12115),a=r(88930),s=r(18199),l=r(86275),c=r(29625),d=r(80501),u=r(74808),_=r(38198),p=r(57575),m=r(46241);let h=({onInteractionStart:e,disableAutoReset:t=!1,responsiveConfig:r})=>{let o=(0,i.useRef)(null),{camera:a}=(0,m.C)(),[s,l]=(0,i.useState)(null),d=(0,i.useRef)({position:new c.Vector3(...r.cameraPosition),target:new c.Vector3(...r.cameraTarget)});(0,i.useEffect)(()=>
6{if(d.current.position.set(...r.cameraPosition),d.current.target.set(...r.cameraTarget),o.current){let[e,t,n]=r.cameraTarget;o.current.target.set(e,t,n),o.current.update()}},[r.cameraPosition,r.cameraTarget]);let u=(0,i.useRef)({isAnimating:!1,startPosition:new c.Vector3,startTarget:new c.Vector3,targetPosition:new c.Vector3,targetTarget:new c.Vector3,progress:0}),_=(0,i.useCallback)(()=>{if(!o.current)return;let e=o.current;u.current.isAnimating=!0,u.current.progress=0,u.current.startPosition.copy(a.position),u.current.startTarget.copy(e.target),u.current.targetPosition.copy(d.current.position),u.current.targetTarget.copy(d.current.target)},[a]),h=(0,i.useCallback)(()=>{u.current.isAnimating=!1,u.current.progress=0},[]);return(0,i.useEffect)(()=>{if(!o.current||t)return;let e=o.current;e.target.copy(d.current.target),e.update();let r=()=>{h(),s&&(clearTimeout(s),l(null))},n=()=>{l(setTimeout(()=>{_()},2e3))};return e.addEventListener("start",r),e.addEventListener("end",n),()=>{e.removeEventListener("start",r),e.removeEventListener("end",n),s&&clearTimeout(s)}},[s,_,h,t]),(0,m.D)((e,r)=>{if(t||!u.current.isAnimating||!o.current)return;u.current.progress+=r/2,u.current.progress>=1&&(u.current.progress=1,u.current.isAnimating=!1);let n=1-(1-u.current.progress)**3;a.position.lerpVectors(u.current.startPosition,u.current.targetPosition,n),o.current.target.lerpVectors(u.current.startTarget,u.current.targetTarget,n),o.current.update()}),(0,n.jsx)(p.N,{ref:o,enableRotate:!0,enableZoom:!1,enablePan:!1,minPolarAngle:Math.PI/2.5,maxPolarAngle:Math.PI/1.7,minAzimuthAngle:-Math.PI/4,maxAzimuthAngle:Math.PI/4,enableDamping:!0,dampingFactor:.05,rotateSpeed:.5,onStart:e})},b=({responsiveConfig:e})=>{let{camera:t}=(0,m.C)();return(0,i.useEffect)(()=>{if(t&&"fov"in t){t.fov=e.fov;let[r,n,o]=e.cameraPosition;t.position.set(r,n,o);let[i,a,s]=e.cameraTarget;t.lookAt(i,a,s),t.updateProjectionMatrix()}},[t,e.fov,e.cameraPosition,e.cameraTarget]),null},g={TV_POSITION:[0,-4.8,4.2],TV_SCALE:[8,8,8],TABLE_POSITION:[0,-4,4.5],TABLE_SCALE:[6,6,6],HUB_POSITION:[-4,-1.03,-.1],HUB_SCALE:[6,6,6],HUB_ROTATION:[0,.22*Math.PI,0],STREAMBOX_POSITION:[-3,-1.3,.1],STREAMBOX_SCALE:[.1,.1,.1],STREAMBOX_ROTATION:[0,.02,0],SCENE_GROUP_POSITION:[0,0,0],TABLE_GROUP_POSITION:[0,-.5,0]},f=[0,.86,-.732],x=[1.19,.67],v=[0,2.1,-2],y=[20,16],j=[0,7,-11.8],w=[0,0,0],N=[-10,0,0],k=[10,0,0],E=[0,-5,3],S=[-5,-5,3],T=[5,-5,3],C=({isActive:e,onComplete:t,responsiveConfig:r})=>{let{camera:n}=(0,m.C)(),o=(0,i.useRef)({isAnimating:!1,startPosition:new c.Vector3,targetPosition:new c.Vector3,progress:0}),a=(0,i.useCallback)(()=>{e&&(o.current.isAnimating=!0,o.current.progress=0,o.current.startPosition.copy(n.position),o.current.targetPosition.set(...r.cameraPosition),n.lookAt(...r.cameraTarget))},[e,n]);return(0,i.useEffect)(()=>{e&&a()},[e,a]),(0,m.D)((e,i)=>{if(!o.current.isAnimating)return;o.current.progress+=i/1.5,o.current.progress>=1&&(o.current.progress=1,o.current.isAnimating=!1,t?.());let a=o.current.progress;n.position.lerpVectors(o.current.startPosition,o.current.targetPosition,1-(1-a)**3),n.lookAt(...r.cameraTarget)}),null},A=({assetUrl:e,startPlayback:t=!0,onTVScreenLoaded:r,onAssetLoaded:o,tvModelPath:s})=>{let l=e?.match(/\.(mp4|webm|ogg|mov|avi)$/i),d=l?void 0:e,u=l?e:void 0,[_,p]=(0,i.useState)(null),h=(0,i.useRef)(null),b=(0,i.useMemo)(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",[]),v=(0,m.G)(c.TextureLoader,d||b),[y,j]=(0,i.useState)(null),{scene:w}=(0,a.p)(s),N=(0,i.useCallback)(()=>{let e=new c.Box3;return e.setFromCenterAndSize(new c.Vector3(...f),new c.Vector3(x[0],x[1],.01)),{screenPosition:f,screenSize:x,screenBounds:e}},[]);(0,i.useEffect)(()=>{if(!w)return;let e=N();w.traverse(e=>{if(e instanceof c.Mesh&&e.material)if(Array.isArray(e.material))e.material=e.material.map(e=>{let t=new c.MeshBasicMaterial;return t.map=e.map,t.color=e.color,t});else{let t=new c.MeshBasicMaterial;t.map=e.material.map,t.color=e.material.color,e.material=t}}),p({position:e.screenPosition,size:e.screenSize}),r()},[w,N]);let k=(0,i.useCallback)(e=>{let t=document.createElement("video");t.crossOrigin="anonymous",t.loop=!0,t.muted=!0,t.autoplay=!0,t.playsInl
6ine=!0,t.src=e;let r=new c.VideoTexture(t);return r.minFilter=c.LinearFilter,r.magFilter=c.LinearFilter,r.format=c.RGBFormat,{video:t,videoTexture:r}},[]);(0,i.useEffect)(()=>{if(!u)return void j(null);let{video:e,videoTexture:r}=k(u);j(r),h.current=e;let n=()=>{o(),t&&e.play().catch(()=>{})},i=()=>{};return e.addEventListener("loadeddata",n),e.addEventListener("error",i),()=>{e.removeEventListener("loadeddata",n),e.removeEventListener("error",i),h.current&&(h.current.pause(),h.current.src=""),r.dispose()}},[u,k]),(0,i.useEffect)(()=>{h.current&&t&&h.current.play().catch(()=>{})},[t]),(0,i.useEffect)(()=>{v&&d&&(v.wrapS=c.ClampToEdgeWrapping,v.wrapT=c.ClampToEdgeWrapping,o())},[v,d]);let E=(0,i.useMemo)(()=>u?y:v,[u,y,v]),S=(0,i.useMemo)(()=>!!(d||u),[d,u]),T=(0,i.useMemo)(()=>S&&_&&E?(0,n.jsxs)("mesh",{position:_.position,children:[(0,n.jsx)("planeGeometry",{args:_.size}),(0,n.jsx)("meshBasicMaterial",{map:E,toneMapped:!1})]}):null,[S,_,E]);return w?(0,n.jsxs)("group",{position:g.TV_POSITION,scale:g.TV_SCALE,children:[(0,n.jsx)("primitive",{object:w}),T]}):null};var I=r(45911);let P={MOBILE_LARGE:{fov:75,cameraPosition:[0,1.3,6.5],cameraTarget:[0,1.3,0],cinematicCameraPosition:[3.5,2.8,7.5]},TABLET:{fov:75,cameraPosition:[0,.5,6],cameraTarget:[0,.5,0],cinematicCameraPosition:[4,3,8]},DESKTOP:{fov:75,cameraPosition:[0,.46,5.4],cameraTarget:[0,.5,0],cinematicCameraPosition:[4,3,8]}},M=({onLoaded:e,hubModelPath:t})=>{let{scene:r}=(0,a.p)(t);return(0,i.useEffect)(()=>{r.traverse(e=>{e instanceof c.Mesh&&(e.castShadow=!0,e.receiveShadow=!0)}),e()},[r]),(0,n.jsx)("primitive",{object:r,position:g.HUB_POSITION,rotation:g.HUB_ROTATION,scale:g.HUB_SCALE})};function O(e){let t=new c.Color(e);return[t.r,t.g,t.b]}let B=({shaderConfig:e,prefersReducedMotion:t=!1,enableSpotlights:r,disableHueLightAnimation:o})=>{let a=(0,i.useRef)([]),s=(0,i.useRef)(null),l=(0,i.useRef)(null),d=(0,i.useRef)(null),u=(0,i.useRef)(!1),_=(0,i.useMemo)(()=>new c.ShaderMaterial({uniforms:{u_time:{value:0},u_intensity:{value:e.intensity},u_animationSpeed:{value:e.animation_speed},u_glowDistance:{value:.4},u_tvPosition:{value:new c.Vector3(...v)},u_tvSize:{value:new c.Vector2(1,.56)},u_glowScale:{value:new c.Vector2(4,0)},u_color1:{value:new c.Vector3(...O(e.color_1))},u_color2:{value:new c.Vector3(...O(e.color_2))},u_color3:{value:new c.Vector3(...O(e.color_3))},u_color4:{value:new c.Vector3(...O(e.color_4))}},vertexShader:` 7 varying vec2 vUv; 8 varying vec3 vWorldPosition; 9 10 void main() { 11 vUv = uv; 12 vec4 worldPosition = modelMatrix * vec4(position, 1.0); 13 vWorldPosition = worldPosition.xyz; 14 gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); 15 } 16 `,fragmentShader:` 17 uniform float u_time; 18 uniform float u_intensity; 19 uniform float u_animationSpeed; 20 uniform float u_glowDistance; 21 uniform vec3 u_tvPosition; 22 uniform vec2 u_tvSize; 23 uniform vec2 u_glowScale; 24 uniform vec3 u_color1; 25 uniform vec3 u_color2; 26 uniform vec3 u_color3; 27 uniform vec3 u_color4; 28 29 varying vec2 vUv; 30 varying vec3 vWorldPosition; 31 32 void main() { 33 vec2 worldPos = vWorldPosition.xy; 34 vec2 tvCenter = u_tvPosition.xy; 35 36 vec2 tvSize = u_tvSize * u_glowScale; 37 38 vec2 d = abs(worldPos - tvCenter) - tvSize * 0.5; 39 float distToTVEdge = length(max(d, 0.0)) + min(max(d.x, d.y), 0.0); 40 41 float glow = 0.0; 42 if (distToTVEdge > 0.0) { 43 glow = u_intensity * exp(-distToTVEdge * u_glowDistance); 44 } 45 46 vec2 direction = worldPos - tvCenter; 47 float angle = atan(direction.y, direction.x); 48 49 float colorPhase = (angle + u_time * u_animationSpeed) / (2.0 * 3.14159); 50 colorPhase = fract(colorPhase); 51 52 float t = colorPhase * 4.0; 53 int colorIndex = int(floor(t)); 54 float blend = fract(t); 55 56 vec3 finalColor; 57 if (colorIndex == 0) { 58 finalColor = mix(u_color1, u_color2, blend); 59 } else if (colorIndex == 1) { 60 finalColor = mix(u_color2, u_color3, blend); 61 } else if (colorIndex == 2) { 62 finalColor = mix(u_color3, u_color4, blend); 63 } else { 64 finalColor = mix(u_color4, u_color1, blend); 65 } 66 67 gl_FragColor = vec4(finalColor * glow, glow * 1.2); 68 } 69 `,transparent:!0,blending:c.AdditiveBlending,side:c.DoubleSide}),[e]),p=(0,i.useMemo)(()=>e?[new c.Color(e.color_1),new c.Color(e.color_2),new c.Color(e.color_3),new c.Color(e.color_4)]:[],[e]),h=(0,i.useRef)(new c.Color),b=t||o;return(0,m.D)(({clock:t})=>{if(b&&u.current)return;let n=b?0:t.getElapsedTime();for(let e of(u.current||(u.current=!0),a.current))e?.material&&(e.material.uniforms.u_time.value=n);if(r&&s.current){let t=(-Math.PI/2+n*e.animation_speed)/(2*Math.PI),r=4*(t-Math.floor(t)),o=Math.floor(r)%4,i=r-
69Math.floor(r);h.current.copy(p[o]),h.current.lerp(p[(o+1)%4],i),s.current.color.copy(h.current),s.current.intensity=13}if(r&&l.current){let t=(-Math.PI/2-Math.PI/4+n*e.animation_speed)/(2*Math.PI),r=4*(t-Math.floor(t)),o=Math.floor(r)%4,i=r-Math.floor(r);h.current.copy(p[o]),h.current.lerp(p[(o+1)%4],i),l.current.color.copy(h.current),l.current.intensity=15}if(r&&d.current){let t=(-Math.PI/2+Math.PI/4+n*e.animation_speed)/(2*Math.PI),r=4*(t-Math.floor(t)),o=Math.floor(r)%4,i=r-Math.floor(r);h.current.copy(p[o]),h.current.lerp(p[(o+1)%4],i),d.current.color.copy(h.current),d.current.intensity=15}}),(0,n.jsxs)("group",{children:[(0,n.jsx)("mesh",{ref:e=>a.current[0]=e,position:v,material:_,children:(0,n.jsx)("planeGeometry",{args:y})}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("spotLight",{ref:s,position:j,distance:16.5,decay:0,angle:Math.PI/3,penumbra:0,castShadow:!0,"shadow-mapSize-width":512,"shadow-mapSize-height":512,"shadow-camera-near":.1,"shadow-camera-far":50}),(0,n.jsx)("spotLight",{ref:l,position:[j[0]-4,j[1],j[2]],distance:16.5,decay:0,angle:Math.PI/3,penumbra:0,castShadow:!0,"shadow-mapSize-width":512,"shadow-mapSize-height":512,"shadow-camera-near":.1,"shadow-camera-far":50}),(0,n.jsx)("spotLight",{ref:d,position:[j[0]+4,j[1],j[2]],distance:16.5,decay:0,angle:Math.PI/3,penumbra:0,castShadow:!0,"shadow-mapSize-width":512,"shadow-mapSize-height":512,"shadow-camera-near":.1,"shadow-camera-far":50}),(0,n.jsx)("object3D",{ref:e=>{e&&s.current&&(s.current.target=e)},position:w}),(0,n.jsx)("object3D",{ref:e=>{e&&l.current&&(l.current.target=e)},position:N}),(0,n.jsx)("object3D",{ref:e=>{e&&d.current&&(d.current.target=e)},position:k})]})]})},L=({config:e})=>{let{ambientLightIntensity:t,floorLightEnabled:r,floorLightIntensity:o=10,floorLightColor:i="#ffffff"}=e;return(0,n.jsxs)("group",{children:[(0,n.jsx)("ambientLight",{intensity:t}),r&&(0,n.jsxs)("group",{children:[(0,n.jsx)("pointLight",{position:E,intensity:o,color:i,distance:12,decay:1}),(0,n.jsx)("pointLight",{position:S,intensity:.7*o,color:i,distance:10,decay:1}),(0,n.jsx)("pointLight",{position:T,intensity:.7*o,color:i,distance:10,decay:1})]})]})};var D=r(12572),R=r(11241),F=r(51073),V=r(82567),$=r(77769),z=r.n($);let U=({isVisible:e,hasInteracted:t})=>{let r=(0,i.useRef)(null),o=(0,i.useRef)(null);return((0,i.useEffect)(()=>{r.current&&(t?(I.os.killTweensOf(r.current),o.current&&(o.current.kill(),o.current=null),I.os.to(r.current,{opacity:0,y:20,scale:.9,duration:.8,ease:"back.in(1.2)",delay:2})):e&&(I.os.set(r.current,{opacity:0,y:20,scale:.9}),I.os.to(r.current,{opacity:.8,y:0,scale:1,duration:.8,ease:"back.out(1.2)",delay:.5,onComplete:()=>{r.current&&!t&&(o.current=I.os.to(r.current,{scale:1.05,duration:1.5,ease:"expoScale.inOut",yoyo:!0,repeat:-1}))}})))},[e,t]),e)?(0,n.jsxs)(R.s,{ref:r,className:z()["scene-3d-indicator"],align:"center",children:[(0,n.jsx)(F.I,{icon:D.UFp}),(0,n.jsx)(V.E,{size:"T200",color:"light",children:"Interactive"})]}):null},H=({onLoaded:e,streamboxModelPath:t})=>{let{scene:r}=(0,a.p)(t);return(0,i.useEffect)(()=>{r.traverse(e=>{e instanceof c.Mesh&&(e.castShadow=!0,e.receiveShadow=!0)}),e()},[r]),(0,n.jsx)("primitive",{object:r,position:g.STREAMBOX_POSITION,rotation:g.STREAMBOX_ROTATION,scale:g.STREAMBOX_SCALE})};var G=r(61),q=r.n(G);let W=({onLoaded:e,tableModelPath:t})=>{let{scene:r}=(0,a.p)(t);return(0,i.useEffect)(()=>{r.traverse(e=>{e instanceof c.Mesh&&(e.receiveShadow=!0,e.castShadow=!0)}),e()},[r]),(0,n.jsx)("primitive",{object:r,position:g.TABLE_POSITION,scale:g.TABLE_SCALE})},Y=({assetUrl:e,shaderConfig:t,roomEnvironmentConfig:r,enableOrbitControls:p,enableAutoResetOrbitControls:m,enableHubModel:f,enableStreamboxModel:x,enableTvTable:v,disableHueLightAnimation:y,showStats:j=!1,cdnDomain:w})=>{let N=(0,i.useRef)(null),k={TV_MODEL_PATH:`https://${w}/f/278166/x/0d7f9dcc0c/c4d-tv-draco.gltf`,TABLE_MODEL_PATH:`https://${w}/f/278166/x/6ca8304cef/c4d-tv-stand-draco.gltf`,HUB_MODEL_PATH:`https://${w}/f/278166/x/ff28b8dc53/c4d-hub-5-draco.gltf`,STREAMBOX_MODEL_PATH:`https://${w}/f/278166/x/76a085229a/c4d-streambox-draco.gltf`};(0,i.useEffect)(()=>{a.p.preload(k.TV_MODEL_PATH),v&&a.p.preload(k.TABLE_MODEL_PATH),f&&v&&a.p.preload(k.HUB_MODEL_PATH),x&&v&&a.p.preload(k.STREAMBOX_MODEL_PATH)},[k,v,f,x]);let[E,S]=(0,i.useState)(!1),T=(0,_.G)(),O="ontouchstart"in window||navigator.maxTouchPoints>0,D=T&&!O,[R,F]=(0,i.useState)({isTVScreenLoaded:!1,isAssetLoaded:!1,isHubLoaded:!(f&&v),isStreamboxLoaded:!(x&&v),isTableLoaded:!v}),[V,$]=(0,i.useState)(!1),[z,G]=(0,i.useState)(!1),Y=(0,u.I)(),K=(0,o.useSearchParams)(),{responsiveConfig:Q}=(()=>{var e;let[t,r]=(0,i.useState)(()=>({width:window.innerWidth,height:window.innerHeight}));return(0,i.useEffect)(()=>{let e,t=()=>{r({width:window.innerWidth,height:window.innerHeight})},n=()=>{clearTimeout(e),e=setTimeout(t,100)};return window.addEventListener("resize",n),t(),()=>{window.removeEventListener("resize",n),clearTimeout(e)}},[]),{responsiveConfig:P[(e=t.width)>=1440?"DESKTOP":e>=1100?"TABLET":"MOBILE_LARGE"]}})(),Z=j&&(K.has("perf")||K.has("performance")),X=(0,i.useMemo)(()=>Y?Q.cameraPosition:Q.cinematicCameraPosition,[Y,Q.cameraPosition,Q.cinematicCameraPosition]),J=(0,i.useMemo)(()=>Math.min(window.devicePixelRatio||1,2),[]),ee=(0,i.useMemo)(()=>({camera:{position:X,fov:75,near:.1,far:100},dpr:J,gl:{alpha:!0,antialias:!0,powerPreference:"high-performance",toneMapping:c.ACESFilmicToneMapping,toneMappingExposure:1},shadows:!0,resize:{scroll:!1,debounce:{scroll:50,resize:0}}}),[X,J]),{isCompleted:et}=(({allAssetsLoaded:e,containerRef:t,onStartCameraAnimation:r,onStartVideo:n,prefersReducedMotion:o=!1})=>{let a=(0,i.useRef)(null),s=(0,i.useRef)(!1),l=(0,i.useRef)(!1);return(0,i.useEffect)(()=>(e&&t.current&&!s.current&&(s.current=!0,a.current=I.os.timeline(),o?(I.os.set(t.current,{opacity:1}),n(),l.current=!0):a.current.to(t.current,{opacity:1,duration:.5,ease:"power2.out"}).add(()=>{r()}
69,0).eventCallback("onComplete",()=>{n(),l.current=!0})),()=>{a.current&&a.current.kill()}),[e,t,o]),{timeline:a.current,isCompleted:l.current}})({allAssetsLoaded:(0,i.useMemo)(()=>R.isTVScreenLoaded&&R.isAssetLoaded&&R.isTableLoaded&&R.isHubLoaded&&R.isStreamboxLoaded,[R.isTVScreenLoaded,R.isAssetLoaded,R.isTableLoaded,R.isHubLoaded,R.isStreamboxLoaded]),containerRef:N,onStartCameraAnimation:()=>$(!0),onStartVideo:()=>S(!0),prefersReducedMotion:Y});return(0,n.jsxs)("div",{ref:N,className:q()["tv-hue-hero__canvas-container"],children:[(0,n.jsx)(l.Hl,{...ee,children:(0,n.jsxs)(d.A,{onError:e=>{window.dispatchEvent(new CustomEvent("gltf-load-error",{detail:{section:"TvHueHero Background",error:e,path:void 0}}))},children:[et&&(0,n.jsx)(b,{responsiveConfig:Q}),Z&&(0,n.jsx)(s.U,{}),p&&et&&!Y&&D&&(0,n.jsx)(h,{onInteractionStart:()=>G(!0),disableAutoReset:!m,responsiveConfig:Q}),!Y&&(0,n.jsx)(C,{isActive:V,onComplete:()=>$(!1),responsiveConfig:Q}),(0,n.jsx)(L,{config:r}),t?.enableHueLight&&(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)(B,{shaderConfig:t,prefersReducedMotion:Y,enableSpotlights:v,disableHueLightAnimation:y})}),(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsxs)("group",{position:g.SCENE_GROUP_POSITION,children:[(0,n.jsx)(A,{assetUrl:e,startPlayback:E,onTVScreenLoaded:()=>{F(e=>({...e,isTVScreenLoaded:!0}))},onAssetLoaded:()=>{F(e=>({...e,isAssetLoaded:!0}))},tvModelPath:k.TV_MODEL_PATH}),(0,n.jsxs)("group",{position:g.TABLE_GROUP_POSITION,children:[v&&(0,n.jsx)(W,{onLoaded:()=>{F(e=>({...e,isTableLoaded:!0}))},tableModelPath:k.TABLE_MODEL_PATH}),f&&v&&(0,n.jsx)(M,{onLoaded:()=>{F(e=>({...e,isHubLoaded:!0}))},hubModelPath:k.HUB_MODEL_PATH}),x&&v&&(0,n.jsx)(H,{onLoaded:()=>{F(e=>({...e,isStreamboxLoaded:!0}))},streamboxModelPath:k.STREAMBOX_MODEL_PATH})]})]})})]})}),(0,n.jsx)(U,{isVisible:et&&p&&!Y&&D,hasInteracted:z})]})}},33427:e=>{e.exports={container:"bundles-banner_container__D3QnK","inside-container":"bundles-banner_inside-container__wpcqv",fixed:"bundles-banner_fixed__o_c9k","bundles-banner--volt":"bundles-banner_bundles-banner--volt__hbS5Q","bundles-banner--black":"bundles-banner_bundles-banner--black___mnQ_","bundles-banner--vm_purple":"bundles-banner_bundles-banner--vm_purple__j_FG7","bundles-banner--tertiary":"bundles-banner_bundles-banner--tertiary__Z53yh","bundles-banner--red":"bundles-banner_bundles-banner--red__B1sgq","bundles-banner--primary":"bundles-banner_bundles-banner--primary__aniR_","bundles-banner--blue":"bundles-banner_bundles-banner--blue__uWLAQ","bundles-banner--info":"bundles-banner_bundles-banner--info__caYVn","bundles-banner--secondary":"bundles-banner_bundles-banner--secondary__1vwuw","bundles-banner--green":"bundles-banner_bundles-banner--green__7aKeb","bundles-banner--success":"bundles-banner_bundles-banner--success__oQ7mV","bundles-banner--onyx":"bundles-banner_bundles-banner--onyx__VQJNi","bundles-banner--warning":"bundles-banner_bundles-banner--warning__II57v","bundles-banner--danger":"bundles-banner_bundles-banner--danger__xp_NC","bundles-banner--dark":"bundles-banner_bundles-banner--dark__WlWtV","bundles-banner--light":"bundles-banner_bundles-banner--light___ZgDu"}},33720:e=>{e.exports={noWrapHeader:"dynamo-table_noWrapHeader__WR51f",scrollableTableWrapper:"dynamo-table_scrollableTableWrapper___Z6TM"}},34048:e=>{e.exports={"product-card-container":"compare-product-card_product-card-container__8c3td","product-card-title":"compare-product-card_product-card-title__3anpk","product-card":"compare-product-card_product-card__hfFXx","add-to-basket":"compare-product-card_add-to-basket__oO_YU","remove-bundle-text":"compare-product-card_remove-bundle-text__aUW_l","remove-bundle-link":"compare-product-card_remove-bundle-link__Amg6F","remove-bundle-img":"compare-product-card_remove-bundle-img__LlHYC","product-action-button":"compare-product-card_product-action-button__fXXui"}},34392:e=>{e.exports={container:"vm-byob-navigation_container__xbHkP","content-container":"vm-byob-navigation_content-container__VTllC"}},34860:(e,t,r)=>{"use strict";r.d(t,{ByobErrorWrapper:()=>_});var n=r(95155),o=r(12115),i=r(67526),a=r(5772),s=r(18401),l=r(5334),c=r(71689),d=r.n(c);let u=()=>(0,n.jsxs)("div",{className:d().errorContainer,children:[(0,n.jsx)(a.default,{src:l.A?.src,alt:"Error",className:d().errorImage,width:200,height:100}),(0,n.jsx)("h1",{className:d().errorHeading,children:"Something went wrong"}),(0,n.jsx)("p",{className:d().errorMessage,children:"We're sorry, but we couldn't load this page. Please try again."}),(0,n.jsx)(s.$,{variant:"primary",rounded:"xl",onClick:()=>{window.location.reload()},children:"Try again"})]}),_=({children:e})=>{let{hasCriticalFullPageError:t}=(0,o.useContext)(i.ByobContext);return t?(0,n.jsx)(u,{}):(0,n.jsx)(n.Fragment,{children:e})}},35228:(e,t,r)=>{"use strict";r.d(t,{o:()=>p});
69var n=r(95155),o=r(5772),i=r(12115),a=r(11241),s=r(82567),l=r(29722),c=r(29081),d=r(5620),u=r(42172),_=r.n(u);let p=({sale:e,dynamicFlashSaleText:t})=>{let r=(0,c.Og)("drawer-product-info-banner","drawer-product-info-banner-volt-icon","drawer-product-info-banner-text","drawer-product-info-banner-timer"),[u,p]=(0,i.useState)(0),{countdown_start_date:m,countdown_end_date:h}=e.content,b=u>0,{d:g,h:f,m:x,s:v}=(0,d.z)(u/1e3);if((0,i.useEffect)(()=>{if(m&&h){let e=Number(new Date(m).getTime()),t=Number(new Date(h).getTime()),r=setInterval(()=>{let r=Number(Date.now());t-r<0||e-r>0?p(0):p(t-r)},1e3);return()=>clearInterval(r)}p(0)},[m,h]),!t)return null;let y=e.content.banner_colour,j=(0,l.A)({"sale-banner":!0,[_()["sale-banner"]]:!0,"sale-banner--countdown":b,[_()["sale-banner--countdown"]]:b,[_()["sale-banner--primary"]]:"primary"===y,[_()["sale-banner--secondary"]]:"secondary"===y,[_()["sale-banner--volt"]]:"volt"===y,[_()["sale-banner--info"]]:"info"===y,[_()["sale-banner--onyx"]]:"onyx"===y,[_()["sale-banner--tertiary"]]:"tertiary"===y,[_()["sale-banner--success"]]:"success"===y,[_()["sale-banner--warning"]]:"warning"===y,[_()["sale-banner--danger"]]:"danger"===y,[_()["sale-banner--light"]]:"light"===y,[_()["sale-banner--dark"]]:"dark"===y}),w=b?"Ends in:":"",N=b?"T200":"T300";return(0,n.jsxs)(a.s,{direction:"column",gap:"xs",className:j,...r["drawer-product-info-banner"],children:[(0,n.jsxs)(a.s,{align:"center",gap:"sm",children:["volt"===y&&(0,n.jsx)(o.default,{unoptimized:!0,alt:"volt icon",src:"/vm-upper-funnel/assets/icons/volt-thunder.svg",width:16,height:16,...r["drawer-product-info-banner-volt-icon"]}),(0,n.jsx)(s.E,{size:N,color:"inherit",weight:"bold",children:(0,n.jsx)("span",{className:_()["sale-banner_text"],dangerouslySetInnerHTML:{__html:t},...r["drawer-product-info-banner-text"]})})]}),(0,n.jsx)(s.E,{as:"span",size:N,weight:"regular",color:"inherit",...r["drawer-product-info-banner-timer"],children:(0,n.jsxs)(a.s,{gap:"sm",children:[w&&(0,n.jsx)("span",{children:w}),u>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:g}),(0,n.jsx)("span",{className:_()["countdown-item"],children:f}),(0,n.jsx)("span",{className:_()["countdown-item"],children:x}),(0,n.jsx)("span",{className:_()["countdown-item"],children:v})]})]})})]})}},35375:e=>{e.exports={"student-splitter-container":"student-price-splitter_student-splitter-container__7Qshs","student-splitter-label":"student-price-splitter_student-splitter-label__hNPeK","student-splitter-label-icon":"student-price-splitter_student-splitter-label-icon__jbxH5","student-splitter-field":"student-price-splitter_student-splitter-field__01mJH"}},35504:e=>{e.exports={"grid-container":"vm-bundles-grid_grid-container__Z006q"}},35611:e=>{e.exports={pill:"info-item_pill__gVqNK",pill_description_button_link:"info-item_pill_description_button_link__zG1mn","pill--light":"info-item_pill--light__kRz_K","pill--price":"info-item_pill--price__at02X",pill_title:"info-item_pill_title__eQ4Tl",pill_title_button:"info-item_pill_title_button__QOmAY","pill_title_arrow-icon":"info-item_pill_title_arrow-icon__UHWnS","pill_title_button--expandable":"info-item_pill_title_button--expandable__dWnCd","pill_title_button--open":"info-item_pill_title_button--open__0lkto",pill_icon:"info-item_pill_icon__hTOLZ",pill_description:"info-item_pill_description___lnc9","pill_description--open":"info-item_pill_description--open__SyPZA"}},36103:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BundlesBanner:()=>p});var n=r(95155),o=r(12115),i=r(96653),a=r(54505),s=r(29722),l=r(16420),c=r(5423),d=r(98900),u=r(33427),_=r.n(u);let p=({text:e,content_modal_term:t,background_colour:r="",Content:u})=>{let p=(0,o.useRef)(null),[h,b]=(0,o.useState)(void 0),[g,f]=(0,o.useState)(!1),x=()=>{let e=p?.current?.parentElement?.getBoundingClientRect()?.top,t=p?.current?.getBoundingClientRect()?.top;!h&&e&&t&&b(t-e),h&&e&&(e+h-10<=0&&f(!0),e+h>=0&&f(!1))};(0,o.useEffect)(()=>(document.addEventListener("scroll",x),()=>{document.removeEventListener("scroll",x)}),[x,h]);let v=e.content?.[0]?.content?.map(e=>({content:[{content:[{...e}],type:"paragraph"}],type:"doc"}));return(0,o.useLayoutEffect)(()=>{let e=()=>{let e=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.setProperty("--scrollbar-width",`${e}px`)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,n.jsx)(a.e,{ref:p,className:(0,s.A)({"no-flex":!0,[_().fixed]:g,[_().container]:!0}
69),children:(0,n.jsx)(a.e,{className:(0,s.A)({[_()["inside-container"]]:!0,[_()["bundles-banner--primary"]]:"primary"===r,[_()["bundles-banner--secondary"]]:"secondary"===r,[_()["bundles-banner--volt"]]:"volt"===r,[_()["bundles-banner--info"]]:"info"===r,[_()["bundles-banner--onyx"]]:"onyx"===r,[_()["bundles-banner--tertiary"]]:"tertiary"===r,[_()["bundles-banner--success"]]:"success"===r,[_()["bundles-banner--warning"]]:"warning"===r,[_()["bundles-banner--danger"]]:"danger"===r,[_()["bundles-banner--light"]]:"light"===r,[_()["bundles-banner--dark"]]:"dark"===r}),children:v?.map(e=>{let r=e?.content?.[0]?.content?.[0],o=r?.text?.toLowerCase();if(r?.marks?.[0]?.type==="link"){if(t&&o?.includes(t.toString()))return(0,n.jsx)(c.o,{title:"About your contract",text:(0,n.jsx)(d.g,{duration:t,period:"months"}),children:r?.text},r?.text);if(u)return(0,n.jsx)(c.o,{title:u?.Title?.content?.[0]?.content?.[0]?.text,text:(0,n.jsx)(m,{content:u}),children:r?.text},r?.text)}return(0,n.jsx)(l.S,{document:e,StoryblokComponent:i.Dp},r?.text)})})})},m=({content:e})=>e?(0,n.jsx)("div",{className:_()["hybrid-fibre-modal"],children:e.Description&&(0,n.jsx)(l.S,{document:e.Description,StoryblokComponent:i.Dp})}):null},36167:e=>{e.exports={strip:"top-menu-svc_strip__uYESE",container:"top-menu-svc_container__PbNLG","not-serviceable":"top-menu-svc_not-serviceable__b5eDD",links:"top-menu-svc_links__Bsk3M","postcode-result":"top-menu-svc_postcode-result__fIvjY","postcode-result-text":"top-menu-svc_postcode-result-text__j7XRH",spacer:"top-menu-svc_spacer__5cYgH"}},36282:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});let n=(e,t)=>!e||t},37177:(e,t,r)=>{"use strict";r.d(t,{TopMenuSvcClient:()=>m});var n=r(95155),o=r(12115),i=r(94714),a=r(18401),s=r(51073),l=r(29722),c=r(85592),d=r(29081),u=r(19145),_=r(36167),p=r.n(_);let m=({children:e})=>{let t=(0,d.Og)("top-menu-svc","top-menu-svc-container","postcode-result","postcode-result-text","postcode-change-address"),{availability:r,address:_,resetAddress:m,setLoading:h}=(0,o.useContext)(c.s),b=!_?.postcode||!r||!(0,u.EH)(r);return b&&0===e.length?null:(0,n.jsx)("div",{className:(0,l.A)(p().strip,"header-top-menu"),...t["top-menu-svc"],"data-testid":"top-menu-svc",children:(0,n.jsxs)("div",{className:(0,l.A)(p().container,b&&p()["not-serviceable"]),...t["top-menu-svc-container"],children:[e.length>0&&(0,n.jsx)("span",{className:p().links,children:e}),!b&&(0,n.jsxs)("div",{className:p()["postcode-result"],"data-testid":"postcode-result",...t["postcode-result"],children:[(0,n.jsx)(s.I,{icon:i.Knd,size:"lg",color:"dark-grey"})," ",(0,n.jsxs)("p",{className:p()["postcode-result-text"],...t["postcode-result-text"],children:["Virgin Media is available at ",_?.postcode," ",(0,n.jsx)("span",{...t["postcode-change-address"],children:(0,n.jsx)(a.$,{className:"button-link",onClick:()=>{m(),h(!1)},children:"Change address"})})]})]}),e.length>0&&(0,n.jsx)("span",{className:p().spacer})]})})}},37226:e=>{e.exports={serviceability:"unavailable-service-notification_serviceability__j1pTE",serviceability__alert:"unavailable-service-notification_serviceability__alert__6XAUw"}},37515:(e,t,r)=>{"use strict";r.d(t,{AnimatedCarousel:()=>el});var n=r(95155),o=r(5772),i=r(12115);r(13445),r(5575);var a=r(42737),s=r(46241);let l=({responsiveConfig:e})=>{let{camera:t}=(0,s.C)();return(0,i.useEffect)(()=>{if(t&&"fov"in t){t.fov=e.fov;let[r,n,o]=e.cameraPosition;t.position.set(r,n,o);let[i,a,s]=e.cameraTarget;t.lookAt(i,a,s),t.updateProjectionMatrix()}},[t,e.fov,e.cameraPosition,e.cameraTarget]),null},c=e=>({TABLE_MODEL_PATH:`https://${e}/f/278166/x/6ca8304cef/c4d-tv-stand-draco.gltf`,HUB_MODEL_PATH:`https://${e}/f/278166/x/ff28b8dc53/c4d-hub-5-draco.gltf`,STREAMBOX_MODEL_PATH:`https://${e}/f/278166/x/76a085229a/c4d-streambox-draco.gltf`}),d=[0,-11,1],u=[18,12,10],_=[10.5,-5,-6],p=[10,12,8],m=[0,0,0],h=[8.5,-5.6,-6],b=[.2,.2,.2],g=[0,0,0],f=[0,-.5,0],x=[0,-7,1],v=[-12,-7,1],y=[12,-7,1],j="#ffffff",w={streambox:{position:[-5,2,-6],scale:[.8,.8,.8],rotation:[.12*Math.PI,-.15*Math.PI,0]},hub:{position:[-6,1,-5],scale:[22,25,25],rotation:[0,.26*Math.PI,0]}},N={MOBILE:{fov:65,cameraPosition:[0,.6,6.2],cameraTarget:[0,.5,0],isMobile:!0,objectTransforms:{imagePosition:{position:[-5,1.2,-3],scale:[.9,.9,.9],rotation:[0,0,0]},modelGroup:{position:[0,-.5,0],scale:[.7,.7,.7],rotation:[0,0,0]},deviceModels:{position:[-7.2,0,0],scale:[1,1,1],rotation:[0,0,0]},flareGroup:{position:[0,1,-1],scale:[.6,.6,.6],rotation:[0,0,0]},slideAsset:{position:[2.1,2.6,0],scale:[.42,.42,.42],rotation:[.1*Math.PI,0,0]}}},TABLET_SMALL:{fov:65,cameraPosition:[0,.6,6.2],cameraTarget:[0,0,0],isMobile:!1,objectTransforms:{imagePosition:{position:[-4,2.5,-3],scale:[1,1,1],rotation:[0,0,0]},modelGroup:{position:[0,0,1],scale:[.7,.7,.7],rotation:[0,0,0]},deviceModels:{position:[-4.5,0,0],scale:[1,1,1],rotation:[0,0,0]},flareGroup:{position:[0,1.5,-1],scale:[.7,.7,.7],rotation:[0,0,0]},slideAsset:{position:[0,1,0],scale:[.5,.5,.5],rotation:[0,0,0]}}},TABLET:{fov:65,cameraPosition:[0,.6,6.2],cameraTarget:[0,0,0],isMobile:!1,objectTransforms:{imagePosition:{position:[-5,1,-3],scale:[1.2,1.2,1.2],rotation:[0,0,0]},modelGroup:{position:[0,0,1],scale:[.7,.7,.7],rotation:[0,0,0]},deviceModels:{position:[-2,0,0],scale:[1,1,1],rotation:[0,0,0]},flareGroup:{position:[0,0,-1],scale:[.7,.7,.7],rotation:[0,0,0]},slideAsset:{position:[0,0,0],scale:[.5,.5,.5],rotation:[0,0,0]}}}
69,DESKTOP:{fov:65,cameraPosition:[0,.6,6.2],cameraTarget:[0,0,0],isMobile:!1,objectTransforms:{imagePosition:{position:[-5,1,-3],scale:[.85,.85,.85],rotation:[0,0,0]},modelGroup:{position:[0,0,1],scale:[1,1,1],rotation:[0,0,0]},deviceModels:{position:[-3,0,0],scale:[1,1,1],rotation:[0,0,0]},flareGroup:{position:[0,0,0],scale:[1,1,1],rotation:[0,0,0]},slideAsset:{position:[0,0,0],scale:[.8,.8,.8],rotation:[0,0,0]}}},DESKTOP_LARGE:{fov:65,cameraPosition:[0,.6,6.2],cameraTarget:[0,0,0],isMobile:!1,objectTransforms:{imagePosition:{position:[-5,1,-3],scale:[1,1,1],rotation:[0,0,0]},modelGroup:{position:[0,0,0],scale:[1,1,1],rotation:[0,0,0]},deviceModels:{position:[0,0,0],scale:[1,1,1],rotation:[0,0,0]},flareGroup:{position:[0,0,0],scale:[1,1,1],rotation:[0,0,0]},slideAsset:{position:[0,0,0],scale:[1,1,1],rotation:[0,0,0]}}}};var k=r(88930),E=r(29625);let S=({onLoaded:e,hubModelPath:t})=>{let{scene:r}=(0,k.p)(t);return(0,i.useEffect)(()=>{r.traverse(e=>{e instanceof E.Mesh&&(e.castShadow=!0,e.receiveShadow=!0)}),e()},[r]),(0,n.jsx)("primitive",{object:r.clone(),position:_,rotation:m,scale:p})};var T=r(65305);let C=({responsiveConfig:e})=>{let{scene:t}=(0,s.C)();return(0,i.useEffect)(()=>{t.traverse(t=>{if(t.userData.type===T.Fi.IMAGE_POSITION){let{position:r,scale:n,rotation:o}=e.objectTransforms.imagePosition;t.position.set(...r),t.scale.set(...n),t.rotation.set(...o)}if(t.userData.type===T.Fi.MODEL_GROUP){let{position:r,scale:n,rotation:o}=e.objectTransforms.modelGroup;t.position.set(...r),t.scale.set(...n),t.rotation.set(...o)}if(t.userData.type===T.Fi.DEVICE_MODELS){let{position:r,scale:n,rotation:o}=e.objectTransforms.deviceModels;t.position.set(...r),t.scale.set(...n),t.rotation.set(...o)}if(t.userData.type===T.Fi.FLARE_GROUP){let{position:r,scale:n,rotation:o}=e.objectTransforms.flareGroup;t.position.set(...r),t.scale.set(...n),t.rotation.set(...o)}if(t.userData.type===T.Fi.SLIDE_ASSET){let{position:r,scale:n,rotation:o}=e.objectTransforms.slideAsset;t.position.set(...r),t.scale.set(...n),t.rotation.set(...o)}})},[t,e.objectTransforms]),null},A=()=>(0,n.jsxs)("group",{children:[(0,n.jsx)("ambientLight",{color:"#ffffff",intensity:2.75}),(0,n.jsxs)("group",{children:[(0,n.jsx)("pointLight",{position:x,intensity:10,color:j,distance:12,decay:.6}),(0,n.jsx)("pointLight",{position:v,intensity:7,color:j,distance:12,decay:.6}),(0,n.jsx)("pointLight",{position:y,intensity:7,color:j,distance:12,decay:.6})]})]}),I=({onLoaded:e,streamboxModelPath:t})=>{let{scene:r}=(0,k.p)(t);return(0,i.useEffect)(()=>{r.traverse(e=>{e instanceof E.Mesh&&(e.castShadow=!0,e.receiveShadow=!0)}),e()},[r]),(0,n.jsx)("primitive",{object:r.clone(),position:h,rotation:g,scale:b})},P=[0,0,-9],M=["flare-purple-1-1","flare-red-circle-1-2","flare-red-1-3"],O=[0,0,-9],B=["flare-purple-2-1","flare-purple-2-2"],L=[0,0,-9],D=["flare-purple-3-1","flare-purple-3-2","flare-purple-3-3","flare-red-circle-3-4"],R={"flare-purple-1-1":{position:[-4,8.5,0],rotation:[0,0,1.13*Math.PI],width:13,height:5,lightIntensity:35,lightDistance:30,lightColor:"#8A36F1",flipY:!0},"flare-red-circle-1-2":{position:[1.6,6.5,0],rotation:[0,0,.5*Math.PI],width:2.2,height:2.2,lightIntensity:20,lightDistance:20,lightColor:"#FF6EFF"},"flare-red-1-3":{position:[7,8,.6],rotation:[0,0,1.3*Math.PI],width:7,height:5.5,lightIntensity:20,lightDistance:20,lightColor:"#FF0A0A"},"flare-purple-2-1":{position:[-5,10,0],rotation:[0,0,0],width:7,height:4,lightIntensity:25,lightDistance:20,lightColor:"#8A36F1",flipY:!0},"flare-purple-2-2":{position:[-3,8.5,.5],rotation:[0,0,0],width:11,height:6,lightIntensity:25,lightDistance:20,lightColor:"#FF6EFF",flipY:!0}},F={"flare-purple-1-1":{position:[-14.2,-.8,0],rotation:[0,0,1.13*Math.PI],width:18.2,height:6,lightIntensity:40,lightDistance:40,lightColor:"#8A36F1",flipY:!0},"flare-red-circle-1-2":{position:[6.5,-5.5,0],rotation:[0,0,.5*Math.PI],width:2.8,height:2.8,lightIntensity:25,lightDistance:25,lightColor:"#FF6EFF"},"flare-red-1-3":{position:[13.4,-4,.6],rotation:[0,0,1.3*Math.PI],width:10,height:7.7,lightIntensity:25,lightDistance:25,lightColor:"#FF0A0A"},"flare-purple-2-1":{position:[-10,2.5,0],rotation:[0,0,0],width:7,height:4,lightIntensity:30,lightDistance:25,lightColor:"#8A36F1",flipY:!0},"flare-purple-2-2":{position:[-8,1,.7],rotation:[0,0,0],width:11,height:6,lightIntensity:30,lightDistance:25,lightColor:"#FF6EFF",flipY:!0},"flare-purple-3-1":{position:[3,-5.2,-.2],rotation:[0,0,0],width:8,height:2.9,lightIntensity:20,lightDistance:35,lightColor:"#8A36F1",flipY:!0},"flare-purple-3-2":{position:[7,-6.8,.7],rotation:[0,0,0],width:10,height:4.8,lightIntensity:20,lightDistance:25,lightColor:"#FF6EFF",flipY:!0},"flare-purple-3-3":{position:[13,-2,0],rotation:[0,0,0],width:9.2,height:12.8,lightIntensity:35,lightDistance:25,lightColor:"#8A36F1",flipY:!0},"flare-red-circle-3-4":{position:[7,-6.2,.8],rotation:[0,0,1.2*Math.PI],width:.8,height:.8,lightIntensity:25,lightDistance:16,lightColor:"#FF0A0A"}},V=({flareId:e,intensity:t=1,cdnDomain:r,isMobile:o=!1})=>{let a=(0,i.useRef)(null),{scene:l}=(0,s.C)(),c=o&&("flare-purple-1-1"===e||"flare-red-circle-1-2"===e||"flare-red-1-3"===e||"flare-purple-2-1"===e||"flare-purple-2-2"===e)&&R[e]?R[e]:F[e],d={"flare-purple-1-1":`https://${r}/f/278166/1227x449/d058dea9c7/flare-purple-1-1.svg`,"flare-red-circle-1-2":`https://${r}
69/f/278166/165x165/5dceca0952/pink-red-circle.svg`,"flare-red-1-3":`https://${r}/f/278166/945x727/c6c2ad7da2/flare-red-1-3.svg`,"flare-purple-2-1":`https://${r}/f/278166/458x259/d7c2f76fe8/flare-purple-2-1.svg`,"flare-purple-2-2":`https://${r}/f/278166/713x410/3db2bc1c09/flare-purple-2-2.svg`,"flare-purple-3-1":`https://${r}/f/278166/330x150/62cfa38c20/flare-purple-3-1.svg`,"flare-purple-3-2":`https://${r}/f/278166/599x333/c5273b8c4d/flare-purple-3-2.svg`,"flare-purple-3-3":`https://${r}/f/278166/495x824/9c21372aa7/flare-purple-3-3.svg`,"flare-red-circle-3-4":`https://${r}/f/278166/165x165/5dceca0952/pink-red-circle.svg`}[e];(0,i.useEffect)(()=>{if(a.current){let e=new E.SpotLightHelper(a.current);return l.add(e),()=>{l.remove(e)}}},[l]);let u=(0,i.useMemo)(()=>{if(!d)return null;let e=new E.TextureLoader().load(d);return e.generateMipmaps=!1,e.minFilter=E.LinearFilter,e.magFilter=E.LinearFilter,e.wrapS=E.ClampToEdgeWrapping,e.wrapT=E.ClampToEdgeWrapping,e.flipY=c?.flipY??!1,e.colorSpace=E.SRGBColorSpace,e},[d,c?.flipY]),_=(0,i.useMemo)(()=>u?new E.MeshBasicMaterial({map:u,transparent:!0,side:E.DoubleSide,blending:E.NormalBlending,depthWrite:!1,toneMapped:!1}):null,[u]);return c&&d&&_?(0,n.jsxs)("group",{position:c.position,children:[(0,n.jsx)("pointLight",{position:[c.position[0],o?5:10,-2],color:c.lightColor,intensity:c.lightIntensity*t,distance:c.lightDistance,castShadow:!0,"shadow-mapSize-width":1024,"shadow-mapSize-height":1024,"shadow-camera-near":.1,"shadow-camera-far":50,decay:.1}),(0,n.jsx)("object3D",{ref:e=>{e&&a.current&&(a.current.target=e)},position:[0,3,-2]}),(0,n.jsx)("mesh",{material:_,rotation:c.rotation,children:(0,n.jsx)("planeGeometry",{args:[c.width,c.height]})})]}):null};var $=r(74552);let z=function({children:e,disableAnimations:t=!1}){let r=(0,i.useRef)(null),o=(0,i.useRef)((0,$.Q5)()*Math.PI*2),a=(0,i.useRef)(.2+.4*(0,$.Q5)()),l=(0,i.useRef)(.15+.3*(0,$.Q5)()),c=(0,i.useRef)(.15+.2*(0,$.Q5)()),d=(0,i.useRef)(.2+.3*(0,$.Q5)());return(0,s.D)(e=>{!t&&r.current&&(r.current.position.x=Math.sin((e.clock.elapsedTime+o.current)*a.current)*c.current,r.current.position.y=Math.cos((e.clock.elapsedTime+o.current)*l.current)*d.current)}),(0,n.jsx)("group",{ref:r,children:e})},U=(0,i.forwardRef)(({intensity:e=1,cdnDomain:t,currentFlare:r,isMobile:o=!1,onLoaded:a,disableAnimations:s=!1},l)=>((0,i.useEffect)(()=>{a?.()},[]),(0,n.jsxs)("group",{ref:l,name:"flare-lights-3d",userData:{type:"flareGroup"},children:[(0,n.jsx)("group",{name:"flare-group-1",position:P,visible:"flare_1"===r,children:M.map(r=>(0,n.jsx)(z,{disableAnimations:s,children:(0,n.jsx)(V,{flareId:r,intensity:e,cdnDomain:t,isMobile:o})},r))}),(0,n.jsx)("group",{name:"flare-group-2",position:O,visible:"flare_2"===r,children:B.map(r=>(0,n.jsx)(z,{disableAnimations:s,children:(0,n.jsx)(V,{flareId:r,intensity:e,cdnDomain:t,isMobile:o})},r))}),(0,n.jsx)("group",{name:"flare-group-3",position:L,visible:"flare_3"===r,children:D.map(r=>(0,n.jsx)(z,{disableAnimations:s,children:(0,n.jsx)(V,{flareId:r,intensity:e,cdnDomain:t,isMobile:o})},r))})]})));U.displayName="SvgFlareLights";let H=({onLoaded:e,tableModelPath:t})=>{let{scene:r}=(0,k.p)(t);return(0,i.useEffect)(()=>{r.traverse(e=>{e instanceof E.Mesh&&(e.receiveShadow=!0,e.castShadow=!0)}),e()},[r]),(0,n.jsx)("primitive",{object:r.clone(),position:d,scale:u})};var G=r(86275),q=r(45911),W=r(80501),Y=r(20602),K=r(24170);let Q=(0,i.forwardRef)(({imageUrl:e,position:t=[-5,1,-3],scale:r=[1,1,1],rotation:o=[0,0,0]},i)=>e?(0,n.jsx)(Z,{imageUrl:e,position:t,scale:r,rotation:o,ref:i}):null),Z=(0,i.forwardRef)(({imageUrl:e,position:t,scale:r,rotation:o},i)=>{let a=(0,Y.zo)(e);a.generateMipmaps=!1,a.minFilter=E.LinearFilter,a.magFilter=E.LinearFilter;let s=a.image?a.image.width/a.image.height:1;return(0,n.jsx)(K.Q,{position:t,scale:r,rotation:o,userData:{type:"imagePosition"},children:(0,n.jsx)("group",{ref:e=>{"function"==typeof i?i(e):i&&(i.current=e)},children:(0,n.jsxs)("mesh",{scale:[4,4/s,1],children:[(0,n.jsx)("planeGeometry",{args:[1.7,1.7]}),(0,n.jsx)("meshBasicMaterial",{map:a,transparent:!0,toneMapped:!1})]})})})});Q.displayName="ImagePlane",Z.displayName="ImagePlaneContent";let X=({onLoaded:e,hubModelPath:t,position:r,scale:o,rotation:a,enableRotation:l=!0})=>{let{scene:c}=(0,k.p)(t),d=(0,i.useRef)(null);if((0,s.D)((e,t)=>{d.current&&l&&(d.current.rotation.y+=.2*t)}),(0,i.useEffect)(()=>{c&&e()},[c,e]),!c)return null;let u=c.clone();return u.traverse(e=>{e.isMesh&&(e.castShadow=!1,e.receiveShadow=!1)}),(0,n.jsx)("primitive",{ref:d,object:u,position:r,scale:o,rotation:a})},J=({onLoaded:e,streamboxModelPath:t,position:r,scale:o,rotation:a,enableRotation:l=!0})=>{let{scene:c}=(0,k.p)(t),d=(0,i.useRef)(null);if((0,s.D)((e,t)=>{d.current&&l&&(d.current.rotation.y+=.2*t)}),(0,i.useEffect)(()=>{c&&e()},[c,e]),!c)return null;let u=c.clone();return u.traverse(e=>{e.isMesh&&(e.castShadow=!1,e.receiveShadow=!1)}),(0,n.jsx)("primitive",{ref:d,object:u,position:r,scale:o,rotation:a})},ee=({objectType:e,cdnDomain:t,enableRotation:r=!0})=>{let o=c(t);if(!e||"none"===e)return null;if("streambox"===e){let e=w.streambox;return(0,n.jsx)(J,{onLoaded:()=>{},streamboxModelPath:o.STREAMBOX_MODEL_PATH,position:e.position,scale:e.scale,rotation:e.rotation,enableRotation:r})}if("hub"===e){let e=w.hub;return(0,n.jsx)(X,{onLoaded:()=>{},hubModelPath:o.HUB_MODEL_PATH,position:e.position,scale:e.scale,rotation:e.rotation,enableRotation:r})}return null},et=(0,i.forwardRef)(({current3DObject:e,currentImage:t,cdnDomain:r,enableSlideModelRotation:o=!0,imagePosition:i,imageScale:a,imageRotation:s,onImagePlaneRef:l},c)=>(0,n.jsx)("group",{ref:c,children:e&&"none"!==e?(0,n.jsx)(ee,{objectType:e,cdnDomain:r,enableRotation:o}):(0,n.jsx)(Q,{ref:e=>l?.(e),imageUrl:t,position:i,scale:a,rotation:s})}));et.displayName="SlideAsset";var er=r(23382),en=r.n(er);let eo=({cdnDomain:e,enableTable:t=!0,enableHub:r=!1,enableStreambox:o=!1,enableSlideModelRotation:a=!0,currentImage:s,currentFlare:d,current3DObject:u,className:_="",disableAnimations:p=!1,onAnimationRefs:m,onModelsLoaded:h})=>{let b=(0,i.useRef)(null),g=(0,i.useRef)(null),x=(0,i.useRef)(null),v=(0,i.useRef)(null),[y,j]=(0,i.useState)({isTableLoaded:!t,isHubLoaded:!(r&&t),isStreamboxLoaded:!(o&&t),isFlaresLoaded:!1}),w=(0,i.useMemo)(()=>y.isTableLoaded&&y.isHubLoaded&&y.isStreamboxLoaded&&y.isFlaresLoaded,[
69y.isTableLoaded,y.isHubLoaded,y.isStreamboxLoaded,y.isFlaresLoaded]);(0,i.useEffect)(()=>{h?.(w),w&&b.current&&q.os.to(b.current,{opacity:1,duration:.5,ease:"power2.out",delay:.5})},[w,h]);let T=c(e),{responsiveConfig:P}=(()=>{var e;let[t,r]=(0,i.useState)(()=>({width:window.innerWidth,height:window.innerHeight}));return(0,i.useEffect)(()=>{let e,t=()=>{r({width:window.innerWidth,height:window.innerHeight})},n=()=>{clearTimeout(e),e=setTimeout(t,100)};return window.addEventListener("resize",n),t(),()=>{window.removeEventListener("resize",n),clearTimeout(e)}},[]),{responsiveConfig:N[(e=t.width)>=1470?"DESKTOP_LARGE":e>=1200?"DESKTOP":e>=1110?"TABLET":e>=768?"TABLET_SMALL":"MOBILE"]}})(),M=(0,i.useCallback)(e=>{v.current=e,m&&m({flareGroupRef:g,slideAssetRef:x,imagePlaneRef:v})},[m,g,x,v]);(0,i.useEffect)(()=>{m&&m({flareGroupRef:g,slideAssetRef:x,imagePlaneRef:v})},[m,s,u,d]),(0,i.useEffect)(()=>{t&&k.p.preload(T.TABLE_MODEL_PATH),r&&k.p.preload(T.HUB_MODEL_PATH),o&&k.p.preload(T.STREAMBOX_MODEL_PATH)},[T,t,r,o]);let O=(0,i.useMemo)(()=>Math.min(window.devicePixelRatio||1,2),[]),B=(0,i.useMemo)(()=>({camera:{position:P.cameraPosition,fov:P.fov,near:.1,far:100},dpr:O,gl:{alpha:!0,antialias:!0,powerPreference:"high-performance",toneMapping:E.ACESFilmicToneMapping,toneMappingExposure:1},shadows:!0,resize:{scroll:!1,debounce:{scroll:50,resize:0}}}),[O,P.cameraPosition,P.fov]);return(0,n.jsx)("div",{ref:b,className:`${en()["webgl-background"]} ${_}`,style:{opacity:0},children:(0,n.jsx)(G.Hl,{...B,children:(0,n.jsxs)(W.A,{onError:e=>{window.dispatchEvent(new CustomEvent("gltf-load-error",{detail:{section:"Equipment Backgroun
69d",error:e,path:void 0}}))},children:[(0,n.jsx)(l,{responsiveConfig:P}),(0,n.jsx)(C,{responsiveConfig:P}),(0,n.jsx)(A,{}),(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)("group",{position:P.objectTransforms.flareGroup.position,scale:P.objectTransforms.flareGroup.scale,rotation:P.objectTransforms.flareGroup.rotation,children:(0,n.jsx)(U,{ref:g,cdnDomain:e,currentFlare:d,isMobile:P.isMobile,disableAnimations:p,onLoaded:()=>{j(e=>({...e,isFlaresLoaded:!0}))}})})}),(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)("group",{position:P.objectTransforms.modelGroup.position,scale:P.objectTransforms.modelGroup.scale,rotation:P.objectTransforms.modelGroup.rotation,userData:{type:"modelGroup"},children:(0,n.jsxs)("group",{position:f,children:[t&&(0,n.jsx)(H,{onLoaded:()=>{j(e=>({...e,isTableLoaded:!0}))},tableModelPath:T.TABLE_MODEL_PATH}),(0,n.jsxs)("group",{position:P.objectTransforms.deviceModels.position,scale:P.objectTransforms.deviceModels.scale,rotation:P.objectTransforms.deviceModels.rotation,userData:{type:"deviceModels"},children:[r&&t&&(0,n.jsx)(S,{onLoaded:()=>{j(e=>({...e,isHubLoaded:!0}))},hubModelPath:T.HUB_MODEL_PATH}),o&&t&&(0,n.jsx)(I,{onLoaded:()=>{j(e=>({...e,isStreamboxLoaded:!0}))},streamboxModelPath:T.STREAMBOX_MODEL_PATH})]})]})})}),(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)("group",{position:P.objectTransforms.slideAsset.position,scale:P.objectTransforms.slideAsset.scale,rotation:P.objectTransforms.slideAsset.rotation,userData:{type:"slideAsset"},children:(0,n.jsx)(et,{ref:x,current3DObject:u,currentImage:s,cdnDomain:e,enableSlideModelRotation:a,imagePosition:P.objectTransforms.imagePosition.position,imageScale:P.objectTransforms.imagePosition.scale,imageRotation:P.objectTransforms.imagePosition.rotation,onImagePlaneRef:M})})})]})})})};var ei=r(74808),ea=r(42983),es=r.n(ea);let el=({slides:e,slideImages:t,slideFlares:r,slide3DObjects:s,autoplay:l=!1,autoplayDelay:c=5e3,loop:d=!0,transitionSpeed:u=600,disableAnimations:_=!1,enableTable:p=!1,enableHub:m=!1,enableStreambox:h=!1,enableSlideModelRotation:b=!0,cdnDomain:g,withTableClass:f=""})=>{let x,v,y,j,w,N,k,E,S,[T,C]=(0,i.useState)(0),[A,I]=(0,i.useState)(!1),P=(0,i.useRef)(null),M=(0,i.useRef)(0),O=(0,i.useRef)(!0),B=(0,ei.I)(),L=_||B,{registerWebGLRefs:D,animateSlideTransition:R,animateInitialEntrance:F,initializeSlideElements:V,animateTextEnter:$,animateTextExit:z}=(x=(0,i.useRef)(null),v=(0,i.useRef)({}),y=(0,i.useCallback)(e=>{v.current=e},[]),j=(0,i.useCallback)((e=!0)=>{let t=v.current.flareGroupRef?.current;if(!t)return null;q.os.set(t.rotation,{z:e?.5*Math.PI:-(.5*Math.PI)}),q.os.set(t.position,{z:-6});let r=q.os.timeline();return r.to(t.rotation,{z:0,duration:.8,ease:"power2.out"},0).to(t.position,{z:0,duration:.8,ease:"power2.out"},0),r},[]),w=(0,i.useCallback)(()=>{let e=v.current.slideAssetRef?.current;if(!e)return null;q.os.set(e.scale,{x:0,y:0,z:0}),q.os.set(e.rotation,{y:-(.3*Math.PI)}),e.traverse(e=>{e.material&&(e.material.opacity=0)});let t=q.os.timeline();return t.to(e.scale,{x:1,y:1,z:1,duration:.8,ease:"power2.out"},0),t.to(e.rotation,{y:0,duration:.6,ease:"power2.out"},0),e.traverse(e=>{e.material&&t.to(e.material,{opacity:1,duration:.8,ease:"power2.out"},0)}),t},[]),N=(0,i.useCallback)(()=>{let e=v.current.slideAssetRef?.current;if(!e)return null;q.os.set(e.scale,{x:0,y:0,z:0}),q.os.set(e.rotation,{y:-(.3*Math.PI)}),e.traverse(e=>{e.material&&(e.material.opacity=0)});let t=q.os.timeline();return t.to(e.scale,{x:1,y:1,z:1,duration:.8,ease:"power2.out"},0),t.to(e.rotation,{y:0,duration:.6,ease:"power2.out"},0),e.traverse(e=>{e.material&&t.to(e.material,{opacity:1,duration:.8,ease:"power2.out"},0)}),t},[]),k=(0,i.useCallback)(e=>{let t=e.querySelectorAll('[class*="text-content"] > *, [class*="cta-container"]');return 0===t.length?null:q.os.to(t,{opacity:0,y:-20,scale:.95,duration:.3,stagger:.05,ease:"power2.in"})},[]),E=(0,i.useCallback)(e=>{let t=e.querySelectorAll('[class*="text-content"] > *, [class*="cta-container"]');return 0===t.length?null:q.os.fromTo(t,{y:30,opacity:0,scale:.95},{y:0,opacity:1,scale:1,duration:.6,stagger:.15,ease:"power2.out",delay:.2})},[]),S=(0,i.useCallback)((e=!0,t=!1,r=!1,n=!1)=>{x.current&&x.current.kill();let o=q.os.timeline();if(x.current=o,t){let t=j(e);t&&o.add(t,0)}if(r){let e=w();e&&o.add(e,.1)}if(n){let e=N();e&&o.add(e,.15)}return o},[j,w,N,E]),{registerWebGLRefs:y,animateSlideTransition:S,animateInitialEntrance:(0,i.useCallback)((e=!1,t=!1,r=!1)=>{let n=q.os.timeline();if(e){let e=j(!0);e&&n.add(e,0)}if(t){let e=w();e&&n.add(e,.2)}if(r){let e=N();e&&n.add(e,.3)}return n},[j,w,N,E]),animateTextEnter:E,animateTextExit:k,initializeSlideElements:(0,i.useCallback)(e=>{let t=e.querySelectorAll('[class*="text-content"] > *, [class*="cta-container"]');t.length>0&&q.os.set(t,{opacity:0}
69)},[])}),U=(0,i.useCallback)((t,r)=>{if(e.length<=1)return!0;let n=r-t;return Math.abs(n)>1?n<0:n>0},[e.length]),H=(0,i.useCallback)(()=>L,[L]),G=(0,i.useCallback)(()=>{P.current&&P.current.querySelectorAll(".swiper-slide").forEach(e=>{let t=e.classList.contains("swiper-slide-active");e.querySelectorAll("a, button, input, select, textarea").forEach(e=>{e.setAttribute("tabindex",t?"0":"-1")})})},[]),W=(0,i.useCallback)(e=>{if(!P.current)return;let n=M.current,o=e.realIndex??e.activeIndex;if(n===o)return;let i=U(n,o);H()||P.current.querySelectorAll(".swiper-slide").forEach(e=>{z(e)}),setTimeout(()=>{if(C(o),!H()){let e=!!r[o],n=!!(s[o]&&"none"!==s[o]),a=!!(t[o]&&!n);R(i,e,n,a)}},100),H()||setTimeout(()=>{if(!P.current)return;let e=P.current.querySelector(".swiper-slide-active");e&&$(e)},400),setTimeout(()=>{G()},50),M.current=o},[H,U,r,s,t,R,$,z,G]),Y=(0,i.useCallback)(e=>{D({flareGroupRef:e.flareGroupRef,slideAssetRef:e.slideAssetRef,imagePlaneRef:e.imagePlaneRef})},[D]);(0,i.useEffect)(()=>{let e=P.current?.querySelectorAll(".swiper-slide")||[];H()?e.forEach(e=>{e.querySelectorAll('[class*="text-content"] > *, [class*="cta-container"]').forEach(e=>{e.style.opacity="1"})}):e.forEach(e=>{V(e)}),setTimeout(()=>{G()},100)},[H,V,G]),(0,i.useEffect)(()=>{if(H()||!A)return;let e=setTimeout(()=>{let e=!!r[0],n=!!(s[0]&&"none"!==s[0]),o=!!(t[0]&&!n);F(e,n,o),O.current=!1},100),n=setTimeout(()=>{let e=P.current?.querySelector(".swiper-slide-active");e&&!H()&&$(e)},400);return()=>{clearTimeout(n),clearTimeout(e)}},[H,A,r,s,t,F,$]);let K=L?"":"webgl-animations-enabled";return(0,n.jsxs)("div",{ref:P,className:`${es()["animated-carousel"]} ${f} ${K}`,children:[(0,n.jsx)(eo,{cdnDomain:g,enableTable:p,enableHub:m,enableStreambox:h,enableSlideModelRotation:b,currentImage:t[T],currentFlare:r[T],current3DObject:s[T],className:es()["webgl-background-container"],disableAnimations:L,onAnimationRefs:Y,onModelsLoaded:I}),(0,n.jsxs)("div",{className:es()["carousel-content"],children:[(0,n.jsx)("button",{className:`${es().carousel__button} ${es()["carousel__button--prev"]}`,"aria-label":"Previous slide",children:(0,n.jsx)(o.default,{unoptimized:!0,alt:"Left chevron icon",src:"/vm-upper-funnel/assets/icons/chevron-left.svg",width:11,height:19})}),(0,n.jsx)(a.Carousel,{className:es()["equipment-enhanced-swiper"],onSlideChange:W,slides:e,spaceBetween:500,centeredSlides:!0,updateBreakpointsDynamically:!0,speed:u,autoplay:!!l&&{delay:c,disableOnInteraction:!0},slidesPerView:1.1,loop:d,navigation:{nextEl:`.${es()["carousel__button--next"]}`,prevEl:`.${es()["carousel__button--prev"]}`},pagination:{clickable:!0},threshold:50,longSwipesRatio:.3,longSwipesMs:150,roundLengths:!0,setWrapperSize:!0,freeMode:!0,touchReleaseOnEdges:!0,a11y:{enabled:!0}}),(0,n.jsx)("button",{className:`${es().carousel__button} ${es()["carousel__button--next"]}`,"aria-label":"Next slide",children:(0,n.jsx)(o.default,{unoptimized:!0,alt:"Right chevron icon",src:"/vm-upper-funnel/assets/icons/chevron-right.svg",width:11,height:19})})]})]})}},37955:e=>{e.exports={"hero-banner--layout-full":"hero_hero-banner--layout-full__liAhU","hero-banner__container--layout-split":"hero_hero-banner__container--layout-split__OWKCe","hero-banner__container--children-wrapper":"hero_hero-banner__container--children-wrapper__AnCtH","hero-banner__container--split-image":"hero_hero-banner__container--split-image__0Qhqz","hero-banner--layout-split":"hero_hero-banner--layout-split__zQuZi","hero-banner__container--split-content":"hero_hero-banner__container--split-content__NdvSm","uf-hero-banner":"hero_uf-hero-banner__n24J_","hero-banner--bottom-curve":"hero_hero-banner--bottom-curve__C2RF4","uf-hero-banner__container":"hero_uf-hero-banner__container__nAHXD","hero-banner--background-grey":"hero_hero-banner--background-grey__gbuIk","hero-banner--under-navigation":"hero_hero-banner--under-navigation__oeIYd"}},38198:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(12115),o=r(89635);let i=e=>{let t=e?.width??768,[r,i]=(0,n.useState)(!1);return(0,o.s)(()=>{i(window.innerWidth>=t)}),r}},39529:e=>{e.exports={"sidenav-container":"side-nav_sidenav-container__eCcxg","uf-sidenav__close":"side-nav_uf-sidenav__close__ir8FK"}},40077:e=>{e.exports={"product-sort":"product-filter-checkbox_product-sort__7wktZ","product-sort__container":"product-filter-checkbox_product-sort__container__F3bde","product-sort__button":"product-filter-checkbox_product-sort__button__C_hp2","product-sort__button-selected":"product-filter-checkbox_product-sort__button-selected__5wzJk","product-sort__button-icon":"product-filter-checkbox_product-sort__button-icon__5s3qg","product-sort__wrapper":"product-filter-checkbox_product-sort__wrapper__DQfnn","product-sort__dropdown":"product-filter-checkbox_product-sort__dropdown__vq6v6","product-sort__dropdown-card":"product-filter-checkbox_product-sort__dropdown-card__pia33","product-sort__dropdown-card-input":"product-filter-checkbox_product-sort__dropdown-card-input__dyS7k","product-sort__dropdown-label":"product-filter-checkbox_product-sort__dropdown-label__0Iyw2","fade-in":"product-filter-checkbox_fade-in__t2DbG"}},40217:(e,t,r)=>{"use strict";r.d(t,{CdnProvider:()=>a,p:()=>s});var n=r(95155),o=r(12115);let i=(0,o.createContext)(null);function a({children:e,cdnDomain:t}){return(0,n.jsx)(i.Provider,{value:t,children:e})}function s(){return(0,o.useContext)(i)}},40281:(e,t,r)=>{"use strict";r.d(t,{P:()=>m});var n=r(95155),o=r(5772),i=r(11241),a=r(29722),s=r(65305),l=r(29081),c=r(44705),d=r(67270),u=r(17373),_=r(70154),p=r.n(_);let m=({background:e,photos:t})=>{let r=(0,l.Og)("product-card-bundle-image","product-card-flare-image","product-card-type-images"),_=t.filter(e=>e.productType&&e.productType!==s.po.NONPRODUCT),m=_.find(e=>e.productType===s.po.TV)?`photos-${_.length}-tv`:`photos-${_.length}`,h=(0,c.u)(e?.filename?.toString()),b=(0,d.G)(e),g=(0,u.Z)("portrait");return(0,n.jsxs)(i.s,{...r["product-card-bundle-image"],wrap:"wrap",className:p()["media-bundle"],justify:"around",align:"center",children:[(0,n.jsx)(i.s,{className:`${p()["flare-container"]} ${p()[h||""]}`,children:b&&(0,n.jsx)(o.default,{alt:b.alt,src:b.src,fill:!0,...r["product-card-flare-image"]})}),(0,n.jsx)(i.s,{id:"text",justify:"center",align:"center",className:(0,a.A)({[p().photos]:!0,[p()[m]]:!0}),...r["product-card-type-images"],children:_.map(e=>(0,n.jsx)(o.default,{sizes:g[e.productType],className:p()[e.productType],alt:e.alt||"missing",src:e.src,width:e.width,height:e.height,...(0,l.sE)("product-card-type-image",null)},e.src?.toString()||""))})]})}},40373:e=>{e.exports={wrapper:"vm-byob-sticky-cta-wrapper_wrapper__wT777",sticky:"vm-byob-sticky-cta-wrapper_sticky__sfCUI"}},40531:e=>{e.exports={carousel:"squishy_carousel__Yweqd",carousel__swiper:"squishy_carousel__swiper__tPaSC","carousel__swiper--medium":"squishy_carousel__swiper--medium__WtSOv","carousel__swiper--large":"squishy_carousel__swiper--large__AI3Bn","carousel__slide-content-wrapper":"squishy_carousel__slide-content-wrapper___5l4K",carousel__img:"squishy_carousel__img__4EwQs",carousel__overlay:"squishy_carousel__overlay__C9_Z4","carousel__overlay--inactive":"squishy_carousel__overlay--inactive__7SkYh","carousel__overlay--active":"squishy_carousel__overlay--active__fs8N5",carousel__content:"squishy_carousel__content__YlBnz",carousel__text:"squishy_carousel__text__86ft_","carousel__text--title":"squishy_carousel__text--title__Leegq","carousel__channel-logo":"squishy_carousel__channel-logo__kAoeo",carousel__button:"squishy_carousel__button__lntwx","carousel__button--next":"squishy_carousel__button--next___TLdi","carousel__button--prev":"squishy_carousel__button--prev__2si5k",carousel__pagination:"squishy_carousel__pagination__sY2zD",carousel__page:"squishy_carousel__page__qKk67","carousel__page--active":"squishy_carousel__page--active__aTHPB","carousel--squishy-peek":"squishy_carousel--squishy-peek__mqJGT","carousel--contained":"squishy_carousel--contained__I8gIc","carousel--edge-to-edge":"squishy_carousel--edge-to-edge__o_5CT","carousel-wrapper":"squishy_carousel-wrapper__i3yll"}},40592:e=>{e.exports={container:"vm-upper-funnel-payments-carousel_container__63KcM",carousel:"vm-upper-funnel-payments-carousel_carousel__YUGOj",slide__content:"vm-upper-funnel-payments-carousel_slide__content__KUiSw","slide__content--back":"vm-upper-funnel-payments-carousel_slide__content--back__H9NdP","slide__content--purple":"vm-upper-funnel-payments-carousel_slide__content--purple__cyEZt","slide__content--red":"vm-upper-funnel-payments-carousel_slide__content--red__fyiT6","slide__content--black":"vm-upper-funnel-payments-carousel_slide__content--black__GK0PP","slide__content--blue":"vm-upper-funnel-payments-carousel_slide__content--blue__879PR","slide__content--orange":"vm-upper-funnel-payments-carousel_slide__content--orange__qLpR_",slide__slot:"vm-upper-funnel-payments-carousel_slide__slot__2kWIW","slide__slot--top-left":"vm-upper-funnel-payments-carousel_slide__slot--top-left__s65e3","slide__slot--top-right":"vm-upper-funnel-payments-carousel_slide__slot--top-right__bmDI1","slide__slot--bottom-left":"vm-upper-funnel-payments-carousel_slide__slot--bottom-left__3eZUf","slide__slot--bottom-right":"vm-upper-funnel-payments-carousel_slide__slot--bottom-right__7jHYA",slide__text:"vm-upper-funnel-payments-carousel_slide__text__G_y6R",logos:"vm-upper-funnel-payments-carousel_logos__rSqn9",flares:"vm-upper-funnel-payments-carousel_flares__OV9HK",flares__flare:"vm-upper-funnel-payments-carousel_flares__flare__qYgsi","flares__flare--0":"vm-upper-funnel-payments-carousel_flares__flare--0__yjVoz","flares__flare--1":"vm-upper-funnel-payments-carousel_flares__flare--1__PIzTf"}},41569:(e,t,r)=>{"use strict";r.d(t,{Wk:()=>o,_i:()=>n});let n={productType:"productType",budget:"budget",speed:"speed",tvChannel:"tvChannel"},o={broadband_only:"Broadband Only",tv_stream_broadband:"TV & Broadband",broadband_sim:"Broadband & SIM",broadband_phone:"Broadband & Phone",existing_o2_customer:"Existing O2 customer",phone_only:"Phone Only",broadband_with_netflix:"Broadband & Netflix"}},41581:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(95155),o=r(5772),i=r(98500),a=r.n(i),s=r(18401),l=r(51073),c=r(29243),d=r(29722),u=r(83517),_=r.n(u);
69let p=({blok:{Copy:e,Title:t,CTA_Link:r,BackgroundColor:i="transparent",TextColor:u="000000",Image:p,...m}})=>{let h=(0,c.ZQ)(p),b=`${Number(h?.width)} / ${Number(h?.height)}`,g={"--background-color":`#${i}`,"--text-color":`#${u}`};return(0,n.jsx)(c.Wt,{blok:m,children:(0,n.jsxs)(a(),{className:(0,d.A)(_()["navigation-promo"]),"data-cy":"navigation-promo",style:g,href:`/${r?.[0]?.link?.cached_url}`,children:[(0,n.jsxs)("div",{className:_()["navigation-promo__content"],children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:_()["navigation-promo__content-title"],"data-cy":"navigation-promo-content-title",children:t}),(0,n.jsx)("p",{className:_()["navigation-promo__content-copy"],"data-cy":"navigation-promo-content-copy",children:e})]}),(0,n.jsx)("div",{className:_()["navigation-promo__content-action"],children:r?.map(e=>(0,n.jsx)(s.$,{asChild:!0,icon:e.icon_new&&(0,n.jsx)(l.I,{icon:e.icon_new}),iconPosition:e.icon_position||void 0,small:e.small,decoration:"transparent",children:(0,n.jsx)("span",{children:e.title})},e._uid))})]}),(0,n.jsx)("div",{style:{"--aspect-ratio":b},className:_()["navigation-promo__image"],children:h&&(0,n.jsx)(o.default,{"data-testid":"image","data-cy":"navigation-banner-image",src:h.src,alt:h.alt,width:h.width,height:h.height,sizes:"60vw",style:{objectFit:"contain"}})})]})})}},41768:e=>{e.exports={"media-bundle":"media-bundle_media-bundle__Sl9yl","flare-container":"media-bundle_flare-container__4jtc2",photos:"media-bundle_photos__ekRjm",m50_flare:"media-bundle_m50_flare__diMSU","photos-1":"media-bundle_photos-1__0gevD",manual:"media-bundle_manual__xPRiY","photos-3-tv":"media-bundle_photos-3-tv__cA4gT",sim:"media-bundle_sim__KO9Z0","photos-3":"media-bundle_photos-3__yMOCW",broadband:"media-bundle_broadband__YyUJC","photos-2-tv":"media-bundle_photos-2-tv___XhUN",tv:"media-bundle_tv__0cuZX",landline:"media-bundle_landline__aMXNd","photos-2":"media-bundle_photos-2__Uu1s_"}},41780:e=>{e.exports={pill:"info-item_pill__LV_n3","pill--price":"info-item_pill--price__4kd_s",pill_title:"info-item_pill_title__iK_PG",pill_title_button:"info-item_pill_title_button__JChhq","pill_title_arrow-icon":"info-item_pill_title_arrow-icon__DESsS","pill_title_button--expandable":"info-item_pill_title_button--expandable__kX_rD","pill_title_button--open":"info-item_pill_title_button--open__ciako",pill_icon:"info-item_pill_icon__MVL9Z",pill_description:"info-item_pill_description__g0g2q","pill_description--open":"info-item_pill_description--open__QKmWy",pill_description_button_link:"info-item_pill_description_button_link__GmW_h"}},42126:(e,t,r)=>{"use strict";r.d(t,{AA:()=>n.ProductCard,Dg:()=>s.P,F7:()=>a.F,S_:()=>o.P,zY:()=>i.g});var n=r(42776),o=r(2531),i=r(2068);r(91369);var a=r(5344),s=r(1684)},42172:e=>{e.exports={"sale-banner":"sale-banner_sale-banner__0H_gO","sale-banner_text":"sale-banner_sale-banner_text__gy_t_","sale-banner--countdown":"sale-banner_sale-banner--countdown__oAEY2","sale-banner--volt":"sale-banner_sale-banner--volt__TcD4L","sale-banner--black":"sale-banner_sale-banner--black__tyupD","sale-banner--vm_purple":"sale-banner_sale-banner--vm_purple__7z_7m","sale-banner--tertiary":"sale-banner_sale-banner--tertiary__22QvB","sale-banner--red":"sale-banner_sale-banner--red__szQTy","sale-banner--primary":"sale-banner_sale-banner--primary__bT6KS","sale-banner--blue":"sale-banner_sale-banner--blue__qMzFa","sale-banner--info":"sale-banner_sale-banner--info__hW8Pn","sale-banner--secondary":"sale-banner_sale-banner--secondary__oGPXr","sale-banner--green":"sale-banner_sale-banner--green__hHtV2","sale-banner--success":"sale-banner_sale-banner--success__kRTaJ","sale-banner--onyx":"sale-banner_sale-banner--onyx__g_uCj","sale-banner--warning":"sale-banner_sale-banner--warning__GFNGf","sale-banner--danger":"sale-banner_sale-banner--danger__DjVyX","sale-banner--dark":"sale-banner_sale-banner--dark__tC9W1","sale-banner--light":"sale-banner_sale-banner--light__OFCya","countdown-item":"sale-banner_countdown-item__0TjZf"}},42391:e=>{e.exports={"hero-banner-flare":"hero-flare_hero-banner-flare__MRMI2","hero-banner-flare--blueGreen-0":"hero-flare_hero-banner-flare--blueGreen-0__6OgFs","hero-banner-flare--blueGreen-1":"hero-flare_hero-banner-flare--blueGreen-1__P6BR8","hero-banner-flare--blueGreen-2":"hero-flare_hero-banner-flare--blueGreen-2__dYidW","hero-banner-flare--pinkRed-0":"hero-flare_hero-banner-flare--pinkRed-0__0Ad7R","hero-banner-flare--pinkRed-1":"hero-flare_hero-banner-flare--pinkRed-1__w5Wbq","hero-banner-flare--pinkRed-2":"hero-flare_hero-banner-flare--pinkRed-2___FTDZ","hero-banner-flare--orangeYellow-0":"hero-flare_hero-banner-flare--orangeYellow-0__TCGCM","hero-banner-flare--orangeYellow-1":"hero-flare_hero-banner-flare--orangeYellow-1__s9QtD","hero-banner-flare--orangeYellow-2":"hero-flare_hero-banner-flare--orangeYellow-2__TmJ4b","hero-banner-flare--purplePink-0":"hero-flare_hero-banner-flare--purplePink-0__navKM","hero-banner-flare--purplePink-1":"hero-flare_hero-banner-flare--purplePink-1__oONya","hero-banner-flare--purplePink-2":"hero-flare_hero-banner-flare--purplePink-2___8AdI","hero-banner-flare-legacy":"hero-flare_hero-banner-flare-legacy__Fdj_m","hero-banner-flare-legacy--position-left":"hero-flare_hero-banner-flare-legacy--position-left__wjDOd","hero-banner-flare-legacy--position-right":"hero-flare_hero-banner-flare-legacy--position-right__dsUdI","hero-banner-flare--bluePurple-0":"hero-flare_hero-banner-flare--bluePurple-0__Fjqgl","hero-banner-flare--bluePurple-1":"hero-flare_hero-banner-flare--bluePurple-1__YbkHI","hero-banner-flare--bluePurple-2":"hero-flare_hero-banner-flare--bluePurple-2__NZgqD"}},42625:e=>{e.exports={price:"compare-product-price_price__m5qKE","cancellation-info":"compare-product-price_cancellation-info__atAg_","price-container":"compare-product-price_price-container__jqY8n","price-main":"compare-product-price_price-main__9ultv","price-split":"compare-product-price_price-split__MPBqw","price-split-drawer":"compare-product-price_price-split-drawer__V9GA_","price-decimals":"compare-product-price_price-decimals__98jK8","price-increase":"compare-product-price_price-increase__lzrYL","price-column":"compare-product-price_price-column__PvvrY"}},42776:(e,t,r)=>{"use strict";r.d(t,{ProductCard:()=>eV});var n=r(95155),o=r(12115),i=r(18401),a=r(99916),s=r(11241),l=r(29722),c=r(36294),d=r(82567
69),u=r(86089),_=r(32154),p=r.n(_);let m=o.memo(({id:e,bundle:t})=>{let{selected:r,selectedBundles:i,limit:a}=(0,u.$0)(),{toggleSelection:s}=(0,u.Ji)(),_=!!r[e],m=i.length>=a,h=_||!m,b=(0,o.useCallback)(r=>{r.stopPropagation(),s({id:e,bundle:t})},[e,t,s]);return h?(0,n.jsx)("div",{className:p()["compare-checkbox"],children:(0,n.jsx)(c.s,{className:(0,l.A)({[p().active]:_}),id:e,name:`checkbox${e}`,label:"Compare",isSquare:!0,isSmall:!0,isLabelFullWidth:!0,checked:_,onChange:b})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:p().divider}),(0,n.jsx)("div",{className:p()["compare-badge"],children:(0,n.jsxs)(d.E,{children:["Max ",a," items"]})})]})});var h=r(91329),b=r(29081),g=r(89684),f=r(30710),x=r(65305),v=r(54946),y=r(13941),j=r(40217),w=r(58512),N=r(48920),k=r(32493),E=r(12612),S=r(92790),T=r(28877),C=r(54046),A=r(70186),I=r(19438),P=r(99852),M=r(9579);let O=({sbBundle:e,msaBundle:t,flashSales:r,variant:n="regular",mode:o="standard"})=>{let i=(0,w.z)(),a=(0,j.p)(),s="entertainment"===o;try{var l,c;let d,u,_,p,m,h,b,g,f,v,y=(_=(0,A.M)(e),p=(0,C.gN)(_),m=e.content.display_name?.content?.[0]?.content?.[0]?.text||e.name,h=e.content.description,b=function(e){let t=e.content.description,r=e.content.products.find(({name:e})=>e.includes(x._k.BOOST))?.name,n=(0,A.M)(e),o=e.name.toLocaleLowerCase().includes(x.VD.VOLT),i=n.find(e=>e.content.product_type===x.pu.BROADBAND&&e.content.addon_type===x.ub.CORE)?.content.speed_profile,a=[];if(r){let e=(0,I.n)(r).split(" ");a.push({type:x.KT.BULLET_LIST,content:[{type:x.KT.LIST_ITEM,content:[{type:x.KT.PARAGRAPH,content:e.map((e,t)=>({text:`${t>0?" ":""}${e.replace("<strike>","").replace("</strike>","")}`,type:x.KT.TEXT,...e.includes("<strike>")&&{marks:[{type:"strike"}]}}))}]}]})}return((["gig1","gig2"].includes(i.slug)||o)&&a.push({type:x.KT.BULLET_LIST,content:[{type:x.KT.LIST_ITEM,content:[{type:x.KT.PARAGRAPH,content:[{text:"WiFi guarantee",type:x.KT.TEXT}]}]}]}),t?.content)?{...t,content:[...t.content,...a]}:t}(e),g=m.split(" "),{products:_,orderedProducts:p,bundleName:m,bundleShortDescription:h,customBundleShortDescription:b,bundleTitleWords:g,isStream:!!t?.journeyTypes?.includes("Stream")}),{pricing:j,priceChangesHtml:w}=(l=t,c=i,u=(d=(0,T.O)(l,c)).priceChangesHorizontal.reduce((e,t)=>t?`${e}<span>${t}</span>`:e,""),{pricing:d,priceChangesHtml:u}),O=(({orderedProducts:e,bundleName:t,isStream:r,mode:n})=>{let o="entertainment"===n,i=(0,k.uM)(t,e,r),a=i.find(e=>e.productType===x.po.TV),s=i.find(e=>e.productType===x.po.BROADBAND),l=i.find(e=>e.productType===x.po.SIM),c=i.find(e=>e.productType===x.po.LANDLINE),d=i.find(e=>(0,E.v)(e.name));return{bundleDescription:i,tvDescription:a,broadbandDescription:s,simDescription:l,phoneDescription:c,netflixDescription:d,mediaDescription:o?a??s:void 0,netflix:o||!d?void 0:d}})({orderedProducts:y.orderedProducts,bundleName:y.bundleName,isStream:y.isStream,mode:o}),B=(({orderedProducts:e,bundleName:t,mode:r,cdnDomain:n})=>"entertainment"===r?{mode:"entertainment",photos:(0,S.C)(e,t,void 0,n)}:{mode:"standard",photos:(0,S.Q)(e,t,void 0,n)})({orderedProducts:y.orderedProducts,bundleName:y.bundleName,mode:o,cdnDomain:a}),L=(f=(0,M.i)(r?.banner?.content,t?.sp),v=(0,M.A)(f,t?.totalMonthlyCosts),{flashSaleText:f,dynamicFlashSaleText:v}),D=(({sbBundle:e,msaBundle:t,flashSales:r,tldPricing:n})=>({customClassNames:(0,P.q)(e,r?.banner,n),customAttributes:(0,P.r)(e,t)}))({sbBundle:e,msaBundle:t,flashSales:r,tldPricing:j.tldPricing}),R=y.products.find(e=>e.content.product_type===x.pu.BROADBAND&&e.content.addon_type===x.ub.CORE)?.content,F=R?.speed_profile,V=R?.original_speed_profile,$=s?void 0:(0,N.k)(F,e.content.override_flare),z=`${!V?"":`<strike>${V?.content?.display_speed} Mbps</strike><br/>`}${F?.content?.display_speed} Mbps`,U=y.bundleName.toLocaleLowerCase().includes("volt")?"volt":n;return{...y,...O,...D,...L,pricing:j,priceChangesHtml:w,images:B,bundleSpeed:F,bundleOriginalSpeed:V,bundleFlare:$,broadbandSpeedName:z,cardVariant:U,isVolt:"volt"===U,isEntertainment:s,studentSplitterValue:i,cdnDomain:a}}catch(e){return console.warn(`${e}`),null}};var B=r(5344),L=r(82849),D=r(20516),R=r(15355),F=r(62960),V=r(69839),$=r(85592),z=r(18829),U=r(45772);let H=({hasOneOffPayNowCharges:e,bundle:t,blok:r,flashSales:a,variant:s})=>{let{address:l,availability:c}
69=(0,o.useContext)($.s),{tldPricing:u}=(0,T.O)(t);return(0,n.jsx)(i.$,{onClick:()=>{let n,o,i,s=(0,R.Cz)(t,r,a,c?.deliveryMethod);(0,z.A)(V.bk.ECOMMERCE,{event_name:V.qy.ECOMMERCE_CUSTOMISE,event_params:{product_count:"1",page_journey:"content",pricing_engine_request_id:"",price_engine_recommendation:"none"},ecommerce:{currency:"GBP",value:u.pricing.discountedTld?.amount||"0.00",items:[s]}}),(0,z.A)(V.bk.CONTENT,{event_name:V.qy.CONTENT_CLICK,event_params:{content_type:"web - sales - plp - customise product",content_name:t.bundleId,content_text:"customise",content_position:void 0,content_link:void 0,button_label:void 0}}),L.A.set(F.t8,D.XI.toString()),n=new URL("/buy/create-basket",(0,U.m)(window.location.origin)),o="",l?.addressIdentification&&("addressId"in l.addressIdentification?o=l.addressIdentification.addressId:"uprn"in l.addressIdentification&&(o=l.addressIdentification.uprn)),i=[n,new URLSearchParams(Object.fromEntries(Object.entries({bundleId:t.bundleId??"",aid:o,pc:l?.postcode??"",ct:t.contract?.term?.toString()??"",dest:"c",apm:e?"":"1",customiseJourney:"1"}).filter(([,e])=>!!e)))].join("?"),window.location.href=i},variant:s||"secondary",width:"full-width",rounded:"xl",children:(0,n.jsx)(d.E,{color:"light",weight:"bold",children:"Customise"})})};var G=r(1684),q=r(5620),W=r(81762),Y=r.n(W),K=r(17256),Q=r.n(K);let Z={portrait:{banner:"flash-sale-banner",text:"flash-sale-banner-text",timer:"flash-sale-banner-countdown-timer"},landscape:{banner:"horizontal-flash-sale-banner",text:"horizontal-flash-sale-banner-text",timer:"horizontal-flash-sale-banner-timer"}},X=({sale:e,layout:t,dynamicFlashSaleText:r,forceMobile:i=!1,className:a,...c})=>{let u="portrait"===t?Q():Y(),_=Z[t],p=(0,b.Og)(_.banner,_.text,_.timer),[m,h]=(0,o.useState)(0),{countdown_start_date:g,countdown_end_date:f}=e.content,x=m>0,{d:v,h:y,m:j,s:w}=(0,q.z)(m/1e3);if((0,o.useEffect)(()=>{if(g&&f){let e=Number(new Date(g).getTime()),t=Number(new Date(f).getTime()),r=setInterval(()=>{let r=Number(Date.now());t-r<0||e-r>0?h(0):h(t-r)},1e3);return()=>clearInterval(r)}},[g,f]),i||(r=e.content.banner_text),!r)return null;let N=e.content.banner_colour,k=(0,l.A)({"sale-banner":!0,"force-mobile":i,[u["sale-banner"]]:!0,"sale-banner--countdown":x,[u["sale-banner--countdown"]]:x,[u["sale-banner--primary"]]:"primary"===N,[u["sale-banner--secondary"]]:"secondary"===N,[u["sale-banner--volt"]]:"volt"===N,[u["sale-banner--info"]]:"info"===N,[u["sale-banner--onyx"]]:"onyx"===N,[u["sale-banner--tertiary"]]:"tertiary"===N,[u["sale-banner--success"]]:"success"===N,[u["sale-banner--warning"]]:"warning"===N,[u["sale-banner--danger"]]:"danger"===N,[u["sale-banner--light"]]:"light"===N,[u["sale-banner--dark"]]:"dark"===N},a),E=x?"Ends in:":"",S=x?"T200":"T300",T="landscape"===t;return(0,n.jsxs)(s.s,{direction:"column",gap:T?void 0:"xs",className:k,...p[_.banner],...c,children:[(0,n.jsx)(d.E,{size:S,color:"inherit",weight:T?"bold":void 0,children:(0,n.jsx)("span",{...p[_.text],className:u["sale-banner_text"],dangerouslySetInnerHTML:{__html:r}})}),(0,n.jsx)(d.E,{as:"span",size:T?S:"T300",weight:T?"regular":"medium",color:"inherit",...p[_.timer],children:(0,n.jsxs)(s.s,{gap:"sm",children:[E&&(0,n.jsx)("span",{children:E}),m>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:v}),(0,n.jsx)("span",{className:u["countdown-item"],children:y}),(0,n.jsx)("span",{className:u["countdown-item"],children:j}),(0,n.jsx)("span",{className:u["countdown-item"],children:w})]})]})})]})};var J=r(29801);let ee=({setupFees:e})=>{if(!e)return null;let t=Object.entries(e).filter(([,{amount:e}])=>e>0);return 0===t.length?null:(0,n.jsx)(n.Fragment,{children:t.map(([e,{text:t,amount:r}])=>(0,n.jsxs)(d.E,{size:"T300",weight:"regular",children:[(0,f.a7)(r)," ",t]},e))})};var et=r(66247),er=r(64808),en=r(75343),eo=r.n(en),ei=r(2531),ea=r(2068),es=r(105),el=r.n(es);let ec=({mode:e="standard",sbBundle:t,msaBundle:r,flashSales:c,variant:d="regular",forceMobile:u=!1,showBillSplit:_=!1,allowCustomise:p,enableNetflixModalChat:j,cancellationInfo:w,installationInfoFlag:N,isCompareDisabled:k,bundle:E})=>{let S=(0,b.Og)("product-card-horizontal","horizontal-flash-sale-banner","product-card-horizontal-description-items","horizontal-card-title","product-card-horizontal-price-increase","horizontal-setup-fees","horizontal-show-more-link","product-card-horizontal-installation-info"),{bundlesFilters:T}=(0,h.Y)(),{setSelectedBundle:C,setBillSplit:A,setSelectedBundleStyle:I}=(0,y.b)(),P=O({sbBundle:t,msaBundle:r,flashSales:c,variant:d,mode:e});if(!((e,t)=>{if(!t||0===Object.keys(t).length)return!0;t.budget||(t={...t,budget:"0,999"});let[r="0",n="999"]=t.budget.split(","),o=parseFloat(`${e.totalMonthlyCosts?.bundleSubtotal?.[0]?.amount}`);if(o<parseFloat(r)||o>parseFloat(n))return!1;let i=["broadband","tv"],a=e.journeyTypes?.map(e=>e.toLowerCase()).filter(e=>i.includes(e));return!t.deal_type||"All deals"===t.deal_type||a?.join(" & ")===t.deal_type.toLowerCase()})(r,T)||!P)return null;let{bundleName:M,bundleTitleWords:L,customBundleShortDescription:D,isStream:R,tvDescription:F,simDescription:V,phoneDescription:$,netflixDescription:z,mediaDescription:U,bundleFlare:q,broadbandSpeedName:W,pricing:Y,priceChangesHtml:K,cardVariant:Q,isVolt:Z,isEntertainment:en,customClassNames:es,customAttributes:ec,dynamicFlashSaleText:ed,images:eu}=P,{tldPricing:e_,oneOffPayNowCharges:ep,priceChangesHorizontal:em,setupFees:eh,contract:eb}=Y,eg=(e=>{let t=e?.some(e=>e.installationType===x.nZ.MANNED),r=e?.some(e=>e.installationType===x.nZ.QUICK_START),n=e?.find(e=>e.installationType===x.nZ.MANNED)?.price?.amount;if(t&&r){if(n&&parseInt(n,10)>0)return`<div>Free self install available or book an install for <strong>\xa3${n}</strong></div>`}else if(t&&!r)return"Free installation available in checkout";return null})(r.installationOptions),ef=(0,l.A)({"landscape-card":!0,"force-mobile":u,[el()["landscape-card"]]:!0,[el()["landscape-card--regular"]]:"regular"===Q,[el(
69)["landscape-card--volt"]]:Z,[eo()["landscape-card"]]:en,[eo()["landscape-card--volt"]]:en&&Z}),ex={"--border-color":Z?"none":function(e){switch(e){case"black":case"onyx":return"var(--color-onyx)";case"vm_purple":case"tertiary":return"var(--tertiary-color)";case"primary":case"blue":case"info":return"var(--color-blue)";case"red":return"var(--action-primary-shadow)";case"secondary":case"green":case"success":return"var(--color-green)";case"warning":return"var(--color-warning)";case"danger":return"var(--color-danger)";case"dark":return"var(--color-grey-80)";default:return"var(--mo-color-20)"}}(c?.banner?.content?.banner_colour)};return(0,o.createElement)(a.Zp,{...S["product-card-horizontal"],style:ex,className:`${ef} ${es}`,key:r.bundleId,rounded:"lg",...ec,children:[!Z&&c?.banner&&(0,n.jsx)(X,{layout:"landscape",...en?S["horizontal-flash-sale-banner"]:{},className:en?eo()["landscape-card__sale-banner"]:void 0,sale:c?.banner,forceMobile:u,dynamicFlashSaleText:ed},`${r.bundleId}-sale-banner`),Z&&(0,n.jsx)(X,{layout:"landscape",className:en?eo()["landscape-card__sale-banner"]:void 0,sale:(0,v.m)(c?.banner),dynamicFlashSaleText:ed,forceMobile:u},`${r.bundleId}-sale-banner-volt`),!en&&Z&&(0,n.jsx)(J.u,{layout:"landscape",forceMobile:u}),!en&&(0,n.jsxs)(et.h,{layout:"landscape",forceMobile:u,children:[(0,n.jsx)("strong",{children:L[0]})," ",L.slice(1).join(" ")]}),(0,n.jsxs)(s.s,{direction:en?void 0:"column",className:(0,l.A)(el()["landscape-card_container"],en&&eo()["landscape-card_container"]),children:[en&&(0,n.jsx)(et.h,{layout:"landscape",forceMobile:u,className:(0,l.A)(eo()["landscape-card__title"],eo()["landscape-card__title--mobile"]),children:(0,n.jsx)("strong",{children:M})}),"entertainment"===eu.mode?(0,n.jsx)(G.P,{photos:eu.photos,title:U?.mediaTitle,description:U?.mediaDescription,logo:U?.mediaLogo,rounded:Z}):(0,n.jsx)(ei.P,{background:q,photos:eu.photos,forceMobile:u}),(0,n.jsxs)(s.s,{direction:"column",...S["product-card-horizontal-description-items"],className:(0,l.A)(el()["landscape-card_description-items"],en&&eo()["landscape-card_description-items"]),children:[en&&(0,n.jsx)(et.h,{layout:"landscape",...S["horizontal-card-title"],forceMobile:u,className:(0,l.A)(eo()["landscape-card__title"],eo()["landscape-card__title--desktop"]),children:(0,n.jsx)("strong",{children:M})}),(0,n.jsx)(er.W,{description:{name:W,ufDescription:D},iconUrl:"/vm-upper-funnel/assets/icons/broadband-thick.svg",netflix:en&&!F?z:void 0,bundleName:en?M:void 0}),F&&(0,n.jsx)(er.W,{description:F,showItemsNr:3,iconUrl:R?"/vm-upper-funnel/assets/icons/flex-thick.svg":"/vm-upper-funnel/assets/icons/tv-thick.svg",netflix:en?z:void 0,bundleName:en?M:void 0,isTV:!!en||void 0,enableNetflixModalChat:en?j:void 0}),$&&(0,n.jsx)(er.W,{description:$,iconUrl:"/vm-upper-funnel/assets/icons/phone-thick.svg"}),V&&(0,n.jsx)(er.W,{description:V,showItemsNr:9,iconUrl:"/vm-upper-funnel/assets/icons/sim-thick.svg"}),(0,n.jsx)("div",{...S["product-card-horizontal-price-increase"],className:(0,l.A)({[el()["desktop-only"]]:!0}),children:(0,n.jsx)(er.W,{description:{name:"Price",ufDescription:K||`<strong>${(0,f.a7)(e_?.pricing.timeLimitedTotal)}</strong> a month`},iconUrl:"/vm-upper-funnel/assets/icons/price.svg"})}),N&&eg&&(0,n.jsx)("div",{...S["product-card-horizontal-installation-info"],children:(0,n.jsx)(er.W,{description:{name:"Installation",ufDescription:eg},iconUrl:"/vm-upper-funnel/assets/icons/installation.svg"})})]}),(0,n.jsxs)(s.s,{direction:"column",className:el().footer,children:[(0,n.jsx)(s.s,{className:`${el().pill} ${el()["pill--price"]}`,children:(0,n.jsx)(ea.g,{discounted:e_?.pricing.timeLimitedTotal,discountedPeriod:e_.pricing.discountedTld?.afterDurationInMonths,afterPeriodPrice:e_.pricing.discountedTld?.amount,regular:e_?.pricing.regular,priceChanges:em,forceMobile:u,initialBillSplitAmount:e_.initialBillSplitAmount,showBillSplit:_,dailyTldPrice:e_?.dailyTldPrice,cancellationInfo:w,contractTerm:(0,g.s)(eb?.term,!1)})}),eh&&(0,n.jsx)(s.s,{direction:"column",align:"center",...en?{}:S["horizontal-setup-fees"],children:(0,n.jsx)(ee,{setupFees:eh})}),(0,n.jsx)(B.F,{layout:"landscape",id:t.slug,customisation:!!en&&void 0,hasOneOffPayNowCharges:!!ep?.length,bundle:r,blok:t,flashSales:c}),p&&(0,n.jsx)(H,{hasOneOffPayNowCharges:!!ep?.length,bundle:r,blok:t,flashSales:c}),(0,n.jsx)(i.$,{...S["horizontal-show-more-link"],className:"button-link",onClick:()=>{A(_),I(en?"entertainment":"default"),C({sbBundle:t,msaBundle:r,flashSales:c})},children:"Find out more"}),k?null:r?.bundleId&&E&&(0,n.jsx)(m,{id:r?.bundleId,bundle:E})]})]},`${r.bundleId}-product-card-landscape`)]})};var ed=r(5772),eu=r(71505),e_=r(5423),ep=r(98900);let em=({contract:e})=>(0,n.jsx)(d.E,{size:"T300",weight:"regular",children:e.isRolling?(0,n.jsx)(e_.o,{title:"About your contract",text:(0,n.jsx)(ep.g,{duration:"30",period:"days"}),children:"30 day rolling contract"}):(0,n.jsxs)(e_.o,{title:"About your contract",text:(0,n.jsx)(ep.g,{duration:e.term,period:"months"}),children:[e.term," month contract"]})});var eh=r(96653),eb=r(94714),eg=r(38119),ef=r(51073),ex=r(74855),ev=r(48399),ey=r(16420),ej=r(21576),ew=r(12180),eN=r(77262),ek=r.n(eN);
69let eE=({contract:e,shortDescription:t,tldPricing:r,simPriceChanges:i,broadbandPriceChanges:a,descriptionItems:l,enableNetflixModalChat:c,bundleName:u})=>{let _=(0,b.Og)("find-out-more","short-description","bundle-description-list"),[p,m]=(0,o.useState)(!1),h=(0,ew.q)();if(!r)return null;let{pricing:g,simPricing:x,flexPricing:v,discountedSim:y}=r,{timeLimitedDiscount:j,discountedTld:w}=g,N=x?.amount&&parseFloat(x?.amount)>0||y,k=v&&v>0,E=c?"#already-got-netflix":"#already-got-netflix-no-chat",S=(0,n.jsxs)(s.s,{align:"center",gap:"xs",..._["find-out-more"],children:[(0,n.jsx)(ef.I,{icon:eb.cJ6}),"Find out more"]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"data-testid":"short-description",..._["short-description"],className:`${ek()["description-short"]} ${p?"description-open":""}`,children:t&&(0,n.jsx)(ey.S,{document:t,StoryblokComponent:eh.Dp})}),(0,n.jsx)("div",{className:ek()["description-container"],children:(0,n.jsx)(ej.x,{horizontalRule:!0,expandsUpwards:!0,onClick:()=>{let e=!p;m(e),h(e)},iconSize:"sm",title:S,children:(0,n.jsxs)("div",{className:ek()["description-list"],..._["bundle-description-list"],children:[(0,n.jsx)(eg.d,{}),(0,n.jsx)(d.E,{weight:"bold",marginBottom:!0,children:"Your Virgin Media Price"}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:w?.afterDurationInMonths?(0,n.jsxs)(n.Fragment,{children:[(0,f.a7)(j)," for the first"," ",w?.afterDurationInMonths," months. Then"," ",(0,f.a7)(w?.broadbandAmount)," a month."," "]}):(0,n.jsxs)(n.Fragment,{children:[(0,f.a7)(j)," a month"]})},"price"),k?(0,n.jsxs)("li",{children:["Flex at ",(0,f.a7)(v)," a month. 30-day rolling contract."]},"price-flex"):null,a?.map(e=>(0,n.jsx)("li",{children:e},e))]}),N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eg.d,{}),(0,n.jsx)(d.E,{weight:"bold",marginBottom:!0,children:"Your O2 Price"}),(0,n.jsxs)("ul",{className:ek()["description-list"],children:[(0,n.jsxs)("li",{children:[y?.afterDurationInMonths?(0,n.jsxs)(n.Fragment,{children:[(0,f.a7)(x?.amount||"0")," for the first ",y?.afterDurationInMonths," months. Then ",(0,f.a7)(y?.amount)," a month."," "]}):(0,n.jsxs)(n.Fragment,{children:[(0,f.a7)(x?.amount||"0")," a month."," "]}),e?.isRolling?"30 day rolling contract":`${e?.term} month contract.`]}),i?.map(e=>(0,n.jsx)("li",{children:e},e))]})]}),l?.map(e=>{let t=e?.modals?.find(({id:e})=>e===E),r=t&&c?(0,n.jsx)(ex.M,{bundleName:u}):null,i=t??e.modals?.[0];return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)(eg.d,{"data-testid":"description-items"}),(0,n.jsxs)(d.E,{className:ek()["description-title"],weight:"bold",marginBottom:!0,children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e?.name?.toString()||""}}),e.icon&&(0,n.jsx)(ed.default,{unoptimized:!0,alt:`${e?.name?.toString()}-icon`,src:e.icon,width:24,height:24})]}),e.ufDescription&&"string"!=typeof e.ufDescription?(0,n.jsx)(ey.S,{document:e.ufDescription,StoryblokComponent:eh.Dp}):(0,n.jsx)("ul",{className:ek()["description-list"],children:e?.salesDescriptionItems?.map(e=>(0,n.jsx)("li",{children:e},e))}),i?.linkText&&(0,n.jsx)("div",{children:(0,n.jsx)(e_.o,{title:`${i?.title}`,text:(0,n.jsx)(ev.t,{images:i?.images,text:i?.text??[]}),button:r,onLinkClick:()=>{t&&(0,z.A)(V.bk.CONTENT,{event_name:V.qy.CONTENT_CLICK,event_params:{content_type:"web - plp - tv",content_name:"already have netflix",content_link:void 0}})},children:i?.linkText})})]},e.name?.toString())}),(0,n.jsx)(eg.d,{}),(0,n.jsx)(d.E,{className:ek()["description-anchor"],children:"Hardware images are for illustrative purposes only"})]})})})]})};var eS=r(40281),eT=r(47277),eC=r(52911),eA=r(24646),eI=r(82117),eP=r.n(eI);let eM=({discounted:e,discountedPeriod:t=1,afterPeriodPrice:r,priceChanges:o,showBillSplit:i,initialBillSplitAmount:a,dailyTldPrice:s,cancellationInfo:l,contractTerm:c})=>{let u=(0,b.Og)("discounted-main-price-popup","cancellation-info-link","contract-term"),[_,p]=e.split("."),m=(0,eA.useDailySplitter)();return(0,n.jsxs)(eu.N,{justify:"center",align:"center",direction:"column",children:[(0,n.jsxs)(eu.N,{direction:"column",align:"center",className:eP()["price-container"],children:[(0,n.jsxs)(d.E,{as:"span",size:"T600",weight:"heavy",className:eP().price,...u["discounted-main-price-popup"],children:[`\xa3${_}`,p&&(0,n.jsxs)(d.E,{as:"span",size:"T200",weight:"heavy",className:eP()["price-decimals"],children:[".",p]}),(0,n.jsx)(d.E,{as:"span",size:"T200",weight:"bold",children:t>1?(0,n.jsxs)(n.Fragment,{children:["\xa0for ",t," months*"]}):(0,n.jsx)(n.Fragment,{children:"\xa0a month"})})]}),r&&(0,n.jsxs)(d.E,{as:"span",size:"T200",weight:"regular",children:["then ",(0,f.a7)(r)," a month"]}),!0===i&&a&&a>0?(0,n.jsxs)(d.E,{size:"T200",color:"info",className:eP()["price-split"],children:[(0,f.a7)(a)," per person"]}):null,m&&s?(0,n.jsxs)(d.E,{size:"T200",color:"info",children:[(0,f.a7)(s)," per day"]}):null]}),o.length>0&&(0,n.jsx)(d.E,{"data-testid":"price-changes",className:eP()["price-increase"],as:"span",size:"T200",weight:"light",align:"center",children:o.map((e,t)=>(0,n.jsx)("div",{children:e},`${e}${t}`))}),c&&(0,n.jsx)(d.E,{size:"T200",color:"info",weight:"bold",...u["contract-term"],children:c}),l?.title&&l.content&&(0,n.jsx)("div",{...u["cancellation-info-link"],children:(0,n.jsx)(eT.o,{title:l.title,text:(0,n.jsx)("div",{className:eP()["cancellation-info"],children:(0,n.jsx)(eC.S,{document:l.content,StoryblokComponent:eh.Dp})}),children:"Cancellation rights apply"})})]})};var eO=r(48515),eB=r.n(eO),eL=r(99730),eD=r.n(eL);let eR=({speed:e})=>{let t=(0,b.Og)("product-card-speed");return(0,n.jsx)(s.s,{justify:"center",className:eD().speed,children:(0,n.jsxs)("span",{className:eD()["speed-value"],...t["product-card-speed"],children:[e,(0,n.jsx)("span",{className:eD()["speed-unit"],children:"Mbps"})]})})},eF=({mode:e="standard",variant:t="regular",sbBundle:r,msaBundle:o,flashSales:i,showBillSplit:c,allowCustomise:d,enableNetflixModalChat:u,cancellationInfo:_})=>{let p=(0,b.Og)("product-card","modal-contract-link"),m=O({sbBundle:r,msaBundle:o,flashSales:i,variant:t,mode:e});if(!m)return null;let{bundleName:h,bundleShortDescription:g,bundleDescription:f,bundleSpeed:x,bundleFlare:v,netflix:y,mediaDescription:j,pricing:w,customClassNames:N,customAttributes:k,dynamicFlashSaleText:E,cardVariant:S,isEntertainment:T,images:C}=m,{tldPricing:A,contract:I,oneOffPayNowCharges:P,priceChanges:M,simPriceChanges:L,broadbandPriceChanges:D,setupFees:R}=w;return(0,n.jsxs)(a.Zp,{"data-testid":"product-card",...p["product-card"],className:(0,l.A)(eB()["product-card-container"],eB()[`product-card-${S}`],N),border:!0,padding:"md 0",rounded:"lg",justify:"between",...k,children:[i?.banner&&(0,n.jsx)(X,{layout:"portrait",sale:i?.banner,dynamicFlashSaleText:E}),!T&&"volt"===S&&(0,n.jsx)(J.u,{layout:"portrait"}),i?.ribbon&&(0,n.jsx)(J.c,{layout:"portrait",sale:i?.ribbon}),(0,n.jsxs)(eu.N,{justify:"start",direction:"column",children:[(0,n.jsxs)(et.h,{layout:"portrait",children:[h,y&&(0,n.jsx)(s.s,{justify:"center",align:"center",direction:"row",gap:"sm",asChild:!0,children:(0,n.jsxs)("span",{children:["&",(0,n.jsx)(ed.default,{unoptimized:!0,src:"/vm-upper-funnel/assets/icons/netflix-logo.svg",alt:"Netflix logo",width:"50",height:"14"})]})})]}),"entertainment"===C.mode?(0,n.jsx)(G.P,{orientation:"vertical",photos:C.photos,title:j?.mediaTitle,de
69scription:j?.mediaDescription,logo:j?.mediaLogo}):(0,n.jsx)(eS.P,{background:v,photos:C.photos}),(0,n.jsx)(eR,{speed:x?.content?.display_speed}),(0,n.jsx)(eE,{contract:I,shortDescription:g,tldPricing:A,simPriceChanges:L,broadbandPriceChanges:D,descriptionItems:f,enableNetflixModalChat:T?void 0:u,bundleName:h})]}),(0,n.jsxs)(eu.N,{padding:"0 md",gap:"sm",direction:"column",children:[(0,n.jsx)(eM,{discounted:A?.pricing.timeLimitedTotal,discountedPeriod:A.pricing.discountedTld?.afterDurationInMonths,afterPeriodPrice:A.pricing.discountedTld?.amount,regular:A?.pricing.regular,priceChanges:M,showBillSplit:c??!1,initialBillSplitAmount:A.initialBillSplitAmount,dailyTldPrice:A?.dailyTldPrice,cancellationInfo:_}),(0,n.jsx)(B.F,{layout:"portrait",id:r.slug,customisation:!1,hasOneOffPayNowCharges:!!P?.length,bundle:o,blok:r,flashSales:i}),d&&(0,n.jsx)(H,{hasOneOffPayNowCharges:!!P?.length,bundle:o,blok:r,flashSales:i}),(0,n.jsxs)(s.s,{align:"center",justify:"center",direction:"column",...p["modal-contract-link"],children:[(0,n.jsx)(em,{contract:I}),(0,n.jsx)(ee,{setupFees:R})]})]})]},o.bundleId)},eV=({cardType:e,forceMobile:t,...r})=>{let o=e?.endsWith("entertainment")?"entertainment":"standard";return e?.startsWith("landscape")?(0,n.jsx)(ec,{mode:o,forceMobile:t,...r}):(0,n.jsx)(eF,{mode:o,...r})}},42983:e=>{e.exports={"animated-carousel":"animated-carousel_animated-carousel__UmUIV","webgl-background-container":"animated-carousel_webgl-background-container__FlYJP","carousel-content":"animated-carousel_carousel-content__s1tDu","equipment-enhanced-swiper":"animated-carousel_equipment-enhanced-swiper__pHb62",carousel__button:"animated-carousel_carousel__button__7qAZy","carousel__button--next":"animated-carousel_carousel__button--next__lm3m5","carousel__button--prev":"animated-carousel_carousel__button--prev___OM_l"}},43600:e=>{e.exports={"hero-banner__content":"vm-hero_hero-banner__content__vmD6I","hero-banner__content--layout-split":"vm-hero_hero-banner__content--layout-split__LhoDN"}},43928:(e,t,r)=>{"use strict";r.d(t,{RY:()=>v,f8:()=>f,Pk:()=>y,Is:()=>E});var n=r(95155),o=r(73321),i=r(12115),a=r(12572),s=r(51073),l=r(29722),c=r(89622),d=r(5606),u=r(72436),_=r(97157),p=r(83182),m=r.n(p);let h=()=>(0,n.jsx)("div",{className:m()["sidenav-overlay"]});var b=r(39529),g=r.n(b);let f=({children:e})=>{let t=(0,o.usePathname)(),r=(0,i.useRef)(null),{expanded:p,setExpanded:m,level:b,setLevel:f}=(0,i.useContext)(_.NavigationCtx);(0,d.A)("Escape",e=>{p&&(e.preventDefault(),m(!1))},{},[p]),(0,u.A)(r,()=>{p&&(m(!1),f(0))});let x=(0,i.useCallback)(()=>{m(!1),f(0)},[m]),v=(0,i.useCallback)(e=>{if(e.target instanceof HTMLElement){let r=e.target.closest("a");r&&r.href===t&&m(!1)}},[t,m]);return(0,i.useLayoutEffect)(()=>{document?.addEventListener("click",v)},[v]),(0,n.jsxs)(n.Fragment,{children:[p&&(0,n.jsx)(h,{}),(0,n.jsx)("nav",{className:g()["sidenav-container"],"aria-label":"Main Menu","aria-hidden":!p,ref:r,style:{pointerEvents:p?"auto":"none"},children:(0,n.jsxs)("div",{className:(0,l.A)("sidenav",{"sidenav--open":p,[g()["sidenav--close"]]:!p}),children:[p&&(0,n.jsx)("button",{"aria-label":"Close Menu",className:(0,l.A)("sidenav__close",g()["uf-sidenav__close"]),onClick:x,children:(0,n.jsx)(s.I,{icon:a.VtD,size:"lg",ratio:.75})}),(0,n.jsx)(c.A,{enabled:p,forwardProps:!0,children:(0,n.jsx)("div",{className:"sidenav__menu",children:(0,n.jsx)("div",{className:"sidenav__sections",style:{"--sidenav-section-translate-multiplyer":b},children:e})})})]})})]})};var x=r(54850);let v=({prefix:e,suffix:t,children:r})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)("span",{className:"sidenav-panel__prefix",children:e}),(0,n.jsx)("span",{className:"sidenav-panel__text",children:r}),t&&(0,n.jsx)("span",{className:"sidenav-panel__suffix",children:t})]}),y=({children:e,prefix:t,suffix:r,variant:o})=>{let a=(({children:e,template:t,asChild:r,props:n})=>(0,i.isValidElement)(e)&&r?(0,i.cloneElement)(e,e.props,t({...n,children:e.props.children})):t({...n,children:e}))({children:e,template:v,asChild:!0,props:{prefix:t,suffix:r}});return(0,n.jsx)(x.DX,{className:(0,l.A)("sidenav-panel",{"sidenav-panel--secondary":"secondary"===o}),children:a})};
69var j=r(87333),w=r(82567),N=r(11155),k=r.n(N);let E=(0,i.forwardRef)(({header:e,title:t,children:r,subsection:o,hidden:a,index:s},c)=>{let d=(0,i.useId)(),u=t?d:void 0;return(0,n.jsxs)("div",{...u?{role:"region","aria-labelledby":u}:{},"aria-hidden":a,tabIndex:a?void 0:-1,className:(0,l.A)("sidenav__section",k()["uf-sidenav__section"],{"sidenav__section--sub-section":o,"sidenav__section--hidden":a}),ref:c,children:[s?(0,n.jsx)("div",{className:k()["sidenav__section--divider"]}):null,e&&(0,n.jsx)("div",{className:"sidenav__section-navigation",children:e}),t&&(0,n.jsx)("div",{className:"sidenav__section-title",id:d,children:(0,n.jsx)(w.E,{as:"div",size:"T300",weight:"bold",children:t})}),(0,n.jsx)(j.B,{noMarker:!0,as:"ul",children:r})]})});E.displayName="SideNavSection"},44200:e=>{e.exports={"h-book":"h-book_h-book__pFBqL","h-book--tint-black":"h-book_h-book--tint-black__j3vWE","h-book__title":"h-book_h-book__title__k3LCW","h-book__logo":"h-book_h-book__logo__bAjgb","h-book__content-wrapper":"h-book_h-book__content-wrapper__ZbMwR","h-book__content":"h-book_h-book__content__BM553","h-book__controls":"h-book_h-book__controls__PuKnE","h-book__control":"h-book_h-book__control__9Xq_2","h-book__control-text":"h-book_h-book__control-text__D8RZX","h-book--expanded":"h-book_h-book--expanded__UoOhr"}},44357:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShoppingCart:()=>I});var n=r(95155),o=r(73321),i=r(12115),a=r(96653),s=r(94714),l=r(18401),c=r(11241),d=r(38119),u=r(51073),_=r(82567),p=r(29722),m=r(82849),h=r(20516),b=r(65305),g=r(16420),f=r(69839),x=r(51970),v=r(18829),y=r(19438),j=r(30710),w=r(13339),N=r(45772),k=r(11247),E=r(13941),S=r(9579),T=r(87865),C=r.n(T),A=r(53823);let I=()=>{let e,t,{open:r,setOpen:h}=(0,E.b)(),T=(0,o.useRouter)(),{basket:I,bundleCounts:M}=(0,x.D)();if(!I?.basketPricing)return null;let O=(0,A.yj)(I),B=(0,A.cQ)(I),L=(0,A.sl)(I),{hasSetupFees:D,setupCharges:R}=(0,w.x)(I),F=I.bundleBlok&&I.flashSales?(e=I.bundleBlok,t=I.flashSales,{banner:t?.find(t=>t.content.applied_bundles?.includes(e.uuid)&&(t.content.banner_text||t.content.sp_increase_banner_text||t.content.sp_decrease_banner_text)&&t.content.journey_type!==b.Ui.SOCIAL_PROOFING_BASKET),promotion:t?.find(t=>t.content.applied_bundles?.includes(e.uuid)&&t.content.promotion_title&&t.content.promotion_text),ribbon:t?.find(t=>t.content.applied_bundles?.includes(e.uuid)&&t.content.ribbon_text),socialProofing:t?.find(t=>(t.content.applied_bundles?.includes(e.uuid)||t.content.apply_to_all_bundles)&&t.content.banner_text&&t.content.journey_type===b.Ui.SOCIAL_PROOFING_BASKET)}):void 0,V=F?.banner?.content?(0,S.A)((0,S.i)(F.banner.content,I?.basketPricing?.sp),I?.basketPricing?.totalMonthlyCosts):void 0,$=P(M??[],F?.socialProofing?.content?.banner_text??""),z=V||$||"",U=V?F?.banner?.content.banner_colour:$?F?.socialProofing?.content?.banner_colour:void 0,H=I?.bundleBlok?.name,G=H?.toLocaleLowerCase().includes("volt")?"volt":"regular";return(0,n.jsx)(k._,{className:(0,p.A)(C()["shopping-cart-drawer"],"shopping-card-drawer"),"data-cy":"shopping-cart-drawer",instance:b.Qb.SHOPPING_CART,children:r&&(0,n.jsxs)(c.s,{direction:"column",className:C()["shopping-cart"],"data-cy":"shopping-cart",gap:"md",justify:"between",children:[(0,n.jsxs)(c.s,{direction:"column",gap:"md",className:C()["shopping-cart-content"],"data-cy":"shopping-cart-content",children:[(0,n.jsxs)(c.s,{justify:"between",className:C()["shopping-cart-header"],"data-cy":"shopping-cart-header",children:[(0,n.jsxs)(c.s,{align:"center",gap:"sm",children:[(0,n.jsx)(u.I,{icon:s.QcO,size:"lg"}),(0,n.jsx)(_.E,{size:"T400",weight:"medium",children:"Your basket"})]}),(0,n.jsx)(l.$,{className:C()["button-close"],"data-cy":"shopping-cart-close-button",onClick:()=>{h({open:b.Qb.NONE})},children:(0,n.jsx)(u.I,{icon:s.dQv,size:"md"})})]}),(0,n.jsxs)(c.s,{direction:"column",className:(0,p.A)({[C().box]:!0},U&&C()[`box--${U}`]),children:[z&&(0,n.jsx)(c.s,{className:(0,p.A)(C()["box-title"],U&&C()[`sale-banner--${U}`]),justify:"center",children:(0,n.jsx)(_.E,{color:"inherit",weight:"bold",size:"T300",children:z})}),(0,n.jsxs)(c.s,{className:C()["box-content"],"data-cy":"shopping-cart-box-content",direction:"column",gap:"xs",children:[(0,n.jsxs)(c.s,{direction:"column",gap:"sm",children:[(0,n.jsxs)(c.s,{direction:"column",gap:"sm",children:[(0,n.jsxs)(c.s,{direction:"column",gap:"sm",children:[(0,n.jsxs)(c.s,{direction:"column",children:[(0,n.jsx)(_.E,{size:"T400",weight:"medium",children:"Main services"}),(0,n.jsx)(_.E,{weight:"light",children:O.contract})]}),(0,n.jsxs)(c.s,{justify:"between",gap:"xs",children:[(0,n.jsxs)(c.s,{direction:"column",children:[(0,n.jsx)(_.E,{weight:"medium",children:O.name}),(0,n.jsx)(_.E,{weight:"medium","data-testid":"recurring-amount-info","data-cy":"shopping-cart-amount-info",children:O.recurringAmountInfo})]}),(0,n.jsx)(_.E,{weight:"medium",children:(0,j.a7)(O.subtotal)})]}),O.products?.map(e=>(0,n.jsx)(c.s,{children:(0,n.jsx)(_.E,{weight:"light",children:e.blok?.name&&(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,y.n)(`${e.blok.name}`)}})})},e.productName))]}),B.hasProducts&&(0,n.jsxs)(c.s,{direction:"column",gap:"sm",children:[(0,n.jsx)(c.s,{direction:"column",children:(0,n.jsx)(_.E,{weight:"medium",children:"Your O2 price"})}),(0,n.jsxs)(c.s,{justify:"between",children:[(0,n.jsxs)(c.s,{direction:"column",children:[B.products?.map(e=>(0,n.jsx)(_.E,{weight:"light",children:e.blok?.name&&(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,y.n)(`${e.blok.name}`)}})},e.productName)),B.discountedSim?.afterDurationInMonths?(0,n.jsxs)(_.E,{weight:"medium",children:[(0,j.a7)(B.simPricing?.amount||"0")," ","for"," ",B.discountedSim?.afterDurationInMonths," ","months. Then"," ",(0,j.a7)(B.discountedSim?.amount)," ","a month."]}):(0,n.jsxs)(_.E,{weight:"medium",children:[(0,j.a7)(B.subtotal)," a month"]})]}),(0,n.jsx)(_.E,{weight:"light",children:B.discountedSim?.afterDurationInMonths?(0,j.a7)(B.simPricing?.amount||"0"):(0,j.a7)(B.subtotal)})]})]}),L.hasProducts&&(0,n.jsxs)(c.s,{direction:"column",children:[(0,n.jsx)(d.d,{}),(0,n.jsxs)(c.s,{justify:"between",children:[(0,n.jsx)(_.E,{weight:"light",children:"Subtotal:"}),(0,n.jsx)(_.E,{weight:"light",children:(0,j.a7)(I?.basketPricing?.totalMonthlyCosts?.bundleSubtotal?.[0]?.amount)})]}),(0,n.jsx)(d.d,{})]})]}),L.hasProducts&&(0,n.jsxs)(c.s,{direction:"column",gap:"sm",children:[(0,n.jsxs)(c.s,{direction:"column",children:[(0,n.jsx)(_.E,{size:"T400",weight:"medium",children:"Virgin Media add-ons"}),L?.byTerms&&Object.entries(L?.byTerms).map(([e,t])=>(0,n.jsxs)(c.s,{direction:"column",gap:"sm",children:[(0,n.jsx)(_.E,{weight:"light",children:"1"===e?"(30-day rolling contract)":`(${e}-month contract)`}),t?.map(e=>(0,n.jsxs)(c.s,{justify:"between",children:[(0,n.jsx)(_.E,{weight:"light",children:e.blok?.name&&(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,y.n)(`${e.blok.name}`)}})}),(0,n.jsx)(_.E,{weight:"light",children:(0,j.a7)(e?.prices?.find(({chargeType:e})=>"RecurringCharge"===e)?.price.amount)})]},e?.productName))]},e))]}),(0,n.jsxs)(c.s,{direction:"column",children:[(0,n.jsx)(d.d,{}),(0,n.jsxs)(c.s,{justify:"between",children:[(0,n.jsx)(_.E,{weight:"light",children:"Subtotal:"}),(0,n.jsx)(_.E,{weight:"light",children:(0,j.a7)(L.subtotal)})]})]})]})]}),(0,n.jsxs)(c.s,{className:C()["box-footer"],"data-cy":"shopping-cart-box-footer",direction:"column",justify:"center",align:"center",children:[(0,n.jsx)(d.d,{}),(0,n.jsxs)(c.s,{justify:"between",gap:"xs",children:[(0,n.jsx)(_.E,{size:"T400",weight:"regular",children:"Initial monthly total"}),(0,n.jsx)(_.E,{size:"T400",weight:"regular",children:(0,j.a7)(I?.basketPricing?.totalMonthlyCosts?.total?.[0]?.amount)})]})]})]})]}),(0,n.jsxs)(c.s,{direction:"column",className:`${C().box} ${!D?C().blue:""}`,"data-cy":"shopping-cart-setup-fee-section",children:[!D&&(0,n.jsx)(c.s,{className:C()["box-title"],justify:"center",children:(0,n.jsx)(_.E,{color:"light",weight:"bold",size:"T300",children:"No setup fee"})}),(0,n.jsx)(c.s,{className:C()["box-content"],gap:"sm",direction:"column",children:Object.entries(R).map(([e,t])=>(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(_.E,{weight:"medium",children:e}),t&&Object.entries(t).map(([e,{price:t,blok:r}])=>(0,n.jsxs)(c.s,{justify:"between",children:[(0,n.jsx)(_.E,{children:(0,n.jsx)(g.S,{StoryblokComponent:a.Dp,document:r?.name})}),(0,n.jsx)(_.E,{children:(0,j.a7)(t.toString())})]},e))]},e))})]})]}),(0,n.jsx)(c.s,{shrink:0,className:C()["shopping-cart-content"],
69children:(0,n.jsx)(l.$,{className:(0,p.A)(C()["add-to-basket"],C()[`add-to-basket-${G}`]),"data-cy":"shopping-cart-cta",variant:"destructive",width:"full-width",rounded:"xl",onClick:()=>{let e,t,r;(0,v.A)(f.bk.BASKET,{event_name:f.qy.BASKET_CHECKOUT,eventAction:f.hh.BASKET_CHECKOUT,event_params:{button_label:"continue"}}),m.A.get("premiseId"),m.A.get("basketId"),`${m.A.get("postcode")}`.replace(" ",""),e=window.location.origin,t=(0,N.m)(e),r=`${t}/buy/init-checkout${D?"":"?apm=1"}`,T.push(r)},children:(0,n.jsx)(_.E,{color:"light",weight:"bold",children:"Continue to checkout"})})})]})})},P=(e,t)=>{let r=e?.[0]?.count,n="number"==typeof r&&r>h.NB;return t&&n?`${r.toString()} ${t}`:""}},44576:e=>{e.exports={"byob-product-carousel":"vm-byob-product-carousel_byob-product-carousel__mJ8FX","byob-product-carousel--align-center":"vm-byob-product-carousel_byob-product-carousel--align-center__S5_Ww"}},44592:(e,t,r)=>{"use strict";r.d(t,{default:()=>v});var n=r(95155),o=r(12115),i=r(11241),a=r(78107),s=r(10540),l=r(99003),c=r(94714),d=r(18401),u=r(51073),_=r(29722),p=r(5772),m=r(76348),h=r.n(m);let b=({genre:e,channels:t})=>(0,n.jsxs)("div",{className:h()["genre-container"],children:[(0,n.jsx)("h3",{children:e}),(0,n.jsx)("div",{className:"channels-grid",children:(0,n.jsx)(i.s,{gap:"md",wrap:"wrap",justify:"center",children:t.map(e=>(0,n.jsxs)("div",{className:h()["channel-item"],children:[(0,n.jsx)("div",{className:h()["channel-logo"],children:(0,n.jsx)(p.default,{src:e.filename,alt:`${e.name} logo`,title:e.name,width:145,height:81})}),(0,n.jsx)("h5",{children:e.name})]},e.id))})})]});var g=r(5560),f=r.n(g);let x=e=>{let{sbTvPackage:t}=e,r=t.genres.filter(e=>e.channels.length>0),[i,a]=(0,o.useState)(!1);return(0,n.jsxs)("div",{className:f()["vm-tv-listing-container"],children:[(0,n.jsx)("div",{className:(0,_.A)({[f()["vm-tv-listing"]]:!0,[f()["vm-tv-listing_show"]]:i||r.length<=2}),children:(0,n.jsx)("div",{className:"vm-tv-package",children:t.genres.map(e=>e.channels.length?(0,n.jsx)(b,{...e},e._uid):null)},t.id)}),r.length>2&&(0,n.jsx)(d.$,{variant:"tertiary",className:f()["view-all-button"],onClick:()=>{a(e=>!e)},icon:(0,n.jsx)(u.I,{icon:i?c.iL2:c.FFI}),children:i?"Hide Channels":"Show all Channels"})]})},v=({sbTvPackages:e})=>{let[t,r]=(0,o.useState)(0),[c,d]=(0,o.useState)(""),[u,_]=(0,o.useState)(e),{register:p}=(0,l.mN)({mode:"onChange"});(0,o.useEffect)(()=>{if(c){let t=c.toLowerCase();_(JSON.parse(JSON.stringify(e)).map(e=>{let r=JSON.parse(JSON.stringify(e));return r.genres.forEach(e=>{e.channels=e.channels.filter(e=>e.name.toLowerCase().includes(t))}),r}))}else _(e)},[c,e]);let m=(0,o.useMemo)(()=>u.map(e=>e.genres.reduce((e,t)=>e+t.channels.length,0)),[u]);return(0,n.jsxs)("form",{onSubmit:e=>e.preventDefault(),children:[(0,n.jsx)(a.FormInput,{type:"text",placeholder:"Channel name",className:f()["vm-tv-listing-input"],id:"channel-name",...p("tvListing",{onChange:e=>{let t=setTimeout(()=>{d(e.target.value)},1e3);return()=>clearTimeout(t)}})}),(0,n.jsx)(i.s,{className:f()["vm-tv-listing-buttons"],children:u.map((e,o)=>(0,n.jsx)("div",{className:f()["vm-tv-listing-button"],children:(0,n.jsxs)(s.t,{active:o===t,onClick:()=>r(o),children:[e.name,` (${m[o]})`]})},e.id))}),(0,n.jsx)(x,{sbTvPackage:u[t]})]})}},44705:(e,t,r)=>{"use strict";function n(e){if(!e)return;let t=e.split("/").pop()??e,r=t.lastIndexOf(".");return(r>0?t.slice(0,r):t).replace(/[^\w]/g,"")||void 0}r.d(t,{u:()=>n})},45067:e=>{e.exports={"daily-cost-splitter-container":"daily-price-splitter_daily-cost-splitter-container___J8Gg","daily-cost-calc-content":"daily-price-splitter_daily-cost-calc-content__5gJVO"}},45772:(e,t,r)=>{"use strict";function n(e){if(/https?:\/\/vm-upper-funnel-.+\.run\.app/.test(e))return"https://www.int.virginmedia.com";switch(e){case"http://localhost:4200":case"https://localhost:4200":case"https://int.red.vmo2digital.co.uk":case"https://www.int.virginmedia.com":return"https://www.int.virginmedia.com";case"https://stg.red.vmo2digital.co.uk":case"https://www.stage.virginmedia.com":return"https://www.stage.virginmedia.com";default:return"https://www.virginmedia.com"}}r.d(t,{m:()=>n})},46474:(e,t,r)=>{"use strict";r.d(t,{DynamoTileClient:()=>j});var n=r(95155),o=r(5772),i=r(98500),a=r.n(i),s=r(12115),l=r(96653),c=r(31725),d=r(97771),u=r(51073),_=r(89839),p=r(82567
69),m=r(29722),h=r(13161),b=r(4735),g=r.n(b);(0,s.forwardRef)(({children:e,className:t,icon:r,image:o,active:i,...a},s)=>(0,n.jsxs)("button",{className:(0,m.A)("tile",g()["uf-tile"],{"tile--active":i},t),ref:s,...a,children:[(r||o)&&(0,n.jsx)("span",{className:(0,m.A)("tile__icon",g()["uf-tile__icon"]),children:r||o}),(0,n.jsx)("span",{className:(0,m.A)("tile__text",g()["uf-tile__text"]),children:e})]})).displayName="TileButton";var f=r(69839),x=r(85592),v=r(3264),y=r.n(v);let j=({title:e,image:t,icon:r,href:i,hideTitle:b,allowedServiceablityTypes:g,modal:v})=>{let{availability:j}=(0,s.useContext)(x.s);if(g?.length===0)return null;let w=g?.includes("PRE_SVC"),N=g?.includes("POST_SVC");if(!(w&&N)&&(w&&j||!j&&N))return null;let k=(0,n.jsx)(h.Tile,{className:y().modalTitle,href:i,...i&&{as:a(),prefetch:f.Ad},icon:"object"==typeof r?(0,n.jsx)(u.I,{icon:r,size:"lg",color:"inherit","data-testid":"icon"}):void 0,image:t?(0,n.jsx)(o.default,{src:t.src,alt:t.alt,width:t.width,height:t.height,unoptimized:t.unoptimized}):void 0,hideTitle:b,children:(0,n.jsx)(p.E,{color:"inherit",children:e})});if(v?.length){let[e]=v;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.M,{asChild:!0,children:(0,n.jsx)("div",{children:(0,n.jsx)(_.ModalTrigger,{className:(0,m.A)(y().tile,y()["modal-anchor"]),children:k})})}),(0,n.jsxs)(_.Modal,{children:[(0,n.jsxs)(_.ModalHeader,{children:[(0,n.jsx)(_.ModalTitle,{children:e.title}),(0,n.jsx)(_.ModalCloseButton,{})]}),(0,n.jsx)(_.ModalBody,{children:e.body.map(({_uid:e,content:t})=>(0,n.jsx)(c.SY,{document:t,StoryblokComponent:l.Dp},e))})]})]})}return(0,n.jsx)("div",{className:y().tile,children:k})}},46496:(e,t,r)=>{"use strict";r.d(t,{ProductInfoManual:()=>C});var n=r(95155),o=r(98500),i=r.n(o),a=r(12115),s=r(94714),l=r(18401),c=r(11241),d=r(51073),u=r(82567),_=r(29722),p=r(65305),m=r(69839),h=r(40217),b=r(75747),g=r(32493),f=r(92790),x=r(54046),v=r(70186),y=r(11247),j=r(13941),w=r(42126),N=r(51948),k=r(2439),E=r.n(k),S=r(35228);let T={name:"volt",content:{active:!0,banner_text:"Volt benefits unlocked",banner_colour:"volt"}},C=()=>{let[e,t]=(0,a.useState)(void 0),{open:r,selectedBundle:o,setOpen:k}=(0,j.b)(),C=(0,h.p)();if((0,a.useEffect)(()=>{if(r)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){r!==p.Qb.NONE&&"Escape"===e.key&&(e.preventDefault(),k({open:p.Qb.NONE}))}},[r]),!o||o.msaBundle)return null;let{sbBundle:A}=o,I=(0,v.M)(A),P=(0,x.gN)(I),M=A.content.additional_content[0].title,O=(0,f.Q)(P,M,void 0,C),B=(0,g.E0)(M,P,!1),L=A.content.additional_content.find(({component:e})=>"dynamo_button"===e).link.url,D=(0,b.Z)(A.name);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y._,{className:E()["product-info"],instance:p.Qb.PRODUCT_INFO_MANUAL,children:[(0,n.jsxs)(c.s,{justify:"center",className:E()["product-info_title"],children:[(0,n.jsx)(c.s,{justify:"center",align:"center",children:(0,n.jsx)(u.E,{size:"T400",weight:"bold",align:"center",children:"Your selection"})}),(0,n.jsx)(l.$,{"data-testid":"drawer-close",className:E()["button-close"],onClick:()=>{k({open:p.Qb.NONE})},children:(0,n.jsx)(d.I,{icon:s.dQv,size:"md"})})]}),(0,n.jsxs)("div",{className:E()["product-info_scrollable"],children:[(0,n.jsxs)(c.s,{className:E()["product-info_summary"],direction:"column",children:[(0,n.jsx)(S.o,{sale:T}),(0,n.jsx)(c.s,{direction:"column",children:(0,n.jsx)(u.E,{size:"T500",children:M})})]}),(0,n.jsxs)(c.s,{direction:"column",className:(0,_.A)({[E()["product-info_items"]]:!0,[E()["product-info_items--closed"]]:e}),children:[(0,n.jsx)(N.W,{expandable:!1,open:!0,setInfo:t,description:{name:"What's included",ufDescription:A.content.description}}),B?.map(e=>(0,n.jsx)(N.W,{setInfo:t,description:{name:"Volt benefits unlocked",ufDescription:e.xsus_description},iconUrl:"/vm-upper-funnel/assets/icons/extra-benefits.svg"},e.name))]})]}),(0,n.jsxs)(c.s,{className:E()["product-info_footer--manual"],children:[(0,n.jsx)(c.s,{className:E()["product-info_footer-images"],children:(0,n.jsx)(w.S_,{photos:O})}),(0,n.jsx)(c.s,{direction:"column",justify:"around",className:E()["product-info_footer-price"],children:D&&(0,n.jsx)(l.$,{variant:"destructive",rounded:"xl",asChild:!0,className:E()["product-info_footer-button--manual"],children:(0,n.jsx)(i(),{href:L,prefetch:m.Ad,children:D})})})]})]}),r&&(0,n.jsx)("button",{type:"button","aria-label":"Close","data-testid":"drawer-background",onClick:()=>{k({open:p.Qb.NONE})},className:E()["product-info_background"]}
69)]})}},47277:(e,t,r)=>{"use strict";r.d(t,{o:()=>c});var n=r(95155),o=r(89839),i=r(29722),a=r(96067),s=r(61119),l=r.n(s);let c=({children:e,title:t,text:r,button:s,onLinkClick:c,className:d,...u})=>{let{setContent:_}=(0,a.useProductsModal)();return(0,n.jsx)(o.ModalButton,{...u,className:l()["modal-link-anchor-reset-button"],onClick:()=>{_({title:t,text:r,button:s}),c?.()},children:(0,n.jsx)("span",{className:(0,i.A)(l()["modal-link"],d),color:"custom-link",children:e})})}},48345:(e,t,r)=>{"use strict";r.d(t,{BundlesCarousel:()=>f});var n=r(95155),o=r(12115),i=r(42737),a=r(89810),s=r(69839),l=r(85592),c=r(18829),d=r(12180),u=r(15355),_=r(42126),p=r(97297),m=r(96067),h=r(2955),b=r.n(h);let g=({theme:e,bundles:t,cardType:r,breakpoints:a,updateBreakpointsDynamically:p,spaceBetween:m,speed:h,allowCustomise:g,enableNetflixModalChat:f})=>{let{availability:x}=(0,o.useContext)(l.s),{isAnyItemOpen:v}=(0,d.I)(),{validBundles:y}=t;(0,o.useEffect)(()=>{let e=y.length,t=y.map(({sbBundle:e,msaBundle:t,flashSales:r})=>(0,u.Cz)(t,e,r,x?.deliveryMethod));(0,c.A)(s.bk.ECOMMERCE,{event_name:s.qy.ECOMMERCE_RESULTS,event_params:{filter_options:void 0,page_journey:"none",price_engine_recommendation:"none",pricing_engine_request_id:"",product_count:e.toString(),sort_options:void 0},ecommerce:{item_list_id:"sales_none_product_listing",item_list_name:"sales none product listing",items:t}})},[]);let j=y.map(({sbBundle:e,msaBundle:t,flashSales:o})=>({children:(0,n.jsx)(_.AA,{cardType:r,flashSales:o,msaBundle:t,sbBundle:e,forceMobile:"landscape"===r,allowCustomise:g,enableNetflixModalChat:f},t.bundleId)}));return(0,n.jsx)("div",{className:`${b()["bundles-carousel"]} ${v?b()["has-open-item"]:""}`,children:(0,n.jsx)(i.Carousel,{theme:e,slides:j,breakpoints:a,updateBreakpointsDynamically:p,spaceBetween:m,speed:h,autoHeight:"landscape"===r})})},f=e=>(0,n.jsx)(a.ModalProvider,{children:(0,n.jsxs)(m.ProductsModalProvider,{children:[(0,n.jsx)(d.OpenItemsProvider,{children:(0,n.jsx)(g,{...e})}),(0,n.jsx)(p.ProductsModal,{})]})})},48399:(e,t,r)=>{"use strict";r.d(t,{t:()=>b});var n=r(95155),o=r(5772),i=r(12115),a=r(96653),s=r(54505),l=r(11241),c=r(82567
69),d=r(16420),u=r(40217),_=r(9604),p=r(29081),m=r(26271),h=r.n(m);let b=({images:e,text:t,instance:r="modal"})=>{let m=(0,u.p)(),b=(0,p.Og)("modal-images","modal-text"),g=e?.map(e=>(0,_.G)(e,m??void 0)).filter(e=>void 0!==e);return(0,n.jsxs)(n.Fragment,{children:[g?.length?(0,n.jsx)(l.s,{className:h()["modal-images-container"],...b["modal-images"],children:g.map(e=>(0,n.jsx)(o.default,{src:e.src,alt:e.alt,width:100,height:50},e.src))}):null,t?.map(({title:e,title_alignment:t,title_color:o,title_size:l,title_weight:u,content:_})=>(0,n.jsxs)(i.Fragment,{children:[e&&(0,n.jsx)(c.E,{align:t||void 0,color:o||void 0,size:l,weight:u||void 0,children:e}),_&&(0,n.jsx)(s.e,{className:h()["modal-text"],...b["modal-text"],children:(0,n.jsx)(d.S,{document:_,StoryblokComponent:a.Dp})})]},`${e}-${r}`))]})}},48515:e=>{e.exports={"product-card-container":"product-card-portrait_product-card-container__LVhHf","product-card-volt":"product-card-portrait_product-card-volt__6v3ii","manual-card-link":"product-card-portrait_manual-card-link__6ep_k"}},48920:(e,t,r)=>{"use strict";function n(e,t){if(t?.filename)return t;let r=e?.content?.Flare?.filename||"https://a.storyblok.com/f/278166/229x74/d42dad559e/m100_flare_c97619d237.svg",n=e?.name;return{filename:r?.toString(),alt:n?.toString()||"flare image",id:1,copyright:null,name:n?.toString()||"flare image",focus:null,title:n?.toString()||"flare image",fieldtype:"asset",meta_data:{},is_external_url:!0}}r.d(t,{k:()=>n})},48956:e=>{e.exports={page:"dynamo-dynamic-page_page__9awUL",page__header:"dynamo-dynamic-page_page__header__BUY2Z",page__body:"dynamo-dynamic-page_page__body__YRn9z",page__footer:"dynamo-dynamic-page_page__footer__I1ajW"}},48997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Hero:()=>M});var n,o=r(95155),i=r(29722),a=r(27231),s=r.n(a);let l=({children:e,heroImgStyles:t,isDesktop:r})=>(0,o.jsx)("div",{style:t,className:(0,i.A)({[s()["hero-banner__background-container"]]:!0,[s()["hero-banner__background-container--mobile"]]:!r,[s()["hero-banner__background-container--desktop"]]:r}),children:e});var c=r(66415),d=r.n(c);let u=({errors:e})=>e?.messages&&0!==e.messages.length?(0,o.jsxs)("div",{"data-testid":"hero-image-overlay-errors",className:d()["hero-banner__debug"],children:[(0,o.jsx)("small",{children:(0,o.jsx)("small",{children:"[ERROR]"})}),(0,o.jsx)("h4",{style:{marginBlock:"4px"},children:"HERO IMAGE IS HIDDEN"}),(0,o.jsx)("p",{children:"Some errors occurred while loading the text overlay:"}),(0,o.jsx)("ol",{children:e.messages.map(e=>(0,o.jsx)("li",{children:e},e))})]}):null;var _=r(29081),p=((n={}).PURPLE_PINK_1="purple-pink-1",n.PURPLE_PINK_2="purple-pink-2",n.PURPLE_PINK_3="purple-pink-3",n.BLUE_GREEN_1="blue-green-1",n.BLUE_GREEN_2="blue-green-2",n.BLUE_GREEN_3="blue-green-3",n.ORANGE_YELLOW_1="orange-yellow-1",n.ORANGE_YELLOW_2="orange-yellow-2",n.ORANGE_YELLOW_3="orange-yellow-3",n.BLUE_PURPLE_1="blue-purple-1",n.BLUE_PURPLE_2="blue-purple-2",n.BLUE_PURPLE_3="blue-purple-3",n.PINK_RED_1="pink-red-1",n.PINK_RED_2="pink-red-2",n.PINK_RED_3="pink-red-3",n);let m={"purple-pink-1":{path:"https://a.storyblok.com/f/253875/2097x2911/7fe45ce4e9/left-001.svg",align:"left",speed:.525},"purple-pink-2":{path:"https://a.storyblok.com/f/253875/2265x991/2ad0982384/left-002.svg",align:"left",speed:.5},"purple-pink-3":{path:"https://a.storyblok.com/f/253875/1227x449/d0e0bc9145/right-001.svg",align:"right",speed:.6},"blue-green-1":{path:"https://a.storyblok.com/f/253875/586x337/740c50de1d/left-001.svg",align:"left",speed:.333},"blue-green-2":{path:"https://a.storyblok.com/f/253875/842x240/f0cebdc207/left-002.svg",align:"left",speed:.5},"blue-green-3":{path:"https://a.storyblok.com/f/253875/758x1268/ebb5a0ed30/right-001.svg",align:"right",speed:.16},"orange-yellow-1":{path:"https://a.storyblok.com/f/253875/1019x954/1151e506d3/left-001.svg",align:"left",speed:1},"orange-yellow-2":{path:"https://a.storyblok.com/f/253875/506x386/0705a0f0d2/right-001.svg",align:"right",speed:.13},"orange-yellow-3":{path:"https://a.storyblok.com/f/253875/1578x586/42e1791b35/right-002.svg",align:"right",speed:.333},"blue-purple-1":{path:"https://a.storyblok.com/f/253875/670x967/d3183dbc7b/left-001.svg",align:"left",speed:.333},"blue-purple-2":{path:"https://a.storyblok.com/f/253875/826x319/442d45e9f7/right-001.svg",align:"right",speed:.13},"blue-purple-3":{path:"https://a.storyblok.com/f/253875/513x492/8f1e3e0dca/right-002.svg",align:"right",speed:.333},"pink-red-1":{path:"https://a.storyblok.com/f/253875/945x727/ffa9f7822c/left-001.svg",align:"left",speed:1},"pink-red-2":{path:"https://a.storyblok.com/f/253875/1916x1502/bf0f446802/right-001.svg",align:"right",speed:.13},"pink-red-3":{path:"https://a.storyblok.com/f/253875/1025x1682/135f2ed7bb/right-002.svg",align:"right",speed:.333}};var h=r(5772),b=r(12115),g=r(13975),f=r(40217),x=r(41463);let v=/https:\/\/a\.storyblok\.com\/f\/\d+\/(\d+)x(\d+)\//;var y=r(42391),j=r.n(y);let w=({id:e,config:t})=>{var r;let n,a=(0,_.Og)("hero-banner-flare-image"),{y:s}=(0,g.A)(),[l,c]=(0,b.useState)(0),d=(0,b.useRef)(null);(0,b.useEffect)(()=>{let e=s||0,r=d.current?.parentElement?.parentElement?.parentElement;c(Math.min(Math.max(e/(r?.clientHeight||0)*100,0),100)/100*t.speed||0)},[s,d]);let u=(r=t.path,n=(0,f.p)(),((e,t)=>{if(!e)return null;let r=v.exec(e);if(!r)return console.error("ngStoryblok: INVALID_IMG_FILENAME"),null;let[,n,o]=r,i=e,a=t??x?.env?.CDN_DOMAIN;if(a)try{let t=new URL(e);t.hostname=a,i=t.toString()}catch(t){console.warn("coerceDamImage: Failed to parse image URL - falling back to original",{image:e,error:t})}return{src:i,width:+n,height:+o,unoptimized:e.includes(".svg")}})(r,(void 0)??n??void 0));if(!u)return null;let m=![p.BLUE_GREEN_1,p.BLUE_GREEN_2,p.BLUE_GREEN_3,p.PINK_RED_1,p.PINK_RED_2,p.PINK_RED_3,p.ORANGE_YELLOW_1,p.ORANGE_YELLOW_2,p.ORANGE_YELLOW_3,p.PURPLE_PINK_1,p.PURPLE_PINK_2,p.PURPLE_PINK_3].includes(e);return(0,o.jsx)("div",{className:(0,i.A)({[j()["hero-banner-flare"]]:!m,[j()["hero-banner-flare--blueGreen-0"]]:e===p.BLUE_GREEN_1,[j()["hero-banner-flare--blueGreen-1"]]:e===p.BLUE_GREEN_2,[j()["hero-banner-flare--blueGreen-2"]]:e===p.BLUE_GREEN_3,[j()["hero-banner-flare--purplePink-0"]]:e===p.PURPLE_PINK_1,[j()["hero-banner-flare--purplePink-1"]]:e===p.PURPLE_PINK_2,[j()["hero-banner-flare--purplePink-2"]]:e===p.PURPLE_PINK_3,[j()["hero-banner-flare--bluePurple-0"]]:e===p.BLUE_PURPLE_1,[j()["hero-banner-flare--bluePurple-1"]]:e===p.BLUE_PURPLE_2,[j()["hero-banner-flare--bluePurple-2"]]:e===p.BLUE_PURPLE_3,[j()["hero-banner-flare--orangeYellow-0"]]:e===p.ORANGE_YELLOW_1,[j()["hero-banner-flare--orangeYellow-1"]]:e===p.ORANGE_YELLOW_2,[j()["hero-banner-flare--orangeYellow-2"]]:e===p.ORANGE_YELLOW_3,[j()["hero-banner-flare--pinkRed-0"]]:e===p.PINK_RED_1,[j()["hero-banner-flare--pinkRed-1"]]:e===p.PINK_RED_2,[j()["hero-banner-flare--pinkRed-2"]]:e===p.PINK_RED_3,[j()["hero-banner-flare-legacy"]]:m,[j()["hero-banner-flare-legacy--position-left"]]:"left"===t.align&&m,[j()["hero-banner-flare-legacy--position-right"]]:"right"===t.align&&m}),style:{"--_rotate":l},children:(0,o.jsx)(h.default,{src:u.src,...a["hero-banner-flare-image"],alt:"",width:u.width,height:u.height,unoptimized:u.unoptimized,ref:d,priority:!0,suppressHydrationWarning:!0})})};var N=r(6024),k=r.n(N);let E=({flares:e})=>{let t=(0,_.Og)("hero-banner-flares");return e?.length?(0,o.jsx)("div",{className:k()["hero-banner__flares"],...t["hero-banner-flares"],children:e?.map(e=>({id:e,config:m[e]}
69)).filter(e=>!!e.config).map(({id:e,config:t})=>(0,o.jsx)(w,{id:e,config:t},e))}):null};var S=r(76140),T=r.n(S);let C=({image:e,overlay:t,overlayCRO:r,isLandscape:n,optimizedLoader:a,layout:s})=>{let[l,c]=(0,b.useState)(!1),d=(0,_.Og)("hero-banner-image");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.default,{sizes:"100vw","data-testid":"hero-image",...d["hero-banner-image"],className:(0,i.A)({[T()["hero-banner__background-image"]]:!0,[T()["hero-banner__background-image--landscape"]]:n,[T()["hero-banner__background-image--split"]]:"split"===s,[T()["hero-banner__background-image--full"]]:"full"===s}),fill:!0,loader:a,src:e.src,alt:e.alt,priority:!0,onLoad:()=>c(!0)}),t&&(0,o.jsx)("div",{"data-testid":"hero-image-overlay",className:(0,i.A)({"page-bundle-data":!0,[T()["hero-banner__text-overlay"]]:!0,[T()["hero-banner__text-overlay--split"]]:"split"===s,[T()["hero-banner__text-overlay--full"]]:"full"===s,[T()["hero-banner__hidden"]]:!l}),dangerouslySetInnerHTML:{__html:t}}),r&&(0,o.jsx)("div",{className:(0,i.A)({"cro-bundle-data":!0,[T()["hero-banner__text-overlay"]]:!0,[T()["hero-banner__text-overlay--split"]]:"split"===s,[T()["hero-banner__text-overlay--full"]]:"full"===s,[T()["hero-banner__hidden"]]:!l}),dangerouslySetInnerHTML:{__html:r}})]})};var A=r(89635),I=r(37955),P=r.n(I);let M=({backgroundColour:e="primary",layout:t="full",children:r,underNavigation:n,flares:a,imageLg:s,imageMd:c,imageSm:d,bottomCurve:p,viewport:m="desktop"})=>{let h,{isDesktop:g,isTablet:f}=(()=>{let[e,t]=(0,b.useState)({isTablet:!1,isDesktop:!1});return(0,A.s)(()=>{t({isTablet:window.innerWidth>=768&&window.innerWidth<992,isDesktop:window.innerWidth>=992})}),e})(),x=(0,_.Og)("hero-banner-image","hero-banner","hero-banner-flares");h=g?s||c||d:f?c||d||s:d;let v=h?.image,y=`${Number(v?.width)} / ${Number(v?.height)}`,j=Number(v?.width)/Number(v?.height),w={"--aspect-ratio":y},N=` 70 :root { 71 --hero-background-color: ${"none"===e?"white":"transparent"}; 72 } 73 `,k={"hero-banner--background-primary":"primary"===e,"hero-banner--background-secondary":"secondary"===e,"hero-banner--background-tertiary":"tertiary"===e,[P()["hero-banner--background-grey"]]:"grey"===e,"hero-banner--background-black":"black"===e,[P()["hero-banner--background-red"]]:"red"===e,[P()["hero-banner--background-purple"]]:"purple"===e,[P()["hero-banner--background-none"]]:"none"===e},S={[P()["hero-banner--layout-full"]]:"full"===t,[P()["hero-banner--layout-split"]]:"split"===t},T={[P()["hero-banner--under-navigation"]]:n,[P()["hero-banner--bottom-curve"]]:p}
73,I=v&&(0,o.jsx)(C,{image:v,overlay:h?.overlay,overlayCRO:h?.overlayCRO,isLandscape:j>1.5,optimizedLoader:"split"===t?({src:e,quality:t=90})=>`${e}/m/${({desktop:"1000x0",tablet:"800x0",mobile:"600x0"})[m]}/filters:quality(${t})`:void 0,layout:t}),M=I&&(0,o.jsx)(l,{heroImgStyles:w,isDesktop:g,children:I}),O=` 74 :root { 75 --menu-color: ${void 0===e?"black":""}; 76 --menu-color-hover: ${"none"===e?"black":"white"}; 77 } 78 `;return(0,o.jsxs)("div",{"data-testid":"hero",...x["hero-banner"],className:(0,i.A)("hero-banner",P()["uf-hero-banner"],{...k,...S,...T}),style:w,children:[(0,o.jsx)("style",{children:O}),(0,o.jsx)("style",{children:N}),(0,o.jsx)(E,{flares:a}),(0,o.jsxs)("div",{"data-testid":"hero-container",className:(0,i.A)("hero-banner__container",P()["uf-hero-banner__container"],{[P()["hero-banner__container--layout-full"]]:"full"===t,[P()["hero-banner__container--layout-split"]]:"split"===t}),children:["split"===t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:P()["hero-banner__container--split-content"],children:(0,o.jsx)("div",{className:P()["hero-banner__container--children-wrapper"],children:r})}),(0,o.jsx)("div",{className:P()["hero-banner__container--split-image"],children:I})]}),"full"===t&&(0,o.jsxs)(o.Fragment,{children:[r,M]})]}),(0,o.jsx)(u,{errors:h?.errors})]})}},49105:e=>{e.exports={drawer:"drawer_drawer__MASoL",open:"drawer_open__bMXmn","drawer--left-position":"drawer_drawer--left-position__AOb64"}},49146:e=>{e.exports={postcodeFormContainer:"postcode-capture_postcodeFormContainer__W6G3V",postcodeFormContainer_success:"postcode-capture_postcodeFormContainer_success__JBQyQ",errorMessage:"postcode-capture_errorMessage__jqIXo",loaderContainer:"postcode-capture_loaderContainer__6Aqlq",postcodeForm:"postcode-capture_postcodeForm___m8Og",title:"postcode-capture_title__R_jDn",row:"postcode-capture_row__XSwmv",error:"postcode-capture_error__CjGlE","postcodeForm--layout-split":"postcode-capture_postcodeForm--layout-split__T1u6U","error-container":"postcode-capture_error-container__FY1Vn",postcodeForm__button:"postcode-capture_postcodeForm__button__XW1_7","postcode-checker__default":"postcode-capture_postcode-checker__default__nAKCe",postcodeForm__error:"postcode-capture_postcodeForm__error__N4u_u","postcode-checker__error-label":"postcode-capture_postcode-checker__error-label__dD_Gh","postcode-checker__error-label--postcode-error-msg":"postcode-capture_postcode-checker__error-label--postcode-error-msg__bBehk","error-content":"postcode-capture_error-content__HIyY8","align-left":"postcode-capture_align-left__BwdeM","postcode-checker__error-label--postcode-error-msg--address":"postcode-capture_postcode-checker__error-label--postcode-error-msg--address___gj3C"}},49209:e=>{e.exports={"basket-notification-container":"basket-notification_basket-notification-container__rwsiT","basket-notification-container--entering":"basket-notification_basket-notification-container--entering__V_qTm","basket-notification-container--visible":"basket-notification_basket-notification-container--visible__Qw_Dt","basket-notification-container--exiting":"basket-notification_basket-notification-container--exiting__rqzds","basket-notification":"basket-notification_basket-notification__QONbJ","basket-notification-content":"basket-notification_basket-notification-content__0L9b0","basket-notification-header":"basket-notification_basket-notification-header__eRKnk","basket-notification-header-text":"basket-notification_basket-notification-header-text__A7mh4","basket-notification-details":"basket-notification_basket-notification-details__qSRBv","basket-notification-image":"basket-notification_basket-notification-image__NwaoU","basket-notification-text-content":"basket-notification_basket-notification-text-content__cKmQF","basket-notification-title":"basket-notification_basket-notification-title__fMlIG","basket-notification-description":"basket-notification_basket-notification-description__E2MAp","basket-notification-purple":"basket-notification_basket-notification-purple__rgaE6"}},51504:e=>{e.exports={"media-wrapper":"BundleImage_media-wrapper__IxSWy","media-image":"BundleImage_media-image__0G0XF","media-content":"BundleImage_media-content__m50JE","media-logo":"BundleImage_media-logo__IaFSS",landscape:"BundleImage_landscape__gCFn5",portrait:"Bu
78ndleImage_portrait__t7wii","media-title":"BundleImage_media-title__iT5Ka","media-description":"BundleImage_media-description__UujX0"}},51600:e=>{e.exports={container:"vm-product-price-filter_container__pGjCA"}},51948:(e,t,r)=>{"use strict";r.d(t,{W:()=>b});var n=r(95155),o=r(5772),i=r(12115),a=r(96653),s=r(11389),l=r(18401),c=r(11241),d=r(51073),u=r(29722),_=r(16420),p=r(29081),m=r(41780),h=r.n(m);let b=({description:e,iconUrl:t,className:r,open:m=!1,setInfo:b,expandable:g=!0})=>{let f=(0,p.Og)("drawer-product-info-item-section","drawer-product-info-item-accordion","drawer-product-info-item-icon","drawer-product-info-item-title","drawer-product-info-item-chevron","drawer-product-info-item-description","drawer-product-info-item-modal-link"),[x,v]=(0,i.useState)(m);return(0,n.jsxs)(c.s,{direction:"column",className:`${h().pill} ${r}`,...f["drawer-product-info-item-section"],children:[(0,n.jsx)(l.$,{className:(0,u.A)({[h().pill_title_button]:!0,[h()["pill_title_button--open"]]:x,[h()["pill_title_button--expandable"]]:g}),onClick:()=>{g&&v(!x)},...f["drawer-product-info-item-accordion"],children:(0,n.jsxs)(c.s,{className:h().pill_title,children:[t&&(0,n.jsx)(o.default,{className:h().pill_icon,unoptimized:!0,alt:`${e?.productType} icon`,src:t,width:16,height:16,...f["drawer-product-info-item-icon"]}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e?.name??""},...f["drawer-product-info-item-title"]}),g&&(0,n.jsx)(d.I,{className:h()["pill_title_arrow-icon"],icon:s.SUl,size:"md",...f["drawer-product-info-item-chevron"]})]})}),(0,n.jsxs)("div",{className:(0,u.A)({[h().pill_description]:!0,[h()["pill_description--open"]]:x}),...f["drawer-product-info-item-description"],children:["string"==typeof e?.ufDescription?(0,n.jsx)("div",{"data-testid":"pill-text-description",dangerouslySetInnerHTML:{__html:e?.ufDescription}}):e?.ufDescription&&(0,n.jsx)("div",{children:(0,n.jsx)(_.S,{document:e.ufDescription,StoryblokComponent:a.Dp})}),e?.modals?.[0]?.linkText&&(0,n.jsx)(l.$,{"data-testid":"button-link",...f["drawer-product-info-item-modal-link"],className:`button-link ${h().pill_description_button_link}`,onClick:()=>{b({title:e?.modals?.[0]?.title??"",content:e?.modals?.[0]?.text??[],images:e?.modals?.[0]?.images??[]})},children:e?.modals?.[0]?.linkText})]})]})}},51970:(e,t,r)=>{"use strict";r.d(t,{BasketContextProvider:()=>s,D:()=>c});var n=r(95155),o=r(12115);let i=(0,o.createContext)(void 0),a=[],s=({initialBasket:e,initialBundleCounts:t=a,children:r})=>{let[s,l]=(0,o.useState)(e?{basketPricing:e}:void 0),c=(0,o.useMemo)(()=>({basket:s,setBasket:l,bundleCounts:t}),[s,t]);return(0,n.jsx)(i.Provider,{value:c,children:r})},l={basket:void 0,setBasket:()=>{},bundleCounts:[]},c=()=>(0,o.useContext)(i)??l},52911:(e,t,r)=>{"use strict";r.d(t,{S:()=>c});var n=r(95155),o=r(98500),i=r.n(o),a=r(12115),s=r(35413),l=r(69839);let c=(0,a.memo)(({document:e,StoryblokComponent:t})=>(0,s.XX)(e,{defaultBlokResolver:(e,r)=>{let o={...r,component:e};return(0,n.jsx)(t,{blok:o},r._uid)},markResolvers:{link:(e,t)=>(0,n.jsx)(i(),{href:t.href??"",...Object.entries(t).filter(([e])=>"linktype"!==e).reduce((e,[t,r])=>{if("story"===t){if(!r?.full_slug)return e;let t=r.full_slug.replace("/protected/","/");return{...e,href:`${t}`}}return"href"===t?"href"in e?e:{...e,href:r}:{...e,[t]:r}},{}),prefetch:l.Ad,children:e})},nodeResolvers:{[s.Uv]:(e,t={})=>{let{className:r}=t;return(0,n.jsx)("p",{className:r,children:e})}}}));c.displayName="RenderRichText"},53165:(e,t,r)=>{"use strict";r.r(t),r.d(t,{MediaBundle:()=>m});var n=r(95155),o=r(5772),i=r(12115),a=r(82567),s=r(29722),l=r(65305),c=r(60513),d=r(29081),u=r(67270),_=r(61375),p=r.n(_);let m=({photos:e,title:t,description:r,logo:_,orientation:m,rounded:h})=>{let b=e.filter(e=>e.productType&&e.productType!==l.po.NONPRODUCT),g=(0,u.G)(_?{filename:_}:void 0);return(0,n.jsx)(n.Fragment,{children:b.map(({vertical:e,horizontal:l,_uid:u})=>{let _;return _="horizontal"===m?[l]:"vertical"===m?[e]:[e,l],(0,n.jsx)(i.Fragment,{children:_.map((e,i)=>{let l="horizontal"===m||1===i;return(0,n.jsx)("div",{className:(0,s.A)(p()["media-bundle__wrapper"],{[p()["media-bundle__wrapper--horizontal"]]:l,[p()["media-bundle__wrapper--fixed-orientation"]]:!!m}),children:(0,n.jsxs)("div",{className:p()["media-bundle__img-wrapper"],...(0,d.sE)("product-card-horizontal-bundle-image",null),children:[(0,n.jsx)(o.default,{unoptimized:!0,alt:e?.alt??"",src:e?.src??"",width:l?218:264,height:l?334:212}),(0,n.jsxs)("div",{className:p()["media-bundle__content-wrapper"],children:[g?(0,n.jsx)(c.W,{src:g.src,width:g.width,height:g.height,alt:`Channel logo: ${g.alt??""}`,className:p()["media-bundle__logo-wrapper"]}):null,t&&(0,n.jsx)(a.E,{color:"light",className:p()["media-bundle__title"],children:t}),r&&(0,n.jsx)(a.E,{color:"light",className:p()["media-bundle__description"],children:r})]})]})},e?.src.toString())})},u)})})}},53279:(e,t,r)=>{"use strict";r.d(t,{StudentPriceSplitter:()=>u});var n=r(95155),o=r(12115),i=r(94714),a=r(27710),s=r(51073),l=r(58512),c=r(35375),d=r.n(c);let u=({isActive:e})=>{let t=(0,o.useMemo)(()=>[...Array.from({length:9},(e,t)=>({label:`${t+2} people`,value:t+2})),{label:"No split",value:0}],[]),r=(0,l.z)(),c=(0,l.l)(),u=(0,o.useCallback)(e=>{c(Number(e.target.value))},[c]);return((0,o.useEffect)(()=>{e||c(-1)},[e,c]),e)?(0,n.jsxs)("div",{className:d()["student-splitter-container"],children:[(0,n.jsxs)("div",{className:d()["student-splitter-label"],children:[(0,n.jsx)(s.I,{icon:i.Gsu,color:"info",size:"lg",className:d()["student-splitter-label-icon"]}),(0,n.jsx)("span",{children:"Split the cost between:"})]}),(0,n.jsx)("div",{className:d()["student-splitter-field"],children:(0,n.jsx)(a.a,{style:{backgroundColor:"var(--color-white)"},hideLabels:!0,id:"splitCost",name:"splitCost",label:"Split the cost between:",onChange:u,value:r,children:t.map(({value:e,label:t})=>(0,n.jsx)("option",{value:e,children:t},e))})})]}):null}},53471:e=>
78{e.exports={"shoping-cart-button":"shopping-cart-button_shoping-cart-button__E67rR","shoping-cart-check":"shopping-cart-button_shoping-cart-check__MOlCF","shopping-cart-from":"shopping-cart-button_shopping-cart-from__oGOK2"}},53656:(e,t,r)=>{"use strict";function n(e,t,r){let n=t?.id,o=n?r[n]:void 0;if(t&&!o&&console.warn("Missing Storyblok product for addon:",t.id,t.name),e&&!o){let t=e?.products?.find(e=>e.productDisplayGroup?.includes("sky_picks")),n=t?.productCode;(o=n?r[n]:void 0)||console.warn("Missing Storyblok product for bundle sky product:",n,t?.productName)}return o}r.d(t,{l:()=>n})},53713:e=>{e.exports={"netflix-webchat-button":"modal-netflix-webchat_netflix-webchat-button__c17of"}},53823:(e,t,r)=>{"use strict";r.d(t,{cQ:()=>a,sl:()=>s,yj:()=>i});var n=r(65305),o=r(30710);function i(e){let t=e?.sbProducts,r=e?.bundleBlok?.content?.products,i=e?.basketPricing?.products?.filter(e=>e.bundleProduct&&e.productDisplayGroup?.indexOf(n.jT.SHOW_AS_ADDON)===-1&&e.productCategory!==n.pu.SIM||e.productGroup?.includes("netflix_enrol")).map(e=>({...e,blok:r?.find(t=>t.slug===e.productCode)||r?.find(t=>t.slug.includes(e.productCode)&&e.classification===n.ZE.CORE)||t?.find(t=>t.slug===e.productCode)})),a=e?.basketPricing?.totalMonthlyCosts?.vmBundle?.[0].amount,s=e?.basketPricing?.contract?.term,l=1===s?"30-day rolling contract":`${s}-month contract`,c=`(${l})`,d="";void 0!==s&&s>1&&(d=(e=>{if(!e||0===e.length)return"";if(1===e.length){let t=e[0];return`${(0,o.a7)(t.amount)} a month`}if(3===e.length){let t=e[0];return`${(0,o.a7)(t.amount)} for ${t.duration} months. Then ${(0,o.a7)(e[1].amount)} a month.`}let t=e[0],r=t?.duration??0;return`${(0,o.a7)(t?.amount)} a month for ${r} months`})(e?.basketPricing?.totalMonthlyCosts?.vmBundle??[]));let u=e?.bundleBlok?.name;return{products:i,subtotal:Number(a),contract:c,contractTerm:e?.basketPricing?.contract?.term,name:u,recurringAmountInfo:d}}function a(e){let t=e?.bundleBlok?.content?.products,r=e?.basketPricing?.products?.filter(e=>e.bundleProduct&&e.classification===n.ZE.CORE&&e.productCategory===n.pu.SIM).map(e=>({...e,blok:t?.find(t=>t.slug===e.productCode)})),i=r?.reduce((e,t)=>e+Number(t?.prices?.find(({chargeType:e})=>e===n.e$.RECURRING_CHARGE)?.price.amount),0),a=e?.basketPricing?.totalMonthlyCosts?.sim||[],s=a.length>=2&&a[0]?.duration?{amount:(0,o.$g)(a[1]?.amount),afterDurationInMonths:a[0]?.duration||0}:null,l=a[0],c=l?.amount&&parseFloat(l?.amount)>0||s;return{hasProducts:!!(r?.length&&r?.length>0&&c),products:r,subtotal:Number(i),discountedSim:s,simPricing:l}}function s(e){let t=e?.sbProducts,r=e?.basketPricing?.products?.filter(e=>e.classification===n.ZE.ADD_ON&&(!!e.prices?.find(({chargeType:e})=>e===n.e$.RECURRING_CHARGE)||e.inferredDeltaPrice)).map(e=>({...e,contract:e.contract||{term:1},blok:t?.find(t=>t.slug===e.productCode)})),o=r?.reduce((e,t)=>(Array.isArray(e[t.contract.term])?e[t.contract.term].push(t):e[t.contract.term]=[t],e),{}),i=r?.reduce((e,t)=>e+Number(t?.prices?.find(({chargeType:e})=>e===n.e$.RECURRING_CHARGE)?.price.amount),0);return{hasProducts:!!(r?.length&&r?.length>0),byTerms:o,products:r,subtotal:Number(i)}}},53952:e=>{e.exports={"tv-filter-container":"vm-tv-filter_tv-filter-container__WVP9_","tv-filter-form-container":"vm-tv-filter_tv-filter-form-container__ovFaE","tv-addon-filter-items":"vm-tv-filter_tv-addon-filter-items__7VD7H","tv-filter-options":"vm-tv-filter_tv-filter-options__zf9jq","tv-addon-content":"vm-tv-filter_tv-addon-content__YM4HG","tv-addon-content__label":"vm-tv-filter_tv-addon-content__label__zNz8l","tv-addon-filter-item":"vm-tv-filter_tv-addon-filter-item__aGJfi",reset:"vm-tv-filter_reset__ba_4W",disabled:"vm-tv-filter_disabled__jP61u","tv-addon-counters":"vm-tv-filter_tv-addon-counters___2_zl"}},53994:(e,t,r)=>{"use strict";r.d(t,{VmScrollingBannerWrapper:()=>i});var n=r(95155),o=r(12115);let i=({children:e})=>{let t=(0,o.useRef)(null),r=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=t.current?.querySelector(".fixed-banner");if(e){let t=e.offsetHeight;r.current=document.createElement("style"),r.current.textContent=` 79 :root { 80 --banner-height: ${t}px; 81 } 82 `,document.head.appendChild(r.current)}return()=>{r.current&&r.current.remove()}},[]),(0,n.jsx)("div",{ref:t,children:e})}},54046:(e,t,r)=>{"use strict";r.d(t,{gN:()=>i});var n=r(12115),o=r(65305);let i=(0,n.cache)(e=>{let t=[o.po.BROADBAND,o.po.TV,o.po.LANDLINE,o.po.SIM],r=e.reduce((e,r)=>{if("string"==typeof r)return e;let n=r?.content?.product_type?.toLowerCase(),i=n&&t.includes(n)?n:o.pu.OTHER;return{...e,[i]:[...e[i]||[],r]}},{});
82return[o.po.TV,o.po.LANDLINE,o.po.SIM,o.pu.OTHER].forEach(e=>{r[e]&&(r[e]=[...r[e]].sort((e,t)=>e.content.addon_type===t.content.addon_type?0:e.content.addon_type===o.ub.CORE?-1:1))}),[...r[o.po.BROADBAND]||[],...r[o.po.TV]||[],...r[o.po.LANDLINE]||[],...r[o.po.SIM]||[],...r[o.pu.OTHER]||[]]})},54714:(e,t,r)=>{"use strict";r.d(t,{CustomiseCarousel:()=>u});var n=r(95155),o=r(12115),i=r(71473),a=r.n(i),s=r(23337),l=r(84858),c=r(67526),d=r(5383);let u=({blok:e})=>{let{customisations:t,validBundles:r}=(0,o.useContext)(c.ByobContext),i=a()(t?.customisations.broadband.deltaPrices,"bundleId"),u=(e=>{switch(e){case"Broadband":return s.k;case"TV":return l.s}})(e.type),_=r.map(e=>{let t=i[e?.msaBundle.bundleId??""];return{children:u&&e?(0,n.jsx)(u,{msaBundle:e.msaBundle,sbBundle:e.sbBundle,deltaPrice:t?.bundleSubtotal?.[0].amount}):null}});return r.length?(0,n.jsx)(d.F,{slides:_,blok:{...e,component:"vm_upperfunnel_byob_product_carousel"}}):null}},54788:e=>{e.exports={"vm-equipment-carousel-slide":"vm-equipment-carousel-slide_vm-equipment-carousel-slide__B42OH",flare:"vm-equipment-carousel-slide_flare__9qaCu","flare_1-piece-1":"vm-equipment-carousel-slide_flare_1-piece-1__wz3tf","flare_1-piece-2":"vm-equipment-carousel-slide_flare_1-piece-2__QT4F3","flare_1-piece-3":"vm-equipment-carousel-slide_flare_1-piece-3__C975L","flare_2-piece-1":"vm-equipment-carousel-slide_flare_2-piece-1__cLjFP","flare_2-piece-2":"vm-equipment-carousel-slide_flare_2-piece-2__fpn8f","flare_3-piece-1":"vm-equipment-carousel-slide_flare_3-piece-1__Gwf_e","flare_3-piece-2":"vm-equipment-carousel-slide_flare_3-piece-2__YbVfm","flare_3-piece-3":"vm-equipment-carousel-slide_flare_3-piece-3__VOFEh",content:"vm-equipment-carousel-slide_content__4_iC0","left-column":"vm-equipment-carousel-slide_left-column__KeV3H","right-column":"vm-equipment-carousel-slide_right-column__gyyR0","main-content-container":"vm-equipment-carousel-slide_main-content-container__F4Aak","main-content-medium":"vm-equipment-carousel-slide_main-content-medium__0Cse_","main-content-full":"vm-equipment-carousel-slide_main-content-full__b9P4s","text-content":"vm-equipment-carousel-slide_text-content__szoyd","cta-container":"vm-equipment-carousel-slide_cta-container__8gg3A"}},54946:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});let n=e=>{let t=e?.content.banner_text?`<span>${e.content.banner_text}</span>`:"";return{...e,name:"volt",content:{...e?.content,active:!0,banner_text:`<span class='volt-text'>Volt perks included</span>${t}`,banner_colour:"volt"}}}},55243:e=>{e.exports={"radio-select":"product-filter-checkbox-mobile_radio-select__p6Ltw","radio-select_wrapper":"product-filter-checkbox-mobile_radio-select_wrapper__y26h_","radio-select__trigger":"product-filter-checkbox-mobile_radio-select__trigger__tmXfS","radio-select__dropdown":"product-filter-checkbox-mobile_radio-select__dropdown__xacvy","radio-select__sortRow":"product-filter-checkbox-mobile_radio-select__sortRow__D_TsW",mobile_radio__sortRow:"product-filter-checkbox-mobile_mobile_radio__sortRow__LZvXN","mobile-sort-modal":"product-filter-checkbox-mobile_mobile-sort-modal__HaXxU",slideUp:"product-filter-checkbox-mobile_slideUp__RwEIj","mobile-sort-modal__divider":"product-filter-checkbox-mobile_mobile-sort-modal__divider__ImTAo","mobile-sort-modal__button-text":"product-filter-checkbox-mobile_mobile-sort-modal__button-text__8yf_O","mobile-sort-modal__apply":"product-filter-checkbox-mobile_mobile-sort-modal__apply__V85l6","filter-link-button":"product-filter-checkbox-mobile_filter-link-button__uA_aZ","product-sort__dropdown-card":"product-filter-checkbox-mobile_product-sort__dropdown-card__awrLQ","product-sort__dropdown-card-input":"product-filter-checkbox-mobile_product-sort__dropdown-card-input__pR2rr","product-sort__dropdown-label":"product-filter-checkbox-mobile_product-sort__dropdown-label__SCKsm"}},55334:e=>{e.exports={tiles:"vm-upper-funnel-tabs_tiles__rJcRN",tabs:"vm-upper-funnel-tabs_tabs__nJ4Ez","image-container":"vm-upper-funnel-tabs_image-container___wB74"}},55397:(e,t,r)=>{"use strict";r.d(t,{J:()=>o});var n=r(9339);let o=(0,n.createServerReference)("40e64f15ed811b429b97cd4c9b9c9160e4315dbedb",n.callServer,void 0,n.findSourceMapURL,"removeTVAddOnAction")},55451:(e,t,r)=>{"use strict";r.d(t,{u:()=>
82o});var n=r(9339);let o=(0,n.createServerReference)("40649309945c283833e987b4e4e3a23615a2abefaa",n.callServer,void 0,n.findSourceMapURL,"addBundleAction")},55539:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DailyPriceSplitter:()=>_});var n=r(95155),o=r(12115),i=r(21216),a=r(91555),s=r(51073),l=r(24646),c=r(29081),d=r(45067),u=r.n(d);let _=()=>{let e=(0,o.useRef)(!1),t=(0,l.useDailySplitter)(),r=(0,l.useDailySplitterUpdater)(),d=(0,o.useId)();(0,o.useEffect)(()=>{e.current||(r(!0),e.current=!0)},[r]);let _=(0,c.Og)("daily-cost-calculator-container","daily-cost-calculator-section","daily-cost-calculator-icon");return(0,n.jsx)("div",{className:u()["daily-cost-splitter-container"],..._["daily-cost-calculator-container"],children:(0,n.jsxs)("div",{className:u()["daily-cost-calc-content"],..._["daily-cost-calculator-section"],children:[(0,n.jsx)(s.I,{icon:i.mQ,size:"lg",color:"info",..._["daily-cost-calculator-icon"]}),(0,n.jsx)(a.FormToggle,{id:d,name:"dailyCostToggle",label:"Daily cost calculator",defaultChecked:t,value:t,onChange:e=>{r(e)}},String(t))]})})}},56279:e=>{e.exports={popup:"byob-upsell-popup-base_popup__vDE2k",popup__content:"byob-upsell-popup-base_popup__content__xjAb0",popup__actions:"byob-upsell-popup-base_popup__actions__Fd2sn",popup__header:"byob-upsell-popup-base_popup__header__Neiab",popup__title:"byob-upsell-popup-base_popup__title__iRW_7",popup__price:"byob-upsell-popup-base_popup__price__JUx3_",popup__priceSum:"byob-upsell-popup-base_popup__priceSum__MR0pT",popup__cta:"byob-upsell-popup-base_popup__cta__ekZ_T"}},56976:(e,t,r)=>{"use strict";r.d(t,{VmPostServiceableGuardClient:()=>l});var n=r(95155),o=r(12115),i=r(71505),a=r(28027),s=r(85592);let l=({children:e,showLoading:t})=>{let r=(0,o.useContext)(s.s);return r.availability?(0,n.jsx)(n.Fragment,{children:e}):t&&r.loading?(0,n.jsx)(i.N,{justify:"center",align:"center",padding:"xl",children:(0,n.jsx)(a.W,{"data-testid":"loading-logo",variant:"VM"})}):null}},57572:e=>{e.exports={"vm-video-promo":"vm-video-promo_vm-video-promo__7kKSM","vm-video-promo_content":"vm-video-promo_vm-video-promo_content__TCV8Q","vm-video-promo_title":"vm-video-promo_vm-video-promo_title__JismZ","vm-video-promo_description":"vm-video-promo_vm-video-promo_description__XvvA4","vm-video-promo_button":"vm-video-promo_vm-video-promo_button__OIVlm","vm-video-promo_content_holder":"vm-video-promo_vm-video-promo_content_holder__asB1F","vm-video-promo_video":"vm-video-promo_vm-video-promo_video__BngFy"}},57900:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BookshelfContext:()=>n});let n=(0,r(12115).createContext)({expanded:"",setExpanded:()=>{}})},58206:(e,t,r)=>{"use strict";r.d(t,{SelectionProvider:()=>a});var n=r(95155),o=r(12115),i=r(86089);let a=({children:e,desktopLimit:t=3,mobileLimit:r=2,storageKey:a="selectedCards"})=>{let[s,l]=(0,o.useState)(t),[c,d]=(0,o.useState)({}),[u,_]=(0,o.useState)(!1);(0,o.useEffect)(()=>{try{let e=sessionStorage.getItem(a);e&&d(JSON.parse(e))}catch{}finally{_(!0)}},[a]),(0,o.useEffect)(()=>{u&&sessionStorage.setItem(a,JSON.stringify(c))},[c,a,u]),(0,o.useEffect)(()=>{let e=window.matchMedia("(max-width: 912px)"),n=()=>l(e.matches?r:t);return n(),e.addEventListener("change",n),()=>e.removeEventListener("change",n)},[t,r]),(0,o.useEffect)(()=>{d(e=>{let t=Object.entries(e);return t.length<=s?e:Object.fromEntries(t.slice(0,s))})},[s]);let p=(0,o.useCallback)(e=>{d(t=>{if(t[e.id]){let r={...t};return delete r[e.id],r}return Object.keys(t).length>=s?t:{...t,[e.id]:e}})},[s]),m=(0,o.useMemo)(()=>({selected:c,selectedBundles:Object.values(c).map(e=>e.bundle),limit:s}),[c,s]),h=(0,o.useMemo)(()=>({toggleSelection:p}),[p]);return(0,n.jsx)(i.dO.Provider,{value:m,children:(0,n.jsx)(i.ZR.Provider,{value:h,children:e})})}},58512:(e,t,r)=>{"use strict";r.d(t,{UserActionProvider:()=>d,l:()=>_,z:()=>u});var n=r(95155),o=r(12115),i=r(82849),a=r(20516),s=r(62960);let l=(0,o.createContext)(a.XI),c=(0,o.createContext)(()=>{}),d=({children:e})=>{let[t,r]=(0,o.useState)(a.XI);return(0,o.useEffect)(()=>{let e=i.A.get(s.t8);if(e){let t=Number(e);Number.isNaN(t)||r(t)}},[]),(0,n.jsx)(l.Provider,{value:t,children:(0,n.jsx)(c.Provider,{value:r,children:e})})},u=()=>(0,o.useContext)(l),_=()=>(0,o.useContext)(c)},59147:e=>{e.exports={"uf-header-decoration--gradient":"header-decoration_uf-header-decoration--gradient__u_mOC","uf-header-decoration":"header-decoration_uf-header-decoration__HNpLP","header-decoration--with-overlap":"header-decoration_header-decoration--with-overlap__J3hNK"}},59333:e=>{e.exports={"header-gradient":"header-gradient_header-gradient__iMJty"}},59610:(e,t,r)=>{"use strict";r.d(t,{VmVertexSearchGuard:()=>ep});
82var n=r(95155),o=r(12115),i=r(12572),a=r(18401),s=r(51073),l=r(29722),c=r(19554),d=r(69839),u=r(85592),_=r(18829),p=r(31650),m=r(15355),h=r(74808),b=r(9339);let g=(0,b.createServerReference)("40335deea83f26048d03d43e3db23d1f5bec35cf0c",b.callServer,void 0,b.findSourceMapURL,"complete"),f=(0,b.createServerReference)("409748ae3d503dc5097c2183933ae0fd62c13ab3be",b.callServer,void 0,b.findSourceMapURL,"search");var x=r(74552);function v({searchResultsLength:e=0,searchQuery:t,isError:r}){return e||r||t?e&&!r&&t?{item_list_id:"sales_search_vertex_recommendation",item_list_name:"sales search vertex recommendation"}:e||r||!t?!e&&r&&t?{item_list_id:"sales_search_vertex_error",item_list_name:"sales search vertex error"}:{item_list_id:"sales_none_product_listing",item_list_name:"sales none product listing"}:{item_list_id:"sales_search_vertex_noresults",item_list_name:"sales search vertex noresults"}:{item_list_id:"sales_search_vertex_popular",item_list_name:"sales search vertex popular"}}var y=r(8674),j=r.n(y),w=r(11241),N=r(47650),k=r(80495),E=r(99916),S=r(82567),T=r(65305),C=r(40217),A=r(58512),I=r(29081),P=r(30710),M=r(99852),O=r(32493),B=r(92790),L=r(28877),D=r(12612),R=r(54046),F=r(70186),V=r(42126),$=r(5772),z=r(67270),U=r(51504),H=r.n(U);let G=({bundleImages:e,title:t,description:r,logo:o})=>{let i=(0,I.Og)("vertex-search-product-card-bundle-image"),a=(0,z.G)({filename:o});return e.map(({horizontal:e,productType:o,_uid:s})=>o&&o!==T.po.NONPRODUCT&&e&&(0,n.jsx)("div",{className:H()["media-wrapper"],children:(0,n.jsxs)("div",{className:H()["media-image"],...i["vertex-search-product-card-bundle-image"],children:[(0,n.jsx)($.default,{unoptimized:!0,alt:e.alt,src:e.src,width:104,height:159}),(0,n.jsxs)("div",{className:H()["media-content"],children:[a&&(0,n.jsx)("div",{className:(0,l.A)(H()["media-logo"],a.width>a.height?H().landscape:H().portrait),children:(0,n.jsx)($.default,{src:a.src,alt:"channel logo",width:a.width,height:a.height})}),t&&(0,n.jsx)(S.E,{color:"light",className:H()["media-title"],children:t}),r&&(0,n.jsx)(S.E,{color:"light",className:H()["media-description"],children:r})]})]})},s))};var q=r(96653),W=r(16420),Y=r(6389),K=r.n(Y);let Q=({text:e})=>{let t=(0,I.Og)("vertex-search-product-card-bundle-description");return"string"==typeof e?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e},className:K()["bundle-description"],"data-testid":"vertex-search-product-card-bundle-description",...t["vertex-search-product-card-bundle-description"]}):(0,n.jsx)("div",{className:K()["bundle-description"],"data-testid":"vertex-search-product-card-bundle-description",...t["vertex-search-product-card-bundle-description"],children:(0,n.jsx)(W.S,{document:e,StoryblokComponent:q.Dp})})};var Z=r(84830),X=r.n(Z);let J=({iconUrl:e,description:t,netflix:r})=>{let o=(0,I.Og)("vertex-search-product-card-pill");return(0,n.jsxs)(w.s,{direction:"row",align:"center",className:X().pill,children:[e&&(0,n.jsx)($.default,{unoptimized:!0,alt:`${t.productType} icon`,src:e,width:18,height:18}),(0,n.jsxs)(w.s,{justify:"center",direction:"column",...o["vertex-search-product-card-pill"],children:[(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.name}}),r&&(0,n.jsxs)(w.s,{align:"center",gap:"sm",children:["&",(0,n.jsx)($.default,{unoptimized:!0,src:"/vm-upper-funnel/assets/icons/netflix-logo.svg",alt:"Netflix logo",width:"50",height:"14"})]})]})]})};var ee=r(59654),et=r.n(ee);let er=({sbBundle:e,msaBundle:t,flashSales:r,showBillSplit:o=!1,updateBrowserHistory:i,gtmEcommerceArgs:a})=>{let s=(0,A.z)(),c=(0,C.p)(),d=(0,I.Og)("vertex-search-product-card","vertex-search-product-card-title","vertex-search-product-card-pills","vertex-search-product-card-price");try{let u=(0,M.r)(e,t),_=(0,F.M)(e),p=(0,R.gN)(_),m=e.slug,h=e.content.display_name?.content?.[0]?.content?.[0]?.text||e.name,b=t?.journeyTypes?.includes("Stream"),g=(0,O.uM)(h,p,b||!1),f=g.find(e=>(0,D.v)(e.name)),x=g.find(e=>e.productType===T.po.TV);x===f&&(x=void 0);let v=x??g.find(e=>e.productType===T.po.BROADBAND),y=g.find(e=>e.productType===T.po.SIM),j=g.find(e=>e.productType===T.po.LANDLINE),N=_.find(e=>"Broadband"===e.content.product_type)?.content,k=N?.speed_profile?.content?.display_speed,C=N?.original_speed_profile?.content?.display_speed,A={name:C?`<strike>${C} Mbps</strike><br/>${k} Mbps`:`${k} Mbps`},I=e.content.description||f?.ufDescription||j?.ufDescription||y?.ufDescription,$=(0,B.C)(p,h,void 0,c),{tldPricing:z,priceChangesHorizontal:U,setupFees:H,oneOffPayNowCharges:q}=(0,L.O)(t,s);return(0,n.jsx)(E.Zp,{rounded:"lg",className:(0,l.A)("landscape-card",et().card,(0,M.q)(e,r?.banner,z)),"data-testid":"vertex-search-product-card",...d["vertex-search-product-card"],...u,children:(0,n.jsxs)(w.s,{className:et()["card-container"],children:[(0,n.jsx)(G,{bundleImages:$,title:v?.mediaTitle,de
82scription:v?.mediaDescription,logo:v?.mediaLogo}),(0,n.jsxs)(w.s,{direction:"column",className:et()["product-specs"],children:[(0,n.jsx)("h4",{className:et().title,"data-testid":"vertex-search-product-card-title",...d["vertex-search-product-card-title"],children:(0,n.jsx)("strong",{children:h})}),I&&(0,n.jsx)(Q,{text:I}),(0,n.jsxs)(w.s,{className:et()["pills-container"],...d["vertex-search-product-card-pills"],children:[(0,n.jsx)(J,{description:A,netflix:x?void 0:f,iconUrl:"/vm-upper-funnel/assets/icons/broadband-thick.svg"}),x&&(0,n.jsx)(J,{description:x,netflix:f,iconUrl:b?"/vm-upper-funnel/assets/icons/flex-thick.svg":"/vm-upper-funnel/assets/icons/tv-thick.svg"}),j&&(0,n.jsx)(J,{description:j,iconUrl:"/vm-upper-funnel/assets/icons/phone-thick.svg"}),y&&(0,n.jsx)(J,{description:y,iconUrl:"/vm-upper-funnel/assets/icons/sim-thick.svg"})]})]}),(0,n.jsxs)(w.s,{className:et()["pricing-info"],children:[(0,n.jsx)(w.s,{className:et().price,"data-testid":"vertex-search-product-card-price",...d["vertex-search-product-card-price"],children:(0,n.jsx)(V.zY,{discounted:z?.pricing.timeLimitedTotal,discountedPeriod:z.pricing.discountedTld?.afterDurationInMonths,afterPeriodPrice:z.pricing.discountedTld?.amount,regular:z?.pricing.regular,priceChanges:U,initialBillSplitAmount:z.initialBillSplitAmount,showBillSplit:o,forceMobile:!0})}),H&&(0,n.jsx)(w.s,{direction:"column",align:"center",children:Object.entries(H).filter(([,{amount:e}])=>e>0).map(([e,{text:t,amount:r}])=>(0,n.jsxs)(S.E,{size:"T300",weight:"regular",children:[(0,P.a7)(r)," ",t]},e))}),(0,n.jsx)(V.F7,{id:m,hasOneOffPayNowCharges:!!q?.length,blok:e,bundle:t,label:"View Deal",className:et()["view-deal"],queryParameter:"ref=VAI",onClickCallback:i,layout:"landscape",gtmEcommerceArgs:a})]})]})},t.bundleId)}catch(e){return console.warn(`${e}`),null}};var en=r(11389);function eo({onClick:e}){let t=(0,I.Og)("vertex-search-show-more-bundles-button");return(0,n.jsxs)(a.$,{onClick:e,variant:"secondary",rounded:"xl","data-testid":"vertex-search-show-more-bundles-button",...t["vertex-search-show-more-bundles-button"],children:[(0,n.jsx)(S.E,{color:"light",weight:"bold",children:"Show more bundles"}),(0,n.jsx)(s.I,{icon:en.SUl,size:"md"})]})}function ei({onClick:e}){let t=(0,I.Og)("vertex-search-show-less-bundles-button");return(0,n.jsxs)(a.$,{onClick:e,variant:"secondary",rounded:"xl","data-testid":"vertex-search-show-less-bundles-button",...t["vertex-search-show-less-bundles-button"],children:[(0,n.jsx)(S.E,{color:"light",weight:"bold",children:"Show less bundles"}),(0,n.jsx)(s.I,{icon:en.XpQ,size:"md"})]})}function ea({title:e,validBundles:t,show:r,setShow:o,scrollToSearchTop:i,updateBrowserHistory:a,gtmEcommerceArgs:s,...l}){return(0,n.jsxs)(w.s,{direction:"column",gap:"lg",className:j()["grid-container"],...l,children:[(0,n.jsx)("h2",{className:j()["box-title"],children:e}),(0,n.jsx)("div",{className:j().grid,children:t.slice(0,r).map(({msaBundle:e,sbBundle:t,flashSales:r})=>(0,n.jsx)(er,{msaBundle:e,sbBundle:t,flashSales:r,updateBrowserHistory:a,gtmEcommerceArgs:s},e.bundleId))}),t.length>es&&(0,n.jsx)(w.s,{justify:"center",children:r===es?(0,n.jsx)(eo,{onClick:()=>{o(t.length)}}):(0,n.jsx)(ei,{onClick:()=>{o(es),i()}})})]})}let es=3;function el({isSearchModalOpen:e,closeSearchModal:t,searchPlaceholderPosition:r,submitSearch:c,clearSearch:d,searchInputValueTrimmed:u,searchInputRef:_,searchInputValue:p,setSearchInputValue:m,setSearchQuery:h,defaultPlaceholder:b,searchQuery:g,autocompleteSuggestions:f,updateBrowserHistory:x,isLoading:y,isError:E,searchResults:S,popularProducts:T,scrollToSearchTop:C}){let A=(0,o.useRef)(null),[I,P]=(0,o.useState)(!1);(0,k.A)(()=>P(!0));let[M,O]=(0,o.useState)(es);(0,o.useEffect)(()=>{O(es)},[g,e]);let B=p&&p.toLocaleLowerCase()!==g&&f.length>0,L=g&&E,D=g&&!E&&y,R=g&&!E&&!y&&0===S.length,F=g&&!E&&!y&&S.length>0,V=!g;return I&&(0,N.createPortal)((0,n.jsxs)("div",{className:(0,l.A)(j().portal,!e&&j().hidden),"data-testid":"vertex-portal",children:[(0,n.jsx)("div",{className:j().backdrop,onClick:t,onKeyDown:e=>
82{("Escape"===e.key||"Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},role:"button",tabIndex:-1,"aria-label":"Close search","data-testid":"vertex-search-modal-backdrop","data-cs-override-id":"vertex-search-modal-backdrop"}),(0,n.jsxs)("div",{className:(0,l.A)(j().content,j()["column-flex-start"]),style:{"--top":`${r.top}px`},ref:A,onClick:e=>{window.innerWidth>=768&&e.target===A.current&&t()},onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),t())},role:"presentation",tabIndex:-1,children:[(0,n.jsxs)("div",{className:j()["search-form-container"],style:{"--left":`${r.left}px`,"--width":`${r.width}px`},children:[(0,n.jsxs)("form",{className:j()["search-form"],onSubmit:e=>{e.preventDefault(),c()},"data-testid":"vertex-search-form","data-cs-override-id":"vertex-search-form",children:[(0,n.jsx)("input",{name:"search",ref:_,value:p,onChange:e=>{let t=e.target.value;m(t),""===t.trim()&&h("")},onFocus:e=>{setTimeout(()=>{e.target.setSelectionRange(e.target.value.length,e.target.value.length),e.target.scrollLeft=9999},1)},placeholder:b,autoComplete:"off","data-testid":"vertex-search-input","data-cs-override-id":"vertex-search-input"}),(0,n.jsx)(a.$,{className:(0,l.A)(j().button,j().close),onClick:e=>{e.preventDefault(),d()},disabled:!u,type:"button","data-testid":"vertex-search-clear-button","data-cs-override-id":"vertex-search-clear-button",children:(0,n.jsx)(s.I,{icon:i.PaE,size:"md",color:"grey"})}),(0,n.jsx)(a.$,{className:(0,l.A)(j().button,j().search),disabled:u.length<ec,type:"submit","data-testid":"vertex-search-submit-button","data-cs-override-id":"vertex-search-submit-button",children:(0,n.jsx)(s.I,{icon:i.hy4,size:"md",color:"primary"})})]}),(0,n.jsx)(a.$,{className:(0,l.A)(j().button,j()["close-modal"]),onClick:e=>{e.preventDefault(),t()},type:"button","data-testid":"vertex-search-close-button","data-cs-override-id":"vertex-search-close-button",children:(0,n.jsx)(s.I,{icon:i.IyO,size:"md",color:"grey"})})]}),e&&(0,n.jsxs)("div",{className:j().box,"data-testid":"vertex-modal",children:[B&&(0,n.jsxs)("div",{className:(0,l.A)(j().autocomplete,j()["column-flex-start"]),"data-testid":"vertex-search-autocomplete-suggestions",children:[(0,n.jsx)("h2",{className:j()["box-title"],children:"Suggestions:"}),(0,n.jsx)("div",{className:(0,l.A)(j().suggestions,j()["column-flex-start"]),children:f.map((e,t)=>(0,n.jsx)("button",{className:j().suggestion,onClick:()=>{m(e),h(e)},children:e},`${e}-${t}`))})]}),L&&(0,n.jsxs)(w.s,{gap:"lg",direction:"column",className:j()["grid-container"],"data-testid":"vertex-search-error-grid",children:[(0,n.jsx)("p",{children:"Search is currently unavailable. Please try again later."}),(0,n.jsx)(ea,{title:"You may be interested in",validBundles:T,show:M,setShow:O,scrollToSearchTop:C,updateBrowserHistory:x,"data-testid":"vertex-search-popular-products-grid",gtmEcommerceArgs:{search_term:g,...v({searchResultsLength:0,searchQuery:g,isError:!0})}})]}),D&&(0,n.jsxs)(w.s,{direction:"column",gap:"lg",className:j()["grid-container"],"data-testid":"vertex-search-loading-grid",children:[(0,n.jsx)("h2",{className:j()["box-title"],children:"Recommended products"}),(0,n.jsxs)("div",{className:j().grid,children:[(0,n.jsx)("div",{className:j()["skeleton-card"],"data-testid":"vertex-search-skeleton-card"}),(0,n.jsx)("div",{className:j()["skeleton-card"],"data-testid":"vertex-search-skeleton-card"}),(0,n.jsx)("div",{className:j()["skeleton-card"],"data-testid":"vertex-search-skeleton-card"})]})]}),R&&(0,n.jsxs)(w.s,{gap:"lg",direction:"column",className:j()["grid-container"],"data-testid":"vertex-search-no-results-grid",children:[(0,n.jsxs)("p",{children:["0 results found for ",(0,n.jsx)("q",{children:g})]}),(0,n.jsx)(ea,{title:"You may be interested in",validBundles:T,show:M,setShow:O,scrollToSearchTop:C,updateBrowserHistory:x,"data-testid":"vertex-search-popular-products-grid",gtmEcommerceArgs:{search_term:g,...v({searchResultsLength:0,searchQuery:g,isError:!1})}})]}),F&&(0,n.jsx)(ea,{title:"Recommended products",validBundles:S,show:M,setShow:O,scrollToSearchTop:C,updateBrowserHistory:x,"data-testid":"vertex-search-recommendations-grid",gtmEcommerceArgs:{search_term:g,...v({searchResultsLength:S.length,searchQuery:g,isError:!1})}}),V&&(0,n.jsx)(ea,{title:"Popular products",validBundles:T,show:M,setShow:O,scrollToSearchTop:C,updateBrowserHistory:x,"data-testid":"vertex-search-popular-products-grid",gtmEcommerceArgs:{search_term:g,...v({searchResultsLength:0,searchQuery:"",isError:!1})}})]})]})]}),document.body)}let ec=2,ed=["What are you looking for?","Find the best deals in my area","Search cheap broadband","Broadband deals with free Netflix","Top deals for gaming"];function eu({placeholder:e,cyclingPlaceholders:t,popularProducts:r}){let{layout:b}=(0,c.C)(),y=(0,o.useRef)(null),w=(0,o.useRef)(null),N=(0,o.useRef)(null),[k,E]=function(e=""){let[t,r]=(0,o.useState)(()=>e.toLowerCase());return[t,(0,o.useCallback)(e=>{r(e.toLowerCase())},[])]}(),[S,T]=(0,o.useState)(k),C=(0,o.useMemo)(()=>S.trim(),[S]),[A,I]=(0,o.useState)(!1),[P,M]=(0,o.useState)(!1),[O,B]=(0,o.useState)([]),[L,D]=(0,o.useState)(!1),{availability:R}=(0,o.useContext)(u.s);(0,o.useEffect)(()=>
82{if(!L)return;let{item_list_id:e,item_list_name:t}=v({searchResultsLength:O?.length,searchQuery:k,isError:P}),n=(O.length?O:r).map(({sbBundle:r,msaBundle:n})=>(0,m.Cz)(n,r,void 0,R?.deliveryMethod,{item_list_id:e,item_list_name:t}));(0,p.K)({ecommerce:null}),(0,_.A)(d.bk.ECOMMERCE,{event_name:d.qy.ECOMMERCE_RESULTS,event_params:{filter_options:void 0,page_journey:"none",price_engine_recommendation:"none",pricing_engine_request_id:"",product_count:n.length.toString(),sort_options:void 0,search_term:k},ecommerce:{item_list_id:e,item_list_name:t,items:n}})},[O,L]);let F=(0,o.useRef)({});(0,o.useEffect)(()=>{let e,t={};if(F.current=t,Y([]),!k){B([]),I(!1),M(!1);return}I(!0);let r=Date.now();return f(k).then(e=>{F.current===t&&(B(e.validBundles),M(!1))}).catch(()=>{F.current===t&&(B([]),M(!0))}).finally(()=>{e=setTimeout(()=>{F.current===t&&I(!1)},Math.max(100,600-(Date.now()-r)))}),()=>clearTimeout(e)},[k]);let V=(0,o.useRef)({}),$=(0,o.useRef)(null);(0,o.useEffect)(()=>{$.current&&clearTimeout($.current),$.current=setTimeout(()=>{let e={};(V.current=e,S.trimStart())?g(S).then(t=>{e===V.current&&Y(t)}).catch(()=>{e===V.current&&Y([])}):Y([])},600)},[S]);let z=function(e,t){let[r,n]=(0,o.useState)({top:0,left:0,width:0});return(0,o.useEffect)(()=>{function t(){if(e.current){let{top:t,left:r,width:o}=e.current.getBoundingClientRect();n({top:t+window.scrollY,left:r+window.scrollX,width:o})}}return t(),window.addEventListener("load",t),window.addEventListener("resize",t),document.fonts?.addEventListener("loadingdone",t),()=>{window.removeEventListener("load",t),window.removeEventListener("resize",t),document.fonts?.removeEventListener("loadingdone",t)}},[e,...t]),r}(y,[L]),U=(0,h.I)(),H=(0,o.useMemo)(()=>e.trim()||"What are you looking for?",[e]),G=function(e,t){let[r,n]=(0,o.useState)(0),[i,a]=(0,o.useState)(0),s=(0,o.useMemo)(()=>`${e[r]} `,[r,e]),l=(0,o.useMemo)(()=>s.slice(0,i),[s,i]);return(0,o.useEffect)(()=>{let o;return t?a(0):!function t(){a(t=>{let o=t+1;return o===s.length?(n((r+1)%e.length),0):o}),o=setTimeout(t,40+80*(0,x.Q5)())}(),()=>clearTimeout(o)},[t,s]),l}((0,o.useMemo)(()=>{let e=t.split("\n").map(e=>e.trim()).filter(e=>e.length>0);return e.length>0?e:ed},[t]),L||U),{updateBrowserHistory:q}=function({setSearchQuery:e,setSearchResults:t,setSearchInputValue:r,openSearchModal:n}){let i=(0,o.useCallback)((e,t)=>{window.history.pushState({searchQuery:e,searchResults:t},"",window.location.href)},[]);return(0,o.useEffect)(()=>{let o=window.history.state;o?.searchQuery&&o?.searchResults&&e&&r&&t&&n&&(console.log({state:o}),e(o.searchQuery),r(o.searchQuery),t(o.searchResults),n(),window.history.pushState({searchQuery:"",searchResults:[]},window.location.href))},[]),{updateBrowserHistory:i}}({setSearchQuery:E,setSearchInputValue:T,setSearchResults:B,openSearchModal:Z}),[W,Y]=(0,o.useState)([]),K=(0,o.useCallback)(e=>{"Escape"===e.code&&(X(),w.current?.focus())},[X]);function Q(){N.current&&window.scrollTo({top:N.current.getBoundingClientRect().top+window.scrollY-24,behavior:"smooth"})}function Z(){D(!0),window.addEventListener("keydown",K),setTimeout(()=>{N.current&&N.current.focus(),Q()},1)}function X(){D(!1),window.removeEventListener("keydown",K),T(""),E("")}return(0,n.jsxs)("div",{className:j().container,children:[(0,n.jsxs)("div",{ref:y,onClick:Z,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),Z())},role:"button",tabIndex:0,className:(0,l.A)(j()["search-form"],j()["search-placeholder"],L&&j().disabled,{[j()["layout-full"]]:"full"===b,[j()["layout-split"]]:"split"===b}),children:[(0,n.jsx)("input",{name:"searchPlaceholder",ref:w,onClick:Z,onInput:e=>{T(w.current?.value??""),Z(),e.preventDefault()},value:"",placeholder:U?H:G,autoComplete:"off","data-testid":"vertex-search-placeholder","data-cs-override-id":"vertex-search-placeholder","data-cy":"vertex-search-text-placeholder"}),(0,n.jsx)(a.$,{className:(0,l.A)(j().button,j().close),disabled:!0,type:"button",children:(0,n.jsx)(s.I,{icon:i.PaE,size:"md",color:"grey"})}),(0,n.jsx)(a.$,{className:(0,l.A)(j().button,j().search),disabled:!0,type:"button",children:(0,n.jsx)(s.I,{icon:i.hy4,size:"md",color:"primary","data-cy":"vertex-search-icon"})})]}),(0,n.jsx)(el,{isSearchModalOpen:L,closeSearchModal:X,searchPlaceholderPosition:z,submitSearch:function(){C.length>=ec&&E(C),0===C.length&&E(""),C!==S&&T(C)},clearSearch:function(){E(""),T(""),Y([]),N.current?.focus()},searchInputValueTrimmed:C,searchInputRef:N,searchInputValue:S,setSearchInputValue:T,setSearchQuery:E,defaultPlaceholder:H,searchQuery:k,autocompleteSuggestions:W,isLoading:A,isError:P,searchResults:O,popularProducts:r,scrollToSearchTop:Q,updateBrowserHistory:()=>{q(k,O)}})]})}var e_=r(19145);let ep=e=>{let{availability:t,address:r}=(0,o.useContext)(u.s);return t&&r?.postcode&&(0,e_.EH)(t)?(0,n.jsx)(eu,{...e}):null}},59654:e=>{e.exports={card:"VertexSearchProductCard_card__ryyYP","card-container":"
82VertexSearchProductCard_card-container__FMMt2","product-specs":"VertexSearchProductCard_product-specs__gOFgL",title:"VertexSearchProductCard_title__EkSxK","pills-container":"VertexSearchProductCard_pills-container__jCN0m","pricing-info":"VertexSearchProductCard_pricing-info__n5qUw",price:"VertexSearchProductCard_price__1fMx2","view-deal":"VertexSearchProductCard_view-deal__Mhx2F"}},60513:(e,t,r)=>{"use strict";r.d(t,{W:()=>l});var n=r(95155),o=r(5772),i=r(29722),a=r(16075),s=r.n(a);function l({src:e,alt:t="channel-icon",width:r,height:a,className:c,...d}){return(0,n.jsx)("div",{className:(0,i.A)(s()["entertainment-logo"],c),children:(0,n.jsx)(o.default,{unoptimized:!0,src:e,alt:t,width:0,height:0,className:(0,i.A)(s()["entertainment-logo__img"],{[s()["entertainment-logo__img--portrait"]]:r/a<=1.825}),...d})})}},60929:e=>{e.exports={"button--light":"byob-button_button--light__0Z8_C","button--active":"byob-button_button--active___KST3","button--transparent":"byob-button_button--transparent__o8xtk"}},61119:e=>{e.exports={"modal-link":"modal-link_modal
82-link__iOIs0","modal-link-anchor-reset-button":"modal-link_modal-link-anchor-reset-button__hfr_u"}},61375:e=>{e.exports={"media-bundle__wrapper":"media-bundle_media-bundle__wrapper__31fCP","media-bundle__wrapper--horizontal":"media-bundle_media-bundle__wrapper--horizontal__j2o_Y","media-bundle__wrapper--fixed-orientation":"media-bundle_media-bundle__wrapper--fixed-orientation__nEG29","media-bundle__content-wrapper":"media-bundle_media-bundle__content-wrapper__smRti","media-bundle__img-wrapper":"media-bundle_media-bundle__img-wrapper__Cfq9L","media-bundle__img-wrapper--rounded":"media-bundle_media-bundle__img-wrapper--rounded__69DaH","media-bundle__logo-wrapper":"media-bundle_media-bundle__logo-wrapper__sNJaE","media-bundle__title":"media-bundle_media-bundle__title__2bkbf","media-bundle__description":"media-bundle_media-bundle__description__7GBj3"}},61500:e=>{e.exports={layout:"vm-popular-links_layout__1Pduo",link:"vm-popular-links_link__cIoPi"}},61764:e=>{e.exports={"menu-link":"menu-link_menu-link__GyAEb","menu-link__content":"menu-link_menu-link__content__T8aHZ","menu-link__title":"menu-link_menu-link__title__Jqruw","menu-link__description":"menu-link_menu-link__description__9WWCR"}},61940:e=>{e.exports={container:"vm-payments-section_container__pc0Zt"}},62960:(e,t,r)=>{"use strict";r.d(t,{t8:()=>o,tU:()=>n});let n="onlinesales-correlation-id",o="split-value"},63200:(e,t,r)=>{"use strict";r.d(t,{BurgerMenu:()=>S});var n,o=r(95155),i=r(5772),a=r(98500),s=r.n(a),l=r(12115),c=r(12572),d=r(51073),u=r(29243),_=r(29722),p=r(65305),m=r(11247),h=r(13941),b=r(69839),g=((n={}).Asset="asset",n),f=r(41581),x=r(72317),v=r(77844),y=r(85068),j=r.n(y);let w=()=>(0,o.jsxs)("svg",{width:"320",height:"52",viewBox:"0 0 320 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"image","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M-193.421 -92.5824L-243.158 -31.6773C-248.96 -24.4266 -247.898 -13.8675 -240.768 -7.91758L-239.886 -7.22359C-134.463 78.7325 1.3243 132.189 153.114 147.219L154.097 147.421C163.301 148.257 171.458 141.517 172.374 132.32L180.344 54.2131C181.179 44.9466 174.436 36.7199 165.186 35.7194L164.202 35.5171C34.6113 22.6962 -80.7837 -22.2602 -168.995 -94.2205L-169.661 -94.9723C-176.947 -100.653 -187.412 -99.6002 -193.421 -92.5824Z",fill:"url(#paint0_linear_1542_2917)"}),(0,o.jsx)("path",{d:"M136.488 22.5369L123.471 92.7915C122.712 96.7644 123.57 100.876 125.854 104.214C128.138 107.552 131.659 109.841 135.637 110.574L136.528 110.803C239.278 129.762 331.382 102.423 370.845 90.7877L371.568 90.535C379.651 88.0929 384.273 79.6112 381.945 71.495L361.651 3.01912C359.209 -5.06371 350.727 -9.68605 342.611 -7.35732L341.768 -7.06247C309.418 2.49158 233.709 24.9088 155.077 10.359L154.228 10.2503C145.943 8.77628 138.021 14.263 136.488 22.5369Z",fill:"url(#paint1_linear_1542_2917)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_1542_2917",x1:"-206.854",y1:"52.3507",x2:"352.934",y2:"110.42",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#FF0A0A"}),(0,o.jsx)("stop",{offset:"0.73",stopColor:"#FF6E00"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_1542_2917",x1:"359.591",y1:"25.9686",x2:"142.19",y2:"50.6184",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#FF6EFF"}),(0,o.jsx)("stop",{offset:"0.02",stopColor:"#FF6CF9"}),(0,o.jsx)("stop",{offset:"0.25",stopColor:"#FF49A5"}),(0,o.jsx)("stop",{offset:"0.46",stopColor:"#FF2E63"}),(0,o.jsx)("stop",{offset:"0.64",stopColor:"#FF1B33"}),(0,o.jsx)("stop",{offset:"0.77",stopColor:"#FF0F15"}),(0,o.jsx)("stop",{offset:"0.85",stopColor:"#FF0A0A"})]})]})]});var N=r(1827),k=r.n(N);let E=({nav:e,title:t,selected:r,resetSelected:n,banner:i,closeButton:a=null})=>(0,o.jsxs)("div",{className:(0,_.A)({[k()["burger-menu-section"]]:!0,[k()["burger-menu-section--selected"]]:r}),children:[(0,o.jsxs)("div",{className:(0,_.A)({[k()["burger-menu-section__header"]]:!0}),children:[(0,o.jsxs)("button",{className:(0,_.A)({[k()["burger-menu-section__back-button"]]:!0}),onClick:n,children:[(0,o.jsx)(d.I,{icon:c.Ei6,size:"md"})," Main menu"]}
82),a]}),t&&(0,o.jsx)("div",{className:(0,_.A)({[k()["burger-menu-section__title"]]:!0}),children:t}),i?.[0]&&(0,o.jsx)("div",{className:(0,_.A)({[k()["burger-menu-section__banner"]]:!0}),children:(0,o.jsx)(f.A,{blok:i[0]})}),(0,o.jsx)("ul",{className:(0,_.A)({[k()["burger-menu-section__list"]]:!0}),children:e.map(e=>(0,o.jsx)("li",{className:(0,_.A)({[k()["burger-menu-section__list-item"]]:!0}),children:(0,o.jsx)(v.w,{className:(0,_.A)({[k()["burger-menu-section__list-item-link"]]:!0}),link:e})},e._uid))})]}),S=({logo:e,navigation:t})=>{let{open:r,setOpen:n}=(0,h.b)(),[a,y]=(0,l.useState)(void 0),N={id:1,alt:"VM_Logo_White_optimised_large",name:"VM_Logo_White_optimised_large",focus:null,title:"VM_Logo_White_optimised_large",filename:"https://a.storyblok.com/f/253875/300x173/0ee31a88ec/vm_logo_white_optimised_large.png",fieldtype:g.Asset,copyright:null,meta_data:{},is_external_url:!1},k=(0,u.ZQ)(e||N),S=(0,o.jsx)("button",{className:(0,_.A)({[j()["burger-menu__close"]]:!0,[j()["burger-menu__close--black"]]:!!a}),onClick:()=>{y(""),n({open:p.Qb.NONE})},"aria-label":"Close menu",children:(0,o.jsx)(d.I,{icon:c.VtD,size:"lg"})});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m._,{position:"left",instance:p.Qb.SIDE_NAV,children:(0,o.jsxs)("nav",{className:(0,_.A)({[j()["burger-menu"]]:!0}),children:[(0,o.jsxs)("div",{className:(0,_.A)({[j()["burger-menu__header"]]:!0}),children:[k&&(0,o.jsx)("div",{className:(0,_.A)({[j()["burger-menu__logo"]]:!0}),children:(0,o.jsx)(s(),{href:"/",prefetch:b.Ad,children:(0,o.jsx)(i.default,{alt:k.alt,src:k.src,width:k.width,height:k.height,sizes:"(max-width: 768px) 20vw, 10vw"})})}),(0,o.jsx)(w,{})]}),S,t.map(e=>(0,o.jsxs)(l.Fragment,{children:[e.content.title&&(0,o.jsx)("div",{className:(0,_.A)({[j()["burger-menu__title"]]:!0}),children:e.content.title},`${e.content._uid}--title`),e.content.banner?.[0]&&(0,o.jsx)("div",{className:(0,_.A)({[j()["burger-menu__banner"]]:!0}),children:(0,o.jsx)(f.A,{blok:e.content.banner[0]})},`${e.content._uid}--banner`),(0,o.jsx)("ul",{className:(0,_.A)({[j()["burger-menu__list"]]:!0}),children:e.content.links.map(e=>{let t=(0,x.e)(e)&&e?.links?.length;return(0,o.jsxs)("li",{className:(0,_.A)({[j()["burger-menu__list-item"]]:!0}),children:[(0,o.jsx)(v.w,{className:(0,_.A)({[j()["burger-menu__list-item-link"]]:!0}),onClick:()=>{t&&y(e._uid)},link:e,rightIcon:t&&(0,o.jsx)(d.I,{className:(0,_.A)({[j()["burger-menu__list-item-link-right-icon"]]:!0}),icon:c.Fk5,size:"md"})}),t&&e.links&&(0,o.jsx)(E,{title:e.title,resetSelected:()=>y(void 0),selected:a===e._uid,nav:e.links,banner:e.banner,closeButton:S})]},e._uid)})})]},e._uid))]})}),r===p.Qb.SIDE_NAV&&(0,o.jsx)("button",{type:"button","aria-label":"Close menu",onClick:()=>{y(""),n({open:p.Qb.NONE})},className:(0,_.A)({[j()["drawer-bg"]]:!0})})]})}},63665:e=>{e.exports={container:"counter_container__nGZ6b",count:"counter_count__UcvA6"}},63919:e=>
82{e.exports={"drawer-content":"shopping-cart-byob_drawer-content__WOWrp","drawer-header":"shopping-cart-byob_drawer-header__zber2","drawer-close":"shopping-cart-byob_drawer-close__HrdLV","drawer__line-item":"shopping-cart-byob_drawer__line-item__T03TN","drawer__line-item--no-spacing":"shopping-cart-byob_drawer__line-item--no-spacing__vnXGU",drawer__total:"shopping-cart-byob_drawer__total__O03sq","drawer-footer":"shopping-cart-byob_drawer-footer__5LbxG",drawer__note:"shopping-cart-byob_drawer__note__9FbOA","drawer__full-price":"shopping-cart-byob_drawer__full-price__qwFaX"}},63924:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductInfo:()=>V});var n=r(95155),o=r(12115),i=r(96653),a=r(94714),s=r(11389),l=r(18401),c=r(11241),d=r(51073),u=r(82567),_=r(29722),p=r(65305),m=r(16420),h=r(40217),b=r(58512),g=r(9604),f=r(29081),x=r(32493),v=r(48920),y=r(92790),j=r(28877),w=r(54946),N=r(12612),k=r(54046),E=r(70186),S=r(11247),T=r(13941),C=r(42126),A=r(48399),I=r(9579),P=r(51948),M=r(30710),O=r(18928),B=r.n(O);let L=()=>{let e=(0,f.Og)("drawer-product-info-vmprice-section","drawer-product-info-vmprice-accordion","drawer-product-info-vmprice-title","drawer-product-info-vmprice-chevron","drawer-product-info-vmprice-description","drawer-product-info-vmo2-price-title"),[t,r]=(0,o.useState)(!0),{selectedBundle:i}=(0,T.b)();if(!i)return null;let{msaBundle:a}=i;if(!a)return null;let{tldPricing:u,contract:p,simPriceChanges:m,setupFees:h,broadbandPriceChanges:b}=(0,j.O)(a);if(!u)return null;let{pricing:g,simPricing:x,flexPricing:v,discountedSim:y}=u,{timeLimitedDiscount:w,discountedTld:N}=g,k=x?.amount&&parseFloat(x?.amount)>0||y,E=v&&v>0,S=h&&Object.entries(h).some(([,{amount:e}])=>e>0);return(0,n.jsxs)(c.s,{direction:"column",className:B()["product-info_price"],...e["drawer-product-info-vmprice-section"],children:[(0,n.jsx)(l.$,{className:(0,_.A)({[B()["product-info_price_title_button"]]:!0,[B()["product-info_price_title_button--open"]]:t}),onClick:()=>{r(!t)},...e["drawer-product-info-vmprice-accordion"],children:(0,n.jsxs)(c.s,{className:B()["product-info_price_title"],...e["drawer-product-info-vmprice-title"],children:[(0,n.jsx)("strong",{children:"Your Virgin Media Price"}),(0,n.jsx)(d.I,{className:B()["product-info_price_title_button_icon"],icon:s.SUl,size:"md",...e["drawer-product-info-vmprice-chevron"]})]})}),(0,n.jsxs)("div",{className:(0,_.A)({[B()["product-info_price_description"]]:!0,[B()["product-info_price_description--open"]]:t}),...e["drawer-product-info-vmprice-description"],children:[(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[N?.afterDurationInMonths?(0,n.jsxs)(n.Fragment,{children:[(0,M.a7)(w)," for the first"," ",N?.afterDurationInMonths," months. Then"," ",(0,M.a7)(N?.broadbandAmount)," a month."," "]}):(0,n.jsxs)(n.Fragment,{children:[(0,M.a7)(w)," a month. "]}),b.length>0?b.join(" "):""]},"price"),(0,n.jsx)("li",{children:p?.isRolling?"30 day rolling contract":`${p?.term} month contract.`}),E?(0,n.jsxs)("li",{children:["Flex at ",(0,M.a7)(v)," a month. 30-day rolling contract."]},"price-flex"):null,S?Object.entries(h).filter(([,{amount:e}])=>e>0).map(([e,{text:t,amount:r}])=>(0,n.jsxs)("li",{children:[(0,M.a7)(r)," ",t]},e)):(0,n.jsx)("li",{children:"No setup fee."},"no-fees")]}),k&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.s,{...e["drawer-product-info-vmo2-price-title"],className:(0,_.A)({[B()["product-info_price_title"]]:!0,[B()["product-info_price_title--top-space"]]:!0}),children:(0,n.jsx)("strong",{children:"Your O2 Price "})}),(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[y?.afterDurationInMonths?(0,n.jsxs)(n.Fragment,{children:[(0,M.a7)(x?.amount||"0")," for the first ",y?.afterDurationInMonths," months. Then"," ",(0,M.a7)(y?.amount)," a month."," "]}):(0,n.jsxs)(n.Fragment,{children:[(0,M.a7)(x?.amount||"0")," a month. "]}),m.length>0?m.join(" "):""]}),(0,n.jsx)("li",{children:p?.isRolling?"30 day rolling contract":`${p?.term} month contract.`})]})]})]})]})};var D=r(2439),R=r.n(D),F=r(35228);let V=()=>{let e=(0,f.Og)("drawer-product-info","drawer-product-info-title","drawer-close-button","drawer-product-info-scroll","drawer-product-info-summary","drawer-product-info-summary-title","drawer-product-info-content","drawer-product-info-modal-open","drawer-product-info-modal-container","drawer-product-info-modal-title","drawer-product-info-modal-back-button","drawer-product-info-items","drawer-product-info-image","drawer-product-info-price-section","drawer-product-info-background"),t=(0,o.useRef)(null),[r,M]=(0,o.useState)(void 0),{open:O,selectedBundle:B,setOpen:D,billSplit:V,selectedBundleStyle:$}=(0,T.b)(),z=(0,b.z)(),U=(0,h.p)();if((0,o.useEffect)(()=>
82{if(O)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){O!==p.Qb.NONE&&"Escape"===e.key&&(e.preventDefault(),M(void 0),D({open:p.Qb.NONE}))}},[O]),(0,o.useEffect)(()=>{t?.current&&t.current.scroll({top:0})},[r]),!B?.msaBundle)return null;let{sbBundle:H,msaBundle:G,flashSales:q}=B;if(!G)return null;let W=H.slug,Y=(0,E.M)(H),K=(0,k.gN)(Y),Q=Y.find(e=>e.content.product_type===p.pu.BROADBAND)?.content.speed_profile,Z=H.content.display_name?.content?.[0]?.content?.[0]?.text||H.name,X=Z.split(" "),J=H.content.description,ee=Z.toLocaleLowerCase().includes(p.VD.VOLT)?(0,w.m)(q?.banner):q?.banner,et=(0,v.k)(Q,H.content.override_flare),{tldPricing:er,oneOffPayNowCharges:en,priceChangesHorizontal:eo}=(0,j.O)(G,z),ei=!!G?.journeyTypes?.includes(p.yQ.STREAM),ea=(0,x.uM)(Z,K,ei),es=ea.find(e=>e.productType===p.po.BROADBAND),el=ea.filter(e=>e.productType===p.po.TV),ec=ea.filter(e=>e.productType===p.po.SIM),ed=ea.filter(e=>e.productType===p.po.LANDLINE),eu=ea.filter(e=>e.productType===p.po.NONPRODUCT),e_=!!q?.promotion?.content?.promotion_text&&!!q?.promotion?.content?.promotion_title,ep=q?.promotion?.content?.promotion_colour||"primary",em=el[0]??es;if(em?.mediaLogo){let e=(0,g.I)(em?.mediaLogo,U??void 0);e&&(em.mediaLogo=e)}let eh=(0,I.i)(q?.banner?.content,G?.sp),eb=(0,I.A)(eh,G?.totalMonthlyCosts);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(S._,{className:R()["product-info"],instance:p.Qb.PRODUCT_INFO,...e["drawer-product-info"],children:[(0,n.jsxs)(c.s,{justify:"center",className:R()["product-info_title"],...e["drawer-product-info-title"],children:[(0,n.jsx)(c.s,{justify:"center",align:"center",children:(0,n.jsx)(u.E,{size:"T400",weight:"bold",align:"center",children:"Your selection"})}),(0,n.jsx)(l.$,{...e["drawer-close-button"],"data-testid":"drawer-close",className:R()["button-close"],onClick:()=>{M(void 0),D({open:p.Qb.NONE})},children:(0,n.jsx)(d.I,{icon:a.dQv,size:"md"})})]}),(0,n.jsxs)("div",{ref:t,className:R()["product-info_scrollable"],...e["drawer-product-info-scroll"],children:[(0,n.jsxs)(c.s,{className:R()["product-info_summary"],direction:"column",...e["drawer-product-info-summary"],children:[ee&&(0,n.jsx)(F.o,{sale:ee,dynamicFlashSaleText:eb}),(0,n.jsxs)(c.s,{direction:"column",children:[(0,n.jsxs)(u.E,{className:R()["product-info_summery_title"],size:"T500",...e["drawer-product-info-summary-title"],children:[(0,n.jsx)("strong",{children:X[0]})," ",X.splice(1).join(" ")]}),J&&(0,n.jsx)(m.S,{document:J,StoryblokComponent:i.Dp,...e["drawer-product-info-content"]})]})]}),(0,n.jsx)(c.s,{className:(0,_.A)({[R()["product-info_modal"]]:!0,[R()["product-info_modal--open"]]:r}),...e["drawer-product-info-modal-open"],children:r&&(0,n.jsxs)(c.s,{direction:"column",className:R()["product-info_modal-container"],...e["drawer-product-info-modal-container"],children:[(0,n.jsxs)(c.s,{justify:"center",className:R()["product-info_modal-title"],...e["drawer-product-info-modal-title"],children:[(0,n.jsxs)(l.$,{"data-testid":"button-back",className:`${R()["button-back"]} button-link`,onClick:()=>{M(void 0)},...e["drawer-product-info-modal-back-button"],children:[(0,n.jsx)(d.I,{icon:s.Zku,size:"sm"}),"Back"]}),(0,n.jsx)(u.E,{size:"T300",weight:"medium",align:"center",children:r.title})]}),(0,n.jsx)(A.t,{images:r.images,text:r.content,instance:"product-info"})]})}),(0,n.jsxs)(c.s,{direction:"column",className:(0,_.A)({[R()["product-info_items"]]:!0,[R()["product-info_items--closed"]]:r}),"data-testid":"drawer-product-info-items",...e["drawer-product-info-items"],children:[(0,n.jsx)(L,{}),e_&&(0,n.jsx)(P.W,{setInfo:M,description:{name:q?.promotion?.content.promotion_title??"",ufDescription:q?.promotion?.content.promotion_text},iconUrl:"/vm-upper-funnel/assets/icons/gift.svg",className:(0,_.A)({[R()["product-info_gift"]]:!0,[R()["product-info_gift--primary"]]:"primary"===ep,[R()["product-info_gift--secondary"]]:"secondary"===ep,[R()["product-info_gift--volt"]]:"volt"===ep,[R()["product-info_gift--info"]]:"info"===ep,[R()["product-info_gift--onyx"]]:"onyx"===ep,[R()["product-info_gift--black"]]:"black"===ep,[R()["product-info_gift--tertiary"]]:"tertiary"===ep,[R()["product-info_gift--success"]]:"success"===ep,[R()["product-info_gift--warning"]]:"warning"===ep,[R()["product-info_gift--danger"]]:"danger"===ep,[R()["product-info_gift--light"]]:"light"===ep,[R()["product-info_gift--dark"]]:"dark"===ep})}),(0,n.jsx)(P.W,{setInfo:M,description:es,iconUrl:"/vm-upper-funnel/assets/icons/broadband-thick.svg"}),el?.map(e=>{let t;return t=ei?
82"/vm-upper-funnel/assets/icons/flex-thick.svg":(0,N.v)
82(e.name)?"/vm-upper-funnel/assets/icons/netflix-n.png":"/vm-upper-funnel/assets/icons/tv-thick.svg",(0,n.jsx)(P.W,{setInfo:M,description:e,iconUrl:t},e.name)}),ed?.map(e=>(0,n.jsx)(P.W,{setInfo:M,description:e,iconUrl:"/vm-upper-funnel/assets/icons/phone-thick.svg"},e.name)),ec?.map(e=>(0,n.jsx)(P.W,{setInfo:M,description:e,iconUrl:"/vm-upper-funnel/assets/icons/sim-thick.svg"},e.name)),eu?.map(e=>(0,n.jsx)(P.W,{setInfo:M,description:e,iconUrl:"/vm-upper-funnel/assets/icons/extra-benefits.svg"},e.name)),(0,n.jsx)(c.s,{justify:"center",children:(0,n.jsx)(u.E,{weight:"light",align:"center",children:"Hardware images are for illustrative purposes only"})})]})]},`${G.bundleId}-${O}`),(0,n.jsxs)(c.s,{className:(0,_.A)(R()["product-info_footer"],{[R()["product-info_footer--entertainment"]]:"entertainment"===$}),children:[(0,n.jsx)(c.s,{className:R()["product-info_footer-images"],...e["drawer-product-info-image"],children:"default"===$?(0,n.jsx)(C.S_,{background:et,photos:(0,y.Q)(K,Z,void 0,U)}):(0,n.jsx)(C.Dg,{photos:(0,y.C)(K,Z,void 0,U),orientation:"vertical",title:em?.mediaTitle,description:em?.mediaDescription,logo:em?.mediaLogo})}),(0,n.jsxs)(c.s,{direction:"column",justify:"around",className:R()["product-info_footer-price"],...e["drawer-product-info-price-section"],children:[(0,n.jsx)(C.zY,{discounted:er?.pricing.timeLimitedTotal,discountedPeriod:er.pricing.discountedTld?.afterDurationInMonths,afterPeriodPrice:er.pricing.discountedTld?.amount,regular:er?.pricing.regular,priceChanges:eo,className:R()["product-info_price"],showBillSplit:V,initialBillSplitAmount:er.initialBillSplitAmount,isProductInfo:!0,dailyTldPrice:er.dailyTldPrice}),(0,n.jsx)(C.F7,{layout:"landscape",id:W,customisation:!1,hasOneOffPayNowCharges:!!en?.length,bundle:G,blok:H})]})]})]}),O&&(0,n.jsx)("button",{type:"button","aria-label":"Close","data-testid":"drawer-background",onClick:()=>{M(void 0),D({open:p.Qb.NONE})},className:R()["product-info_background"],...e["drawer-product-info-background"]})]})}},64528:e=>{e.exports={container:"vm-icons-list_container__G0Vry"}},64808:(e,t,r)=>{"use strict";r.d(t,{W:()=>x});var n=r(95155),o=r(5772),i=r(96653),a=r(11241),s=r(51073),l=r(29722),c=r(5423),d=r(74855),u=r(48399),_=r(16420),p=r(69839),m=r(18829),h=r(29081),b=r(105),g=r.n(b);let f=({text:e,dataAttrs:t,className:r})=>"string"==typeof e?(0,n.jsx)("div",{...t??{},className:(0,l.A)({[g().pill_text_description]:!0,[g()["pill_text_description--price"]]:"price"===r}),"data-testid":"pill-text-description",dangerouslySetInnerHTML:{__html:e}}):(0,n.jsx)("div",{children:(0,n.jsx)(_.S,{document:e,StoryblokComponent:i.Dp})}),x=({description:e,iconUrl:t,icon:r,showItemsNr:i,netflix:l,bundleName:_,isTV:b,enableNetflixModalChat:x})=>{let v=(0,h.Og)("horizontal-product-card-price-increase","product-card-horizontal-item-title","short-description","modal-link","modal-title","modal
82-content"),y="string"==typeof e?.ufDescription?0:e?.ufDescription?.content?.[0]?.content?.[0]?.content?.[0]?.content?.[0]?.text?.length;"string"!=typeof e?.ufDescription&&e?.ufDescription?.content?.[0]?.content?.splice(i||((y??0)>39?1:2));let j=x?"#already-got-netflix":"#already-got-netflix-no-chat",w=l?.modals?.find(({id:e})=>e===j),N=w&&x?(0,n.jsx)(d.M,{bundleName:_??""}):null;return(0,n.jsxs)(a.s,{direction:"column",className:g().pill,children:[(0,n.jsxs)(a.s,{direction:"row",align:"center",className:g().pill_title,children:[t&&(0,n.jsx)(o.default,{className:g().pill_icon,unoptimized:!0,alt:`${e?.productType} icon`,src:t,width:16,height:16,"data-cy":"product-card-title-icon"}),(0,n.jsxs)(a.s,{justify:"center",className:g()["pill_title-content"],gap:"sm",...v["product-card-horizontal-item-title"],children:[(0,n.jsxs)(a.s,{children:[r&&(0,n.jsx)(s.I,{icon:r,size:"lg"}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e?.name??""}})]}),l&&(0,n.jsxs)(a.s,{align:"center",gap:"sm",children:["&",(0,n.jsx)(o.default,{unoptimized:!0,src:"/vm-upper-funnel/assets/icons/netflix-logo.svg",alt:"Netflix logo",width:"50",height:"14"})]})]})]}),(0,n.jsxs)("div",{className:g().pill_description,...v["short-description"],children:[(0,n.jsx)(f,{text:e?.ufDescription,dataAttrs:v["horizontal-product-card-price-increase"],className:e?.name==="Price"?"price":""}),e?.modals?.[0]?.linkText&&(0,n.jsx)("div",{className:g().pill__link,...v["modal-link"],children:(0,n.jsx)(c.o,{...v["modal-title"],title:e?.modals?.[0]?.title??"",text:(0,n.jsx)(u.t,{...v["modal-content"],images:e?.modals?.[0]?.images,text:e?.modals?.[0]?.text??[]}),children:e?.modals?.[0]?.linkText})}),l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:g().pill__netflix,children:(0,n.jsx)(f,{text:l.name,dataAttrs:v["horizontal-product-card-price-increase"]})}),w&&(0,n.jsx)("div",{className:g().pill__link,children:(0,n.jsx)(c.o,{title:w.title??"",text:(0,n.jsx)(u.t,{text:w.text??[]}),button:N,onLinkClick:()=>(0,m.A)(p.bk.CONTENT,{event_name:p.qy.CONTENT_CLICK,event_params:{content_type:`web - plp - ${b?"tv":"broadband"}`,content_name:"already have netflix",content_link:void 0}}),children:w.linkText})})]})]})]})}},65184:(e,t,r)=>{"use strict";r.d(t,{HeaderSidenav:()=>j});var n=r(95155),o=r(11389),i=r(43928);let a=e=>{if(e){if("url"===e.linktype)return e.url;if("story"===e.linktype&&e.full_slug){let t=e.full_slug.replace("en/vm-upper-funnel",""),r=t.startsWith("/")?t:`/${t}`;return r.length>1?r:"/"}if("story"===e.linktype&&e.cached_url){let t=e.cached_url.replace("vm-upper-funnel/",""),r=t.startsWith("/")?t:`/${t}`;return r.length>1?r:"/"}}};var s=r(69292);let l=e=>e.reduce((e,t)=>t.component===s.E3._NAVIGATION?[...e,t]:[...e,[t]],[]);var c=r(98500),d=r.n(c),u=r(51073),_=r(69839);let p=({links:e,coerceUrl:t})=>e.filter(e=>e.component===s.E3.LINK).map(e=>(0,n.jsx)(m,{link:e,coerceUrl:t},e._uid)),m=({link:e,coerceUrl:t})=>{let r=t(e.link),o=e.tag?{"data-tag":e.tag}:{};return(0,n.jsx)("li",{children:(0,n.jsx)(i.Pk,{prefix:e.icon_new&&(0,n.jsx)(u.I,{icon:e.icon_new}),children:(0,n.jsx)(d(),{href:r||"/",prefetch:_.Ad,...o,children:e.title})})})};var h=r(12115),b=r(97157);let g=({navigation:e,coerceUrl:t})=>l(e.links).map(r=>Array.isArray(r)?(0,n.jsx)(p,{links:r,coerceUrl:t},r[0]._uid):(0,n.jsx)(f,{navigation:r,current:e},r._uid)),f=({navigation:e,current:t})=>{let{setLevel:r,active:s,setActive:l}=(0,h.useContext)(b.NavigationCtx),c=(0,h.useRef)(null);(0,h.useEffect)(()=>{s[s.length-1]===e._uid&&setTimeout(()=>c.current?.focus(),100)},[s,e]);let d=(0,h.useCallback)(()=>{r(e=>e+1),l(t=>[...t,e._uid])},[r,l,e]),_=(0,h.useCallback)(()=>{r(e=>e-1),l(e=>e.slice(0,e.length-1))},[r,l]);return(0,n.jsxs)("li",{children:[(0,n.jsx)(i.Pk,{prefix:e.icon_new&&(0,n.jsx)(u.I,{icon:e.icon_new}),suffix:(0,n.jsx)(u.I,{icon:o.qhg}),children:(0,n.jsx)("button",{onClick:d,children:e.title})}),(0,n.jsx)(i.Is,{ref:c,title:e.title,hidden:!s.includes(e._uid??""),header:(0,n.jsx)(i.Pk,{prefix:(0,n.jsx)(u.I,{icon:o.Zku}),variant:"secondary",children:(0,n.jsx)("button",{onClick:_,children:t.title})}),subsection:!0,children:(0,n.jsx)(g,{navigation:e,coerceUrl:a})})]})},x=({links:e,coerceUrl:t})=>e.map((e,r)=>(0,n.jsx)(v,{link:e,coerceUrl:t,index:r},Array.isArray(e)?r:e._uid)),v=({link:e,coerceUrl:t,index:r})=>Array.isArray(e)?(0,n.jsx)(i.Is,{index:r,children:(0,n.jsx)(p,{links:e,coerceUrl:t})}):(0,n.jsx)(i.Is,{title:e.title,index:r,children:(0,n.jsx)(g,{navigation:e,coerceUrl:t})}),y={_uid:"home-link-section",title:"",links:[{_uid:"home-link",component:"dynamo_link",title:"Home",link:{url:"/",target:"_self",linktype:"url",fieldtype:"multilink",cached_url:"/"},icon_new:o.HEz,no_decoration:!0}]},j=({navigation:e})=>{let t=[y,...l(e.content.links)];return(0,n.jsx)(i.f8,{children:(0,n.jsx)(x,{links:t,coerceUrl:a})})}},65305:(e,t,r)=>{"use strict";r.d(t,{o6:()=>L,Lk:()=>R,VD:()=>I,e$:()=>y,Qb:()=>E,Ui:()=>B,nZ:()=>D,yQ:()=>P,Fi:()=>A,ZE:()=>j,jT:()=>k,_k:()=>M,po:()=>C,ub:()=>w,pu:()=>N,tJ:()=>T,KT:()=>S,kL:()=>O});var n,o,i,a,s,l,c,d,u,_,p,m,h,b,g,f,x,v,y=((n={}).ONE_OFF_PAY_NOW="OneOffPayNow",n.ONE_OFF_PAY_LATER="OneOffPayLater",n.RECURRING_CHARGE="RecurringCharge",n),j=((o={}).CORE="Core",o.ADD_ON="AddOn",o.EQUIPMENT="Equipment",o.SETUP="Setup",o.DISCOUNT="Discount",o),w=((i={}).CORE="Core",i.EXTRA="Extra",i),N=((a={}
82).BROADBAND="Broadband",a.TV="TV",a.LANDLINE="Landline",a.SIM="SIM",a.NON_PRODUCT="NonProduct",a.OTHER="other",a),k=((s={}).SHOW_AS_ADDON="show_as_addon",s),E=((l={}).NONE="",l.SHOPPING_CART="SHOPPING_CART",l.PRODUCT_INFO="PRODUCT_INFO",l.PRODUCT_INFO_MANUAL="PRODUCT_INFO_MANUAL",l.SIDE_NAV="SIDE_NAV",l),S=((c={}).PARAGRAPH="paragraph",c.LIST_ITEM="list_item",c.TEXT="text",c.BULLET_LIST="bullet_list",c),T=((d={}).SALES_MODAL_IMAGES="sales-product-modal-images",d),C=((u={}).BROADBAND="broadband",u.LANDLINE="landline",u.SIM="sim",u.TV="tv",u.NONPRODUCT="nonproduct",u),A=((_={}).IMAGE_POSITION="imagePosition",_.MODEL_GROUP="modelGroup",_.DEVICE_MODELS="deviceModels",_.FLARE_GROUP="flareGroup",_.SLIDE_ASSET="slideAsset",_),I=((p={}).VOLT="volt",p),P=((m={}).STREAM="Stream",m.STUDENT="Student",m),M=((h={}).NETFLIX_ENROL="netflix_enrol",h.STREAMTV="streamtv",h.BOOST="boost",h),O=((b={})[b.INCREASE=1]="INCREASE",b[b.DECREASE=-1]="DECREASE",b),B=((g={}).SOCIAL_PROOFING_BASKET="social-proofing-basket",g),L=((f={}).SHOW="show",f.HIDE="hide",f),D=((x={}).QUICK_START="QuickStartInstallation",x.MANNED="MannedInstallation",x),R=((v={}).BROADBAND="BROADBAND",v.TV="TV",v.SIM="SIM",v.VOLT="VOLT",v.PHONE="PHONE",v.STREAM="STREAM",v)},65805:e=>{e.exports={"drawer-overlay":"drawer-v2_drawer-overlay__01uAh","fade-out":"drawer-v2_fade-out__dt7Gi","fade-in":"drawer-v2_fade-in__3hlj5","drawer-content":"drawer-v2_drawer-content__2lKj4","drawer-content__notch":"drawer-v2_drawer-content__notch__eaXVw","drawer-header":"drawer-v2_drawer-header__w_Er8","drawer-footer":"drawer-v2_drawer-footer__q_BJk"}},66045:(e,t,r)=>{"use strict";r.d(t,{rf:()=>n.useBasketNotification});var n=r(16999)},66247:(e,t,r)=>{"use strict";r.d(t,{h:()=>l});var n=r(95155),o=r(29722),i=r(29081),a=r(10930),s=r.n(a);let l=({children:e,layout:t,as:r="h4",className:a,forceMobile:l=!1,...c})=>{let d="landscape"===t?"product-card-horizontal-title":"product-card-title",u=(0,i.Og)(d),_=(0,o.A)({[s().title]:!0,[s()["title-landscape"]]:"landscape"===t,"force-mobile":l},a);return"div"===r?(0,n.jsx)("div",{className:_,...u[d],...c,children:e}):(0,n.jsx)("h4",{className:_,...u[d],...c,children:e})}},66415:e=>{e.exports={"hero-banner__debug":"hero-debugging_hero-banner__debug__NqI4m"}},66431:(e,t,r)=>{"use strict";r.d(t,{ExtendedFooter:()=>l});var n=r(95155),o=r(98015),i=r(38198),a=r(94920),s=r.n(a);let l=({linkItem:e})=>{let t=(0,i.G)();return(0,n.jsx)(n.Fragment,{children:t?(0,n.jsxs)("div",{children:[(0,n.jsx)("h5",{className:s()["Body-Small"],children:e.title}),(0,n.jsx)("nav",{"aria-label":e.title,children:(0,n.jsx)("ul",{className:s()["link-group"],children:e.links?.length>0?e.links.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)("a",{rel:"noopener noreferrer",href:"link"in e?e.link.url:"/",className:s()["Body-X-Small-Book"],children:e.title})},e._uid)):null})})]}):(0,n.jsx)(o.n,{title:e.title,className:s().accordion,children:(0,n.jsx)("ul",{className:s()["link-group"],children:e.links?.length>0?e.links.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)("a",{rel:"noopener noreferrer",href:"link"in e?e.link.url:"/",className:s()["Body-X-Small-Book"],children:e.title})},e._uid)):null})})})}},66649:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AddToBasket:()=>y});var n=r(95155),o=r(12115),i=r(18401),a=r(82567),s=r(29722),l=r(82849),c=r(20516),d=r(15355),u=r(62960),_=r(69839),p=r(87797),m=r(85592),h=r(18829),b=r(29081),g=r(28877),f=r(45772),x=r(9339);let v=(0,x.createServerReference)("605506b66b2077a067eaea1f1ad17faeb907fad56e",x.callServer,void 0,x.findSourceMapURL,"addToBasketAction"),y=({id:e,layout:t,customisation:r=!1,hasOneOffPayNowCharges:x,bundle:y,blok:j,flashSales:w,variant:N,label:k="Add to basket",className:E="",queryParameter:S="",onClickCallback:T,gtmEcommerceArgs:C})=>{let{availability:A}=(0,o.useContext)(m.s),[,I]=(0,o.useTransition)(),P="landscape"===t?"horizontal-add-to-basket-cta":"add-to-basket-cta",M=(0,b.Og)(P),[O,B]=(0,o.useActionState)(v,{success:!1}),L=j.content.display_name?.content?.[0]?.content?.[0]?.text||j.name,{createToast:D,showToast:R}=(0,p.R)(),{tldPricing:F}=(0,g.O)(y),V=(0,o.useCallback)(e=>{let t=window.location.origin,r=`${(0,f.m)(t)}
82/buy/init-checkout`,n=[e?"dest=c":"",x?"":"apm=1",S].filter(Boolean).join("&"),o=n?`${r}?${n}`:r;window.location.href=o},[x]);return(0,o.useEffect)(()=>{!0===O.success?V(r):O.error&&R(D(`There's been an error. Product ${L} has not been added to basket.`))},[O,V,r]),(0,n.jsx)(i.$,{onClick:()=>{I(()=>B(e));let t=(0,d.Cz)(y,j,w,A?.deliveryMethod,C);(0,h.A)(_.bk.ECOMMERCE,{event_name:_.qy.ECOMMERCE_ADD_TO_CART,event_params:{product_count:"1",page_journey:"content",pricing_engine_request_id:"",price_engine_recommendation:"none"},ecommerce:{currency:"GBP",value:F.pricing.discountedTld?.amount||"0.00",items:[t]}}),l.A.set(u.t8,c.XI.toString()),T&&T()},className:(0,s.A)({"add-to-basket":!0,[E]:E}),variant:N??"destructive",width:"full-width",rounded:"xl",...M[P],children:(0,n.jsx)(a.E,{color:"light",weight:"bold",children:k})})}},66760:e=>{e.exports={"vm-grid-of-logos":"vm-grid-of-logos_vm-grid-of-logos__oavr_",logo:"vm-grid-of-logos_logo__86VCH"}},67270:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(40217),o=r(9604);let i=e=>{let t=(0,n.p)();return(0,o.G)(e,t??void 0)}},67526:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ByobContext:()=>m,ByobContextProvider:()=>h});var n=r(95155),o=r(73321),i=r(12115),a=r(15355),s=r(69839),l=r(55451),c=r(36282),d=r(18829),u=r(51970),_=r(32694),p=r(85592);let m=i.createContext({validBundles:[],setValidBundles:()=>{},customisations:{},steps:{current:null,total:null},intentType:null,storyblokProducts:{},isFlexJourney:!1,isBasketRedirectPending:!1,setIsBasketRedirectPending:()=>{},showUpsellPopup:!1,setShowUpsellPopup:()=>{},selectedBundle:void 0,counterpartBundle:null,isLoading:!1,setIsLoading:()=>{},hasCriticalFullPageError:!1}),h=({basket:e,customisations:t,validBundles:r,currentStep:h,totalSteps:b,intentType:g,storyblokProducts:f,postSvcRedirect:x,emptyBundlesRedirect:v,hasCriticalFullPageError:y=!1,children:j})=>{let{availability:w,allowPostcodeCapture:N}=(0,i.useContext)(p.s),{setBasket:k}=(0,u.D)(),[E,S]=(0,i.useState)(r),[T,C]=(0,i.useState)(!1),[A,I]=(0,i.useState)(()=>h!==_._3.STREAM_BOXES&&!(0,c.V)(w,N)),P=(0,i.useRef)(w),M=(E||[]).find(t=>t?.msaBundle.bundleId===e?.bundleId),O=(0,i.useMemo)(()=>{if(!M||!t)return null;let e=M.msaBundle.journeyTypes,r=M.msaBundle.bbMaxDownloadSpeed,n=e?.includes("Symmetric");return t.customisations.broadband.bundles.find(e=>e.bbMaxDownloadSpeed===r&&(n?!e.journeyTypes?.includes("Symmetric"):e.journeyTypes?.includes("Symmetric")))||null},[M,t]),B=!!(t?.addOns.find(e=>e.display_groups.includes("sky_uhd"))&&e?.products?.find(e=>e.productDisplayGroup?.includes("sky_picks"))),L="tv"===g,D="broadband"===g,R=L?_._3.TV_CHANNELS:_.Al.TV_CHANNELS,F=L?_._3.BROADBAND:_.Al.BASE_BUNDLE,V=h===R,$=h===F,z=!!O,U=w?.deliveryMethod==="XGS",H=D?z&&U:z,[G,q]=(0,i.useState)(()=>V?!!B:!!$&&H);(0,i.useEffect)(()=>{q(e=>V?!!B:$?H:e)},[B,V,$,H]);let W=e?.journeyTypes?.includes("Stream")??!1;(0,i.useEffect)(()=>{r&&S(r)},[r]),(0,i.useEffect)(()=>{k(e?{basketPricing:e}:void 0)},[e,k]),(0,i.useEffect)(()=>{if(!w||P.current||M)return;let e=x;h===_._3.BASE_BUNDLE&&!E?.length&&v&&(e=v),e&&(0,o.redirect)(e),P.current=w},[M,w,x,v,E,h]),(0,i.useEffect)(()=>{if("tv"!==g)return;let{bundleId:t,originalBundleId:r}=e||{};h===_._3.BASE_BUNDLE&&(e?.commitmentState==="Confirmed"||t!==r)&&(0,l.u)({id:r??"",body:{commitmentState:"Provisional",ignoreNestedAddons:!0}}),h===_._3.TV_CHANNELS&&e?.commitmentState==="Confirmed"&&(0,l.u)({id:e.lastProvisionalBundleId??"",body:{commitmentState:"Provisional"}}),h===_._3.BROADBAND&&e&&"Confirmed"!==e.commitmentState&&(0,l.u)({id:e.bundleId??"",body:{commitmentState:"Confirmed"}})},[g,e,h]),(0,i.useEffect)(()=>{"broadband"===g&&h===_.Al.BASE_BUNDLE&&e?.commitmentState==="Confirmed"&&(0,l.u)({id:e?.lastProvisionalBundleId??"",body:{commitmentState:"Provisional"}})},[g,e,h]),(0,i.useEffect)(()=>{if(!e&&h!==_._3.BASE_BUNDLE)return;let t=e?[(0,a.GV)(e,void 0,void 0,w?.deliveryMethod)]:[];(0,d.A)(s.bk.ECOMMERCE,{event_name:s.qy.ADD_SHIPPING_INFO,event_params:{checkout_step:(0,a.Jt)(h),page_journey:"BYO_Journey",page_intent:"broadband"===g?"BB":"TV"},ecommerce:{currency:"GBP",value:e?.totalMonthlyCosts?.total?.[0]?.amount||"0.00",items:t}})},[]);let Y=(0,i.useMemo)(()=>({customisations:t,validBundles:E??[],setValidBundles:S,steps:{current:h,total:b},intentType:g,storyblokProducts:f??{},isFlexJourney:W,isBasketRedirectPending:T,setIsBasketRedirectPending:C,showUpsellPopup:G,setShowUpsellPopup:q,selectedBundle:M,counterpartBundle:O,isLoading:A,setIsLoading:I,hasCriticalFullPageError:y}),[E,S,t,h,b,g,f,W,T,C,G,q,M,O,A,I,y]);return(0,n.jsx)(m.Provider,{value:Y,children:j})}},67612:e=>{e.exports={container:"vm-media-banner_container__LagQD",left:"vm-media-banner_left__4ngJd",right:"vm-media-banner_right__Hewzn",image:"vm-media-banner_image__CsiVW","full-width":"vm-media-banner_full-width__8f0vB","media-list-text-content":"vm-media-banner_media-list-text-content__Tmpti"}},67927:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(9339);let o=(0,n.createServerReference)("403f4073a09fa7beb31a4cfa599035e16feb6c95c7",n.callServer,void 0,n.findSourceMapURL,"addTVAddOnAction")},68018:e=>{e.exports={"v-book":"v-book_v-book__2DWP0","v-book--tint-black":"v-book_v-book--tint-black__CytIo","v-book--expanded":"v-book_v-book--expanded__njJoF","v-book__control":"v-book_v-book__control__oG_pA","v-book__title":"v-book_v-book__title__g72DT","v-book__logo":"v-book_v-book__logo__xVGXN","v-book__logo-container":"v-book_v-book__logo-container__fuqda","v-book__content":"v-book_v-book__content__zFTvq","v-book__description":"v-book_v-book__description__swlfJ","v-book__content-title":"v-book_v-book__content-title__mwKFZ","v-book__control-indicator":"v-book_v-book__control-indicator__r6Ly7","v-book__control-text":"v-book_v-book__control-text__76LM7","v-book__controls":"v-book_v-book__controls__j3ANg"}}
82,68336:e=>{e.exports={container:"vm-upperfunnel-picasso-section_container__p8KUp"}},69839:(e,t,r)=>{"use strict";r.d(t,{Ad:()=>o,JA:()=>m,ZD:()=>p,bk:()=>i,eT:()=>d,hE:()=>c,hh:()=>s,ol:()=>n,qK:()=>_,q_:()=>u,qy:()=>a,sd:()=>l});let n="100vw,(min-width: 25em) 400px,(min-width: 25em) and (min-resolution: 144dpi) 800px,(min-width: 48em) 384px,(min-width: 48em) and (min-resolution: 144dpi) 768px,(min-width: 64em) 350px,(min-width: 64em) and (min-resolution: 144dpi) 700px",o=!1,i={SERVICEABILITY:"serviceability_actions",ECOMMERCE:"ecom_event",BASKET:"ecommerce_click",SITE:"site_events",CONTENT:"content_actions"},a={SERVICEABILITY_INIT:"serviceability_initialised",SERVICEABILITY_SELECT_ADDRESS:"serviceability_address_select",SERVICEABILITY_CONFIRM_ADDRESS:"serviceability_address_confirmed",ECOMMERCE_RESULTS:"view_item_list",ECOMMERCE_ADD_TO_CART:"add_to_cart",ECOMMERCE_CUSTOMISE:"customise",BASKET_CHECKOUT:"sales_basket_continue",SITE_LOGIN:"login_icon_click",CONTENT_CLICK:"content_clicked",ADD_SHIPPING_INFO:"add_shipping_info"},s={SERVICEABILITY_INIT:"initialised check",SERVICEABILITY_SELECT_ADDRESS:"address selected",SERVICEABILITY_CONFIRM_ADDRESS:"address confirmed",BASKET_CHECKOUT:"Click on continue in sales basket steps"},l={SERVICEABILITY:"serviceability interaction"},c=[{id:"sky",packages:["Big bundle + Drama & Docs","Big Volt bundle + Drama & Docs","Bigger bundle","Bigger bundle + Movies","Bigger bundle + Sports","Bigger Volt bundle","Bigger Volt bundle + Movies","Bigger Volt bundle + Sports","Biggest TV bundle","Biggest TV Volt bundle","Ultimate Volt bundle","Volt Fibre Broadband + TV","Bigger bundle + Sports HD","Bigger Volt bundle + Sports HD","Bigger Combo bundle + Sports HD","Sport bundle","Sport bundle + phone","Bigger Combo Volt bundle + Sports HD","Sport Volt bundle","Bigger Combo bundle","Entertainment bundle","Entertainment bundle + phone","Bigger Combo Volt bundle","Entertainment Volt bundle","Bigger Combo bundle + Sports","Bigger Combo Volt bundle + Sports","Bigger Combo bundle + Movies","Cinema bundle","Cinema bundle + phone","Bigger Combo Volt bundle + Movies","Cinema Volt bundle","Biggest Combo bundle","Sport + Cinema bundle","Biggest Combo Volt bundle","Sport + Cinema Volt bundle","Mega Volt bundle","Max Volt bundle","Max Volt bundle + phone","Sport + Cinema bundle + phone"]},{id:"sports",packages:["Bigger bundle + Sports","Bigger Volt bundle + Sports","Biggest TV bundle","Biggest TV Volt bundle","Ultimate Volt bundle","Bigger bundle + Sports HD","Bigger Volt bundle + Sports HD","Bigger Combo bundle + Sports HD","Sport bundle","Sport bundle + phone","Bigger Combo Volt bundle + Sports HD","Sport Volt bundle","Bigger Combo bundle + Sports","Bigger Combo Volt bundle + Sports","Biggest Combo bundle","Sport + Cinema bundle","Biggest Combo Volt bundle","Sport + Cinema Volt bundle","Mega Volt bundle","Max Volt bundle","Sport + Cinema bundle + phone","Max Volt bundle + phone"]},{id:"movies",packages:["Bigger bundle + Movies","Bigger Volt bundle + Movies","Biggest TV bundle","Biggest TV Volt bundle","Ultimate Volt bundle","Bigger Combo bundle + Movies","Cinema bundle","Cinema bundle + phone","Bigger Combo Volt bundle + Movies","Cinema Volt bundle","Biggest Combo bundle","Sport + Cinema bundle","Biggest Combo Volt bundle","Sport + Cinema Volt bundle","Mega Volt bundle","Max Volt bundle","Sport + Cinema bundle + phone","Max Volt bundle + phone"]},{id:"freeview",packages:["Big bundle","Big bundle + Drama & Docs","Big Volt bundle","Big Volt bundle + Drama & Docs","Bigger bundle","Bigger bundle + Movies","Bigger bundle + Sports","Bigger Volt bundle","Bigger Volt bundle + Movies","Bigger Volt bundle + Sports","Biggest TV bundle","Biggest TV Volt bundle","Ultimate Volt bundle","Volt Fibre Broadband + TV","Bigger bundle + Sports HD","Bigger Volt bundle + Sports HD","Bigger Combo bundle + Sports HD","Sport bundle","Sport bundle + phone","Bigger Combo Volt bundle + Sports HD","Sport Volt bundle","Bigger Combo bundle","Entertainment bundle","Entertainment bundle + phone","Bigger Combo Volt bundle","Entertainment Volt bundle","Bigger Combo bundle + Sports","Bigger Combo Volt bundle + Sports","Bigger Combo bundle + Movies","Cinema bundle","Cinema bundle + phone","Bigger Combo Volt bundle + Movies","Cinema Volt bundle","Biggest Combo bundle","Sport + Cinema bundle","Biggest Combo Volt bundle","Sport + Cinema Volt bundle","Mega Volt bundle","Max Volt bundle","Max Volt bundle + phone","M50 Fibre Broadband + Flex","M125 Fibre Broadband + Flex","M250 Fibre Broadband + Flex","M350 Fibre Broadband + Flex","M500 Fibre Broadband + Flex","Gig1 Fibre Broadband + Flex","Volt Fibre Broadband + Flex","Volt M125 Fibre Broadband + Flex","Volt M250 Fibre Broadband + Flex","Volt M350 Fibre Broadband + Flex","Volt M500 Fibre Broadband + Flex","Volt Gig1 Fibre Broadband + Flex","M50 Full Fibre Broadband + Flex","M125 Full Fibre Broadband + Flex","M250 Full Fibre Broadband + Flex","M350 Full Fibre Broadband + Flex","M500 Full Fibre Broadband + Flex","Gig1 Full Fibre Broadband + Flex","Gig2 Full Fibre Broadband + Flex","Volt M125 Full Fibre Broadband + Flex","Volt M250 Full Fibre Broadband + Flex","Volt M350 Full Fibre Broadband + Flex","Volt M500 Full Fibre Broadband + Flex","Volt Gig1 Full Fibre Broadband + Flex","Volt Gig2 Full Fibre Broadband + Flex","Sport + Cinema bundle + phone"]},{id:"btsports",packages:["Bigger bundle","Bigger bundle + Movies","Bigger bundle + Sports","Bigger Volt bundle","Bigger Volt bundle + Movies","Bigger Volt bundle + Sports","Biggest TV bundle","Biggest TV Volt bundle","Ultimate Volt bundle","Volt Fibre Broadband + TV","Bigger bundle + Sports HD","Bigger Volt bundle + Sports HD"]},{id:"netflix",packages:["Biggest TV bundle","Biggest TV Volt bundle","Ultimate Volt bundle","Biggest Combo bundle","Sport + Cinema bundle","Biggest Combo Volt bundle","Sport + Cinema Volt bundle","Mega Volt bundle","Max Volt bundle","Entertainment bundle","Entertainment Volt bundle","Cinema bundle","Cinema Volt bundle","Sport bundle","Sport Volt bundle","Entertainment bundle + phone","Sport bundle + phone","Cinema bundle + phone","Sport + Cinema bundle + phone","Max Volt bundle + phone"]},{id:"kids",packages:["Mega Volt bundle","Max Volt bundle","Max Volt bundle + phone"]},{id:"comedies",packages:["Bigger bundle","Bigger Volt bundle","Bigger bundle + Movies","Bigger Volt bundle + Movies","Bigger bundle + Sports HD","Bigger Volt bundle + Sports HD","Biggest TV bundle","Biggest TV Volt bundle","Mega Volt bundle","Max Volt bundle"]},{id:"documentaries",packages:["Bigger bundle","Bigger Volt bundle","Bigger bundle + Movies","Bigger Volt bundle + Movies","Bigger bundle + Sports HD","Bigger Volt bundle + Sports HD","Biggest TV bundle","Biggest TV Volt bundle","Mega Volt bundle","Max Volt bundle"]},{id:"lifestyle",packages:["Bigger bundle","Bigger Volt bundle","Bigger bundle + Movies","Bigger Volt bundle + Movies","Bigger bundle + Sports HD","Bigger Volt bundle + Sports HD","Biggest TV bundle","Biggest TV Volt bundle","Mega Volt bundle","Max Volt bundle"]}],d={SHOW_ADDRESS_SEARCH_SUCCESS_TOAST:"uf-show-address-success-toast",SERVICEABLITY:"uf-serviceability",PRODUCT_SORT_FILTER_SETTING:"uf-product-sort-filter-setting",BASKET_SUPPRESSED:"uf-basket-suppressed"},u=["data-cy","data-cs-override-id"],_=["data-cy","data-cs-override-id"],p=!1,m="data-cs-override-id"},70154:e=>{e.exports={"media-bundle":"media-bundle_media-bundle__4O8Nh","flare-container":"media-bundle_flare-container__ZsnNf",photos:"media-bundle_photos__TFnwR",m50_flare:"media-bundle_m50_flare__Q5Il8","photos-1":"media-bundle_photos-1__xuADv",broadband:"media-bundle_broadband__2opWz","photos-2-tv":"media-bundle_photos-2-tv__yu5_r",sim:"media-bundle_sim__fs_cg",tv:"media-bundle_tv__zfer9",landline:"media-bundle_landline__v3U5i","photos-2":"media-bundle_photos-2__zLTOF","photos-3-tv":"media-bundle_photos-3-tv__u4GDj"}},70186:(e,t,r)=>{"use strict";function n(e){let t=e.content.products;if(!t?.length)throw Error(`No products attached to bundleId ${e.slug}`);return t}r.d(t,{M:()=>n})},70693:e=>{e.exports={"full-width-container":"vm-full-width-container_full-width-container__5ALcR"}},70777:e=>{e.exports={"exposed-menu-drop-down":"exposed-menu-drop-down_exposed-menu-drop-down__5HL26","exposed-menu-drop-down__list":"exposed-menu-drop-down_exposed-menu-drop-down__list__oJ1hC","exposed-menu-drop-down__list-item":"exposed-menu-drop-down_exposed-menu-drop-down__list-item__kQLmv","exposed-menu-drop-down__banner":"exposed-menu-drop-down_exposed-menu-drop-down__banner__eDWCs","exposed-menu-drop-down__list-item-link":"exposed-menu-drop-down_exposed-menu-drop-down__list-item-link__fhXy_"}},70785:e=>{e.exports={"uf-header":"header_uf-header__zeUFD","header-default":"header_header-default__eBjcy",header__end_links:"header_header__end_links__AamU8","uf-header__content":"header_uf-header__content__Fg0Hh","uf-header__start":"header_uf-header__start__LBVsR","uf-header__end":"header_uf-header__end__nTcEg","uf-header__middle":"header_uf-header__middle__d4XS3","uf-header__logo":"header_uf-header__logo__joBO4","header-exposed":"header_header-exposed__evppH","desktop-only":"header_desktop-only__pnZIE","mobile-only":"header_mobile-only__y1_mD"}},71072:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});
82var n=r(95155),o=r(5772),i=r(12115),a=r(11241),s=r(82567),l=r(29081),c=r(18114),d=r.n(c);let u=({children:e,fallbackImage:t,fallbackAlt:r="3D experience not available"})=>{let[c,u]=(0,i.useState)(null),_=(0,l.Og)("hero-banner-image"),[p,m]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{u((()=>{try{let e=document.createElement("canvas");return!!(e.getContext("webgl")||e.getContext("experimental-webgl"))}catch(e){return console.error("Error checking if WebGL is available",e),!1}})());let e=e=>{console.error("Global GLTF loading error:",e.detail),m(!0)};return window.addEventListener("gltf-load-error",e),()=>window.removeEventListener("gltf-load-error",e)},[]),null===c)?(0,n.jsx)(n.Fragment,{children:e}):!1===c||p?(0,n.jsx)(a.s,{className:d()["webgl-guard"],align:"center",justify:"center",children:t?(0,n.jsx)(a.s,{className:d()["webgl-guard__fallback-container"],align:"center",justify:"center",children:(0,n.jsx)(a.s,{className:d()["webgl-guard__image-wrapper"],align:"center",justify:"center",children:(0,n.jsx)(o.default,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 80vw, 60vw","data-testid":"hero-image",..._["hero-banner-image"],className:d()["webgl-guard__image"],fill:!0,src:t,alt:r,priority:!0,loading:"eager"})})}):(0,n.jsxs)(a.s,{className:d()["webgl-guard__text-fallback"],align:"center",justify:"center",gap:"md",direction:"column",children:[(0,n.jsx)(s.E,{as:"h2",size:"T500",color:"light",weight:"medium",children:"3D Experience Unavailable"}),(0,n.jsxs)(s.E,{as:"h3",size:"T200",color:"light",weight:"regular",children:[`Your browser doesn't support WebGL, which is required for the 3D 83 experience.`,(0,n.jsx)("br",{}),"Please try updating your browser or enabling hardware acceleration."]})]})}):(0,n.jsx)(n.Fragment,{children:e})}},71689:e=>{e.exports={errorContainer:"byob-error-page_errorContainer__FO1Hl",errorImage:"byob-error-page_errorImage__h1soI",errorHeading:"byob-error-page_errorHeading__3_fnV",errorMessage:"byob-error-page_errorMessage__7dZ0V"}},71744:e=>{e.exports={"vm-carousel":"dynamo-carousel_vm-carousel__bhQCq"}},72062:e=>{e.exports={"uf-form-input-control":"form-checkbox-group_uf-form-input-control__hlKUm","form-input-control--is-image":"form-checkbox-group_form-input-control--is-image__M7T_a","uf-form-input-control--is-invalid":"form-checkbox-group_uf-form-input-control--is-invalid__MGYMV","uf-form-input-control__label":"form-checkbox-group_uf-form-input-control__label__Bn4Di","form-input-control__image":"form-checkbox-group_form-input-control__image__idzv9","sr-only":"form-checkbox-group_sr-only__eqmP6"}},72258:e=>{e.exports={triggerAnchor:"compare-bundle-provider_triggerAnchor__gTe1Z",trigger:"compare-bundle-provider_trigger__zntYS"}},72317:(e,t,r)=>{"use strict";r.d(t,{K:()=>o,e:()=>n});let n=e=>Array.isArray(e.links),o=e=>e.theme},72429:(e,t,r)=>{"use strict";r.d(t,{ByobGuard:()=>i});var n=r(12115),o=r(67526);let i=({inverse:e,children:t})=>{let{steps:r}=(0,n.useContext)(o.ByobContext),i=null!==r.current;return(e?!i:i)?t:null}},73294:(e,t,r)=>{"use strict";r.d(t,{d:()=>l});var n=r(95155),o=r(82567),i=r(89684),a=r(16116),s=r.n(a);let l=({contract:e,preText:t})=>{let[r,a]=(0,i.s)(e?.term).split(" ");return(0,n.jsxs)("div",{className:s().contractInfo,children:[t&&(0,n.jsx)(o.E,{size:"T200",className:s().contractPreText,children:t}),(0,n.jsxs)(o.E,{size:"T200",className:s().contractDuration,children:[(0,n.jsx)(o.E,{size:"T200",weight:"bold",as:"span",children:r})," ",a]})]})}},73394:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductInfoByob:()=>Y});var n=r(95155),o=r(12115),i=r(94714),a=r(11389),s=r(18401),l=r(99079),c=r(11241),d=r(51073),u=r(82567),_=r(29722),p=r(65305),m=r(51970),h=r(67526),b=r(55451),g=r(89684),f=r(30710),x=r(92455),v=r(32493),y=r(12612),j=r(54046),w=r(70186),N=r(80660),k=r(86433),E=r(11247),S=r(13941),T=r(2730),C=r(48399),A=r(75318),I=r.n(A);let P=({isSelected:e,onClick:t})=>(0,n.jsx)(s.$,{disabled:e,onClick:()=>t?.(),variant:"secondary",width:"full-width",className:I()["product-info__add-to-basket-button"],children:(0,n.jsx)(u.E,{color:"inherit",weight:"bold",children:e?"Selected":"Add to basket"})});var M=r(71505);let O=({price:e})=>(0,n.jsx)(M.N,{direction:"column",align:"start",children:(0,n.jsxs)(u.E,{size:"T600",weight:"bold",children:[(0,f.xQ)(e),(0,n.jsx)(u.E,{as:"span",size:"T500",weight:"medium",children:"\xa0a month"})]})});var B=r(29081),L=r(4787),D=r.n(L);let R=({discounted:e,discountedPeriod:t=1,afterPeriodPrice:r,priceChanges:o})=>{let i=(0,B.Og)("discounted-main-price-tile"),[a,s]=e.split(".");return(0,n.jsxs)(M.N,{justify:"between",align:"center",direction:"column",gap:"xs",children:[(0,n.jsxs)(u.E,{size:"T600",weight:"bold",...i["discounted-main-price-tile"],children:[`\xa3${a}`,s&&"00"!==s&&(0,n.jsxs)(n.Fragment,{children:[".",s]}),(0,n.jsx)(u.E,{as:"span",size:"T500",weight:"medium",children:t>1?(0,n.jsxs)(n.Fragment,{children:["\xa0for ",t," months*"]}):(0,n.jsx)(n.Fragment,{children:"\xa0a month"})})]}),r&&(0,n.jsxs)(u.E,{className:D()["price-split-drawer"],children:["then ",(0,f.a7)(r)," a month"]}),o&&o.length>0&&o.map((e,t)=>e&&(0,n.jsx)(u.E,{"data-testid":"price-changes",className:D()["price-increase"],weight:"regular",align:"center",size:"T200",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},`${e}${t}`))]})};var F=r(5772),V=r(96653),$=r(16420),z=r(35611),U=r.n(z);let H=({description:e,iconUrl:t,className:r,open:i=!1,setInfo:l,expandable:u=!0,light:p})=>{let[m,h]=(0,o.useState)(i);return(0,n.jsxs)(c.s,{direction:"column",className:(0,_.A)(U().pill,{[U()["pill--light"]]:p},r),children:[(0,n.jsx)(s.$,{className:(0,_.A)({[U().pill_title_button]:!0,[U()["pill_title_button--open"]]:m,[U()["pill_title_button--expandable"]]:u}),onClick:()=>{u&&h(!m)},children:(0,n.jsxs)(c.s,{className:U().pill_title,children:[t&&(0,n.jsx)(F.default,{className:U().pill_icon,unoptimized:!0,alt:`${e?.productType} icon`,src:t,width:16,height:16}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e?.name??""}}),u&&(0,n.jsx)(d.I,{className:U()["pill_title_arrow-icon"],icon:a.SUl,size:"md"})]})}),(0,n.jsxs)("div",{className:(0,_.A)({[U().pill_description]:!0,[U()["pill_description--open"]]:m}),children:["string"==typeof e?.ufDescription?(0,n.jsx)("div",{"data-testid":"pill-text-description",dangerouslySetInnerHTML:{__html:e?.ufDescription}}):e?.ufDescription&&(0,n.jsx)("div",{children:(0,n.jsx)($.S,{document:e.ufDescription,StoryblokComponent:V.Dp})}),e?.modals?.[0]?.linkText&&(0,n.jsx)(s.$,{"data-testid":"button-link",className:(0,_.A)("button-link",U().pill_description_button_link),onClick:()=>{l({title:e?.modals?.[0]?.title??"",content:e?.modals?.[0]?.text??[],images:e?.modals?.[0]?.images??[]})},children:e?.modals?.[0]?.linkText})]})]})};var G=r(99027),q=r.n(G);let W=({bundleName:e,bundleOriginalSpeed:t,bundleSpeed:r,bundleShortDescription:o,light:i})=>{let s=e.split(" ");return(0,n.jsx)(c.s,{className:(0,_.A)(q().summary,{[q()["summary--light"]]:i}),direction:"column",children:(0,n.jsxs)(c.s,{direction:"column",gap:"sm",children:[(0,n.jsxs)(c.s,{direction:"column",gap:"md",children:[(0,n.jsxs)(u.E,{size:"T200",children:[(0,n.jsx)(u.E,{size:"T800",weight:"bold",as:"span",children:s[0]})," ",s.splice(1).join(" ")]}),(t||r)&&(0,n.jsxs)(c.s,{align:"center",gap:"sm",children:[(0,n.jsx)(d.I,{icon:a.qkM,size:"md"}),(0,n.jsxs)(u.E,{size:"T400",weight:"light",children:[t?.content?.display_speed?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("s",{children:[t?.content?.display_speed," Mbps"]})," "]}):null,(0,n.jsx)(u.E,{size:"T400",weight:"bold",as:"span",children:r?.content?.display_speed})," ","Mbps"]})]})]}),o&&(0,n.jsx)($.S,{document:o,StoryblokComponent:V.Dp})]})})},Y=()=>{let e=(0,o.useRef)(null),[t,r]=(0,o.useState)(void 0),{open:A,selectedBundle:M,setOpen:B}=(0,S.b)(),{customisations:L,intentType:D,steps:F}=(0,o.useContext)(h.ByobContext),V=(F.current??1)>1,{basket:$}=(0,m.D)(),z=(0,o.useCallback)(()=>{r(void 0),B({open:p.Qb.NONE})},[B]),{startTransition:U,queueNotification:G}=(0,T.j)({onSettle:z});if((0,o.useEffect)(()=>
83{if(A)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){A!==p.Qb.NONE&&"Escape"===e.key&&(e.preventDefault(),z())}},[A,z]),(0,o.useEffect)(()=>{e?.current&&e.current.scroll({top:0})},[t]),!M?.msaBundle)return null;let{sbBundle:q,msaBundle:Y}=M,K=(0,w.M)(q),Q=(0,j.gN)(K),Z=q.content.display_name?.content?.[0]?.content?.[0]?.text||q.name,X=q.content.description,J=K.find(e=>e.content.product_type===p.pu.BROADBAND)?.content,ee=J?.speed_profile,et=J?.original_speed_profile,er=!!Y?.journeyTypes?.includes("Stream"),en=(0,v.uM)(Z,Q,er),eo=en.find(e=>e.productType===p.po.BROADBAND),ei=en.find(e=>(0,y.v)(e.name)),ea=en.filter(e=>e.productType===p.po.NONPRODUCT),es=L?.customisations.broadband.deltaPrices.find(e=>e?.bundleId===Y.bundleId)?.bundleSubtotal[0],el=Y?.totalMonthlyCosts?.vmBundleSubtotal?.[0]?.amount,ec="broadband"===D?(0,x.x)(Y,"broadband"):void 0,ed=Y.bundleId===$?.basketPricing?.bundleId,eu=(0,N.h)(ee?.content.display_speed),e_=eu.includes("light"),ep=(0,g.s)(Y.contract?.term);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(E._,{className:(0,_.A)(I()["product-info"],...eu.map(e=>I()[`product-info--${e}`])),instance:p.Qb.PRODUCT_INFO,children:[(0,n.jsxs)(c.s,{justify:"center",className:I()["product-info__title"],children:[(0,n.jsx)(c.s,{justify:"center",align:"center",children:(0,n.jsx)(u.E,{size:"T300",weight:"medium",align:"center",children:"Your selection"})}),(0,n.jsx)(s.$,{"data-testid":"drawer-close",className:I()["button-close"],onClick:z,children:(0,n.jsx)(d.I,{icon:i.dQv,size:"lg"})})]}),(0,n.jsxs)("div",{ref:e,className:I()["product-info__scrollable"],children:[(0,n.jsx)(W,{bundleName:eo?.name??"",bundleSpeed:ee,bundleOriginalSpeed:et,bundleShortDescription:X,light:e_}),(0,n.jsx)(c.s,{className:(0,_.A)({[I()["product-info__modal"]]:!0,[I()["product-info__modal--open"]]:t}),children:t&&(0,n.jsxs)(c.s,{direction:"column",className:I()["product-info__modal-container"],children:[(0,n.jsxs)(c.s,{justify:"center",className:I()["product-info__modal-title"],children:[(0,n.jsxs)(s.$,{"data-testid":"button-back",className:`${I()["button-back"]} button-link`,onClick:()=>{r(void 0)},children:[(0,n.jsx)(d.I,{icon:a.Zku,size:"sm"}),"Back"]}),(0,n.jsx)(u.E,{size:"T300",weight:"medium",align:"center",children:t.title})]}),(0,n.jsx)(C.t,{images:t.images,text:t.content,instance:"product-info"})]})}),(0,n.jsxs)(c.s,{direction:"column",className:(0,_.A)({[I()["product-info__items"]]:!0,[I()["product-info__items--closed"]]:t}),children:[(0,n.jsx)(H,{open:!0,light:e_,setInfo:r,description:eo}),ei&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.c,{variant:e_?"dark":"light"}),(0,n.jsx)(H,{light:e_,setInfo:r,description:ei,iconUrl:"/vm-upper-funnel/assets/icons/netflix-n.png"})]}),ea?.map(e=>(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)(l.c,{variant:e_?"dark":"light"}),(0,n.jsx)(H,{light:e_,setInfo:r,description:e})]},e.name))]})]},`${Y.bundleId}-${A}`),(0,n.jsx)(c.s,{className:(0,_.A)(I()["product-info__footer"]),children:(0,n.jsxs)(c.s,{direction:"column",className:I()["product-info__footer-price"],gap:"lg",children:[(0,n.jsxs)(c.s,{direction:"column",gap:"xs",children:["broadband"===D?(0,n.jsx)(R,{discounted:(0,f.$g)(el||"0"),priceChanges:ec}):(0,n.jsx)(O,{price:es?.amount||"0"}),(0,n.jsx)(u.E,{size:"T200",align:"center",weight:"light",children:ep})]}),(0,n.jsx)(P,{isSelected:ed,onClick:()=>{U(async()=>{if(V){let e=await (0,b.u)({id:Y.bundleId??"",body:{commitmentState:"Confirmed"},bundle:{title:eo?.name??"",description:ep}});e.success&&G({title:e.bundle?.title??"",description:e.bundle?.description,duration:5e3})}else{let e=await (0,k.R)({success:!1},{id:Y.bundleId??"",body:{commitmentState:"Provisional"},product:{title:eo?.name??"",description:ep}});e.success&&G({title:e.product?.title??"",description:e.product?.description,duration:5e3})}})}})]})})]}),A&&(0,n.jsx)("button",{type:"button","aria-label":"Close","data-testid":"drawer-background",onClick:z,className:I()["product-info__background"]})]})}},74233:e=>{e.exports={topmenu:"top-menu_topmenu__jJ3pq",topmenu__container:"top-menu_topmenu__container__2AqyF"}},74240:e=>{e.exports={price:"price_price__ajARj","price-increase":"price_price-increase__qUOpL","cancellation-info":"price_cancellation-info__AqIDG","price-container":"price_price-container__ugr5F","price-main":"price_price-main__P_JAH","price-split":"price_price-split__BkQ2_","price-split-drawer":"price_price-split-drawer__PCX9f","price-decimals":"price_price-decimals__MbDWo"}},74552:(e,t,r)=>{"use strict";function n(){return function(){let e=globalThis.crypto;if(!e?.getRandomValues)throw Error("crypto.getRandomValues is not available in this runtime");let t=new Uint32Array(1);return e.getRandomValues(t),t[0]??0}()/0x100000000}r.d(t,{Q5:()=>n})},74808:(e,t,r)=>{"use strict";r.d(t,{I:()=>o});var n=r(12115);let o=()=>
83{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!window.matchMedia)return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches);let r=e=>{t(e.matches)};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}},[]),e}},74855:(e,t,r)=>{"use strict";r.d(t,{M:()=>c});var n=r(95155),o=r(18401),i=r(11241),a=r(89839),s=r(53713),l=r.n(s);let c=({bundleName:e})=>(0,n.jsx)(i.s,{className:l()["netflix-webchat-button"],children:(0,n.jsx)(o.$,{variant:"secondary",asChild:!0,children:(0,n.jsx)(a.ModalDismissButton,{className:"live_chat_open","data-chat-journey-id":"web-new-nonnetflix","data-chat-dynamic-attr":`{"VM-BUNDLE-SELECTED": "${e}"}`,children:"Chat with us"})})})},75318:e=>{e.exports={"product-info":"product-info_product-info__5kAPg","product-info__scrollable":"product-info_product-info__scrollable__F64UE","product-info__background":"product-info_product-info__background__YlWd9","product-info__title":"product-info_product-info__title__6ioUO","button-close":"product-info_button-close__UGqku","product-info__items":"product-info_product-info__items__MAr1n","product-info__items--closed":"product-info_product-info__items--closed__DxGPx","product-info__footer":"product-info_product-info__footer__BebUm","product-info__footer-price":"product-info_product-info__footer-price__y3eH7","product-info__price":"product-info_product-info__price__4E8eZ","product-info__modal":"product-info_product-info__modal__WdZKk","product-info__modal--open":"product-info_product-info__modal--open__TY6PU","product-info__modal-container":"product-info_product-info__modal-container__l0Dxq","product-info__modal-title":"product-info_product-info__modal-title__9kEaz","button-back":"product-info_button-back__ezZTl","product-info--light":"product-info_product-info--light__f9jPv","product-info__add-to-basket-button":"product-info_product-info__add-to-basket-button__9DBEZ","product-info--red":"product-info_product-info--red__5SZix","product-info--orange":"product-info_product-info--orange__2KyUL","product-info--green":"product-info_product-info--green__gEcJi","product-info--blue":"product-info_product-info--blue__aWP4A","product-info--purple":"product-info_product-info--purple__JOQxE","product-info--yellow":"product-info_product-info--yellow__JAW9A"}},75343:e=>{e.exports={"landscape-card":"entertainment_landscape-card__WX1n_","landscape-card_container":"entertainment_landscape-card_container__U46WB","landscape-card--volt":"entertainment_landscape-card--volt__qSqSf","landscape-card__sale-banner":"entertainment_landscape-card__sale-banner__hQ7ri","landscape-card__title":"entertainment_landscape-card__title__nvLmn","landscape-card__title--mobile":"entertainment_landscape-card__title--mobile__D_9O_","landscape-card__title--desktop":"entertainment_landscape-card__title--desktop__1dxMr","landscape-card_description-items":"entertainment_landscape-card_description-items___A9iS"}},75747:(e,t,r)=>{"use strict";function n(e){let t=e.toLowerCase();return t.toLowerCase().includes("sim")?"See all SIMs":t.toLowerCase().includes("tablet")?"See all O2 tablets":t.toLowerCase().includes("phone")?"See all phones":void 0}r.d(t,{Z:()=>n})},76140:e=>{e.exports={"hero-banner__text-overlay":"hero-image_hero-banner__text-overlay__jY9mh","hero-banner__background-image--split":"hero-image_hero-banner__background-image--split__Qolga","hero-banner__text-overlay--split":"hero-image_hero-banner__text-overlay--split__PQ0Fg","hero-banner__background-image":"hero-image_hero-banner__background-image__ulBrT","hero-banner__hidden":"hero-image_hero-banner__hidden___6tfu"}},76348:e=>{e.exports={"genre-container":"genre_genre-container__WEyXE","channel-item":"genre_channel-item__X6x33","channel-logo":"genre_channel-logo__GdnE1"}},76368:(e,t,r)=>{"use strict";r.d(t,{ByobStreamBox:()=>x});var n=r(95155),o=r(12115),i=r(65305),a=r(69839),s=r(67526),l=r(67927),c=r(18829),d=r(32493),u=r(12572),_=r(18401),p=r(51073),m=r(82567),h=r(63665),b=r.n(h);let g=({max:e,initialValue:t,disabled:r,onIncrement:i,onDecrement:a})=>{let[s,l]=(0,o.useState)(t??0);return(0,n.jsxs)("div",{className:b().container,children:[(0,n.jsx)(_.$,{icon:(0,n.jsx)(p.I,{icon:u.avC,size:"lg"}),iconOnly:!0,variant:"tertiary",disabled:r||0===s,onClick:()=>{let e=s-1;l(e),a?.(e)},"aria-label":"Decrement"}),(0,n.jsx)(m.E,{size:"T800",weight:"medium",className:b().count,children:s}),(0,n.jsx)(_.$,{icon:(0,n.jsx)(p.I,{icon:u.ajm,size:"lg"}),iconOnly:!0,variant:"tertiary",disabled:r||s===e,onClick:()=>{let e=s+1;l(e),i?.(e)},"aria-label":"Increment"})]})};var f=r(2730);let x=({upsellPopupSpeedLimit:e})=>{let{customisations:t,storyblokProducts:r,selectedBundle:u,setShowUpsellPopup:_}=(0,o.useContext)(s.ByobContext),{startTransition:p,queueNotification:m}=(0,f.j)(),h=parseInt(u?.sbBundle.content.products?.find(e=>e.content.product_type===i.pu.BROADBAND)?.content.speed_profile?.content.display_speed??"",10)<=e,b=t?.addOns.filter(e=>e.display_groups.includes("tv_boxes"))??[],x=b.findIndex(e=>e.selected),v=-1===x?0:x,y=(0,o.useCallback)(e=>_(e>=3&&h),[h,_]);(0,o.useEffect)(()=>{y(v)},[v,y]);let j=(0,o.useCallback)(e=>{let t=b[e],n=r[t.id],o=(0,d.uM)("",[n],!1);p(async()=>
83{let e=await (0,l.M)({productCodes:t.productCodes,addOn:{title:o[0].name}});e.success&&m({title:e.addOn?.title??"",description:e.addOn?.description,duration:5e3}),(0,c.A)(a.bk.CONTENT,{event_name:a.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${o[0].name} add`,content_name:"Customise",content_text:t.productCodes.join("|")}})}),y(e)},[b,r,y]);return(0,n.jsx)(g,{max:b.length-1,initialValue:v,onIncrement:j,onDecrement:j})}},76537:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductFilterSortProvider:()=>a,useProductFilterSort:()=>s});var n=r(95155),o=r(12115);let i=(0,o.createContext)({sort:"top-deals",productsLoaded:!1,productTypeFilters:[],productTypeFilterCount:[],budgetFilters:[],speedFilters:[],tvChannelFilters:[],count:0,totalBundleCount:0,filteredBundleCount:0,lastFiltered:"",setProductsLoaded:()=>{},setSort:()=>{},setCount:()=>{},setLastFiltered:()=>{},setProductTypeFilters:()=>{},setProductTypeFilterCount:()=>{},setBudgetFilters:()=>{},setSpeedFilters:()=>{},setTvChannelFilters:()=>{},setTotalBundleCount:()=>{},setFilteredBundleCount:()=>{}});function a({children:e}){let[t,r]=(0,o.useState)(!1),[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(""),[u,_]=(0,o.useState)(0),[p,m]=(0,o.useState)(0),[h,b]=(0,o.useState)(0),[g,f]=(0,o.useState)([]),[x,v]=(0,o.useState)([]),[y,j]=(0,o.useState)([]),[w,N]=(0,o.useState)([]),[k,E]=(0,o.useState)([]),S=(0,o.useMemo)(()=>({setProductsLoaded:r,setSort:l,setCount:_,setProductTypeFilters:f,setProductTypeFilterCount:v,setBudgetFilters:j,setSpeedFilters:N,setTvChannelFilters:E,setTotalBundleCount:m,setFilteredBundleCount:b,setLastFiltered:d}),[]),T=(0,o.useMemo)(()=>({sort:s,count:u,productsLoaded:t,productTypeFilters:g,productTypeFilterCount:x,budgetFilters:y,speedFilters:w,tvChannelFilters:k,totalBundleCount:p,filteredBundleCount:h,lastFiltered:c,...S}),[s,u,t,g,x,y,w,k,p,h,c]);return(0,n.jsx)(i.Provider,{value:T,children:e})}let s=()=>(0,o.useContext)(i)},76951:(e,t,r)=>{"use strict";r.d(t,{Page:()=>c});var n=r(95155),o=r(12115),i=r(29722),a=r(85592),s=r(28090),l=r.n(s);let c=({children:e,currentStep:t,journeyType:r})=>{let{availability:s}=(0,o.useContext)(a.s);return(0,n.jsx)("div",{className:(0,i.A)(l().page,l()[`page--${r}`],l()[`page--step-${t}`],s&&l()["page--serviceable"],!s&&l()["page--non-serviceable"]),children:e})}},77059:e=>{e.exports={"postcode-result__change":"PostcodeAvailabilityResult_postcode-result__change__HZoBi",postcodeFormContainer:"PostcodeAvailabilityResult_postcodeFormContainer__egDwY","postcodeFormContainer--layout-split":"PostcodeAvailabilityResult_postcodeFormContainer--layout-split__rWHK8","postcode-result__content":"PostcodeAvailabilityResult_postcode-result__content__Hg_NO","postcode-result__content--text":"PostcodeAvailabilityResult_postcode-result__content--text__FD8HW"}},77262:e=>{e.exports={"description-short":"description_description-short__TLOT3","manual-title":"description_manual-title__66oSR","description-container":"description_description-container__bf_Mi","description-list":"description_description-list__qMDtY","description-title":"description_description-title__5vjql","manual-description-content":"description_manual-description-content__zeSNC"}},77769:e=>{e.exports={"scene-3d-indicator":"scene-3d-indicator_scene-3d-indicator__t52WG"}},77844:(e,t,r)=>{"use strict";r.d(t,{w:()=>p});var n=r(95155),o=r(98500),i=r.n(o),a=r(18401),s=r(51073),l=r(29722),c=r(69839),d=r(61764),u=r.n(d);let _=({link:e,showLeftIcon:t,rightIcon:r})=>(0,n.jsxs)(n.Fragment,{children:[t&&e.icon&&(0,n.jsx)("div",{className:(0,l.A)({[u()["menu-link__icon"]]:!0}),children:(0,n.jsx)(s.I,{icon:e.icon,size:"md"})}),(0,n.jsxs)("div",{className:(0,l.A)({[u()["menu-link__content"]]:!0}),children:[(0,n.jsx)("div",{className:(0,l.A)({[u()["menu-link__title"]]:!0,"menu-link__title":!0}),children:e.title}),e.description&&(0,n.jsx)("div",{className:(0,l.A)({[u()["menu-link__description"]]:!0}),children:e.description})]}),r]}),p=({link:e,className:t,onClick:r,showLeftIcon:o=!0,rightIcon:s=null,setActiveMenu:d})=>{let p=e?.link?.cached_url;return p?(0,n.jsx)(i(),{prefetch:c.Ad,onClick:r,href:p,className:(0,l.A)({[u()["menu-link"]]:!0,[`${t}`]:t}),children:(0,n.jsx)(_,{link:e,showLeftIcon:o,rightIcon:s})}):(0,n.jsx)(a.$,{onMouseEnter:()=>{d?.(e._uid)},onFocus:()=>{d?.(e._uid)},tabIndex:0,onClick:r,className:(0,l.A)({[u()["menu-link"]]:!0,[`${t}`]:t}),children:(0,n.jsx)(_,{link:e,showLeftIcon:o,rightIcon:s})})}},77945:(e,t,r)=>{"use strict";r.d(t,{ByobTVChannelSelectionContainer:()=>V});var n=r(95155),o=r(12115),i=r(65305),a=r(2730),s=r(69839),l=r(51970),c=r(67526),d=r(18829),u=r(55451),_=r(67927),p=r(55397),m=r(9339);let h=(0,m.createServerReference)("40fd5122df3656e52b06ecdbb9e37d9f0b3153215b",m.callServer,void 0,m.findSourceMapURL,"switchBundleToAddonAction");var b=r(83846),g=r.n(b),f=r(94714),x=r(18401),v=r(51073),y=r(29722),j=r(5383),w=r(88798),N=r.n(w),k=r(5772),E=r(82567
83),S=r(29243),T=r(60513),C=r(47277),A=r(48399),I=r(89684),P=r(30710),M=r(32493),O=r(53656),B=r(88972),L=r(21888),D=r.n(L);let R=({bundle:e,bundlePrice:t,addon:r,selectedAddOns:i,selectedBundleId:a,onAddOnToggle:s,onBundleToggle:l})=>{let{storyblokProducts:d}=(0,o.useContext)(c.ByobContext),u=(0,O.l)(e,r,d);if(!u)return null;let _=u?.content?.entertainment_card?.[0]?.content,p=(0,S.ZQ)(_?.background_image),m=(0,S.ZQ)({filename:_?.channel_icon}),h=u?(0,M.uM)("",[u],!1):void 0,b=h?.[0].modals?.[0],g=h?.[0].name,f=!!r&&i.includes(r.id),x=!!e&&a===e.bundleId,v=r?.contract?.term||1,j=!!e&&!!r;return(0,n.jsxs)("div",{className:(0,y.A)(D().product,(f||x)&&D()["product--selected"],j&&D()["product--wide"]),children:[p&&(0,n.jsxs)("div",{className:D()["product__img-wrapper"],children:[(0,n.jsx)(k.default,{unoptimized:!0,src:p.src,alt:p.alt,width:j?326:216,height:100,className:D().product__img}),(0,n.jsxs)("div",{className:D()["product__img-content"],children:[m?(0,n.jsx)(T.W,{src:m.src,width:m.width,height:m.height,alt:`Channel logo: ${m.alt??""}`,loading:"lazy",className:D()["product__channel-logo"]}):null,_?.footer_title&&(0,n.jsx)(E.E,{color:"light",size:"T200",weight:"bold",children:_?.footer_title}),_?.footer_subtitle&&(0,n.jsx)(E.E,{color:"light",size:"T200",weight:"light",children:_?.footer_subtitle})]})]}),(0,n.jsxs)("div",{className:D().product__content,children:[(0,n.jsx)("div",{className:D()["product__title-wrapper"],children:(0,n.jsx)(E.E,{as:"h2",weight:"bold",color:"light",children:g})}),b&&(0,n.jsx)(C.o,{title:b.title??"",text:(0,n.jsx)(A.t,{text:b.text??[],images:b.images}),className:D().product__link,children:b.linkText}),(0,n.jsxs)("div",{className:D().product__terms,children:[e&&(0,n.jsxs)("div",{className:D().product__term,"data-product-id":e.bundleId,children:[(0,n.jsx)(E.E,{size:"T200",weight:"medium",color:"light",className:D()["product__term-title"],children:(0,I.s)(e.contract?.term)}),(0,P.xQ)(t)!==(0,P.xQ)("0")&&(0,n.jsxs)(E.E,{size:"T200",weight:"regular",color:"light",children:[(0,n.jsx)(E.E,{as:"span",weight:"medium",color:"inherit",className:D()["product__term-price"],children:(0,P.xQ)(t)})," ","a month"]}),(0,n.jsx)(B.F,{isSelected:x,onToggle:()=>{e.bundleId&&l(e.bundleId,x,{title:g??"",description:(0,I.s)(e.contract?.term)})}})]}),r&&(0,n.jsxs)("div",{className:D().product__term,"data-product-id":r.id,children:[(0,n.jsx)(E.E,{size:"T200",weight:"medium",color:"light",className:D()["product__term-title"],children:(0,I.s)(v)}),(0,P.xQ)(r.price?.monthly?.amount)!==(0,P.xQ)("0")&&(0,n.jsxs)(E.E,{size:"T200",weight:"regular",color:"light",children:[(0,n.jsx)(E.E,{as:"span",weight:"medium",color:"inherit",className:D()["product__term-price"],children:(0,P.xQ)(r.price?.monthly?.amount)})," ","a month"]}),(0,n.jsx)(B.F,{isSelected:f,onToggle:()=>{r.id&&s(r.productCodes,f,{title:g??"",description:(0,I.s)(v)})}})]})]})]})]})},F=({customisations:e,channelGroups:t,selectedAddOns:r,selectedBundleId:i,onAddOnToggle:a,onBundleToggle:s})=>{let[l,c]=(0,o.useState)(t[0]?.displayGroup||""),[d,u]=(0,o.useState)(!1),[_,p]=(0,o.useState)(!1),m=(0,o.useRef)(null),h=t.find(e=>e.displayGroup===l)||t[0],b=()=>{if(!m.current)return;let{scrollLeft:e,scrollWidth:t,clientWidth:r}=m.current;u(e>0),p(e<t-r-1)};return(0,o.useEffect)(()=>{let e=m.current;if(e)return b(),e.addEventListener("scroll",b),window.addEventListener("resize",b),()=>{e.removeEventListener("scroll",b),window.removeEventListener("resize",b)}},[t]),(0,n.jsxs)("div",{className:N()["tabs-container"],children:[(0,n.jsxs)("div",{className:N()["tabs-wrapper"],children:[(0,n.jsx)(x.$,{className:(0,y.A)(N()["arrow-left"],d&&N()["arrow-left--visible"]),onClick:()=>{if(!m.current)return;let e=m.current.clientWidth;m.current.scrollBy({left:-e,behavior:"smooth"})},"aria-label":"Scroll left",variant:"secondary",decoration:"transparent",icon:(0,n.jsx)(v.I,{icon:f.Yej}),iconOnly:!0,small:!0}),(0,n.jsx)("div",{className:N().tabs,ref:m,children:t.map(e=>{var t;return(0,n.jsx)(x.$,{decoration:e.displayGroup===l?"solid":"transparent",variant:"tertiary",onClick:()=>{c(e.displayGroup)},className:(0,y.A)(N().tab,e.displayGroup===l&&N()["tab--active"]),children:(t=e.displayGroup).endsWith("_picks")?t.replace("_picks","").split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},e.displayGroup)})}),(0,n.jsx)(x.$,{className:(0,y.A)(N()["arrow-right"],_&&N()["arrow-right--visible"]),onClick:()=>
83{if(!m.current)return;let e=m.current.clientWidth;m.current.scrollBy({left:e,behavior:"smooth"})},"aria-label":"Scroll right",variant:"secondary",decoration:"transparent",icon:(0,n.jsx)(v.I,{icon:f.Lo$}),iconOnly:!0,small:!0})]}),h&&(0,n.jsx)(j.F,{blok:{overflow_section_mobile:!0,overflow_section_tablet:!0,overflow_section_desktop:!0,navigation:!1,spaceBetween:4,component:"vm_upperfunnel_byob_product_carousel",_uid:""},slides:h.items.map((t,o)=>({children:(0,n.jsx)(R,{bundle:t.bundle,bundlePrice:e?.deltaPrices.find(e=>e.bundleId===t.bundle?.bundleId)?.bundleSubtotal[0].amount,addon:t.addon,selectedAddOns:r,selectedBundleId:i,onAddOnToggle:a,onBundleToggle:s},`product-${t.name}-${o}`)})),align:"left",className:N().tabs__carousel})]})},V=()=>{let{customisations:e,validBundles:t,isFlexJourney:r,intentType:m}=(0,o.useContext)(c.ByobContext),{basket:b}=(0,l.D)(),{startTransition:f,queueNotification:x}=(0,a.j)(),[v,y]=(0,o.useState)(),j=(0,o.useMemo)(()=>e?.addOns?.filter(e=>e.classification!==i.ZE.EQUIPMENT&&!e.display_groups.some(e=>e.startsWith("skyuhd_")||"sky_uhd"===e))??[],[e?.addOns]),w=(0,o.useMemo)(()=>((e,t=!1,r=[])=>{let n=new Map,o=t?["sky_picks","popular","sports_picks","family_picks","international_picks","adult_picks"]:["sky_picks","sports_picks","family_picks","international_picks","adult_picks"];r.forEach(e=>{let t=e.products?.filter(e=>e.productDisplayGroup?.some(e=>e.startsWith("sky_pair_")))||[];0!==t.length&&t.forEach(t=>{let r=t.productDisplayGroup||[],o=e.bundleId;o&&n.set(o,{name:e.bundleName??"",display_groups:r,bundle:e})})}),e.forEach(e=>{if(!(t?e.display_groups.includes("stream_channel_packs"):e.display_groups.includes("channel_packs")))return;let r=e.id;n.set(r,{name:e.name,display_groups:e.display_groups,addon:e})});let i=new Map;Array.from(n.values()).forEach(e=>{e.display_groups.filter(e=>o.includes(e)).forEach(t=>{i.has(t)||i.set(t,{displayGroup:t,items:[]}),i.get(t).items.push(e)})});let a=Array.from(i.values());return a.forEach(e=>{if(!e.items.some(e=>e.display_groups.some(e=>e.startsWith("sky_pair_"))))return;let t=e.items.filter(e=>e.bundle),r=e.items.filter(e=>e.addon),n=[],o=new Set,i=new Set;t.forEach((e,t)=>{let a=e.display_groups.find(e=>e.startsWith("sky_pair_"));if(!a){o.add(t),n.push(e);return}let s=r.find((e,t)=>!i.has(t)&&e.display_groups.includes(a));if(s){let a=r.indexOf(s);o.add(t),i.add(a),n.push({...e,addon:s.addon})}}),t.forEach((e,t)=>{o.has(t)||n.push(e)}),r.forEach((e,t)=>{i.has(t)||n.push(e)}),e.items=n}),a.sort((e,t)=>o.indexOf(e.displayGroup)-o.indexOf(t.displayGroup)),a.filter(e=>e.items.length>0)})(j,r,t.map(e=>e?.msaBundle)),[j,r,t]),N=(0,o.useMemo)(()=>j.filter(e=>e.selected).map(e=>e.id),[j]),k=b?.basketPricing?.products?.find(e=>e.productDisplayGroup?.includes("sky_uhd")),E=b?.basketPricing?.products?.some(e=>e.productDisplayGroup?.some(e=>"sky_picks"===e)&&!e.productGroup?.some(e=>/^sky_\w+_addon$/.test(e)));return(0,n.jsxs)(n.Fragment,{children:[v&&(0,n.jsx)("div",{className:g().error,children:(0,n.jsx)("p",{children:v})}),(0,n.jsx)(F,{channelGroups:w,selectedAddOns:N,selectedBundleId:b?.basketPricing?.bundleId,onAddOnToggle:(e,t,r)=>{if(!j.length)return;
83let n=e.concat(k?[k.productCode]:[]),o=j.some(t=>t.productCodes.some(t=>e.includes(t))&&t.display_groups.some(e=>"sky_picks"===e));y(void 0),f(async()=>{let i;(i=t?await (0,p.J)(e):E&&o?await h({originalBundleId:b?.basketPricing?.originalBundleId??"",productCodes:n,addOn:r}):await (0,_.M)({productCodes:n,addOn:r})).error?y(i.error):i.success&&"addOn"in i&&i.addOn&&x({title:i.addOn.title??"",description:i.addOn.description,duration:5e3}),(0,d.A)(s.bk.CONTENT,{event_name:s.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${r?.title} ${t?"remove":"add"}`,content_name:"Customise",content_text:n.join("|")}})})},onBundleToggle:(e,t,r)=>{let n=t?b?.basketPricing?.originalBundleId??"":e;f(async()=>{let e=await (0,u.u)({id:n,body:{commitmentState:"Provisional",ignoreNestedAddons:t},bundle:{title:r?.title??"",description:r?.description,isSelected:t}});e.success&&!e.bundle?.isSelected&&x({title:e.bundle?.title??"",description:e.bundle?.description,duration:5e3}),(0,d.A)(s.bk.CONTENT,{event_name:s.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${r?.title} add`,content_name:"Customise",content_text:n}})})},customisations:"tv"===m?e?.customisations.tvchannels:e?.customisations.stream})]})}},78521:(e,t,r)=>{"use strict";r.d(t,{VmProductFilterSortClient:()=>W});var n=r(95155),o=r(12115),i=r(11241),a=r(58767),s=r(29722),l=r(82849),c=r(38198),d=r(11389),u=r(99916),_=r(51073),p=r(82567),m=r(76537),h=r(41569),b=r(43928),g=r(40077),f=r.n(g);function x({options:e,label:t,filterButtonWidth:r,filterKey:a,filterDropdownWidth:s,handleFilterButtonFocus:l,isActive:c}){let{setProductTypeFilters:g,setBudgetFilters:v,setSpeedFilters:y,setTvChannelFilters:j,productTypeFilters:w,speedFilters:N,budgetFilters:k,tvChannelFilters:E,setProductsLoaded:S,setLastFiltered:T}=(0,m.useProductFilterSort)(),[C,A]=(0,o.useState)(!1),[I,P]=(0,o.useState)(e),M=(0,o.useRef)(null),O=(0,o.useRef)(null),B=(e,t,r)=>{let n=e.map(e=>e.name===t?{...e,selected:r,selectedAt:new Date().toString()}:e);return P(n),n},L=(0,o.useRef)(C);return(0,o.useEffect)(()=>{switch(a){case h._i.productType:P(w);break;case h._i.budget:P(k);break;case h._i.speed:P(N);break;case h._i.tvChannel:P(E)}},[w,k,N,E]),(0,o.useEffect)(()=>{L.current=C},[C]),(0,o.useEffect)(()=>{let e=e=>{L.current&&O.current&&!O.current.contains(e.target)&&(A(!1),O.current?.focus())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,n.jsxs)("div",{className:f()["product-sort"],ref:O,children:[(0,n.jsx)("div",{className:f()["product-sort__container"],"data-cy":"product-filter-section",children:(0,n.jsxs)("button",{onFocus:()=>l(t),type:"button",style:{width:r},className:f()["product-sort__button"],"aria-expanded":C,onClick:()=>A(e=>!e),"data-cy":"product-filter-button",children:[(0,n.jsxs)(p.E,{weight:"regular",size:"T300",className:f()["product-sort__button-selected"],children:[t,I?.filter(e=>e.selected).length>0&&` (${I.filter(e=>e.selected).length})`]}),(0,n.jsx)(_.I,{className:f()["product-sort__button-icon"],icon:C&&c?d.XpQ:d.SUl,"aria-hidden":!0,"data-cy":"product-filter-chevron"})]})}),C&&I&&c&&(0,n.jsx)("div",{ref:M,className:f()["product-sort__wrapper"],children:(0,n.jsx)("div",{style:{width:s},className:f()["product-sort__dropdown"],"data-cy":"product-filter-dropdown",children:(0,n.jsx)(i.s,{direction:"column",children:I.map(e=>{let t=I.find(t=>t.name===e.name)?.selected,r=0===e.count&&!t;return(0,n.jsx)(u.Zp,{align:"start",gap:"sm",layout:"full-width",className:f()["product-sort__dropdown-card"],children:(0,n.jsx)(b.RY,{children:(0,n.jsxs)("div",{className:f()["product-sort__dropdown-card-input"],children:[(0,n.jsx)(u.N,{id:`checkbox-${e.name}`,name:e.name,type:"checkbox",disabled:r,isSquare:!0,checked:I.find(t=>t.name===e.name)?.selected,onChange:e=>{var t=e.target.name,r=e.target.checked;switch(T(a),a){case h._i.productType:g(B(w,t,r));break;case h._i.budget:v(B(k,t,r));break;case h._i.speed:y(B(N,t,r));break;case h._i.tvChannel:j(B(E,t,r))}S(!1)},children:e.name}),(0,n.jsx)("span",{className:f()["product-sort__dropdown-label"],"data-cy":"product-filter-dropdown-option-label",style:{color:r?"gray":""},children:e.name})]})})},e.name)})})})})]})}var v=r(67561),y=r(29081);function j(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{function e(){let e=window.innerWidth;t(e>=768&&e<=1024)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}var w=r(30027),N=r.n(w);
83function k({options:e,handleFilterButtonFocus:t,activeFilter:r,isDesktop:a,fullWidh:s}){let{setSort:l,sort:c}=(0,m.useProductFilterSort)(),[h,g]=(0,o.useState)(c),f=j(),x=(0,y.Og)("sort-list-section","sort-list-section-button","sort-list-section-chevron","sort-dropdown","sort-dropdown-radio-option","sort-dropdown-radio-option-value"),[w,E]=(0,o.useState)(!1),S=(0,o.useRef)(null),T=(0,o.useRef)(null),C=e=>{let t=e.target;!S.current||S.current.contains(t)||T.current?.contains(t)||E(!1)};return(0,o.useEffect)(()=>(document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)),[]),(0,o.useEffect)(()=>{""!==r&&E(!1)},[r]),(0,n.jsxs)("div",{className:N()["product-sort"],ref:S,children:[(0,n.jsxs)("div",{className:N()["product-sort__container"],...x["sort-list-section"],children:[!a&&!f&&(0,n.jsx)(v.az,{border:!0,margin:"0",padding:"sm",rounded:"sm",style:{alignItems:"center",width:"100%",borderWidth:2,padding:7.5},children:(0,n.jsxs)("button",{onFocus:()=>{t("")},ref:T,type:"button",className:N()["product-sort__button-mobile"],onClick:()=>E(e=>!e),...x["sort-list-section-button1"],children:[(0,n.jsxs)(p.E,{weight:"medium",size:"T300",className:N()["product-sort__button-label"],children:["Sort ",s&&":"]}),s&&(0,n.jsx)(p.E,{weight:"medium",size:"T300",className:N()["product-sort__button-selected"],children:e.find(e=>e.value===h)?.label}),(0,n.jsx)(_.I,{className:N()["product-sort__button-icon"],icon:w?d.XpQ:d.SUl,"aria-hidden":!0,...x["sort-list-section-chevron"]})]},"sort-button")}),(a||f)&&(0,n.jsxs)("button",{onFocus:()=>{t("")},ref:T,type:"button",className:N()["product-sort__button"],onClick:()=>E(e=>!e),...x["sort-list-section-button"],children:[(0,n.jsx)(p.E,{weight:"light",size:"T300",className:N()["product-sort__button-label"],children:"Sort by:"}),(a||f)&&(0,n.jsx)(p.E,{weight:"medium",size:"T300",className:N()["product-sort__button-selected"],children:e.find(e=>e.value===h)?.label}),(0,n.jsx)(_.I,{className:N()["product-sort__button-icon"],icon:w?d.XpQ:d.SUl,"aria-hidden":!0,...x["sort-list-section-chevron"]})]},"sort-button")]}),w&&(0,n.jsx)("div",{className:N()["product-sort__wrapper"],ref:S,children:(0,n.jsx)("div",{className:N()["product-sort__dropdown"],...x["sort-dropdown"],children:(0,n.jsx)(i.s,{direction:"column",children:e.map((e,t)=>(0,n.jsx)(u.Zp,{align:"start",gap:"sm",layout:"full-width",className:N()["product-sort__dropdown-card"],children:(0,n.jsx)(b.RY,{children:(0,n.jsxs)("div",{className:N()["product-sort__dropdown-card-input"],children:[(0,n.jsx)(u.N,{id:e.value,name:`product-sort${t}`,type:"radio",checked:h===e.value,onChange:()=>{var t;g(t=e.value),l(t),E(!1),T.current?.focus()},...x["sort-dropdown-radio-option"],children:e.label}),(0,n.jsx)("span",{className:N()["product-sort__dropdown-label"],...x["sort-dropdown-radio-option-value"],children:e.label})]})})},e.value))})})})]})}var E=r(69839),S=r(18104),T=r.n(S);let C=({filteredBundleCount:e,hasActiveFilter:t,children:r})=>{let o=j();return t?(0,n.jsxs)(i.s,{className:(0,s.A)({"no-flex":!0,[T()["vm-product-filter-sort__product-count"]]:!0,"filter-tag-container":!0}),"data-cy":"product-filter-result-status",gap:"sm",direction:"row",wrap:"wrap",style:{marginLeft:o?11:""},children:[e>0&&(0,n.jsxs)(p.E,{as:"span",size:"T200",children:[e," ",1===e?"product":"products"]}),0===e&&r]}):null};var A=r(94714),I=r(18401);let P=({label:e,filterValue:t,filterKey:r,addClearLink:o,hasSelectedFilters:i,onRemove:a,onReset:l})=>(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsx)(I.$,{decoration:"outline",variant:"secondary",icon:(0,n.jsx)(_.I,{icon:A.dQv}),iconPosition:"end",className:T()["vm-product-filter-sort__tag-button"],"data-cy":"product-filter-active-tag-button",onClick:()=>a(r,t.name),children:t.name},`tag${e}`),o&&i&&(0,n.jsx)("div",{children:(0,n.jsx)("button",{className:(0,s.A)({"button-link":!1,[T()["filter-link-button"]]:!0}),onClick:l,"data-cy":"product-filter-clear-link",children:"Clear all"})},`clear${e}`)]},e);var M=r(98015),O=r(97771),B=r(99079),L=r(89810),D=r(89839),R=r(49064),F=r(55243),V=r.n(F);let $=(e,t)=>e.map(e=>{let r=t.find(t=>
83t.id===e.id);return r?{...e,selected:r.selected}:e});function z({filters:e,filterState:t,onToggle:r,onApply:o,onClear:a}){let l=e.filter(e=>e.values.some(e=>e.selected)).length;return(0,n.jsxs)(n.Fragment,{children:[e.filter(e=>e.values.length>0).map(e=>{let o=e.values.filter(e=>e.selected),i=e.displayName+(o.length>0?` (${o.length})`:"");return(0,n.jsxs)("div",{children:[(0,n.jsx)(M.n,{title:i,style:{border:0},children:e.values.map(({id:o,name:i,count:a})=>{let s=t[e.name]?.find(e=>e.id===o)?.selected,l=0===a&&!s;return(0,n.jsx)(u.Zp,{align:"start",gap:"sm",layout:"full-width",className:V()["product-sort__dropdown-card"],children:(0,n.jsx)(R.Child,{children:(0,n.jsxs)("div",{className:V()["product-sort__dropdown-card-input"],children:[(0,n.jsx)(u.N,{id:`checkbox-${o}`,name:o,type:"checkbox",disabled:l,checked:s,isSquare:!0,onChange:()=>r(e.name,o,!s),children:i}),(0,n.jsx)("span",{className:V()["product-sort__dropdown-label"],style:{color:l?"gray":void 0},children:i})]})})},o)})}),(0,n.jsx)(B.c,{className:V()["mobile-sort-modal__divider"]})]},e.name)}),(0,n.jsx)(i.s,{align:"center",justify:"center",style:{marginTop:16},children:l>0&&(0,n.jsx)("button",{className:(0,s.A)({"button-link":!1,[V()["filter-link-button"]]:!0}),onClick:a,children:"Clear all"})})]})}function U({fullwidth:e}){let[t,r]=(0,o.useState)(!1),i=(0,o.useRef)(t),a=(0,o.useRef)(null);(0,o.useEffect)(()=>{i.current=t},[t]),(0,o.useEffect)(()=>{let e=e=>{i.current&&a.current&&!a.current.contains(e.target)&&r(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let{setProductTypeFilters:s,setBudgetFilters:l,setSpeedFilters:c,setTvChannelFilters:u,productTypeFilters:b,speedFilters:g,budgetFilters:f,tvChannelFilters:x,setLastFiltered:y,setProductsLoaded:j}=(0,m.useProductFilterSort)(),w=[{displayName:"Deal Type",name:h._i.productType,values:b},{displayName:"Budget",name:h._i.budget,values:f},{displayName:"Speed",name:h._i.speed,values:g},{displayName:"TV Channels",name:h._i.tvChannel,values:x}],N=w.reduce((e,t)=>(e[t?.name]=t?.values.map(e=>({id:e.id,selected:e.selected??!1})),e),{}),[k,E]=(0,o.useState)(N);(0,o.useEffect)(()=>{E({[h._i.productType]:b.map(e=>({id:e.id,selected:e.selected??!1})),[h._i.budget]:f.map(e=>({id:e.id,selected:e.selected??!1})),[h._i.speed]:g.map(e=>({id:e.id,selected:e.selected??!1})),[h._i.tvChannel]:x.map(e=>({id:e.id,selected:e.selected??!1}))})},[b,f,g,x]);let S=(e,t,r)=>e.map(e=>e.id===t?{...e,selected:r,selectedAt:new Date().toString()}:e),T=[b,f,g,x].reduce((e,t)=>e+(t?.filter(e=>e.selected)?.length||0),0);return(0,n.jsxs)(L.ModalProvider,{children:[(0,n.jsx)(O.M,{style:{width:"100%",alignItems:"center",borderWidth:2},asChild:!0,size:"sm",iconPosition:"start",onClick:()=>r(e=>!e),children:(0,n.jsx)(D.ModalTrigger,{style:{textDecoration:"none"},children:(0,n.jsx)(v.az,{border:!0,margin:"0",padding:"sm",rounded:"sm",style:{borderWidth:2},children:(0,n.jsxs)(p.E,{weight:"medium",size:"T300",style:{height:28,textAlign:"center"},children:[(0,n.jsx)(_.I,{color:"grey",icon:d.rx4})," Filter",T>0?` (${T.toString()})`:""]})})})}),t&&(0,n.jsx)(D.Modal,{className:V()["mobile-sort-modal"],children:(0,n.jsxs)("div",{ref:a,children:[(0,n.jsxs)(D.ModalHeader,{children:[(0,n.jsx)(D.ModalTitle,{children:"Filter by"}),(0,n.jsx)(D.ModalCloseButton,{onClick:()=>{j(!1),r(!1)}})]}),(0,n.jsx)(D.ModalBody,{style:{border:0,paddingTop:0},children:(0,n.jsx)(z,{filters:w,filterState:k,onToggle:(e,t,r)=>{E(n=>({...n,[e]:n[e].map(e=>e.id===t?{...e,selected:r}:e)})),((e,t,r)=>{switch(y(e),e){case h._i.productType:s(S(b,t,r));break;case h._i.budget:l(S(f,t,r));break;case h._i.speed:c(S(g,t,r));break;case h._i.tvChannel:u(S(x,t,r))}j(!1)})(e,t,r)},onApply:()=>{Object.entries(k).forEach(([e,t])=>{switch(e){case h._i.productType:s($(b,t));break;case h._i.budget:l($(f,t));break;case h._i.speed:c($(g,t));break;case h._i.tvChannel:u($(x,t))}}),j(!1),r(!1)},onClear:()=>{let e=e=>e.map(e=>({...e,selected:!1,selectedAt:""}));s(e(b)),l(e(f)),c(e(g)),u(e(x)),E(Object.keys(k).reduce((e,t)=>(e[t]=k[t].map(e=>({...e,selected:!1})),e),{})),j(!1)}})})]})})]})}let H=({isReady:e,mobileColumeCount:t,hasFilter:r,hasSort:o,isDesktop:i,orderByOptions:l,activeFilter:c,filteredBundleCount:d,handleFilterButtonF
83ocus:u,children:_,activeFilterTags:p,hasActiveFilters:m})=>{let h=j();return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.x,{className:(0,s.A)({"no-flex":!0,[T()["vm-product-filter-sort__container-mobile"]]:!0}),sm:t,md:t,lg:"2",gap:"sm",style:{marginTop:0,marginLeft:h?9:"",marginRight:h?9:""},children:[(0,n.jsx)("div",{className:T()["vm-product-filter-sort__col-mobile"],children:r&&(0,n.jsx)(U,{fullwidth:"1"===t})}),o&&(0,n.jsx)("div",{className:T()["vm-product-filter-sort__col-mobile"],children:l.length>0&&(0,n.jsx)(k,{isDesktop:i,fullWidh:"1"===t,options:l,handleFilterButtonFocus:u,activeFilter:c})})]}),h&&p,(0,n.jsx)(C,{hasActiveFilter:m,filteredBundleCount:d,children:_})]}):null};function G(e){return t=>t.name===e?{...t,selected:!1,selectedAt:""}:t}let q=e=>e.map(e=>({...e,selected:!1,selectedAt:""})),W=({orderByOptions:e,filterByProductTypes:t,filterByBudgets:r,filterByBroadbandSpeeds:d,filterByTvChannels:u,hasFilter:_,hasSort:p,children:b})=>{let g=(0,c.G)({width:1025}),{setSort:f,sort:v,productTypeFilters:y,speedFilters:j,budgetFilters:w,tvChannelFilters:N,setProductTypeFilters:S,setBudgetFilters:A,setSpeedFilters:I,setTvChannelFilters:M,setProductsLoaded:O,setLastFiltered:B,filteredBundleCount:L,setFilteredBundleCount:D}=(0,m.useProductFilterSort)(),[R,F]=(0,o.useState)(!1),[V,$]=(0,o.useState)(!1),[z,U]=(0,o.useState)(""),W=`${E.eT.PRODUCT_SORT_FILTER_SETTING}${window.location.pathname}`;(0,o.useEffect)(()=>{D(0),$(!0)},[]),(0,o.useEffect)(()=>{if(!V)return;let n=null;try{F(!1);let e=l.A.get(W);n=e?JSON.parse(e):null}catch{console.warn("Invalid cookie ignored")}if(n){n.sort&&f(n.sort);let e=(e,t,r)=>{e?.length?r(e):t?.length&&r(t)};e(n?.productTypeFilters,t,S),e(n?.budgetFilters,r,A),e(n?.speedFilters,d,I),e(n?.tvChannelFilters,u,M)}else S(t),A(r),I(d),M(u),e&&e?.length>0&&f(e[0]?.value);O(!1),F(!0)},[V,e]),(0,o.useEffect)(()=>{V&&(l.A.set(W,JSON.stringify({productTypeFilters:y,budgetFilters:w,speedFilters:j,tvChannelFilters:N,sort:v}),{expires:7}),F(!0))},[V,y,w,j,N,v]);let Y=(e,t)=>{switch(B(""),e){case h._i.productType:S(y.map(G(t)));break;case h._i.budget:A(w.map(G(t)));break;case h._i.speed:I(j.map(G(t)));break;case h._i.tvChannel:M(N.map(G(t)))}O(!1)},K=e=>{U(e)},Q=()=>{S(q(y)),A(q(w)),I(q(j)),M(q(N)),O(!1),B("")},Z=[...y??[],...w??[],...j??[],...N??[]].sort((e,t)=>new Date(t.selectedAt).getTime()-new Date(e.selectedAt).getTime()).filter(e=>e.selected),X=Z.length>0&&(0,n.jsx)(i.s,{className:(0,s.A)("no-flex",T()["vm-product-filter-sort__tag-container"],"filter-tag-container"),gap:"sm",direction:"row",wrap:"wrap","data-cy":"product-filter-active-option-section",children:Z.toSorted((e,t)=>new Date(e.selectedAt).getTime()-new Date(t.selectedAt).getTime()).map((e,t,r)=>{let o=t===r.length-1;return(0,n.jsx)(P,{label:`tag-${t}`,filterValue:e,filterKey:e.type,addClearLink:o,hasSelectedFilters:y.some(e=>e.selected)||w.some(e=>e.selected)||j.some(e=>e.selected)||N.some(e=>e.selected),onRemove:Y,onReset:Q},`tag-${t}-${e.id}`)})});if(!g&&R){let t=_&&p?"2":"1";return(0,n.jsx)(H,{isReady:R,mobileColumeCount:t,hasFilter:_,hasActiveFilters:Z.length>0,hasSort:p,isDesktop:g,orderByOptions:e,activeFilter:z,filteredBundleCount:L,handleFilterButtonFocus:K,activeFilterTags:X,children:b})}let J=(0,n.jsxs)(a.x,{className:T()["vm-product-filter-sort__container"],sm:"2",md:"2",lg:"2",gap:"xs",style:{margin:0,marginLeft:10},children:[(0,n.jsx)(a.x,{sm:"1",md:"5",lg:"5",gap:"sm",style:{margin:0},children:_&&(0,n.jsxs)(n.Fragment,{children:[y?.length>0&&(0,n.jsx)("div",{className:T()["vm-product-filter-sort__column"],children:(0,n.jsx)(x,{label:"Deal type",options:y,filterButtonWidth:200,filterKey:h._i.productType,filterDropdownWidth:250,isActive:"Deal type"===z,handleFilterButtonFocus:K})}),w?.length>0&&(0,n.jsx)("div",{className:T()["vm-product-filter-sort__column"],children:(0,n.jsx)(x,{label:"Budget",options:w,filterButtonWidth:150,filterKey:h._i.budget,filterDropdownWidth:150,isActive:"Budget"===z,handleFilterButtonFocus:K})}),j?.length>0&&(0,n.jsx)("div",{className:T()["vm-product-filter-sort__column"],children:(0,n.jsx)(x,{label:"Speed",options:j,filterButtonWidth:150,filterKey:h._i.speed,filterDropdownWidth:190,isActive:"Speed"===z,handleFilterButtonF
83ocus:K})}),N?.length>0&&(0,n.jsx)("div",{className:T()["vm-product-filter-sort__column"],children:(0,n.jsx)(x,{label:"TV Channels",options:N,filterButtonWidth:180,filterKey:h._i.tvChannel,filterDropdownWidth:190,isActive:"TV Channels"===z,handleFilterButtonFocus:K})})]})}),(0,n.jsx)("div",{className:T()["vm-product-filter-sort__column"],children:e.length>0&&(0,n.jsx)(k,{fullWidh:!1,isDesktop:g,options:e,handleFilterButtonFocus:K,activeFilter:z})})]});return R&&(0,n.jsxs)(n.Fragment,{children:[J,_&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{filteredBundleCount:L,hasActiveFilter:Z.length>0,children:b}),X]})]})}},79270:e=>{e.exports={"stream-options__info":"stream-options-modal_stream-options__info__LBrsM","stream-options__tabs":"stream-options-modal_stream-options__tabs__8Dule","stream-options-modal":"stream-options-modal_stream-options-modal__SGByr","stream-options__list":"stream-options-modal_stream-options__list__CWiEx","stream-options__option":"stream-options-modal_stream-options__option__NsGcD","stream-options__option--selected":"stream-options-modal_stream-options__option--selected__MZIh5","stream-options__label":"stream-options-modal_stream-options__label__Pu5dE","stream-options__features":"stream-options-modal_stream-options__features__ueJJL","stream-options__feature-title":"stream-options-modal_stream-options__feature-title__SgqmQ","stream-options__footer":"stream-options-modal_stream-options__footer__JR3oO","stream-options__price--discounted":"stream-options-modal_stream-options__price--discounted__Iz1VL"}},80501:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12115);class o extends n.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("GLTF Error Boundary caught an error:",e,t),this.props.onError(e)}render(){return this.state.hasError?this.props.fallback||null:this.props.children}}let i=o},80600:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HBook:()=>m});var n=r(95155),o=r(5772),i=r(12115),a=r(96653),s=r(31725),l=r(11389),c=r(51073),d=r(29722),u=r(67270),_=r(44200),p=r.n(_);let m=({title:e,content:t,cta:r,image:_,imageTint:m,attachmentY:h,attachmentX:b,defaultExpanded:g,logo:f,...x})=>{let[v,y]=(0,i.useState)(g),j=(0,i.useId)(),w=(0,i.useCallback)(()=>{y(e=>!e)},[]),N=(0,u.G)(f);return(0,n.jsxs)("div",{"data-testid":"h-book",className:(0,d.A)({[p()["h-book"]]:!0,[p()["h-book--expanded"]]:v,[p()["h-book--tint-black"]]:"black"===m}),style:{"--background-image":`${_}`,"--attachment-x":`${b}%`,"--attachment-y":`${h}%`},...x,children:[N&&(0,n.jsx)(o.default,{unoptimized:!0,"data-testid":"h-book-logo",className:p()["h-book__logo"],src:N?.src,alt:N?.alt,loading:"eager",width:0,height:0}),!N&&(0,n.jsx)("div",{"data-testid":"h-book-title",className:p()["h-book__title"],children:e}),(0,n.jsx)("section",{"data-testid":"h-book-content",id:j,className:p()["h-book__content-wrapper"],"aria-label":e,"aria-hidden":!v,children:(0,n.jsxs)("div",{className:p()["h-book__content"],children:[(0,n.jsx)("div",{className:p()["h-book__description"],children:(0,n.jsx)(s.SY,{document:t,StoryblokComponent:a.Dp})}),(0,n.jsx)("div",{className:p()["h-book__cta"],children:r})]})}),(0,n.jsx)("div",{className:p()["h-book__controls"],children:(0,n.jsxs)("button",{"data-testid":"h-book-toggle",type:"button",className:p()["h-book__control"],onClick:w,"aria-controls":j,"aria-expanded":v,children:[(0,n.jsx)(c.I,{icon:l.SUl,"aria-hidden":!0}),(0,n.jsx)("span",{className:p()["h-book__control-text"],children:v?"Collapse":"Expand"})]})})]})}},80660:(e,t,r)=>{"use strict";r.d(t,{h:()=>o,q:()=>i});var n=r(21216);let o=e=>{let t=parseInt(e??"",10);return t<150?["red","light"]:t<270?["orange"]:t<500?["green"]:t<600?["blue","light"]:t<1500?["purple","light"]:["yellow"]},i=e=>{let t=parseInt(e??"",10);return t<150?n.Rd:t<500?n.du:t<600?n.tk:t<1500?n.dP:n.NR}},81075:e=>{e.exports={container:"product-price-filter_container__8_ja6","filter-button":"product-price-filter_filter-button___M_ty","select-container":"product-price-filter_select-container__gjhxB",want_to_see_filter:"product-price-filter_want_to_see_filter__IlFEf","select-box":"product-price-filter_select-box__pxbo4"}},81269:e=>{e.exports={"media-bundle__wrapper":"media-bundle_media-bundle__wrapper___GUBO","media-bundle__wrapper--horizontal":"media-bundle_media-bundle__wrapper--horizontal__7rX_p","media-bundle__wrapper--fixed-orientation":"media-bundle_media-bundle__wrapper--fixed-orientation__dhwb0","media-bundle__content-wrapper":"media-bundle_media-bundle__content-wrapper__u1fmm","media-bundle__img-wrapper":"media-bundle_media-bundle__img-wrapper__w_bWF","media-bundle__img-wrapper--rounded":"media-bundle_media-bundle__img-wrapper--rounded__73LxT","media-bundle__logo-wrapper":"media-bundle_media-bundle__logo-wrapper__J_xK_","media-bundle__title":"media-bundle_media-bundle__title__lyw4q","media-bundle__description":"media-bundle_media-bundle__description__bk2xE"}},81339:e=>{e.exports={"grid-container":"bundles-grid_grid-container__ROyNL",loading:"bundles-grid_loading__9ARUB"}},81621:(e,t,r)=>{"use strict";r.d(t,{ExposedMenu:()=>b});
83var n=r(95155),o=r(12115),i=r(12572),a=r(51073),s=r(29722),l=r(72317),c=r(77844),d=r(95178),u=r.n(d),_=r(41581),p=r(70777),m=r.n(p);let h=({nav:e,banner:t})=>{let r={"--grid-template-rows":Math.ceil(e.length/2).toString()};return(0,n.jsxs)("div",{className:(0,s.A)({"exposed-menu-drop-down":!0,[m()["exposed-menu-drop-down"]]:!0}),children:[(0,n.jsx)("ul",{style:r,className:(0,s.A)({[m()["exposed-menu-drop-down__list"]]:!0}),children:e.map(e=>(0,n.jsx)("li",{className:(0,s.A)({[m()["exposed-menu-drop-down__list-item"]]:!0}),children:(0,n.jsx)(c.w,{className:(0,s.A)({[m()["exposed-menu-drop-down__list-item-link"]]:!0}),link:e})},e._uid))}),t?.[0]&&(0,n.jsx)("div",{className:(0,s.A)({[m()["exposed-menu-drop-down__banner"]]:!0}),children:(0,n.jsx)(_.A,{blok:t[0]})})]})},b=({links:e})=>{let[t,r]=(0,o.useState)(null);return(0,n.jsx)("nav",{onMouseLeave:()=>{r?.(null)},className:(0,s.A)({[u()["exposed-menu"]]:!0}),children:(0,n.jsx)("ul",{className:(0,s.A)({"exposed-menu__list":!0,[u()["exposed-menu__list"]]:!0,[u()["exposed-menu__list-default-color"]]:null===t}),children:e.map(e=>{let o=(0,l.e)(e)&&e?.links?.length,d=(0,l.K)(e)&&e.theme;return(0,n.jsxs)("li",{className:(0,s.A)({"exposed-menu__list-item--has-dropdown":t===e._uid&&o||!o,[u()["exposed-menu__list-item"]]:!0,[u()["exposed-menu__list-item--primary"]]:"primary"===d,[u()["exposed-menu__list-item--secondary"]]:"secondary"===d,[u()["exposed-menu__list-item--volt"]]:"volt"===d,[u()["exposed-menu__list-item--info"]]:"info"===d,[u()["exposed-menu__list-item--onyx"]]:"onyx"===d,[u()["exposed-menu__list-item--tertiary"]]:"tertiary"===d,[u()["exposed-menu__list-item--success"]]:"success"===d,[u()["exposed-menu__list-item--warning"]]:"warning"===d,[u()["exposed-menu__list-item--danger"]]:"danger"===d,[u()["exposed-menu__list-item--light"]]:"light"===d,[u()["exposed-menu__list-item--dark"]]:"dark"===d}),children:[(0,n.jsx)(c.w,{setActiveMenu:r,className:(0,s.A)({[u()["exposed-menu__list-item-link"]]:!0,[u()["exposed-menu__list-item-link--with-dropdown"]]:!0}),onClick:()=>r(e._uid??null),link:e,showLeftIcon:!1,rightIcon:o&&(0,n.jsx)(a.I,{className:(0,s.A)({[u()["exposed-menu__list-item-link-right-icon"]]:!0}),icon:i.LDw,size:"md"})}),o&&e.links&&t===e._uid&&(0,n.jsx)(h,{nav:e.links,banner:e.banner},e._uid)]},e._uid)})})})}},81762:e=>{e.exports={"sale-banner":"sale-banner-landscape_sale-banner__BCtyg","sale-banner_text":"sale-banner-landscape_sale-banner_text__69n7K","sale-banner--countdown":"sale-banner-landscape_sale-banner--countdown__72Nah","sale-banner--volt":"sale-banner-landscape_sale-banner--volt__HV5zN","sale-banner--black":"sale-banner-landscape_sale-banner--black__3nNor","sale-banner--vm_purple":"sale-banner-landscape_sale-banner--vm_purple__6hKyr","sale-banner--tertiary":"sale-banner-landscape_sale-banner--tertiary__5NIh9","sale-banner--red":"sale-banner-landscape_sale-banner--red__z4vFV","sale-banner--primary":"sale-banner-landscape_sale-banner--primary__2L78w","sale-banner--blue":"sale-banner-landscape_sale-banner--blue__fNnB8","sale-banner--info":"sale-banner-landscape_sale-banner--info__poymN","sale-banner--secondary":"sale-banner-landscape_sale-banner--secondary__DimoU","sale-banner--green":"sale-banner-landscape_sale-banner--green__BDbL6","sale-banner--success":"sale-banner-landscape_sale-banner--success__Tqvbh","sale-banner--onyx":"sale-banner-landscape_sale-banner--onyx__9Yoj1","sale-banner--warning":"sale-banner-landscape_sale-banner--warning__KsSxm","sale-banner--danger":"sale-banner-landscape_sale-banner--danger___JdVq","sale-banner--dark":"sale-banner-landscape_sale-banner--dark__6H7tK","sale-banner--light":"sale-banner-landscape_sale-banner--light__rq3Jt","countdown-item":"sale-banner-landscape_countdown-item__G548j"}},82117:e=>{e.exports={"price-container":"price_price-container__0Rd48",price:"price_price__beAhw","price-decimals":"price_price-decimals__64_rr","price-increase":"price_price-increase__HEHXP"}},82459:e=>{e.exports={originalPrice:"delta-price_originalPrice__lqhRc",xs:"delta-price_xs__utEEE"}},82473:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var n=r(95155),o=r(12115),i=r(18401),a=r(71505),s=r(27710),l=r(29722),c=r(91329),d=r(76537),u=r(29081),_=r(81075),p=r.n(_);function m(){let{setSort:e}=(0,d.useProductFilterSort)(),[t,r]=(0,o.useState)({}),{setBundlesFilters:_}=(0,c.Y)(),m=(0,u.Og)("price-filter-section","price-filter-deal-type","price-filter-budget","price-filter-cta"),h=e=>{let{name:n,value:o}=e.target;
83r({...t,[n]:o})};return(0,n.jsx)("div",{className:(0,l.$)({[p().want_to_see_filter]:!0,"product-price-filter-container":!0}),children:(0,n.jsxs)("div",{className:p().container,...m["price-filter-section"],children:[(0,n.jsxs)(a.N,{gap:"md",children:[(0,n.jsx)(s.a,{id:"deal_type_filter",name:"deal_type",hideLabels:!0,className:p()["select-box"],onChange:h,value:t?.deal_type||"All deals",...m["price-filter-deal-type"],"aria-label":"Deal Type Filter",children:(0,n.jsxs)("optgroup",{label:"Deal type",children:[(0,n.jsx)("option",{value:"All deals",children:"All deals"}),(0,n.jsx)("option",{value:"Broadband",children:"Broadband"}),(0,n.jsx)("option",{value:"Broadband & TV",children:"Broadband + TV"})]})}),(0,n.jsx)(s.a,{id:"budget_filter",name:"budget",hideLabels:!0,className:p()["select-box"],onChange:h,value:t?.budget||"0,999",...m["price-filter-budget"],"aria-label":"Budget Filter",children:(0,n.jsxs)("optgroup",{label:"Budget",children:[(0,n.jsx)("option",{value:"0,999",children:"No budget"}),(0,n.jsx)("option",{value:"0,35",children:"Under \xa335"}),(0,n.jsx)("option",{value:"35,999",children:"Over \xa335"})]})})]}),(0,n.jsx)(i.$,{variant:"primary",onClick:()=>{e(""),_(t);let r=document.getElementById("product-cards-grid");r&&r.scrollIntoView({behavior:"smooth"})},rounded:"xl",responsive:!0,className:p()["filter-button"],...m["price-filter-cta"],children:"Let's go"})]})})}},82808:e=>{e.exports={"compare-bundle-modal-container":"compare-bundle-modal_compare-bundle-modal-container__0TOPN","compare-bundle-modal-container-header":"compare-bundle-modal_compare-bundle-modal-container-header__tFTD0","compare-bundle-modal-container-header-title":"compare-bundle-modal_compare-bundle-modal-container-header-title__EjquJ","compare-bundle-modal-container-header-close-button":"compare-bundle-modal_compare-bundle-modal-container-header-close-button__SNpbK","section-header":"compare-bundle-modal_section-header__asoua","back-to-Top-container":"compare-bundle-modal_back-to-Top-container__KrNPX",cell:"compare-bundle-modal_cell__wwKZY","empty-bundle-card":"compare-bundle-modal_empty-bundle-card__TUEY0","empty-bundle-action":"compare-bundle-modal_empty-bundle-action__xS_LW","empty-bundle-action-button":"compare-bundle-modal_empty-bundle-action-button__3bWXW","empty-bundle-action-container":"compare-bundle-modal_empty-bundle-action-container__vXlB9","field-container":"compare-bundle-modal_field-container__9PEn0",fieldLabel:"compare-bundle-modal_fieldLabel__LQ_Yy","sticky-header-cell":"compare-bundle-modal_sticky-header-cell__9ZmUk",bundle_check_icon:"compare-bundle-modal_bundle_check_icon__TWIVm","label-image":"compare-bundle-modal_label-image__MMgnK","label-text":"compare-bundle-modal_label-text__i03_y","add-to-basket":"compare-bundle-modal_add-to-basket__xmMdt","add-to-basket-container":"compare-bundle-modal_add-to-basket-container__9denG"}},83182:e=>{e.exports={"sidenav-overlay":"side-nav-overlay_sidenav-overlay__ifH0Z"}},83484:e=>{e.exports={"tv-hue-hero":"vm-upperfunnel-tv-hue-hero_tv-hue-hero__YUfe2","tv-hue-hero__wrapper":"vm-upperfunnel-tv-hue-hero_tv-hue-hero__wrapper__ldm69","tv-hue-hero__content-section":"vm-upperfunnel-tv-hue-hero_tv-hue-hero__content-section__mOUkA","tv-hue-hero__background-section":"vm-upperfunnel-tv-hue-hero_tv-hue-hero__background-section__G1bCY","tv-hue-hero__content":"vm-upperfunnel-tv-hue-hero_tv-hue-hero__content__kucYk","tv-hue-hero__children":"vm-upperfunnel-tv-hue-hero_tv-hue-hero__children__e0ThY","hero-banner--under-navigation":"vm-upperfunnel-tv-hue-hero_hero-banner--under-navigation__Ghtbt"}},83517:e=>{e.exports={"navigation-promo":"navigation-promo_navigation-promo__PmO3w","navigation-promo__content":"navigation-promo_navigation-promo__content__NCmIC","navigation-promo__image":"navigation-promo_navigation-promo__image__FA3Sa","navigation-promo__content-title":"navigation-promo_navigation-promo__content-title__JjQ4l","navigation-promo__content-copy":"navigation-promo_navigation-promo__content-copy__q66bw","navigation-promo__content-action":"navigation-promo_navigation-promo__content-action__TO1hs"}},83774:e=>
83{e.exports={"vm-equipment-carousel-slide-enhanced":"vm-equipment-carousel-slide-enhanced_vm-equipment-carousel-slide-enhanced__5Sdrf",content:"vm-equipment-carousel-slide-enhanced_content__QKoiA","left-column":"vm-equipment-carousel-slide-enhanced_left-column__AYt_X","right-column":"vm-equipment-carousel-slide-enhanced_right-column__aZWvQ","text-content":"vm-equipment-carousel-slide-enhanced_text-content__R_gTY","cta-container":"vm-equipment-carousel-slide-enhanced_cta-container__Qu3Ks"}},83846:e=>{e.exports={error:"byob-tv-channel-selection-container_error__ROlAz"}},84048:e=>{e.exports={"description__speed-icon":"description_description__speed-icon__Lhfr0"}},84398:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TabsList:()=>m});var n=r(95155),o=r(12115),i=r(29722),a=r(29081),s=r(24607),l=r.n(s);let c=({tab:e,index:t,isActive:r,onClick:s,onKeyDown:c})=>{let d=(0,o.useRef)(null),u=(0,a.Og)("tab-button");return(0,n.jsxs)("button",{ref:d,role:"tab",type:"button",className:(0,i.A)("tab-list__tab",l()["uf-tab-list__tab"],{"tab-list__tab--is-active":r}),...u["tab-button"],"aria-controls":`${e.id}-container`,"aria-selected":r,tabIndex:0,id:e.id,"data-tab-id":e.id,onClick:()=>s(e.id),onKeyDown:e=>c(e,t),children:[e.icon&&(0,n.jsx)("span",{"aria-hidden":"true",children:e.icon}),e.label]})},d=({tabs:e,activeTab:t,variant:r,handleTabChange:o,handleKeyDown:i})=>e.map((e,a)=>(0,n.jsx)(c,{tab:e,index:a,isActive:t===e.id,variant:r,onClick:o,onKeyDown:i},e.id));var u=r(76537);let _=({tab:e,isActive:t})=>{let{setSort:r}=(0,u.useProductFilterSort)(),s=(0,a.Og)("tabs-content");return(0,o.useEffect)(()=>{r("")},[t]),t&&(0,n.jsx)("div",{role:"tabpanel",className:(0,i.A)("tabs__container",l()["uf-tabs__container"],{"tabs__container--is-visible":t,"tabs__container--without-interactive-content":!t}),id:`${e.id}-container`,"aria-labelledby":e.id,hidden:!t,children:(0,n.jsx)("div",{"data-testid":"tabs-content",className:l().tabs__content,...s["tabs-content"],children:e.content})})},p=({tabs:e,activeTab:t,renderWhenInactive:r})=>{if(r)return e.map(e=>(0,n.jsx)(_,{tab:e,isActive:t===e.id},e.id));let o=e.find(e=>e.id===t)||e[0];return(0,n.jsx)(_,{tab:o,isActive:!0},o.id)},m=({className:e="",tabs:t,variant:r="tabs",renderWhenInactive:s=!0,activeTabId:c,onTabChange:u})=>{let[_,m]=(0,o.useState)(c||t[0].id),h=(0,o.useRef)(null),b=(0,a.Og)("choice-chip-section","choice-chip-tab-list"),g=(0,o.useRef)(_);(0,o.useEffect)(()=>{if(g.current!==_){if(h.current){let e=h.current.querySelector(`[data-tab-id="${_}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}g.current=_}},[_]);let f=e=>{u?.(e),m(e)};return(0,n.jsxs)("div",{className:(0,i.A)("tabs",l()[`tabs--${r}`],e),...b["choice-chip-section"],children:[(0,n.jsx)("div",{className:l()["tabs__tab-list--scrollable-container"],children:(0,n.jsx)("div",{role:"tablist","aria-label":"Tab Group","data-testid":"tab-list",...b["choice-chip-tab-list"],ref:h,className:(0,i.A)("tabs__tab-list","tab-list",{"tab-list--is-tiled":"tiles"===r,"tab-list--is-segmented":"segments"===r}),children:(0,n.jsx)(d,{tabs:t,variant:r,handleKeyDown:(e,r)=>{let n,o=t.length;switch(e.key){case"ArrowLeft":n=(r-1+o)%o;break;case"ArrowRight":n=(r+1)%o;break;case"Home":n=0;break;case"End":n=o-1;break;default:return}e.preventDefault();let i=t[n].id;f(i);let a=h.current?.querySelector(`[data-tab-id="${i}"]`);a?.focus()},handleTabChange:f,activeTab:_})})}),(0,n.jsx)(p,{activeTab:_,tabs:t,renderWhenInactive:s})]})}},84830:e=>{e.exports={pill:"Pill_pill__3fZ2g"}},84858:(e,t,r)=>{"use strict";r.d(t,{s:()=>V});var n=r(95155),o=r(12115),i=r(65305),a=r(66045),s=r(69839),l=r(51970),c=r(67526),d=r(55451),u=r(18829),_=r(89684),p=r(30710),m=r(99852),h=r(32493),b=r(28877),g=r(54046),f=r(70186),x=r(86433),v=r(23862),y=r(99916),j=r(71505),w=r(82567),N=r(29243),k=r(29722),E=r(6471),S=r(5423),T=r(48399),C=r(73294),A=r(96653),I=r(16420),P=r(12612),M=r(16116),O=r.n(M);let B=({description:e})=>e?(!function e(t,r,n,o=null){"text"===t.type&&t.text&&r(t.text)&&o?.attrs&&(o.attrs.className=n),t.content&&Array.isArray(t.content)&&t.content.forEach(o=>e(o,r,n,t))}(e,P.v,"has-netflix"),(0,n.jsx)("div",{className:O().description,children:(0,n.jsx)(I.S,{document:e,StoryblokComponent:A.Dp})})):null;var L=r(5772);let D=({src:e,alt:t,hasRoundel:r})=>(0,n.jsx)(L.default,{src:e,alt:t||"TV device",className:(0,k.A)(O().deviceImage,r&&O()["deviceImage--withRoundel"]),width:200,height:145}),R=({showFrom:e,price:t,promo:r,subText:o})=>(0,n.jsxs)(j.N,{direction:"column",className:O().pricing,children:[(()=>{if(r?.price&&!r.isFree){let t="1"===r.duration?"month":"months",o=r.duration?` for ${r.duration} ${t}`:" a month";return(0,n.jsxs)(w.E,{size:"T400",weight:"bold",className:O().currentPrice,children:[e&&(0,n.jsx)("span",{children:"From "}),(0,n.jsx)("span",{className:O().originalPrice,children:r.originalPrice})," ",(0,n.jsxs)("span",{className:O().promoPrice,children:[r.price,o]})]})}return(0,n.jsxs)(w.E,{size:"T400",weight:"bold",className:O().currentPrice,children:[e&&(0,n.jsx)("span",{children:"From "}),t]})})(),o&&(0,n.jsx)(w.E,{size:"T200",className:O().pricingSubText,children:o})]}),F=({variant:e="white",title:t,description:r,image:o,modals:i,price:a,contract:s,contractPreText:l,showFrom:c=!0,promo:d,pricingSubText:u,className:_,isSelected:p,onAddClick:m,onRemoveClick:h,customAttributes:b,...g})=>{let f=(0,k.A)(O().card,O()[`card--${e}`],{[O()["card--selected"]]:p},_),x=(0,N.ZQ)(o||void 0);return(0,n.jsx)(y.Zp,{className:f,borderWidth:"2",padding:"none",rounded:"lg",...b,...g,children:(0,n.jsxs)(j.N,{direction:"column",justify:"between",gap:"sm",className:O().cardContent,padding:"sm",children:[(0,n.jsxs)("div",{className:O().topSection,children:[x&&(0,n.jsx)("div",{className:O().imageContainer,children:(0,n.jsx)(D,{src:x.src,alt:x.alt})}),(0,n.jsx)(w.E,{size:"T400",weight:"bold",className:O().title,children:t}),(0,n.jsx)(B,{description:r})]}),(0,n.jsxs)(j.N,{gap:"sm",className:O().bottomSection,children:[i&&i.length>0?(0,n.jsx)(j.N,{justify:"center",margin:"sm 0 0 0",children:(0,n.jsx)(S.o,{title:i[0].title??"",text:(0,n.jsx)(T.t,{images:i[0].images,text:i[0].text??[]}),className:O().seeAllChannels,children:i[0].linkText})}
83):null,(0,n.jsx)(R,{showFrom:c,price:a,promo:d,subText:u}),(0,n.jsx)(j.N,{justify:"center",children:(0,n.jsx)(E.o,{isSelected:p,removable:!0,variant:"white"===e?"dark":"light",onClick:()=>m?.(),onRemoveClick:()=>h?.()})}),(0,n.jsx)(C.d,{contract:s,preText:l})]})]})})},V=e=>{let{msaBundle:t,sbBundle:r}=e,{basket:y}=(0,l.D)(),{setIsLoading:j,steps:w,intentType:N}=(0,o.useContext)(c.ByobContext),k=(w.current??1)>1,E="broadband"===N,{showBasketNotification:S}=(0,a.rf)(),T=t.bundleId===y?.basketPricing?.bundleId,C=r.content.display_name?.content?.[0]?.content?.[0]?.text||r.name,[A,I]=(0,o.useTransition)(),[P,M]=(0,o.useActionState)(x.R,{success:!1});(0,o.useEffect)(()=>{j(A)},[A,j]),(0,o.useEffect)(()=>{P.success&&S({title:P.product?.title??"",description:P.product?.description})},[P,S]);try{let e,o=(0,f.M)(r),a=(0,g.gN)(o),l=a.find(e=>e?.content.product_type?.toLowerCase()===i.po.TV),{variant:c,title:x,description:j,image:w,is_addon:N}=l?.content?.byob_content?.content||{},A=(0,h.uM)(k?"":C,a,!!t?.journeyTypes?.includes("Stream")).find(e=>e.productType===i.po.TV),{tldPricing:P,setupFees:O}=(0,b.O)(t),B=O?.stream_setup?.amount??0,L=k?`${(0,p.xQ)(P?.flexPricing.toString())} a month`:`${(0,p.a7)(P?.pricing.timeLimitedTotal)} a month`,D=B>0?`${(0,p.a7)(B)} activation fee`:"";e=k?D:D?`${D} | Including broadband`:"Including broadband";let R=N?{term:1}:t.contract,V=(0,_.s)(R?.term),$=(0,m.r)(r,t);return(0,n.jsx)(F,{variant:c,title:x,description:j,image:w,modals:A?.modals,contract:R,showFrom:!k,price:L,pricingSubText:e,isSelected:T,onAddClick:()=>{I(async()=>{if(k){let e=await (0,d.u)({id:t.bundleId??"",body:{commitmentState:"Confirmed"},bundle:{title:x??"",description:V}});e.success&&S({title:e.bundle?.title??"",description:e.bundle?.description,duration:5e3})}else M({id:t.bundleId??"",body:{commitmentState:"Provisional"},product:{title:x??"",description:V}});(0,u.A)(s.bk.CONTENT,{event_name:s.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${x} add`,content_name:"Customise",content_text:t.bundleId}})})},onRemoveClick:()=>{I(async()=>{(E?await (0,d.u)({id:y?.basketPricing?.originalBundleId??"",body:{commitmentState:"Provisional",ignoreNestedAddons:!0}}):await (0,v.X)()).success&&(0,u.A)(s.bk.CONTENT,{event_name:s.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${x} remove`,content_name:"Customise",content_text:t.bundleId}})})},customAttributes:$})}catch(e){return console.warn(`${e}`),null}}},85068:e=>{e.exports={"drawer-bg":"burger-menu_drawer-bg__nPUjE","burger-menu":"burger-menu_burger-menu__UnPLX","burger-menu__logo":"burger-menu_burger-menu__logo__4WZ0p","burger-menu__header":"burger-menu_burger-menu__header___rcIK","burger-menu__close":"burger-menu_burger-menu__close__P0Na5","burger-menu__close--black":"burger-menu_burger-menu__close--black__3kT2O","burger-menu__title":"burger-menu_burger-menu__title__SqWU_","burger-menu__list":"burger-menu_burger-menu__list__t4vZB","burger-menu__list-item":"burger-menu_burger-menu__list-item__d9Ref","burger-menu__list-item-link":"burger-menu_burger-menu__list-item-link__RRSLA","burger-menu__banner":"burger-menu_burger-menu__banner__yIL27"}},85269:e=>{e.exports={"uf-footer__wrapper":"footer_uf-footer__wrapper__f_09D","uf-footer__copyright":"footer_uf-footer__copyright__MhRh5",footer__children:"footer_footer__children__GDoCD","uf-footer__legals":"footer_uf-footer__legals__nMwts"}},85328:(e,t,r)=>{"use strict";r.d(t,{VmPreServiceableGuard:()=>a});var n=r(12115),o=r(85592),i=r(36282);let a=({children:e})=>{let t=(0,n.useContext)(o.s);return(0,i.V)(t.availability,t.allowPostcodeCapture)?e:null}},85592:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(0,r(12115).createContext)({setAddress:()=>{},setAddresses:()=>{},setAvailability:()=>{},resetAddress:()=>{},setLoading:()=>{},setPostcode:()=>{},setAllowPostcodeCapture:()=>{}})},86089:(e,t,r)=>{"use strict";r.d(t,{$0:()=>l,Ji:()=>c,ZR:()=>i,dO:()=>o});var n=r(12115);let o=(0,n.createContext)(void 0),i=(0,n.createContext)(void 0),a={selected:{},selectedBundles:[],limit:0},s={toggleSelection:()=>{}},l=()=>{let e=(0,n.useContext)(o);return e||a},c=()=>{let e=(0,n.useContext)(i);return e||s}},86111:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Footer:()=>p});var n=r(95155),o=r(98500),i=r.n(o),a=r(12115),s=r(29722),l=r(69839),c=r(29081),d=r(38198),u=r(85269),_=r.n(u);let p=({navigation:e,children:t,copyright:r,image:o,...u})=>{let p=(0,d.G)(),m=(0,c.Og)("footer","footer-wrapper","footer-navigation-mobile","footer-legals","footer-navigation","footer-logo","footer-copyright");return(0,n.jsx)("div",{className:"footer",...u,...m.footer,children:(0,n.jsxs)("div",{className:(0,s.A)("footer__wrapper",_()["uf-footer__wrapper"]),...m["footer-wrapper"],children:[a.Children.count(t)>0&&t,!p&&e&&(0,n.jsx)("div",{className:"footer__navigation",...m["footer-navigation-mobile"],children:e}),(r||o)&&(0,n.jsxs)("div",{className:(0,s.A)("footer__legals",_()["uf-footer__legals"]),...m["footer-legals"],children:[p&&e&&(0,n.jsx)("div",{className:"footer__navigation",...m["footer-navigation"],children:e}),o&&(0,n.jsx)(i(),{href:"/",title:"Return to homepage",prefetch:l.Ad,children:(0,n.jsx)("div",{className:"footer__logo",...m["footer-logo"],children:o})}
83),r&&(0,n.jsx)("div",{className:(0,s.A)("footer__copyright",_()["uf-footer__copyright"]),...m["footer-copyright"],children:r})]})]})})}},86206:()=>{},86282:(e,t,r)=>{"use strict";r.d(t,{GoogleTagManagerEvents:()=>l,t:()=>a,y:()=>s});var n=r(73321),o=r(12115),i=r(85592);let a=({addressIdentification:e})=>"addressId"in e&&"siteId"in e?`${e.siteId}${e.addressId.padStart(7,"0")}`:void 0,s=({addressIdentification:e})=>"uprn"in e?e.uprn:void 0,l=({env:e})=>{let{address:t,availability:r}=(0,o.useContext)(i.s),l=(0,n.usePathname)();return(0,o.useEffect)(()=>{window.dataLayer=window.dataLayer||[];let n=window.location.href,o=window.location.pathname,i=document.referrer,l=window.location.search,c={event:"pageview",page:{currentTimestamp:Date.now(),environment:"production"===e?"production":"staging",platform:"nextjs",pageReferrer:i,path:o,pageUrl:n,query:l,subdomain:"www",sessionReferrer:sessionStorage.getItem("sessionReferrerUrl"),embeddedWebApp:"false"}};r&&t?c.serviceability={postcode:t.postcode.split(" ")[0].toLowerCase(),premise_uid:a(t),uprn:s(t),serviceability_status:r.outcome.description,delivery_method:r.deliveryMethod}:c.serviceability={delivery_method:void 0,postcode:void 0,premise_uid:NaN,serviceability_status:"unknown"},setTimeout(()=>{window.dataLayer.push(c)},1e3)},[l]),null}},86433:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(9339);let o=(0,n.createServerReference)("604e010bfc99a6cb04f4c7bf98dbe1496303abbcf4",n.callServer,void 0,n.findSourceMapURL,"addToBasketAction")},87632:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(9339);let o=(0,n.createServerReference)("40c77aa953bfd048b7ee105a3bd672dbe509105859",n.callServer,void 0,n.findSourceMapURL,"liveEditUpdateAction")},87797:(e,t,r)=>{"use strict";r.d(t,{ErrorToastProvider:()=>s,R:()=>l});var n=r(95155),o=r(12115),i=r(22116);let a=(0,o.createContext)({toasts:[],createToast:()=>0,removeToast:()=>{},showToast:()=>{},hideToast:()=>{},removeToasts:()=>{}}),s=({children:e})=>{let[t,r]=(0,i.M)([]),s=(0,o.useRef)(t),l=(0,o.useRef)(r);s.current=t,l.current=r;let c=(0,o.useCallback)(e=>{let t=s.current(),r=((t?.length?t[t?.length-1]?.id:-1)??-1)+1,n=[...t,{id:r,show:!1,message:e}];return l.current(n),r},[]),d=(0,o.useCallback)(e=>{l.current(s.current().filter(t=>t.id!==e))},[]),u=(0,o.useCallback)(e=>{l.current(s.current().map(t=>t.id===e?{...t,show:!0}:t))},[]),_=(0,o.useCallback)(e=>{l.current(s.current().map(t=>t.id===e?{...t,show:!1}:t))},[]),p=(0,o.useCallback)(()=>{l.current([])},[]),m=t(),h=(0,o.useMemo)(()=>({toasts:m,createToast:c,removeToast:d,showToast:u,hideToast:_,removeToasts:p}),[m,c,d,u,_,p]);return(0,n.jsx)(a.Provider,{value:h,children:e})},l=()=>{let e=(0,o.useContext)(a);if(!e)throw Error("useErrorToast must be used within an ErrorToastProvider");return e}},87840:e=>{e.exports={container:"vm-scrolling-banner_container__cq56y",bannerLink:"vm-scrolling-banner_bannerLink__ShXn8",scrollingText:"vm-scrolling-banner_scrollingText__7nHJK",textContent:"vm-scrolling-banner_textContent__R0PkA",scroll:"vm-scrolling-banner_scroll___Zz8z",textSet:"vm-scrolling-banner_textSet__l_yu1",textItem:"vm-scrolling-banner_textItem__Ua0TW",iconWrapper:"vm-scrolling-banner_iconWrapper__dLxfD",icon:"vm-scrolling-banner_icon__lVzsE","banner--light":"vm-scrolling-banner_banner--light__VxQAz","banner--primary":"vm-scrolling-banner_banner--primary__ck02q","banner--secondary":"vm-scrolling-banner_banner--secondary__Bwfyj","banner--tertiary":"vm-scrolling-banner_banner--tertiary__vBwXd","banner--volt":"vm-scrolling-banner_banner--volt__98ctR","banner--onyx":"vm-scrolling-banner_banner--onyx___XJfm","banner--dark":"vm-scrolling-banner_banner--dark__hPMf7","banner--success":"vm-scrolling-banner_banner--success__IUFab","banner--info":"vm-scrolling-banner_banner--info__CMPCy","banner--warning":"vm-scrolling-banner_banner--warning__5tF69","banner--danger":"vm-scrolling-banner_banner--danger__H9DGs"}},87865:e=>{e.exports={"shopping-cart-drawer":"shopping-cart_shopping-cart-drawer__gLBIp","shopping-cart":"shopping-cart_shopping-cart__Hh75M","shopping-cart-content":"shopping-cart_shopping-cart-content__G0a3W","shopping-cart-header":"shopping-cart_shopping-cart-header__uKPEC",box:"shopping-cart_box__Hc2tW","box--primary":"shopping-cart_box--primary__1h_Jd","box--secondary":"shopping-cart_box--secondary__nXe8z","box--success":"shopping-cart_box--success__Ak_Kz","box--onyx":"shopping-cart_box--onyx__kP7um","box--warning":"shopping-cart_box--warning__k7w1b","box--danger":"shopping-cart_box--danger__CxkXv","box--dark":"shopping-cart_box--dark__0BDns","box--light":"shopping-cart_box--light__qdwz4","box-content":"shopping-cart_box-content__BtTcx",blue:"shopping-cart_blue__x_yKX","box-title":"shopping-cart_box-title__hxRRl","sale-banner--volt":"shopping-cart_sale-banner--volt__ocdPH","sale-banner--black":"shopping-cart_sale-banner--black__1nt49","sale-banner--vm_purple":"shopping-cart_sale-banner--vm_purple__vweih","sale-banner--tertiary":"shopping-cart_sale-banner--tertiary__icJka","sale-banner--red":"shopping-cart_sale-banner--red__kDZTM","sale-banner--primary":"shopping-cart_sale-banner--primary___sHcm","sale-banner--blue":"shopping-cart_sale-banner--blue__3K8oz","sale-banner--info":"shopping-cart_sale-banner--info__7WXcS","sale-banner--secondary":"shopping-cart_sale-banner--secondary__gz8qq","sale-banner--green":"shopping-cart_sale-banner--green__u4IU7","sale-banner--success":"shopping-cart_sale-banner--success__HFBYz","sale-banner--onyx":"shopping-cart_sale-banner--onyx__tQIqd","sale-banner--warning":"shopping-cart_sale-banner--warning__5KEND","sale-banner--danger":"shopping-cart_sale-banner--danger__wfMcA","sale-banner--dark":"shopping-cart_sale-banner--dark__SpoHU","sale-banner--light":"shopping-cart_sale-banner--light__c4oyi","add-to-basket-volt":"shopping-cart_add-to-basket-volt__FeaVx","button-close":"shopping-cart_button-close__u8vzh"}},88798:e=>{e.exports={"tabs-container":"tv-channel-tabs_tabs-container__7ZfQO","tabs-wrapper":"tv-channel-tabs_tabs-wrapper__nA8AN",tabs:"tv-channel-tabs_tabs__EcA_t",tabs__carousel:"tv-channel-tabs_tabs__carousel__XIN2O",tab:"tv-channel-tabs_tab__dWPAX","tab--active":"tv-channel-tabs_tab--active__i
83IRo7","tab-content":"tv-channel-tabs_tab-content__uS1Rb","arrow-left":"tv-channel-tabs_arrow-left__KVRjQ","arrow-right":"tv-channel-tabs_arrow-right__yfxhL","arrow-left--visible":"tv-channel-tabs_arrow-left--visible__DTrKE","arrow-right--visible":"tv-channel-tabs_arrow-right--visible__aaPan"}},88972:(e,t,r)=>{"use strict";r.d(t,{F:()=>l});var n=r(95155),o=r(12572),i=r(51073),a=r(82567),s=r(9759);let l=({isSelected:e,onToggle:t})=>(0,n.jsx)(s.r,{variant:"light",onClick:t,active:e,icon:(0,n.jsx)(i.I,{icon:e?o.CX1:o.ajm}),width:"full-width",children:(0,n.jsx)(a.E,{color:"inherit",children:e?"Remove":"Add"})})},89534:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShoppingCartByob:()=>Z});var n=r(95155),o=r(73321),i=r(12115),a=r(94714),s=r(54505),l=r(18401),c=r(71505),d=r(51073),u=r(82567),_=r(82849),p=r(65305),m=r(69839),h=r(51970),b=r(67526),g=r(32694),f=r(18829),x=r(92455),v=r(32493);let y=["netflix_disney_enrol","netflix_enrol","disney_enrol","netflix_interest","disney_interest"],j=e=>e.productGroup?.some(e=>y.includes(e))??!1;var w=r(13339),N=r(45772),k=r(13941),E=r(29722),S=r(88454),T=r(65805),C=r.n(T);function A({...e}){return(0,n.jsx)(S._s.Root,{"data-slot":"drawer",...e})}function I({...e}){return(0,n.jsx)(S._s.Portal,{"data-slot":"drawer-portal",...e})}function P({...e}){return(0,n.jsx)(S._s.Close,{"data-slot":"drawer-close",...e})}function M({className:e,...t}){return(0,n.jsx)(S._s.Overlay,{"data-slot":"drawer-overlay",className:(0,E.A)(C()["drawer-overlay"],e),...t})}function O({className:e,children:t,...r}){return(0,n.jsxs)(I,{"data-slot":"drawer-portal",children:[(0,n.jsx)(M,{}),(0,n.jsxs)(S._s.Content,{"data-slot":"drawer-content",className:(0,E.A)(C()["drawer-content"],e),...r,children:[(0,n.jsx)("div",{className:C()["drawer-content__notch"]}),t]})]})}function B({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"drawer-header",className:(0,E.A)(C()["drawer-header"],e),...t})}function L({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"drawer-footer",className:(0,E.A)(C()["drawer-footer"],e),...t})}function D({className:e,...t}){return(0,n.jsx)(S._s.Title,{"data-slot":"drawer-title",className:(0,E.A)(e),...t})}function R({className:e,...t}){return(0,n.jsx)(S._s.Description,{"data-slot":"drawer-description",className:(0,E.A)(e),...t})}var F=r(38198),V=r(53823),$=r(30710),z=r(63919),U=r.n(z);let H=({title:e,note:t,price:r,fullPrice:o,showFrom:i,noSpacing:a,hidePrice:s})=>(0,n.jsxs)(c.N,{justify:"between",padding:a?void 0:"sm 0",width:"100%",className:(0,E.A)(U()["drawer__line-item"],a&&U()["drawer__line-item--no-spacing"]),children:[(0,n.jsxs)("div",{children:["string"==typeof e?(0,n.jsx)(u.E,{weight:"bold",children:e}):e,t&&(0,n.jsx)(u.E,{size:"T200",className:U().drawer__note,children:t})]}),!s&&(0,n.jsxs)(u.E,{size:"T200",weight:"light",children:[i&&"From","\xa0",o&&(0,n.jsx)(u.E,{as:"span",className:U()["drawer__full-price"],children:(0,$.a7)(o)}),(0,n.jsx)(u.E,{as:"span",weight:"bold",children:(0,$.a7)(r)})]})]});var G=r(89684);let q=(e,t)=>{var r;let o,i;if(!t?.blok)return null;let a=t.blok.content.byob_content?.content,s=a?.title,l=(r=a?.description,(r?.content??[]).filter(e=>"bullet_list"===e.type).flatMap(e=>e.content??[]).flatMap(e=>e.content??[]).flatMap(e=>e.content??[]).filter(e=>"text"===e.type&&e.text).map(e=>e.text))?.[0],c=(0,G.s)(a?.is_addon?1:e.mainProducts.contractTerm);return e.flex?(o=e.flex.prices?.find(e=>e.chargeType===p.e$.RECURRING_CHARGE)?.price.amount,i=!1):t?.inferredDeltaPrice?.display&&(o=t.inferredDeltaPrice.total[0]?.amount,i=t.inferredDeltaPrice.from),(0,n.jsx)(H,{title:(0,n.jsxs)(u.E,{className:U().drawer__note,children:[(0,n.jsx)(u.E,{as:"span",weight:"bold",children:s})," ","with ",l]}),note:c,price:o,showFrom:i},t?.productCode)},W=(e,t)=>t.filter(e=>e.blok).filter(e=>e.inferredDeltaPrice?.display===void 0||e.inferredDeltaPrice?.display).map(t=>{let r,o=(0,v.xU)(t.blok?.content),i=(0,G.s)(t.contract?.term),a=t.prices?.find(e=>e.chargeType===p.e$.RECURRING_CHARGE)?.price.amount;return t.inferredDeltaPrice?.display&&(i=(0,G.s)(e.basket?.basketPricing?.contract?.term),a=t.inferredDeltaPrice.total[0].amount,r=t.inferredDeltaPrice.from),(0,n.jsx)(H,{title:o,note:i,price:a,showFrom:r}
83,t.productCode)}),Y=e=>{let t=e?.display_name?.content;return t?(0,v.gm)(t):""},K=(e,t={})=>{let r=e=>{let r=t[e.originalProductCode??e.productCode],n=e.productGroup?.includes("netflix_disney_enrol")?v.xU:Y;return n(r?.content)||n(e.blok?.content)||e.productName||""},o=e.filter(e=>e.contract?.term===24),i=o.find(e=>e.productGroup?.includes("netflix_disney_enrol"));return[...(i?[i]:o).map(e=>{let t=!!e.productGroup?.includes("netflix_enrol"),o=e.prices?.find(e=>e.chargeType===p.e$.RECURRING_CHARGE),i=o?.price?.amount,a=o?.priceAfterDiscount?.amount,s=!!a&&a!==i;return(0,n.jsx)(H,{title:r(e),note:(0,G.s)(24),fullPrice:!t&&s?i:void 0,price:a??i},e.productCode)}),...e.filter(e=>e.contract?.term===1).map(e=>(0,n.jsx)(H,{title:r(e),note:"We'll email you with the details of the service once you've completed your order.",hidePrice:!0},e.productCode))]},Q=(e,t)=>{let r=(0,v.xU)(t.blok?.content),o=t.blok?.content.speed_profile,i=(0,G.s)(e.mainProducts.contractTerm),a=[`${o?.content?.display_speed} Mbps`].concat(e.hasNetflix?["Includes Netflix"]:[]).concat([i]).join(" | "),s=(0,n.jsxs)(u.E,{size:"T200",children:[(0,n.jsx)(u.E,{as:"span",size:"T300",weight:"bold",children:r.split(" ")[0]})," ",r.split(" ").slice(1).join(" ")]});return{productName:r,note:a,title:s}},Z=()=>{let{open:e,setOpen:t}=(0,k.b)(),r=(0,F.G)(),{basket:y}=(0,h.D)(),E=(0,o.useRouter)(),{steps:{current:S},intentType:T,storyblokProducts:C,customisations:I}=(0,i.useContext)(b.ByobContext);if(!y?.basketPricing||!S)return null;let M=(0,V.yj)(y),$=(0,V.sl)(y),z=(0,x.x)(y?.basketPricing),Y="tv"===T&&"Confirmed"===y.basketPricing.commitmentState,Z="broadband"===T||Y,{hasSetupFees:X,setupCharges:J}=(0,w.x)(y),ee=!I?.addOns?.some(e=>e.display_groups?.includes("netflix_enrol"))&&M.products?.some(e=>e.productGroup?.includes("netflix_enrol")),et=y?.basketPricing?.totalMonthlyCosts?.total?.[0]?.amount,er=y?.basketPricing?.products?.some(e=>e.inferredDeltaPrice?.display&&e.inferredDeltaPrice.from),en=($.products||[]).filter(j),eo=($.products||[]).filter(e=>!e.productDisplayGroup?.includes("tv_boxes")&&!e.productDisplayGroup?.includes("streamtv")&&!j(e)),ei=($.products||[]).filter(e=>e.productDisplayGroup?.includes("streamtv"))?.[0],ea=M.products?.find(e=>e.blok?.content.product_type?.toLowerCase()===p.po.TV&&!j(e))??ei,es=M.products?.find(e=>e.blok?.content.product_type?.toLowerCase()===p.po.BROADBAND),el=($.products||[]).filter(e=>e.productDisplayGroup?.includes("tv_boxes")),ec={basket:y,mainProducts:M,addOnsProducts:$,flex:ei,hasNetflix:ee,showFromTotal:er,currentStep:S},ed=("tv"===T?[!ec.flex?.inferredDeltaPrice?.display?null:(0,n.jsx)(H,{title:"Broadband",note:(0,G.s)(ec.mainProducts.contractTerm),price:ec.flex.inferredDeltaPrice?.total[0].amount,showFrom:ec.flex.inferredDeltaPrice?.from},"flex-base-product"),q(ec,ea),K(en,C),S>=g._3.TV_CHANNELS?W(ec,eo):null,((e,t)=>{if(!t?.blok||!t.inferredDeltaPrice?.display)return null;let{title:r,note:o}=Q(e,t);return(0,n.jsx)(H,{title:r,note:o,price:t.inferredDeltaPrice?.total[0]?.amount},t.productCode)})(ec,es),((e,t)=>{if(0===e.length||t<g._3.STREAM_BOXES)return null;let r=`${e.length} additional streaming box${e.length>1?"es":""}`,o=e.reduce((e,t)=>{let r=t.prices?.find(e=>e.chargeType===p.e$.RECURRING_CHARGE);return e+parseInt(r?.price.amount??"0",10)},0).toString();return(0,n.jsx)(H,{title:(0,n.jsx)(u.E,{size:"T200",weight:"bold",children:"Stream"}),note:r,price:o})})(el,S)]:[((e,t)=>{if(!t?.blok)return null;let{title:r,note:o}=Q(e,t);return(0,n.jsx)(H,{title:r,note:o,price:e.basket.basketPricing?.totalMonthlyCosts?.vmBundle?.[0]?.amount},t.productCode)})(ec,es),q(ec,ea),W(ec,eo),K(en,C)]).flat().filter(Boolean),eu=ed.length;return(0,n.jsx)(A,{open:e===p.Qb.SHOPPING_CART,onOpenChange:e=>t({open:e?p.Qb.SHOPPING_CART:p.Qb.NONE}),direction:r?"right":"bottom",children:(0,n.jsxs)(O,{children:[(0,n.jsx)(R,{className:"srOnly",children:"Shopping cart contents"}),(0,n.jsx)(B,{className:U()["drawer-header"],children:(0,n.jsxs)(c.N,{direction:"row",justify:"between",children:[(0,n.jsxs)(c.N,{align:"center",gap:"sm",children:[(0,n.jsx)(d.I,{icon:a.QcO,size:"lg"}),(0,n.jsx)(D,{asChild:!0,children:(0,n.jsxs)(u.E,{weight:"bold",as:"h2",children:["Summary (",eu,")"]})})]}),(0,n.jsx)(P,{asChild:!0,children:(0,n.jsx)(l.$,{className:U()["drawer-close"],children:(0,n.jsx)(d.I,{icon:a.dQv,size:r?"lg":"md"})})})]})}
83),(0,n.jsxs)("div",{className:U()["drawer-content"],children:[ed,(0,n.jsx)(c.N,{direction:"column",grow:1,justify:"end",margin:"sm 0 0 0",children:(0,n.jsxs)(c.N,{gap:"xs",direction:"column",padding:"sm",className:U().drawer__total,children:[(0,n.jsx)(s.e,{margin:"0 0 4px 0",children:(0,n.jsx)(H,{title:"Monthly total",price:et,showFrom:er,noSpacing:!0})}),(0,n.jsx)(u.E,{size:"T200",className:U().drawer__note,children:z.map((e,t)=>e&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})," "]},`${e}${t}`))})]})})]}),(0,n.jsxs)(L,{className:U()["drawer-footer"],children:[(0,n.jsx)(u.E,{weight:"bold",children:"One-off fees"}),Object.entries(J).map(([,e])=>e&&Object.entries(e).map(([e,{price:t,blok:r,productGroup:o}])=>o?.includes("hub")&&!Z?null:(0,n.jsx)(H,{title:(0,n.jsx)(u.E,{size:"T200",children:(0,v.gm)(r?.content.uf_display_name?.content.length?r?.content.uf_display_name?.content:r?.content.display_name?.content)}),price:t.toString(),noSpacing:!0},e))),(0,n.jsx)(c.N,{direction:"column",grow:1,justify:"end",margin:"sm 0 0 0",children:(0,n.jsxs)(c.N,{gap:"xs",direction:"column",padding:"sm",className:U().drawer__total,children:[(0,n.jsx)(s.e,{margin:"0 0 4px 0",children:(0,n.jsx)(H,{title:"One-off total",price:y.basketPricing.totalOneOffCost?.find(e=>"OneOffPayLater"===e.chargeType)?.amount,noSpacing:!0})}),(0,n.jsx)(u.E,{size:"T200",className:U().drawer__note,children:"Added to your first bill"})]})}),Z&&(0,n.jsx)(s.e,{margin:"sm 0 0 0",padding:"xs 0 0 0",children:(0,n.jsx)(P,{asChild:!0,children:(0,n.jsx)(l.$,{variant:"secondary",width:"full-width",onClick:()=>{let e,t,r;(0,f.A)(m.bk.BASKET,{event_name:m.qy.BASKET_CHECKOUT,eventAction:m.hh.BASKET_CHECKOUT,event_params:{button_label:"continue"}}),_.A.get("premiseId"),_.A.get("basketId"),`${_.A.get("postcode")}`.replace(" ",""),e=window.location.origin,t=(0,N.m)(e),r=`${t}/buy/init-checkout${X?"":"?apm=1"}`,E.push(r)},children:(0,n.jsx)(u.E,{weight:"bold",color:"light",children:"Checkout"})})})})]})]})})}},89585:(e,t,r)=>{"use strict";r.d(t,{ByobSelectedProductGuard:()=>c});var n=r(95155),o=r(12115),i=r(19264),a=r(51970),s=r(67526),l=r(32694);let c=({children:e})=>{let{basket:t}=(0,a.D)(),{validBundles:r,intentType:c,isFlexJourney:d,steps:u}=(0,o.useContext)(s.ByobContext),_=r.some(e=>e?.msaBundle.bundleId===t?.basketPricing?.bundleId);return"broadband"!==c||u.current!==l.Al.TV||d?_?e:null:(0,n.jsx)(i.BasketLoaderTrigger,{children:e})}},89635:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(80495);let o=(e,t=!0)=>{(0,n.A)(()=>{let r=()=>{e(window.innerWidth)};return t&&r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}})}},89650:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(95155),o=r(12115),i=r(95819),a=r(85592);let s=function({icon:e,offset:t,formattedTarget:r,conditional:s,label:l,remainingProps:c}){let d=(0,o.useContext)(a.s);return s&&d.allowPostcodeCapture?null:(0,n.jsx)(i.ScrollToButton,{icon:e,offset:+t,target:r,...c,children:l})}},89684:(e,t,r)=>{"use strict";function n(e,t=!0){let r=t?"-":" ";return 1===e?`30${r}day contract`:`${e}${r}month contract`}r.d(t,{s:()=>n})},91240:e=>{e.exports={AddressList:"address-capture_AddressList__AwIyl","AddressList--mobile-centered":"address-capture_AddressList--mobile-centered___q_zn",icon:"address-capture_icon__INynC",errorContainer:"address-capture_errorContainer__DaArw",errorMessage:"address-capture_errorMessage__i1HHH",errorMessageLink:"address-capture_errorMessageLink__I9PcW",loaderContainer:"address-capture_loaderContainer__mJHSU",AvailabilityForm:"address-capture_AvailabilityForm__rGK20",submit:"address-capture_submit__uPOza","not-shown-link":"address-capture_not-shown-link__oiTg7","postcode-checker_address_heading__container":"address-capture_postcode-checker_address_heading__container__7hrmd","postcode-checker__address-content-container":"address-capture_postcode-checker__address-content-container__gvXl5"}},91329:(e,t,r)=>{"use strict";r.d(t,{FiltersProvider:()=>s,Y:()=>c});var n=r(95155),o=r(12115),i=r(22116);let a=(0,o.createContext)(void 0),s=({children:e})=>{let[t,r]=(0,o.useState)(),[s,l]=(0,o.useState)({"":[]}),[c,d]=(0,i.M)({"":{total:0,visible:0}}),[u,_]=(0,o.useState)([]),p=(0,o.useCallback)(e=>{let t=Object.entries(e).reduce((e,[t,r])=>({...e,[t]:r}),{});d({...c(),...t})},[c,d]),m=c(),h=(0,o.useMemo)(()=>({bundlesFilters:t,setBundlesFilters:r,tvFilters:s,setTvFilters:l,bundlesNr:m,setBundlesNr:p,bundleCounts:u,setBundleCounts:_}),[t,s,m,p,u]);return(0,n.jsx)(a.Provider,{value:h,children:e})},l={bundlesFilters:void 0,setBundlesFilters:()=>{},tvFilters:{"":[]},setTvFilters:()=>{},bundlesNr:void 0,setBundlesNr:()=>{},bundleCounts:[],setBundleCounts:()=>{}},c=()=>(0,o.useContext)(a)??l},91369:(e,t,r)=>{"use strict";r.d(t,{ProductCards:()=>tu});var n,o,i,a,s,l,c,d,u=r(95155),_=r(12115),p=r(69839),m=r(86089),h=r(91329),b=r(76537),g=r(85592),f=r(18829),x=r(15355),v=r(97771),y=r(89810),j=r(89839),w=r(29722),N=r(2083),k=r.n(N);let E=({onClick:e})=>{let{selectedBundles:t,limit:r}=(0,m.$0)(),[n,o]=(0,_.useState)(!1),i=(0,_.useRef)(t.length);return(0,_.useEffect)(()=>{i.current>=0&&t.length>i.current&&o(!0),i.current=t.length},[t.length]),(0,u.jsxs)(j.ModalTrigger,{className:(0,w.A)(k().wrapper,k().button),onClick:e,children:[(0,u.jsx)("span",{className:(0,w.A)(k().pulseBg,n&&k().animate),onAnimationEnd:()=>o(!1)}),(0,u.jsxs)("span",{className:k().content,children:["Compare ",t.length,"/",r]})]})};
83var S=r(28877),T=r(94714),C=r(18401),A=r(11241),I=r(58767),P=r(38119),M=r(51073),O=r(82567);let B=(e,t)=>t.reduce((e,t)=>e?.[t]===void 0?void 0:e[t],e);var L=r(66649),D=r(99916),R=r(71505),F=r(65305),V=r(30710),$=r(99852),z=r(32493),U=r(92790),H=r(54046),G=r(70186),q=r(5344),W=r(34048),Y=r.n(W),K=r(96653),Q=r(47277),Z=r(52911),X=r(24646),J=r(29081),ee=r(42625),et=r.n(ee);let er=({discounted:e,discountedPeriod:t=1,afterPeriodPrice:r,priceChanges:n,className:o,forceMobile:i=!1,initialBillSplitAmount:a,showBillSplit:s,isProductInfo:l,dailyTldPrice:c,cancellationInfo:d,contractTerm:_})=>{let[p,m]=e.split("."),h=(0,J.Og)("product-card-horizontal-price","discounted-main-price-tile","price-split-drawer","daily-cost","cancellation-info-link","contract-term"),b=(0,X.useDailySplitter)();return(0,u.jsxs)(R.N,{justify:"between",direction:"column",gap:"xs",className:(0,w.A)({[et().price]:!0,[`${o}`]:o,"force-mobile":i,[et()["price-column"]]:!0}),...h["product-card-horizontal-price"],children:[(0,u.jsxs)(R.N,{direction:"column",align:"start",className:et()["price-container"],children:[(0,u.jsxs)(O.E,{as:"span",size:"T600",weight:"heavy",className:et()["price-main"],...h["discounted-main-price-tile"],children:[`\xa3${p}`,m&&"00"!==m&&(0,u.jsxs)(O.E,{as:"span",size:"T200",weight:"heavy",className:et()["price-decimals"],children:[".",m]}),(0,u.jsx)(O.E,{as:"span",size:"T200",weight:"bold",children:t>1?(0,u.jsxs)(u.Fragment,{children:["\xa0for ",t," months*"]}):(0,u.jsx)(u.Fragment,{children:"\xa0a month"})})]}),r&&(0,u.jsxs)(O.E,{as:"span",size:"T200",weight:"regular",children:["then ",(0,V.a7)(r)," a month"]}),!0===s&&a&&a>0?(0,u.jsxs)(O.E,{...h["price-split-drawer"],size:"T200",color:"info",className:l?et()["price-split-drawer"]:et()["price-split"],children:[(0,V.a7)(a)," per person"]}):null,b&&c?(0,u.jsxs)(O.E,{size:"T200",color:"info",className:`${et()["price-split"]}`,...h["daily-cost"],children:[(0,V.a7)(c)," per day"]}):null]}),n&&n.length>0&&n.map((e,t)=>e&&(0,u.jsx)(O.E,{"data-testid":"price-changes",className:`${et()["price-increase"]} price-increase`,as:"span",size:"T200",weight:"light",children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:e.replace(/\.$/,"").replace(/£\d+(?:\.\d{2})?/g,"<b>$&</b>")}},e)},`${e}${t}`)),_&&(0,u.jsx)(O.E,{as:"span",size:"T200",weight:"bold",...h["contract-term"],children:_}),d?.title&&d.content&&(0,u.jsx)("div",{...h["cancellation-info-link"],children:(0,u.jsx)(Q.o,{title:d.title,text:(0,u.jsx)("div",{className:et()["cancellation-info"],children:(0,u.jsx)(Z.S,{document:d.content,StoryblokComponent:K.Dp})}),children:(0,u.jsx)(O.E,{as:"span",size:"T200",color:"inherit",children:"Cancellation rights apply"})})})]})};var en=r(5772),eo=r(60513),ei=r(67270),ea=r(81269),es=r.n(ea);let el=({photos:e,title:t,description:r,logo:n,orientation:o,rounded:i})=>{let a=e.filter(e=>e.productType&&e.productType!==F.po.NONPRODUCT),s=(0,ei.G)(n?{filename:n}:void 0);return(0,u.jsx)(u.Fragment,{children:a.map(({vertical:e,horizontal:n,_uid:i})=>{let a;return a="horizontal"===o?[n]:"vertical"===o?[e]:[e,n],(0,u.jsx)(_.Fragment,{children:a.map((e,n)=>(0,u.jsx)("div",{className:(0,w.A)(es()["media-bundle__wrapper"],{[es()["media-bundle__wrapper--horizontal"]]:"horizontal"===o||1===n,[es()["media-bundle__wrapper--fixed-orientation"]]:!!o}),children:(0,u.jsxs)("div",{className:es()["media-bundle__img-wrapper"],...(0,J.sE)("product-card-horizontal-bundle-image",null),children:[(0,u.jsx)(en.default,{loading:"eager",alt:e?.alt??"",src:e?.src??"",width:264,height:212}),(0,u.jsxs)("div",{className:es()["media-bundle__content-wrapper"],children:[s?(0,u.jsx)(eo.W,{src:s.src,width:s.width,height:s.height,alt:`Channel logo: ${s.alt??""}`,className:es()["media-bundle__logo-wrapper"]}):null,t&&(0,u.jsx)(O.E,{color:"light",className:es()["media-bundle__title"],children:t}),r&&(0,u.jsx)(O.E,{color:"light",className:es()["media-bundle__description"],children:r})]})]})},e?.src.toString()))},i)})})},ec=({sbBundle:e,msaBundle:t,bundle:r})=>{let n=e?.slug,{toggleSelection:o}=(0,m.Ji)();try{let i=(0,G.M)(e),a=(0,H.gN)(i),s=e.content.display_name?.content?.[0]?.content?.[0]?.text||e.name,l=(0,z.uM)(s,a,!!t?.journeyTypes?.includes("Stream")),c=l.find(e=>e.productType===F.po.TV),d=l.find(e=>e.productType===F.po.BROADBAND),_=c??d,p=(0,U.C)(a,s),{tldPricing:m,oneOffPayNowCharges:h,priceChanges:b,setupFees:g}=(0,S.O)(t),f=(0,$.q)(e,void 0,m),x=(0,$.r)(e,t);return(0,u.jsxs)(D.Zp,{"data-testid":"product-card",className:(0,w.A)(Y()["product-card-container"],Y()["product-card"],f),padding:"md 0",rounded:"lg",justify:"between",...x,children:[(0,u.jsxs)(R.N,{justify:"start",direction:"column",style:{padding:0,margin:0},children:[(0,u.jsx)(O.E,{size:"T400",weight:"bold",className:(0,w.A)(Y()["product-card-title"]),children:s}),(0,u.jsx)(el,{orientation:"vertical",photos:p,title:_?.mediaTitle,de
83scription:_?.mediaDescription,logo:_?.mediaLogo})]}),(0,u.jsx)(er,{discounted:m?.pricing.timeLimitedTotal,discountedPeriod:m.pricing.discountedTld?.afterDurationInMonths,afterPeriodPrice:m.pricing.discountedTld?.amount,regular:m?.pricing.regular,priceChanges:b,showBillSplit:!1,initialBillSplitAmount:m.initialBillSplitAmount}),(0,u.jsxs)(R.N,{gap:"sm",direction:"column",className:(0,w.A)(Y()["product-action-container"]),children:[(0,u.jsx)(P.d,{}),(0,u.jsx)("div",{className:Y()["product-action-button"],children:(0,u.jsx)(q.F,{layout:"landscape",className:(0,w.A)(Y()["add-to-basket"]),id:n,customisation:!1,hasOneOffPayNowCharges:!!h?.length,bundle:t,blok:e})}),(0,u.jsxs)(A.s,{align:"center",justify:"center",direction:"column",children:[(0,u.jsxs)(v.M,{size:"sm",decoration:"hover",onClick:()=>{o({id:n,bundle:r})},className:(0,w.A)(Y()["remove-bundle-link"]),style:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,u.jsx)("img",{alt:"remove bundle",src:"https://a.storyblok.com/f/329767/32x32/f0ef6f64da/trash.png",className:(0,w.A)(Y()["remove-bundle-img"])}),(0,u.jsx)(O.E,{size:"T300",className:(0,w.A)(Y()["remove-bundle-text"]),children:"Remove bundle"})]}),g&&Object.entries(g).filter(([,{amount:e}])=>e>0).map(([e,{text:t,amount:r}])=>(0,u.jsxs)(O.E,{size:"T300",weight:"regular",children:[(0,V.a7)(r)," ",t]},e))]})]})]},t.bundleId)}catch(e){return console.warn(`${e}`),null}};var ed=((n={}).PROMOTIONS="Promotions",n.VM_PRICE="vm-price",n.O2_PRICE="o2-price",n.O2_CONTRACT_LENGTH="o2-contract-length",n.VM_CONTRACT_LENGTH="vm-contract-length",n.BROADBAND_SPEED="broadband-speed",n.TV="tv",n.LANDLINE_PLAN="landline-plan",n.O2_SIM="o2-sim",n.VOLT_BENEFITS="volt-benefits",n.EXTRA_BENEFITS="extra-benefits",n),eu=((o={}).VM_PRICE_PER_MONTH="vm-price_per_month",o.VM_PRICE_RAISE="vm-price_raise",o.VM_SETUP_FEE="vm-setup_fee",o.O2_PRICE_PER_MONTH="o2-price_per_month",o.O2_PRICE_RAISE="o2-price_raise",o.O2_CONTRACT_LENGTH_MONTHS="o2-contract-length-months",o.O2_EXTRA_PRIORITY="o2-extra-priority",o.BROADBAND_SPEED_WIFI_HUB="broadband-speed-wifi-hub",o.BROADBAND_SPEED_INTELLIGENT_WIFI_TECH="broadband-speed-inetilligent-wifi-tech",o.BROADBAND_SPEED_AVERAGE_DOWNLOAD_SPEED="broadband-speed-average_download_speed",o.BROADBAND_SPEED_AVERAGE_UPLOAD_SPEED="broadband-speed-upload-speed",o.TV_CHANNELS="tv-channels",o.TV_SKY_SPORTS="tv-sports",o.TV_SKY_CINEMA="tv-sky-cinema",o.TV_NETFLIX_STANDARD_WITH_ADVERTS="tv-netflix-standard-with-adverts",o.SIM_O2_CLASSIC_PLAN_SIM="O2 Classic Plan SIM",o.SIM_GB_DATA="sim-gb-data",o.SIM_UNLIMITED_MINS_AND_TEXT="sim-unlimited-mins-and-text",o.PRIORITY_FROM_O2="Priority from O2",o.VOLT_BENEFITS_BOOSTED_BROADBAND_SPEED="volt-benefits-boosted-broadband-speed",o.VOLT_BENEFITS_DOUBLE_DATA="volt-benefits-double-data",o.VOLT_WIFI_GUARANTEE="volt-benefits-wifi-guarantee",o.VOLT_O2_TRAVEL_INCLUSIVE_ZONE="volt-benefits-travel-inclusive-zone",o.PROMOTIONS_OFFERS="promotions-offers",o.PHONE_WEEKEND_CHATTER="weekend-chatter",o.PHONE_ANYTIME_CHATTER="anytime-chatter",o.VM_CONTRACT_LENGTH_MONTHS="vm-contract-length-months",o);let e_=["content","uf_description","content",0,"content"],ep=["content","uf_description","content",0,"content"],em=["content","uf_display_name","content",0,"content",0,"text"],eh=["promotion","content","promotion_text","content",0,"content",0,"content",0,"content",0,"text"];var eb=((i=eb||{}).VIRGIN_MEDIA_WIFI_HUB="VIRGIN MEDIA WIFI HUB",i.INTELLIGENT_WIFI="INTELLIGENT WIFI",i.AVERAGE_UPLOAD_SPEED="AVERAGE UPLOAD SPEED",i.AVERAGE_DOWNLOAD_SPEED="AVERAGE DOWNLOAD SPEED",i);let eg=(e,t)=>{let r=e.find(e=>e.includes(t));return r?.replace(t,"").trim().replace("MBPS","Mbps")},ef=(e,t)=>e.some(e=>e.startsWith(t));var ex=((a=ex||{}).ROLLING_CONTRACT="30 day rolling contract",a.MONTH_CONTRACT="",a),ev=((s=ev||{}).ANYTIME_CHATTER="ANYTIME CHATTER",s.WEEKEND_CHATTER="WEEKEND CHATTER",s),ey=((l=ey||{}).O2_CLASSIC_PLAN_SIM="SIM",l.GB_DATA="GB",l.PLAN="PLAN",l.UNLIMITED_DATA="UNLIMITED DATA",l.UNLIMITED="UNLIMITED",l.MINUTES="MINUTES",l.CALLS="CALLS",l.TEXTS="TEXTS",l.DATA="DATA",l),ej=((c=ej||{}).TV_CHANNEL="TV channels",c.SPORTS="sports",c.MOVIES="movies",c.NETFLIX="netflix",c),ew=((d=ew||{}).ROLLING_CONTRACT="30 day rolling contract",d.MONTH_CONTRACT="month contract.",d);let eN=e=>{if(null==e)return"\xa30";let[t,r]=e.toString().split(".");return r?`\xa3${t}.${r}`:`\xa3${t}`};function ek(e=[],t=[]){return e.map(e=>{let r=B(e,t)??[];if(!Array.isArray(r)||0===r.length)return;let n=r.length>1?r.find(e=>e?.marks===void 0):r[0];return n?.text?.trim().toUpperCase()}).filter(e=>!!e)}var eE=r(12572),eS=r(82808),eT=r.n(eS);function eC({field:e}){let{label:t,labelIcon:r,labelImageUrl:n}=e;return(0,u.jsxs)(A.s,{direction:"row",className:eT()["field-container"],children:[n?(0,u.jsx)("img",{alt:"labelIcon",className:eT()["label-image"],src:n}):null,t?(0,u.jsxs)(O.E,{className:eT().fieldLabel,size:"T300",children:[r?(0,u.jsx)(M.I,{size:"md",color:"grey",icon:r,className:eT()["label-icon"]}):null,(0,u.jsx)("span",{className:eT()["label-text"],children:t})]}):null]})}function eA({bundles:e,field:t,sectionName:r,isDesktop:n}){return(0,u.jsxs)(u.Fragment,{children:[!n&&(0,u.jsx)(eC,{field:t}),(0,u.jsxs)(I.x,{sm:"2",md:"2",lg:e.length>0?"4":"3",children:[n&&(0,u.jsx)(eC,{field:t}),e.map(e=>{var n;let o=Array.isArray(n=e.sections?.[r]?.[t.name]?.value)?n.length?(0,u.jsx)(u.Fragment,{children:n.map(e=>(0,u.jsx)("li",{style:{listStyle:"none"},children:(0,u.jsx)(O.E,{size:"T300",weight:"medium",children:e})},e))}):(0,u.jsx)(M.I,{icon:eE.VtD}):"string"==typeof n?(0,u.jsx)(O.E,{size:"T300",weight:"medium",children:n.trim()||(0,u.jsx)(M.I,{icon:eE.VtD})}):"boolean"==typeof n&&n?(0,u.jsx)(M.I,{icon:eE.U6d}):null;return(0,u.jsx)("div",{className:eT().cell,children:o?(0,u.jsx)(O.E,{as:"span",weight:"light",size:"T200",align:"center",children:o}):(0,u.jsx)(M.I,{icon:eE.VtD})},e.msaBundle.bundleId)})]})]})}function eI({onClose:e,isFooter:t,isDesktop:r}){return(0,u.jsxs)("div",{className:eT()["empty-bundle-action-container"],children:[!t&&(0,u.jsx)("div",{className:eT()["empty-bundle-card"],children:"No bundle selected"}),(0,u.jsx)(P.d,{}),(0,u.jsx)("div",{className:eT()["empty-bundle-action"],style:{marginBottom:7*!t,marginTop:12*!t},children:(0,u.jsxs)(C.$,{onClick:e,decoration:"outline-surface",variant:"primary",width:"full-width",className:eT()["empty-bundle-action-button"],children:[r&&(0,u.jsx)(M.I,{icon:T.mu1,size:"md"}),"Add bundle"]})})]})}function eP({bundles:e,onClose:t,comparisonSectionConfig:r,limit:n}){let o,i=3===n,a=n-e.length,s=(0,_.useRef)(null),l=(0,_.useRef)(null),[c,d]=(0,_.useState)(!1),p=r.filter(({allowedJourneyTypes:t,name:r})=>0===t.length||e.some(({msaBundle:e,tvChannels:n})=>r===ed.TV&&!!n&&n.length>0||e.journeyTypes?.some(e=>t.includes(e.toUpperCase())))),m=(o={[ed.BROADBAND_SPEED]:({products:e})=>{let t,r;return r=ek(Array.isArray(t=B(e.find(({content:e})=>e?.product_type===F.pu.BROADBAND),e_))?t:[],["content",0,"content"]).filter(e=>"string"==typeof e).map(e=>e.toUpperCase()),{[eu.BROADBAND_SPEED_WIFI_HUB]:ef(r,"VIRGIN MEDIA WIFI HUB"),[eu.BROADBAND_SPEED_INTELLIGENT_WIFI_TECH]:ef(r,"INTELLIGENT WIFI"),[eu.BROADBAND_SPEED_AVERAGE_
83UPLOAD_SPEED]:eg(r,"AVERAGE UPLOAD SPEED"),[eu.BROADBAND_SPEED_AVERAGE_DOWNLOAD_SPEED]:eg(r,"AVERAGE DOWNLOAD SPEED")}},[ed.PROMOTIONS]:({flashSales:e})=>({[eu.PROMOTIONS_OFFERS]:(e&&B(e,eh))??""}),[ed.VOLT_BENEFITS]:({products:e})=>{let t;return(t=e.find(e=>e?.content?.product_type===F.pu.NON_PRODUCT))&&t?.name==="Volt benefits unlocked"?{[eu.VOLT_BENEFITS_BOOSTED_BROADBAND_SPEED]:!0,[eu.VOLT_BENEFITS_DOUBLE_DATA]:!0,[eu.VOLT_WIFI_GUARANTEE]:!0,[eu.VOLT_O2_TRAVEL_INCLUSIVE_ZONE]:!0}:{[eu.VOLT_BENEFITS_BOOSTED_BROADBAND_SPEED]:!1,[eu.VOLT_BENEFITS_DOUBLE_DATA]:!1,[eu.VOLT_WIFI_GUARANTEE]:!1,[eu.VOLT_O2_TRAVEL_INCLUSIVE_ZONE]:!1}},[ed.O2_SIM]:({products:e})=>{let t,r,n,o,i,a;return r=ek(B(t=e.find(e=>e?.content?.product_type===F.pu.SIM),ep)??[],["content",0,"content"])??[],n=t?.name,o=n?.trim().toUpperCase()??"",i=r.find(e=>e.includes("GB")||e.includes("UNLIMITED")&&e.includes("DATA")),a="",i&&(a=i.includes("UNLIMITED DATA")?"Unlimited":`${i.trim().replace("GB","").replace("DATA","").replace("PLAN","").trim()}GB`),{[eu.SIM_O2_CLASSIC_PLAN_SIM]:o.includes("SIM"),[eu.SIM_GB_DATA]:i?a:void 0,[eu.SIM_UNLIMITED_MINS_AND_TEXT]:r.some(e=>e.includes("UNLIMITED")&&e.includes("TEXTS")&&(e.includes("MINUTES")||e.includes("CALLS")))?"Unlimited":""}},[ed.VM_PRICE]:({productPrice:e})=>{let t,r,n;return t=e?.tldPricing?.pricing?.timeLimitedDiscount??0,r=e?.setupFees?.stream_setup?.amount??0,n=e?.broadbandPriceChanges??[],{[eu.VM_PRICE_PER_MONTH]:`${eN(t)} a month`,[eu.VM_PRICE_RAISE]:n?.map(e=>e.replace(/<[^>]*>/g,"")),[eu.VM_SETUP_FEE]:eN(r)}},[ed.TV]:({products:e,tvChannels:t})=>{let r,n,o;return n=B(r=e.find(({content:e})=>e?.product_type===F.pu.TV),em)??[],o="",o="string"==typeof n?n?.replace("TV channels","")?.trim()||"":r?.name?.replace("TV channels","")?.trim()||"",{[eu.TV_CHANNELS]:o,[eu.TV_NETFLIX_STANDARD_WITH_ADVERTS]:t?.includes("netflix")||!1,[eu.TV_SKY_SPORTS]:t?.includes("sports")||!1,[eu.TV_SKY_CINEMA]:t?.includes("movies")||!1}},[ed.LANDLINE_PLAN]:({products:e})=>{let t,r;return t=e.find(({content:e})=>e?.product_type===F.pu.LANDLINE),r=t?.name?.toUpperCase(),{[eu.PHONE_WEEKEND_CHATTER]:"WEEKEND CHATTER"===r,[eu.PHONE_ANYTIME_CHATTER]:"ANYTIME CHATTER"===r}},[ed.O2_CONTRACT_LENGTH]:({productPrice:e,products:t})=>{let r,n;return r=t?.find(e=>e?.content?.product_type===F.pu.SIM),n=e?.contract?.isRolling?"30 day rolling contract":`${e?.contract?.term} `,{[eu.O2_CONTRACT_LENGTH_MONTHS]:r?n:void 0}},[ed.O2_PRICE]:({productPrice:e})=>{let t,r,n;return t=e?.tldPricing?.simPricing?.amount,r=Array.isArray(e?.simPriceChanges)?e.simPriceChanges.map(e=>e.replace(/<[^>]*>/g,"")):[],n=null!=t&&0!==Number(t),{[eu.O2_PRICE_PER_MONTH]:n?`${eN(t)} a month`:null,[eu.O2_PRICE_RAISE]:r.join(" ")}},[ed.EXTRA_BENEFITS]:()=>({[eu.PRIORITY_FROM_O2]:!0}),[ed.VM_CONTRACT_LENGTH]:({productPrice:e})=>{let t;return t=e?.contract?.isRolling?"30 day rolling contract":`${e?.contract?.term}`,{[eu.VM_CONTRACT_LENGTH_MONTHS]:t}}},e.map(e=>{let{flashSales:t,productPrice:r,tvChannels:n}=e,i=e.sbBundle.content.products??[],a=p.reduce((e,a)=>{let s=o[a.name];s||console.info(`[ ${a.name.toUpperCase()} ] - No resolver found for this section`);let l=s?s({products:i,flashSales:t,productPrice:r,tvChannels:n||[]}):{};return e[a.name]=a.fields.reduce((e,t)=>(e[t.name]={...t,value:l[t.name]},e),{}),e},{});return{...e,sections:a}}));(0,_.useEffect)(()=>{let e=new IntersectionObserver(([e])=>{d(!e.isIntersecting)}),t=l.current;return t&&e.observe(t),()=>{t&&e.unobserve(t),e.disconnect()}},[]);let h=(0,_.useMemo)(()=>{let t=e.map(({sbBundle:e,msaBundle:t})=>{let r=B(e,["content","display_name","content",0,"content",0,"text"])||B(e,["name"]);return{id:t?.bundleId,name:r||"",sbBundle:e,msaBundle:t}});return 0!==a&&Array.from({length:a},()=>{t.push({id:0,name:`empty-${Math.random()}`})}),t},[e]);return(0,u.jsxs)(j.Modal,{width:"full-width",className:eT()["compare-bundle-modal-container"],children:[(0,u.jsxs)(j.ModalHeader,{className:eT()["compare-bundle-modal-container-header"],children:[(0,u.jsx)(j.ModalTitle,{className:eT()["compare-bundle-modal-container-header-title"],children:"Compare bundles"}),(0,u.jsx)(j.ModalCloseButton,{onClick:t,className:eT()["compare-bundle-modal-container-header-close-button"]})]}),c&&(0,u.jsxs)(I.x,{sm:"2",md:"2",lg:h.length>0?"4":"3",className:eT().stickyHeader1,children:[i&&(0,u.jsx)("div",{}),h.map(e=>{if("0"!==e.id.toString())return(0,u.jsxs)("div",{className:eT()["sticky-header-cell"],children:[(0,u.jsx)(O.E,{size:"T400",weight:"bold",children:e.name}),(0,u.jsx)(P.d,{style:{paddingBottom:0,marginBottom:0}})]},e.id)})]}),(0,u.jsxs)(j.ModalBody,{children:[(0,u.jsx)(v.M,{ref:s,onClick:t,icon:(0,u.jsx)(M.I,{icon:T.UxG}),decoration:"hover",iconPosition:"start",children:"Edit selection"}),(0,u.jsxs)(I.x,{sm:"2",md:"2",lg:e.length>0?"4":"3",ref:l,children:[i&&e.length>0&&(0,u.jsx)("div",{}),h.map(e=>{if("0"===e.id.toString())return(0,u.jsx)(eI,{isDesktop:i,onClose:t,isFooter:!1},`empty-bundle-card-${e.name}`);{let{id:t,msaBundle:r,sbBundle:n}=e;return(0,u.jsx)("div",{className:eT().headerCell,children:(0,u.jsx)(ec,{bundle:e,msaBundle:r,sbBundle:n})},t)}})]}),(0,u.jsx)(A.s,{direction:"column",children:p?.map(e=>{let t=e.fields.filter(t=>!m.every(r=>{let n=r.sections?.[e.name]?.[t.name];return n?.value===!1||n?.value===""}));return 0===t.length?null:(0,u.jsxs)(_.Fragment,{children:[(0,u.jsx)("div",{children:(0,u.jsx)(O.E,{className:eT()["section-header"],weight:"bold",children:e.title})}),t.map(t=>
83(0,u.jsx)(eA,{bundles:m,field:t,sectionName:e.name,isDesktop:i},t.name))]},e.name)})}),e.length>0&&(0,u.jsxs)(I.x,{sm:"2",md:"2",lg:e.length>0?"4":"3",children:[i&&e.length>0&&(0,u.jsx)("div",{}),h.map(({id:e,msaBundle:r,sbBundle:n,name:o})=>{if("0"===e.toString())return(0,u.jsx)(eI,{isDesktop:i,onClose:t,isFooter:!0},`empty-bundle-card-${o}`);{let{oneOffPayNowCharges:t}=(0,S.O)(r);return(0,u.jsxs)("div",{children:[(0,u.jsx)(P.d,{}),(0,u.jsx)("div",{className:eT()["add-to-basket-container"],children:(0,u.jsx)(L.AddToBasket,{className:eT()["add-to-basket"],id:r.bundleId||"",customisation:!1,hasOneOffPayNowCharges:!!t?.length,bundle:r,blok:n,layout:"landscape"})})]},e)}})]}),e.length>0&&(0,u.jsx)(A.s,{direction:"column",align:"center",className:eT()["back-to-Top-container"],children:(0,u.jsx)(C.$,{title:"Back to top",variant:"tertiary",onClick:()=>{s.current?.scrollIntoView({behavior:"smooth",block:"start"})},children:"Back to top"})})]})]})}var eM=r(72258),eO=r.n(eM),eB=r(23057),eL=r(21216),eD=r(9378);let eR=[{name:ed.PROMOTIONS,title:"Promotions",fields:[{name:eu.PROMOTIONS_OFFERS,label:"Offers",labelIcon:T.O_N}],allowedJourneyTypes:[F.Lk.BROADBAND,F.Lk.TV]},{name:ed.VM_PRICE,title:"Virgin Media price",fields:[{name:eu.VM_PRICE_PER_MONTH,label:"a month",labelIcon:T.hi_},{name:eu.VM_PRICE_RAISE,label:"Price rise",labelIcon:T.Wl8},{name:eu.VM_SETUP_FEE,label:"Setup fee",labelImageUrl:"https://a.storyblok.com/f/329767/32x32/9338bd45ee/tools.png"}],allowedJourneyTypes:[F.Lk.BROADBAND,F.Lk.TV]},{name:ed.VM_CONTRACT_LENGTH,title:"Virgin Media contract length",fields:[{name:eu.VM_CONTRACT_LENGTH_MONTHS,label:"months",labelIcon:T.cje}],allowedJourneyTypes:[F.Lk.BROADBAND,F.Lk.TV]},{name:ed.O2_PRICE,title:"O2 price",fields:[{name:eu.O2_PRICE_PER_MONTH,label:"a month",labelIcon:T.hi_},{name:eu.O2_PRICE_RAISE,label:"Price rise",labelIcon:T.Wl8}],allowedJourneyTypes:[F.Lk.SIM]},{name:ed.O2_CONTRACT_LENGTH,title:"O2 contract length",fields:[{name:eu.O2_CONTRACT_LENGTH_MONTHS,label:"months",labelIcon:T.cje}],allowedJourneyTypes:[F.Lk.SIM]},{name:ed.BROADBAND_SPEED,title:"Broadband speed",fields:[{name:eu.BROADBAND_SPEED_WIFI_HUB,label:"Virgin Media WiFi Hub",labelIcon:T.ZSb},{name:eu.BROADBAND_SPEED_INTELLIGENT_WIFI_TECH,label:"Intelligent Wifi technology",labelIcon:eL.OX},{name:eu.BROADBAND_SPEED_AVERAGE_DOWNLOAD_SPEED,label:"Average download speed",labelIcon:T.i2J},{name:eu.BROADBAND_SPEED_AVERAGE_UPLOAD_SPEED,label:"Average upload speed",labelIcon:T.xyR}],allowedJourneyTypes:[F.Lk.BROADBAND]},{name:ed.TV,title:"TV",fields:[{name:eu.TV_CHANNELS,label:"TV channels",labelIcon:T.koB},{name:eu.TV_SKY_SPORTS,label:"Sky Sports",labelIcon:eL.Dd},{name:eu.TV_SKY_CINEMA,label:"Sky Cinema",labelIcon:T.T5U},{name:eu.TV_NETFLIX_STANDARD_WITH_ADVERTS,label:"Netflix standard with Adverts",labelImageUrl:"https://a.storyblok.com/f/329767/24x24/affa986954/netflix.svg"}],allowedJourneyTypes:[F.Lk.TV]},{name:ed.LANDLINE_PLAN,title:"Phone",fields:[{name:eu.PHONE_WEEKEND_CHATTER,label:"Weekend Chatter",labelIcon:T.sbX},{name:eu.PHONE_ANYTIME_CHATTER,label:"Anytime Chatter",labelIcon:T.sbX}],allowedJourneyTypes:[F.Lk.PHONE]},{name:ed.O2_SIM,title:"O2 SIM",fields:[{name:eu.SIM_O2_CLASSIC_PLAN_SIM,label:"O2 classic plan SIM",labelIcon:T.paZ},{name:eu.SIM_GB_DATA,label:"GB Data",labelIcon:T.paZ},{name:eu.SIM_UNLIMITED_MINS_AND_TEXT,label:"Unlimited minutes & texts",labelIcon:eB.a7r}],allowedJourneyTypes:[F.Lk.SIM]},{name:ed.VOLT_BENEFITS,title:"Volt benefits",fields:[{name:eu.VOLT_BENEFITS_BOOSTED_BROADBAND_SPEED,label:"Boosted broadband speed",labelIcon:eD.NM},{name:eu.VOLT_BENEFITS_DOUBLE_DATA,label:"Double data on every eligible O2 Pay Monthly plan in your household",labelIcon:eD.z2},{name:eu.VOLT_WIFI_GUARANTEE,label:"WiFi guarantee",labelIcon:eD.pZ},{name:eu.VOLT_O2_TRAVEL_INCLUSIVE_ZONE,label:"O2 Travel Inclusive Zone",labelIcon:eD.oq}],allowedJourneyTypes:[F.Lk.VOLT]},{name:ed.EXTRA_BENEFITS,title:"Extra benefits",fields:[{name:eu.PRIORITY_FROM_O2,label:"Priority from O2",labelIcon:T.var}],allowedJourneyTypes:[]}];function eF({bundles:e=[],limit:t}){let[r,n]=(0,_.useState)(!1),o=()=>{n(e=>!e)},i=e.map(e=>({...e,productPrice:(0,S.O)(e.msaBundle)}));return(0,u.jsxs)(y.ModalProvider,{children:[(0,u.jsx)(v.M,{asChild:!0,size:"sm",iconPosition:"start",onClick:o,className:eO().triggerAnchor,children:(0,u.jsx)(E,{})}),r&&(0,u.jsx)(eP,{bundles:i,onClose:o,limit:t,comparisonSectionConfig:eR})]})}var eV=r(98500),e$=r.n(eV),ez=r(29801),eU=r(66247),eH=r(16420),eG=r(40217),eq=r(75747),eW=r(13941),eY=r(64808),eK=r(2531),eQ=r(2068),eZ=r(105),eX=r.n(eZ);let eJ=({sbBundle:e,flashSales:t,variant:r="regular"})=>{let{setSelectedBundle:n,setSelectedBundleStyle:o}=(0,eW.b)(),i=(0,eG.p)();try{let a=(0,G.M)(e),s=(0,H.gN)(a),l=e.name,c=e.content.display_name,d=(0,U.Q)(s,l,"manual",i),_=e.full_slug.split("/")?.[3]?.toLowerCase(),m="o2"===_?"volt":r,h=(0,$.q)(e,t?.banner),b=(0,w.A)({"landscape-card":!0,[eX()["landscape-card"]]:!0,[eX()["landscape-card--regular"]]:"regular"===m}),g=e.content.additional_content.find(({component:e})=>"dynamo_button"===e)?.link?.url,f=(0,eq.Z)(e.name),x=a[0]?.content.bullets,v=e.content.monthly_price,y=`<strong>
83No price rise in</strong> ${new Date().getFullYear()}`;return(0,u.jsxs)(D.Zp,{className:`${b} ${h}`,rounded:"lg",children:["volt"===m&&(0,u.jsx)(ez.u,{layout:"landscape"}),(0,u.jsx)(eU.h,{as:"div",layout:"landscape",children:(0,u.jsx)(eH.S,{document:c,StoryblokComponent:K.Dp})}),(0,u.jsxs)(A.s,{direction:"column",className:eX()["landscape-card_container"],children:[(0,u.jsx)(eK.P,{photos:d}),(0,u.jsxs)(A.s,{direction:"column",className:eX()["landscape-card_description-items"],children:[x?.map(e=>(0,u.jsx)(eY.W,{description:{name:e.label||"",ufDescription:e.text},icon:e.icon,showItemsNr:10},e.label)),v&&(0,u.jsx)("div",{className:eX()["desktop-only"],children:(0,u.jsx)(eY.W,{description:{name:"Price",ufDescription:y},icon:eE.ilr})})]}),(0,u.jsxs)(A.s,{direction:"column",className:eX().footer,children:[v&&(0,u.jsx)(A.s,{className:`${eX().pill} ${eX()["pill--price"]}`,children:(0,u.jsx)(eQ.g,{discounted:v,priceChanges:[y]})}),f&&(0,u.jsx)(C.$,{variant:"destructive",rounded:"xl",asChild:!0,className:eX()["manual-card-button"],children:(0,u.jsx)(e$(),{href:g,prefetch:p.Ad,children:f})}),"o2"===_&&(0,u.jsx)(C.$,{className:"button-link",onClick:()=>{o("default"),n({sbBundle:e,flashSales:t})},children:"Find out more"})]})]})]},e.id)}catch(e){return console.warn(`${e}`),null}};var e0=r(21576),e1=r(77262),e2=r.n(e1);let e5=({descriptionItems:e})=>{let[t,r]=(0,_.useState)(!1),n=(0,u.jsxs)(A.s,{align:"center",gap:"xs",children:[(0,u.jsx)(M.I,{icon:T.cJ6}),"More information"]});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(P.d,{}),(0,u.jsxs)("div",{className:e2()["description-container"],children:[(0,u.jsx)("div",{className:e2()["manual-description-content"],children:e?.map(e=>e?.name&&(0,u.jsxs)("div",{children:[(0,u.jsx)(O.E,{className:e2()["manual-title"],weight:"bold",marginBottom:!0,children:(0,u.jsx)("span",{dangerouslySetInnerHTML:{__html:e?.name?.toString()||""}})}),(0,u.jsx)("div",{className:e2()["description-list"],children:(0,u.jsx)("ul",{children:e?.salesDescriptionItems?.map(e=>(0,u.jsx)("li",{children:e},e))})})]},e.name))}),(0,u.jsx)(e0.x,{triggerPosition:"center",onClick:()=>{r(!t)},iconSize:"sm",title:n,children:(0,u.jsx)("div",{className:e2()["description-list"],children:e?.map(e=>(0,u.jsx)(_.Fragment,{children:e.xsus_description?(0,u.jsx)(eH.S,{document:e.xsus_description,StoryblokComponent:K.Dp}):null},e.name?.toString()))})})]})]})};var e3=r(40281),e7=r(48515),e9=r.n(e7);let e4=({variant:e="regular",sbBundle:t})=>{let r=(0,eG.p)();try{let n=(0,G.M)(t),o=(0,H.gN)(n),i=t.name,a=(0,z.E0)(i,o,!1),s=(0,U.Q)(o,i,void 0,r),l=t.content.bundle_type.includes("volt")?"volt":e;return(0,u.jsxs)(D.Zp,{"data-testid":"manual-product-card",className:(0,w.A)(e9()["product-card-container"],e9()[`product-card-${l}`]),padding:"md 0",justify:"between",children:["volt"===l&&(0,u.jsx)(ez.u,{layout:"portrait"}),(0,u.jsxs)(R.N,{justify:"around",direction:"column",children:[(0,u.jsx)(e3.P,{photos:s}),(0,u.jsx)(e5,{descriptionItems:a}),t.content.additional_content?.[0]&&(0,u.jsx)("div",{className:e9()["manual-card-link"],children:(0,u.jsx)(e$(),{href:t.content.additional_content[0].link.url,title:"Return to homepage",prefetch:p.Ad,children:(0,u.jsx)(C.$,{variant:"destructive",rounded:"xl",className:"add-to-basket",children:t.content.additional_content[0].title})})})]})]},t.id)}catch(e){return console.error(`${e} manual product card id: ${t.slug}`),null}},e6=({cardType:e,...t})=>e?.startsWith("landscape")?(0,u.jsx)(eJ,{...t}):(0,u.jsx)(e4,{...t});var e8=r(42776),te=r(41569),tt=r(12612);let tr=e=>{let t=(0,G.M)(e.sbBundle),r=t.find(e=>e?.content?.product_type==="Broadband")?.content,n=r?.speed_profile;return Number(n?.content?.display_speed??0)},tn=e=>Number(e?.msaBundle?.totalMonthlyCosts?.total?.[0]?.amount??0),to=e=>{let{discountAmount:t}=(0,S.O)(e?.msaBundle);return t};function ti(e){if(!e?.length)return[];let t=[],r=e[0],n=p.hE.find(e=>e.id===r);if(!n)return[];if(t=[...n.packages],1===e.length)return t;for(let r=1;r<e.length;r++){let n=e[r],o=p.hE.find(e=>e.id===n);if(!o)return[];{let e=new Set(t);t=o.packages.filter(t=>e.has(t))}}return t}let ta=(e,t)=>Object.keys(e).find(r=>e[r]===t),ts=e=>{let t=/\d+/.exec(e);return{value:t?Number(t[0]):0,over:/over/i.test(e)}},tl=(e,{value:t,over:r})=>r?e>=t:e<=t,tc={getBudgetFilters:(e,t)=>e.map(e=>{let r=ts(e.name),n=t.filter(e=>tl(e.price,r)).length;return{...e,count:n}}),getSpeedFilters:(e,t)=>e.map(e=>{let r=ts(e.name),n=t.filter(e=>tl(e.speed,r)).length;return{...e,count:n}}),getTvChannelFilters:(e,t,r=[])=>e.map(e=>{let n=t.filter(t=>[...r,e.id].every(e=>t.tvChannels?.includes(e))).length;return{...e,count:n}}),getProductTypeFilters:(e,t)=>e.map(e=>{let r=t.filter(t=>t.dealType===e.id).length;return{...e,count:r}}),getHasFilters:(e,t,r,n)=>({hasSpeedFilter:e?.length>0,hasProductTypeFilter:t?.length>0,hasBudgetFilter:r?.length>0,hasTvFilter:n?.length>0}),getBundlesByProductTypes:(e,t)=>{let r=e?.filter(e=>e.selected).map(e=>e.id)??[];return 0===r.length?[]:t.filter(e=>r.some(t=>e.dealType===t))},getBundlesByTvChannels:(e,t)=>{let r=e?.filter(e=>e.selected).map(e=>e.id)??[];return 0===r.length?[]:t.filter(e=>r.every(t=>e.tvChannels?.includes(t)))},getBundlesByBudget:(e,t)=>{let r=e?.filter(e=>e.selected).map(e=>e.name)??[];return 0===r.length?[]:t.filter(({price:e})=>null!=e&&r.some(t=>tl(e,ts(t))))},getBundlesBySpeed:(e,t)=>{let r=e.filter(e=>e.selected);return r.length?t.filter(({speed:e})=>!!e&&r.some(t=>tl(e,ts(t.name)))):t}};function td(e,t,r,n,o){let i=o,a=!1;
83return[{filters:e,handler:tc.getBundlesByProductTypes},{filters:t,handler:tc.getBundlesByTvChannels},{filters:r,handler:tc.getBundlesByBudget},{filters:n,handler:tc.getBundlesBySpeed}].forEach(({filters:e,handler:t})=>{e?.length&&e.some(e=>e.selected)&&(a=!0,i=t.call(tc,e,i))}),{bundles:i,hasAnySelectedFilter:a}}let tu=({manualBundles:e=[],validBundles:t,cardType:r="portrait",sb_ref:n="",showBillSplit:o=!1,allowCustomise:i,enableNetflixModalChat:a,hasProductFilterSort:s,cancellationInfo:l,installationInfoFlag:c,isCompareDisabled:d})=>{let{selectedBundles:v,limit:y}=(0,m.$0)(),{availability:j}=(0,_.useContext)(g.s),{tvFilters:w,setBundlesNr:N}=(0,h.Y)(),{sort:k,speedFilters:E,productTypeFilters:S,budgetFilters:T,tvChannelFilters:C,productsLoaded:A,lastFiltered:I,setCount:P,setProductTypeFilters:M,setSpeedFilters:O,setProductsLoaded:B,setBudgetFilters:L,setTvChannelFilters:D,setFilteredBundleCount:R}=(0,b.useProductFilterSort)(),F=(0,_.useMemo)(()=>(function(e,t){let r=e.filter(({sbBundle:e})=>!e.content?.manual);if(!t?.length)return r;let n=ti(t);return r.filter(({sbBundle:e})=>{let t=e?.content?.display_name?.content?.[0]?.content?.[0]?.text||e?.name;return n.includes(t)})})(t,w?.[n]),[t,w]),V=(0,_.useMemo)(()=>(function(e,t){let r=e.filter(({sbBundle:e})=>!e.content?.manual);if(r=r.map(e=>{var t;let r=(0,G.M)(e.sbBundle),n=!!e.msaBundle?.journeyTypes?.includes("Stream"),o=(0,z.uM)(e.sbBundle.name,r,n).find(e=>(0,tt.v)(e.name)),i=(t=e.sbBundle.name,p.hE.filter(e=>{let r=e=>e.replace(/ï¼/g,"+").replace(/\s+/g," ").trim().toUpperCase();return e.packages.map(e=>r(e)).includes(r(t))}).map(e=>e.id));i.includes("netflix")&&!o&&(i=i.filter(e=>"netflix"!==e)),o&&!i.includes("netflix")&&i.push("netflix");let a=function(e,t){if(e?.length===0)return"";let r=e.map(e=>e.toUpperCase()).filter(e=>!["ASYMMETRIC","SYMMETRIC","STUDENT","FIUP"].includes(e));if(!r.includes("BROADBAND"))return"";let n=t.map(e=>e.toUpperCase()).includes("NETFLIX"),o=r.includes("SIM"),i=n?ta(te.Wk,te.Wk.broadband_with_netflix):ta(te.Wk,te.Wk.broadband_only),a=n?ta(te.Wk,te.Wk.broadband_with_netflix):ta(te.Wk,te.Wk.broadband_sim);return function(e,t){let{count:r,hasSim:n,hasTvOrStream:o,hasVolt:i,hasPhone:a}=e;return 1===r?t.broadband:2===r&&o||3===r&&o&&i?ta(te.Wk,te.Wk.tv_stream_broadband):3===r&&n&&i?t.broadbandSim:n&&o?ta(te.Wk,te.Wk.broadband_sim):2===r&&i?t.volt:n&&a?ta(te.Wk,te.Wk.phone_only):a?ta(te.Wk,te.Wk.broadband_phone):""}({count:r.length,hasSim:o,hasTvOrStream:r.includes("TV")||r.includes("STREAM"),hasVolt:r.includes("VOLT"),hasPhone:r.includes("PHONE")},{broadband:i,broadbandSim:a,volt:o?a:i})}(e.msaBundle.journeyTypes||[],i);return a!==ta(te.Wk,te.Wk.broadband_with_netflix)||i.includes("netflix")||i.push("netflix"),{...e,speed:tr(e),price:tn(e),discount:to(e),dealType:a,tvChannels:i}}),!t?.length)return r;let n=ti(t);return r.filter(({sbBundle:e})=>{let t=e?.content?.display_name?.content?.[0]?.content?.[0]?.text||e?.name;return n.includes(t)})})(t,w?.[n]),[t,w,n]),{processedBundle:$,originalBundles:U,filteredBundleCount:H}=(0,_.useMemo)(()=>{let t,r,n,o,i,a,l=e?.length?e:V;if(!s||!l)return{processedBundle:l,originalBundles:[],filteredBundleCount:0};let{bundles:c,hasAnySelectedFilter:d}=td(S,C,T,E,l),u=d?c:l,_=u.length;return k&&(t=u.map(e=>({...e,speed:tr(e),price:tn(e),discount:to(e)})),r=k.startsWith("Price"),n=k.endsWith("low_to_high"),o=k.endsWith("slow_to_fast"),i=k.startsWith("Speed"),a=k.startsWith("Discount"),r?t.sort((e,t)=>n?e.price-t.price:t.price-e.price):i?t.sort((e,t)=>n||o?e.speed-t.speed:t.speed-e.speed):a&&t.sort((e,t)=>t.discount-e.discount),u=t),{processedBundle:u,originalBundles:l,filteredBundleCount:_}},[e,V,s,S,C,T,E,k,A]);return(0,_.useEffect)(()=>{w[n]&&N({[n]:{total:e?.length?e.length:t.length,visible:e?.length?e.length:V.length}})},[e,t,V,n]),(0,_.useEffect)(()=>{if(e?.length)return;let t=V.length,r=V.map(({sbBundle:e,msaBundle:t,flashSales:r})=>(0,x.Cz)(t,e,r,j?.deliveryMethod));(0,f.A)(p.bk.ECOMMERCE,{event_name:p.qy.ECOMMERCE_RESULTS,event_params:{filter_options:void 0,page_journey:"none",price_engine_recommendation:"none",pricing_engine_request_id:"",product_count:t.toString(),sort_options:void 0},ecommerce:{item_list_id:"sales_none_product_listing",item_list_name:"sales none product listing",items:r}}),P(t)},[F,t,n,k]),(0,_.useEffect)(()=>{s&&(P(H),R(H))},[H]),(0,_.useEffect)(()=>
83{if(A||!s||!$)return;let{hasBudgetFilter:e,hasSpeedFilter:t,hasProductTypeFilter:r,hasTvFilter:n}=tc.getHasFilters(E,S,T,C);if(t||r||e||n){if(e&&L(tc.getBudgetFilters(T,td(S,C,[],E,U).bundles)),t&&O(tc.getSpeedFilters(E,td(S,C,T,[],U).bundles)),n&&D(tc.getTvChannelFilters(C,td(S,[],T,E,U).bundles)),r){let{bundles:e}=td([],C,T,E,U);M(tc.getProductTypeFilters(S,e))}B(!0)}},[A,s,$,E,S,T,C,I]),(0,u.jsxs)(u.Fragment,{children:[d?null:(0,u.jsx)(eF,{bundles:v,limit:y}),e?.length?e.map(({sbBundle:e})=>(0,u.jsx)(e6,{cardType:r,sbBundle:e},e.slug)):$.map(e=>{let{sbBundle:t,msaBundle:n,flashSales:s}=e;return(0,u.jsx)(e8.ProductCard,{cardType:r,flashSales:s,msaBundle:n,sbBundle:t,showBillSplit:o,allowCustomise:i,enableNetflixModalChat:a,cancellationInfo:l,installationInfoFlag:c,isCompareDisabled:d,bundle:e},n.bundleId)})]})}},92455:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(30710);let o=(e,t)=>{let r;switch(t){case"sim":r=e.totalMonthlyCosts?.simPoundsAndPencePriceSteps?.filter(e=>void 0!==e.duration);break;case"broadband":r=e.totalMonthlyCosts?.vmBundlePoundsAndPencePriceSteps?.filter(e=>void 0!==e.duration);break;default:r=e.totalMonthlyCosts?.totalPoundsAndPencePriceSteps?.filter(e=>void 0!==e.duration)}let o=e.journeyTypes?.includes("Student")&&r?r.slice(0,1):r;return o?.length?(o?.map((e,t)=>{let r,o,i;if(!e?.startDate)return"";let a=(o=(r=new Date(e.startDate)).toLocaleString("default",{month:"long"}),i=r.getFullYear(),`${o} ${i}`),s=(0,n.$g)(e.amount);switch(t){case 0:return`Increasing to \xa3${s} a month from ${a}.`;case 1:return`\xa3${s} a month from ${a} bill.`;default:return""}})).filter(e=>e):[]}},92790:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,Q:()=>i});var n=r(65305),o=r(9604);function i(e,t,r,i){for(let r of e.filter(e=>e.content.product_type!==n.pu.NON_PRODUCT&&e.content.addon_type===n.ub.CORE).map(e=>({productType:e.content.product_type,image:e.content?.product_image?.filename,name:e.name,addonType:e.content.addon_type})))if(null===r.image||void 0===r.image)throw Error(`Photos missing from ${t} (Product Type: ${r.productType})`);let a=e.filter(e=>e.content?.product_image?.filename).map(e=>({...(0,o.G)(e.content?.product_image,i??void 0),productType:`${r||e.content?.product_type?.toLowerCase()}`})),s=!!a.find(e=>e.productType===n.po.TV),l=a.length>=3&&s?a.filter(e=>e.productType!==n.po.LANDLINE):a;if(l.length>0&&l.every(e=>e.src))return l;throw Error(`Photos missing from ${t}`)}function a(e,t,r,i){let a=e.filter(e=>e.content?.entertainment_card?.[0]?.content.fixed_horizontal_image&&e.content?.entertainment_card?.[0]?.content.fixed_vertical_image).map(e=>({_uid:e.content?.entertainment_card?.[0]?.content._uid,horizontal:(0,o.G)(e.content?.entertainment_card?.[0]?.content.fixed_horizontal_image,i??void 0),vertical:(0,o.G)(e.content?.entertainment_card?.[0]?.content.fixed_vertical_image,i??void 0),productType:`${r||e.content?.product_type?.toLowerCase()}`})),s=a.find(e=>e.productType===n.po.TV),l=s?[s]:a;if(l.length>0&&l.every(e=>e.horizontal?.src&&e.vertical?.src))return l;throw Error(`Photos missing from ${t}`)}},93053:e=>{e.exports={"postcode-result__change":"SuccessToast_postcode-result__change__rwDDt",successContainer:"SuccessToast_successContainer__jahS8",successContainer_success:"SuccessToast_successContainer_success__66uDO",successText:"SuccessToast_successText__h6LU8"}},93227:e=>{e.exports={container:"my-account_container__NBxP3",button:"my-account_button__VkAHg",text:"my-account_text__cvCrD","button--open":"my-account_button--open__k84NM",navigation:"my-account_navigation__nlz60",arrow:"my-account_arrow__f72qZ",overlay:"my-account_overlay__JTRUB"}},93567:(e,t,r)=>{"use strict";r.d(t,{ByobIsLastStepGuard:()=>a});var n=r(12115),o=r(67526),i=r(32694);let a=({children:e,inverse:t})=>{let{steps:r,isFlexJourney:a,intentType:s}=(0,n.useContext)(o.ByobContext),l=a&&null!==r.total?(0,i.ut)(s??void 0,r.total):r.total,c=r.current===l;return t&&!c||!t&&c?e:null}},93701:(e,t,r)=>{"use strict";r.d(t,{ByobStreamSelectionContainer:()=>ei});var n=r(95155),o=r(12115),i=r(2730),a=r(69839),s=r(51970),l=r(67526),c=r(18829),d=r(89684),u=r(32493),_=r(5383),p=r(67927),m=r(55397),h=r(9339);let b=(0,h.createServerReference)("40c86e952369a9d7317a2d05a26f4b8e5e5b522d26",h.callServer,void 0,h.findSourceMapURL,"swapTVAddOnsAction");
83var g=r(83846),f=r.n(g),x=r(88972),v=r(5772),y=r(82567),j=r(29243),w=r(29722),N=r(60513),k=r(47277),E=r(48399),S=r(21888),T=r.n(S),C=r(53656),A=r(71505),I=r(30710),P=r(82459),M=r.n(P);let O=({price:e,promo:t,isDelta:r=!0,showFrom:o=!1})=>{let i=r?I.xQ:I.a7;return t?.duration?(0,n.jsx)(A.N,{direction:"column",children:(0,n.jsxs)(y.E,{size:"T200",weight:"light",color:"light",children:[(0,n.jsx)(y.E,{as:"span",size:"T200",weight:"medium",color:"light",children:i(t.discountedPrice)})," ","for ",t.duration," ",1===t.duration?"month":"months"," ",(0,n.jsxs)(y.E,{as:"span",weight:"light",color:"light",className:(0,w.A)(M().originalPrice,M().xs),children:["then"," ",(0,n.jsx)(y.E,{as:"span",weight:"medium",color:"light",className:M().xs,children:i(t.originalPrice)})," ","a month"]})]})}):i(e)===i("0")?null:(0,n.jsx)(A.N,{direction:"column",children:(0,n.jsxs)(y.E,{size:"T200",weight:"light",color:"light",children:[o?"From ":null,t?.discountedPrice?(0,n.jsx)(y.E,{as:"span",size:"T200",weight:"light",color:"light",decoration:"strikethrough",children:i(e)}):null," ",(0,n.jsx)(y.E,{as:"span",size:"T200",weight:"medium",color:"inherit",children:i(t?.discountedPrice?t.discountedPrice:e)})," ","a month"]})})},B=({addon:e,isSelected:t=!1,hideImageGradient:r=!1,modalTriggerId:i,priceVariant:a="bundle",cta:s,onAddOnToggle:c,title:_})=>{let{storyblokProducts:p}=(0,o.useContext)(l.ByobContext),m=(0,C.l)(void 0,e,p);if(!m)return null;let h=m.content?.entertainment_card?.[0]?.content,b=(0,j.ZQ)(h?.background_image),g=(0,j.ZQ)({filename:h?.channel_icon}),f=(0,u.uM)("",[m],!1),S=i?f?.[0].modals?.find(e=>e.id===i)??f?.[0].modals?.[0]:f?.[0].modals?.[0],A=_??f?.[0].name,I=e.contract?.term||1,P=e.prices?.[0]?.price?.amount,M=e.prices?.[0]?.priceAfterDiscount?.amount;return(0,n.jsxs)("div",{className:(0,w.A)(T().product,t&&T()["product--selected"],r&&T()["product--no-gradient"]),children:[b&&(0,n.jsxs)("div",{className:T()["product__img-wrapper"],children:[(0,n.jsx)(v.default,{unoptimized:!0,src:b.src,alt:b.alt,width:216,height:100,className:T().product__img}),(0,n.jsxs)("div",{className:T()["product__img-content"],children:[g?(0,n.jsx)(N.W,{src:g.src,width:g.width,height:g.height,alt:`Channel logo: ${g.alt??""}`,loading:"lazy",className:T()["product__channel-logo"]}):null,h?.footer_title&&(0,n.jsx)(y.E,{color:"light",size:"T200",weight:"bold",children:h.footer_title}),h?.footer_subtitle&&(0,n.jsx)(y.E,{color:"light",size:"T200",weight:"light",children:h.footer_subtitle})]})]}),(0,n.jsxs)("div",{className:T().product__content,children:[(0,n.jsx)("div",{className:T()["product__title-wrapper"],children:(0,n.jsx)(y.E,{as:"h2",weight:"bold",color:"light",children:A})}),S&&(0,n.jsx)(k.o,{title:S.title??"",text:(0,n.jsx)(E.t,{text:S.text??[],images:S.images}),className:T().product__link,children:S.linkText}),(0,n.jsx)("div",{className:T().product__terms,children:(0,n.jsxs)("div",{className:T().product__term,"data-product-id":e.id,children:[(0,n.jsx)(y.E,{size:"T200",weight:"medium",color:"light",className:T()["product__term-title"],children:(0,d.s)(I)}),"interest"===a?(0,n.jsx)(O,{price:M??P,isDelta:!1,showFrom:!0}):(0,n.jsx)(O,{price:P,promo:M?{discountedPrice:M,originalPrice:P}:void 0,isDelta:!1}),s??(0,n.jsx)(x.F,{isSelected:t,onToggle:()=>c?.(e.productCodes,t,{title:A??"",description:(0,d.s)(I)})})]})})]})]})};var L=r(12572),D=r(38207),R=r(18401),F=r(51073),V=r(89810),$=r(89839),z=r(47650),U=r(9759),H=r(84398),G=r(99916),q=r(79270),W=r.n(q);let Y=({addons:e})=>{let{storyblokProducts:t}=(0,o.useContext)(l.ByobContext),r=e.map(e=>{let r=t[e.id]?.content?.product_additional_information??[];return{id:e.id,name:(0,u.UY)(t[e.id]?.content)||e.name,features:r.filter(e=>e.key)}}),i=r[0]?.features??[];return 0===i.length?null:(0,n.jsxs)("table",{className:W()["stream-options__features"],children:[r.length>1&&(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:r.map(e=>(0,n.jsx)("th",{scope:"col",children:(0,n.jsx)(y.E,{as:"span",size:"T200",weight:"bold",children:e.name})},e.id))})}),(0,n.jsx)("tbody",{children:i.map(e=>(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)("tr",{children:(0,n.jsx)("th",{scope:"colgroup",colSpan:r.length,className:W()["stream-options__feature-title"],children:(0,n.jsx)(y.E,{as:"span",size:"T200",weight:"bold",children:e.title})})}),(0,n.jsx)("tr",{children:r.map(t=>(0,n.jsx)("td",{children:(0,n.jsx)(y.E,{as:"span",size:"T200",weight:"bold",children:t.features.find(t=>t.key===e.key)?.value??""})},`${e.key}-${t.id}`))})]},e.key))})]})},K=({basePrice:e,discountedPrice:t,variant:r="bundle"})=>{let o=t??e;if(!o)return null;let i="bundle"===r&&!!t&&!!e;return(0,n.jsxs)(y.E,{size:"T200",as:"span",children:[i&&(0,n.jsx)(y.E,{as:"span",decoration:"strikethrough",children:(0,I.a7)(e)})," ",(0,n.jsx)(y.E,{as:"span",color:t?"inherit":void 0,className:(0,w.A)({[W()["stream-options__price--discounted"]]:t}),children:(0,I.a7)(o)}),"/m"]})},Q=({addons:e,groupName:t,selectedVariantId:r,onSelect:i,priceVariant:a="bundle"})=>{let{storyblokProducts:s}=(0,o.useContext)(l.ByobContext);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:W()["stream-options__list"],children:e.map(e=>{let o=`${t}-${e.id}`,l=(0,u.UY)(s[e.id]?.content)||e.name,c=e.prices?.[0]?.price?.amount,d=e.prices?.[0]?.priceAfterDiscount?.amount;return(0,n.jsxs)("div",{className:(0,w.A)(W()["stream-options__option"],r===e.id&&W()["stream-options__option--selected"]),children:[(0,n.jsx)(G.N,{id:o,name:t,type:"radio",checked:r===e.id,onChange:()=>i(e),children:l}),(0,n.jsxs)("label",{htmlFor:o,className:W()["stream-options__label"],children:[(0,n.jsx)(y.E,{as:"span",children:l}),(0,n.jsx)(K,{basePrice:c,discountedPrice:d,variant:a})]})]},e.id)})}),(0,n.jsx)(Y,{addons:e})]})},Z=e=>e.find(e=>e.display_groups?.includes("standard_with_ads"))??e[0],X="24-month",J="30-day",ee=({triggerLabel:e,title:t,enrolAddon:r,interestAddons:i,onSave:a,enrolPriceVariant:s="bundle"})=>{let l=(0,V.useModal)(),c=r?.id??Z(i)?.id??"",[d,u]=(0,o.useState)(c),[_,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{p(!0)},[]),(0,o.useEffect)(()=>{l?.isOpen&&u(c)},[l?.isOpen,c]);let m=r?.contract?.term===1?"30 days":`${r?.contract?.term??""} months`,h=[...r?[{id:X,label:m,content:(0,n.jsx)(Q,{addons:[r],groupName:X,selectedVariantId:d,onSelect:e=>u(e.id),priceVariant:s})}]:[],...i.length?[{id:J,label:"30 days",content:(0,n.jsx)(Q,{addons:i,groupName:J,selectedVariantId:d,onSelect:e=>u(e.id),priceVariant:"interest"})}]:[]];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U.r,{variant:"light",width:"full-width",icon:(0,n.jsx)(F.I,{icon:L.ajm}),onClick:()=>l?.setIsOpen(!0),children:(0,n.jsx)(y.E,{color:"inherit",children:e})}),_&&(0,z.createPortal)((0,n.jsxs)($.Modal,{className:W()["stream-options-modal"],children:[(0,n.jsxs)($.ModalHeader,{children:[(0,n.jsx)($.ModalTitle,{children:t}),(0,n.jsx)($.ModalCloseButton,{})]}),(0,n.jsxs)($.ModalBody,{children:[(0,n.jsx)(D.Fc,{variant:"info",className:W()["stream-options__info"],children:(0,n.jsx)(y.E,{as:"p",size:"T200",children:"Save on your Virgin Media bill with a 24-month plan, or choose a 30-day plan and we'll email you all the details"})}),(0,n.jsx)(H.TabsList,{tabs:h,variant:"segments",activeTabId:r?X:J,onTabChange:e=>{e===J?u(Z(i)?.id??c):u(r?.id??c)},className:W()["stream-options__tabs"]},String(l?.isOpen))]}),(0,n.jsx)($.ModalFooter,{children:(0,n.jsx)("div",{className:W()["stream-options__footer"],children:(0,n.jsx)(R.$,{onClick:()=>{let e=[...r?[r]:[],...i].find(e=>e.id===d);e&&a(e),l?.setIsOpen(!1)},variant:"tertiary",children:"Save selection"})})})]}),document.body)]})},et=e=>(0,n.jsx)(V.ModalProvider,{children:(0,n.jsx)(ee,{...e})}),er=(e,t)=>e.display_groups?.includes(t),en=e=>Number(e.prices?.[0]?.priceAfterDiscount?.amount??e.prices?.[0]?.price?.amount??1/0),eo=({title:e,enrolAddon:t,interestAddons:r,selectedVariant:o,onRemove:i,onSave:a,enrolPriceVariant:s})=>o?(0,n.jsx)(x.F,{isSelected:!0,onToggle:()=>i(o)}):(0,n.jsx)(et,{triggerLabel:"View plans",title:e,enrolAddon:t,interestAddons:r,onSave:a,enrolPriceVariant:s}),ei=()=>{let{customisations:e,storyblokProducts:t}=(0,o.useContext)(l.ByobContext),{basket:r}=(0,s.D)(),{startTransition:h,queueNotification:g}=(0,i.j)(),[x,v]=(0,o.useState)(),y=e=>(0,u.xU)(t[e.id]?.content)||e.name,j=e?.addOns??[],w=r?.basketPricing?.products??[],N=(0,o.useMemo)(()=>j.find(e=>er(e,"netflix_enrol")),[j]),k=(0,o.useMemo)(()=>j.find(e=>er(e,"disney_enrol")),[j]),E=(0,o.useMemo)(()=>j.find(e=>er(e,"netflix_disney_enrol")),[j]),S=(0,o.useMemo)(()=>j.filter(e=>er(e,"netflix_interest")).sort((e,t)=>
83en(e)-en(t)),[j]),T=(0,o.useMemo)(()=>j.filter(e=>er(e,"disney_interest")).sort((e,t)=>en(e)-en(t)),[j]),C=e=>!!e&&!!(0,u.xU)(t[e.id]?.content),A=C(N)?N:S.find(C),I=C(k)?k:T.find(C),P=C(E)?E:void 0,M=!!A&&!N,O=!!E&&!!w.find(e=>e.originalProductCode===E.id),L=e=>e.find(e=>w.some(t=>!O&&(e.productCodes.includes(t.productCode)||!!t.originalProductCode&&e.productCodes.includes(t.originalProductCode)))),D=L([...N?[N]:[],...S]),R=L([...k?[k]:[],...T]),F=(e,t,r)=>{e.length&&(v(void 0),h(async()=>{let n=t?await (0,m.J)(e):await (0,p.M)({productCodes:e,addOn:r});n.error?v(n.error):n.success&&"addOn"in n&&n.addOn&&g({title:n.addOn.title??"",description:n.addOn.description,duration:5e3}),(0,c.A)(a.bk.CONTENT,{event_name:a.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${r?.title} ${t?"remove":"add"}`,content_name:"Stream",content_text:e.join("|")}})}))},V=(e,t,r)=>{t.length&&(v(void 0),h(async()=>{let n=await b({removeProductCodes:e,addProductCodes:t,addOn:r});n.error?v(n.error):n.success&&n.addOn&&g({title:n.addOn.title??"",description:n.addOn.description,duration:5e3}),(0,c.A)(a.bk.CONTENT,{event_name:a.qy.CONTENT_CLICK,event_params:{content_type:`web - byo - ${r?.title} add`,content_name:"Stream",content_text:t.join("|")}})}))},$=e=>V(O&&E?E.productCodes:[],e.productCodes,{title:y(e),description:(0,d.s)(e.contract?.term)}),z=[];return P&&z.push({children:(0,n.jsx)(B,{addon:P,isSelected:O,hideImageGradient:!0,priceVariant:"bundle",onAddOnToggle:(e,t,r)=>{t?F(e,!0,r):V([...D?.productCodes??[],...R?.productCodes??[]],e,r)}})}),A&&z.push({children:(0,n.jsx)(B,{addon:A,isSelected:!!D,modalTriggerId:"#find-out-more",priceVariant:"interest",title:M?"Upgrade Netflix":void 0,cta:(0,n.jsx)(eo,{title:"Netflix plans",enrolAddon:N,interestAddons:S,enrolPriceVariant:"interest",selectedVariant:D,onRemove:e=>F(e.productCodes,!0,{title:y(e)}),onSave:$})})}),I&&z.push({children:(0,n.jsx)(B,{addon:I,isSelected:!!R,modalTriggerId:"#find-out-more",priceVariant:I===k?"bundle":"interest",cta:(0,n.jsx)(eo,{title:"Disney+ plans",enrolAddon:k,interestAddons:T,selectedVariant:R,onRemove:e=>F(e.productCodes,!0,{title:y(e)}),onSave:$})})}),(0,n.jsxs)(n.Fragment,{children:[x&&(0,n.jsx)("div",{className:f().error,children:(0,n.jsx)("p",{children:x})}),z.length>0&&(0,n.jsx)(_.F,{blok:{overflow_section_mobile:!0,overflow_section_tablet:!0,overflow_section_desktop:!0,navigation:!1,spaceBetween:4,component:"vm_upperfunnel_byob_product_carousel",_uid:""},slides:z,align:"left",className:f().tabs__carousel})]})}},94249:e=>{e.exports={container:"vertical-carousel_container__Zxu17","slide-wrapper":"vertical-carousel_slide-wrapper__CNFpJ",slide:"vertical-carousel_slide__Iza3C","slide-half":"vertical-carousel_slide-half__BQpJ9","slide-full":"vertical-carousel_slide-full__VEwX6","slide-img":"vertical-carousel_slide-img__LAYrK","slide-overlay":"vertical-carousel_slide-overlay__aBFzQ","slide-content":"vertical-carousel_slide-content__dDQNc","slide-logo":"vertical-carousel_slide-logo__BtnQo","slide-title":"vertical-carousel_slide-title__YUkwA"}},94819:(e,t,r)=>{"use strict";r.d(t,{AffiliateBanner:()=>u});var n=r(95155),o=r(73321),i=r(12115),a=r(29722),s=r(85592),l=r(96030),c=r.n(l);let d={quidco:"Quidco",topcashback:"TopCashback"};function u({bottom_curve:e,initialHasConsent:t=!1}){let r=(0,i.useContext)(s.s),l=function(e){if("awin"!==e.get("utm_source")||"affiliates"!==e.get("utm_medium"))return null;let t=e.get("utm_campaign")?.toLowerCase()??"";return t.includes("quidco")?"quidco":t.includes("topcashback")?"topcashback":null}((0,o.useSearchParams)()),[_,p]=(0,i.useState)(t);if((0,i.useEffect)(()=>{if(!l||_)return;let e=()=>{var e;return!!((e=decodeURIComponent(document.cookie.split("; ").find(e=>e.startsWith("consentGroup="))?.split("=")[1]??""))&&/(^|\|)mar:1(\||$)/.test(e))&&(p(!0),!0)};if(e())return;let t=window.setInterval(()=>{e()&&window.clearInterval(t)},1e3);return document.addEventListener("visibilitychange",e),()=>{window.clearInterval(t),document.removeEventListener("visibilitychange",e)}},[l,_]),r.availability||!l||!_)return null;let m=d[l];return(0,n.jsx)("div",{className:(0,a.$)(c().banner,{[c()["banner--bottom-curve"]]:e,[c()[`banner--${l}`]]:l}),"data-affiliate":l,"data-testid":"affiliate-banner",children:(0,n.jsxs)("div",{className:(0,a.$)(c().inner,{[c()["inner--bottom-curve"]]:e}),children:[(0,n.jsx)("div",{"aria-hidden":"true",className:c().logo,"data-testid":"affiliate-banner-icon",children:(0,n.jsx)("img",{src:`/vm-upper-funnel/assets/icons/${l}.svg`,alt:`${m} logo`,width:"40px",height:"40px"})}),(0,n.jsxs)("p",{className:c().copy,children:["Enter your postcode to unlock your"," ",(0,n.jsx)("strong",{className:c().label,children:m})," savings."]})]})})}},94920:e=>{e.exports={"link-group":"dynamo-footer_link-group__Psbn9","Body-Small":"dynamo-footer_Body-Small__HFef5","link-groups":"dynamo-footer_link-groups__sUzk5",footer
83:"dynamo-footer_footer__JXmp6","Body-X-Small-Book":"dynamo-footer_Body-X-Small-Book___tJj9",accordion:"dynamo-footer_accordion__saz0v","accordion--expanded":"dynamo-footer_accordion--expanded__Kyqvm"}},95178:e=>{e.exports={"exposed-menu":"exposed-menu_exposed-menu__qHnJV","exposed-menu__list":"exposed-menu_exposed-menu__list__GVKOP","exposed-menu__list-default-color":"exposed-menu_exposed-menu__list-default-color__XswWP","exposed-menu__list-item":"exposed-menu_exposed-menu__list-item___zHoe","exposed-menu__list-item-link":"exposed-menu_exposed-menu__list-item-link__PIOKn","exposed-menu__list-item--black":"exposed-menu_exposed-menu__list-item--black__D5_WN","exposed-menu__list-item--vm_purple":"exposed-menu_exposed-menu__list-item--vm_purple__Lawbl","exposed-menu__list-item--tertiary":"exposed-menu_exposed-menu__list-item--tertiary__Hm0L7","exposed-menu__list-item--red":"exposed-menu_exposed-menu__list-item--red__xE_L4","exposed-menu__list-item--primary":"exposed-menu_exposed-menu__list-item--primary__Y2jsj","exposed-menu__list-item--blue":"exposed-menu_exposed-menu__list-item--blue__CKk3B","exposed-menu__list-item--info":"exposed-menu_exposed-menu__list-item--info__Xa89a","exposed-menu__list-item--secondary":"exposed-menu_exposed-menu__list-item--secondary__ztWUk","exposed-menu__list-item--green":"exposed-menu_exposed-menu__list-item--green__yvAxZ","exposed-menu__list-item--success":"exposed-menu_exposed-menu__list-item--success__XY2ul","exposed-menu__list-item--onyx":"exposed-menu_exposed-menu__list-item--onyx__Ki3V9","exposed-menu__list-item--warning":"exposed-menu_exposed-menu__list-item--warning__lQRVt","exposed-menu__list-item--danger":"exposed-menu_exposed-menu__list-item--danger___XD4_","exposed-menu__list-item--dark":"exposed-menu_exposed-menu__list-item--dark__OqRVq","exposed-menu__list-item--light":"exposed-menu_exposed-menu__list-item--light__emKou","exposed-menu__list-item-link-right-icon":"exposed-menu_exposed-menu__list-item-link-right-icon__E2fYx"}},95300:e=>{e.exports={"tv-addon-filter-item":"vm-tv-filter-chip_tv-addon-filter-item__MLcJ_"}},95820:e=>{e.exports={"back-to-top":"vm-backtotop_back-to-top__YVQtz",fadeIn:"vm-backtotop_fadeIn__5ObbN","back-to-top--visible":"vm-backtotop_back-to-top--visible__hYSk1","back-to-top--static":"vm-backtotop_back-to-top--static__DD_j7"}},96030:e=>{e.exports={banner:"affiliate-banner_banner__sbcRr","banner--topcashback":"affiliate-banner_banner--topcashback__NMPvT","banner--quidco":"affiliate-banner_banner--quidco__1Y0oj","banner--bottom-curve":"affiliate-banner_banner--bottom-curve__X6pCy",inner:"affiliate-banner_inner__2oKPl","inner--bottom-curve":"affiliate-banner_inner--bottom-curve__72j46",logo:"affiliate-banner_logo__tSkA1",copy:"affiliate-banner_copy__QY1_f",label:"affiliate-banner_label___qRfU"}},96067:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductsModalProvider:()=>a,useProductsModal:()=>s});var n=r(95155),o=r(12115);let i=(0,o.createContext)({title:"",text:null,setContent:()=>[]}),a=({children:e})=>{let[{title:t,text:r,button:a},s]=(0,o.useState)({title:"",text:null}),l=(0,o.useMemo)(()=>({title:t,text:r,button:a,setContent:s}),[t,r,a]);return(0,n.jsx)(i.Provider,{value:l,children:e})},s=()=>{let{title:e,text:t,button:r,setContent:n}=(0,o.useContext)(i);return{title:e,text:t,button:r,setContent:n}}},96267:e=>{e.exports={"uf-header-icon":"header-button_uf-header-icon__wa1Pd"}},96454:e=>{e.exports={"product-card-ribbon":"sale-ribbon-landscape_product-card-ribbon__smdB3","product-card-ribbon--primary":"sale-ribbon-landscape_product-card-ribbon--primary__7cU__","product-card-ribbon--secondary":"sale-ribbon-landscape_product-card-ribbon--secondary__JG26s","product-card-ribbon-volt":"sale-ribbon-landscape_product-card-ribbon-volt__qqEpB","product-card-ribbon--volt-banner":"sale-ribbon-landscape_product-card-ribbon--volt-banner__wKNgP"}},97157:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeaderContext:()=>a,NavigationCtx:()=>i});var n=r(95155),o=r(12115);let i=(0,o.createContext)({expanded:!1,setExpanded:()=>null,active:[],setActive:()=>null,level:0,setLevel:()=>null}),a=({children:e})=>{let[t,r]=(0,o.useState)(!1),[a,s]=(0,o.useState)(0),[l,c]=(0,o.useState)([]),d=(0,o.useMemo)(()=>({expanded:t,setExpanded:r,level:a,setLevel:s,active:l,setActive:c}),[t,a,l]);return(0,n.jsx)(i.Provider,{value:d,children:e})}},97297:(e,t,r)=>{"use strict";r.d(t,{ProductsModal:()=>d});var n=r(95155),o=r(11241),i=r(89839),a=r(29081),s=r(2131),l=r.n(s),c=r(96067);let d=()=>{let{title:e,text:t,button:r}
83=(0,c.useProductsModal)(),s=(0,a.Og)("modal-title","modal-content","modal-close-button");return(0,n.jsxs)(i.Modal,{children:[(0,n.jsxs)(i.ModalHeader,{children:[(0,n.jsx)(i.ModalTitle,{as:"h3",weight:"regular",size:"T400",...s["modal-title"],children:e}),(0,n.jsx)(i.ModalCloseButton,{})]}),(0,n.jsxs)(i.ModalBody,{className:l()["modal-text"],...s["modal-content"],children:[t,r??(0,n.jsx)(o.s,{align:"center",justify:"center",children:(0,n.jsx)(i.ModalCloseButton,{className:l()["modal-button"],...s["modal-close-button"],children:"Ok"})})]})]})}},97536:e=>{e.exports={"vm-tile-with-bg":"vm-tile-with-bg_vm-tile-with-bg__grJBi",secondary:"vm-tile-with-bg_secondary__aDIwK"}},97817:e=>{e.exports={"main-menu":"header-navigation_main-menu__yzEyo","menu-parent":"header-navigation_menu-parent__hvyG0","nav-icon-wrapper":"header-navigation_nav-icon-wrapper__5crKp","icon-up":"header-navigation_icon-up__kYNG3","submenu-container":"header-navigation_submenu-container__8wxcY","icon-down":"header-navigation_icon-down__LXVhq","submenu-bg":"header-navigation_submenu-bg__m6VB_","submenu-content":"header-navigation_submenu-content__e2CcF","sub-heading":"header-navigation_sub-heading__vBCrj","css-col":"header-navigation_css-col__4zzdu","css-flex":"header-navigation_css-flex__XNJm2"}},98744:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var n=r(95155),o=r(5772),i=r(12115),a=r(11389),s=r(51073),l=r(82567),c=r(29722),d=r(69839),u=r(67270),_=r(72062),p=r.n(_);let m=(0,i.forwardRef)(({label:e,isSquare:t=!1,isFlag:r=!1,isSmall:i=!1,isBordered:_=!1,error:m=!1,isLabelFullWidth:h=!1,image:b,...g},f)=>{let x=(0,u.G)(b);return(0,n.jsxs)("label",{"data-testid":"form-input-control",className:(0,c.A)("form-input-control",p()["uf-form-input-control"],{"form-input-control--is-square":t,"form-input-control--is-flag":!!r,"form-input-control--with-label":!!e,"form-input-control--size-sm":i,"form-input-control--is-bordered":_,"form-input-control--is-invalid":!!m,[p()["uf-form-input-control--is-invalid"]]:!!m,"form-input-control--is-label-full-width":!!h}),children:[(0,n.jsxs)("span",{"data-testid":"form-input-control-signifier",className:"form-input-control__signifier",children:[(0,n.jsx)("input",{type:"checkbox",className:"form-input-control__control",...g,ref:f}),(0,n.jsx)("span",{className:"form-input-control__icon",children:(0,n.jsx)(s.I,{icon:a.f2u})})]}),(0,n.jsx)("span",{"data-testid":"form-input-label",className:(0,c.A)("form-input-control__label",p()["uf-form-input-control__label"]),children:x?.src?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{className:p()["form-input-control__image"],alt:x.alt,"aria-hidden":"true",src:x.src,width:x.width,height:x.height,sizes:d.ol}),(0,n.jsx)("span",{className:p()["sr-only"],children:e})]}):(0,n.jsx)(l.E,{size:"T300",weight:"regular",color:"default",children:e})})]})});m.displayName="FormCheckboxImageInput";let h=m},98900:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var n=r(95155),o=r(82567),i=r(29081);let a=({duration:e="18",period:t="months"})=>{let r=`${e} ${t}`,a=(0,i.Og)("modal-contract-header","modal-contract-text");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.E,{as:"h2",size:"T600",weight:"light",align:"center",...a["modal-contract-header"],children:["Contract duration: ",r]}),(0,n.jsx)(o.E,{as:"span",size:"T300",weight:"light",...a["modal-contract-text"],children:(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:["Your contract's minimum length is ",r," and it runs from the day your services are installed."]}),(0,n.jsx)("li",{children:"30 days"!==r?`After ${r} you'll be able to cancel your services with just 30 days notice.`:"You only need to give us 30 days notice if you want to cancel."})]})})]})}},98985:(e,t,r)=>{"use strict";r.d(t,{VmByobStickyCtaWrapper:()=>s});var n=r(95155),o=r(12115),i=r(40373),a=r.n(i);function s({children:e}){let t=(0,o.useRef)(null),[r,i]=(0,o.useState)(!1),l=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=t.current;if(!e)return;let r=()=>{let t=e.getBoundingClientRect(),r=window.innerHeight,n=t.top>r,o=l.current;
83o!==n?(l.current=n,i(n)):n&&!o&&(l.current=n,i(!0))};r();let n=()=>{r()};window.addEventListener("resize",n);let o=new IntersectionObserver(e=>{e.forEach(e=>{l.current&&i(!e.isIntersecting)})},{threshold:0,rootMargin:"0px"});return o.observe(e),()=>{window.removeEventListener("resize",n),o.disconnect()}},[]),(0,n.jsx)("div",{ref:t,className:a().wrapper,children:(0,n.jsx)("div",{className:r?a().sticky:"",children:e})})}},99027:e=>{e.exports={summary:"summary_summary__SiljT","summary--light":"summary_summary--light__jVruw"}},99044:e=>{e.exports={"product-card":"bb-product-card_product-card__TYAk6","product-card--red":"bb-product-card_product-card--red__c_VAo","product-card--orange":"bb-product-card_product-card--orange__isZvT","product-card--green":"bb-product-card_product-card--green__xHlao","product-card--blue":"bb-product-card_product-card--blue__L9RWq","product-card--purple":"bb-product-card_product-card--purple__5KLOa","product-card--yellow":"bb-product-card_product-card--yellow__g2_Ja","product-card__content-wrapper":"bb-product-card_product-card__content-wrapper__mi_CF","product-card__title-wrapper":"bb-product-card_product-card__title-wrapper__ZrdXJ","product-card__title":"bb-product-card_product-card__title__Rg1Gn","product-card__content":"bb-product-card_product-card__content__fN4EU"}},99556:e=>{e.exports={"vm-entertainment":"vm-entertainment_vm-entertainment__iIOsz",primary:"vm-entertainment_primary__5QdGy",secondary:"vm-entertainment_secondary__1c2vq",tertiary:"vm-entertainment_tertiary__tQKo7",success:"vm-entertainment_success__VNVWR",warning:"vm-entertainment_warning__9VNi5",info:"vm-entertainment_info__v83b8",danger:"vm-entertainment_danger__RMrAb",dark:"vm-entertainment_dark__NwzMP",onyx:"vm-entertainment_onyx__UmNGQ","vm-entertainment--squishy":"vm-entertainment_vm-entertainment--squishy__z_Zs6","vm-entertainment-cta":"vm-entertainment_vm-entertainment-cta__KlZ_7","vm-entertainment-header":"vm-entertainment_vm-entertainment-header__qo5o_","vm-entertainment-slides-container":"vm-entertainment_vm-entertainment-slides-container__q0q9K","vm-entertainment-card":"vm-entertainment_vm-entertainment-card__Yn__w","vm-entertainment-slides":"vm-entertainment_vm-entertainment-slides__Uz4aV","vm-entertainment-slide-footer":"vm-entertainment_vm-entertainment-slide-footer__B25ZV","vm-entertainment-slide-footer-title":"vm-entertainment_vm-entertainment-slide-footer-title__KrZ9O","vm-entertainment-slide-footer-subtitle":"vm-entertainment_vm-entertainment-slide-footer-subtitle__bETVv"}},99730:e=>{e.exports={speed:"speed_speed__rnAMp","speed-value":"speed_speed-value__WyTth","speed-unit":"speed_speed-unit__jMEyy"}},99852:(e,t,r)=>{"use strict";r.d(t,{q:()=>i,r:()=>a});var n=r(29722),o=r(65305);let i=(e,t,r)=>{let i=[...e.content.products].reduce((e,{content:{product_type:t}})=>[...e,t?.toLowerCase()],[]),a=e.name?.toLowerCase().includes("volt"),s=t||a;return(0,n.A)({"has-ribbons":s,"has-countdown-promo":t&&(e=>{let t=e?.content.countdown_start_date,r=e?.content?.countdown_end_date;if(!t||!r)return!1;let n=Number(new Date(t).getTime()),o=Number(new Date(r).getTime()),i=Number(Date.now());return o-i>=0&&n-i<=0})(t),"has-banner":t,"has-campaign-discount":r?.pricing.discountedTld,"has-strikethrough-discount":r?.pricing.discountedTld&&r.pricing.strikeThroughDiscount>-1,"is-sim":i.includes(o.po.SIM),"is-super-charged":i.includes(o.po.SIM)||a,"is-phone":i.includes(o.po.LANDLINE),"is-tv":i.includes(o.po.TV)})},a=(e,t)=>({"data-product-type":e.content.bundle_type?.join(" "),"data-product-id":t.bundleId})}}]);
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.