@sunrise-upc/mobile-prod-card 1.0.36-beta.5 → 1.0.36-beta.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),n=require("@sunrise-upc/ajax-lib"),t=require("react-bootstrap/Modal"),o=require("react-bootstrap/CloseButton"),l=require("storyblok-rich-text-react-renderer-ts"),i=require("react-bootstrap"),r=require("react-bootstrap/Container"),d=require("react-bootstrap/Row"),a=require("react-bootstrap/Col"),c=require("js-cookie"),u=require("uuid"),s=require("react-multi-carousel"),m=require("react-bootstrap/Form"),v=require("react-loading-skeleton"),p=require("react-select"),_=require("react-dom");function h(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}h(".Button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n min-width: 32px;\r\n min-height: 32px;\r\n background-color: aliceblue;\r\n}\r\n\r\n.Button-primary {\r\n background-color: aqua; \r\n}\r\n.Button-secondary{\r\n background-color: burlywood;\r\n}\r\n.Button-error {\r\n background-color: red;\r\n}");class f{constructor(e){this.config={baseURL:"",cartURL:"",storyBlokURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.getSBUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.storyBlokURL)&&void 0!==n?n:""},this.config=e}}f.getInstance=()=>f.instance,f.create=e=>{f.instance=new f(e)};class g{constructor(e){this.config={assetPath:""},this.getAssetPath=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.assetPath)&&void 0!==n?n:""},this.config=e}}g.getInstance=()=>g.instance,g.create=e=>{g.instance=new g(e)};const b="ESHOP",x="v2/offer",y="carts/v2",E="?subscriptionType=",T="rest/cms/singlestory",w="rest/cms/dsource_entries?datasource=one-ecommerce-constant-keys";h(".loginModal {\r\n\talign-items: center;\r\n\tbackground-color: rgba(87, 84, 82, 0.4);\r\n\tcolor: #333333;\r\n\tdisplay: flex;\r\n\theight: 100%;\r\n\tjustify-content: center;\r\n\tleft: 0;\r\n\tpadding: 16px;\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\ttransition: opacity 3s;\r\n\twidth: 100%;\r\n\tz-index: 11;\r\n}\r\n.loginContainer {\r\n position: absolute;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 32px 32px 34px;\r\n background-color: #ffff;\r\n max-width: 500px;\r\n width: 100%;\r\n box-shadow: -1px 18px 25px 5px rgba(87, 84, 82, 0.4);\r\n }\r\n");h('@import "bootstrap/dist/css/bootstrap.linetable-countryOverlay-css";\r\n\r\n.linetable-countryOverlay-linkTextNew {\r\n color: #da291c;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.linetable-countryOverlay-utils-noWrap {\r\n white-space: nowrap;\r\n}\r\n\r\n.linetable-countryOverlay-utils-colWidth {\r\n max-width: 210px;\r\n}\r\n\r\n.linetable-countryOverlay-contain {\r\n display: flex;\r\n align-items: first baseline;\r\n padding-top: 10px;\r\n}\r\n\r\n.linetable-countryOverlay-image {\r\n width: 24px;\r\n height: 16px;\r\n}\r\n\r\n.linetable-countryOverlay-name {\r\n color: #000000;\r\n align-items: center;\r\n padding-left: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 32px;\r\n}\r\n.linetable-countryOverlay-blackthemecolor {\r\n color: #ffffff !important;\r\n}\r\n\r\n.linetable-countryOverlay-desktopView {\r\n display: block;\r\n}\r\n.linetable-countryOverlay-mobView {\r\n display: none;\r\n}\r\n@media (max-width: 767px) {\r\n .linetable-countryOverlay-linkTextNew {\r\n font-size: 14px;\r\n line-height: 24px;\r\n }\r\n}\r\n\r\n@media (min-width: 1440px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: block;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: none;\r\n }\r\n}\r\n@media (max-width: 1023px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: none;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: block;\r\n width: 100%;\r\n }\r\n}\r\n.reusbablelnetable-margin {\r\n\tmargin-left: 0;\r\n}\r\n');const k=e=>{switch(e){case"grey-600":return"falcon-grey-600";case"grey-500":return"falcon-grey-500";case"grey-100":return"falcon-grey-100";case"grey-400":return"falcon-grey-400";case"ice-white":return"falcon-ice-white";default:return""}},P=(e,n)=>{const t=[];let o,l,i=0;[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height="unset",t.push(null==l?void 0:l.clientHeight),i++)})),o=Math.max(...t),i=0,[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height=`${o}px`),i++}))},C=e=>{e=Number(e);let n=0;return n=new RegExp("^[0-9][^.]*$").test(e.toString())?e+".-":e.toFixed(2).replace(/\.00$/,""),n},S=e=>{const n="undefined"!=typeof window&&localStorage.getItem(e),t=new Date;if(!n)return null;let o={};try{if(o=JSON.parse(n),o.expiry&&t.getTime()>o.expiry)return V(e),null}catch(e){return n}return null==o?void 0:o.value},V=e=>{localStorage.removeItem(e)},N=()=>{const[n,t]=e.useState(0);return e.useEffect((()=>{const e=()=>{t(window.innerWidth)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),n>=1440?"large-desktop":n<1440&&n>=1024?"desktop":n<1024&&n>=768?"tablet":n<768&&n>0?"mobile":""},I=()=>{const[n,t]=e.useState(!1),o=()=>{const e=window.matchMedia("(pointer:coarse)");t(e.matches)};return e.useEffect((()=>(o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o))),[]),n},O=(e,n)=>null==e?void 0:e.replace(/{\w+}/g,(e=>n[e.substring(1,e.length-1)]||e)),L="none",D="falconDescription",A="falconAccordionList",B="spacer",R="fixnet",z="defaultWirelineBundle",F="defaultMobilePostpaidBundle",$="mobile",M="desktop",j="tablet",G={EN:"English",FR:"Français",IT:"Italiano",DE:"Deutsch"};h(".dbold {\r\n font-weight: 500;\r\n font-size: 40px;\r\n line-height: 60px;\r\n}\r\n");const U=({content:n})=>{var t;const o=k((null==n?void 0:n.textColor)&&n.textColor),l=(null==n?void 0:n.textColor)&&n.textColor!=L?o:"",i=(null==n?void 0:n.textColor)&&n.textColor===L?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{};return e.createElement(e.Fragment,null,n.headingStyle&&n.text&&"h1"===n.headingStyle?e.createElement("h1",{className:l,style:Object.assign({},i)},n.text," "):"h2"===n.headingStyle?e.createElement("h2",{className:`${l}`,style:Object.assign({},i)},n.text):"h3"===n.headingStyle?e.createElement("h3",{className:l,style:Object.assign({},i)},n.text):"h4"===n.headingStyle?e.createElement("h4",{className:l,style:Object.assign({},i)},n.text):e.createElement("div",{className:"dbold",style:Object.assign({},i)},n.text))},W=n=>{var t;const o=N(),r=I(),d="mobile"===o||"tablet"===o||r,a=null===(t=null==g?void 0:g.getInstance())||void 0===t?void 0:t.getAssetPath();return e.createElement("div",null,l.render(n.content,{markResolvers:{link:(t,o)=>{const{href:l,target:r,linktype:c}=o;return"email"===c?e.createElement("a",{href:`mailto:${l}`,target:null===r||"_self"===r?"_top":"_blank"},t):n.isIFrame?e.createElement("a",{href:l,target:null===r||"_self"===r?"_top":"_blank"},t):e.createElement(e.Fragment,null,(null==n?void 0:n.linkAsTooltip)&&(null==n?void 0:n.toolTipText)?e.createElement(i.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:d?"click":"hover",overlay:(null==n?void 0:n.toolTipText)?e.createElement(i.Popover,null,e.createElement(i.Popover.Body,null,null==n?void 0:n.toolTipText,d&&a&&e.createElement("img",{src:`${a}/icons/overlay-close.svg`,alt:"close",style:{float:"right"},width:24,height:24,onClick:()=>{var e;return null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.click()}}))):e.createElement(e.Fragment,null)},e.createElement("span",null,t)):e.createElement("a",{href:l,target:null===r?"":r},t))}}}))},q=({content:n})=>{var t;const o=k(n.textColor);return e.createElement(e.Fragment,null,e.createElement("div",{className:`d-inline-flex align-${n.textElementPosition}`},n.icon&&n.icon.filename&&e.createElement("img",{src:n.icon&&n.icon.filename,alt:n.icon&&n.icon.alt,title:n.icon&&n.icon.title,height:24,width:24}),n.text&&e.createElement("div",{className:`${n.icon&&n.icon.filename} ${n.textColor&&n.textColor!=L?o:""}`,style:Object.assign({},n.textColor&&n.textColor===L?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{})},e.createElement(W,{content:n.text}))))};h(".linetable-country-overlayModal {\r\n max-width: 900px;\r\n padding: 1rem 2rem;\r\n}\r\n");const X=({children:n,modalState:l,handler:i,noCloseButton:r,showBackBtn:d,overlay:a})=>{const[c,u]=e.useState(),[s,m]=e.useState();return e.useEffect((()=>{a.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"falconTitle"==(null==e?void 0:e.component)&&u(e),"falconDescription"==(null==e?void 0:e.component)&&m(e)}))}))}),[a]),e.createElement(e.Fragment,null,e.createElement(t,{centered:!0,show:l,onHide:i,keyboard:!1,dialogClassName:"linetable-country-overlayModal"},e.createElement(t.Header,null,e.createElement("div",{style:{display:r?"none":""}},e.createElement("div",{className:"d-flex align-items-center"},d&&e.createElement("div",{className:"me-sm-4 me-3 d-flex align-items-center",onClick:i},e.createElement("img",{src:"../../icons/left_arrow.svg"})),c&&e.createElement(U,{content:c}))),e.createElement("div",{style:{display:r?"none":""}},e.createElement(o,{className:"sr-modal-close",onClick:i}))),e.createElement(t.Body,null,n),e.createElement(t.Footer,null,s&&e.createElement(q,{content:s}))))};h(".linetable-dotLoader-loaderParent {\r\n width: 100%;\r\n position: fixed;\r\n z-index: 3;\r\n top: 0;\r\n left: 0;\r\n bottom: 0;\r\n right: 0;\r\n background-color: rgba(255, 255, 255, 0.8);\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-dotLoader-dotClass {\r\n justify-content: center;\r\n display: flex;\r\n z-index: 1;\r\n}\r\n.linetable-dotLoader-dotContent {\r\n display: flex;\r\n justify-content: center;\r\n animation: contentplay 2s linear 0s infinite;\r\n}\r\n@keyframes dotplay {\r\n 0%,\r\n 20% {\r\n transform: translateY(0);\r\n }\r\n 10% {\r\n transform: translateY(-20px);\r\n }\r\n}\r\n.linetable-dotLoader-dots:nth-child(1) {\r\n animation-delay: 0.4s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(2) {\r\n animation-delay: 0.8s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(3) {\r\n animation-delay: 1.2s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(4) {\r\n animation-delay: 1.6s;\r\n}\r\n.linetable-dotLoader-dots {\r\n margin: 5px 2px;\r\n width: 12px;\r\n height: 12px;\r\n border-radius: 50%;\r\n background: linear-gradient(180deg, #e2271e 0%, #ef7c3c 100%);\r\n animation: dotplay 2s linear 0s infinite;\r\n}\r\n@keyframes contentplay {\r\n 0% {\r\n opacity: 0.2;\r\n }\r\n 30% {\r\n opacity: 1;\r\n }\r\n}\r\n");const H=({keyParams:n})=>{const[t,o]=e.useState(0),[l,i]=e.useState({}),r={checkout:[null==l?void 0:l.uspFreeShipping,null==l?void 0:l.uspBestService,null==l?void 0:l.uspCheckout],loading:[null==l?void 0:l.loading]},d=n?r[`${n}`]:r.checkout;return e.useEffect((()=>{i(S("sbstaticcontent"))}),[]),e.useEffect((()=>{let e=d.length-1;o(e);const n=setInterval((()=>{o(e--),e<0&&(e=d.length-1)}),2e3);return()=>{clearTimeout(n)}}),[]),e.createElement("div",{className:"d-flex align-items-center justify-content-center linetable-dotLoader-loaderParent"},e.createElement("div",{className:"linetable-dotLoader-dotClass"},e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"})),e.createElement("div",null,e.createElement("h4",{className:"linetable-dotLoader-dotContent"},d[t]," ")))};function K(e,n,t,o){return new(t||(t=Promise))((function(l,i){function r(e){try{a(o.next(e))}catch(e){i(e)}}function d(e){try{a(o.throw(e))}catch(e){i(e)}}function a(e){var n;e.done?l(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(r,d)}a((o=o.apply(e,n||[])).next())}))}const Y=e=>{const n=[];return null==e||e.map((e=>{const t=Number(null==e?void 0:e.order)||999,o=null==e?void 0:e.cProd;o.sortOrder=t,null==n||n.push(o)})),null==n||n.sort(((e,n)=>(null==e?void 0:e.sortOrder)-(null==n?void 0:n.sortOrder))),n};let J=void 0!==typeof window&&c.get("sunriseAuth");J=J&&JSON.parse(J);const Z=(e,t,o,l)=>K(void 0,void 0,void 0,(function*(){var i;const r=S(`${e}_${t}_countryData`);if(r)return r;try{const r={language:t,type:"B2C"},d=null===(i=(yield n.CMSStoryblokServiceV2.get(o,r)).data)||void 0===i?void 0:i.stories;return d&&d.length>0&&((e,n,t)=>{let o=null;const l=new Date;o={value:n,expiry:t?l.getTime()+t:null},localStorage.setItem(e,JSON.stringify(o))})(`${e}_${t}_countryData`,d,l),d}catch(e){return console.error(e),e}})),Q=(e,t,o,l,i,r)=>K(void 0,void 0,void 0,(function*(){var d,a,s,m,v,p,_,h,f,g,x,E,T,w,k,P,C,S,N,I,O,L,D,A,B,z,F,M,j,G,U,W,q,X,H,K,Y,J,Z,Q,ee,ne,te,oe,le,ie,re,de,ae,ce;let ue={};if(i===R){let n="",l="";const i=null!==(d=c.get("one-commerce-linecheckcorrelationid"))&&void 0!==d?d:"",u=(e=>{var n,t,o;let l=[],i=void 0!==typeof window&&localStorage.getItem("lineCheckResponse");if(i){i=JSON.parse(i);const r=null===(n=null==i?void 0:i.originalLinecheckResponse)||void 0===n?void 0:n.sellableProducts;l=null===(o=null===(t=null==r?void 0:r.find((n=>(null==n?void 0:n.name)===e)))||void 0===t?void 0:t.access)||void 0===o?void 0:o[0]}return l})(null===(a=null==e?void 0:e[0])||void 0===a?void 0:a.id);ue={relatedParty:[{id:"anonymous",segment:"RESIDENTIAL"}],cartItem:[{itemType:"HOME",promotionId:o,items:[],note:[{author:"linecheckCorrelationId",text:i}]}]};const b={itemType:"MOBILE",promotionId:o,items:[]};if(null===(s=e[0])||void 0===s?void 0:s.isBundle)null===(v=null===(m=e[0])||void 0===m?void 0:m.bundledOffers)||void 0===v||v.map((e=>{var o,i,r,d,a,c,u,s,m,v,p,_,h,f,g,x,y,E,T;if(null===(i=null===(o=null==e?void 0:e.promotionInfo)||void 0===o?void 0:o[0])||void 0===i?void 0:i.id){const t=1==(null===(u=null===(c=null===(a=null===(d=null===(r=null==e?void 0:e.promotionInfo)||void 0===r?void 0:r[0])||void 0===d?void 0:d.hardwareGift)||void 0===a?void 0:a[0])||void 0===c?void 0:c.ids)||void 0===u?void 0:u.length)?null===(_=null===(p=null===(v=null===(m=null===(s=null==e?void 0:e.promotionInfo)||void 0===s?void 0:s[0])||void 0===m?void 0:m.hardwareGift)||void 0===v?void 0:v[0])||void 0===p?void 0:p.ids)||void 0===_?void 0:_[0]:"";"mobile"===(null===(h=null==e?void 0:e.productType)||void 0===h?void 0:h.toLowerCase())?(b.promotionId=null===(g=null===(f=null==e?void 0:e.promotionInfo)||void 0===f?void 0:f[0])||void 0===g?void 0:g.id,n=t):(ue.cartItem[0].promotionId=null===(y=null===(x=null==e?void 0:e.promotionInfo)||void 0===x?void 0:x[0])||void 0===y?void 0:y.id,l=t)}"tv"==(null===(E=null==e?void 0:e.productType)||void 0===E?void 0:E.toLowerCase())&&t?ue.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:t}):"mobile"===(null===(T=null==e?void 0:e.productType)||void 0===T?void 0:T.toLowerCase())?b.items.push({itemType:"RATEPLAN",id:null==e?void 0:e.id}):ue.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:null==e?void 0:e.id})})),l&&(null===(p=ue.cartItem[0].items)||void 0===p||p.push({itemType:"GIFT",id:l})),n&&b.items.push({itemType:"GIFT",id:n}),(null===(_=null==b?void 0:b.items)||void 0===_?void 0:_.length)>0&&(null===(h=null==ue?void 0:ue.cartItem)||void 0===h||h.push(b));else{const n=1==(null===(w=null===(T=null===(E=null===(x=null===(g=null===(f=null==e?void 0:e[0])||void 0===f?void 0:f.promotionInfo)||void 0===g?void 0:g[0])||void 0===x?void 0:x.hardwareGift)||void 0===E?void 0:E[0])||void 0===T?void 0:T.ids)||void 0===w?void 0:w.length)?null===(I=null===(N=null===(S=null===(C=null===(P=null===(k=null==e?void 0:e[0])||void 0===k?void 0:k.promotionInfo)||void 0===P?void 0:P[0])||void 0===C?void 0:C.hardwareGift)||void 0===S?void 0:S[0])||void 0===N?void 0:N.ids)||void 0===I?void 0:I[0]:"";ue.cartItem[0].items.push({itemType:null===(O=null==e?void 0:e[0])||void 0===O?void 0:O.productType,id:null===(L=null==e?void 0:e[0])||void 0===L?void 0:L.id}),n&&(null===(D=ue.cartItem[0].items)||void 0===D||D.push({itemType:"GIFT",id:n}))}r&&(null==r?void 0:r.length)>0&&(null==r||r.map((e=>{var n,t,o,l;"HOME"===(null==e?void 0:e.parentPoType)?null===(o=null===(t=null===(n=null==ue?void 0:ue.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}):null===(l=b.items)||void 0===l||l.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId})}))),(null==u?void 0:u.accessType)&&(null===(z=null===(B=null===(A=null==ue?void 0:ue.cartItem)||void 0===A?void 0:A[0])||void 0===B?void 0:B.note)||void 0===z||z.push({author:"lineCheckaccessType",text:null==u?void 0:u.accessType})),(null==u?void 0:u.timeSlot)&&(null===(j=null===(M=null===(F=null==ue?void 0:ue.cartItem)||void 0===F?void 0:F[0])||void 0===M?void 0:M.note)||void 0===j||j.push({author:"lineCheckEarliestActivationDate",text:null===(G=null==u?void 0:u.timeSlot)||void 0===G?void 0:G.start}));try{const e=(e=>{const n=e+"=";let t;return document.cookie.split(";").some((e=>{for(;" "===e.charAt(0);)e=e.substring(1);return 0===e.indexOf(n)&&(t=JSON.parse(decodeURIComponent(e.substring(n.length,e.length))),!0)})),t})("chAddressJson"),n=[{characteristic:{installationAddress:!0,country:"CH",city:null===(U=null==e?void 0:e.selectedAdd)||void 0===U?void 0:U.city,street1:null===(W=null==e?void 0:e.selectedAdd)||void 0===W?void 0:W.street,postCode:null===(q=null==e?void 0:e.selectedAdd)||void 0===q?void 0:q.postCode,street2:null===(X=null==e?void 0:e.selectedAdd)||void 0===X?void 0:X.houseNumber}}];ue.contactMedium=n}catch(e){console.log("issue at line check address addition in create cart ==>",e)}}else if(i===$){ue={relatedParty:[{segment:"RESIDENTIAL"}],cartItem:[{itemType:"MOBILE",promotionId:o,items:[{itemType:"RATEPLAN",id:(null===(H=null==e?void 0:e[0])||void 0===H?void 0:H.id)?null===(K=null==e?void 0:e[0])||void 0===K?void 0:K.id:e}]}]};const n=1==(null===(ne=null===(ee=null===(Q=null===(Z=null===(J=null===(Y=null==e?void 0:e[0])||void 0===Y?void 0:Y.promotionInfo)||void 0===J?void 0:J[0])||void 0===Z?void 0:Z.hardwareGift)||void 0===Q?void 0:Q[0])||void 0===ee?void 0:ee.ids)||void 0===ne?void 0:ne.length)?null===(de=null===(re=null===(ie=null===(le=null===(oe=null===(te=null==e?void 0:e[0])||void 0===te?void 0:te.promotionInfo)||void 0===oe?void 0:oe[0])||void 0===le?void 0:le.hardwareGift)||void 0===ie?void 0:ie[0])||void 0===re?void 0:re.ids)||void 0===de?void 0:de[0]:"";n&&(null===(ae=ue.cartItem[0].items)||void 0===ae||ae.push({itemType:"GIFT",id:n})),r&&(null==r?void 0:r.length)>0&&(null==r||r.map((e=>{var n,t,o;"HOME"!==(null==e?void 0:e.parentPoType)&&(null===(o=null===(t=null===(n=null==ue?void 0:ue.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}))})))}const se={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":b}},me=l+y;if((null===(ce=Object.keys(ue))||void 0===ce?void 0:ce.length)>0){const e=yield n.ApiServiceV2.getApiServiceInstance().post(me,ue,se).then((e=>{if(V("isB2BCustomer"),200==e.status)return null==e?void 0:e.data}));if(e.error)throw e.error;return e}})),ee=(e,t,o,l,i)=>K(void 0,void 0,void 0,(function*(){localStorage.removeItem("entertainment");const r={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":b}},d=o+x,a=l&&null==J?d+E+i:d,c=yield n.ApiServiceV2.getApiServiceInstance().post(a,e,r).then((e=>{if(200==e.status)return null==e?void 0:e.data}));return c.error?c.error:{[t]:c}})),ne=({linkText:n,product:t,metadata:o,modalTriggered:l,reuseableLineTable:i})=>{var c,u,s,m;const[v,p]=e.useState(!1),[_,h]=e.useState([]),[g,b]=e.useState(!0),[x,y]=e.useState(),[E,T]=e.useState([]),w=(null===(u=null===(c=null==t?void 0:t.testProductReference)||void 0===c?void 0:c[0])||void 0===u?void 0:u.reference)?null===(m=null===(s=null==t?void 0:t.testProductReference)||void 0===s?void 0:s[0])||void 0===m?void 0:m.reference:null==t?void 0:t.reference;let k;e.useEffect((()=>{_&&_.length>0&&_.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"countryListComponent"==(null==e?void 0:e.component)&&T(null==e?void 0:e.countryValues)}))}))}),[_]),e.useEffect((()=>{(null==E?void 0:E.length)>0&&(k=E.length,y(Math.ceil(k/3)))}),[E]);return e.createElement(e.Fragment,null,e.createElement(X,{modalState:v,handler:()=>{p(!1),"function"==typeof l&&l()},overlay:_},g&&e.createElement(H,{keyParams:"loading"}),!g&&e.createElement(e.Fragment,null,e.createElement(r,{className:"linetable-countryOverlay-desktopView"},e.createElement("div",null,e.createElement(d,{className:"linetable-countryOverlay-utils-noWrap"},e.createElement(a,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(d,null,E.slice(0,x).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(a,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(d,null,E.slice(x,2*x).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(a,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(d,null,E.slice(2*x,3*x).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name))))))))),e.createElement(r,{className:"linetable-countryOverlay-mobView"},e.createElement(d,null,e.createElement(a,null,e.createElement(d,null,E.map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))))))),e.createElement("span",{onClick:()=>{var e,n,t,r,d,a,c,u,s,m,_;p(!v),"function"==typeof l&&l();const g=(null===(r=null===(t=null===(n=null===(e=null==w?void 0:w.content)||void 0===e?void 0:e.body)||void 0===n?void 0:n[0])||void 0===t?void 0:t.countryList)||void 0===r?void 0:r.cached_url)?null===(s=null===(u=null===(c=null===(a=null===(d=null==w?void 0:w.content)||void 0===d?void 0:d.body)||void 0===a?void 0:a[0])||void 0===c?void 0:c.countryList)||void 0===u?void 0:u.cached_url)||void 0===s?void 0:s.replace(null==o?void 0:o.lang,""):null==w?void 0:w.replace(null==o?void 0:o.lang,""),x=null==g?void 0:g.replace("//",""),y=`${i?null===(m=null==f?void 0:f.getInstance())||void 0===m?void 0:m.getSBUrl():null===(_=null==f?void 0:f.getInstance())||void 0===_?void 0:_.getBaseUrl()}rest/cms/stories/?by_slugs=${x}`,E=null==w?void 0:w.name;Z(E,null==o?void 0:o.lang,y,864e5).then((e=>{e&&e.length>0&&h(e),b(!1)}))},className:`linetable-countryOverlay-linkTextNew display-5 ${i&&"reusbablelnetable-margin"}`},n))};h(".linetable-CardEntitlement-mobileProductEntitlement {\r\n margin: 0;\r\n padding: 0 16px 0 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementValue {\r\n display: flex;\r\n margin-bottom: 4px;\r\n align-items: center;\r\n font-size: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementIcon {\r\n align-self: flex-start;\r\n margin-right: 8px;\r\n}\r\n\r\n.linetable-CardEntitlement-entitlementIcon img {\r\n vertical-align: sub;\r\n}\r\n.linetable-CardEntitlement-animationTitle {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #3d3935;\r\n font-weight: 700;\r\n margin-bottom: auto;\r\n}\r\n.linetable-CardEntitlement-entitlementContent {\r\n display: inline-flex;\r\n margin-bottom: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementDescription {\r\n color: #3d3935;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n font-size: 16px;\r\n font-weight: 500;\r\n width: calc(100% - 32px);\r\n}\r\n");const te=e.createContext({indexKey:0,listLength:0,arrowUpIcon:"",arrowDownIcon:"",arrowLeftRed:""}),oe=({content:n,product:t,indexKey:o,showEntitleValue:l,metadata:i,modalTriggered:r})=>{var d,a,c,u;const s=e.useRef(null),m=e.useContext(te),v=()=>{P(`linetable-CardEntitlement-entitlementSection${m.indexKey}`,m.listLength)};return e.useEffect((()=>{setTimeout((()=>{(null==s?void 0:s.current)&&v()}),200),window.addEventListener("resize",v)}),[n]),e.createElement("div",{className:"linetable-CardEntitlement-mobileProductEntitlement",id:`linetable-CardEntitlement-entitlementSection${o}${m.indexKey}`,ref:s},e.createElement("div",{className:"row linetable-CardEntitlement-entitlementContent"},e.createElement("div",{className:"linetable-CardEntitlement-entitlementValue "},e.createElement(e.Fragment,null,(null==n?void 0:n.isblacktheme)?e.createElement(e.Fragment,null,(null===(d=null==n?void 0:n.blackFridayentitlementIcon)||void 0===d?void 0:d.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(a=null==n?void 0:n.blackFridayentitlementIcon)||void 0===a?void 0:a.filename,width:20,height:20}))):e.createElement(e.Fragment,null,(null===(c=null==n?void 0:n.entitlementIcon)||void 0===c?void 0:c.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(u=null==n?void 0:n.entitlementIcon)||void 0===u?void 0:u.filename,width:20,height:20}))),e.createElement("span",{className:"linetable-CardEntitlement-animationTitle entitlementDisplay"},null==n?void 0:n.entitlementName))),e.createElement("div",{className:"d-block"},n.entitlementDescription&&l&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementDescription"},null==n?void 0:n.entitlementDescription),(null==n?void 0:n.linkText)&&e.createElement(ne,{product:t,linkText:null==n?void 0:n.linkText,metadata:i,modalTriggered:r,reuseableLineTable:!1}))))};h(".linetable-card-linetable-card-flexGrid {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-card-productContainer {\r\n background-color: #fff;\r\n padding: 24px 0 16px;\r\n text-align: left;\r\n height: 100%;\r\n border-radius: 8px;\r\n}\r\n.linetable-card-productContainer hr {\r\n margin: 16px;\r\n}\r\n.linetable-card-introText {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n font-size: 16px;\r\n line-height: 24px;\r\n font-weight: 500;\r\n color: #587467;\r\n}\r\n.linetable-card-productTeaser {\r\n background-color: #fff;\r\n border-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n box-shadow: 0px 4px 12px 0px #57545233;\r\n}\r\n.linetable-card-prodHeading {\r\n font-size: 14px;\r\n line-height: 20px;\r\n color: #606060;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n}\r\n.linetable-card-titleContainer {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n}\r\n.linetable-card-productTitle {\r\n color: #1e1e1e;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n display: flex;\r\n align-items: baseline;\r\n justify-content: space-between;\r\n}\r\n.linetable-card-productTitle > h1,\r\n.linetable-card-productTitle > h2,\r\n.linetable-card-productTitle > h3,\r\n.linetable-card-productTitle > h4,\r\n.linetable-card-productTitle > h5,\r\n.linetable-card-productTitle > h6 {\r\n color: #1e1e1e !important;\r\n}\r\n.linetable-card-productTitle > h3 {\r\n font-size: 24px;\r\n line-height: 32px;\r\n}\r\n.linetable-card-productTitle > h2 {\r\n margin-right: 8px;\r\n}\r\n.linetable-card-prodDescription {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #333333;\r\n display: flex;\r\n font-weight: 400;\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-card-productTitle {\r\n height: auto;\r\n }\r\n}\r\n\r\n.linetable-card-productDetailSection{\r\n margin: 0 16px;\r\n}\r\n.linetable-card-productDetailSection img {\r\n vertical-align: bottom;\r\n margin-right: 8px;\r\n}\r\n.linetable-card-bottomConatiner {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: end;\r\n}");const le=({modalState:n,handler:t,showFooter:o,footerNode:l,children:r,width:d,height:a,noCloseButton:c,backButton:u})=>{const s=e.useContext(te);return e.useEffect((()=>{const e=document.querySelector(".linetable-product-modal .footer-main");e&&(e.style.zIndex="10");const n=document&&document.querySelector(".modal-dialog.linetable-product-modal");n&&(n.style.maxWidth=d,n.style.padding="0",n.style.transform="none");const t=document.querySelector(".linetable-product-modal .modal-content");t&&(t.style.height=a,t.style.backgroundColor="#F7F6F5");const o=document.querySelector(".linetable-product-modal .modal-header");o&&(o.style.position="absolute",o.style.top="0",o.style.zIndex="1",o.style.maxWidth="100%",o.style.background="#f8f8f8",o.style.width="100%");const l=document.querySelector(".linetable-product-modal .modal-body");l&&(l.style.background="#f8f8f8",l.style.paddingTop="70px")}),[a]),e.createElement(i.Modal,{scrollable:!1,show:n,onHide:t,keyboard:!1,dialogClassName:"linetable-product-modal"},e.createElement(i.Modal.Header,null,u&&e.createElement("div",{style:{justifyContent:"start",cursor:"pointer"},onClick:t},e.createElement(e.Fragment,null,(null==s?void 0:s.arrowLeftRed)&&e.createElement("img",{src:null==s?void 0:s.arrowLeftRed,width:24,height:24}),e.createElement("span",{style:{color:"#DA291C"}}," ",u))),e.createElement("div",{style:{display:c?"none":"",justifyContent:"end"}},e.createElement(i.CloseButton,{className:"sr-modal-close",onClick:t}))),e.createElement(i.Modal.Body,null,r),o&&e.createElement(i.Modal.Footer,null,l))};h(".linetable-sr-def-row {\r\n margin-left: auto;\r\n margin-right: auto;\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n max-width: 1308px;\r\n width: 100%;\r\n}\r\n\r\n.resusable-linetable {\r\n padding-left: 0;\r\n padding-right: 0;\r\n}\r\n\r\n@media (min-width: 1024px) and (max-width: 1439px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n@media (min-width: 768px) and (max-width: 1023px) {\r\n .linetable-sr-def-row {\r\n max-width: 720px;\r\n }\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n.linetable-sr-def-row .linetable-sr-def-row {\r\n padding: 0px;\r\n max-width: 100%;\r\n}");const ie=({children:n,resuablelineTable:t})=>e.createElement("div",{className:`linetable-sr-def-row linetable-sr-responsive-row\n ${t&&"resusable-linetable"}\n `},n);h(".linetable-falconAccordion-section {\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description {\r\n color: #3d3935;\r\n padding-bottom: 32px;\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description p a {\r\n color: #da291c;\r\n}\r\n\r\n.linetable-falconAccordion-container {\r\n box-shadow: 0 2px 4px rgba(87, 84, 82, 0.2);\r\n border-radius: 8px;\r\n overflow: hidden;\r\n padding: 0;\r\n}\r\n\r\n.linetable-falconAccordion-current-item {\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:first-child {\r\n border-radius: 8px 8px 0 0;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:last-child {\r\n border-bottom: none;\r\n border-radius: 0 0 8px 8px;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-item:hover {\r\n background-color: #f7f6f5;\r\n}\r\n\r\n.linetable-falconAccordion-wrapper {\r\n margin-left: 32px;\r\n margin-right: 32px;\r\n border-bottom: 1px solid #e6e3df;\r\n}\r\n\r\n.linetable-falconAccordion-title {\r\n color: #3d3935;\r\n font-style: normal;\r\n font-weight: bold;\r\n font-size: 16px;\r\n line-height: 24px;\r\n margin-right: 28px;\r\n min-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 24px 0;\r\n}\r\n\r\n.prod-card .accordion-body {\r\n padding: 8px 0 32px 0;\r\n color: #3d3935;\r\n text-align: left;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-button::after {\r\n position: absolute;\r\n top: 24px;\r\n right: 0;\r\n background-image: url('/ecom-int/icons/falcon-arrow-down.svg') !important;\r\n background-size: 24px 24px !important;\r\n background-size: unset;\r\n}\r\n\r\n.prod-card .accordion-button:not(.collapsed)::after {\r\n background-image: url('/ecom-int/icons/falcon-arrow-up.svg') !important;\r\n}\r\n\r\n.linetable-falconAccordion-disabled {\r\n opacity: 0.8;\r\n pointer-events: none;\r\n background-color: #e6e3df;\r\n}\r\n\r\n/* for mobile view */\r\n@media (max-width: 767px) {\r\n .prod-card .description {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .linetable-falconAccordion-item:hover {\r\n background-color: none;\r\n }\r\n\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n }\r\n\r\n .prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 16px 0;\r\n }\r\n\r\n .prod-card .accordion-body {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .prod-card .accordion-button::after {\r\n top: 16px;\r\n }\r\n}\r\n\r\n/* For tablet view */\r\n@media (max-width: 1023px) {\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 24px;\r\n margin-right: 24px;\r\n }\r\n}");const re=({content:n})=>{const t=null==n?void 0:n._uid;return e.createElement("div",{className:"prod-card"},e.createElement(i.Accordion,{flush:!0,defaultActiveKey:(null==n?void 0:n.alwaysOpen)?t:""},e.createElement(i.Accordion.Item,{eventKey:t,className:`${(null==n?void 0:n.disabled)&&"linetable-falconAccordion-disabled"} linetable-falconAccordion-item`},e.createElement("div",{className:"linetable-falconAccordion-wrapper"},e.createElement(i.Accordion.Header,null,e.createElement("span",{className:"linetable-falconAccordion-title"},null==n?void 0:n.title)),e.createElement(i.Accordion.Body,null,(null==n?void 0:n.bodyText)&&e.createElement(W,{content:null==n?void 0:n.bodyText}))))))},de=({content:n})=>{var t,o,l,i,r,d,a;return e.createElement("section",{className:"linetable-falconAccordion-section"},e.createElement(ie,null,e.createElement(e.Fragment,null,(null==n?void 0:n.title)&&(null===(t=null==n?void 0:n.title)||void 0===t?void 0:t.length)>0&&e.createElement(U,{content:null===(o=null==n?void 0:n.title)||void 0===o?void 0:o[0]}),(null==n?void 0:n.description)&&(null===(l=null==n?void 0:n.description)||void 0===l?void 0:l.length)>0&&e.createElement("div",{className:"linetable-falconAccordion-description"},e.createElement(q,{content:null===(i=null==n?void 0:n.description)||void 0===i?void 0:i[0]})),(null==n?void 0:n.accordions)&&(null===(r=null==n?void 0:n.accordions)||void 0===r?void 0:r.length)>0&&(null===(d=null==n?void 0:n.accordions[0])||void 0===d?void 0:d.title)&&e.createElement("div",{className:"linetable-falconAccordion-container"},null===(a=null==n?void 0:n.accordions)||void 0===a?void 0:a.map((n=>e.createElement("div",{tabIndex:0,key:null==n?void 0:n._uid,className:"linetable-falconAccordion-current-item"},e.createElement(re,{content:Object.assign({},n)}))))))))},ae=({content:n})=>{const t=(e=>{switch(e){case"grey-100":return"falcon-background-grey-100";case"ice-white":return"falcon-background-ice-white";case"transparent":return"falcon-background-transparent";default:return""}})(null==n?void 0:n.backgroundColor),o=(e=>{switch(e){case"rubyglow-diagonal":return"falcon-gradient-rubyglow-diagonal";case"rubyglow-vertical":return"falcon-gradient-rubyglow-vertical";case"pinksky-diagonal":return"falcon-gradient-pinksky-diagonal";case"pinksky-vertical":return"falcon-gradient-pinksky-vertical";case"bluehaze-diagonal":return"falcon-gradient-bluehaze-diagonal";case"bluehaze-vertical":return"falcon-gradient-bluehaze-vertical";case"greencloud-diagonal":return"falcon-gradient-greencloud-diagonal";case"greencloud-vertical":return"falcon-gradient-greencloud-vertical";case"peachfog-diagonal":return"falcon-gradient-peachfog-diagonal";case"peachfog-vertical":return"falcon-gradient-peachfog-vertical";case"darkblue-haze":return"falcon-gradient-dark-blue-haze";default:return""}})(null==n?void 0:n.gradientBackground),l=(null==n?void 0:n.gradientBackground)===L?t:o;return e.createElement("div",null,n.height?e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.height}px`}}):e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.desktopHeight}px`}}),e.createElement("div",{className:`d-block d-sm-none ${l} `,style:{height:`${n.mobHeight}px`}}))};h(".linetable-productDetailsText {\r\n color: #da291c;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n}");h('.linetable-staticPrice-priceWrapper {\r\n\tborder-radius: 8px;\r\n\tborder: 1px solid #E6E3DF;\r\n\tmargin: 16px 16px 0 16px;\r\n\tpadding: 8px 16px;\r\n\tfont-size: 14px;\r\n\tfont-weight: 400;\r\n\tline-height: 20px;\r\n}\r\n\r\n.linetable-staticPrice-discountPriceSection {\r\n\tcolor: #2E6199;\r\n\tmargin-right: 8px;\r\n}\r\n\r\n.linetable-staticPrice-discountedPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-basePrice {\r\n\tfont-size: 20px;\r\n\tfont-weight: 700;\r\n\tline-height: 28px;\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.linetable-staticPrice-priceStrikeout::after {\r\n\tcontent: "";\r\n\tposition: absolute;\r\n\tright: -1px;\r\n\tleft: -2px;\r\n\ttop: 50%;\r\n\twidth: 100%;\r\n\tborder-bottom: 2px solid #da291c;\r\n\ttransform: rotate(-18.22deg);\r\n}\r\n\r\n.linetable-staticPrice-noDiscountPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-contractDescription {\r\n\tmargin-top: 6px;\r\n}\r\n\r\n.linetable-staticPrice-addToCart {\r\n\tmargin-top: 8px;\r\n\twidth: 100%;\r\n\tpadding: 10px 24px;\r\n\tborder-radius: 25px;\r\n\tbackground: #DA291C;\r\n\tcolor: #FFFFFF;\r\n\tfont-size: 16px;\r\n\tfont-weight: 700;\r\n\tline-height: 24px;\r\n\tborder: 0px;\r\n}\r\n\r\n.linetable-staticPrice-productDetails-priceWrapper {\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n}\r\n\r\n@media (min-width: 425px) {\r\n\t.linetable-staticPrice-productDetails-addToCart {\r\n\t\tmin-width: 120px;\r\n\t}\r\n}');const ce=({content:n,addToCart:t,variant:o})=>{const l=e.useContext(te),i=()=>{P("linetable-staticPrice-priceSection",l.listLength)};e.useEffect((()=>{setTimeout((()=>{i()}),200),window.addEventListener("resize",i)}),[n]);return e.createElement("div",{className:`linetable-staticPrice-priceWrapper ${"productDetails"===o&&"linetable-staticPrice-productDetails-priceWrapper"}`},e.createElement("div",{id:`linetable-staticPrice-priceSection${null==l?void 0:l.indexKey}`},e.createElement("div",{className:"linetable-staticPrice-priceSection"},(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},null==n?void 0:n.discountPriceValue),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+((null==n?void 0:n.isEnableDiscountPrice)?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},C(null==n?void 0:n.priceValue)),!(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement(e.Fragment,null,null==n?void 0:n.priceDuration))),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},null==n?void 0:n.contractDescription)),e.createElement("div",null,e.createElement("button",{className:`linetable-staticPrice-addToCart ${"productDetails"===o&&"linetable-staticPrice-productDetails-addToCart"}`,onClick:()=>{"function"==typeof t&&t(n)}},null==n?void 0:n.addButton)))},ue=({content:n,updatedContent:t,modalTriggered:o,addToCart:l})=>{var i;const[r,d]=e.useState(!1),a=null==n?void 0:n.subscriptionDetailModal;let c=[],u="";a&&(null==a?void 0:a.length)>0&&(null==a||a.map((e=>{c=null==e?void 0:e.modalBody,null==e||e.productPriceVariant,u=null==e?void 0:e.backButton,null==e||e.priceChangeContent})));const s=()=>{d(!r),"function"==typeof o&&o()};return e.createElement(e.Fragment,null,r&&e.createElement(le,{modalState:r,handler:s,showFooter:!1,height:"100%",width:"883px",backButton:u},e.createElement(e.Fragment,null,null==c?void 0:c.map(((n,t)=>e.createElement(ie,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===D&&e.createElement(q,{content:n,key:t}),(null==n?void 0:n.component)===B&&e.createElement(ae,{content:n}),(null==n?void 0:n.component)===A&&e.createElement(de,{content:n}))))),(null==n?void 0:n.isEnablePrice)&&e.createElement(ce,{content:n,addToCart:l,variant:"productDetails"}))),e.createElement("span",{onClick:s,className:"linetable-productDetailsText"},null!==(i=null==t?void 0:t.subscription)&&void 0!==i?i:null==t?void 0:t.subscriptionText))},se=({content:n,showPrice:t,addToCart:o})=>{var l,i,r,d,a;const c=null!==(l=null==t?void 0:t.base)&&void 0!==l?l:0;let u=null!==(d=null===(r=null===(i=null==t?void 0:t.discount)||void 0===i?void 0:i[0])||void 0===r?void 0:r.value)&&void 0!==d?d:0;null===(a=null==t?void 0:t.discount)||void 0===a||a.map((e=>{1==(null==e?void 0:e.cycleStart)&&(u=null==e?void 0:e.value)}));const s=null==t?void 0:t.contractDuration;return e.createElement("div",{className:"linetable-staticPrice-priceWrapper"},(null==t?void 0:t.base)?e.createElement(e.Fragment,null,u>0&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},C(u)),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+(u>0?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},C(c)),0===u&&(null==n?void 0:n.priceDuration)),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},s&&0!==s?e.createElement("div",null):e.createElement("div",null,null==n?void 0:n.contractDescription))):"",e.createElement("div",null,e.createElement("button",{className:"linetable-staticPrice-addToCart",onClick:o},null==n?void 0:n.addButton)))};var me={carouselContainer:"ProductTeaser-module_carouselContainer__RzBpK",arrowButton:"ProductTeaser-module_arrowButton__-AkY4",leftArrow:"ProductTeaser-module_leftArrow__Ybrjm",rightArrow:"ProductTeaser-module_rightArrow__MYs5F",stageTeaserTab:"ProductTeaser-module_stageTeaserTab__VYRxL",stageTeaserTabActive:"ProductTeaser-module_stageTeaserTabActive__Wu5nT",carousel_dot:"ProductTeaser-module_carousel_dot__zxG-A",carouselItem:"ProductTeaser-module_carouselItem__vtLwf",teaserImage:"ProductTeaser-module_teaserImage__sQ3ed",productDetailsWrapper:"ProductTeaser-module_productDetailsWrapper__0jFlz",titleSection:"ProductTeaser-module_titleSection__YqXUJ",featureSection:"ProductTeaser-module_featureSection__T-YzP",contentWrapper:"ProductTeaser-module_contentWrapper__3GKwX",priceContainer:"ProductTeaser-module_priceContainer__CzBhB",contentMobWrapper:"ProductTeaser-module_contentMobWrapper__9rRLQ",heading:"ProductTeaser-module_heading__Xim2-",fadeOutText:"ProductTeaser-module_fadeOutText__nKr5i",fadeInText:"ProductTeaser-module_fadeInText__Ux98m",paragraph:"ProductTeaser-module_paragraph__hUonu",description:"ProductTeaser-module_description__s-lyV",extraSpace:"ProductTeaser-module_extraSpace__HFJ2A",toolTip:"ProductTeaser-module_toolTip__KL7Xx",gradiantBox:"ProductTeaser-module_gradiantBox__Eys-K",addOnSection:"ProductTeaser-module_addOnSection__G4zhX",featureList:"ProductTeaser-module_featureList__gmPS1",features:"ProductTeaser-module_features__o2jMu",featureIcon:"ProductTeaser-module_featureIcon__PbcQN",horizontalLine:"ProductTeaser-module_horizontalLine__Nfj9U",horizontalLineDark:"ProductTeaser-module_horizontalLineDark__Sg-Ou",addOnSectionIcon:"ProductTeaser-module_addOnSectionIcon__9-EoX",toggleSection:"ProductTeaser-module_toggleSection__2az0R",toggle:"ProductTeaser-module_toggle__GClvg",serviceUnavail:"ProductTeaser-module_serviceUnavail__Pe52H",priceWrapper:"ProductTeaser-module_priceWrapper__7TC6y",slider:"ProductTeaser-module_slider__-V4R1",line:"ProductTeaser-module_line__mbJxT",pricetxt:"ProductTeaser-module_pricetxt__YYSmd",clicked:"ProductTeaser-module_clicked__A9jUK",priceDuration:"ProductTeaser-module_priceDuration__TeeO9",callCart:"ProductTeaser-module_callCart__YLJSL",arrowIcon:"ProductTeaser-module_arrowIcon__OFm89",disableCallcart:"ProductTeaser-module_disableCallcart__-M8Od",priceDesc:"ProductTeaser-module_priceDesc__8Er0h"};h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ProductTeaser-module_carouselContainer__RzBpK {\n position: static;\n margin-top: 32px;\n border-radius: 24px;\n}\n@media (min-width: 768px) {\n .ProductTeaser-module_carouselContainer__RzBpK {\n box-shadow: 0px 20px 30px -8px rgba(87, 84, 82, 0.4);\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n background: #ffffff;\n box-shadow: 0px 4px 12px rgba(87, 84, 82, 0.2);\n border-radius: 24px;\n font-size: 16px;\n height: 44px;\n width: 44px;\n padding: 10px;\n position: absolute;\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n color: #da291c;\n font-size: 20px;\n display: block;\n font-family: revicons;\n text-align: center;\n z-index: 1;\n position: relative;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n content: "\\e825";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F:disabled {\n background: #e6e3df;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before {\n content: "\\e824";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm:disabled {\n background: #e6e3df;\n}\n\n.ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n border-radius: 40px;\n border: none;\n color: #5f5955;\n background-color: #ffffff;\n font-size: 16px;\n line-height: 24px;\n font-weight: 700;\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n max-width: 158px;\n }\n}\n\n.ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n color: #ffffff;\n background: #da291c;\n}\n\n.ProductTeaser-module_carousel_dot__zxG-A {\n border-radius: 50px;\n background-color: #ffffff;\n border: 2px solid rgba(61, 57, 53, 0.25);\n padding: 1px;\n width: fit-content;\n margin: 0 auto;\n position: absolute;\n top: -24px;\n height: fit-content;\n}\n\n.ProductTeaser-module_carouselItem__vtLwf {\n position: relative;\n width: 100%;\n}\n.ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n object-fit: cover;\n object-position: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_carouselItem__vtLwf {\n display: flex;\n justify-content: center;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n border-radius: 24px;\n position: absolute;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz {\n position: absolute;\n display: flex;\n justify-content: space-between;\n left: 107px;\n right: 107px;\n top: 129px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n left: unset;\n top: unset;\n height: fit-content;\n margin: auto 0;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: 0px;\n top: 0;\n }\n}\n\n.ProductTeaser-module_contentWrapper__3GKwX {\n position: absolute;\n left: 80px;\n top: 40px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_contentWrapper__3GKwX {\n max-width: 460px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_contentWrapper__3GKwX {\n left: 24px;\n max-width: 400px;\n }\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n text-align: center;\n left: unset;\n top: unset;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: unset;\n top: unset;\n margin-top: 24px;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_priceContainer__CzBhB {\n position: relative;\n top: unset;\n bottom: unset;\n margin-top: 24px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n position: relative;\n margin: 0 16px;\n width: 100%;\n }\n}\n@media (max-width: 320px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n margin: 0 8px;\n }\n}\n\n.ProductTeaser-module_titleSection__YqXUJ {\n position: absolute;\n top: 173px;\n left: 107px;\n color: #ffffff;\n font-weight: 700;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n max-width: 412px;\n }\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n top: unset;\n left: unset;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n text-align: center;\n top: 32px;\n left: unset;\n width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 16px;\n line-height: 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 14px;\n line-height: 20px;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeOutText__nKr5i {\n opacity: 0;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeInText__Ux98m {\n opacity: 1;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 28px;\n line-height: 36px;\n margin: 8px 0 12px 0;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 20px;\n line-height: 28px;\n max-width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_description__s-lyV {\n font-weight: 400;\n font-size: 16px;\n line-height: 20px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_extraSpace__HFJ2A {\n top: 62px;\n }\n}\n\n.ProductTeaser-module_featureSection__T-YzP {\n position: absolute;\n right: 107px;\n top: 129px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_featureSection__T-YzP {\n max-width: 412px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP {\n right: unset;\n top: unset;\n margin-top: 397px;\n font-size: 14px;\n line-height: 20px;\n background-color: #ffffff;\n color: #3D3935;\n border-radius: 12px;\n position: relative;\n height: fit-content;\n }\n}\n.ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: brightness(0) invert(1);\n margin-left: 16px;\n display: flex;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: none;\n }\n}\n\n.ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px;\n background: rgba(0, 0, 0, 0.2);\n backdrop-filter: blur(12.5px);\n color: #ffffff;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n background: none;\n color: unset;\n backdrop-filter: unset;\n }\n}\n\n.ProductTeaser-module_featureList__gmPS1 {\n padding: 4px 20px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu {\n display: flex;\n align-items: center;\n margin: 12px 0;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu a {\n color: #ffffff;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu .ProductTeaser-module_featureIcon__PbcQN {\n margin-right: 10px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #ffffff;\n text-decoration: underline;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #3d3935;\n }\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLine__Nfj9U, .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n opacity: 0.5;\n background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);\n height: 1px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px 12px 0px 0px;\n }\n}\n\n.ProductTeaser-module_addOnSection__G4zhX {\n padding: 16px 20px;\n margin-top: 16px;\n display: flex;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_addOnSectionIcon__9-EoX {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R {\n margin-left: auto;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R .ProductTeaser-module_toggle__GClvg {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input {\n cursor: pointer;\n margin-top: unset;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input:focus {\n border: unset !important;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_addOnSection__G4zhX {\n border-radius: 0px 0px 12px 12px;\n margin-top: 0px;\n padding: 12px 20px;\n align-items: center;\n }\n}\n\n.ProductTeaser-module_priceContainer__CzBhB {\n position: absolute;\n bottom: 40px;\n width: 100%;\n color: #ffffff;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H {\n text-align: center;\n margin-bottom: 10px;\n font-size: 16px;\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H img {\n margin-right: 8px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB {\n color: #3D3935;\n position: static;\n display: flex;\n justify-content: center;\n flex-direction: column;\n padding: 16px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y {\n font-size: 24px;\n line-height: 32px;\n font-weight: 700;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y {\n margin-right: unset;\n flex-direction: column;\n font-size: 20px;\n line-height: 28px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n height: 32px;\n overflow: hidden;\n margin-right: 12px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT {\n transition: transform 0.5s ease;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n margin-right: 6px;\n display: inline-block;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n margin-bottom: 8px;\n margin-right: unset;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_clicked__A9jUK .ProductTeaser-module_line__mbJxT {\n transform: translateY(-100%);\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_priceDuration__TeeO9 {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n display: inline-block;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n font-weight: 700;\n border: none;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 28px;\n display: flex;\n align-items: center;\n font-size: 16px;\n line-height: 24px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL .ProductTeaser-module_arrowIcon__OFm89 {\n margin-left: 8px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 14px 24px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n max-width: 100%;\n display: flex;\n justify-content: center;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_disableCallcart__-M8Od {\n background-color: #e6e3df;\n color: #b3aeaa;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 10px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h {\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n }\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n margin: 0 16px;\n height: 1px;\n background-color: #e6e3df;\n }\n}');class ve{constructor(e){this.config={baseURL:"",cartURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.config=e}}ve.getInstance=()=>ve.instance,ve.create=e=>{ve.instance=new ve(e)};var pe="ToolTip-module_tooltipicon__U5Rvt",_e="ToolTip-module_benefits__-gI-y";h(".ToolTip-module_tooltipicon__U5Rvt {\n height: 24px;\n margin-left: 4px;\n min-width: 20px;\n width: 24px;\n cursor: pointer;\n}\n\n.ToolTip-module_benefits__-gI-y img {\n width: 20px !important;\n height: 20px !important;\n}");const he=({content:n,tooltipClass:t="",isBenefit:o=!1})=>{var l;const r=N(),d=I(),a=null===(l=null==g?void 0:g.getInstance())||void 0===l?void 0:l.getAssetPath();return n&&e.createElement(i.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:""+("mobile"===r||"tablet"===r||d?"click":"hover"),overlay:n&&e.createElement(i.Popover,{id:"popover-basic"},e.createElement(i.Popover.Body,null,n))},e.createElement("div",{className:`${pe} ${t} ${o&&_e}`},a&&e.createElement("img",{src:`${a}/icons/tooltip_icon.svg`,width:24,height:24,alt:""})))},fe="addtocart",ge="Sunrise",be="Sticky Line Table",xe="gaEvent",ye="Stage Teaser",Ee="Line Table",Te="tab_click",we=(e,n)=>{var t,o,l,i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y;const{itemCategory:E,location:T}=n,w=null!==(r=null===(i=null===(l=null===(o=null===(t=null==e?void 0:e.prices)||void 0===t?void 0:t[0])||void 0===o?void 0:o.priceAlteration)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value)&&void 0!==r?r:0,k=null!==(c=null===(a=null===(d=null==e?void 0:e.prices)||void 0===d?void 0:d[0])||void 0===a?void 0:a.value)&&void 0!==c?c:0;return{item_id:null!==(u=null==e?void 0:e.id)&&void 0!==u?u:"",item_name:null!==(s=null==e?void 0:e.id)&&void 0!==s?s:"",affiliation:null!==(p=null===(v=null===(m=null==e?void 0:e.promotionInfo)||void 0===m?void 0:m[0])||void 0===v?void 0:v.campaignId)&&void 0!==p?p:"",coupon:"",discount:w&&Number(w),index:0,item_brand:ge,item_category:null!==(h=null!==(_=null==E?void 0:E.productName)&&void 0!==_?_:null==E?void 0:E.id)&&void 0!==h?h:"MOBILE",item_category2:E?"BUNDLE":"MOBILE",item_category3:"",item_category4:"",item_category5:"",item_list_id:E?"Fixnet":"Mobile",item_list_name:E?"Fixnet":"Mobile",item_variant:null!==(g=null!==(f=null==E?void 0:E.productName)&&void 0!==f?f:null==E?void 0:E.id)&&void 0!==g?g:null==e?void 0:e.id,location_id:T,price:k&&Number(k),quantity:1,promotion_id:null!==(y=null===(x=null===(b=null==e?void 0:e.promotionInfo)||void 0===b?void 0:b[0])||void 0===x?void 0:x.campaignId)&&void 0!==y?y:""}},ke=(e,n,t)=>{const o=[];return null==e||e.map((e=>{var l;(null==e?void 0:e.bundledOffers)?null===(l=null==e?void 0:e.bundledOffers)||void 0===l||l.map((l=>{const i=""==n?e:n;o.push(we(l,{itemCategory:i,location:t}))})):o.push(we(e,{location:t}))})),o},Pe=(e,n,t)=>{var o,l,i,r;const d=null===(i=null===(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.derivedPrice)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value;return{currency:"CHF",value:null!==(r=d&&Number(d))&&void 0!==r?r:0,items:ke(e,n,t)}},Ce=(e,n,t,o)=>{var l;"addtocart"===e&&window.dataLayer.push({event:"add_to_cart",event_name:"add_to_cart",ecommerce:Pe(n,t,o),transaction_type:(null===(l=null==n?void 0:n[0])||void 0===l?void 0:l.isBundle)?"BUNDLE":"MOBILE_ORDER"})},Se=(e,n,t,o)=>{var l,i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y,E,T;const{itemCategory:w,location:k}=n,P=null!==(a=null===(d=null===(r=null===(i=null===(l=null==e?void 0:e.prices)||void 0===l?void 0:l[0])||void 0===i?void 0:i.priceAlteration)||void 0===r?void 0:r[0])||void 0===d?void 0:d.value)&&void 0!==a?a:0,C=null!==(s=null===(u=null===(c=null==e?void 0:e.prices)||void 0===c?void 0:c[0])||void 0===u?void 0:u.value)&&void 0!==s?s:0,S={item_id:null!==(m=null==e?void 0:e.id)&&void 0!==m?m:"",item_name:null!==(v=null==e?void 0:e.id)&&void 0!==v?v:"",affiliation:null!==(h=null===(_=null===(p=null==e?void 0:e.promotionInfo)||void 0===p?void 0:p[0])||void 0===_?void 0:_.campaignId)&&void 0!==h?h:"",coupon:"",discount:P&&Number(P),index:0,item_brand:ge,item_category:null!==(g=null!==(f=null==w?void 0:w.title)&&void 0!==f?f:null==w?void 0:w.id)&&void 0!==g?g:"MOBILE",item_category2:t,item_category3:"",item_category4:"",item_category5:"",item_list_id:w?"Fixnet":"Mobile",item_list_name:w?"Fixnet":"Mobile",item_variant:null!==(x=null!==(b=null==w?void 0:w.title)&&void 0!==b?b:null==w?void 0:w.id)&&void 0!==x?x:null==e?void 0:e.id,location_id:k,price:C&&Number(C),quantity:1,promotion_id:null!==(T=null===(E=null===(y=null==e?void 0:e.promotionInfo)||void 0===y?void 0:y[0])||void 0===E?void 0:E.campaignId)&&void 0!==T?T:""};return o&&(S.item_available=o),S},Ve=(e,n,t,o)=>{const l=[];let i="";return null==e||e.map((e=>{var r;if(null==e?void 0:e.bundledOffers)null===(r=null==e?void 0:e.bundledOffers)||void 0===r||r.map((r=>{const d=""==n?e:n;o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no"),l.push(Se(r,{itemCategory:d,location:t},"Bundle",i))}));else if("INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers))l.push(Se(e,{location:t},"MOBILE"));else{const n={id:null==e?void 0:e.id};o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no"),l.push(Se(e,{itemCategory:n,location:t},"INTERNET",i))}})),l},Ne=(e,n,t)=>{let o;null==e||e.map((e=>{o=(null==e?void 0:e.bundledOffers)?"Fixnet":"INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers)?"Mobile":"Internet"}));return{item_list_id:o,item_list_name:o,items:Ve(e,n,t)}},Ie=(e,n,t,o)=>{var l,i,r,d;const a=null===(r=null===(i=null===(l=null==e?void 0:e[0])||void 0===l?void 0:l.derivedPrice)||void 0===i?void 0:i[0])||void 0===r?void 0:r.value;return{currency:"CHF",value:null!==(d=a&&Number(a))&&void 0!==d?d:0,items:Ve(e,n,t,o)}},Oe=(e,n,t,o,l)=>{var i,r;"view"===e?null===window||void 0===window||window.dataLayer.push({event:"view_item_list",event_name:"view_item_list",ecommerce:Ne(n,t,o)}):"addtocart"===e?null===window||void 0===window||window.dataLayer.push({event:"add_to_cart",event_name:"add_to_cart",ecommerce:Ie(n,t,o),transaction_type:(null===(i=null==n?void 0:n[0])||void 0===i?void 0:i.isBundle)?"BUNDLE":"INTERNET"===(null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.productType)?"INTERNET":"MOBILE_ORDER"}):"available"===e&&window.dataLayer.push({event:"view_item",event_name:"view_item",ecommerce:Ie(n,t,o,l)})},Le=({content:n,slides:t,index:o,offeringData:l,lineCheckCallBack:i,setEnableToggle:r})=>{var d,a,u,s,v,p,_,h,f,b,x,y,E,T,w,k,P,S,V,I,O,L,D,A,B,G,U;const q=null===(d=null==g?void 0:g.getInstance())||void 0===d?void 0:d.getAssetPath(),X=null===(a=null==ve?void 0:ve.getInstance())||void 0===a?void 0:a.getCartUrl(),[K,Y]=e.useState(!1),J=c.get("chAddressJson"),Z=N(),[ee,ne]=e.useState(!1),te=()=>{var o,r,d,a,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,P;let S,V;const N=localStorage.getItem("lineCheckResponse"),I=N&&JSON.parse(N),O=K?null==t?void 0:t.tvProductId:null==t?void 0:t.productId,L=J&&(null==I?void 0:I.eligibleBundle.includes(O));return S=(null===(o=l[null==t?void 0:t.productId])||void 0===o?void 0:o.derivedPrice)?null===(a=null===(d=null===(r=l[null==t?void 0:t.productId])||void 0===r?void 0:r.derivedPrice)||void 0===d?void 0:d[0])||void 0===a?void 0:a.value:null===(m=null===(s=null===(u=l[null==t?void 0:t.productId])||void 0===u?void 0:u.prices)||void 0===s?void 0:s[0])||void 0===m?void 0:m.value,V=(null===(v=l[null==t?void 0:t.tvProductId])||void 0===v?void 0:v.derivedPrice)?null===(h=null===(_=null===(p=l[null==t?void 0:t.tvProductId])||void 0===p?void 0:p.derivedPrice)||void 0===_?void 0:_[0])||void 0===h?void 0:h.value:null===(b=null===(g=null===(f=l[null==t?void 0:t.tvProductId])||void 0===f?void 0:f.prices)||void 0===g?void 0:g[0])||void 0===b?void 0:b.value,e.createElement("div",{className:me.priceContainer},J&&(null===(x=null==Object?void 0:Object.keys(J))||void 0===x?void 0:x.length)>0&&!L&&(null==t?void 0:t.productType)===R&&e.createElement("div",{className:me.serviceUnavail},e.createElement("img",{src:`${q}/icons/not-available.svg`,alt:"",width:24,height:24}),null==n?void 0:n.serviceabilityError),(null===(T=null===(E=null===(y=l[null==t?void 0:t.productId])||void 0===y?void 0:y.prices)||void 0===E?void 0:E[0])||void 0===T?void 0:T.value)>0&&e.createElement("span",{className:me.priceWrapper},e.createElement("div",{className:`${me.slider} ${K&&(null==t?void 0:t.productType)===R&&me.clicked}`},S&&e.createElement("div",{className:me.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:me.pricetxt},null==t?void 0:t.priceTxt),C(S),e.createElement("p",{className:me.priceDuration},null==t?void 0:t.conDuration)),V&&e.createElement("div",{className:me.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:me.pricetxt},null==t?void 0:t.priceTxt),C(V),e.createElement("p",{className:me.priceDuration},null==t?void 0:t.conDuration))),e.createElement("button",{onClick:()=>(e=>{var n,t,o,r,d;if((null==e?void 0:e.productType)===R){const r=localStorage.getItem("lineCheckResponse"),d=r&&JSON.parse(r),a=c.get("one-commerce-linecheckcorrelationid"),u=K?null==e?void 0:e.tvProductId:null==e?void 0:e.productId,s=J&&(null===(n=null==d?void 0:d.eligibleBundle)||void 0===n?void 0:n.includes(u));d&&J&&a?s&&(0!==(null===(t=Object.keys(l))||void 0===t?void 0:t.length)&&Oe(fe,[l[null==e?void 0:e.productId]],"",ye),ne(!0),0!==(null===(o=Object.keys(l))||void 0===o?void 0:o.length)&&Q([l[u]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:z,X,null==e?void 0:e.productType).then((n=>{var t;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==n?void 0:n.id,{path:"/"}),c.set("cartProduct",u,{path:"/"}),c.remove("landline"),window.location.href=null===(t=null==e?void 0:e.summaryURL)||void 0===t?void 0:t.cached_url})).catch((e=>{console.log(e),ne(!1)})).finally((()=>{ne(!1)}))):"function"==typeof i&&i()}else(null==e?void 0:e.productType)===$&&(ne(!0),0!==(null===(r=Object.keys(l))||void 0===r?void 0:r.length)&&Oe(fe,[l[null==e?void 0:e.productId]],"",ye),0!==(null===(d=Object.keys(l))||void 0===d?void 0:d.length)&&Q([l[null==e?void 0:e.productId]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:F,X,null==e?void 0:e.productType).then((n=>{var t;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==n?void 0:n.id,{path:"/"}),c.set("cartProduct",null==e?void 0:e.productId,{path:"/"}),window.location.href=null===(t=null==e?void 0:e.summaryURL)||void 0===t?void 0:t.cached_url})).catch((e=>{console.log(e),ne(!1)})).finally((()=>{ne(!1)})))})(t),className:`${me.callCart} ${J&&(null===(w=null==Object?void 0:Object.keys(J))||void 0===w?void 0:w.length)>0&&!L&&(null==t?void 0:t.productType)===R?me.disableCallcart:""}`,disabled:J&&(null===(k=null==Object?void 0:Object.keys(J))||void 0===k?void 0:k.length)>0&&!L&&(null==t?void 0:t.productType)===R},null==t?void 0:t.buttonLbl,e.createElement("img",{className:me.arrowIcon,src:null===(P=null==n?void 0:n.btnIcon)||void 0===P?void 0:P.filename,alt:"submit",width:24,height:24}))),e.createElement("div",{className:me.priceDesc},null==t?void 0:t.priceDesc))};return e.createElement("div",{className:me.carouselItem,key:o},ee&&e.createElement(H,{keyParams:"loading"}),"large-desktop"===Z&&(null===(u=null==t?void 0:t.desktopBGImage)||void 0===u?void 0:u.filename)&&e.createElement("img",{src:null===(s=null==t?void 0:t.desktopBGImage)||void 0===s?void 0:s.filename,alt:"",width:"100%",height:"550px",className:me.teaserImage}),(Z===j||Z===M)&&(null===(v=null==t?void 0:t.tabBGImage)||void 0===v?void 0:v.filename)&&e.createElement("img",{src:null===(p=null==t?void 0:t.tabBGImage)||void 0===p?void 0:p.filename,alt:"",width:"100%",height:"550px",className:me.teaserImage}),Z===$&&(null===(_=null==t?void 0:t.mobileBGImage)||void 0===_?void 0:_.filename)&&e.createElement("img",{src:null===(h=null==t?void 0:t.mobileBGImage)||void 0===h?void 0:h.filename,alt:"",width:"100%",height:"500px",className:me.teaserImage}),e.createElement("div",{className:`${Z===j||Z===M?me.contentWrapper:me.contentMobWrapper}`},e.createElement("div",{className:me.productDetailsWrapper},e.createElement("div",{className:`${me.titleSection} ${(null===(f=null==n?void 0:n.productTeaserSlides)||void 0===f?void 0:f.length)>1&&me.extraSpace}`},(null==t?void 0:t.heading)&&e.createElement(e.Fragment,null,!K&&e.createElement("div",{className:`${me.heading}`},null==t?void 0:t.heading),(null==t?void 0:t.tvSubHeading)&&K&&e.createElement("div",{className:`${me.heading} ${K?me.fadeInText:me.fadeOutText}`},null==t?void 0:t.tvSubHeading)),(null==t?void 0:t.subHeading)&&e.createElement("div",{className:me.paragraph},null==t?void 0:t.subHeading),(null==t?void 0:t.description)&&e.createElement("div",{className:me.description},e.createElement(W,{content:null==t?void 0:t.description}))),e.createElement("div",{className:me.featureSection},(null===(b=null==t?void 0:t.details)||void 0===b?void 0:b.length)>0&&e.createElement("div",{className:me.featureList},null===(x=(null==t?void 0:t.details)||[])||void 0===x?void 0:x.map(((n,t)=>{var o,l,i;return e.createElement(e.Fragment,null,t>0&&Z!==$&&e.createElement("div",{className:me.horizontalLine}),e.createElement("div",{className:me.features},(null===(o=null==n?void 0:n.icon)||void 0===o?void 0:o.filename)&&e.createElement("img",{className:me.featureIcon,src:Z===$?null===(l=null==n?void 0:n.mobIcon)||void 0===l?void 0:l.filename:null===(i=null==n?void 0:n.icon)||void 0===i?void 0:i.filename,alt:"icon",width:24,height:24}),(null==n?void 0:n.text)&&e.createElement(e.Fragment,null,e.createElement("div",{className:"me-auto"},e.createElement(W,{content:null==n?void 0:n.text,linkAsTooltip:""!==(null==n?void 0:n.linkTxt),toolTipText:null==n?void 0:n.linkTxt})),(null==n?void 0:n.tooltipTxt)&&e.createElement(he,{content:null==n?void 0:n.tooltipTxt,tooltipClass:me.toolTip}))))}))),Z===$&&(null==t?void 0:t.productType)===R&&(null===(y=Object.keys(l))||void 0===y?void 0:y.length)>0&&e.createElement("div",{className:me.horizontalLineDark}),(null==t?void 0:t.productType)===R&&(null===(E=null==t?void 0:t.tvDetails)||void 0===E?void 0:E.length)>0&&""!==(null==t?void 0:t.tvProductId)&&e.createElement("div",{className:me.addOnSection},e.createElement("img",{src:Z===$?null===(k=null===(w=null===(T=null==t?void 0:t.tvDetails)||void 0===T?void 0:T[0])||void 0===w?void 0:w.mobIcon)||void 0===k?void 0:k.filename:null===(V=null===(S=null===(P=null==t?void 0:t.tvDetails)||void 0===P?void 0:P[0])||void 0===S?void 0:S.icon)||void 0===V?void 0:V.filename,className:me.addOnSectionIcon,alt:"tv",width:24,height:24}),e.createElement(W,{content:null===(O=null===(I=null==t?void 0:t.tvDetails)||void 0===I?void 0:I[0])||void 0===O?void 0:O.text}),e.createElement("span",{className:`d-flex align-items-center ${me.toggleSection}`},e.createElement("span",{className:me.toggle},null==t?void 0:t.tvPrice),e.createElement(m,null,e.createElement(m.Check,{type:"switch",readOnly:!0,onClick:()=>{var e,n,o,l,i,d,a,c,u,s;Y(!K),r(!K),c=K?"toggle_off_configurator":"toggle_on_configurator",u=null==t?void 0:t.heading,s=(null===(a=null===(d=null===(i=null===(l=null===(o=null===(n=null===(e=null==t?void 0:t.tvDetails)||void 0===e?void 0:e[0])||void 0===n?void 0:n.text)||void 0===o?void 0:o.content)||void 0===l?void 0:l[0])||void 0===i?void 0:i.content)||void 0===d?void 0:d[0])||void 0===a?void 0:a.text).replace(/[^a-zA-Z ]/g,""),window.dataLayer.push({event:xe,event_name:c,headline:u,selection:s})},checked:K})),(null===(D=null===(L=null==t?void 0:t.tvDetails)||void 0===L?void 0:L[0])||void 0===D?void 0:D.tooltipTxt)&&e.createElement(he,{content:null===(B=null===(A=null==t?void 0:t.tvDetails)||void 0===A?void 0:A[0])||void 0===B?void 0:B.tooltipTxt,tooltipClass:me.toolTip}))),Z===$&&(null===(G=Object.keys(l))||void 0===G?void 0:G.length)>0&&e.createElement(e.Fragment,null,e.createElement("div",{className:me.horizontalLineDark}),te()))),Z!==$&&(null===(U=Object.keys(l))||void 0===U?void 0:U.length)>0&&e.createElement(e.Fragment,null,te())))};var De={tabblock:"LineTableV3Refined-module_tabblock__S6m9X",tabcontainer:"LineTableV3Refined-module_tabcontainer__NKVXX",tabcontent:"LineTableV3Refined-module_tabcontent__bIL32",tabcontentactive:"LineTableV3Refined-module_tabcontentactive__UK3d4",tabcontentinactive:"LineTableV3Refined-module_tabcontentinactive__-mxXT",titlecontainer:"LineTableV3Refined-module_titlecontainer__goMFH",title:"LineTableV3Refined-module_title__U9oaa",description:"LineTableV3Refined-module_description__Gq-74",selected:"LineTableV3Refined-module_selected__UlBFL",inactiveicon:"LineTableV3Refined-module_inactiveicon__kqk3d",activeicon:"LineTableV3Refined-module_activeicon__D6zyq",productcenter:"LineTableV3Refined-module_productcenter__HDUzl",bundleproductcard:"LineTableV3Refined-module_bundleproductcard__Jy3iE",flexgrid:"LineTableV3Refined-module_flexgrid__D2wrK",productcontainer:"LineTableV3Refined-module_productcontainer__O9HbU",highlightBorder:"LineTableV3Refined-module_highlightBorder__DHKGR",highlightText:"LineTableV3Refined-module_highlightText__TTJZU",headersection:"LineTableV3Refined-module_headersection__yhoV0",titlesection:"LineTableV3Refined-module_titlesection__gd-Fl",productheader:"LineTableV3Refined-module_productheader__8rWWf",productdescription:"LineTableV3Refined-module_productdescription__sr-av",ordersection:"LineTableV3Refined-module_ordersection__E2ufE",pricesection:"LineTableV3Refined-module_pricesection__hr3kd",productcontractduration:"LineTableV3Refined-module_productcontractduration__NwfGg",productdetailslink:"LineTableV3Refined-module_productdetailslink__Fswzd",benefitssection:"LineTableV3Refined-module_benefitssection__dF1-F",overlay:"LineTableV3Refined-module_overlay__pBYdY",addsmartphone:"LineTableV3Refined-module_addsmartphone__NgpJF",promocontainer:"LineTableV3Refined-module_promocontainer__kAHqj",disabled:"LineTableV3Refined-module_disabled__hN2WZ",buttontext:"LineTableV3Refined-module_buttontext__LzgmC",swapButton:"LineTableV3Refined-module_swapButton__3zQV7"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontainer__NKVXX {\n border: 1px solid #3d3935;\n border-radius: 32px;\n display: flex;\n margin-bottom: 0;\n width: auto;\n padding: 4px;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontainer__NKVXX {\n border-radius: 8px;\n }\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontent__bIL32 {\n align-items: center;\n border-radius: 35px;\n cursor: pointer;\n display: flex;\n font-size: 16px;\n font-weight: 700;\n justify-content: center;\n line-height: 24px;\n padding: 8px 12px;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontent__bIL32 {\n border-radius: 8px;\n }\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentactive__UK3d4 {\n background-color: #da291c;\n border-radius: 35px;\n color: white !important;\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentactive__UK3d4:hover {\n background-color: #961c13;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentactive__UK3d4 {\n border-radius: 8px;\n }\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentinactive__-mxXT:hover {\n color: #961c13;\n}\n.LineTableV3Refined-module_tabblock__S6m9X input[type=radio] {\n display: none;\n}\n\n.LineTableV3Refined-module_titlecontainer__goMFH .LineTableV3Refined-module_title__U9oaa {\n font-size: 24px;\n font-weight: 700;\n line-height: 30px;\n padding-top: 20px;\n text-align: center;\n}\n.LineTableV3Refined-module_titlecontainer__goMFH .LineTableV3Refined-module_description__Gq-74 {\n font-size: 16px;\n font-weight: 24px;\n text-align: center;\n}\n\n.LineTableV3Refined-module_selected__UlBFL {\n align-items: center;\n color: #606060;\n display: inline-flex;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n margin-bottom: 12px;\n margin-right: 50px;\n margin-top: 4px;\n}\n.LineTableV3Refined-module_selected__UlBFL .LineTableV3Refined-module_inactiveicon__kqk3d {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n.LineTableV3Refined-module_selected__UlBFL .LineTableV3Refined-module_activeicon__D6zyq {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n\n.LineTableV3Refined-module_productcenter__HDUzl {\n align-items: center;\n flex-direction: column;\n height: 100%;\n margin-left: 10px;\n margin-right: 10px;\n text-align: center;\n}\n\n.LineTableV3Refined-module_bundleproductcard__Jy3iE {\n align-items: center;\n flex-direction: column;\n height: 100%;\n margin-left: 10px;\n margin-right: 10px;\n text-align: left;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_bundleproductcard__Jy3iE {\n margin-left: 8px;\n margin-right: 8px;\n }\n}\n\n.LineTableV3Refined-module_flexgrid__D2wrK {\n display: flex;\n}\n\n.LineTableV3Refined-module_productcontainer__O9HbU {\n background-color: #fff;\n border: 4px solid transparent;\n border-radius: 8px;\n box-shadow: 0 2px 4px 0 rgba(87, 84, 82, 0.2);\n justify-content: space-between;\n padding: 16px;\n position: relative;\n}\n\n.LineTableV3Refined-module_highlightBorder__DHKGR {\n border: 4px solid #587467;\n border-radius: 8px;\n}\n\n.LineTableV3Refined-module_highlightText__TTJZU {\n align-items: center;\n background-color: #587467;\n border-radius: 8px;\n color: #fff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 28px;\n line-height: 20px;\n min-height: 24px;\n padding: 4px 8px;\n position: absolute;\n top: -18px;\n width: fit-content;\n}\n\n.LineTableV3Refined-module_headersection__yhoV0 {\n padding-bottom: 8px;\n}\n\n.LineTableV3Refined-module_titlesection__gd-Fl {\n align-items: flex-start;\n display: flex;\n justify-content: space-between;\n}\n\n.LineTableV3Refined-module_productheader__8rWWf {\n font-size: 28px;\n font-weight: 700;\n line-height: 36px;\n margin-bottom: 8px;\n}\n\n.LineTableV3Refined-module_productdescription__sr-av {\n color: #587467;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.LineTableV3Refined-module_ordersection__E2ufE {\n border-top: 1px solid #e6e3df;\n margin-top: 15px;\n padding: 8px;\n text-align: center;\n}\n\n.LineTableV3Refined-module_pricesection__hr3kd {\n justify-content: center;\n}\n\n.LineTableV3Refined-module_productcontractduration__NwfGg {\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n}\n\n.LineTableV3Refined-module_productdetailslink__Fswzd {\n color: #da291c;\n cursor: pointer;\n font-size: 16px;\n line-height: 24px;\n text-decoration: underline;\n}\n\n.LineTableV3Refined-module_benefitssection__dF1-F {\n padding-top: 16px;\n}\n\n.LineTableV3Refined-module_overlay__pBYdY {\n cursor: default;\n display: block;\n opacity: 0.4;\n pointer-events: none;\n}\n\n.LineTableV3Refined-module_addsmartphone__NgpJF img {\n margin-right: 10px;\n vertical-align: bottom;\n}\n\n.LineTableV3Refined-module_promocontainer__kAHqj {\n align-items: center;\n background: #2e6199;\n border-radius: 8px;\n color: #ffffff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 28px;\n line-height: 20px;\n min-height: 24px;\n padding: 4px 8px;\n position: absolute;\n top: -18px;\n width: fit-content;\n}\n\n.LineTableV3Refined-module_disabled__hN2WZ {\n opacity: 0.4;\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n}\n\n.LineTableV3Refined-module_buttontext__LzgmC {\n font-size: 16px;\n line-height: 24px;\n color: #ffffff;\n font-weight: bold;\n text-align: center;\n}\n\n.LineTableV3Refined-module_swapButton__3zQV7 {\n display: flex;\n flex-direction: column-reverse;\n}");const Ae=n=>{var t,o;const l={superLargeDesktop:{breakpoint:{max:1e4,min:1440},items:4},desktop:{breakpoint:{max:1440,min:1024},items:3},tablet:{breakpoint:{max:1023,min:768},items:2},mobile:{breakpoint:{max:767,min:0},items:1,partialVisibilityGutter:(null===(t=null==n?void 0:n.children)||void 0===t?void 0:t.length)>1?40:5}},i=N(),r=e.useRef(),d=parseInt(n.carouselIndex,10);let a=!1;return e.useEffect((()=>{const e=window.innerWidth;a=e<767,setTimeout((()=>{var e;(!a&&d>2||a)&&(null===(e=r.current)||void 0===e||e.goToSlide(d,!1))}),400)}),[n.children.length]),e.createElement(s,{responsive:l,renderButtonGroupOutside:!0,partialVisible:!0,swipeable:!0,autoPlay:!1,shouldResetAutoplay:!1,arrows:"mobile"!==i,showDots:"mobile"===i||(null===(o=null==n?void 0:n.children)||void 0===o?void 0:o.length)>3,ref:r,customTransition:"transform 1s ease"},n.children)};var Be={productdetailswrapper:"ProductDetailsV3-module_productdetailswrapper__e1kPi",configheadersection:"ProductDetailsV3-module_configheadersection__p8XVS",displayname:"ProductDetailsV3-module_displayname__-EW8R",configdetailssection:"ProductDetailsV3-module_configdetailssection__yMamD",disabled:"ProductDetailsV3-module_disabled__tsjRY",showmore:"ProductDetailsV3-module_showmore__oIuyq",newmodal:"ProductDetailsV3-module_newmodal__C9g8C",tvHeading:"ProductDetailsV3-module_tvHeading__xdTqD",changeBtn:"ProductDetailsV3-module_changeBtn__WzRWX",optioncontainer:"ProductDetailsV3-module_optioncontainer__gUve-",optionlist:"ProductDetailsV3-module_optionlist__xVV8H",optiontitle:"ProductDetailsV3-module_optiontitle__eFcLL",optionwrapper:"ProductDetailsV3-module_optionwrapper__OqPW5",text:"ProductDetailsV3-module_text__U2B2W",pricecontainer:"ProductDetailsV3-module_pricecontainer__e8RuB",discountedprice:"ProductDetailsV3-module_discountedprice__trCaV",duration:"ProductDetailsV3-module_duration__KqhC6",basePriceAfterDiscount:"ProductDetailsV3-module_basePriceAfterDiscount__mOab8",pricedisplay:"ProductDetailsV3-module_pricedisplay__MXeXL",blockskeleton:"ProductDetailsV3-module_blockskeleton__OhQ-8"};h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ProductDetailsV3-module_productdetailswrapper__e1kPi {\n border-top: 1px solid #e6e3df;\n padding: 16px 0;\n}\n\n.ProductDetailsV3-module_configheadersection__p8XVS {\n display: inline-flex;\n}\n\n.ProductDetailsV3-module_displayname__-EW8R {\n align-items: center;\n display: flex;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n padding: 0 8px;\n}\n\n.ProductDetailsV3-module_configdetailssection__yMamD {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding-left: 32px;\n}\n\n.ProductDetailsV3-module_disabled__tsjRY {\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n opacity: 0.4;\n}\n\n.ProductDetailsV3-module_showmore__oIuyq {\n color: #da291c;\n cursor: pointer;\n padding-left: 0;\n}\n\n.ProductDetailsV3-module_newmodal__C9g8C {\n align-items: center;\n border: 1px solid black;\n border-radius: 8px;\n cursor: pointer;\n display: flex;\n font-size: 14px;\n line-height: 20px;\n margin-bottom: 4px;\n margin-top: 8px;\n min-height: 38px;\n}\n.ProductDetailsV3-module_newmodal__C9g8C .ProductDetailsV3-module_tvHeading__xdTqD {\n font-weight: 700;\n margin-left: 10px;\n width: 100%;\n}\n.ProductDetailsV3-module_newmodal__C9g8C .ProductDetailsV3-module_changeBtn__WzRWX {\n color: #da291c;\n}\n.ProductDetailsV3-module_newmodal__C9g8C > img {\n margin: 4px 10px 0 4px;\n}\n\n.ProductDetailsV3-module_optioncontainer__gUve- {\n background: rgba(153, 178, 167, 0.1);\n border: 1px solid #B6C8C0;\n border-radius: 8px;\n padding: 12px 16px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H {\n margin-top: 2px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H .ProductDetailsV3-module_optiontitle__eFcLL {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H .ProductDetailsV3-module_optionwrapper__OqPW5 {\n color: #5f5955;\n display: flex;\n font-size: 14px;\n font-weight: 500;\n justify-content: space-between;\n line-height: 20px;\n margin-top: 12px;\n min-height: 24px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H .ProductDetailsV3-module_optionwrapper__OqPW5 .ProductDetailsV3-module_text__U2B2W > div > p > b {\n color: #5e94cf;\n}\n\n.ProductDetailsV3-module_pricecontainer__e8RuB {\n justify-content: center;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_discountedprice__trCaV {\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_duration__KqhC6 {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_basePriceAfterDiscount__mOab8 {\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n padding-left: 10px;\n position: relative;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_basePriceAfterDiscount__mOab8::after {\n border-bottom: 2px solid #e6003c;\n content: "";\n left: 8px;\n position: absolute;\n right: -1px;\n top: 50%;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_pricedisplay__MXeXL {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n padding: 4px;\n}\n\n.ProductDetailsV3-module_blockskeleton__OhQ-8 {\n bottom: 5px;\n height: 15px;\n top: 5px;\n}');const Re=({content:n,entitlementConfig:t,indexKey:o,listlength:l,showModalPopup:i,sbStaticConstants:r,tabIndex:d,countryList:a,metadata:c})=>{var u;const[s,m]=e.useState(!1),v=e.useRef(null),p=null===(u=null==g?void 0:g.getInstance())||void 0===u?void 0:u.getAssetPath();e.useEffect((()=>{setTimeout((()=>{_()}),100)}),[s]);const _=()=>{P(`product-configv3${d}`,l),P(`detailsectionv3${d}`,l)};return e.createElement("div",{ref:v},e.createElement("div",{className:Be.productdetailswrapper},e.createElement("div",{className:Be.configheadersection,style:{width:"100%"}},(null==n?void 0:n.icon)?e.createElement("span",null,e.createElement("img",{src:null==n?void 0:n.icon,alt:"img",width:24,height:24,className:Be.imagecontainer})):"",e.createElement("span",{className:Be.displayname},null==n?void 0:n.name),(null==n?void 0:n.tooltip)?e.createElement("div",{className:Be.bundletooltip,style:{marginLeft:"auto"}},e.createElement(he,{content:null==n?void 0:n.tooltip})):""),e.createElement("div",{className:Be.configdetailssection},(null==n?void 0:n.tvChannelName)&&"TV"===(null==n?void 0:n.poType)&&e.createElement("div",{className:Be.newmodal,onClick:()=>{i()}},e.createElement("div",{className:Be.tvHeading},null==n?void 0:n.tvChannelName),e.createElement("div",{className:Be.changeBtn},r.changeText),e.createElement("img",{src:`${p}/icons/chevron-down-red.svg`,height:24,width:24,alt:""})),(null==n?void 0:n.includeDescription)?e.createElement("div",{className:Be.productdetailsdescription,id:`entitledespV3${o}`},e.createElement(W,{content:null==n?void 0:n.description})):e.createElement(e.Fragment,null,(null==n?void 0:n.includeEntitlement)&&t&&(null==t?void 0:t.map(((n,t)=>e.createElement(e.Fragment,null,t<2||t>1&&s?e.createElement("div",{className:Be.entitlementvalue},(null==n?void 0:n.icon)&&e.createElement("div",{className:Be.entitlementicon},e.createElement("img",{src:null==n?void 0:n.icon,width:20,height:20})),e.createElement("div",{className:(null==n?void 0:n.isDisabled)?Be.disabled:""},null==n?void 0:n.entitlement,(null==n?void 0:n.toolTipText)&&e.createElement("div",{className:Be.bundletooltip},e.createElement(he,{content:null==n?void 0:n.toolTipText})))):"")))),(null==t?void 0:t.length)>2&&e.createElement("div",{className:Be.showmore,onClick:()=>m(!s)},s?null==r?void 0:r.show_less:null==r?void 0:r.show_more)),(null==n?void 0:n.linkText)&&e.createElement(ne,{product:a,linkText:null==n?void 0:n.linkText,metadata:c,reuseableLineTable:!0}))))};var ze="SkeletonLoader-module_reactloadingskeletonV3__hLl73";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.SkeletonLoader-module_reactloadingskeletonV3__hLl73 {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n background-color: var(--base-color);\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n position: relative;\n user-select: none;\n overflow: hidden;\n}\n\n.SkeletonLoader-module_reactloadingskeletonV3__hLl73::after {\n content: " ";\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: linear-gradient(90deg, var(--base-color), var(--highlight-color), var(--base-color));\n transform: translateX(-100%);\n animation-name: SkeletonLoader-module_react-loading-skeleton__G8Drm;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n\n@media (prefers-reduced-motion) {\n .SkeletonLoader-module_reactloadingskeletonV3__hLl73 {\n --pseudo-element-display: none; /* Disable animation */\n }\n}\n.SkeletonLoader-module_skeletontittle__tKku- {\n height: 50px;\n}\n\n.SkeletonLoader-module_skeletonline__BsblE {\n height: 15px;\n margin: 8px 0;\n}');const Fe=({count:n=1,stylename:t=""})=>e.createElement("div",null,e.createElement(v,{className:`${ze} ${t}`,count:n})),$e=({content:n,priceCollection:t,toggleSwitch:o,sbStaticConstants:l})=>{var i,r,d,a,c,u;const s=null!==(i=null==t?void 0:t.base)&&void 0!==i?i:0;let m=null!==(a=null===(d=null===(r=null==t?void 0:t.discount)||void 0===r?void 0:r[0])||void 0===d?void 0:d.value)&&void 0!==a?a:0;null===(c=null==t?void 0:t.discount)||void 0===c||c.map((e=>{1==(null==e?void 0:e.cycleStart)&&(m=null==e?void 0:e.value)}));const v=null==t?void 0:t.discount,p=null==t?void 0:t.int_fmc,_=null==t?void 0:t.mob_fmc;let h=!1;return e.createElement("div",null,Number(s)>0?e.createElement(e.Fragment,null,e.createElement("div",{className:`${Be.pricecontainer}`},e.createElement("span",{className:`${Be.discountedprice} ${o&&!(p>0||_>0)?"":o||p>0||_>0||(null==v?void 0:v.length)>0?Be.promo:""}`},C(m>0&&!o?m:s),e.createElement("span",{className:`${Be.duration}`},null==l?void 0:l.mt)),s&&(p>0||_>0||!o&&v.length>0)&&e.createElement("span",{className:`${Be.basePriceAfterDiscount}`},C(s)),e.createElement("div",null,null==n?void 0:n.promoText)),!o&&!_&&!p&&(null==v?void 0:v.length)>0&&(null===(u=null==v?void 0:v[0])||void 0===u?void 0:u.cycleEnd)&&e.createElement("div",null,e.createElement("div",{className:Be.pricedisplay},v.length>0&&v.map((n=>(720===(null==n?void 0:n.cycleEnd)&&(h=!0),e.createElement(e.Fragment,null," ",e.createElement("span",{className:Be.pricelabel},h?null==l?void 0:l.lifetime_label:e.createElement(e.Fragment,null," ",1!=n.cycleStart&&e.createElement(e.Fragment,null,"CHF"," ",C(n.value))," ",1===n.cycleStart?O(null==l?void 0:l.promo_first_lt,[n.cycleEnd]):O(null==l?void 0:l.promo_next_lt,[n.cycleEnd-n.cycleStart+1]))))))),!h&&e.createElement("span",null," ",O(null==l?void 0:l.promo_then_lt,[C(s)]))))):e.createElement(Fe,{stylename:Be.blockskeleton}))};var Me="ProductDetailsV2-module_productmodal__2B7qv",je="ProductDetailsV2-module_container__dH9t4",Ge="ProductDetailsV2-module_backbtn__5E2Ow",Ue="ProductDetailsV2-module_closebtn__vonVN",We="ProductDetailsV2-module_cartbtn__lmC7O",qe="ProductDetailsV2-module_check-footer__iuqqZ",Xe="ProductDetailsV2-module_footer-linetablev3__bo9Qj";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n@media (min-width: 1024px) {\n .ProductDetailsV2-module_productmodal__2B7qv {\n min-width: 884px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductDetailsV2-module_productmodal__2B7qv {\n min-width: 740px;\n }\n}\n.ProductDetailsV2-module_productmodal__2B7qv .modal-body {\n padding: 0 16px 16px;\n}\n@media (max-width: 767px) {\n .ProductDetailsV2-module_productmodal__2B7qv .modal-body {\n padding: 12px;\n }\n}\n.ProductDetailsV2-module_productmodal__2B7qv .modal-content {\n background-color: #f7f6f5;\n border-radius: 8px;\n box-shadow: 0px 20px 30px -8px rgba(87, 84, 82, 0.4);\n}\n.ProductDetailsV2-module_productmodal__2B7qv .modal-content .modal-header {\n border-bottom: none !important;\n}\n.ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_container__dH9t4 {\n display: flex;\n align-items: center;\n margin-left: 16px;\n}\n.ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_container__dH9t4 .ProductDetailsV2-module_backbtn__5E2Ow {\n color: #da291c;\n}\n@media (max-width: 767px) {\n .ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_container__dH9t4 {\n margin-left: 12px;\n }\n}\n.ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_closebtn__vonVN .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n\n.ProductDetailsV2-module_cartbtn__lmC7O {\n cursor: pointer;\n text-align: center;\n width: fit-content;\n float: right;\n}\n.ProductDetailsV2-module_cartbtn__lmC7O .primarybutton {\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .ProductDetailsV2-module_cartbtn__lmC7O {\n position: inherit;\n width: auto;\n top: 0;\n right: auto;\n }\n}\n\n.ProductDetailsV2-module_check-footer__iuqqZ {\n position: relative;\n bottom: 0;\n margin: 24px 16px;\n padding: 8px 16px;\n border: 1px solid #e6e3df;\n border-radius: 8px;\n}\n.ProductDetailsV2-module_check-footer__iuqqZ .ProductDetailsV2-module_footer-linetablev3__bo9Qj {\n width: 100%;\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.ProductDetailsV2-module_back-button__U8Wjz {\n position: fixed;\n top: 0;\n padding: 16px 0;\n}\n\n.ProductDetailsV2-module_modal-price__jlNZA {\n padding: 16px 0 24px;\n}\n\n.ProductDetailsV2-module_productDetailstext__Mg-EX {\n color: #3d3935;\n text-decoration: underline;\n}\n\n.ProductDetailsV2-module_productDetailstextNew__w3s0l {\n color: #da291c;\n text-decoration: underline;\n}\n\n.ProductDetailsV2-module_textColor__tQQxl {\n color: #ffffff;\n text-decoration: underline;\n}");const He=({modalState:n,handler:l,showFooter:i,footerNode:r,children:d,width:a,height:c,backButton:u})=>{var s;const m=null===(s=null==g?void 0:g.getInstance())||void 0===s?void 0:s.getAssetPath();return e.useEffect((()=>{const e=document&&(null===document||void 0===document?void 0:document.querySelector(".product-modal .footer-main"));e&&(e.style.zIndex="10");const n=document&&(null===document||void 0===document?void 0:document.querySelector(".modal-dialog.product-modal"));n&&(n.style.maxWidth=a,n.style.padding="0",n.style.transform="none");const t=document&&(null===document||void 0===document?void 0:document.querySelector(".product-modal .modal-content"));t&&(t.style.height=c,t.style.backgroundColor="#F7F6F5");const o=document&&document.querySelector(".product-modal .modal-header");o&&(o.style.position="absolute",o.style.top="0",o.style.zIndex="1",o.style.maxWidth="100%",o.style.background="#f8f8f8",o.style.width="100%");const l=document&&document.querySelector(".product-modal .modal-body");l&&(l.style.background="#f8f8f8",l.style.paddingTop="70px")}),[c]),e.createElement(t,{scrollable:!1,show:n,onHide:l,keyboard:!1,dialogClassName:Me},e.createElement(t.Header,null,e.createElement("div",{onClick:l,className:`${je}`},e.createElement(e.Fragment,null,e.createElement("img",{src:`${m}/icons/arrow-left-red.svg`,alt:"",height:24,width:24,className:"me-3"}),e.createElement("span",{className:Ge},u))),e.createElement("div",{className:`${Ue} me-3 mt-3`},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,d),i&&e.createElement(t.Footer,null,r))},Ke=({content:n,isMobileFlow:t,sbStaticConstants:o,address:l,isAvailable:i,showPrice:r,createCartCall:d,updatedContent:a})=>{var c;const[u,s]=e.useState(!1);return e.useEffect((()=>{!t&&!i||""===(null==r?void 0:r.base)?s(!0):s(!1)}),[n,r,i]),e.createElement("div",null,t?(null==a?void 0:a.swapButton)?(null==a?void 0:a.ctaLinkLabel)&&e.createElement("a",{onClick:d,className:`${u&&De.disabled}`},null==a?void 0:a.ctaLinkLabel):e.createElement("button",{className:`primarybutton ${u&&De.disabled}`,onClick:d,disabled:u},e.createElement("span",{className:De.buttontext},null==o?void 0:o.addToCartBtnTxt)):e.createElement(e.Fragment,null,l&&(null===(c=null==Object?void 0:Object.keys(l))||void 0===c?void 0:c.length)>0?e.createElement(e.Fragment,null,e.createElement("button",{className:`primarybutton ${u&&De.disabled}`,onClick:d,disabled:u},e.createElement("span",{className:De.buttontext},null==o?void 0:o.addToCartBtnTxt))):e.createElement("button",{onClick:d,className:"configurebutton"},e.createElement("span",null,null==o?void 0:o.check_availability))))},Ye=({products:n,showProductDetail:t,setShowProductDetail:o,content:l,priceCollection:i,addToCart:r,sbStaticConstants:d,createCartCall:a,contractDuration:c})=>{var u;const[s,m]=e.useState(!0);let v=[],p="";n&&n.length>0&&(null==n||n.map((e=>{v=null==e?void 0:e.modalBody,p=null==e?void 0:e.backButton})));return e.createElement(e.Fragment,null,t&&e.createElement(e.Fragment,null,e.createElement(He,{modalState:s,handler:()=>{m(!s),o(!t)},showFooter:!1,height:"100%",backButton:p},e.createElement(e.Fragment,null,null==v?void 0:v.map(((n,t)=>e.createElement(ie,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===D&&e.createElement(q,{content:n,key:t}),(null==n?void 0:n.component)===B&&e.createElement(ae,{content:n}),(null==n?void 0:n.component)===A&&e.createElement(de,{content:n}))))),e.createElement("div",{className:`footer-main ${qe} `},e.createElement("span",{className:`${Xe}`},e.createElement("div",null,e.createElement($e,{content:l,priceCollection:i,sbStaticConstants:d}),e.createElement("div",null,c?O(null===(u=null==d?void 0:d.minContractDuration)||void 0===u?void 0:u.substring(1),[c]):null==d?void 0:d.simo_no_contract_term)),e.createElement("div",{className:We},e.createElement(Ke,{content:l,sbStaticConstants:d,isAvailable:null==r?void 0:r.isAvailable,showPrice:i,isSkeletonLoading:null==r?void 0:r.isSkeletonLoading,isMobileFlow:null==r?void 0:r.isMobileFlow,createCartCall:a,address:null==r?void 0:r.address}))))))))};var Je={errormodalbox:"TVChannelOfferV2-module_errormodalbox__sDWbF",header:"TVChannelOfferV2-module_header__kzobu",errorwrapper:"TVChannelOfferV2-module_errorwrapper__Gg4jt",title:"TVChannelOfferV2-module_title__RbPPM",body:"TVChannelOfferV2-module_body__tQavD",footer:"TVChannelOfferV2-module_footer__4rVEl",optionsContent:"TVChannelOfferV2-module_optionsContent__AyBQJ",confirmBtn:"TVChannelOfferV2-module_confirmBtn__ZI4NW",errordialog:"TVChannelOfferV2-module_errordialog__llanJ"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.TVChannelOfferV2-module_errormodalbox__sDWbF {\n border-radius: 0px;\n padding: 20px 16px 100px;\n box-shadow: rgba(87, 84, 82, 0.4);\n background-color: #f8f8f8;\n overflow: visible;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_header__kzobu {\n z-index: 1;\n border: none;\n padding: 0px;\n margin-bottom: -12px;\n margin-right: 0.5rem;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_header__kzobu .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_errorwrapper__Gg4jt {\n border-radius: 8px;\n box-shadow: rgba(87, 84, 82, 0.2);\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_errorwrapper__Gg4jt .TVChannelOfferV2-module_title__RbPPM {\n margin-right: 24px;\n margin-bottom: 24px;\n color: #3d3935;\n font-size: 20px;\n line-height: 28px;\n font-weight: 700;\n text-align: center;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_errorwrapper__Gg4jt .TVChannelOfferV2-module_body__tQavD {\n padding: 0px;\n display: flex;\n color: #5f5955;\n flex-wrap: wrap;\n justify-content: center;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl {\n border: none;\n position: absolute;\n bottom: 0px;\n right: 0;\n width: 100%;\n padding: 24px 0px;\n border-radius: 0px;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl .TVChannelOfferV2-module_optionsContent__AyBQJ {\n margin: auto;\n width: fit-content;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl .TVChannelOfferV2-module_confirmBtn__ZI4NW {\n border: none;\n width: fit-content;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl .TVChannelOfferV2-module_confirmBtn__ZI4NW > img {\n margin-left: 8px;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl p {\n color: #ffffff;\n align-items: left;\n}\n\n.TVChannelOfferV2-module_errordialog__llanJ {\n max-width: 934px;\n}");var Ze="EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h-",Qe="EntertainmentOptionsV2-module_cardinputelement__00RZZ",en="EntertainmentOptionsV2-module_card__LqNAf";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- {\n align-items: flex-start;\n background: #ffffff;\n border-radius: 8px;\n box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);\n display: flex;\n flex: none;\n flex-direction: column;\n margin: 10px;\n max-width: 340px;\n order: 0;\n position: relative;\n width: 100%;\n}\n@media (min-width: 1024px) {\n .EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- {\n max-width: 380px;\n }\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_fs12__rhrjW {\n margin-left: 4px;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ + .EntertainmentOptionsV2-module_card__LqNAf {\n -webkit-box-shadow: none;\n border: 0px;\n border-radius: 8px;\n box-shadow: none;\n height: 100%;\n width: 100%;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ + .EntertainmentOptionsV2-module_card__LqNAf:hover {\n cursor: pointer;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf {\n outline: 4px solid #da291c;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf h4 {\n color: #da291c;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf.EntertainmentOptionsV2-module_showArrow__timDx::after {\n width: 0;\n height: 0;\n border-left: 9px solid transparent;\n border-right: 9px solid transparent;\n border-top: 8px solid #f1571d;\n position: absolute;\n content: "";\n top: calc(100% + 4px);\n left: calc(50% - 9px);\n}\n@media (max-width: 767px) {\n .EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf.EntertainmentOptionsV2-module_showArrow__timDx::after {\n display: none;\n }\n}\n\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH {\n align-items: flex-start;\n border-bottom: 1px solid #e5e5e5;\n display: flex;\n flex-direction: inherit;\n min-width: max-content;\n position: static;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 {\n border-radius: 8px;\n width: 100%;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_tabheading__ve-Rh {\n display: flex;\n padding: 0 0 10px 50px;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_tabheading__ve-Rh .EntertainmentOptionsV2-module_entoptibutton__TAVdH {\n margin-left: auto;\n padding-right: 15px;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_tabheading__ve-Rh h4 {\n color: #333333;\n font-size: 16px;\n font-weight: 700;\n left: 32px;\n line-height: 24px;\n top: 12px;\n min-width: max-content;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_additionalprice__s7i-2 {\n transform: translate(50px, -20px);\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_additionalprice__s7i-2 p span {\n color: #333333;\n font-size: 16px;\n font-weight: 700;\n left: 32px;\n line-height: 24px;\n top: 0;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_inputfield__grFes {\n height: 50px;\n margin: 0 16px 16px 16px;\n}\n\n.EntertainmentOptionsV2-module_radiocontainer__U83LN {\n cursor: pointer;\n display: inline-block;\n font-weight: 700;\n padding-left: 30px;\n position: relative;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN .EntertainmentOptionsV2-module_checkmark__BeCUA {\n border: 2px solid #b2b2b2;\n border-radius: 50%;\n height: 20px;\n left: 0;\n margin: 10px 10px 0 18px;\n position: absolute;\n top: 0;\n width: 20px;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN .EntertainmentOptionsV2-module_checkmark__BeCUA.EntertainmentOptionsV2-module_disabled__Lf1GV {\n border: 2px solid #b2b2b2;\n}\n\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input {\n cursor: pointer;\n opacity: 0;\n position: absolute;\n}\n\n/* When the radio button is checked, add a blue background */\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA {\n background-color: #ffffff;\n border: 2px solid #d9415c;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA:hover {\n border: 2px solid #d9415c;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA:hover:after {\n background: #d9415c;\n}\n\n/* Create the indicator (the dot/circle - hidden when not checked) */\n.EntertainmentOptionsV2-module_checkmark__BeCUA:after {\n content: "";\n display: none;\n position: absolute;\n}\n\n/* Show the indicator (dot/circle) when checked */\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA:after {\n display: block;\n}\n\n/* Style the indicator (dot/circle) */\n.EntertainmentOptionsV2-module_radiocontainer__U83LN .EntertainmentOptionsV2-module_checkmark__BeCUA:after {\n background: #d9415c;\n border-radius: 50%;\n height: 10px;\n left: 3px;\n top: 3px;\n width: 10px;\n}');var nn="ReactInputSelectV2-module_selectcontainer__neygJ",tn="ReactInputSelectV2-module_downArrowIcon__KGx-5",on="ReactInputSelectV2-module_transform180__XCHJs",ln="ReactInputSelectV2-module_errormessage__FF0WO";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ReactInputSelectV2-module_selectcontainer__neygJ {\n position: relative;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .react-select__control {\n border: 1px solid #b3aeaa !important;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_downArrowIcon__KGx-5 {\n content: "";\n display: inline-block;\n height: 24px;\n width: 24px;\n background: url("/ecom-int/icons/chevron-down.svg") no-repeat;\n background-size: cover;\n background-position: center;\n margin-left: 8px;\n transform: rotate(0);\n transition: transform 0.3s;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_downArrowIcon__KGx-5.ReactInputSelectV2-module_transform180__XCHJs {\n transform: rotate(180deg);\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_downArrowIcon__KGx-5:hover {\n cursor: pointer;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_errormessage__FF0WO {\n color: #c60047;\n font-size: 12px;\n line-height: 16px;\n margin-top: 4px;\n}');const rn=e.forwardRef((({name:n,options:t,content:o,isSearchable:l=!0,disableValues:i=[],defaultValue:r="",optionsValue:d="value",optionsLabel:a="label",isDisabled:c=!1,isClearable:u=!0,onChange:s},m)=>{const[v,_]=e.useState(!1),[h,f]=e.useState(r),[g,b]=e.useState(!1),[x,y]=e.useState(!1);Boolean(h)==x&&y(!x);return e.createElement("div",{className:nn},e.createElement(p,{className:`react-select-container ${x&&"errorborder"}`,styles:(E=x&&v,{control:e=>Object.assign(Object.assign({},e),E&&{border:"2px solid #C60047 !important"}),valueContainer:e=>Object.assign(Object.assign({},e),!o.label&&{padding:"0px 0px 0px 12px !important"})}),name:n,instanceId:"React-select",classNamePrefix:"react-select",components:{DropdownIndicator:n=>e.createElement(p.components.DropdownIndicator,Object.assign({},n),e.createElement("span",{className:`${tn} ${n.selectProps.menuIsOpen?on:""}`})),IndicatorSeparator:null},value:h,onChange:e=>{f(e),"function"==typeof s&&s(e?{name:n,value:e}:{name:n,value:{[d]:"",[a]:""}})},isClearable:u,placeholder:"",onFocus:()=>b(!0),onBlur:()=>{!v&&_(!0),b(!1)},backspaceRemovesValue:!0,options:t,ref:m,getOptionLabel:e=>e[a],getOptionValue:e=>e[d],isOptionDisabled:e=>i.includes(e[d]),isDisabled:c,isSearchable:l}),e.createElement("label",{className:`${(h&&h[d]&&h[a]||g)&&"activeLabel"} selectcomplabel`},o.label),x&&v&&e.createElement("span",{className:ln},o.errorMessage));var E})),dn=({className:n="",name:t="demo",content:o,checked:l,options:i,setProduct:r,onclick:d,localeID:a,type:c="radio",langSelected:u})=>{var s,m;const[v,p]=e.useState({details:"",included:""}),_="NETFLIX"==(null==o?void 0:o.tvGroup)||"SPORTS"==(null==o?void 0:o.tvGroup),h=e.useMemo((()=>{var e,n;const t=e=>{let n;return null==i||i.map(((t,o)=>{t.name==(null==e?void 0:e.toUpperCase())&&(n=o)})),n};return null!==(n=null!==(e=t(u||a))&&void 0!==e?e:t("de"))&&void 0!==n?n:0}),[i]),f=null==o?void 0:o.productId,[g,b]=e.useState(f);return e.useEffect((()=>{try{const e=null===localStorage||void 0===localStorage?void 0:localStorage.getItem("sbstaticcontent");if(""!==e){const n=e&&JSON.parse(e);p(Object.assign(Object.assign({},v),{details:null==n?void 0:n.details,included:null==n?void 0:n.included}))}}catch(e){}}),[]),e.createElement("label",{className:`${Ze} ${n}`,onClick:d},e.createElement("input",{type:c,name:t,value:g,className:`${Qe} d-none`,id:"demo1","data-additional":null==o?void 0:o.tvGroup,checked:l,readOnly:!0}),e.createElement("div",{className:`${en} card card-body`},e.createElement("div",{className:"d-flex"},e.createElement("h4",null,null==o?void 0:o.displayName)),e.createElement("div",{className:"mb-3"},e.createElement(W,{content:null==o?void 0:o.description})),(null===(s=null==o?void 0:o.prodImage)||void 0===s?void 0:s.filename)&&e.createElement("img",{src:null===(m=null==o?void 0:o.prodImage)||void 0===m?void 0:m.filename,height:"",width:"",alt:""}),(null==i?void 0:i.length)>1&&e.createElement("div",{className:"mt-auto"},e.createElement(rn,{content:{label:"",errorMessage:""},options:i,optionsValue:"name",optionsLabel:"value",onChange:e=>{var n,t;const o=e.value.name;if(o){const e=i.filter((e=>e.name==o));r(null===(n=null==e?void 0:e[0])||void 0===n?void 0:n.prod),b(null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.prod)}},isSearchable:!1,isClearable:!1,defaultValue:i[h]})),_&&e.createElement("div",{className:`row w-100 pt-2 ${!((null==i?void 0:i.length)>1)&&"mt-auto"}`},e.createElement("h3",{className:"col-9 mb-0"},null==v?void 0:v.included))))},an=({content:t,showModal:o,setShowModal:l,setEntertainment:r,setTvChannelName:d,radioValue:a,setRadioValue:c,metadata:u})=>{var s,m,v,p;const _=null==t?void 0:t.ids,[h,b]=e.useState([]),x=null==u?void 0:u.lang,[y,E]=e.useState([]),[T,w]=e.useState({}),k=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),P=null===(m=null==g?void 0:g.getInstance())||void 0===m?void 0:m.getAssetPath(),C=localStorage.getItem("sbstaticcontent"),S=C&&JSON.parse(C),V=["NETFLIX","TVBOX","TVAPP"],N={language:x,type:"B2C"};e.useEffect((()=>{let e="";_.forEach((n=>{e=e+n+","}));const t=`${k}rest/cms/stories/?by_slugs=${e}`,o=[];n.CMSStoryblokServiceV2.get(t,N).then((e=>{var n,t;null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.stories)||void 0===t||t.map((e=>{o.push(e)}))})).catch((e=>{console.log(e)})).finally((()=>{A(o)})),b(o)}),[x]),e.useEffect((()=>{a&&h&&h.map((e=>{var n,t,o,l,i,r,c,u,s,m,v,p;(null===(o=null===(t=null===(n=null==e?void 0:e.content)||void 0===n?void 0:n.body)||void 0===t?void 0:t[0])||void 0===o?void 0:o.code)&&(null===(r=null===(i=null===(l=e.content)||void 0===l?void 0:l.body)||void 0===i?void 0:i[0])||void 0===r?void 0:r.code)===a&&d((null===(s=null===(u=null===(c=null==e?void 0:e.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.displayName)+" "+(null===(p=null===(v=null===(m=null==e?void 0:e.content)||void 0===m?void 0:m.body)||void 0===v?void 0:v[0])||void 0===p?void 0:p.tvLang))}))}),[a]);const I=()=>{l(!1)},O=e=>{c(e.target.value)},L=G,D=e=>{c(e)},A=e=>{const n=[],t=[],o={};let l="";e.map((e=>{var i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,P,C,S;const N=null===(d=null===(r=null===(i=e.content)||void 0===i?void 0:i.body)||void 0===r?void 0:r[0])||void 0===d?void 0:d.tvGroup;(null===(u=null===(c=null===(a=e.content)||void 0===a?void 0:a.body)||void 0===c?void 0:c[0])||void 0===u?void 0:u.isTvGroup)&&!l&&(l=null===(v=null===(m=null===(s=e.content)||void 0===s?void 0:s.body)||void 0===m?void 0:m[0])||void 0===v?void 0:v.code),n.includes(N)||(V.includes(N)||"DE"===(null===(h=null===(_=null===(p=null==e?void 0:e.content)||void 0===p?void 0:p.body)||void 0===_?void 0:_[0])||void 0===h?void 0:h.tvLang))&&(n.push(N),t.push(null===(g=null===(f=null==e?void 0:e.content)||void 0===f?void 0:f.body)||void 0===g?void 0:g[0])),(null===(b=o[N])||void 0===b?void 0:b.length)||(o[N]=[]),o[N].push({name:null===(E=null===(y=null===(x=null==e?void 0:e.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===E?void 0:E.tvLang,value:L[null===(k=null===(w=null===(T=null==e?void 0:e.content)||void 0===T?void 0:T.body)||void 0===w?void 0:w[0])||void 0===k?void 0:k.tvLang],prod:null===(S=null===(C=null===(P=null==e?void 0:e.content)||void 0===P?void 0:P.body)||void 0===C?void 0:C[0])||void 0===S?void 0:S.code})})),w(o),""==a&&c(l);const i=t.filter((e=>"NETFLIX"===(null==e?void 0:e.tvGroup))),r=t.indexOf(i[0]),d=t.splice(r,1)[0];t.splice(0,0,d),E(t)};return e.createElement(e.Fragment,null,e.createElement(i.Modal,{contentClassName:Je.errormodalbox,show:o,dialogClassName:Je.errordialog,onHide:I,centered:!0},e.createElement(i.Modal.Header,{className:Je.header,closeButton:!0,onClick:I}),e.createElement("div",{className:Je.errorwrapper},e.createElement(i.Modal.Title,{className:Je.title},(null===(v=null==t?void 0:t.product)||void 0===v?void 0:v.includes("Netflix"))?null==S?void 0:S.entertainment_prod_modal_head:null==S?void 0:S.choose_tv_box_app),e.createElement("div",null,e.createElement(i.Modal.Body,{className:Je.body},y&&y.map(((n,t)=>{var o;let l="",i=!1;const r=null===(o=T[null==n?void 0:n.tvGroup])||void 0===o?void 0:o.reduce(((e,n)=>(i=n.prod==a,i&&(l=n.name.toLowerCase()),e||i)),!1);return e.createElement(dn,{key:t,content:n,value:t,options:T[null==n?void 0:n.tvGroup],setProduct:D,onclick:O,localeID:x,checked:r,langSelected:l})}))))),""!=a&&e.createElement(i.Modal.Footer,{className:Je.footer},e.createElement("div",{className:"row w-100"},e.createElement("div",{className:"text-center"},e.createElement("button",{className:`${Je.confirmBtn} primarybutton`,onClick:()=>(e=>{var n,o,i,d,a,c,u,s;const m=(h||[]).filter((n=>{var t,o,l;if((null===(l=null===(o=null===(t=null==n?void 0:n.content)||void 0===t?void 0:t.body)||void 0===o?void 0:o[0])||void 0===l?void 0:l.productId)===e)return n})),v={ignoreId:"",selectedEntertainmentProduct:[]};(null===(d=null===(i=null===(o=null===(n=m[0])||void 0===n?void 0:n.content)||void 0===o?void 0:o.body)||void 0===i?void 0:i[0])||void 0===d?void 0:d.productId)&&e!==(null==t?void 0:t.product)&&(v.ignoreId=null==t?void 0:t.product,v.selectedEntertainmentProduct.push({id:null===(s=null===(u=null===(c=null===(a=m[0])||void 0===a?void 0:a.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.productId,checkVoucher:!1,promoIds:[null==t?void 0:t.promotion]})),r&&r(v),l(!1)})(a)},(null===(p=null==t?void 0:t.product)||void 0===p?void 0:p.includes("Netflix"))?e.createElement(e.Fragment,null,S.confirm_your_choice,e.createElement("img",{className:Je["img-tick"],src:`${P}/icons/tick.svg`,height:24,width:24,alt:""})):null==S?void 0:S.continue))))))},cn=({content:n,priceCollection:t,sbStaticConstants:o})=>{const l=null==t?void 0:t.int_fmc,i=null==t?void 0:t.mob_fmc,r=null==t?void 0:t.mob_benefit_category;return e.createElement("div",null,e.createElement("div",{className:Be.optioncontainer},e.createElement("div",{className:Be.optionlist},(null==n?void 0:n.length)>0&&e.createElement("span",{className:Be.optiontitle},null==o?void 0:o.benefits),(n||[]).map(((n,t)=>"default"==(null==n?void 0:n.id)||"int_fmc"==(null==n?void 0:n.id)&&l>0&&"FMC"!=r||"multimob_fmc"==(null==n?void 0:n.id)&&i>0&&"MULTIMOBILE"==r||"combi_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==r?e.createElement("div",{key:t,className:"d-flex justify-content-between"},e.createElement("span",null,n&&e.createElement("span",{className:"d-flex"},(null==n?void 0:n.text)&&!(null==n?void 0:n.isMMC)&&e.createElement("span",{className:Be.optionwrapper},(null==n?void 0:n.icon)&&e.createElement("img",{src:null==n?void 0:n.icon,width:24,height:24}),e.createElement("span",{className:`${Be.text} ms-2`},e.createElement(W,{content:null==n?void 0:n.text}))),(null==n?void 0:n.text)&&"MULTIMOBILE"===r&&(null==n?void 0:n.isMMC)&&e.createElement("span",{className:Be.optionwrapper,id:"benefits"},(null==n?void 0:n.icon)&&e.createElement("img",{src:null==n?void 0:n.icon,width:24,height:24}),e.createElement("span",{className:`${Be.text} ms-2`},e.createElement(W,{content:null==n?void 0:n.text}))))),e.createElement("span",null,(null==n?void 0:n.toolTip)&&e.createElement(he,{content:null==n?void 0:n.toolTip,isBenefit:!0}))):"")))))};var un={giftcontainer:"ChooseGiftV2-module_giftcontainer__Dbb2N",giftlist:"ChooseGiftV2-module_giftlist__DgXih",gifttitle:"ChooseGiftV2-module_gifttitle__zO2X8",gifttooltip:"ChooseGiftV2-module_gifttooltip__gYZ5V",giftsection:"ChooseGiftV2-module_giftsection__4l8rb",giftimagecontainer:"ChooseGiftV2-module_giftimagecontainer__W23p1",giftimg:"ChooseGiftV2-module_giftimg__6S6jb",giftdescription:"ChooseGiftV2-module_giftdescription__S-woF",description:"ChooseGiftV2-module_description__EjBz5",list:"ChooseGiftV2-module_list__Wb9GH"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ChooseGiftV2-module_giftcontainer__Dbb2N {\n border: 1px solid #B6C8C0;\n background: rgba(153, 178, 167, 0.1);\n border-radius: 8px;\n padding: 16px;\n margin-bottom: 10px;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftlist__DgXih {\n margin-top: 2px;\n display: flex;\n align-items: center;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftlist__DgXih .ChooseGiftV2-module_gifttitle__zO2X8 {\n font-size: 16px;\n line-height: 24px;\n width: calc(100% - 48px);\n font-weight: bold;\n margin-left: 11px;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftlist__DgXih .ChooseGiftV2-module_gifttooltip__gYZ5V {\n float: right;\n position: relative;\n top: 2px;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb {\n margin: 8px 0px 10px 0px;\n display: flex;\n flex-wrap: wrap;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb .ChooseGiftV2-module_giftimagecontainer__W23p1 {\n cursor: pointer;\n margin-right: 8px;\n padding: 8px 2px;\n flex-grow: 1;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb .ChooseGiftV2-module_giftimagecontainer__W23p1 img {\n display: block;\n margin: 0 auto;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb .ChooseGiftV2-module_giftimg__6S6jb {\n border: 2px solid red;\n border-radius: 8px;\n width: fit-content;\n padding: 6px 0;\n box-sizing: border-box;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftdescription__S-woF {\n display: inline-block;\n font-size: 14px;\n line-height: 20px;\n color: #606060;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftdescription__S-woF .ChooseGiftV2-module_description__EjBz5 {\n font-weight: 700;\n color: #3d3935;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_list__Wb9GH {\n margin: 16px 0px;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_list__Wb9GH {\n margin: 8px 0;\n }\n}");const sn=({content:n})=>{var t,o;return e.createElement("div",null,e.createElement("div",{className:un.giftcontainer},e.createElement("div",{className:un.giftlist},(null==n?void 0:n.giftImage)&&e.createElement("span",{className:un.gifticon},e.createElement("img",{src:null===(t=null==n?void 0:n.giftIcon)||void 0===t?void 0:t.filename,width:24,height:24})),e.createElement("span",{className:un.gifttitle},null==n?void 0:n.title),e.createElement("span",{className:un.gifttooltip},(null==n?void 0:n.tooltipText)&&e.createElement(he,{content:null==n?void 0:n.tooltipText})),e.createElement("div",{className:un.list},e.createElement("div",{className:un.giftlist},e.createElement("div",{className:un.giftsection},(null==n?void 0:n.giftIcon)&&e.createElement("span",{className:un.gifticon},e.createElement("img",{src:null===(o=null==n?void 0:n.giftImage)||void 0===o?void 0:o.filename,width:64,height:64})),e.createElement("div",{className:un.giftdescription},e.createElement("span",{className:un.description},null==n?void 0:n.giftName),e.createElement("br",null),e.createElement("span",{className:un.giftprice},null==n?void 0:n.price))))))))},mn=({content:n,selectedGiftItem:t,parentPoType:o})=>{var l,i,r;const[d,a]=e.useState(0),[c,u]=e.useState(null===(l=null==n?void 0:n.listOfGifts)||void 0===l?void 0:l[0]);return e.useEffect((()=>{var e,l;let i=!1;null===(e=null==n?void 0:n.listOfGifts)||void 0===e||e.map(((e,l)=>{e.is_default&&(u(e),a(l),i=!0,t({tuaProdId:null==e?void 0:e.tuaProdId,giftGroupId:null==n?void 0:n.giftGroupId,parentPoType:o}))})),i||t({tuaProdId:null===(l=null==n?void 0:n.listOfGifts)||void 0===l?void 0:l[0].tuaProdId,giftGroupId:null==n?void 0:n.giftGroupId,parentPoType:o})}),[]),e.createElement("div",null,e.createElement("div",{className:un.giftcontainer},e.createElement("div",{className:un.giftlist},e.createElement("span",{className:un.gifticon},e.createElement("img",{src:null===(i=null==n?void 0:n.giftIcon)||void 0===i?void 0:i.filename,width:24,height:24})),e.createElement("span",{className:un.gifttitle},null==n?void 0:n.title),e.createElement("div",{className:un.gifttooltip},e.createElement(he,{content:null==n?void 0:n.tooltipText}))),e.createElement("div",{className:un.giftsection},null===(r=null==n?void 0:n.listOfGifts)||void 0===r?void 0:r.map(((l,i)=>{var r;return e.createElement("div",{key:i,onClick:()=>((e,l)=>{u(e),a(l),t({tuaProdId:null==e?void 0:e.tuaProdId,giftGroupId:null==n?void 0:n.giftGroupId,parentPoType:o})})(l,i),className:`${un.giftimagecontainer} ${i===d&&un.giftimg}`},e.createElement("img",{src:null===(r=l.image)||void 0===r?void 0:r.filename,width:64,height:64}))}))),e.createElement("div",{className:un.giftdescription},e.createElement("span",{className:un.description},null==c?void 0:c.title)," ",e.createElement("br",null),e.createElement("span",{className:un.giftprice},(null==c?void 0:c.description)&&e.createElement(W,{content:null==c?void 0:c.description})))))},vn=(e,n,t)=>{window.dataLayer.push(Object.assign({event:e,event_name:n},t))};var pn="CashbackV2-module_cashbackcontainer__uRM1Z",_n="CashbackV2-module_cashbackmodule__kYlg6",hn="CashbackV2-module_cashbackicon__fDkXT",fn="CashbackV2-module_cashbackimage__led6d",gn="CashbackV2-module_cashbacktitle__su2j2",bn="CashbackV2-module_cashbacktooltip__MdcgY",xn="CashbackV2-module_cashbackdescription__-UtWu";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.CashbackV2-module_cashbackcontainer__uRM1Z {\n border: 1px solid #B6C8C0;\n background: rgba(153, 178, 167, 0.1);\n border-radius: 8px;\n box-sizing: border-box;\n padding: 16px;\n align-items: center;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackmodule__kYlg6 {\n font-size: 14px;\n line-height: 20px;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackmodule__kYlg6 .CashbackV2-module_cashbackicon__fDkXT {\n position: relative;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackmodule__kYlg6 .CashbackV2-module_cashbackimage__led6d {\n display: flex;\n align-items: center;\n margin-top: 8px;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbacktitle__su2j2 {\n margin-left: 8px;\n font-weight: 700;\n margin-top: 2px;\n color: #3d3935;\n font-size: 16px;\n line-height: 24px;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbacktooltip__MdcgY {\n float: right;\n position: relative;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackdescription__-UtWu {\n font-weight: 400;\n color: #5f5955;\n margin-left: 8px;\n}");const yn=({content:n})=>{var t,o;return e.createElement("div",null,e.createElement("div",{className:`${pn} cashbackv2container`},e.createElement("div",{className:_n},e.createElement("div",null,e.createElement("span",{className:hn},e.createElement("img",{src:null===(t=null==n?void 0:n.icon)||void 0===t?void 0:t.filename,alt:"cashback",width:24,height:24})),e.createElement("span",{className:gn},null==n?void 0:n.title),e.createElement("span",{className:bn},(null==n?void 0:n.tooltiptext)&&e.createElement(he,{content:null==n?void 0:n.tooltiptext}))),e.createElement("div",{className:fn},e.createElement("img",{src:null===(o=null==n?void 0:n.image)||void 0===o?void 0:o.filename,alt:"cashback",width:64,height:64}),e.createElement("span",{className:xn},null==n?void 0:n.description)))))},En=({content:n,cards:t,metadata:o,indexKey:l,offeringData:i,uniqueId:r,tabIndex:d,lineCheckCallBack:a,sbStaticConstants:u,address:s,eligibleBundle:m,summaryUrl:v,isMobileFlow:p,updatedContent:h,lineTableContent:b})=>{var x,y,E,T,w,k,C,S,V,N,I,L,D,A,B,R,$,M,j,G;const[U,q]=e.useState({}),[X,K]=e.useState(),[J,Z]=e.useState(""),[ee,ne]=e.useState(""),[te,oe]=e.useState(!1),[le,ie]=e.useState(!1),[re,de]=e.useState(!1),[ae,ce]=e.useState([]),ue=null===(x=null==g?void 0:g.getInstance())||void 0===x?void 0:x.getAssetPath(),[se,me]=e.useState(!1),ve=null==U?void 0:U.code,pe=((null==i?void 0:i[r])||[]).filter((e=>(null==e?void 0:e.id)===ve)),_e=((e,n,t)=>{var o,l,i,r,d,a,c,u,s,m;const v={base:"",onetimePrice:"",discount:[],contractDuration:"",int_fmc:0,mob_fmc:0,mob_benefit_category:"",id:"",promoID:""};Array.isArray(e)&&(null==e||e.map((e=>{var n,t,o;v.id=null!==(n=null==e?void 0:e.id)&&void 0!==n?n:"",null===(t=null==e?void 0:e.prices)||void 0===t||t.map((e=>{var n,t;"recurring"===(null===(n=null==e?void 0:e.priceType)||void 0===n?void 0:n.toLowerCase())?v.base=null==e?void 0:e.value:"one time"===(null===(t=null==e?void 0:e.priceType)||void 0===t?void 0:t.toLowerCase())&&(v.onetimePrice=null==e?void 0:e.value)})),null===(o=null==e?void 0:e.derivedPrice)||void 0===o||o.map((e=>{var n,t;const o={cycleStart:"",cycleEnd:"",value:""};o.cycleStart=null===(n=null==e?void 0:e.cycle)||void 0===n?void 0:n.cycleStart,o.cycleEnd=null===(t=null==e?void 0:e.cycle)||void 0===t?void 0:t.cycleEnd,o.value=null==e?void 0:e.value,v.discount.push(o)}))}))),null===(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.bundledOffers)||void 0===l||l.forEach((e=>{var n,t,o,l,i,r,d,a,c;null===(n=null==e?void 0:e.prices)||void 0===n||n.forEach((e=>{var n,t;(null===(n=null==e?void 0:e.priceAlteration)||void 0===n?void 0:n.length)>0&&(null===(t=null==e?void 0:e.priceAlteration)||void 0===t||t.forEach((e=>{"INTERNET_FMC"==(null==e?void 0:e.priceCategory)?v.int_fmc+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(v.mob_fmc+=Number(null==e?void 0:e.value),v.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null===(o=null===(t=null==e?void 0:e.promotionInfo)||void 0===t?void 0:t[0])||void 0===o?void 0:o.contractDuration)&&(v.contractDuration=null===(i=null===(l=null==e?void 0:e.promotionInfo)||void 0===l?void 0:l[0])||void 0===i?void 0:i.contractDuration),(null===(d=null===(r=null==e?void 0:e.promotionInfo)||void 0===r?void 0:r[0])||void 0===d?void 0:d.id)&&(v.promoID=null===(c=null===(a=null==e?void 0:e.promotionInfo)||void 0===a?void 0:a[0])||void 0===c?void 0:c.id)})),(null===(i=null==e?void 0:e[0])||void 0===i?void 0:i.isBundle)||(v.contractDuration=null===(d=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.promotionInfo)||void 0===d?void 0:d[0].contractDuration,v.promoID=null===(u=null===(c=null===(a=null==e?void 0:e[0])||void 0===a?void 0:a.promotionInfo)||void 0===c?void 0:c[0])||void 0===u?void 0:u.id);let p=0;return null===(m=null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.prices)||void 0===m||m.map((e=>{var n,t;(null===(n=null==e?void 0:e.priceAlteration)||void 0===n?void 0:n.length)>0&&(null===(t=null==e?void 0:e.priceAlteration)||void 0===t||t.map((e=>{"INTERNET_FMC"==(null==e?void 0:e.priceCategory)?p+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(v.mob_fmc+=Number(null==e?void 0:e.value),v.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==v?void 0:v.contractDuration)||n||(v.contractDuration="12"),v.int_fmc=t?p:v.int_fmc,v})(pe,p),he=null===(y=null==f?void 0:f.getInstance())||void 0===y?void 0:y.getCartUrl(),[ge,be]=e.useState(!1);let ye;if(U){const e=null==U?void 0:U.code;ye=s&&(null===(E=null==m?void 0:m.eligibleBundle)||void 0===E?void 0:E.includes(e))}const Te=void 0!==typeof window&&document.getElementById("reusable-linetable");e.useEffect((()=>{var e,n;const t=null==pe?void 0:pe.filter((e=>e&&e.id===(null==U?void 0:U.code)));ie((e=>{let n=!1;return null==e||e.map((e=>{var t;null===(t=null==e?void 0:e.promotionInfo)||void 0===t||t.map((e=>{(null==e?void 0:e.hardwareGift)&&(n=!0)}))})),n})(p?t:null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.bundledOffers)),de((e=>{let n=!1;return null==e||e.map((e=>{var t;null===(t=null==e?void 0:e.promotionInfo)||void 0===t||t.map((e=>{(null==e?void 0:e.cashBack)&&(n=!0)}))})),n})(p?t:null===(n=null==t?void 0:t[0])||void 0===n?void 0:n.bundledOffers))}),[U,pe]),e.useEffect((()=>{var e,t,o;if(null==n?void 0:n.productStroyObj){const l=((e,n,t)=>{var o,l,i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,P,C,S,V,N,I,O,L,D,A,B,R,z,F,$,M,j,G,U,W,q,X,H,K,J,Z,Q,ee,ne,te,oe,le,ie,re,de,ae,ce,ue,se,me,ve,pe,_e,he,fe,ge,be,xe,ye;const Ee={displayName:"",description:"",icon:"",code:"",productDetailsModal:[],pageType:"",highlightText:"",promoID:"",productConfig:[],entitlementConfig:[],benefitsSection:[],serviceOptions:{avalaible:!1,promotion:"",ids:new Set,product:"",radioValue:"",tvChannelName:"",poType:""},countryListUrl:"",promoObj:[],addSmartPhone:[],promoText:"",priceDisplayText:""},Te=n?null==e?void 0:e.productStroyObj.stroy:null==e?void 0:e.productStroyObj;if(Ee.displayName=null===(i=null===(l=null===(o=null==Te?void 0:Te.content)||void 0===o?void 0:o.body)||void 0===l?void 0:l[0])||void 0===i?void 0:i.displayName,Ee.code=null===(a=null===(d=null===(r=null==Te?void 0:Te.content)||void 0===r?void 0:r.body)||void 0===d?void 0:d[0])||void 0===a?void 0:a.code,Ee.highlightText=null==e?void 0:e.highlightText,Ee.promoText=null===(s=null===(u=null===(c=null==Te?void 0:Te.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.promoText,null==e?void 0:e.promStroyObj){const t={};Ee.promoID=null===(m=null==e?void 0:e.promStroyObj)||void 0===m?void 0:m.prom,Ee.serviceOptions.promotion=null===(v=null==e?void 0:e.promStroyObj)||void 0===v?void 0:v.prom;const o=null===(p=null==e?void 0:e.promStroyObj)||void 0===p?void 0:p.stroy,l=null==o?void 0:o.content;if(l&&(null==l?void 0:l.promoDescription)&&(null==l?void 0:l.promoDescription.length)>0)for(let o=0;o<l.promoDescription.length;o++){const i=l.promoDescription[o];if(e.promStroyObj.prom===i.parent_promo_id){t.promotion=null==i?void 0:i.parent_promo_id,t.description=null==i?void 0:i.description,t.isPricingPromo=!1,t.isGiftPromo=!1,t.isDefault=null===(_=null==e?void 0:e.promStroyObj)||void 0===_?void 0:_.isDefault,t.displayText=null==i?void 0:i.displayText,t.cashback=null==i?void 0:i.cashback,i.type.includes("pricing")?t.isPricingPromo=!0:i.type.includes("gift")&&(t.isGiftPromo=!0,t.giftConfig=null==i?void 0:i.giftConfig,t.giftConfigV2=null==i?void 0:i.giftConfigV2,t.parentPoType=n?"MOBILE":"HOME"),!(null==t?void 0:t.isPricingPromo)&&!(null==t?void 0:t.isGiftPromo)||(null===(h=null==e?void 0:e.products)||void 0===h?void 0:h.dontShowPromotion)||(Ee.priceDisplayText=null==i?void 0:i.displayText);break}}Ee.promoObj.push(t)}if(n){if(Ee.description=null===(H=null===(X=null===(q=null==Te?void 0:Te.content)||void 0===q?void 0:q.body)||void 0===X?void 0:X[0])||void 0===H?void 0:H.introText,Ee.productDetailsModal=null===(Z=null===(J=null===(K=null==Te?void 0:Te.content)||void 0===K?void 0:K.body)||void 0===J?void 0:J[0])||void 0===Z?void 0:Z.subscriptionDetailModal,Ee.icon=null===(te=null===(ne=null===(ee=null===(Q=null==Te?void 0:Te.content)||void 0===Q?void 0:Q.body)||void 0===ee?void 0:ee[0])||void 0===ne?void 0:ne.prodImage)||void 0===te?void 0:te.filename,Ee.pageType="MOBILE",Ee.countryListUrl={reference:null===(re=null===(ie=null===(le=null===(oe=null==Te?void 0:Te.content)||void 0===oe?void 0:oe.body)||void 0===le?void 0:le[0])||void 0===ie?void 0:ie.countryList)||void 0===re?void 0:re.cached_url},(null===(ce=null===(ae=null===(de=null==Te?void 0:Te.content.body)||void 0===de?void 0:de[0])||void 0===ae?void 0:ae.entitlementConfig)||void 0===ce?void 0:ce.length)>0){const e=[];null===(me=null===(se=null===(ue=null==Te?void 0:Te.content.body)||void 0===ue?void 0:ue[0])||void 0===se?void 0:se.entitlementConfig)||void 0===me||me.map((n=>{var t;const o={icon:null===(t=null==n?void 0:n.entitlementIcon)||void 0===t?void 0:t.filename,name:null==n?void 0:n.entitlementName,description:null==n?void 0:n.entitlementDescription,tooltip:null==n?void 0:n.tooltip,linkText:null==n?void 0:n.linkText,includeDescription:null==n?void 0:n.includeDescription};e.push(o)})),Ee.productConfig=e}if((null===(he=null===(_e=null===(pe=null===(ve=null==Te?void 0:Te.content)||void 0===ve?void 0:ve.body)||void 0===pe?void 0:pe[0])||void 0===_e?void 0:_e.extraOptions)||void 0===he?void 0:he.length)>0){const e=[];null===(xe=null===(be=null===(ge=null===(fe=null==Te?void 0:Te.content)||void 0===fe?void 0:fe.body)||void 0===ge?void 0:ge[0])||void 0===be?void 0:be.extraOptions)||void 0===xe||xe.map((n=>{var t;const o={icon:null===(t=null==n?void 0:n.entitlementIcon)||void 0===t?void 0:t.filename,id:"default",text:null==n?void 0:n.entitlementName,toolTip:null==n?void 0:n.tooltip,isMMC:null==n?void 0:n.isMMC};null==e||e.push(o)})),Ee.benefitsSection=e}(null===(ye=null==t?void 0:t.addSmartphone)||void 0===ye?void 0:ye.length)>0&&(Ee.addSmartPhone=null==t?void 0:t.addSmartphone)}else{const e=["NETFLIX","SPORTS"];if(Ee.description=null===(b=null===(g=null===(f=null==Te?void 0:Te.content)||void 0===f?void 0:f.body)||void 0===g?void 0:g[0])||void 0===b?void 0:b.description,Ee.productDetailsModal=null===(E=null===(y=null===(x=null==Te?void 0:Te.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===E?void 0:E.productDetailsModal,Ee.pageType="HOME",(null===(P=null===(k=null===(w=null===(T=null==Te?void 0:Te.content)||void 0===T?void 0:T.body)||void 0===w?void 0:w[0])||void 0===k?void 0:k.products)||void 0===P?void 0:P.length)>0){const n=Y(null===(V=null===(S=null===(C=null==Te?void 0:Te.content)||void 0===C?void 0:C.body)||void 0===S?void 0:S[0])||void 0===V?void 0:V.products);if((null==n?void 0:n.length)>0){const t=[],o=[];null==n||n.map((n=>{var l,i,r,d;const a=null===(l=null==n?void 0:n.bundleConfig)||void 0===l?void 0:l[0],c={icon:null===(i=null==a?void 0:a.bundleIcon)||void 0===i?void 0:i.filename,name:(null==a?void 0:a.bundleDisplayName)?null==a?void 0:a.bundleDisplayName:n.displayName,description:(null==a?void 0:a.description)?null==a?void 0:a.description:n.description,tooltip:null==n?void 0:n.toolTipText,linkText:n.linkText,includeDescription:null==a?void 0:a.includeDescription,includeEntitlement:null==a?void 0:a.includeEntitlement,poType:null==n?void 0:n.poType};(null==a?void 0:a.includeEntitlement)&&(null===(r=null==n?void 0:n.entitlementConfig)||void 0===r?void 0:r.length)>0&&(null===(d=null==n?void 0:n.entitlementConfig)||void 0===d||d.map((e=>{var n;null===(n=null==e?void 0:e.entitlementValues)||void 0===n||n.map((e=>{var n;const t={icon:null===(n=null==e?void 0:e.icon)||void 0===n?void 0:n.filename,toolTip:null==e?void 0:e.toolTipText,entitlement:null==e?void 0:e.value,disabled:null==e?void 0:e.disabled};null==o||o.push(t)}))}))),null==t||t.push(c),"TV"===(null==n?void 0:n.poType)&&e.includes(null==n?void 0:n.tvGroup)&&(Ee.serviceOptions.poType="TV",Ee.serviceOptions.radioValue=null==n?void 0:n.code,"NETFLIX"==(null==n?void 0:n.tvGroup)?Ee.serviceOptions.tvChannelName="Netflix":"SPORTS"==(null==n?void 0:n.tvGroup)?Ee.serviceOptions.tvChannelName=(null==n?void 0:n.displayName)+" "+(null==n?void 0:n.tvLang):Ee.serviceOptions.tvChannelName="TV Box",Ee.serviceOptions.avalaible=!0,Ee.serviceOptions.product=null==n?void 0:n.code,Ee.serviceOptions.ids.add(null==n?void 0:n.tvGroupProdPath))})),Ee.productConfig=t,Ee.entitlementConfig=o}}if((null===(L=null===(O=null===(I=null===(N=null==Te?void 0:Te.content)||void 0===N?void 0:N.body)||void 0===I?void 0:I[0])||void 0===O?void 0:O.benefitsSection)||void 0===L?void 0:L.length)>0){const e=[];null===(R=null===(B=null===(A=null===(D=null==Te?void 0:Te.content)||void 0===D?void 0:D.body)||void 0===A?void 0:A[0])||void 0===B?void 0:B.benefitsSection)||void 0===R||R.map((n=>{var t;const o={icon:null===(t=null==n?void 0:n.icon)||void 0===t?void 0:t.filename,id:null==n?void 0:n.id,text:null==n?void 0:n.text,toolTip:null==n?void 0:n.tooltip};null==e||e.push(o)})),Ee.benefitsSection=e}(null===(M=null===($=null===(F=null===(z=null==Te?void 0:Te.content)||void 0===z?void 0:z.body)||void 0===F?void 0:F[0])||void 0===$?void 0:$.addnEntitlements)||void 0===M?void 0:M.length)>0&&(null===(W=null===(U=null===(G=null===(j=null==Te?void 0:Te.content)||void 0===j?void 0:j.body)||void 0===G?void 0:G[0])||void 0===U?void 0:U.addnEntitlements)||void 0===W||W.map((e=>{var n,t,o,l;const i={icon:null===(n=null==e?void 0:e.icon)||void 0===n?void 0:n.filename,name:null==e?void 0:e.text,description:null==e?void 0:e.description,tooltip:null==e?void 0:e.toolTip,linkText:null==e?void 0:e.linkText,includeDescription:null!==(t=null==e?void 0:e.includeDescription)&&void 0!==t&&t,includeEntitlement:null!==(o=null==e?void 0:e.includeEntitlement)&&void 0!==o&&o};(null===(l=Ee.productConfig)||void 0===l?void 0:l.length)>0?Ee.productConfig.push(i):Ee.productConfig=i})))}return Ee})(n,p,h);"TV"===(null===(e=null==l?void 0:l.serviceOptions)||void 0===e?void 0:e.poType)&&(ne(null===(t=null==l?void 0:l.serviceOptions)||void 0===t?void 0:t.radioValue),Z(null===(o=null==l?void 0:l.serviceOptions)||void 0===o?void 0:o.tvChannelName)),q(l)}}),[n]),e.useEffect((()=>(setTimeout((()=>{ke()}),100),null===window||void 0===window||window.addEventListener("load",ke),null===window||void 0===window||window.addEventListener("resize",ke),()=>{window.removeEventListener("resize",ke),window.removeEventListener("load",ke)})),[U,_e]);const we=()=>{var e;(null===(e=null==U?void 0:U.serviceOptions)||void 0===e?void 0:e.avalaible)&&oe(!0)},ke=()=>{P(`headingV3${d}`,t),P(`descriptionV3${d}`,t),P(`titleV3${d}`,t),P(`detailsectionv3${d}`,t),P(`product-configv3${d}`,t),P(`gift-section${d}`,t),P(`cashback-section${d}`,t),P(`benefits-section${d}`,t),P(`order-section${d}`,t),P(`price-section${d}`,t),P(`benefits-price-section${d}`,t),P(`contract-section${d}`,t)};let Pe=void 0!==typeof window&&c.get("sunriseAuth");Pe=Pe&&JSON.parse(Pe);const Ce=()=>{var e;if(!(!(null==b?void 0:b.enableExistingCustomer)||null!=Pe)&&c.set("one-commerce-login","true",{path:"/"}),be(!1),"MOBILE"===(null==U?void 0:U.pageType))me(!0),0!==(null===(e=Object.keys(i))||void 0===e?void 0:e.length)&&Q(null==U?void 0:U.code,"",(null==_e?void 0:_e.promoID)?null==_e?void 0:_e.promoID:F,he,"mobile",ae).then((e=>{c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",null==U?void 0:U.code,{path:"/"}),Oe(fe,pe,"",Ee),window.location.href=v})).catch((e=>{console.log(e),me(!1)})).finally((()=>{me(!1)}));else{const e=c.get("one-commerce-linecheckcorrelationid"),n=null==U?void 0:U.code;m&&s&&e?(me(!0),0!==pe.length&&Q(pe,ee,(null==_e?void 0:_e.promoID)?null==_e?void 0:_e.promoID:z,he,"fixnet",ae).then((e=>{c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",n,{path:"/"}),c.remove("landline"),Oe(fe,pe,"",Ee),window.location.href=v})).catch((e=>{console.log(e)})).finally((()=>{me(!1)}))):a()}},Se=0===(null===(T=Object.keys(U))||void 0===T?void 0:T.length),Ve=()=>{var e,n,t,o;const l=(null==_e?void 0:_e.promoID)?null==_e?void 0:_e.promoID:F;let r="";r=`?componentCode=&productType=subscription&segmentCode=RC&prefPromo=${null!=l?l:""}&productCode=${null!==(e=null==U?void 0:U.code)&&void 0!==e?e:""}`,window.location.href=(null===(o=null===(t=null===(n=null==U?void 0:U.addSmartPhone)||void 0===n?void 0:n[0])||void 0===t?void 0:t.buttonLink)||void 0===o?void 0:o.cached_url)+r,Ne(U,l,i),vn(xe,"combine_with_device",Ie(pe,"",Ee))},Ne=(e,n,t)=>{var o,l,i,d,a,c,u,s,m,v,p,_,h,f,g,b;const x=null===(o=null==t?void 0:t[r])||void 0===o?void 0:o.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.code))),y=null!==(a=null===(d=null===(i=null===(l=null==x?void 0:x[0])||void 0===l?void 0:l.prices)||void 0===i?void 0:i[0])||void 0===d?void 0:d.value)&&void 0!==a?a:0,E=null!==(m=null===(s=null===(u=null===(c=null==x?void 0:x[0])||void 0===c?void 0:c.derivedPrice)||void 0===u?void 0:u[0])||void 0===s?void 0:s.value)&&void 0!==m?m:0,T=null!==(_=null===(p=null===(v=null==e?void 0:e.promotionInfo)||void 0===v?void 0:v[0])||void 0===p?void 0:p.contractDuration)&&void 0!==_?_:0,w=null!==(g=null===(f=null===(h=null==e?void 0:e.promotionInfo)||void 0===h?void 0:h[0])||void 0===f?void 0:f.campaignDuration)&&void 0!==g?g:0,k={mobileSubscription:null!==(b=null==e?void 0:e.code)&&void 0!==b?b:"",mobileSubscriptionPrice:E>0?E:y,mobileSubscriptionPromo:n,subGroup:"MOBILE",duration:Number(w>0?w:T),basePrice:y,withoutPromo:!1};void 0!==typeof window&&sessionStorage.setItem("one-ecommerce-mobileSummary",JSON.stringify(k))},Le=e=>{const n=ae.findIndex((n=>e.giftGroupId===n.giftGroupId)),t=ae;-1===n?t.push(e):t[n]=e,ce([...t])};return e.createElement(e.Fragment,null,se&&Te&&_.createPortal(e.createElement(H,{keyParams:"loading"}),Te),Se&&e.createElement("div",{className:"w-75 pb-2"},e.createElement(Fe,null)),!Se&&m&&n&&s&&!p&&e.createElement("div",{className:De.selected},e.createElement("span",{style:{paddingBottom:"10px"}},ye?e.createElement("span",{className:De.activeicon},e.createElement("img",{src:`${ue}/icons/lineCheck-success.svg`,alt:"",width:24,height:24,className:De.activeicon}),e.createElement("span",null,null==u?void 0:u.subscriptionAvalTxt)):e.createElement("span",{className:De.inactiveicon},e.createElement("img",{src:`${ue}/icons/cross_disabled.svg`,alt:"",width:24,height:24,className:De.inactiveicon}),e.createElement("span",null,null==u?void 0:u.notSubscriptionTxt)))),e.createElement("div",{className:` ${p||!1!==ye?"":De.overlay} `,style:{flexDirection:"column"}},e.createElement("div",{className:`${De.bundleproductcard} ${De.productcontainer} ${(null===(w=null==U?void 0:U.highlightText)||void 0===w?void 0:w.length)>0&&De.highlightBorder}`},(null===(k=null==U?void 0:U.highlightText)||void 0===k?void 0:k.length)>0&&e.createElement("div",{className:`${De.highlightText}`},null==U?void 0:U.highlightText),(null===(C=null==U?void 0:U.priceDisplayText)||void 0===C?void 0:C.length)>0&&e.createElement("div",{className:`${De.promocontainer}`},null==U?void 0:U.priceDisplayText),e.createElement("div",null,e.createElement("div",{className:`${De.detailsection}`,id:`detailsectionv3${d}${l}`},e.createElement("div",{className:`${De.headersection}`,id:`headingV3${d}${l}`},e.createElement("div",{className:`${De.titlesection}`},e.createElement("div",{className:`${De.productheader}`,id:`titleV3${d}${l}`},null==U?void 0:U.displayName),e.createElement("div",null,(null==U?void 0:U.icon)&&e.createElement("img",{className:`${De.imagecontainer}`,src:null==U?void 0:U.icon,height:15,width:20}))),e.createElement("div",{className:`${De.productdescription}`,id:`descriptionV3${d}${l}`},e.createElement(W,{content:null==U?void 0:U.description}))),e.createElement("div",{className:`${De.productconfig}`,id:`product-configv3${d}${l}`},Se?e.createElement(e.Fragment,null,e.createElement("div",{className:De.space}),e.createElement(Fe,{stylename:De.skeletontittle,count:1}),e.createElement(Fe,{stylename:De.skeletonline,count:5}),e.createElement("div",{className:De.space}),e.createElement(Fe,{stylename:De.skeletontittle,count:1}),e.createElement(Fe,{stylename:De.skeletonline,count:5})):e.createElement("div",{style:{paddingTop:"8px"}},(null==U?void 0:U.productConfig)&&(null===(S=null==U?void 0:U.productConfig)||void 0===S?void 0:S.map(((n,l)=>e.createElement(Re,{content:Object.assign(Object.assign({},n),{tvChannelName:J,entertainOption:X}),entitlementConfig:null==U?void 0:U.entitlementConfig,indexKey:l,listlength:t,showModalPopup:we,sbStaticConstants:u,tabIndex:d,countryList:null==U?void 0:U.countryListUrl,metadata:o}))))))),e.createElement("div",{className:`${De.detailsection}`,id:`benefits-price-section${d}${l}`},e.createElement("div",{className:`${De.giftsection}`,id:`gift-section${d}${l}`},e.createElement("div",null,null===(V=null==U?void 0:U.promoObj)||void 0===V?void 0:V.map(((n,t)=>{var o,i,r;return e.createElement("div",{key:t},e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&le&&(null===(o=null==n?void 0:n.giftConfig)||void 0===o?void 0:o.map(((n,t)=>e.createElement(sn,{content:n,key:t}))))),e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&le&&(null===(i=null==n?void 0:n.giftConfigV2)||void 0===i?void 0:i.map(((t,o)=>e.createElement(mn,{content:t,key:o,selectedGiftItem:Le,parentPoType:null==n?void 0:n.parentPoType}))))),e.createElement("div",{className:`${De.giftsection}`,id:`cashback-section${d}${l}`},(null==n?void 0:n.cashback)&&re&&(null===(r=null==n?void 0:n.cashback)||void 0===r?void 0:r.map(((n,t)=>e.createElement(yn,{content:n,key:t}))))))})))),e.createElement("div",{className:`${De.benefitssection}`,id:`benefits-section${d}${l}`},(null===(N=null==U?void 0:U.benefitsSection)||void 0===N?void 0:N.length)>0&&e.createElement(cn,{content:null==U?void 0:U.benefitsSection,priceCollection:_e,sbStaticConstants:u})),e.createElement("div",{className:`${De.ordersection} `,id:`order-section${d}${l}`},""===(null==_e?void 0:_e.base)?e.createElement("div",null,e.createElement(Fe,{stylename:De.skeletontittle})):e.createElement("div",{className:`${De.flexgrid} ${De.pricesection} `,id:`price-section${d}${l}`},e.createElement($e,{content:U,priceCollection:_e,toggleSwitch:!1,sbStaticConstants:u}))," ",e.createElement("div",{className:`${(null==h?void 0:h.swapButton)&&De.swapButton}`},e.createElement("div",{style:{padding:"16px 0"}},e.createElement(Ke,{content:n,sbStaticConstants:u,isAvailable:ye,showPrice:_e,isSkeletonLoading:Se,isMobileFlow:p,createCartCall:Ce,address:s,updatedContent:h})),e.createElement("div",{className:De.productcontractduration,id:`contract-section${d}${l}`},(null==_e?void 0:_e.contractDuration)?O(null===(I=null==u?void 0:u.minContractDuration)||void 0===I?void 0:I.substring(1),[null==_e?void 0:_e.contractDuration]):null==u?void 0:u.simo_no_contract_term),(null===(L=null==U?void 0:U.addSmartPhone)||void 0===L?void 0:L.length)>0&&e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==h?void 0:h.swapButton)&&p?(null==h?void 0:h.ctaLabel)&&e.createElement("div",{style:{padding:"16px 0"}},e.createElement("button",{className:"primarybutton",onClick:()=>Ve()},e.createElement("span",{className:De.buttontext},null==h?void 0:h.ctaLabel))):e.createElement("span",{className:`${De.productdetailslink} ${De.addsmartphone}`},e.createElement("div",null,e.createElement("span",null,(null===(B=null===(A=null===(D=null==U?void 0:U.addSmartPhone)||void 0===D?void 0:D[0])||void 0===A?void 0:A.buttonIcon)||void 0===B?void 0:B.filename)&&e.createElement("img",{src:null===(M=null===($=null===(R=null==U?void 0:U.addSmartPhone)||void 0===R?void 0:R[0])||void 0===$?void 0:$.buttonIcon)||void 0===M?void 0:M.filename,width:12,height:18,alt:"icon"})),e.createElement("span",null,e.createElement("a",{onClick:()=>Ve()},null===(G=null===(j=null==U?void 0:U.addSmartPhone)||void 0===j?void 0:j[0])||void 0===G?void 0:G.buttonLabel)))))),e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==U?void 0:U.productDetailsModal)&&e.createElement("span",{className:De.productdetailslink,onClick:()=>{be(!ge),vn(xe,"download_product_details",Ie(pe,"",Ee))}},null==u?void 0:u.product_details_link)),ge&&e.createElement(e.Fragment,null,e.createElement(Ye,{products:null==U?void 0:U.productDetailsModal,showProductDetail:ge,setShowProductDetail:be,content:n,priceCollection:_e,addToCart:Object.assign(Object.assign({},n),{isSkeletonLoading:Se,isAvailable:ye,isMobileFlow:p,address:s}),sbStaticConstants:u,createCartCall:Ce,contractDuration:null==_e?void 0:_e.contractDuration})))),te&&(Se?e.createElement(Fe,null):e.createElement(an,{key:null==U?void 0:U.code,content:null==U?void 0:U.serviceOptions,setShowModal:oe,uniqueId:r,setEntertainment:K,setTvChannelName:Z,code:null==U?void 0:U.code,showModal:te,radioValue:ee,setRadioValue:ne,metadata:o}))))))},Tn=({content:t,metadata:o,activeIndex:l,lineCheckCallBack:i,sbStaticConstants:r,address:d,eligibleBundle:a,setGenericErrorModalDetails:u,loginSuccess:s})=>{var m,v,p,_;const h=null==o?void 0:o.lang,[g,b]=e.useState(),x=null==t?void 0:t._uid,[y,E]=e.useState([]),T=[],w=new Map,k={language:h,type:"B2C"},C={},S=N(),V=null===(m=null==f?void 0:f.getInstance())||void 0===m?void 0:m.getSBUrl(),I=null===(v=null==f?void 0:f.getInstance())||void 0===v?void 0:v.getBaseUrl(),O=null===(_=null===(p=null==t?void 0:t.lineTableContent)||void 0===p?void 0:p.summaryPageUri)||void 0===_?void 0:_.cached_url,[L,D]=e.useState(!1);let A=void 0!==typeof window&&c.get("sunriseAuth");A=A&&JSON.parse(A);const B=()=>{var e,n,o,l,i;const r=[],d=null===(e=null==t?void 0:t.lineTableContent)||void 0===e?void 0:e.enableExistingCustomer,a=null===(n=null==t?void 0:t.lineTableContent)||void 0===n?void 0:n.subscriptionType;if(((e,n)=>{n.map((n=>{var t,o,l,i,r;const d={id:"",promoIds:[]},a=null===(t=null==n?void 0:n.products)||void 0===t?void 0:t.home_parent_promo_id,c=null===(o=null==n?void 0:n.products)||void 0===o?void 0:o.mob_parent_promo_id;d.id=null===(l=null==n?void 0:n.products)||void 0===l?void 0:l.product_id,a&&!(null===(i=null==d?void 0:d.promoIds)||void 0===i?void 0:i.includes(a))&&d.promoIds.push(a),c&&!(null===(r=null==d?void 0:d.promoIds)||void 0===r?void 0:r.includes(c))&&d.promoIds.push(c),e.push(d)}))})(r,(null==t?void 0:t.productList)||[]),((null==t?void 0:t.tabIndex)===(null==t?void 0:t.activeIndex)&&!(null==g?void 0:g[x])||(null==t?void 0:t.tabIndex)===(null==t?void 0:t.activeIndex)&&s)&&(null==t?void 0:t.dynamicProductOffer))try{null===(o=ee(r,null==t?void 0:t._uid,I,d,a))||void 0===o||o.then((e=>{b(e),u({showPopup:!1})})).catch((e=>{var n,o;console.log("error---\x3e",e),u({showPopup:!0,content:null===(o=null===(n=null==t?void 0:t.lineTableContent)||void 0===n?void 0:n.telesalesBlok)||void 0===o?void 0:o[0]})}))}catch(e){console.log("error---\x3e",e),u({showPopup:!0,content:null===(i=null===(l=null==t?void 0:t.lineTableContent)||void 0===l?void 0:l.telesalesBlok)||void 0===i?void 0:i[0]})}};e.useEffect((()=>{l!=(null==t?void 0:t.tabIndex)&&l||B()}),[null==t?void 0:t.activeIndex]),e.useEffect((()=>{if(((null==t?void 0:t.productList)||[]).forEach((e=>{var n,o,l,i,r,d,a,c,u;w.get(null===(n=null==e?void 0:e.products)||void 0===n?void 0:n.product_story_uuid)||w.set(null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.product_story_uuid,{k:0,prod_id:null==e?void 0:e.products.product_id,showPromotion:null===(l=null==e?void 0:e.products)||void 0===l?void 0:l.dontShowPromotion}),w.get(null===(i=null==e?void 0:e.products)||void 0===i?void 0:i.home_promo_story_uuid)||w.set(null===(r=null==e?void 0:e.products)||void 0===r?void 0:r.home_promo_story_uuid,{k:0}),"4P"!==(null==t?void 0:t.pageType)&&"MOBILE"!==(null==t?void 0:t.pageType)||!(null===(d=null==e?void 0:e.products)||void 0===d?void 0:d.mob_promo_story_uuid)||""===(null===(a=null==e?void 0:e.products)||void 0===a?void 0:a.mob_promo_story_uuid)||(null==w?void 0:w.has(null===(c=null==e?void 0:e.products)||void 0===c?void 0:c.mob_promo_story_uuid))||null==w||w.set(null===(u=null==e?void 0:e.products)||void 0===u?void 0:u.mob_promo_story_uuid,{k:0}),T.push(e)})),"MOBILE"===(null==t?void 0:t.pageType)&&D(!0),w.size>0){let e="";for(const[n,t]of w.entries())0==t.k&&(e=e+n+",",t.k=1);const o=V+`rest/cms/stories/?by_uuids=${e}`;n.CMSStoryblokServiceV2.get(o,k).then((e=>{var n,t;null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.stories)||void 0===t||t.map((e=>{w.get(null==e?void 0:e.uuid).stroy=e}))})).catch((e=>{console.log(e)})).finally((()=>{const e=[];if(T.length>0)if("MOBILE"!==(null==t?void 0:t.pageType)){const t=new Map;if(null==T||T.map((e=>{var n,o,l,i,r,d;const a=null===(o=w.get(null===(n=null==e?void 0:e.products)||void 0===n?void 0:n.product_story_uuid))||void 0===o?void 0:o.stroy;if((null==a?void 0:a.content)&&(null===(l=null==a?void 0:a.content)||void 0===l?void 0:l.body)&&(null===(i=null==a?void 0:a.content)||void 0===i?void 0:i.body[0])){const e=null===(d=null===(r=null==a?void 0:a.content)||void 0===r?void 0:r.body[0])||void 0===d?void 0:d.products;null==e||e.map((e=>{t.get(null==e?void 0:e.listProduct)||t.set(null==e?void 0:e.listProduct,{k:0,prod_id:null==e?void 0:e.listProduct,order:null==e?void 0:e.order})}))}})),t.size>0){let o="";for(const[e,n]of t.entries())0==n.k&&(o=o+e+",",n.k=1);const l=V+`rest/cms/stories/?by_uuids=${o}`;n.CMSStoryblokServiceV2.get(l,k).then((e=>{var n;null===(n=e.data.stories)||void 0===n||n.map((e=>{var n,o;const l=t.get(e.uuid);l.storyBody=(null===(o=null===(n=null==e?void 0:e.content)||void 0===n?void 0:n.body)||void 0===o?void 0:o[0])||null,l.storyBody.default_full_slug=null==e?void 0:e.default_full_slug,l.storyBody.slug=null==e?void 0:e.slug}))})).catch((e=>{console.log(e)})).finally((()=>{null==T||T.map((n=>{var o,l,i,r,d,a,c,u;const s=null===(l=w.get(null===(o=null==n?void 0:n.products)||void 0===o?void 0:o.product_story_uuid))||void 0===l?void 0:l.stroy;if((null==s?void 0:s.content)&&(null===(i=null==s?void 0:s.content)||void 0===i?void 0:i.body)&&(null===(r=null==s?void 0:s.content)||void 0===r?void 0:r.body[0])){const e=null===(d=null==s?void 0:s.content)||void 0===d?void 0:d.body[0],n=[],o=null==e?void 0:e.products;null==o||o.map((e=>{var o;const l=null===(o=t.get(null==e?void 0:e.listProduct))||void 0===o?void 0:o.storyBody;if(n.push(Object.assign({},e,{cProd:l})),l){const e=(null==l?void 0:l.poType)?null==l?void 0:l.poType:null==l?void 0:l.subGroup;if(!C[e]){let n=null==l?void 0:l.slug;"TV"!==e||"NETFLIX"!==(null==l?void 0:l.tvGroup)&&"PREMIUM"!==(null==l?void 0:l.tvGroup)&&"SPORTS"!==(null==l?void 0:l.tvGroup)?"TV"!==e||"TVBOX"!==(null==l?void 0:l.tvGroup)&&"TVAPP"!==(null==l?void 0:l.tvGroup)||(n="tvboxorapp/"+n):n="entertainment/"+n;const t=null==l?void 0:l.default_full_slug.replace(n,"");C[e]={slug:t}}}})),e.products=n}let m=Object.assign({},w.get(null===(a=null==n?void 0:n.products)||void 0===a?void 0:a.home_promo_story_uuid));m.prom=null===(c=null==n?void 0:n.products)||void 0===c?void 0:c.home_parent_promo_id,m.isDefault=null===(u=null==n?void 0:n.products)||void 0===u?void 0:u.home_promo_default;let v=Object.assign({},n,{productStroyObj:s,promStroyObj:m,showPromotion:null==n?void 0:n.dontShowPromotion});e.push(v)}));try{localStorage.setItem("slugDetails",JSON.stringify(C))}catch(e){}E(e)}))}}else(null==T?void 0:T.length)>0&&(null==T||T.map(((n,o)=>{var l,i,r,d,a,c,u,s,m,v;let p;"MOBILE"===(null==t?void 0:t.pageType)&&(p=null==Object?void 0:Object.assign({},null==w?void 0:w.get(null===(l=null==n?void 0:n.products)||void 0===l?void 0:l.mob_promo_story_uuid)),p.prom=null===(i=null==n?void 0:n.products)||void 0===i?void 0:i.mob_parent_promo_id,p.isDefault=null===(r=null==n?void 0:n.products)||void 0===r?void 0:r.mob_promo_default);const _=null==Object?void 0:Object.assign({},n,{productStroyObj:null==w?void 0:w.get(null===(d=null==n?void 0:n.products)||void 0===d?void 0:d.product_story_uuid),promStroyObj:p});if(0==o){const e=null===(a=null==_?void 0:_.productStroyObj)||void 0===a?void 0:a.stroy;if(e){const n=null==e?void 0:e.content,t=(null===(c=null==n?void 0:n.body[0])||void 0===c?void 0:c.poType)?null===(u=null==n?void 0:n.body[0])||void 0===u?void 0:u.poType:null===(s=null==n?void 0:n.body[0])||void 0===s?void 0:s.subGroup;if(!C[t]){const n=null===(m=null==e?void 0:e.default_full_slug)||void 0===m?void 0:m.replace(null==e?void 0:e.slug,"");C[t]={slug:n}}}}_.displayConfig=null!==(v=null==t?void 0:t.displayConfig)&&void 0!==v?v:[],null==e||e.push(_)})),E(e))}))}}),[h]),e.useEffect((()=>(setTimeout((()=>{R()}),100),null===window||void 0===window||window.addEventListener("resize",R),null===window||void 0===window||window.addEventListener("load",R),()=>{window.removeEventListener("resize",R),window.removeEventListener("load",R)})),[y]);const R=()=>{var e;P(`productCardV3${null==t?void 0:t.activeIndex}`,null===(e=null==t?void 0:t.productList)||void 0===e?void 0:e.length)};return e.useEffect((()=>{var e;g&&(null===(e=Object.keys(g))||void 0===e?void 0:e.length)>0&&Oe("view",g[x],"",Ee)}),[g]),e.useEffect((()=>{var e;g&&(null===(e=Object.keys(g))||void 0===e?void 0:e.length)>0&&!L&&(null==a?void 0:a.eligibleBundle)&&Oe("available",g[x],"",Ee,null==a?void 0:a.eligibleBundle)}),[a,g]),e.useEffect((()=>{(null==A?void 0:A.siteId)&&s&&B()}),[A,s]),e.createElement("div",null,e.createElement("div",{className:De.titlecontainer},(null==t?void 0:t.title)&&e.createElement("div",{className:De.title},null==t?void 0:t.title),(null==t?void 0:t.subTitle)&&e.createElement("div",{className:De.description},null==t?void 0:t.subTitle)),e.createElement("div",{className:"linetableV3"},S&&e.createElement(Ae,{carouselIndex:null==t?void 0:t.activeIndex,key:null==t?void 0:t.activeIndex},((null==y?void 0:y.length)&&y||new Array((null==y?void 0:y.length)||3).fill(1)).map(((n,l)=>{var c;return e.createElement("div",{key:l,id:`productCardV3${null==t?void 0:t.activeIndex}`,style:{textAlign:"center"}},e.createElement(En,{content:n,updatedContent:t,key:l,indexKey:l,lineTableContent:null==t?void 0:t.lineTableContent,metadata:o,productSection:l,cards:null===(c=null==t?void 0:t.productList)||void 0===c?void 0:c.length,tabIndex:null==t?void 0:t.tabIndex,offeringData:g,uniqueId:x,lineCheckCallBack:i,sbStaticConstants:r,address:d,eligibleBundle:a,summaryUrl:O,isMobileFlow:L}))})))))};var wn={clockwise:"StickyProductAnchor-module_clockwise__cmjEp",counterclockwise:"StickyProductAnchor-module_counterclockwise__2qVj1",offsetClass:"StickyProductAnchor-module_offsetClass__oPIod",offsetClass2:"StickyProductAnchor-module_offsetClass2__kkZCK",nonOffsetClass:"StickyProductAnchor-module_nonOffsetClass__PDwhG",falconStyle:"StickyProductAnchor-module_falconStyle__Y8I-1",noFalconStyle:"StickyProductAnchor-module_noFalconStyle__j6yBe",noFalconStyle2:"StickyProductAnchor-module_noFalconStyle2__gHBBn",stickyAnchorContainer:"StickyProductAnchor-module_stickyAnchorContainer__I9khe",productTitle:"StickyProductAnchor-module_productTitle__0QC0i",priceSection:"StickyProductAnchor-module_priceSection__Edxyi",priceDuration:"StickyProductAnchor-module_priceDuration__KIRL5",contentWrapper:"StickyProductAnchor-module_contentWrapper__dilZl",benefitsContainer:"StickyProductAnchor-module_benefitsContainer__3guW-",benefitsContainer2:"StickyProductAnchor-module_benefitsContainer2__Kg8ZS",benefits:"StickyProductAnchor-module_benefits__RQU5F",buyNowButton:"StickyProductAnchor-module_buyNowButton__uPigF",subcontain:"StickyProductAnchor-module_subcontain__H0Om-",arrowIcon:"StickyProductAnchor-module_arrowIcon__ZlsgK",productContainer:"StickyProductAnchor-module_productContainer__UAjgq"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.StickyProductAnchor-module_clockwise__cmjEp {\n transform: rotate(180deg);\n transition: transform 0.5s linear;\n}\n\n.StickyProductAnchor-module_counterclockwise__2qVj1 {\n transform: rotate(0deg);\n transition: transform 0.5s linear;\n}\n\n.StickyProductAnchor-module_offsetClass__oPIod {\n top: 10px;\n z-index: 1;\n width: 100%;\n}\n\n.StickyProductAnchor-module_offsetClass2__kkZCK {\n top: 10px;\n z-index: 1;\n width: 100%;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_offsetClass2__kkZCK {\n top: 0px;\n }\n}\n.StickyProductAnchor-module_nonOffsetClass__PDwhG {\n visibility: hidden;\n position: absolute;\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .StickyProductAnchor-module_offsetClass__oPIod {\n top: 10px;\n z-index: 1;\n width: 100%;\n }\n}\n@media (min-width: 1024px) {\n .StickyProductAnchor-module_offsetClass__oPIod {\n top: 85px;\n }\n .StickyProductAnchor-module_falconStyle__Y8I-1 {\n top: 38px !important;\n }\n .StickyProductAnchor-module_noFalconStyle__j6yBe {\n top: 85px !important;\n }\n .StickyProductAnchor-module_noFalconStyle2__gHBBn {\n top: 85px !important;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe {\n background-color: #e6e3df;\n padding: 2px 0px;\n box-shadow: 1px -1px 4px rgba(87, 84, 82, 0.2);\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe {\n padding: 5px 0px;\n background-color: #f7f6f5;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe {\n background-color: #f7f6f5;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i {\n font-size: 18px;\n line-height: 24px;\n font-weight: 700;\n display: flex;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i {\n font-size: 14px;\n line-height: 20px;\n }\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i .StickyProductAnchor-module_priceSection__Edxyi {\n font-size: 12px;\n line-height: 20px;\n }\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i .StickyProductAnchor-module_priceSection__Edxyi .StickyProductAnchor-module_priceDuration__KIRL5 {\n font-weight: 400;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl {\n display: flex;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl {\n align-items: center;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW-, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS {\n margin-right: 24px;\n display: flex;\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW-, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS {\n margin-left: 10px;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW- .StickyProductAnchor-module_benefits__RQU5F, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_benefits__RQU5F {\n margin-right: 18px;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW- .StickyProductAnchor-module_benefits__RQU5F, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_benefits__RQU5F {\n margin: 20px;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_priceSection__Edxyi {\n font-weight: 700;\n margin-right: 16px;\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_priceSection__Edxyi .StickyProductAnchor-module_priceDuration__KIRL5 {\n font-weight: 400;\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_buyNowButton__uPigF {\n padding: 8px 24px;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 25px;\n border: none;\n font-size: 14px;\n line-height: 20px;\n font-weight: 700;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_buyNowButton__uPigF {\n height: 36px;\n }\n}\n\n.StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_subcontain__H0Om- {\n margin: 0px 80px 20px;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_benefitsContainer2__Kg8ZS {\n box-shadow: 1px -1px 4px rgba(87, 84, 82, 0.2);\n }\n .StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_subcontain__H0Om- {\n margin: 0px 57px 20px;\n cursor: pointer;\n }\n}\n\n.StickyProductAnchor-module_arrowIcon__ZlsgK {\n margin-right: 16px;\n}\n\n.StickyProductAnchor-module_productContainer__UAjgq {\n display: flex;\n justify-content: space-between;\n margin: 4px 0px;\n}");exports.AssetPathPropConfig=g,exports.Button=({type:n,text:t,onClick:o,content:l})=>e.createElement("button",{type:"button",className:`button Button-${null==l?void 0:l.type}`,onClick:o},null==l?void 0:l.text),exports.Card=({content:n,updatedContent:t,indexKey:o,listLength:l,addToCart:i,metadata:r,modalTriggered:d,showPrice:a})=>{var c,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,C,S,V,N,I,O,L,D,A,B,R,z,F,$,M,j,G,U,q,X,H,K,Y,J,Z,Q,ee,ne,le,ie,re,de,ae,me,ve,pe,_e,he;const fe=Object.assign({},null!==(s=null===(u=null===(c=null==n?void 0:n.testProductReference)||void 0===c?void 0:c[0])||void 0===u?void 0:u.reference)&&void 0!==s?s:null==n?void 0:n.reference),ge={listLength:l,indexKey:o,arrowUpIcon:null===(_=null===(p=null===(v=null===(m=null==fe?void 0:fe.content)||void 0===m?void 0:m.body)||void 0===v?void 0:v[0])||void 0===p?void 0:p.arrowUp)||void 0===_?void 0:_.filename,arrowDownIcon:null===(b=null===(g=null===(f=null===(h=null==fe?void 0:fe.content)||void 0===h?void 0:h.body)||void 0===f?void 0:f[0])||void 0===g?void 0:g.arrowDown)||void 0===b?void 0:b.filename,arrowLeftRed:null===(T=null===(E=null===(y=null===(x=null==fe?void 0:fe.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===E?void 0:E.arrowLeftRed)||void 0===T?void 0:T.filename},be=null!==(w=null==t?void 0:t.enableNewAddToCart)&&void 0!==w&&w,xe=e.useRef(null),ye=e.useRef(null),Ee=e.useMemo((()=>ge),[ge]),Te=()=>{P("linetable-card-title",l),P("linetable-card-tooltiptxt",l),P("linetable-card-bottomConatiner",l)};return e.useEffect((()=>{setTimeout((()=>{Te()}),100),null===window||void 0===window||window.addEventListener("resize",Te)}),[n]),e.createElement(te.Provider,{value:Ee},e.createElement("div",{className:"linetable-card-productTeaser"},e.createElement("div",{className:"linetable-card-productContainer "},fe.content&&e.createElement(e.Fragment,null,e.createElement("div",{className:"linetable-card-titleContainer",id:`linetable-card-title${o}`,ref:xe},e.createElement("div",{className:"linetable-card-prodHeading"},null===(C=null===(k=null==fe?void 0:fe.content)||void 0===k?void 0:k.body[0])||void 0===C?void 0:C.name),e.createElement("div",{className:"linetable-card-productTitle"},e.createElement("h3",null,null===(V=null===(S=null==fe?void 0:fe.content)||void 0===S?void 0:S.body[0])||void 0===V?void 0:V.displayName),(null===(O=null===(I=null===(N=null==fe?void 0:fe.content)||void 0===N?void 0:N.body[0])||void 0===I?void 0:I.prodImage)||void 0===O?void 0:O.filename)&&e.createElement("img",{src:null===(A=null===(D=null===(L=null==fe?void 0:fe.content)||void 0===L?void 0:L.body[0])||void 0===D?void 0:D.prodImage)||void 0===A?void 0:A.filename,height:15,width:20})),e.createElement("div",{className:"linetable-card-prodDescription"},e.createElement(W,{content:null===(R=null===(B=null==fe?void 0:fe.content)||void 0===B?void 0:B.body[0])||void 0===R?void 0:R.description}))),!(null==t?void 0:t.isPrepaidFlow)&&e.createElement("hr",null)),(null==fe?void 0:fe.content)&&(null===(F=null===(z=null==fe?void 0:fe.content)||void 0===z?void 0:z.body[0])||void 0===F?void 0:F.introText)&&e.createElement(e.Fragment,null,e.createElement("div",{className:""+(be?"d-block":"d-none d-sm-block")},e.createElement("div",{className:"linetable-card-introText",id:`linetable-card-tooltiptxt${o}`,ref:ye},e.createElement(W,{content:null===(M=null===($=null==fe?void 0:fe.content)||void 0===$?void 0:$.body[0])||void 0===M?void 0:M.introText})),e.createElement("hr",null))),null===(U=(null===(G=null===(j=null==fe?void 0:fe.content)||void 0===j?void 0:j.body[0])||void 0===G?void 0:G.entitlementConfig)||[])||void 0===U?void 0:U.map(((t,o)=>e.createElement(oe,{content:t,product:n,key:o,indexKey:o,showEntitleValue:be,metadata:r,modalTriggered:d}))),e.createElement("hr",null),e.createElement("div",{id:`linetable-card-bottomConatiner${o}`,className:"linetable-card-bottomConatiner"},e.createElement("div",{className:"linetable-card-productDetailSection"},(null===(K=null===(H=null===(X=null===(q=null==fe?void 0:fe.content)||void 0===q?void 0:q.body)||void 0===X?void 0:X[0])||void 0===H?void 0:H.productDetailIcon)||void 0===K?void 0:K.filename)&&e.createElement("img",{src:null===(Q=null===(Z=null===(J=null===(Y=null==fe?void 0:fe.content)||void 0===Y?void 0:Y.body)||void 0===J?void 0:J[0])||void 0===Z?void 0:Z.productDetailIcon)||void 0===Q?void 0:Q.filename,width:24,height:24}),e.createElement(ue,{content:null===(ne=null===(ee=null==fe?void 0:fe.content)||void 0===ee?void 0:ee.body)||void 0===ne?void 0:ne[0],updatedContent:t,modalTriggered:d,addToCart:i})),e.createElement("div",null,(null===(re=null===(ie=null===(le=null==fe?void 0:fe.content)||void 0===le?void 0:le.body)||void 0===ie?void 0:ie[0])||void 0===re?void 0:re.isEnablePrice)&&e.createElement(ce,{content:null===(ae=null===(de=null==fe?void 0:fe.content)||void 0===de?void 0:de.body)||void 0===ae?void 0:ae[0],addToCart:i,variant:"productCard"})),e.createElement("div",null,!(null===(pe=null===(ve=null===(me=null==fe?void 0:fe.content)||void 0===me?void 0:me.body)||void 0===ve?void 0:ve[0])||void 0===pe?void 0:pe.isEnablePrice)&&!(null==t?void 0:t.staticPrice)&&e.createElement(se,{content:null===(he=null===(_e=null==fe?void 0:fe.content)||void 0===_e?void 0:_e.body)||void 0===he?void 0:he[0],showPrice:a,addToCart:i}))))))},exports.CardEntitlement=oe,exports.CarouselComp=n=>e.createElement(e.Fragment,null,e.createElement(s,{responsive:{desktop:{breakpoint:{max:7e3,min:1440},items:4},tabletLarge:{breakpoint:{max:1439,min:1024},items:3},tabletMedium:{breakpoint:{max:1023,min:768},items:2},mobile:{breakpoint:{max:767,min:0},items:1}},deviceType:"desktop",ssr:!0,renderButtonGroupOutside:!0,partialVisible:!0,swipeable:!0,autoPlay:!1,shouldResetAutoplay:!1,arrows:!0},n.children),e.createElement("p",null,"compo")),exports.LineTableBasicPropConfig=f,exports.LoginModal=({toggleFun:n})=>(e.useState(!1),e.createElement("div",{className:"loginModal"},e.createElement("div",{className:"w-100 h-100 d-flex position-relative justify-content-center align-items-center"},e.createElement("div",{className:"loginContainer"},"Hi Angles Kathirvel",e.createElement("button",{onClick:n},"Close"))))),exports.ProductTableV3=({content:t,metadata:o,setGenericErrorModalDetails:l,loginSuccess:r,lineCheckCallBack:d,tabCheckCallBack:a,changeAddressClicked:u})=>{var s,m,v;const[p,_]=e.useState(),[h,g]=e.useState(),[b,x]=e.useState(0);let y="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),E=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),k="undefined"!=typeof window&&c.get("chAddressJson");const P=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),C=P+T,S=P+w,V={find_by:"uuid",language:null==o?void 0:o.lang,type:"B2C",value:null==o?void 0:o.storyId};return e.useEffect((()=>{var e,t;(e=C,t=V,K(void 0,void 0,void 0,(function*(){try{return yield n.CMSStoryblokServiceV2.get(e,t).then((e=>{var n,t,o;const l=null===(o=null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.story)||void 0===t?void 0:t.content)||void 0===o?void 0:o.body;for(const e of l)if("productTableV2"==e.component||"productTableWithOutLC"===e.component||"prodConfigContainer"===e.component)return e})).catch((e=>{throw e}))}catch(e){return e}}))).then((e=>g(e))),((e="en",t)=>{try{return n.CMSStoryblokServiceV2.get(t,{dimension:e,per_page:1e3,type:"B2C"}).then((e=>{var n;const t={};((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.datasource_entries)||[]).map((e=>{t[e.name]=null!=e.dimension_value?e.dimension_value:e.value}));try{localStorage.removeItem("sbstaticcontent"),localStorage.setItem("sbstaticcontent",JSON.stringify(t))}catch(e){}return t})).catch((e=>e))}catch(e){throw Error("Promise failed")}})(null==o?void 0:o.lang,S).then((e=>_(e))).catch((e=>console.log(e)))}),[]),e.useEffect((()=>{var e,n,t;const o=new URLSearchParams(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.search),l=null==o?void 0:o.get("tabOption");h&&null!==l&&((null==h?void 0:h.productContainer)||[]).map(((e,n)=>{(null==e?void 0:e.tabId)===l&&x(n)}));const i=null===(t=null===(n=null==h?void 0:h.productContainer)||void 0===n?void 0:n[b])||void 0===t?void 0:t.tabId;null==a||a(i)}),[h]),e.useEffect((()=>{y="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),E=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),k="undefined"!=typeof window&&c.get("chAddressJson")}),[u]),e.createElement("div",{id:"reusable-linetable"},(null==h?void 0:h.productContainer)&&e.createElement(e.Fragment,null,e.createElement(ie,null,e.createElement("div",{className:`row justify-content-center ${De.tabblock}`},(null===(m=null==h?void 0:h.productContainer)||void 0===m?void 0:m.length)>1&&e.createElement("div",{className:` ${De.tabcontainer}`},((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement("div",{className:` ${De.tabs} ${b===t?De.tabcontentactive:De.tabcontentinactive}`,key:null==n?void 0:n.tabCaption},e.createElement("label",{className:` ${De.tabcontent} `},e.createElement("input",{type:"radio",checked:b===t,onChange:()=>{x(t),null==a||a(null==n?void 0:n.tabId),vn(xe,Te,{click_text:null==n?void 0:n.tabCaption})}}),null==n?void 0:n.tabCaption))))))),e.createElement(ie,{resuablelineTable:!0},e.createElement("div",{className:"position-relative "},e.createElement(i.Carousel,{activeIndex:b,indicators:!1,controls:!1,interval:null,id:"pt-carousel",slide:!1},(null===(v=null==h?void 0:h.productContainer)||void 0===v?void 0:v.length)>0&&((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement(i.Carousel.Item,{key:t},e.createElement(Tn,{content:Object.assign(Object.assign({},n),{pageType:n.pageType,dynamicProductOffer:!0,tabIndex:t,activeIndex:b,lineTableContent:h}),metadata:o,activeIndex:b,lineCheckCallBack:d,tabCheckCallBack:a,sbStaticConstants:p,address:k,eligibleBundle:E,setGenericErrorModalDetails:l,loginSuccess:r})))))))))},exports.ProductTeaser=({content:t,lineCheckCallBack:o,offerDataCallBack:l,productCallBack:i})=>{var r,d,a,m,v,p;const[_,h]=e.useState([]),[f,g]=e.useState(""),[y,E]=e.useState(!1),T=null===(r=null==ve?void 0:ve.getInstance())||void 0===r?void 0:r.getBaseUrl(),w=N(),k=null===(d=(null==t?void 0:t.productTeaserSlides)||[])||void 0===d?void 0:d.map((e=>null==e?void 0:e.tabTitle)),P=e=>{var n,o,l,i;const r=null!==(i=null===(l=null===(o=null===(n=(null==t?void 0:t.productTeaserSlides)||[])||void 0===n?void 0:n.filter((n=>(null==n?void 0:n.tabTitle)===e)))||void 0===o?void 0:o[0])||void 0===l?void 0:l.heading)&&void 0!==i?i:"";var d,a;d=Te,a=r,window.dataLayer.push({event:xe,event_name:d,click_text:a})},C=[];return null===(a=(null==t?void 0:t.productTeaserSlides)||[])||void 0===a||a.forEach(((e,n)=>{var t,o;(null==e?void 0:e.productId)&&0===(null===(t=C.filter((n=>n.id===(null==e?void 0:e.productId))))||void 0===t?void 0:t.length)&&C.push({id:null==e?void 0:e.productId,promoIds:[(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:(null==e?void 0:e.productType)===R?z:F]}),(null==e?void 0:e.tvProductId)&&0===(null===(o=C.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.tvProductId))))||void 0===o?void 0:o.length)&&C.push({id:null==e?void 0:e.tvProductId,promoIds:[(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:z]})})),e.useEffect((()=>{var e,t;0===(null==_?void 0:_.length)&&(e=C,t=T,K(void 0,void 0,void 0,(function*(){try{localStorage.removeItem("entertainment"),c.remove("one-commerce-login",{path:"/"});const o={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":b}},l=t+x,i=yield n.ApiServiceV2.getApiServiceInstance().post(l,e,o).then((e=>{if(200==e.status)return null==e?void 0:e.data}));if(i.error)return i.error;{const e=[];return null==i||i.forEach((n=>{e[n.id]=n})),e}}catch(e){console.log("error---\x3e",e)}}))).then((e=>{var n;e&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)>0&&h(e)})).catch((e=>{console.log("error---\x3e",e)}))}),[]),e.useEffect((()=>{var e;(null===(e=null==t?void 0:t.productTeaserSlides)||void 0===e?void 0:e.map((e=>e.productType))).map((e=>{var n,o,r,d,a,c,u,s,m,v,p,h,g;if(1==(null===(n=Object.keys(_))||void 0===n?void 0:n.length)&&"function"==typeof l&&e===$&&"function"==typeof i){const e=null===(r=null===(o=null==C?void 0:C[0])||void 0===o?void 0:o.promoIds)||void 0===r?void 0:r[0],n=null===(d=null==C?void 0:C[0])||void 0===d?void 0:d.id;l(_[n],e,f),i(n)}else if((null===(a=Object.keys(_))||void 0===a?void 0:a.length)>1&&"function"==typeof l&&e===$&&"function"==typeof i){const e=null!==(m=null===(s=null===(u=null===(c=null==C?void 0:C.filter((e=>(null==e?void 0:e.id)===f)))||void 0===c?void 0:c[0])||void 0===u?void 0:u.promoIds)||void 0===s?void 0:s[0])&&void 0!==m?m:"",n=null!==(h=null===(p=null===(v=null==C?void 0:C.filter((e=>(null==e?void 0:e.id)===f)))||void 0===v?void 0:v[0])||void 0===p?void 0:p.id)&&void 0!==h?h:"";l(_[f],e,f),i(n)}else e===R&&(null===(g=null==t?void 0:t.productTeaserSlides)||void 0===g||g.map((e=>{var n,t,o,i,r;const d=y?null==e?void 0:e.tvProductId:null==e?void 0:e.productId;if((null===(n=Object.keys(_))||void 0===n?void 0:n.length)>0&&"function"==typeof l){const e=null!==(r=null===(i=null===(o=null===(t=null==C?void 0:C.filter((e=>(null==e?void 0:e.id)===d)))||void 0===t?void 0:t[0])||void 0===o?void 0:o.promoIds)||void 0===i?void 0:i[0])&&void 0!==r?r:"";l(_[d],e)}})))}))}),[_,f,y]),e.useEffect((()=>{""!==f&&P(f)}),[f]),e.createElement("div",{className:"position-relative"},(null===(m=null==t?void 0:t.productTeaserSlides)||void 0===m?void 0:m.length)>0&&w&&e.createElement(s,{responsive:{desktop:{breakpoint:{max:7e3,min:1440},items:1},tabletLarge:{breakpoint:{max:1439,min:1024},items:1},tabletMedium:{breakpoint:{max:1023,min:768},items:1},mobile:{breakpoint:{max:767,min:0},items:1}},autoPlay:!1,shouldResetAutoplay:!1,showDots:1!==(null===(v=null==t?void 0:t.productTeaserSlides)||void 0===v?void 0:v.length),customDot:e.createElement((n=>{const{onClick:t,active:o,index:l}=n;return o&&g(k[l]),e.createElement("button",{className:o?me.stageTeaserTabActive:me.stageTeaserTab,onClick:()=>t()},k[l])}),null),dotListClass:me.carousel_dot,itemClass:me.carouselItem,ssr:!0,arrows:!1,containerClass:me.carouselContainer,sliderClass:me.sliderClass,customButtonGroup:e.createElement((n=>{var o,l,i;return e.createElement(e.Fragment,null,(null===(o=null==t?void 0:t.productTeaserSlides)||void 0===o?void 0:o.length)>1&&w!==$&&e.createElement("div",{style:{textAlign:"center"}},e.createElement("button",{disabled:0===(null===(l=null==n?void 0:n.carouselState)||void 0===l?void 0:l.currentSlide),className:me.leftArrow,onClick:n.previous}),e.createElement("button",{disabled:(null===(i=null==n?void 0:n.carouselState)||void 0===i?void 0:i.currentSlide)+1===(null==n?void 0:n.carouselState.totalItems),className:me.rightArrow,onClick:n.next})))}),null),customTransition:"transform 1s ease",transitionDuration:500},null===(p=(null==t?void 0:t.productTeaserSlides)||[])||void 0===p?void 0:p.map(((n,l)=>e.createElement(Le,{content:t,slides:n,index:l,offeringData:_,lineCheckCallBack:o,setEnableToggle:E})))))},exports.ProductTeaserPropConfig=ve,exports.StickyProductAnchor=({content:n,offerData:t,lineCheckCallBack:o})=>{var l,i,r,d,a,u,s,m,v,p;const h=null===(l=null==f?void 0:f.getInstance())||void 0===l?void 0:l.getCartUrl(),[g,b]=e.useState(!1),[x,y]=e.useState(!1),[E,T]=e.useState("noFalconStyle"),[w,k]=e.useState("noFalconStyle"),[P,S]=e.useState(!1),V=N(),I=null===(i=null==n?void 0:n.filter((e=>(null==e?void 0:e.productId)===(null==t?void 0:t.id))))||void 0===i?void 0:i[0];let O=0;O=(null==t?void 0:t.derivedPrice)?null===(d=null===(r=null==t?void 0:t.derivedPrice)||void 0===r?void 0:r[0])||void 0===d?void 0:d.value:null===(u=null===(a=null==t?void 0:t.prices)||void 0===a?void 0:a[0])||void 0===u?void 0:u.value;const L=e=>{const n=(null==e?void 0:e.id)&&document.getElementById(null==e?void 0:e.id);S(!1),n&&n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},D=()=>e.createElement("div",{className:wn.priceSection},"CHF"," ",C(O),e.createElement("span",{className:wn.priceDuration},null==I?void 0:I.monthText));e.useEffect((()=>{const e=()=>{var e;const n=document.getElementById("productTeaser");if(!n)return;const{top:t,bottom:o}=n.getBoundingClientRect(),l=(null===window||void 0===window?void 0:window.innerHeight)||document.documentElement.clientHeight;b(t<l&&o>=0);let i=document.querySelectorAll(".sticky-header2");const r=document.getElementById("stickyAnchorContainer"),d=document.querySelectorAll(".sticky-header");if(null!=d){const e=(null==d?void 0:d.length)>0?"falconStyle":"noFalconStyle";T(e)}if(null!=i){const n=null===(e=null==i?void 0:i[0])||void 0===e?void 0:e.offsetHeight;k(n>=75?"noFalconStyle2":"falconStyle2")}const a=null==r?void 0:r.offsetTop;a&&window.scrollY>a?y(!0):y(!1);const c=document.getElementById("dropDownContainer");null==c||c.offsetTop};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]);let A;try{A=null===(s=document.getElementsByTagName("header"))||void 0===s?void 0:s[0]}catch(e){}return A?e.createElement(e.Fragment,null,(null==I?void 0:I.productName)&&e.createElement(e.Fragment,null,_.createPortal(e.createElement(e.Fragment,null,e.createElement("div",{className:`${wn.stickyAnchorContainer} ${x?wn.offsetClass:wn.nonOffsetClass} ${wn[E]} ${wn[w]}`,id:"stickyAnchorContainer"},e.createElement(ie,null,e.createElement("div",{className:wn.productContainer},e.createElement("div",{className:wn.productTitle},(V===j||V===$)&&e.createElement("img",{onClick:()=>{S(!P)},className:`${wn.arrowIcon} ${P?wn.clockwise:wn.counterclockwise}`,src:null===(m=null==I?void 0:I.arrowUp)||void 0===m?void 0:m.filename}),e.createElement("div",null,null==I?void 0:I.productName,e.createElement("div",{className:wn.productPrice},O>0&&(V===j||V===$)&&e.createElement(e.Fragment,null,D())))),e.createElement("div",{className:wn.contentWrapper},V!==j&&V!==$&&e.createElement(e.Fragment,null,e.createElement("span",{className:wn.benefitsContainer},null===(v=(null==I?void 0:I.benefits)||[])||void 0===v?void 0:v.map((n=>e.createElement("div",{className:wn.benefits,onClick:()=>L(n)},null==n?void 0:n.title)))),O>0&&e.createElement(e.Fragment,null,D())),(null==I?void 0:I.buyBtn)&&e.createElement("button",{className:wn.buyNowButton,onClick:(null==I?void 0:I.productType)===$?()=>{(null==t?void 0:t.id)&&Ce(fe,[t],"",be),(null==t?void 0:t.id)&&Q([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:"",h,$).then((e=>{var n;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",null==I?void 0:I.productId,{path:"/"}),window.location.href=null!==(n=null==I?void 0:I.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))}:()=>{var e,n,l;const i=localStorage.getItem("lineCheckResponse"),r=i&&JSON.parse(i),d=c.get("one-commerce-linecheckcorrelationid"),a=c.get("chAddressJson"),u=null!==(e=null==I?void 0:I.productId)&&void 0!==e?e:"",s=a&&r&&(null==r?void 0:r.eligibleBundle.includes(u));r&&a&&d?s&&(0!==(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&Ce(fe,[t],I,be),0!==(null===(l=Object.keys(t))||void 0===l?void 0:l.length)&&Q([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:z,h,R).then((e=>{var n;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",u,{path:"/"}),c.remove("landline"),window.location.href=null!==(n=null==I?void 0:I.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))):"function"==typeof o&&o()}},null==I?void 0:I.buyBtn))))),(null==I?void 0:I.productName)&&P&&e.createElement("div",{className:`${wn.stickyAnchorContainer} ${x?wn.offsetClass2:wn.nonOffsetClass}`,id:"dropDownContainer"},e.createElement("span",{className:wn.benefitsContainer2},null===(p=(null==I?void 0:I.benefits)||[])||void 0===p?void 0:p.map((n=>e.createElement("div",{className:wn.subcontain,onClick:()=>L(n)},null==n?void 0:n.title)))))),A))):e.createElement(e.Fragment,null)};
|
1
|
+
"use strict";var e=require("react"),n=require("@sunrise-upc/ajax-lib"),t=require("react-bootstrap/Modal"),o=require("react-bootstrap/CloseButton"),l=require("storyblok-rich-text-react-renderer-ts"),i=require("react-bootstrap"),r=require("react-bootstrap/Container"),d=require("react-bootstrap/Row"),a=require("react-bootstrap/Col"),c=require("js-cookie"),u=require("uuid"),s=require("react-multi-carousel"),m=require("react-bootstrap/Form"),v=require("react-loading-skeleton"),p=require("react-select"),_=require("react-dom");function h(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}h(".Button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n min-width: 32px;\r\n min-height: 32px;\r\n background-color: aliceblue;\r\n}\r\n\r\n.Button-primary {\r\n background-color: aqua; \r\n}\r\n.Button-secondary{\r\n background-color: burlywood;\r\n}\r\n.Button-error {\r\n background-color: red;\r\n}");class f{constructor(e){this.config={baseURL:"",cartURL:"",storyBlokURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.getSBUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.storyBlokURL)&&void 0!==n?n:""},this.config=e}}f.getInstance=()=>f.instance,f.create=e=>{f.instance=new f(e)};class g{constructor(e){this.config={assetPath:""},this.getAssetPath=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.assetPath)&&void 0!==n?n:""},this.config=e}}g.getInstance=()=>g.instance,g.create=e=>{g.instance=new g(e)};const b="ESHOP",x="v2/offer",y="carts/v2",E="?subscriptionType=",T="rest/cms/singlestory",w="rest/cms/dsource_entries?datasource=one-ecommerce-constant-keys";h(".loginModal {\r\n\talign-items: center;\r\n\tbackground-color: rgba(87, 84, 82, 0.4);\r\n\tcolor: #333333;\r\n\tdisplay: flex;\r\n\theight: 100%;\r\n\tjustify-content: center;\r\n\tleft: 0;\r\n\tpadding: 16px;\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\ttransition: opacity 3s;\r\n\twidth: 100%;\r\n\tz-index: 11;\r\n}\r\n.loginContainer {\r\n position: absolute;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 32px 32px 34px;\r\n background-color: #ffff;\r\n max-width: 500px;\r\n width: 100%;\r\n box-shadow: -1px 18px 25px 5px rgba(87, 84, 82, 0.4);\r\n }\r\n");h('@import "bootstrap/dist/css/bootstrap.linetable-countryOverlay-css";\r\n\r\n.linetable-countryOverlay-linkTextNew {\r\n color: #da291c;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.linetable-countryOverlay-utils-noWrap {\r\n white-space: nowrap;\r\n}\r\n\r\n.linetable-countryOverlay-utils-colWidth {\r\n max-width: 210px;\r\n}\r\n\r\n.linetable-countryOverlay-contain {\r\n display: flex;\r\n align-items: first baseline;\r\n padding-top: 10px;\r\n}\r\n\r\n.linetable-countryOverlay-image {\r\n width: 24px;\r\n height: 16px;\r\n}\r\n\r\n.linetable-countryOverlay-name {\r\n color: #000000;\r\n align-items: center;\r\n padding-left: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 32px;\r\n}\r\n.linetable-countryOverlay-blackthemecolor {\r\n color: #ffffff !important;\r\n}\r\n\r\n.linetable-countryOverlay-desktopView {\r\n display: block;\r\n}\r\n.linetable-countryOverlay-mobView {\r\n display: none;\r\n}\r\n@media (max-width: 767px) {\r\n .linetable-countryOverlay-linkTextNew {\r\n font-size: 14px;\r\n line-height: 24px;\r\n }\r\n}\r\n\r\n@media (min-width: 1440px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: block;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: none;\r\n }\r\n}\r\n@media (max-width: 1023px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: none;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: block;\r\n width: 100%;\r\n }\r\n}\r\n.reusbablelnetable-margin {\r\n\tmargin-left: 0;\r\n}\r\n');const k=e=>{switch(e){case"grey-600":return"falcon-grey-600";case"grey-500":return"falcon-grey-500";case"grey-100":return"falcon-grey-100";case"grey-400":return"falcon-grey-400";case"ice-white":return"falcon-ice-white";default:return""}},P=(e,n)=>{const t=[];let o,l,i=0;[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height="unset",t.push(null==l?void 0:l.clientHeight),i++)})),o=Math.max(...t),i=0,[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height=`${o}px`),i++}))},C=e=>{e=Number(e);let n=0;return n=new RegExp("^[0-9][^.]*$").test(e.toString())?e+".-":e.toFixed(2).replace(/\.00$/,""),n},S=e=>{const n="undefined"!=typeof window&&localStorage.getItem(e),t=new Date;if(!n)return null;let o={};try{if(o=JSON.parse(n),o.expiry&&t.getTime()>o.expiry)return V(e),null}catch(e){return n}return null==o?void 0:o.value},V=e=>{localStorage.removeItem(e)},N=()=>{const[n,t]=e.useState(0);return e.useEffect((()=>{const e=()=>{t(window.innerWidth)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),n>=1440?"large-desktop":n<1440&&n>=1024?"desktop":n<1024&&n>=768?"tablet":n<768&&n>0?"mobile":""},I=()=>{const[n,t]=e.useState(!1),o=()=>{const e=window.matchMedia("(pointer:coarse)");t(e.matches)};return e.useEffect((()=>(o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o))),[]),n},O=(e,n)=>null==e?void 0:e.replace(/{\w+}/g,(e=>n[e.substring(1,e.length-1)]||e)),L="none",D="falconDescription",A="falconAccordionList",B="spacer",R="fixnet",z="defaultWirelineBundle",F="defaultMobilePostpaidBundle",$="mobile",M="desktop",j="tablet",G={EN:"English",FR:"Français",IT:"Italiano",DE:"Deutsch"};h(".dbold {\r\n font-weight: 500;\r\n font-size: 40px;\r\n line-height: 60px;\r\n}\r\n");const U=({content:n})=>{var t;const o=k((null==n?void 0:n.textColor)&&n.textColor),l=(null==n?void 0:n.textColor)&&n.textColor!=L?o:"",i=(null==n?void 0:n.textColor)&&n.textColor===L?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{};return e.createElement(e.Fragment,null,n.headingStyle&&n.text&&"h1"===n.headingStyle?e.createElement("h1",{className:l,style:Object.assign({},i)},n.text," "):"h2"===n.headingStyle?e.createElement("h2",{className:`${l}`,style:Object.assign({},i)},n.text):"h3"===n.headingStyle?e.createElement("h3",{className:l,style:Object.assign({},i)},n.text):"h4"===n.headingStyle?e.createElement("h4",{className:l,style:Object.assign({},i)},n.text):e.createElement("div",{className:"dbold",style:Object.assign({},i)},n.text))},W=n=>{var t;const o=N(),r=I(),d="mobile"===o||"tablet"===o||r,a=null===(t=null==g?void 0:g.getInstance())||void 0===t?void 0:t.getAssetPath();return e.createElement("div",null,l.render(n.content,{markResolvers:{link:(t,o)=>{const{href:l,target:r,linktype:c}=o;return"email"===c?e.createElement("a",{href:`mailto:${l}`,target:null===r||"_self"===r?"_top":"_blank"},t):n.isIFrame?e.createElement("a",{href:l,target:null===r||"_self"===r?"_top":"_blank"},t):e.createElement(e.Fragment,null,(null==n?void 0:n.linkAsTooltip)&&(null==n?void 0:n.toolTipText)?e.createElement(i.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:d?"click":"hover",overlay:(null==n?void 0:n.toolTipText)?e.createElement(i.Popover,null,e.createElement(i.Popover.Body,null,null==n?void 0:n.toolTipText,d&&a&&e.createElement("img",{src:`${a}/icons/overlay-close.svg`,alt:"close",style:{float:"right"},width:24,height:24,onClick:()=>{var e;return null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.click()}}))):e.createElement(e.Fragment,null)},e.createElement("span",null,t)):e.createElement("a",{href:l,target:null===r?"":r},t))}}}))},q=({content:n})=>{var t;const o=k(n.textColor);return e.createElement(e.Fragment,null,e.createElement("div",{className:`d-inline-flex align-${n.textElementPosition}`},n.icon&&n.icon.filename&&e.createElement("img",{src:n.icon&&n.icon.filename,alt:n.icon&&n.icon.alt,title:n.icon&&n.icon.title,height:24,width:24}),n.text&&e.createElement("div",{className:`${n.icon&&n.icon.filename} ${n.textColor&&n.textColor!=L?o:""}`,style:Object.assign({},n.textColor&&n.textColor===L?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{})},e.createElement(W,{content:n.text}))))};h(".linetable-country-overlayModal {\r\n max-width: 900px;\r\n padding: 1rem 2rem;\r\n}\r\n");const X=({children:n,modalState:l,handler:i,noCloseButton:r,showBackBtn:d,overlay:a})=>{const[c,u]=e.useState(),[s,m]=e.useState();return e.useEffect((()=>{a.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"falconTitle"==(null==e?void 0:e.component)&&u(e),"falconDescription"==(null==e?void 0:e.component)&&m(e)}))}))}),[a]),e.createElement(e.Fragment,null,e.createElement(t,{centered:!0,show:l,onHide:i,keyboard:!1,dialogClassName:"linetable-country-overlayModal"},e.createElement(t.Header,null,e.createElement("div",{style:{display:r?"none":""}},e.createElement("div",{className:"d-flex align-items-center"},d&&e.createElement("div",{className:"me-sm-4 me-3 d-flex align-items-center",onClick:i},e.createElement("img",{src:"../../icons/left_arrow.svg"})),c&&e.createElement(U,{content:c}))),e.createElement("div",{style:{display:r?"none":""}},e.createElement(o,{className:"sr-modal-close",onClick:i}))),e.createElement(t.Body,null,n),e.createElement(t.Footer,null,s&&e.createElement(q,{content:s}))))};h(".linetable-dotLoader-loaderParent {\r\n width: 100%;\r\n position: fixed;\r\n z-index: 3;\r\n top: 0;\r\n left: 0;\r\n bottom: 0;\r\n right: 0;\r\n background-color: rgba(255, 255, 255, 0.8);\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-dotLoader-dotClass {\r\n justify-content: center;\r\n display: flex;\r\n z-index: 1;\r\n}\r\n.linetable-dotLoader-dotContent {\r\n display: flex;\r\n justify-content: center;\r\n animation: contentplay 2s linear 0s infinite;\r\n}\r\n@keyframes dotplay {\r\n 0%,\r\n 20% {\r\n transform: translateY(0);\r\n }\r\n 10% {\r\n transform: translateY(-20px);\r\n }\r\n}\r\n.linetable-dotLoader-dots:nth-child(1) {\r\n animation-delay: 0.4s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(2) {\r\n animation-delay: 0.8s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(3) {\r\n animation-delay: 1.2s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(4) {\r\n animation-delay: 1.6s;\r\n}\r\n.linetable-dotLoader-dots {\r\n margin: 5px 2px;\r\n width: 12px;\r\n height: 12px;\r\n border-radius: 50%;\r\n background: linear-gradient(180deg, #e2271e 0%, #ef7c3c 100%);\r\n animation: dotplay 2s linear 0s infinite;\r\n}\r\n@keyframes contentplay {\r\n 0% {\r\n opacity: 0.2;\r\n }\r\n 30% {\r\n opacity: 1;\r\n }\r\n}\r\n");const H=({keyParams:n})=>{const[t,o]=e.useState(0),[l,i]=e.useState({}),r={checkout:[null==l?void 0:l.uspFreeShipping,null==l?void 0:l.uspBestService,null==l?void 0:l.uspCheckout],loading:[null==l?void 0:l.loading]},d=n?r[`${n}`]:r.checkout;return e.useEffect((()=>{i(S("sbstaticcontent"))}),[]),e.useEffect((()=>{let e=d.length-1;o(e);const n=setInterval((()=>{o(e--),e<0&&(e=d.length-1)}),2e3);return()=>{clearTimeout(n)}}),[]),e.createElement("div",{className:"d-flex align-items-center justify-content-center linetable-dotLoader-loaderParent"},e.createElement("div",{className:"linetable-dotLoader-dotClass"},e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"})),e.createElement("div",null,e.createElement("h4",{className:"linetable-dotLoader-dotContent"},d[t]," ")))};function K(e,n,t,o){return new(t||(t=Promise))((function(l,i){function r(e){try{a(o.next(e))}catch(e){i(e)}}function d(e){try{a(o.throw(e))}catch(e){i(e)}}function a(e){var n;e.done?l(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(r,d)}a((o=o.apply(e,n||[])).next())}))}const Y=e=>{const n=[];return null==e||e.map((e=>{const t=Number(null==e?void 0:e.order)||999,o=null==e?void 0:e.cProd;o.sortOrder=t,null==n||n.push(o)})),null==n||n.sort(((e,n)=>(null==e?void 0:e.sortOrder)-(null==n?void 0:n.sortOrder))),n};let J=void 0!==typeof window&&c.get("sunriseAuth");J=J&&JSON.parse(J);const Z=(e,t,o,l)=>K(void 0,void 0,void 0,(function*(){var i;const r=S(`${e}_${t}_countryData`);if(r)return r;try{const r={language:t,type:"B2C"},d=null===(i=(yield n.CMSStoryblokServiceV2.get(o,r)).data)||void 0===i?void 0:i.stories;return d&&d.length>0&&((e,n,t)=>{let o=null;const l=new Date;o={value:n,expiry:t?l.getTime()+t:null},localStorage.setItem(e,JSON.stringify(o))})(`${e}_${t}_countryData`,d,l),d}catch(e){return console.error(e),e}})),Q=(e,t,o,l,i,r)=>K(void 0,void 0,void 0,(function*(){var d,a,s,m,v,p,_,h,f,g,x,E,T,w,k,P,C,S,N,I,O,L,D,A,B,z,F,M,j,G,U,W,q,X,H,K,Y,J,Z,Q,ee,ne,te,oe,le,ie,re,de,ae,ce;let ue={};if(i===R){let n="",l="";const i=null!==(d=c.get("one-commerce-linecheckcorrelationid"))&&void 0!==d?d:"",u=(e=>{var n,t,o;let l=[],i=void 0!==typeof window&&localStorage.getItem("lineCheckResponse");if(i){i=JSON.parse(i);const r=null===(n=null==i?void 0:i.originalLinecheckResponse)||void 0===n?void 0:n.sellableProducts;l=null===(o=null===(t=null==r?void 0:r.find((n=>(null==n?void 0:n.name)===e)))||void 0===t?void 0:t.access)||void 0===o?void 0:o[0]}return l})(null===(a=null==e?void 0:e[0])||void 0===a?void 0:a.id);ue={relatedParty:[{id:"anonymous",segment:"RESIDENTIAL"}],cartItem:[{itemType:"HOME",promotionId:o,items:[],note:[{author:"linecheckCorrelationId",text:i}]}]};const b={itemType:"MOBILE",promotionId:o,items:[]};if(null===(s=e[0])||void 0===s?void 0:s.isBundle)null===(v=null===(m=e[0])||void 0===m?void 0:m.bundledOffers)||void 0===v||v.map((e=>{var o,i,r,d,a,c,u,s,m,v,p,_,h,f,g,x,y,E,T;if(null===(i=null===(o=null==e?void 0:e.promotionInfo)||void 0===o?void 0:o[0])||void 0===i?void 0:i.id){const t=1==(null===(u=null===(c=null===(a=null===(d=null===(r=null==e?void 0:e.promotionInfo)||void 0===r?void 0:r[0])||void 0===d?void 0:d.hardwareGift)||void 0===a?void 0:a[0])||void 0===c?void 0:c.ids)||void 0===u?void 0:u.length)?null===(_=null===(p=null===(v=null===(m=null===(s=null==e?void 0:e.promotionInfo)||void 0===s?void 0:s[0])||void 0===m?void 0:m.hardwareGift)||void 0===v?void 0:v[0])||void 0===p?void 0:p.ids)||void 0===_?void 0:_[0]:"";"mobile"===(null===(h=null==e?void 0:e.productType)||void 0===h?void 0:h.toLowerCase())?(b.promotionId=null===(g=null===(f=null==e?void 0:e.promotionInfo)||void 0===f?void 0:f[0])||void 0===g?void 0:g.id,n=t):(ue.cartItem[0].promotionId=null===(y=null===(x=null==e?void 0:e.promotionInfo)||void 0===x?void 0:x[0])||void 0===y?void 0:y.id,l=t)}"tv"==(null===(E=null==e?void 0:e.productType)||void 0===E?void 0:E.toLowerCase())&&t?ue.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:t}):"mobile"===(null===(T=null==e?void 0:e.productType)||void 0===T?void 0:T.toLowerCase())?b.items.push({itemType:"RATEPLAN",id:null==e?void 0:e.id}):ue.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:null==e?void 0:e.id})})),l&&(null===(p=ue.cartItem[0].items)||void 0===p||p.push({itemType:"GIFT",id:l})),n&&b.items.push({itemType:"GIFT",id:n}),(null===(_=null==b?void 0:b.items)||void 0===_?void 0:_.length)>0&&(null===(h=null==ue?void 0:ue.cartItem)||void 0===h||h.push(b));else{const n=1==(null===(w=null===(T=null===(E=null===(x=null===(g=null===(f=null==e?void 0:e[0])||void 0===f?void 0:f.promotionInfo)||void 0===g?void 0:g[0])||void 0===x?void 0:x.hardwareGift)||void 0===E?void 0:E[0])||void 0===T?void 0:T.ids)||void 0===w?void 0:w.length)?null===(I=null===(N=null===(S=null===(C=null===(P=null===(k=null==e?void 0:e[0])||void 0===k?void 0:k.promotionInfo)||void 0===P?void 0:P[0])||void 0===C?void 0:C.hardwareGift)||void 0===S?void 0:S[0])||void 0===N?void 0:N.ids)||void 0===I?void 0:I[0]:"";ue.cartItem[0].items.push({itemType:null===(O=null==e?void 0:e[0])||void 0===O?void 0:O.productType,id:null===(L=null==e?void 0:e[0])||void 0===L?void 0:L.id}),n&&(null===(D=ue.cartItem[0].items)||void 0===D||D.push({itemType:"GIFT",id:n}))}r&&(null==r?void 0:r.length)>0&&(null==r||r.map((e=>{var n,t,o,l;"HOME"===(null==e?void 0:e.parentPoType)?null===(o=null===(t=null===(n=null==ue?void 0:ue.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}):null===(l=b.items)||void 0===l||l.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId})}))),(null==u?void 0:u.accessType)&&(null===(z=null===(B=null===(A=null==ue?void 0:ue.cartItem)||void 0===A?void 0:A[0])||void 0===B?void 0:B.note)||void 0===z||z.push({author:"lineCheckaccessType",text:null==u?void 0:u.accessType})),(null==u?void 0:u.timeSlot)&&(null===(j=null===(M=null===(F=null==ue?void 0:ue.cartItem)||void 0===F?void 0:F[0])||void 0===M?void 0:M.note)||void 0===j||j.push({author:"lineCheckEarliestActivationDate",text:null===(G=null==u?void 0:u.timeSlot)||void 0===G?void 0:G.start}));try{const e=(e=>{const n=e+"=";let t;return document.cookie.split(";").some((e=>{for(;" "===e.charAt(0);)e=e.substring(1);return 0===e.indexOf(n)&&(t=JSON.parse(decodeURIComponent(e.substring(n.length,e.length))),!0)})),t})("chAddressJson"),n=[{characteristic:{installationAddress:!0,country:"CH",city:null===(U=null==e?void 0:e.selectedAdd)||void 0===U?void 0:U.city,street1:null===(W=null==e?void 0:e.selectedAdd)||void 0===W?void 0:W.street,postCode:null===(q=null==e?void 0:e.selectedAdd)||void 0===q?void 0:q.postCode,street2:null===(X=null==e?void 0:e.selectedAdd)||void 0===X?void 0:X.houseNumber}}];ue.contactMedium=n}catch(e){console.log("issue at line check address addition in create cart ==>",e)}}else if(i===$){ue={relatedParty:[{segment:"RESIDENTIAL"}],cartItem:[{itemType:"MOBILE",promotionId:o,items:[{itemType:"RATEPLAN",id:(null===(H=null==e?void 0:e[0])||void 0===H?void 0:H.id)?null===(K=null==e?void 0:e[0])||void 0===K?void 0:K.id:e}]}]};const n=1==(null===(ne=null===(ee=null===(Q=null===(Z=null===(J=null===(Y=null==e?void 0:e[0])||void 0===Y?void 0:Y.promotionInfo)||void 0===J?void 0:J[0])||void 0===Z?void 0:Z.hardwareGift)||void 0===Q?void 0:Q[0])||void 0===ee?void 0:ee.ids)||void 0===ne?void 0:ne.length)?null===(de=null===(re=null===(ie=null===(le=null===(oe=null===(te=null==e?void 0:e[0])||void 0===te?void 0:te.promotionInfo)||void 0===oe?void 0:oe[0])||void 0===le?void 0:le.hardwareGift)||void 0===ie?void 0:ie[0])||void 0===re?void 0:re.ids)||void 0===de?void 0:de[0]:"";n&&(null===(ae=ue.cartItem[0].items)||void 0===ae||ae.push({itemType:"GIFT",id:n})),r&&(null==r?void 0:r.length)>0&&(null==r||r.map((e=>{var n,t,o;"HOME"!==(null==e?void 0:e.parentPoType)&&(null===(o=null===(t=null===(n=null==ue?void 0:ue.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}))})))}const se={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":b}},me=l+y;if((null===(ce=Object.keys(ue))||void 0===ce?void 0:ce.length)>0){const e=yield n.ApiServiceV2.getApiServiceInstance().post(me,ue,se).then((e=>{if(V("isB2BCustomer"),200==e.status)return null==e?void 0:e.data}));if(e.error)throw e.error;return e}})),ee=(e,t,o,l,i)=>K(void 0,void 0,void 0,(function*(){localStorage.removeItem("entertainment");const r={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":b}},d=o+x,a=l&&null==J?d+E+i:d,c=yield n.ApiServiceV2.getApiServiceInstance().post(a,e,r).then((e=>{if(200==e.status)return null==e?void 0:e.data}));return c.error?c.error:{[t]:c}})),ne=({linkText:n,product:t,metadata:o,modalTriggered:l,reuseableLineTable:i})=>{var c,u,s,m;const[v,p]=e.useState(!1),[_,h]=e.useState([]),[g,b]=e.useState(!0),[x,y]=e.useState(),[E,T]=e.useState([]),w=(null===(u=null===(c=null==t?void 0:t.testProductReference)||void 0===c?void 0:c[0])||void 0===u?void 0:u.reference)?null===(m=null===(s=null==t?void 0:t.testProductReference)||void 0===s?void 0:s[0])||void 0===m?void 0:m.reference:null==t?void 0:t.reference;let k;e.useEffect((()=>{_&&_.length>0&&_.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"countryListComponent"==(null==e?void 0:e.component)&&T(null==e?void 0:e.countryValues)}))}))}),[_]),e.useEffect((()=>{(null==E?void 0:E.length)>0&&(k=E.length,y(Math.ceil(k/3)))}),[E]);return e.createElement(e.Fragment,null,e.createElement(X,{modalState:v,handler:()=>{p(!1),"function"==typeof l&&l()},overlay:_},g&&e.createElement(H,{keyParams:"loading"}),!g&&e.createElement(e.Fragment,null,e.createElement(r,{className:"linetable-countryOverlay-desktopView"},e.createElement("div",null,e.createElement(d,{className:"linetable-countryOverlay-utils-noWrap"},e.createElement(a,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(d,null,E.slice(0,x).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(a,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(d,null,E.slice(x,2*x).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(a,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(d,null,E.slice(2*x,3*x).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name))))))))),e.createElement(r,{className:"linetable-countryOverlay-mobView"},e.createElement(d,null,e.createElement(a,null,e.createElement(d,null,E.map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))))))),e.createElement("span",{onClick:()=>{var e,n,t,r,d,a,c,u,s,m,_;p(!v),"function"==typeof l&&l();const g=(null===(r=null===(t=null===(n=null===(e=null==w?void 0:w.content)||void 0===e?void 0:e.body)||void 0===n?void 0:n[0])||void 0===t?void 0:t.countryList)||void 0===r?void 0:r.cached_url)?null===(s=null===(u=null===(c=null===(a=null===(d=null==w?void 0:w.content)||void 0===d?void 0:d.body)||void 0===a?void 0:a[0])||void 0===c?void 0:c.countryList)||void 0===u?void 0:u.cached_url)||void 0===s?void 0:s.replace(null==o?void 0:o.lang,""):null==w?void 0:w.replace(null==o?void 0:o.lang,""),x=null==g?void 0:g.replace("//",""),y=`${i?null===(m=null==f?void 0:f.getInstance())||void 0===m?void 0:m.getSBUrl():null===(_=null==f?void 0:f.getInstance())||void 0===_?void 0:_.getBaseUrl()}rest/cms/stories/?by_slugs=${x}`,E=null==w?void 0:w.name;Z(E,null==o?void 0:o.lang,y,864e5).then((e=>{e&&e.length>0&&h(e),b(!1)}))},className:`linetable-countryOverlay-linkTextNew display-5 ${i&&"reusbablelnetable-margin"}`},n))};h(".linetable-CardEntitlement-mobileProductEntitlement {\r\n margin: 0;\r\n padding: 0 16px 0 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementValue {\r\n display: flex;\r\n margin-bottom: 4px;\r\n align-items: center;\r\n font-size: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementIcon {\r\n align-self: flex-start;\r\n margin-right: 8px;\r\n}\r\n\r\n.linetable-CardEntitlement-entitlementIcon img {\r\n vertical-align: sub;\r\n}\r\n.linetable-CardEntitlement-animationTitle {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #3d3935;\r\n font-weight: 700;\r\n margin-bottom: auto;\r\n}\r\n.linetable-CardEntitlement-entitlementContent {\r\n display: inline-flex;\r\n margin-bottom: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementDescription {\r\n color: #3d3935;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n font-size: 16px;\r\n font-weight: 500;\r\n width: calc(100% - 32px);\r\n}\r\n");const te=e.createContext({indexKey:0,listLength:0,arrowUpIcon:"",arrowDownIcon:"",arrowLeftRed:""}),oe=({content:n,product:t,indexKey:o,showEntitleValue:l,metadata:i,modalTriggered:r})=>{var d,a,c,u;const s=e.useRef(null),m=e.useContext(te),v=()=>{P(`linetable-CardEntitlement-entitlementSection${m.indexKey}`,m.listLength)};return e.useEffect((()=>{setTimeout((()=>{(null==s?void 0:s.current)&&v()}),200),window.addEventListener("resize",v)}),[n]),e.createElement("div",{className:"linetable-CardEntitlement-mobileProductEntitlement",id:`linetable-CardEntitlement-entitlementSection${o}${m.indexKey}`,ref:s},e.createElement("div",{className:"row linetable-CardEntitlement-entitlementContent"},e.createElement("div",{className:"linetable-CardEntitlement-entitlementValue "},e.createElement(e.Fragment,null,(null==n?void 0:n.isblacktheme)?e.createElement(e.Fragment,null,(null===(d=null==n?void 0:n.blackFridayentitlementIcon)||void 0===d?void 0:d.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(a=null==n?void 0:n.blackFridayentitlementIcon)||void 0===a?void 0:a.filename,width:20,height:20}))):e.createElement(e.Fragment,null,(null===(c=null==n?void 0:n.entitlementIcon)||void 0===c?void 0:c.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(u=null==n?void 0:n.entitlementIcon)||void 0===u?void 0:u.filename,width:20,height:20}))),e.createElement("span",{className:"linetable-CardEntitlement-animationTitle entitlementDisplay"},null==n?void 0:n.entitlementName))),e.createElement("div",{className:"d-block"},n.entitlementDescription&&l&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementDescription"},null==n?void 0:n.entitlementDescription),(null==n?void 0:n.linkText)&&e.createElement(ne,{product:t,linkText:null==n?void 0:n.linkText,metadata:i,modalTriggered:r,reuseableLineTable:!1}))))};h(".linetable-card-linetable-card-flexGrid {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-card-productContainer {\r\n background-color: #fff;\r\n padding: 24px 0 16px;\r\n text-align: left;\r\n height: 100%;\r\n border-radius: 8px;\r\n}\r\n.linetable-card-productContainer hr {\r\n margin: 16px;\r\n}\r\n.linetable-card-introText {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n font-size: 16px;\r\n line-height: 24px;\r\n font-weight: 500;\r\n color: #587467;\r\n}\r\n.linetable-card-productTeaser {\r\n background-color: #fff;\r\n border-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n box-shadow: 0px 4px 12px 0px #57545233;\r\n}\r\n.linetable-card-prodHeading {\r\n font-size: 14px;\r\n line-height: 20px;\r\n color: #606060;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n}\r\n.linetable-card-titleContainer {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n}\r\n.linetable-card-productTitle {\r\n color: #1e1e1e;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n display: flex;\r\n align-items: baseline;\r\n justify-content: space-between;\r\n}\r\n.linetable-card-productTitle > h1,\r\n.linetable-card-productTitle > h2,\r\n.linetable-card-productTitle > h3,\r\n.linetable-card-productTitle > h4,\r\n.linetable-card-productTitle > h5,\r\n.linetable-card-productTitle > h6 {\r\n color: #1e1e1e !important;\r\n}\r\n.linetable-card-productTitle > h3 {\r\n font-size: 24px;\r\n line-height: 32px;\r\n}\r\n.linetable-card-productTitle > h2 {\r\n margin-right: 8px;\r\n}\r\n.linetable-card-prodDescription {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #333333;\r\n display: flex;\r\n font-weight: 400;\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-card-productTitle {\r\n height: auto;\r\n }\r\n}\r\n\r\n.linetable-card-productDetailSection{\r\n margin: 0 16px;\r\n}\r\n.linetable-card-productDetailSection img {\r\n vertical-align: bottom;\r\n margin-right: 8px;\r\n}\r\n.linetable-card-bottomConatiner {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: end;\r\n}");const le=({modalState:n,handler:t,showFooter:o,footerNode:l,children:r,width:d,height:a,noCloseButton:c,backButton:u})=>{const s=e.useContext(te);return e.useEffect((()=>{const e=document.querySelector(".linetable-product-modal .footer-main");e&&(e.style.zIndex="10");const n=document&&document.querySelector(".modal-dialog.linetable-product-modal");n&&(n.style.maxWidth=d,n.style.padding="0",n.style.transform="none");const t=document.querySelector(".linetable-product-modal .modal-content");t&&(t.style.height=a,t.style.backgroundColor="#F7F6F5");const o=document.querySelector(".linetable-product-modal .modal-header");o&&(o.style.position="absolute",o.style.top="0",o.style.zIndex="1",o.style.maxWidth="100%",o.style.background="#f8f8f8",o.style.width="100%");const l=document.querySelector(".linetable-product-modal .modal-body");l&&(l.style.background="#f8f8f8",l.style.paddingTop="70px")}),[a]),e.createElement(i.Modal,{scrollable:!1,show:n,onHide:t,keyboard:!1,dialogClassName:"linetable-product-modal"},e.createElement(i.Modal.Header,null,u&&e.createElement("div",{style:{justifyContent:"start",cursor:"pointer"},onClick:t},e.createElement(e.Fragment,null,(null==s?void 0:s.arrowLeftRed)&&e.createElement("img",{src:null==s?void 0:s.arrowLeftRed,width:24,height:24}),e.createElement("span",{style:{color:"#DA291C"}}," ",u))),e.createElement("div",{style:{display:c?"none":"",justifyContent:"end"}},e.createElement(i.CloseButton,{className:"sr-modal-close",onClick:t}))),e.createElement(i.Modal.Body,null,r),o&&e.createElement(i.Modal.Footer,null,l))};h(".linetable-sr-def-row {\r\n margin-left: auto;\r\n margin-right: auto;\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n max-width: 1308px;\r\n width: 100%;\r\n}\r\n\r\n.resusable-linetable {\r\n padding-left: 0;\r\n padding-right: 0;\r\n}\r\n\r\n@media (min-width: 1024px) and (max-width: 1439px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n@media (min-width: 768px) and (max-width: 1023px) {\r\n .linetable-sr-def-row {\r\n max-width: 720px;\r\n }\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n.linetable-sr-def-row .linetable-sr-def-row {\r\n padding: 0px;\r\n max-width: 100%;\r\n}");const ie=({children:n,resuablelineTable:t})=>e.createElement("div",{className:`linetable-sr-def-row linetable-sr-responsive-row\n ${t&&"resusable-linetable"}\n `},n);h(".linetable-falconAccordion-section {\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description {\r\n color: #3d3935;\r\n padding-bottom: 32px;\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description p a {\r\n color: #da291c;\r\n}\r\n\r\n.linetable-falconAccordion-container {\r\n box-shadow: 0 2px 4px rgba(87, 84, 82, 0.2);\r\n border-radius: 8px;\r\n overflow: hidden;\r\n padding: 0;\r\n}\r\n\r\n.linetable-falconAccordion-current-item {\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:first-child {\r\n border-radius: 8px 8px 0 0;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:last-child {\r\n border-bottom: none;\r\n border-radius: 0 0 8px 8px;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-item:hover {\r\n background-color: #f7f6f5;\r\n}\r\n\r\n.linetable-falconAccordion-wrapper {\r\n margin-left: 32px;\r\n margin-right: 32px;\r\n border-bottom: 1px solid #e6e3df;\r\n}\r\n\r\n.linetable-falconAccordion-title {\r\n color: #3d3935;\r\n font-style: normal;\r\n font-weight: bold;\r\n font-size: 16px;\r\n line-height: 24px;\r\n margin-right: 28px;\r\n min-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 24px 0;\r\n}\r\n\r\n.prod-card .accordion-body {\r\n padding: 8px 0 32px 0;\r\n color: #3d3935;\r\n text-align: left;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-button::after {\r\n position: absolute;\r\n top: 24px;\r\n right: 0;\r\n background-image: url('/ecom-int/icons/falcon-arrow-down.svg') !important;\r\n background-size: 24px 24px !important;\r\n background-size: unset;\r\n}\r\n\r\n.prod-card .accordion-button:not(.collapsed)::after {\r\n background-image: url('/ecom-int/icons/falcon-arrow-up.svg') !important;\r\n}\r\n\r\n.linetable-falconAccordion-disabled {\r\n opacity: 0.8;\r\n pointer-events: none;\r\n background-color: #e6e3df;\r\n}\r\n\r\n/* for mobile view */\r\n@media (max-width: 767px) {\r\n .prod-card .description {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .linetable-falconAccordion-item:hover {\r\n background-color: none;\r\n }\r\n\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n }\r\n\r\n .prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 16px 0;\r\n }\r\n\r\n .prod-card .accordion-body {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .prod-card .accordion-button::after {\r\n top: 16px;\r\n }\r\n}\r\n\r\n/* For tablet view */\r\n@media (max-width: 1023px) {\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 24px;\r\n margin-right: 24px;\r\n }\r\n}");const re=({content:n})=>{const t=null==n?void 0:n._uid;return e.createElement("div",{className:"prod-card"},e.createElement(i.Accordion,{flush:!0,defaultActiveKey:(null==n?void 0:n.alwaysOpen)?t:""},e.createElement(i.Accordion.Item,{eventKey:t,className:`${(null==n?void 0:n.disabled)&&"linetable-falconAccordion-disabled"} linetable-falconAccordion-item`},e.createElement("div",{className:"linetable-falconAccordion-wrapper"},e.createElement(i.Accordion.Header,null,e.createElement("span",{className:"linetable-falconAccordion-title"},null==n?void 0:n.title)),e.createElement(i.Accordion.Body,null,(null==n?void 0:n.bodyText)&&e.createElement(W,{content:null==n?void 0:n.bodyText}))))))},de=({content:n})=>{var t,o,l,i,r,d,a;return e.createElement("section",{className:"linetable-falconAccordion-section"},e.createElement(ie,null,e.createElement(e.Fragment,null,(null==n?void 0:n.title)&&(null===(t=null==n?void 0:n.title)||void 0===t?void 0:t.length)>0&&e.createElement(U,{content:null===(o=null==n?void 0:n.title)||void 0===o?void 0:o[0]}),(null==n?void 0:n.description)&&(null===(l=null==n?void 0:n.description)||void 0===l?void 0:l.length)>0&&e.createElement("div",{className:"linetable-falconAccordion-description"},e.createElement(q,{content:null===(i=null==n?void 0:n.description)||void 0===i?void 0:i[0]})),(null==n?void 0:n.accordions)&&(null===(r=null==n?void 0:n.accordions)||void 0===r?void 0:r.length)>0&&(null===(d=null==n?void 0:n.accordions[0])||void 0===d?void 0:d.title)&&e.createElement("div",{className:"linetable-falconAccordion-container"},null===(a=null==n?void 0:n.accordions)||void 0===a?void 0:a.map((n=>e.createElement("div",{tabIndex:0,key:null==n?void 0:n._uid,className:"linetable-falconAccordion-current-item"},e.createElement(re,{content:Object.assign({},n)}))))))))},ae=({content:n})=>{const t=(e=>{switch(e){case"grey-100":return"falcon-background-grey-100";case"ice-white":return"falcon-background-ice-white";case"transparent":return"falcon-background-transparent";default:return""}})(null==n?void 0:n.backgroundColor),o=(e=>{switch(e){case"rubyglow-diagonal":return"falcon-gradient-rubyglow-diagonal";case"rubyglow-vertical":return"falcon-gradient-rubyglow-vertical";case"pinksky-diagonal":return"falcon-gradient-pinksky-diagonal";case"pinksky-vertical":return"falcon-gradient-pinksky-vertical";case"bluehaze-diagonal":return"falcon-gradient-bluehaze-diagonal";case"bluehaze-vertical":return"falcon-gradient-bluehaze-vertical";case"greencloud-diagonal":return"falcon-gradient-greencloud-diagonal";case"greencloud-vertical":return"falcon-gradient-greencloud-vertical";case"peachfog-diagonal":return"falcon-gradient-peachfog-diagonal";case"peachfog-vertical":return"falcon-gradient-peachfog-vertical";case"darkblue-haze":return"falcon-gradient-dark-blue-haze";default:return""}})(null==n?void 0:n.gradientBackground),l=(null==n?void 0:n.gradientBackground)===L?t:o;return e.createElement("div",null,n.height?e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.height}px`}}):e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.desktopHeight}px`}}),e.createElement("div",{className:`d-block d-sm-none ${l} `,style:{height:`${n.mobHeight}px`}}))};h(".linetable-productDetailsText {\r\n color: #da291c;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n}");h('.linetable-staticPrice-priceWrapper {\r\n\tborder-radius: 8px;\r\n\tborder: 1px solid #E6E3DF;\r\n\tmargin: 16px 16px 0 16px;\r\n\tpadding: 8px 16px;\r\n\tfont-size: 14px;\r\n\tfont-weight: 400;\r\n\tline-height: 20px;\r\n}\r\n\r\n.linetable-staticPrice-discountPriceSection {\r\n\tcolor: #2E6199;\r\n\tmargin-right: 8px;\r\n}\r\n\r\n.linetable-staticPrice-discountedPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-basePrice {\r\n\tfont-size: 20px;\r\n\tfont-weight: 700;\r\n\tline-height: 28px;\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.linetable-staticPrice-priceStrikeout::after {\r\n\tcontent: "";\r\n\tposition: absolute;\r\n\tright: -1px;\r\n\tleft: -2px;\r\n\ttop: 50%;\r\n\twidth: 100%;\r\n\tborder-bottom: 2px solid #da291c;\r\n\ttransform: rotate(-18.22deg);\r\n}\r\n\r\n.linetable-staticPrice-noDiscountPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-contractDescription {\r\n\tmargin-top: 6px;\r\n}\r\n\r\n.linetable-staticPrice-addToCart {\r\n\tmargin-top: 8px;\r\n\twidth: 100%;\r\n\tpadding: 10px 24px;\r\n\tborder-radius: 25px;\r\n\tbackground: #DA291C;\r\n\tcolor: #FFFFFF;\r\n\tfont-size: 16px;\r\n\tfont-weight: 700;\r\n\tline-height: 24px;\r\n\tborder: 0px;\r\n}\r\n\r\n.linetable-staticPrice-productDetails-priceWrapper {\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n}\r\n\r\n@media (min-width: 425px) {\r\n\t.linetable-staticPrice-productDetails-addToCart {\r\n\t\tmin-width: 120px;\r\n\t}\r\n}');const ce=({content:n,addToCart:t,variant:o})=>{const l=e.useContext(te),i=()=>{P("linetable-staticPrice-priceSection",l.listLength)};e.useEffect((()=>{setTimeout((()=>{i()}),200),window.addEventListener("resize",i)}),[n]);return e.createElement("div",{className:`linetable-staticPrice-priceWrapper ${"productDetails"===o&&"linetable-staticPrice-productDetails-priceWrapper"}`},e.createElement("div",{id:`linetable-staticPrice-priceSection${null==l?void 0:l.indexKey}`},e.createElement("div",{className:"linetable-staticPrice-priceSection"},(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},null==n?void 0:n.discountPriceValue),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+((null==n?void 0:n.isEnableDiscountPrice)?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},C(null==n?void 0:n.priceValue)),!(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement(e.Fragment,null,null==n?void 0:n.priceDuration))),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},null==n?void 0:n.contractDescription)),e.createElement("div",null,e.createElement("button",{className:`linetable-staticPrice-addToCart ${"productDetails"===o&&"linetable-staticPrice-productDetails-addToCart"}`,onClick:()=>{"function"==typeof t&&t(n)}},null==n?void 0:n.addButton)))},ue=({content:n,updatedContent:t,modalTriggered:o,addToCart:l})=>{var i;const[r,d]=e.useState(!1),a=null==n?void 0:n.subscriptionDetailModal;let c=[],u="";a&&(null==a?void 0:a.length)>0&&(null==a||a.map((e=>{c=null==e?void 0:e.modalBody,null==e||e.productPriceVariant,u=null==e?void 0:e.backButton,null==e||e.priceChangeContent})));const s=()=>{d(!r),"function"==typeof o&&o()};return e.createElement(e.Fragment,null,r&&e.createElement(le,{modalState:r,handler:s,showFooter:!1,height:"100%",width:"883px",backButton:u},e.createElement(e.Fragment,null,null==c?void 0:c.map(((n,t)=>e.createElement(ie,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===D&&e.createElement(q,{content:n,key:t}),(null==n?void 0:n.component)===B&&e.createElement(ae,{content:n}),(null==n?void 0:n.component)===A&&e.createElement(de,{content:n}))))),(null==n?void 0:n.isEnablePrice)&&e.createElement(ce,{content:n,addToCart:l,variant:"productDetails"}))),e.createElement("span",{onClick:s,className:"linetable-productDetailsText"},null!==(i=null==t?void 0:t.subscription)&&void 0!==i?i:null==t?void 0:t.subscriptionText))},se=({content:n,showPrice:t,addToCart:o})=>{var l,i,r,d,a;const c=null!==(l=null==t?void 0:t.base)&&void 0!==l?l:0;let u=null!==(d=null===(r=null===(i=null==t?void 0:t.discount)||void 0===i?void 0:i[0])||void 0===r?void 0:r.value)&&void 0!==d?d:0;null===(a=null==t?void 0:t.discount)||void 0===a||a.map((e=>{1==(null==e?void 0:e.cycleStart)&&(u=null==e?void 0:e.value)}));const s=null==t?void 0:t.contractDuration;return e.createElement("div",{className:"linetable-staticPrice-priceWrapper"},(null==t?void 0:t.base)?e.createElement(e.Fragment,null,u>0&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},C(u)),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+(u>0?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},C(c)),0===u&&(null==n?void 0:n.priceDuration)),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},s&&0!==s?e.createElement("div",null):e.createElement("div",null,null==n?void 0:n.contractDescription))):"",e.createElement("div",null,e.createElement("button",{className:"linetable-staticPrice-addToCart",onClick:o},null==n?void 0:n.addButton)))};var me={carouselContainer:"ProductTeaser-module_carouselContainer__RzBpK",arrowButton:"ProductTeaser-module_arrowButton__-AkY4",leftArrow:"ProductTeaser-module_leftArrow__Ybrjm",rightArrow:"ProductTeaser-module_rightArrow__MYs5F",stageTeaserTab:"ProductTeaser-module_stageTeaserTab__VYRxL",stageTeaserTabActive:"ProductTeaser-module_stageTeaserTabActive__Wu5nT",carousel_dot:"ProductTeaser-module_carousel_dot__zxG-A",carouselItem:"ProductTeaser-module_carouselItem__vtLwf",teaserImage:"ProductTeaser-module_teaserImage__sQ3ed",productDetailsWrapper:"ProductTeaser-module_productDetailsWrapper__0jFlz",titleSection:"ProductTeaser-module_titleSection__YqXUJ",featureSection:"ProductTeaser-module_featureSection__T-YzP",contentWrapper:"ProductTeaser-module_contentWrapper__3GKwX",priceContainer:"ProductTeaser-module_priceContainer__CzBhB",contentMobWrapper:"ProductTeaser-module_contentMobWrapper__9rRLQ",heading:"ProductTeaser-module_heading__Xim2-",fadeOutText:"ProductTeaser-module_fadeOutText__nKr5i",fadeInText:"ProductTeaser-module_fadeInText__Ux98m",paragraph:"ProductTeaser-module_paragraph__hUonu",description:"ProductTeaser-module_description__s-lyV",extraSpace:"ProductTeaser-module_extraSpace__HFJ2A",toolTip:"ProductTeaser-module_toolTip__KL7Xx",gradiantBox:"ProductTeaser-module_gradiantBox__Eys-K",addOnSection:"ProductTeaser-module_addOnSection__G4zhX",featureList:"ProductTeaser-module_featureList__gmPS1",features:"ProductTeaser-module_features__o2jMu",featureIcon:"ProductTeaser-module_featureIcon__PbcQN",horizontalLine:"ProductTeaser-module_horizontalLine__Nfj9U",horizontalLineDark:"ProductTeaser-module_horizontalLineDark__Sg-Ou",addOnSectionIcon:"ProductTeaser-module_addOnSectionIcon__9-EoX",toggleSection:"ProductTeaser-module_toggleSection__2az0R",toggle:"ProductTeaser-module_toggle__GClvg",serviceUnavail:"ProductTeaser-module_serviceUnavail__Pe52H",priceWrapper:"ProductTeaser-module_priceWrapper__7TC6y",slider:"ProductTeaser-module_slider__-V4R1",line:"ProductTeaser-module_line__mbJxT",pricetxt:"ProductTeaser-module_pricetxt__YYSmd",clicked:"ProductTeaser-module_clicked__A9jUK",priceDuration:"ProductTeaser-module_priceDuration__TeeO9",callCart:"ProductTeaser-module_callCart__YLJSL",arrowIcon:"ProductTeaser-module_arrowIcon__OFm89",disableCallcart:"ProductTeaser-module_disableCallcart__-M8Od",priceDesc:"ProductTeaser-module_priceDesc__8Er0h"};h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ProductTeaser-module_carouselContainer__RzBpK {\n position: static;\n margin-top: 32px;\n border-radius: 24px;\n}\n@media (min-width: 768px) {\n .ProductTeaser-module_carouselContainer__RzBpK {\n box-shadow: 0px 20px 30px -8px rgba(87, 84, 82, 0.4);\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n background: #ffffff;\n box-shadow: 0px 4px 12px rgba(87, 84, 82, 0.2);\n border-radius: 24px;\n font-size: 16px;\n height: 44px;\n width: 44px;\n padding: 10px;\n position: absolute;\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n color: #da291c;\n font-size: 20px;\n display: block;\n font-family: revicons;\n text-align: center;\n z-index: 1;\n position: relative;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n content: "\\e825";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F:disabled {\n background: #e6e3df;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before {\n content: "\\e824";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm:disabled {\n background: #e6e3df;\n}\n\n.ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n border-radius: 40px;\n border: none;\n color: #5f5955;\n background-color: #ffffff;\n font-size: 16px;\n line-height: 24px;\n font-weight: 700;\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n max-width: 158px;\n }\n}\n\n.ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n color: #ffffff;\n background: #da291c;\n}\n\n.ProductTeaser-module_carousel_dot__zxG-A {\n border-radius: 50px;\n background-color: #ffffff;\n border: 2px solid rgba(61, 57, 53, 0.25);\n padding: 1px;\n width: fit-content;\n margin: 0 auto;\n position: absolute;\n top: -24px;\n height: fit-content;\n}\n\n.ProductTeaser-module_carouselItem__vtLwf {\n position: relative;\n width: 100%;\n}\n.ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n object-fit: cover;\n object-position: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_carouselItem__vtLwf {\n display: flex;\n justify-content: center;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n border-radius: 24px;\n position: absolute;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz {\n position: absolute;\n display: flex;\n justify-content: space-between;\n left: 107px;\n right: 107px;\n top: 129px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n left: unset;\n top: unset;\n height: fit-content;\n margin: auto 0;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: 0px;\n top: 0;\n }\n}\n\n.ProductTeaser-module_contentWrapper__3GKwX {\n position: absolute;\n left: 80px;\n top: 40px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_contentWrapper__3GKwX {\n max-width: 460px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_contentWrapper__3GKwX {\n left: 24px;\n max-width: 400px;\n }\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n text-align: center;\n left: unset;\n top: unset;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: unset;\n top: unset;\n margin-top: 24px;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_priceContainer__CzBhB {\n position: relative;\n top: unset;\n bottom: unset;\n margin-top: 24px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n position: relative;\n margin: 0 16px;\n width: 100%;\n }\n}\n@media (max-width: 320px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n margin: 0 8px;\n }\n}\n\n.ProductTeaser-module_titleSection__YqXUJ {\n position: absolute;\n top: 173px;\n left: 107px;\n color: #ffffff;\n font-weight: 700;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n max-width: 412px;\n }\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n top: unset;\n left: unset;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n text-align: center;\n top: 32px;\n left: unset;\n width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 16px;\n line-height: 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 14px;\n line-height: 20px;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeOutText__nKr5i {\n opacity: 0;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeInText__Ux98m {\n opacity: 1;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 28px;\n line-height: 36px;\n margin: 8px 0 12px 0;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 20px;\n line-height: 28px;\n max-width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_description__s-lyV {\n font-weight: 400;\n font-size: 16px;\n line-height: 20px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_extraSpace__HFJ2A {\n top: 62px;\n }\n}\n\n.ProductTeaser-module_featureSection__T-YzP {\n position: absolute;\n right: 107px;\n top: 129px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_featureSection__T-YzP {\n max-width: 412px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP {\n right: unset;\n top: unset;\n margin-top: 397px;\n font-size: 14px;\n line-height: 20px;\n background-color: #ffffff;\n color: #3D3935;\n border-radius: 12px;\n position: relative;\n height: fit-content;\n }\n}\n.ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: brightness(0) invert(1);\n margin-left: 16px;\n display: flex;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: none;\n }\n}\n\n.ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px;\n background: rgba(0, 0, 0, 0.2);\n backdrop-filter: blur(12.5px);\n color: #ffffff;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n background: none;\n color: unset;\n backdrop-filter: unset;\n }\n}\n\n.ProductTeaser-module_featureList__gmPS1 {\n padding: 4px 20px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu {\n display: flex;\n align-items: center;\n margin: 12px 0;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu a {\n color: #ffffff;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu .ProductTeaser-module_featureIcon__PbcQN {\n margin-right: 10px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #ffffff;\n text-decoration: underline;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #3d3935;\n }\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLine__Nfj9U, .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n opacity: 0.5;\n background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);\n height: 1px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px 12px 0px 0px;\n }\n}\n\n.ProductTeaser-module_addOnSection__G4zhX {\n padding: 16px 20px;\n margin-top: 16px;\n display: flex;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_addOnSectionIcon__9-EoX {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R {\n margin-left: auto;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R .ProductTeaser-module_toggle__GClvg {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input {\n cursor: pointer;\n margin-top: unset;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input:focus {\n border: unset !important;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_addOnSection__G4zhX {\n border-radius: 0px 0px 12px 12px;\n margin-top: 0px;\n padding: 12px 20px;\n align-items: center;\n }\n}\n\n.ProductTeaser-module_priceContainer__CzBhB {\n position: absolute;\n bottom: 40px;\n width: 100%;\n color: #ffffff;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H {\n text-align: center;\n margin-bottom: 10px;\n font-size: 16px;\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H img {\n margin-right: 8px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB {\n color: #3D3935;\n position: static;\n display: flex;\n justify-content: center;\n flex-direction: column;\n padding: 16px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y {\n font-size: 24px;\n line-height: 32px;\n font-weight: 700;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y {\n margin-right: unset;\n flex-direction: column;\n font-size: 20px;\n line-height: 28px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n height: 32px;\n overflow: hidden;\n margin-right: 12px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT {\n transition: transform 0.5s ease;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n margin-right: 6px;\n display: inline-block;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n margin-bottom: 8px;\n margin-right: unset;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_clicked__A9jUK .ProductTeaser-module_line__mbJxT {\n transform: translateY(-100%);\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_priceDuration__TeeO9 {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n display: inline-block;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n font-weight: 700;\n border: none;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 28px;\n display: flex;\n align-items: center;\n font-size: 16px;\n line-height: 24px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL .ProductTeaser-module_arrowIcon__OFm89 {\n margin-left: 8px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 14px 24px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n max-width: 100%;\n display: flex;\n justify-content: center;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_disableCallcart__-M8Od {\n background-color: #e6e3df;\n color: #b3aeaa;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 10px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h {\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n }\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n margin: 0 16px;\n height: 1px;\n background-color: #e6e3df;\n }\n}');class ve{constructor(e){this.config={baseURL:"",cartURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.config=e}}ve.getInstance=()=>ve.instance,ve.create=e=>{ve.instance=new ve(e)};var pe="ToolTip-module_tooltipicon__U5Rvt",_e="ToolTip-module_benefits__-gI-y";h(".ToolTip-module_tooltipicon__U5Rvt {\n height: 24px;\n margin-left: 4px;\n min-width: 20px;\n width: 24px;\n cursor: pointer;\n}\n\n.ToolTip-module_benefits__-gI-y img {\n width: 20px !important;\n height: 20px !important;\n}");const he=({content:n,tooltipClass:t="",isBenefit:o=!1})=>{var l;const r=N(),d=I(),a=null===(l=null==g?void 0:g.getInstance())||void 0===l?void 0:l.getAssetPath();return n&&e.createElement(i.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:""+("mobile"===r||"tablet"===r||d?"click":"hover"),overlay:n&&e.createElement(i.Popover,{id:"popover-basic"},e.createElement(i.Popover.Body,null,n))},e.createElement("div",{className:`${pe} ${t} ${o&&_e}`},a&&e.createElement("img",{src:`${a}/icons/tooltip_icon.svg`,width:24,height:24,alt:""})))},fe="addtocart",ge="Sunrise",be="Sticky Line Table",xe="gaEvent",ye="Stage Teaser",Ee="Line Table",Te="tab_click",we=(e,n)=>{var t,o,l,i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y;const{itemCategory:E,location:T}=n,w=null!==(r=null===(i=null===(l=null===(o=null===(t=null==e?void 0:e.prices)||void 0===t?void 0:t[0])||void 0===o?void 0:o.priceAlteration)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value)&&void 0!==r?r:0,k=null!==(c=null===(a=null===(d=null==e?void 0:e.prices)||void 0===d?void 0:d[0])||void 0===a?void 0:a.value)&&void 0!==c?c:0;return{item_id:null!==(u=null==e?void 0:e.id)&&void 0!==u?u:"",item_name:null!==(s=null==e?void 0:e.id)&&void 0!==s?s:"",affiliation:null!==(p=null===(v=null===(m=null==e?void 0:e.promotionInfo)||void 0===m?void 0:m[0])||void 0===v?void 0:v.campaignId)&&void 0!==p?p:"",coupon:"",discount:w&&Number(w),index:0,item_brand:ge,item_category:null!==(h=null!==(_=null==E?void 0:E.productName)&&void 0!==_?_:null==E?void 0:E.id)&&void 0!==h?h:"MOBILE",item_category2:E?"BUNDLE":"MOBILE",item_category3:"",item_category4:"",item_category5:"",item_list_id:E?"Fixnet":"Mobile",item_list_name:E?"Fixnet":"Mobile",item_variant:null!==(g=null!==(f=null==E?void 0:E.productName)&&void 0!==f?f:null==E?void 0:E.id)&&void 0!==g?g:null==e?void 0:e.id,location_id:T,price:k&&Number(k),quantity:1,promotion_id:null!==(y=null===(x=null===(b=null==e?void 0:e.promotionInfo)||void 0===b?void 0:b[0])||void 0===x?void 0:x.campaignId)&&void 0!==y?y:""}},ke=(e,n,t)=>{const o=[];return null==e||e.map((e=>{var l;(null==e?void 0:e.bundledOffers)?null===(l=null==e?void 0:e.bundledOffers)||void 0===l||l.map((l=>{const i=""==n?e:n;o.push(we(l,{itemCategory:i,location:t}))})):o.push(we(e,{location:t}))})),o},Pe=(e,n,t)=>{var o,l,i,r;const d=null===(i=null===(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.derivedPrice)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value;return{currency:"CHF",value:null!==(r=d&&Number(d))&&void 0!==r?r:0,items:ke(e,n,t)}},Ce=(e,n,t,o)=>{var l;"addtocart"===e&&window.dataLayer.push({event:"add_to_cart",event_name:"add_to_cart",ecommerce:Pe(n,t,o),transaction_type:(null===(l=null==n?void 0:n[0])||void 0===l?void 0:l.isBundle)?"BUNDLE":"MOBILE_ORDER"})},Se=(e,n,t,o)=>{var l,i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y,E,T;const{itemCategory:w,location:k}=n,P=null!==(a=null===(d=null===(r=null===(i=null===(l=null==e?void 0:e.prices)||void 0===l?void 0:l[0])||void 0===i?void 0:i.priceAlteration)||void 0===r?void 0:r[0])||void 0===d?void 0:d.value)&&void 0!==a?a:0,C=null!==(s=null===(u=null===(c=null==e?void 0:e.prices)||void 0===c?void 0:c[0])||void 0===u?void 0:u.value)&&void 0!==s?s:0,S={item_id:null!==(m=null==e?void 0:e.id)&&void 0!==m?m:"",item_name:null!==(v=null==e?void 0:e.id)&&void 0!==v?v:"",affiliation:null!==(h=null===(_=null===(p=null==e?void 0:e.promotionInfo)||void 0===p?void 0:p[0])||void 0===_?void 0:_.campaignId)&&void 0!==h?h:"",coupon:"",discount:P&&Number(P),index:0,item_brand:ge,item_category:null!==(g=null!==(f=null==w?void 0:w.title)&&void 0!==f?f:null==w?void 0:w.id)&&void 0!==g?g:"MOBILE",item_category2:t,item_category3:"",item_category4:"",item_category5:"",item_list_id:w?"Fixnet":"Mobile",item_list_name:w?"Fixnet":"Mobile",item_variant:null!==(x=null!==(b=null==w?void 0:w.title)&&void 0!==b?b:null==w?void 0:w.id)&&void 0!==x?x:null==e?void 0:e.id,location_id:k,price:C&&Number(C),quantity:1,promotion_id:null!==(T=null===(E=null===(y=null==e?void 0:e.promotionInfo)||void 0===y?void 0:y[0])||void 0===E?void 0:E.campaignId)&&void 0!==T?T:""};return o&&(S.item_available=o),S},Ve=(e,n,t,o)=>{const l=[];let i="";return null==e||e.map((e=>{var r;if(null==e?void 0:e.bundledOffers)null===(r=null==e?void 0:e.bundledOffers)||void 0===r||r.map((r=>{const d=""==n?e:n;o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no"),l.push(Se(r,{itemCategory:d,location:t},"Bundle",i))}));else if("INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers))l.push(Se(e,{location:t},"MOBILE"));else{const n={id:null==e?void 0:e.id};o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no"),l.push(Se(e,{itemCategory:n,location:t},"INTERNET",i))}})),l},Ne=(e,n,t)=>{let o;null==e||e.map((e=>{o=(null==e?void 0:e.bundledOffers)?"Fixnet":"INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers)?"Mobile":"Internet"}));return{item_list_id:o,item_list_name:o,items:Ve(e,n,t)}},Ie=(e,n,t,o)=>{var l,i,r,d;const a=null===(r=null===(i=null===(l=null==e?void 0:e[0])||void 0===l?void 0:l.derivedPrice)||void 0===i?void 0:i[0])||void 0===r?void 0:r.value;return{currency:"CHF",value:null!==(d=a&&Number(a))&&void 0!==d?d:0,items:Ve(e,n,t,o)}},Oe=(e,n,t,o,l)=>{var i,r;"view"===e?null===window||void 0===window||window.dataLayer.push({event:"view_item_list",event_name:"view_item_list",ecommerce:Ne(n,t,o)}):"addtocart"===e?null===window||void 0===window||window.dataLayer.push({event:"add_to_cart",event_name:"add_to_cart",ecommerce:Ie(n,t,o),transaction_type:(null===(i=null==n?void 0:n[0])||void 0===i?void 0:i.isBundle)?"BUNDLE":"INTERNET"===(null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.productType)?"INTERNET":"MOBILE_ORDER"}):"available"===e&&window.dataLayer.push({event:"view_item",event_name:"view_item",ecommerce:Ie(n,t,o,l)})},Le=({content:n,slides:t,index:o,offeringData:l,lineCheckCallBack:i,setEnableToggle:r})=>{var d,a,u,s,v,p,_,h,f,b,x,y,E,T,w,k,P,S,V,I,O,L,D,A,B,G,U;const q=null===(d=null==g?void 0:g.getInstance())||void 0===d?void 0:d.getAssetPath(),X=null===(a=null==ve?void 0:ve.getInstance())||void 0===a?void 0:a.getCartUrl(),[K,Y]=e.useState(!1),J=c.get("chAddressJson"),Z=N(),[ee,ne]=e.useState(!1),te=()=>{var o,r,d,a,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,P;let S,V;const N=localStorage.getItem("lineCheckResponse"),I=N&&JSON.parse(N),O=K?null==t?void 0:t.tvProductId:null==t?void 0:t.productId,L=J&&(null==I?void 0:I.eligibleBundle.includes(O));return S=(null===(o=l[null==t?void 0:t.productId])||void 0===o?void 0:o.derivedPrice)?null===(a=null===(d=null===(r=l[null==t?void 0:t.productId])||void 0===r?void 0:r.derivedPrice)||void 0===d?void 0:d[0])||void 0===a?void 0:a.value:null===(m=null===(s=null===(u=l[null==t?void 0:t.productId])||void 0===u?void 0:u.prices)||void 0===s?void 0:s[0])||void 0===m?void 0:m.value,V=(null===(v=l[null==t?void 0:t.tvProductId])||void 0===v?void 0:v.derivedPrice)?null===(h=null===(_=null===(p=l[null==t?void 0:t.tvProductId])||void 0===p?void 0:p.derivedPrice)||void 0===_?void 0:_[0])||void 0===h?void 0:h.value:null===(b=null===(g=null===(f=l[null==t?void 0:t.tvProductId])||void 0===f?void 0:f.prices)||void 0===g?void 0:g[0])||void 0===b?void 0:b.value,e.createElement("div",{className:me.priceContainer},J&&(null===(x=null==Object?void 0:Object.keys(J))||void 0===x?void 0:x.length)>0&&!L&&(null==t?void 0:t.productType)===R&&e.createElement("div",{className:me.serviceUnavail},e.createElement("img",{src:`${q}/icons/not-available.svg`,alt:"",width:24,height:24}),null==n?void 0:n.serviceabilityError),(null===(T=null===(E=null===(y=l[null==t?void 0:t.productId])||void 0===y?void 0:y.prices)||void 0===E?void 0:E[0])||void 0===T?void 0:T.value)>0&&e.createElement("span",{className:me.priceWrapper},e.createElement("div",{className:`${me.slider} ${K&&(null==t?void 0:t.productType)===R&&me.clicked}`},S&&e.createElement("div",{className:me.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:me.pricetxt},null==t?void 0:t.priceTxt),C(S),e.createElement("p",{className:me.priceDuration},null==t?void 0:t.conDuration)),V&&e.createElement("div",{className:me.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:me.pricetxt},null==t?void 0:t.priceTxt),C(V),e.createElement("p",{className:me.priceDuration},null==t?void 0:t.conDuration))),e.createElement("button",{onClick:()=>(e=>{var n,t,o,r,d;if((null==e?void 0:e.productType)===R){const r=localStorage.getItem("lineCheckResponse"),d=r&&JSON.parse(r),a=c.get("one-commerce-linecheckcorrelationid"),u=K?null==e?void 0:e.tvProductId:null==e?void 0:e.productId,s=J&&(null===(n=null==d?void 0:d.eligibleBundle)||void 0===n?void 0:n.includes(u));d&&J&&a?s&&(0!==(null===(t=Object.keys(l))||void 0===t?void 0:t.length)&&Oe(fe,[l[null==e?void 0:e.productId]],"",ye),ne(!0),0!==(null===(o=Object.keys(l))||void 0===o?void 0:o.length)&&Q([l[u]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:z,X,null==e?void 0:e.productType).then((n=>{var t;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==n?void 0:n.id,{path:"/"}),c.set("cartProduct",u,{path:"/"}),c.remove("landline"),window.location.href=null===(t=null==e?void 0:e.summaryURL)||void 0===t?void 0:t.cached_url})).catch((e=>{console.log(e),ne(!1)})).finally((()=>{ne(!1)}))):"function"==typeof i&&i()}else(null==e?void 0:e.productType)===$&&(ne(!0),0!==(null===(r=Object.keys(l))||void 0===r?void 0:r.length)&&Oe(fe,[l[null==e?void 0:e.productId]],"",ye),0!==(null===(d=Object.keys(l))||void 0===d?void 0:d.length)&&Q([l[null==e?void 0:e.productId]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:F,X,null==e?void 0:e.productType).then((n=>{var t;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==n?void 0:n.id,{path:"/"}),c.set("cartProduct",null==e?void 0:e.productId,{path:"/"}),window.location.href=null===(t=null==e?void 0:e.summaryURL)||void 0===t?void 0:t.cached_url})).catch((e=>{console.log(e),ne(!1)})).finally((()=>{ne(!1)})))})(t),className:`${me.callCart} ${J&&(null===(w=null==Object?void 0:Object.keys(J))||void 0===w?void 0:w.length)>0&&!L&&(null==t?void 0:t.productType)===R?me.disableCallcart:""}`,disabled:J&&(null===(k=null==Object?void 0:Object.keys(J))||void 0===k?void 0:k.length)>0&&!L&&(null==t?void 0:t.productType)===R},null==t?void 0:t.buttonLbl,e.createElement("img",{className:me.arrowIcon,src:null===(P=null==n?void 0:n.btnIcon)||void 0===P?void 0:P.filename,alt:"submit",width:24,height:24}))),e.createElement("div",{className:me.priceDesc},null==t?void 0:t.priceDesc))};return e.createElement("div",{className:me.carouselItem,key:o},ee&&e.createElement(H,{keyParams:"loading"}),"large-desktop"===Z&&(null===(u=null==t?void 0:t.desktopBGImage)||void 0===u?void 0:u.filename)&&e.createElement("img",{src:null===(s=null==t?void 0:t.desktopBGImage)||void 0===s?void 0:s.filename,alt:"",width:"100%",height:"550px",className:me.teaserImage}),(Z===j||Z===M)&&(null===(v=null==t?void 0:t.tabBGImage)||void 0===v?void 0:v.filename)&&e.createElement("img",{src:null===(p=null==t?void 0:t.tabBGImage)||void 0===p?void 0:p.filename,alt:"",width:"100%",height:"550px",className:me.teaserImage}),Z===$&&(null===(_=null==t?void 0:t.mobileBGImage)||void 0===_?void 0:_.filename)&&e.createElement("img",{src:null===(h=null==t?void 0:t.mobileBGImage)||void 0===h?void 0:h.filename,alt:"",width:"100%",height:"500px",className:me.teaserImage}),e.createElement("div",{className:`${Z===j||Z===M?me.contentWrapper:me.contentMobWrapper}`},e.createElement("div",{className:me.productDetailsWrapper},e.createElement("div",{className:`${me.titleSection} ${(null===(f=null==n?void 0:n.productTeaserSlides)||void 0===f?void 0:f.length)>1&&me.extraSpace}`},(null==t?void 0:t.heading)&&e.createElement(e.Fragment,null,!K&&e.createElement("div",{className:`${me.heading}`},null==t?void 0:t.heading),(null==t?void 0:t.tvSubHeading)&&K&&e.createElement("div",{className:`${me.heading} ${K?me.fadeInText:me.fadeOutText}`},null==t?void 0:t.tvSubHeading)),(null==t?void 0:t.subHeading)&&e.createElement("div",{className:me.paragraph},null==t?void 0:t.subHeading),(null==t?void 0:t.description)&&e.createElement("div",{className:me.description},e.createElement(W,{content:null==t?void 0:t.description}))),e.createElement("div",{className:me.featureSection},(null===(b=null==t?void 0:t.details)||void 0===b?void 0:b.length)>0&&e.createElement("div",{className:me.featureList},null===(x=(null==t?void 0:t.details)||[])||void 0===x?void 0:x.map(((n,t)=>{var o,l,i;return e.createElement(e.Fragment,null,t>0&&Z!==$&&e.createElement("div",{className:me.horizontalLine}),e.createElement("div",{className:me.features},(null===(o=null==n?void 0:n.icon)||void 0===o?void 0:o.filename)&&e.createElement("img",{className:me.featureIcon,src:Z===$?null===(l=null==n?void 0:n.mobIcon)||void 0===l?void 0:l.filename:null===(i=null==n?void 0:n.icon)||void 0===i?void 0:i.filename,alt:"icon",width:24,height:24}),(null==n?void 0:n.text)&&e.createElement(e.Fragment,null,e.createElement("div",{className:"me-auto"},e.createElement(W,{content:null==n?void 0:n.text,linkAsTooltip:""!==(null==n?void 0:n.linkTxt),toolTipText:null==n?void 0:n.linkTxt})),(null==n?void 0:n.tooltipTxt)&&e.createElement(he,{content:null==n?void 0:n.tooltipTxt,tooltipClass:me.toolTip}))))}))),Z===$&&(null==t?void 0:t.productType)===R&&(null===(y=Object.keys(l))||void 0===y?void 0:y.length)>0&&e.createElement("div",{className:me.horizontalLineDark}),(null==t?void 0:t.productType)===R&&(null===(E=null==t?void 0:t.tvDetails)||void 0===E?void 0:E.length)>0&&""!==(null==t?void 0:t.tvProductId)&&e.createElement("div",{className:me.addOnSection},e.createElement("img",{src:Z===$?null===(k=null===(w=null===(T=null==t?void 0:t.tvDetails)||void 0===T?void 0:T[0])||void 0===w?void 0:w.mobIcon)||void 0===k?void 0:k.filename:null===(V=null===(S=null===(P=null==t?void 0:t.tvDetails)||void 0===P?void 0:P[0])||void 0===S?void 0:S.icon)||void 0===V?void 0:V.filename,className:me.addOnSectionIcon,alt:"tv",width:24,height:24}),e.createElement(W,{content:null===(O=null===(I=null==t?void 0:t.tvDetails)||void 0===I?void 0:I[0])||void 0===O?void 0:O.text}),e.createElement("span",{className:`d-flex align-items-center ${me.toggleSection}`},e.createElement("span",{className:me.toggle},null==t?void 0:t.tvPrice),e.createElement(m,null,e.createElement(m.Check,{type:"switch",readOnly:!0,onClick:()=>{var e,n,o,l,i,d,a,c,u,s;Y(!K),r(!K),c=K?"toggle_off_configurator":"toggle_on_configurator",u=null==t?void 0:t.heading,s=(null===(a=null===(d=null===(i=null===(l=null===(o=null===(n=null===(e=null==t?void 0:t.tvDetails)||void 0===e?void 0:e[0])||void 0===n?void 0:n.text)||void 0===o?void 0:o.content)||void 0===l?void 0:l[0])||void 0===i?void 0:i.content)||void 0===d?void 0:d[0])||void 0===a?void 0:a.text).replace(/[^a-zA-Z ]/g,""),window.dataLayer.push({event:xe,event_name:c,headline:u,selection:s})},checked:K})),(null===(D=null===(L=null==t?void 0:t.tvDetails)||void 0===L?void 0:L[0])||void 0===D?void 0:D.tooltipTxt)&&e.createElement(he,{content:null===(B=null===(A=null==t?void 0:t.tvDetails)||void 0===A?void 0:A[0])||void 0===B?void 0:B.tooltipTxt,tooltipClass:me.toolTip}))),Z===$&&(null===(G=Object.keys(l))||void 0===G?void 0:G.length)>0&&e.createElement(e.Fragment,null,e.createElement("div",{className:me.horizontalLineDark}),te()))),Z!==$&&(null===(U=Object.keys(l))||void 0===U?void 0:U.length)>0&&e.createElement(e.Fragment,null,te())))};var De={tabblock:"LineTableV3Refined-module_tabblock__S6m9X",tabcontainer:"LineTableV3Refined-module_tabcontainer__NKVXX",tabcontent:"LineTableV3Refined-module_tabcontent__bIL32",tabcontentactive:"LineTableV3Refined-module_tabcontentactive__UK3d4",tabcontentinactive:"LineTableV3Refined-module_tabcontentinactive__-mxXT",titlecontainer:"LineTableV3Refined-module_titlecontainer__goMFH",title:"LineTableV3Refined-module_title__U9oaa",description:"LineTableV3Refined-module_description__Gq-74",selected:"LineTableV3Refined-module_selected__UlBFL",inactiveicon:"LineTableV3Refined-module_inactiveicon__kqk3d",activeicon:"LineTableV3Refined-module_activeicon__D6zyq",productcenter:"LineTableV3Refined-module_productcenter__HDUzl",bundleproductcard:"LineTableV3Refined-module_bundleproductcard__Jy3iE",flexgrid:"LineTableV3Refined-module_flexgrid__D2wrK",productcontainer:"LineTableV3Refined-module_productcontainer__O9HbU",highlightBorder:"LineTableV3Refined-module_highlightBorder__DHKGR",highlightText:"LineTableV3Refined-module_highlightText__TTJZU",headersection:"LineTableV3Refined-module_headersection__yhoV0",titlesection:"LineTableV3Refined-module_titlesection__gd-Fl",productheader:"LineTableV3Refined-module_productheader__8rWWf",productdescription:"LineTableV3Refined-module_productdescription__sr-av",ordersection:"LineTableV3Refined-module_ordersection__E2ufE",pricesection:"LineTableV3Refined-module_pricesection__hr3kd",productcontractduration:"LineTableV3Refined-module_productcontractduration__NwfGg",productdetailslink:"LineTableV3Refined-module_productdetailslink__Fswzd",benefitssection:"LineTableV3Refined-module_benefitssection__dF1-F",overlay:"LineTableV3Refined-module_overlay__pBYdY",addsmartphone:"LineTableV3Refined-module_addsmartphone__NgpJF",promocontainer:"LineTableV3Refined-module_promocontainer__kAHqj",disabled:"LineTableV3Refined-module_disabled__hN2WZ",buttontext:"LineTableV3Refined-module_buttontext__LzgmC",swapButton:"LineTableV3Refined-module_swapButton__3zQV7"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontainer__NKVXX {\n border: 1px solid #3d3935;\n border-radius: 32px;\n display: flex;\n margin-bottom: 0;\n width: auto;\n padding: 4px;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontainer__NKVXX {\n border-radius: 8px;\n }\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontent__bIL32 {\n align-items: center;\n border-radius: 35px;\n cursor: pointer;\n display: flex;\n font-size: 16px;\n font-weight: 700;\n justify-content: center;\n line-height: 24px;\n padding: 8px 12px;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontent__bIL32 {\n border-radius: 8px;\n }\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentactive__UK3d4 {\n background-color: #da291c;\n border-radius: 35px;\n color: white !important;\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentactive__UK3d4:hover {\n background-color: #961c13;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentactive__UK3d4 {\n border-radius: 8px;\n }\n}\n.LineTableV3Refined-module_tabblock__S6m9X .LineTableV3Refined-module_tabcontentinactive__-mxXT:hover {\n color: #961c13;\n}\n.LineTableV3Refined-module_tabblock__S6m9X input[type=radio] {\n display: none;\n}\n\n.LineTableV3Refined-module_titlecontainer__goMFH .LineTableV3Refined-module_title__U9oaa {\n font-size: 24px;\n font-weight: 700;\n line-height: 30px;\n padding-top: 20px;\n text-align: center;\n}\n.LineTableV3Refined-module_titlecontainer__goMFH .LineTableV3Refined-module_description__Gq-74 {\n font-size: 16px;\n font-weight: 24px;\n text-align: center;\n}\n\n.LineTableV3Refined-module_selected__UlBFL {\n align-items: center;\n color: #606060;\n display: inline-flex;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n margin-bottom: 12px;\n margin-right: 50px;\n margin-top: 4px;\n}\n.LineTableV3Refined-module_selected__UlBFL .LineTableV3Refined-module_inactiveicon__kqk3d {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n.LineTableV3Refined-module_selected__UlBFL .LineTableV3Refined-module_activeicon__D6zyq {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n\n.LineTableV3Refined-module_productcenter__HDUzl {\n align-items: center;\n flex-direction: column;\n height: 100%;\n margin-left: 10px;\n margin-right: 10px;\n text-align: center;\n}\n\n.LineTableV3Refined-module_bundleproductcard__Jy3iE {\n align-items: center;\n flex-direction: column;\n height: 100%;\n margin-left: 10px;\n margin-right: 10px;\n text-align: left;\n}\n@media (max-width: 767px) {\n .LineTableV3Refined-module_bundleproductcard__Jy3iE {\n width: calc(100vw - 80px);\n margin-left: 8px;\n margin-right: 8px;\n }\n}\n\n.LineTableV3Refined-module_flexgrid__D2wrK {\n display: flex;\n}\n\n.LineTableV3Refined-module_productcontainer__O9HbU {\n background-color: #fff;\n border: 4px solid transparent;\n border-radius: 8px;\n box-shadow: 0 2px 4px 0 rgba(87, 84, 82, 0.2);\n justify-content: space-between;\n padding: 16px;\n position: relative;\n}\n\n.LineTableV3Refined-module_highlightBorder__DHKGR {\n border: 4px solid #587467;\n border-radius: 8px;\n}\n\n.LineTableV3Refined-module_highlightText__TTJZU {\n align-items: center;\n background-color: #587467;\n border-radius: 8px;\n color: #fff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 28px;\n line-height: 20px;\n min-height: 24px;\n padding: 4px 8px;\n position: absolute;\n top: -18px;\n width: fit-content;\n}\n\n.LineTableV3Refined-module_headersection__yhoV0 {\n padding-bottom: 8px;\n}\n\n.LineTableV3Refined-module_titlesection__gd-Fl {\n align-items: flex-start;\n display: flex;\n justify-content: space-between;\n}\n\n.LineTableV3Refined-module_productheader__8rWWf {\n font-size: 28px;\n font-weight: 700;\n line-height: 36px;\n margin-bottom: 8px;\n}\n\n.LineTableV3Refined-module_productdescription__sr-av {\n color: #587467;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.LineTableV3Refined-module_ordersection__E2ufE {\n border-top: 1px solid #e6e3df;\n margin-top: 15px;\n padding: 8px;\n text-align: center;\n}\n\n.LineTableV3Refined-module_pricesection__hr3kd {\n justify-content: center;\n}\n\n.LineTableV3Refined-module_productcontractduration__NwfGg {\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n}\n\n.LineTableV3Refined-module_productdetailslink__Fswzd {\n color: #da291c;\n cursor: pointer;\n font-size: 16px;\n line-height: 24px;\n text-decoration: underline;\n}\n\n.LineTableV3Refined-module_benefitssection__dF1-F {\n padding-top: 16px;\n}\n\n.LineTableV3Refined-module_overlay__pBYdY {\n cursor: default;\n display: block;\n opacity: 0.4;\n pointer-events: none;\n}\n\n.LineTableV3Refined-module_addsmartphone__NgpJF img {\n margin-right: 10px;\n vertical-align: bottom;\n}\n\n.LineTableV3Refined-module_promocontainer__kAHqj {\n align-items: center;\n background: #2e6199;\n border-radius: 8px;\n color: #ffffff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 28px;\n line-height: 20px;\n min-height: 24px;\n padding: 4px 8px;\n position: absolute;\n top: -18px;\n width: fit-content;\n}\n\n.LineTableV3Refined-module_disabled__hN2WZ {\n opacity: 0.4;\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n}\n\n.LineTableV3Refined-module_buttontext__LzgmC {\n font-size: 16px;\n line-height: 24px;\n color: #ffffff;\n font-weight: bold;\n text-align: center;\n}\n\n.LineTableV3Refined-module_swapButton__3zQV7 {\n display: flex;\n flex-direction: column-reverse;\n}");const Ae=n=>{var t,o;const l={superLargeDesktop:{breakpoint:{max:1e4,min:1440},items:4},desktop:{breakpoint:{max:1440,min:1024},items:3},tablet:{breakpoint:{max:1023,min:768},items:2},mobile:{breakpoint:{max:767,min:0},items:1,partialVisibilityGutter:(null===(t=null==n?void 0:n.children)||void 0===t?void 0:t.length)>1?48:5}},i=N(),r=e.useRef(),d=parseInt(n.carouselIndex,10);let a=!1;return e.useEffect((()=>{const e=window.innerWidth;a=e<767,setTimeout((()=>{var e;(!a&&d>2||a)&&(null===(e=r.current)||void 0===e||e.goToSlide(d,!1))}),400)}),[n.children.length]),e.createElement(s,{responsive:l,renderButtonGroupOutside:!0,partialVisible:!0,swipeable:!0,autoPlay:!1,shouldResetAutoplay:!1,arrows:"mobile"!==i||!!(null==n?void 0:n.arrow),showDots:"mobile"===i||(null===(o=null==n?void 0:n.children)||void 0===o?void 0:o.length)>3,ref:r,customTransition:"transform 1s ease"},n.children)};var Be={productdetailswrapper:"ProductDetailsV3-module_productdetailswrapper__e1kPi",configheadersection:"ProductDetailsV3-module_configheadersection__p8XVS",displayname:"ProductDetailsV3-module_displayname__-EW8R",configdetailssection:"ProductDetailsV3-module_configdetailssection__yMamD",disabled:"ProductDetailsV3-module_disabled__tsjRY",showmore:"ProductDetailsV3-module_showmore__oIuyq",newmodal:"ProductDetailsV3-module_newmodal__C9g8C",tvHeading:"ProductDetailsV3-module_tvHeading__xdTqD",changeBtn:"ProductDetailsV3-module_changeBtn__WzRWX",optioncontainer:"ProductDetailsV3-module_optioncontainer__gUve-",optionlist:"ProductDetailsV3-module_optionlist__xVV8H",optiontitle:"ProductDetailsV3-module_optiontitle__eFcLL",optionwrapper:"ProductDetailsV3-module_optionwrapper__OqPW5",text:"ProductDetailsV3-module_text__U2B2W",pricecontainer:"ProductDetailsV3-module_pricecontainer__e8RuB",discountedprice:"ProductDetailsV3-module_discountedprice__trCaV",duration:"ProductDetailsV3-module_duration__KqhC6",basePriceAfterDiscount:"ProductDetailsV3-module_basePriceAfterDiscount__mOab8",pricedisplay:"ProductDetailsV3-module_pricedisplay__MXeXL",blockskeleton:"ProductDetailsV3-module_blockskeleton__OhQ-8"};h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ProductDetailsV3-module_productdetailswrapper__e1kPi {\n border-top: 1px solid #e6e3df;\n padding: 16px 0;\n}\n\n.ProductDetailsV3-module_configheadersection__p8XVS {\n display: inline-flex;\n}\n\n.ProductDetailsV3-module_displayname__-EW8R {\n align-items: center;\n display: flex;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n padding: 0 8px;\n}\n\n.ProductDetailsV3-module_configdetailssection__yMamD {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding-left: 32px;\n}\n\n.ProductDetailsV3-module_disabled__tsjRY {\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n opacity: 0.4;\n}\n\n.ProductDetailsV3-module_showmore__oIuyq {\n color: #da291c;\n cursor: pointer;\n padding-left: 0;\n}\n\n.ProductDetailsV3-module_newmodal__C9g8C {\n align-items: center;\n border: 1px solid black;\n border-radius: 8px;\n cursor: pointer;\n display: flex;\n font-size: 14px;\n line-height: 20px;\n margin-bottom: 4px;\n margin-top: 8px;\n min-height: 38px;\n}\n.ProductDetailsV3-module_newmodal__C9g8C .ProductDetailsV3-module_tvHeading__xdTqD {\n font-weight: 700;\n margin-left: 10px;\n width: 100%;\n}\n.ProductDetailsV3-module_newmodal__C9g8C .ProductDetailsV3-module_changeBtn__WzRWX {\n color: #da291c;\n}\n.ProductDetailsV3-module_newmodal__C9g8C > img {\n margin: 4px 10px 0 4px;\n}\n\n.ProductDetailsV3-module_optioncontainer__gUve- {\n background: rgba(153, 178, 167, 0.1);\n border: 1px solid #B6C8C0;\n border-radius: 8px;\n padding: 12px 16px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H {\n margin-top: 2px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H .ProductDetailsV3-module_optiontitle__eFcLL {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H .ProductDetailsV3-module_optionwrapper__OqPW5 {\n color: #5f5955;\n display: flex;\n font-size: 14px;\n font-weight: 500;\n justify-content: space-between;\n line-height: 20px;\n margin-top: 12px;\n min-height: 24px;\n}\n.ProductDetailsV3-module_optioncontainer__gUve- .ProductDetailsV3-module_optionlist__xVV8H .ProductDetailsV3-module_optionwrapper__OqPW5 .ProductDetailsV3-module_text__U2B2W > div > p > b {\n color: #5e94cf;\n}\n\n.ProductDetailsV3-module_pricecontainer__e8RuB {\n justify-content: center;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_discountedprice__trCaV {\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_duration__KqhC6 {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_basePriceAfterDiscount__mOab8 {\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n padding-left: 10px;\n position: relative;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_basePriceAfterDiscount__mOab8::after {\n border-bottom: 2px solid #e6003c;\n content: "";\n left: 8px;\n position: absolute;\n right: -1px;\n top: 50%;\n}\n.ProductDetailsV3-module_pricecontainer__e8RuB .ProductDetailsV3-module_pricedisplay__MXeXL {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n padding: 4px;\n}\n\n.ProductDetailsV3-module_blockskeleton__OhQ-8 {\n bottom: 5px;\n height: 15px;\n top: 5px;\n}');const Re=({content:n,entitlementConfig:t,indexKey:o,listlength:l,showModalPopup:i,sbStaticConstants:r,tabIndex:d,countryList:a,metadata:c})=>{var u;const[s,m]=e.useState(!1),v=e.useRef(null),p=null===(u=null==g?void 0:g.getInstance())||void 0===u?void 0:u.getAssetPath();e.useEffect((()=>{setTimeout((()=>{_()}),100)}),[s]);const _=()=>{P(`product-configv3${d}`,l),P(`detailsectionv3${d}`,l)};return e.createElement("div",{ref:v},e.createElement("div",{className:Be.productdetailswrapper},e.createElement("div",{className:Be.configheadersection,style:{width:"100%"}},(null==n?void 0:n.icon)?e.createElement("span",null,e.createElement("img",{src:null==n?void 0:n.icon,alt:"img",width:24,height:24,className:Be.imagecontainer})):"",e.createElement("span",{className:Be.displayname},null==n?void 0:n.name),(null==n?void 0:n.tooltip)?e.createElement("div",{className:Be.bundletooltip,style:{marginLeft:"auto"}},e.createElement(he,{content:null==n?void 0:n.tooltip})):""),e.createElement("div",{className:Be.configdetailssection},(null==n?void 0:n.tvChannelName)&&"TV"===(null==n?void 0:n.poType)&&e.createElement("div",{className:Be.newmodal,onClick:()=>{i()}},e.createElement("div",{className:Be.tvHeading},null==n?void 0:n.tvChannelName),e.createElement("div",{className:Be.changeBtn},r.changeText),e.createElement("img",{src:`${p}/icons/chevron-down-red.svg`,height:24,width:24,alt:""})),(null==n?void 0:n.includeDescription)?e.createElement("div",{className:Be.productdetailsdescription,id:`entitledespV3${o}`},e.createElement(W,{content:null==n?void 0:n.description})):e.createElement(e.Fragment,null,(null==n?void 0:n.includeEntitlement)&&t&&(null==t?void 0:t.map(((n,t)=>e.createElement(e.Fragment,null,t<2||t>1&&s?e.createElement("div",{className:Be.entitlementvalue},(null==n?void 0:n.icon)&&e.createElement("div",{className:Be.entitlementicon},e.createElement("img",{src:null==n?void 0:n.icon,width:20,height:20})),e.createElement("div",{className:(null==n?void 0:n.isDisabled)?Be.disabled:""},null==n?void 0:n.entitlement,(null==n?void 0:n.toolTipText)&&e.createElement("div",{className:Be.bundletooltip},e.createElement(he,{content:null==n?void 0:n.toolTipText})))):"")))),(null==t?void 0:t.length)>2&&e.createElement("div",{className:Be.showmore,onClick:()=>m(!s)},s?null==r?void 0:r.show_less:null==r?void 0:r.show_more)),(null==n?void 0:n.linkText)&&e.createElement(ne,{product:a,linkText:null==n?void 0:n.linkText,metadata:c,reuseableLineTable:!0}))))};var ze="SkeletonLoader-module_reactloadingskeletonV3__hLl73";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.SkeletonLoader-module_reactloadingskeletonV3__hLl73 {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n background-color: var(--base-color);\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n position: relative;\n user-select: none;\n overflow: hidden;\n}\n\n.SkeletonLoader-module_reactloadingskeletonV3__hLl73::after {\n content: " ";\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: linear-gradient(90deg, var(--base-color), var(--highlight-color), var(--base-color));\n transform: translateX(-100%);\n animation-name: SkeletonLoader-module_react-loading-skeleton__G8Drm;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n\n@media (prefers-reduced-motion) {\n .SkeletonLoader-module_reactloadingskeletonV3__hLl73 {\n --pseudo-element-display: none; /* Disable animation */\n }\n}\n.SkeletonLoader-module_skeletontittle__tKku- {\n height: 50px;\n}\n\n.SkeletonLoader-module_skeletonline__BsblE {\n height: 15px;\n margin: 8px 0;\n}');const Fe=({count:n=1,stylename:t=""})=>e.createElement("div",null,e.createElement(v,{className:`${ze} ${t}`,count:n})),$e=({content:n,priceCollection:t,toggleSwitch:o,sbStaticConstants:l})=>{var i,r,d,a,c,u;const s=null!==(i=null==t?void 0:t.base)&&void 0!==i?i:0;let m=null!==(a=null===(d=null===(r=null==t?void 0:t.discount)||void 0===r?void 0:r[0])||void 0===d?void 0:d.value)&&void 0!==a?a:0;null===(c=null==t?void 0:t.discount)||void 0===c||c.map((e=>{1==(null==e?void 0:e.cycleStart)&&(m=null==e?void 0:e.value)}));const v=null==t?void 0:t.discount,p=null==t?void 0:t.int_fmc,_=null==t?void 0:t.mob_fmc;let h=!1;return e.createElement("div",null,Number(s)>0?e.createElement(e.Fragment,null,e.createElement("div",{className:`${Be.pricecontainer}`},e.createElement("span",{className:`${Be.discountedprice} ${o&&!(p>0||_>0)?"":o||p>0||_>0||(null==v?void 0:v.length)>0?Be.promo:""}`},C(m>0&&!o?m:s),e.createElement("span",{className:`${Be.duration}`},null==l?void 0:l.mt)),s&&(p>0||_>0||!o&&v.length>0)&&e.createElement("span",{className:`${Be.basePriceAfterDiscount}`},C(s)),e.createElement("div",null,null==n?void 0:n.promoText)),!o&&!_&&!p&&(null==v?void 0:v.length)>0&&(null===(u=null==v?void 0:v[0])||void 0===u?void 0:u.cycleEnd)&&e.createElement("div",null,e.createElement("div",{className:Be.pricedisplay},v.length>0&&v.map((n=>(720===(null==n?void 0:n.cycleEnd)&&(h=!0),e.createElement(e.Fragment,null," ",e.createElement("span",{className:Be.pricelabel},h?null==l?void 0:l.lifetime_label:e.createElement(e.Fragment,null," ",1!=n.cycleStart&&e.createElement(e.Fragment,null,"CHF"," ",C(n.value))," ",1===n.cycleStart?O(null==l?void 0:l.promo_first_lt,[n.cycleEnd]):O(null==l?void 0:l.promo_next_lt,[n.cycleEnd-n.cycleStart+1]))))))),!h&&e.createElement("span",null," ",O(null==l?void 0:l.promo_then_lt,[C(s)]))))):e.createElement(Fe,{stylename:Be.blockskeleton}))};var Me="ProductDetailsV2-module_productmodal__2B7qv",je="ProductDetailsV2-module_container__dH9t4",Ge="ProductDetailsV2-module_backbtn__5E2Ow",Ue="ProductDetailsV2-module_closebtn__vonVN",We="ProductDetailsV2-module_cartbtn__lmC7O",qe="ProductDetailsV2-module_check-footer__iuqqZ",Xe="ProductDetailsV2-module_footer-linetablev3__bo9Qj";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n@media (min-width: 1024px) {\n .ProductDetailsV2-module_productmodal__2B7qv {\n min-width: 884px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductDetailsV2-module_productmodal__2B7qv {\n min-width: 740px;\n }\n}\n.ProductDetailsV2-module_productmodal__2B7qv .modal-body {\n padding: 0 16px 16px;\n}\n@media (max-width: 767px) {\n .ProductDetailsV2-module_productmodal__2B7qv .modal-body {\n padding: 12px;\n }\n}\n.ProductDetailsV2-module_productmodal__2B7qv .modal-content {\n background-color: #f7f6f5;\n border-radius: 8px;\n box-shadow: 0px 20px 30px -8px rgba(87, 84, 82, 0.4);\n}\n.ProductDetailsV2-module_productmodal__2B7qv .modal-content .modal-header {\n border-bottom: none !important;\n}\n.ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_container__dH9t4 {\n display: flex;\n align-items: center;\n margin-left: 16px;\n}\n.ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_container__dH9t4 .ProductDetailsV2-module_backbtn__5E2Ow {\n color: #da291c;\n}\n@media (max-width: 767px) {\n .ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_container__dH9t4 {\n margin-left: 12px;\n }\n}\n.ProductDetailsV2-module_productmodal__2B7qv .ProductDetailsV2-module_closebtn__vonVN .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n\n.ProductDetailsV2-module_cartbtn__lmC7O {\n cursor: pointer;\n text-align: center;\n width: fit-content;\n float: right;\n}\n.ProductDetailsV2-module_cartbtn__lmC7O .primarybutton {\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .ProductDetailsV2-module_cartbtn__lmC7O {\n position: inherit;\n width: auto;\n top: 0;\n right: auto;\n }\n}\n\n.ProductDetailsV2-module_check-footer__iuqqZ {\n position: relative;\n bottom: 0;\n margin: 24px 16px;\n padding: 8px 16px;\n border: 1px solid #e6e3df;\n border-radius: 8px;\n}\n.ProductDetailsV2-module_check-footer__iuqqZ .ProductDetailsV2-module_footer-linetablev3__bo9Qj {\n width: 100%;\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.ProductDetailsV2-module_back-button__U8Wjz {\n position: fixed;\n top: 0;\n padding: 16px 0;\n}\n\n.ProductDetailsV2-module_modal-price__jlNZA {\n padding: 16px 0 24px;\n}\n\n.ProductDetailsV2-module_productDetailstext__Mg-EX {\n color: #3d3935;\n text-decoration: underline;\n}\n\n.ProductDetailsV2-module_productDetailstextNew__w3s0l {\n color: #da291c;\n text-decoration: underline;\n}\n\n.ProductDetailsV2-module_textColor__tQQxl {\n color: #ffffff;\n text-decoration: underline;\n}");const He=({modalState:n,handler:l,showFooter:i,footerNode:r,children:d,width:a,height:c,backButton:u})=>{var s;const m=null===(s=null==g?void 0:g.getInstance())||void 0===s?void 0:s.getAssetPath();return e.useEffect((()=>{const e=document&&(null===document||void 0===document?void 0:document.querySelector(".product-modal .footer-main"));e&&(e.style.zIndex="10");const n=document&&(null===document||void 0===document?void 0:document.querySelector(".modal-dialog.product-modal"));n&&(n.style.maxWidth=a,n.style.padding="0",n.style.transform="none");const t=document&&(null===document||void 0===document?void 0:document.querySelector(".product-modal .modal-content"));t&&(t.style.height=c,t.style.backgroundColor="#F7F6F5");const o=document&&document.querySelector(".product-modal .modal-header");o&&(o.style.position="absolute",o.style.top="0",o.style.zIndex="1",o.style.maxWidth="100%",o.style.background="#f8f8f8",o.style.width="100%");const l=document&&document.querySelector(".product-modal .modal-body");l&&(l.style.background="#f8f8f8",l.style.paddingTop="70px")}),[c]),e.createElement(t,{scrollable:!1,show:n,onHide:l,keyboard:!1,dialogClassName:Me},e.createElement(t.Header,null,e.createElement("div",{onClick:l,className:`${je}`},e.createElement(e.Fragment,null,e.createElement("img",{src:`${m}/icons/arrow-left-red.svg`,alt:"",height:24,width:24,className:"me-3"}),e.createElement("span",{className:Ge},u))),e.createElement("div",{className:`${Ue} me-3 mt-3`},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,d),i&&e.createElement(t.Footer,null,r))},Ke=({content:n,isMobileFlow:t,sbStaticConstants:o,address:l,isAvailable:i,showPrice:r,createCartCall:d,updatedContent:a})=>{var c;const[u,s]=e.useState(!1);return e.useEffect((()=>{!t&&!i||""===(null==r?void 0:r.base)?s(!0):s(!1)}),[n,r,i]),e.createElement("div",null,t?(null==a?void 0:a.swapButton)?(null==a?void 0:a.ctaLinkLabel)&&e.createElement("a",{onClick:d,className:`${u&&De.disabled}`},null==a?void 0:a.ctaLinkLabel):e.createElement("button",{className:`primarybutton ${u&&De.disabled}`,onClick:d,disabled:u},e.createElement("span",{className:De.buttontext},null==o?void 0:o.addToCartBtnTxt)):e.createElement(e.Fragment,null,l&&(null===(c=null==Object?void 0:Object.keys(l))||void 0===c?void 0:c.length)>0?e.createElement(e.Fragment,null,e.createElement("button",{className:`primarybutton ${u&&De.disabled}`,onClick:d,disabled:u},e.createElement("span",{className:De.buttontext},null==o?void 0:o.addToCartBtnTxt))):e.createElement("button",{onClick:d,className:"configurebutton"},e.createElement("span",null,null==o?void 0:o.check_availability))))},Ye=({products:n,showProductDetail:t,setShowProductDetail:o,content:l,priceCollection:i,addToCart:r,sbStaticConstants:d,createCartCall:a,contractDuration:c})=>{var u;const[s,m]=e.useState(!0);let v=[],p="";n&&n.length>0&&(null==n||n.map((e=>{v=null==e?void 0:e.modalBody,p=null==e?void 0:e.backButton})));return e.createElement(e.Fragment,null,t&&e.createElement(e.Fragment,null,e.createElement(He,{modalState:s,handler:()=>{m(!s),o(!t)},showFooter:!1,height:"100%",backButton:p},e.createElement(e.Fragment,null,null==v?void 0:v.map(((n,t)=>e.createElement(ie,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===D&&e.createElement(q,{content:n,key:t}),(null==n?void 0:n.component)===B&&e.createElement(ae,{content:n}),(null==n?void 0:n.component)===A&&e.createElement(de,{content:n}))))),e.createElement("div",{className:`footer-main ${qe} `},e.createElement("span",{className:`${Xe}`},e.createElement("div",null,e.createElement($e,{content:l,priceCollection:i,sbStaticConstants:d}),e.createElement("div",null,c?O(null===(u=null==d?void 0:d.minContractDuration)||void 0===u?void 0:u.substring(1),[c]):null==d?void 0:d.simo_no_contract_term)),e.createElement("div",{className:We},e.createElement(Ke,{content:l,sbStaticConstants:d,isAvailable:null==r?void 0:r.isAvailable,showPrice:i,isSkeletonLoading:null==r?void 0:r.isSkeletonLoading,isMobileFlow:null==r?void 0:r.isMobileFlow,createCartCall:a,address:null==r?void 0:r.address}))))))))};var Je={errormodalbox:"TVChannelOfferV2-module_errormodalbox__sDWbF",header:"TVChannelOfferV2-module_header__kzobu",errorwrapper:"TVChannelOfferV2-module_errorwrapper__Gg4jt",title:"TVChannelOfferV2-module_title__RbPPM",body:"TVChannelOfferV2-module_body__tQavD",footer:"TVChannelOfferV2-module_footer__4rVEl",optionsContent:"TVChannelOfferV2-module_optionsContent__AyBQJ",confirmBtn:"TVChannelOfferV2-module_confirmBtn__ZI4NW",errordialog:"TVChannelOfferV2-module_errordialog__llanJ"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.TVChannelOfferV2-module_errormodalbox__sDWbF {\n border-radius: 0px;\n padding: 20px 16px 100px;\n box-shadow: rgba(87, 84, 82, 0.4);\n background-color: #f8f8f8;\n overflow: visible;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_header__kzobu {\n z-index: 1;\n border: none;\n padding: 0px;\n margin-bottom: -12px;\n margin-right: 0.5rem;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_header__kzobu .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_errorwrapper__Gg4jt {\n border-radius: 8px;\n box-shadow: rgba(87, 84, 82, 0.2);\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_errorwrapper__Gg4jt .TVChannelOfferV2-module_title__RbPPM {\n margin-right: 24px;\n margin-bottom: 24px;\n color: #3d3935;\n font-size: 20px;\n line-height: 28px;\n font-weight: 700;\n text-align: center;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_errorwrapper__Gg4jt .TVChannelOfferV2-module_body__tQavD {\n padding: 0px;\n display: flex;\n color: #5f5955;\n flex-wrap: wrap;\n justify-content: center;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl {\n border: none;\n position: absolute;\n bottom: 0px;\n right: 0;\n width: 100%;\n padding: 24px 0px;\n border-radius: 0px;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl .TVChannelOfferV2-module_optionsContent__AyBQJ {\n margin: auto;\n width: fit-content;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl .TVChannelOfferV2-module_confirmBtn__ZI4NW {\n border: none;\n width: fit-content;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl .TVChannelOfferV2-module_confirmBtn__ZI4NW > img {\n margin-left: 8px;\n}\n.TVChannelOfferV2-module_errormodalbox__sDWbF .TVChannelOfferV2-module_footer__4rVEl p {\n color: #ffffff;\n align-items: left;\n}\n\n.TVChannelOfferV2-module_errordialog__llanJ {\n max-width: 934px;\n}");var Ze="EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h-",Qe="EntertainmentOptionsV2-module_cardinputelement__00RZZ",en="EntertainmentOptionsV2-module_card__LqNAf";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- {\n align-items: flex-start;\n background: #ffffff;\n border-radius: 8px;\n box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);\n display: flex;\n flex: none;\n flex-direction: column;\n margin: 10px;\n max-width: 340px;\n order: 0;\n position: relative;\n width: 100%;\n}\n@media (min-width: 1024px) {\n .EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- {\n max-width: 380px;\n }\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_fs12__rhrjW {\n margin-left: 4px;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ + .EntertainmentOptionsV2-module_card__LqNAf {\n -webkit-box-shadow: none;\n border: 0px;\n border-radius: 8px;\n box-shadow: none;\n height: 100%;\n width: 100%;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ + .EntertainmentOptionsV2-module_card__LqNAf:hover {\n cursor: pointer;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf {\n outline: 4px solid #da291c;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf h4 {\n color: #da291c;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf.EntertainmentOptionsV2-module_showArrow__timDx::after {\n width: 0;\n height: 0;\n border-left: 9px solid transparent;\n border-right: 9px solid transparent;\n border-top: 8px solid #f1571d;\n position: absolute;\n content: "";\n top: calc(100% + 4px);\n left: calc(50% - 9px);\n}\n@media (max-width: 767px) {\n .EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h- .EntertainmentOptionsV2-module_cardinputelement__00RZZ:checked + .EntertainmentOptionsV2-module_card__LqNAf.EntertainmentOptionsV2-module_showArrow__timDx::after {\n display: none;\n }\n}\n\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH {\n align-items: flex-start;\n border-bottom: 1px solid #e5e5e5;\n display: flex;\n flex-direction: inherit;\n min-width: max-content;\n position: static;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 {\n border-radius: 8px;\n width: 100%;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_tabheading__ve-Rh {\n display: flex;\n padding: 0 0 10px 50px;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_tabheading__ve-Rh .EntertainmentOptionsV2-module_entoptibutton__TAVdH {\n margin-left: auto;\n padding-right: 15px;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_tabheading__ve-Rh h4 {\n color: #333333;\n font-size: 16px;\n font-weight: 700;\n left: 32px;\n line-height: 24px;\n top: 12px;\n min-width: max-content;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_additionalprice__s7i-2 {\n transform: translate(50px, -20px);\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_additionalprice__s7i-2 p span {\n color: #333333;\n font-size: 16px;\n font-weight: 700;\n left: 32px;\n line-height: 24px;\n top: 0;\n}\n.EntertainmentOptionsV2-module_entertainmentoptionswrappermobile__FX0BH .EntertainmentOptionsV2-module_mobcard__MUGs3 .EntertainmentOptionsV2-module_inputfield__grFes {\n height: 50px;\n margin: 0 16px 16px 16px;\n}\n\n.EntertainmentOptionsV2-module_radiocontainer__U83LN {\n cursor: pointer;\n display: inline-block;\n font-weight: 700;\n padding-left: 30px;\n position: relative;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN .EntertainmentOptionsV2-module_checkmark__BeCUA {\n border: 2px solid #b2b2b2;\n border-radius: 50%;\n height: 20px;\n left: 0;\n margin: 10px 10px 0 18px;\n position: absolute;\n top: 0;\n width: 20px;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN .EntertainmentOptionsV2-module_checkmark__BeCUA.EntertainmentOptionsV2-module_disabled__Lf1GV {\n border: 2px solid #b2b2b2;\n}\n\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input {\n cursor: pointer;\n opacity: 0;\n position: absolute;\n}\n\n/* When the radio button is checked, add a blue background */\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA {\n background-color: #ffffff;\n border: 2px solid #d9415c;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA:hover {\n border: 2px solid #d9415c;\n}\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA:hover:after {\n background: #d9415c;\n}\n\n/* Create the indicator (the dot/circle - hidden when not checked) */\n.EntertainmentOptionsV2-module_checkmark__BeCUA:after {\n content: "";\n display: none;\n position: absolute;\n}\n\n/* Show the indicator (dot/circle) when checked */\n.EntertainmentOptionsV2-module_radiocontainer__U83LN input:checked ~ .EntertainmentOptionsV2-module_checkmark__BeCUA:after {\n display: block;\n}\n\n/* Style the indicator (dot/circle) */\n.EntertainmentOptionsV2-module_radiocontainer__U83LN .EntertainmentOptionsV2-module_checkmark__BeCUA:after {\n background: #d9415c;\n border-radius: 50%;\n height: 10px;\n left: 3px;\n top: 3px;\n width: 10px;\n}');var nn="ReactInputSelectV2-module_selectcontainer__neygJ",tn="ReactInputSelectV2-module_downArrowIcon__KGx-5",on="ReactInputSelectV2-module_transform180__XCHJs",ln="ReactInputSelectV2-module_errormessage__FF0WO";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ReactInputSelectV2-module_selectcontainer__neygJ {\n position: relative;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .react-select__control {\n border: 1px solid #b3aeaa !important;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_downArrowIcon__KGx-5 {\n content: "";\n display: inline-block;\n height: 24px;\n width: 24px;\n background: url("/ecom-int/icons/chevron-down.svg") no-repeat;\n background-size: cover;\n background-position: center;\n margin-left: 8px;\n transform: rotate(0);\n transition: transform 0.3s;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_downArrowIcon__KGx-5.ReactInputSelectV2-module_transform180__XCHJs {\n transform: rotate(180deg);\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_downArrowIcon__KGx-5:hover {\n cursor: pointer;\n}\n.ReactInputSelectV2-module_selectcontainer__neygJ .ReactInputSelectV2-module_errormessage__FF0WO {\n color: #c60047;\n font-size: 12px;\n line-height: 16px;\n margin-top: 4px;\n}');const rn=e.forwardRef((({name:n,options:t,content:o,isSearchable:l=!0,disableValues:i=[],defaultValue:r="",optionsValue:d="value",optionsLabel:a="label",isDisabled:c=!1,isClearable:u=!0,onChange:s},m)=>{const[v,_]=e.useState(!1),[h,f]=e.useState(r),[g,b]=e.useState(!1),[x,y]=e.useState(!1);Boolean(h)==x&&y(!x);return e.createElement("div",{className:nn},e.createElement(p,{className:`react-select-container ${x&&"errorborder"}`,styles:(E=x&&v,{control:e=>Object.assign(Object.assign({},e),E&&{border:"2px solid #C60047 !important"}),valueContainer:e=>Object.assign(Object.assign({},e),!o.label&&{padding:"0px 0px 0px 12px !important"})}),name:n,instanceId:"React-select",classNamePrefix:"react-select",components:{DropdownIndicator:n=>e.createElement(p.components.DropdownIndicator,Object.assign({},n),e.createElement("span",{className:`${tn} ${n.selectProps.menuIsOpen?on:""}`})),IndicatorSeparator:null},value:h,onChange:e=>{f(e),"function"==typeof s&&s(e?{name:n,value:e}:{name:n,value:{[d]:"",[a]:""}})},isClearable:u,placeholder:"",onFocus:()=>b(!0),onBlur:()=>{!v&&_(!0),b(!1)},backspaceRemovesValue:!0,options:t,ref:m,getOptionLabel:e=>e[a],getOptionValue:e=>e[d],isOptionDisabled:e=>i.includes(e[d]),isDisabled:c,isSearchable:l}),e.createElement("label",{className:`${(h&&h[d]&&h[a]||g)&&"activeLabel"} selectcomplabel`},o.label),x&&v&&e.createElement("span",{className:ln},o.errorMessage));var E})),dn=({className:n="",name:t="demo",content:o,checked:l,options:i,setProduct:r,onclick:d,localeID:a,type:c="radio",langSelected:u})=>{var s,m;const[v,p]=e.useState({details:"",included:""}),_="NETFLIX"==(null==o?void 0:o.tvGroup)||"SPORTS"==(null==o?void 0:o.tvGroup),h=e.useMemo((()=>{var e,n;const t=e=>{let n;return null==i||i.map(((t,o)=>{t.name==(null==e?void 0:e.toUpperCase())&&(n=o)})),n};return null!==(n=null!==(e=t(u||a))&&void 0!==e?e:t("de"))&&void 0!==n?n:0}),[i]),f=null==o?void 0:o.productId,[g,b]=e.useState(f);return e.useEffect((()=>{try{const e=null===localStorage||void 0===localStorage?void 0:localStorage.getItem("sbstaticcontent");if(""!==e){const n=e&&JSON.parse(e);p(Object.assign(Object.assign({},v),{details:null==n?void 0:n.details,included:null==n?void 0:n.included}))}}catch(e){}}),[]),e.createElement("label",{className:`${Ze} ${n}`,onClick:d},e.createElement("input",{type:c,name:t,value:g,className:`${Qe} d-none`,id:"demo1","data-additional":null==o?void 0:o.tvGroup,checked:l,readOnly:!0}),e.createElement("div",{className:`${en} card card-body`},e.createElement("div",{className:"d-flex"},e.createElement("h4",null,null==o?void 0:o.displayName)),e.createElement("div",{className:"mb-3"},e.createElement(W,{content:null==o?void 0:o.description})),(null===(s=null==o?void 0:o.prodImage)||void 0===s?void 0:s.filename)&&e.createElement("img",{src:null===(m=null==o?void 0:o.prodImage)||void 0===m?void 0:m.filename,height:"",width:"",alt:""}),(null==i?void 0:i.length)>1&&e.createElement("div",{className:"mt-auto"},e.createElement(rn,{content:{label:"",errorMessage:""},options:i,optionsValue:"name",optionsLabel:"value",onChange:e=>{var n,t;const o=e.value.name;if(o){const e=i.filter((e=>e.name==o));r(null===(n=null==e?void 0:e[0])||void 0===n?void 0:n.prod),b(null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.prod)}},isSearchable:!1,isClearable:!1,defaultValue:i[h]})),_&&e.createElement("div",{className:`row w-100 pt-2 ${!((null==i?void 0:i.length)>1)&&"mt-auto"}`},e.createElement("h3",{className:"col-9 mb-0"},null==v?void 0:v.included))))},an=({content:t,showModal:o,setShowModal:l,setEntertainment:r,setTvChannelName:d,radioValue:a,setRadioValue:c,metadata:u})=>{var s,m,v,p;const _=null==t?void 0:t.ids,[h,b]=e.useState([]),x=null==u?void 0:u.lang,[y,E]=e.useState([]),[T,w]=e.useState({}),k=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),P=null===(m=null==g?void 0:g.getInstance())||void 0===m?void 0:m.getAssetPath(),C=localStorage.getItem("sbstaticcontent"),S=C&&JSON.parse(C),V=["NETFLIX","TVBOX","TVAPP"],N={language:x,type:"B2C"};e.useEffect((()=>{let e="";_.forEach((n=>{e=e+n+","}));const t=`${k}rest/cms/stories/?by_slugs=${e}`,o=[];n.CMSStoryblokServiceV2.get(t,N).then((e=>{var n,t;null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.stories)||void 0===t||t.map((e=>{o.push(e)}))})).catch((e=>{console.log(e)})).finally((()=>{A(o)})),b(o)}),[x]),e.useEffect((()=>{a&&h&&h.map((e=>{var n,t,o,l,i,r,c,u,s,m,v,p;(null===(o=null===(t=null===(n=null==e?void 0:e.content)||void 0===n?void 0:n.body)||void 0===t?void 0:t[0])||void 0===o?void 0:o.code)&&(null===(r=null===(i=null===(l=e.content)||void 0===l?void 0:l.body)||void 0===i?void 0:i[0])||void 0===r?void 0:r.code)===a&&d((null===(s=null===(u=null===(c=null==e?void 0:e.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.displayName)+" "+(null===(p=null===(v=null===(m=null==e?void 0:e.content)||void 0===m?void 0:m.body)||void 0===v?void 0:v[0])||void 0===p?void 0:p.tvLang))}))}),[a]);const I=()=>{l(!1)},O=e=>{c(e.target.value)},L=G,D=e=>{c(e)},A=e=>{const n=[],t=[],o={};let l="";e.map((e=>{var i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,P,C,S;const N=null===(d=null===(r=null===(i=e.content)||void 0===i?void 0:i.body)||void 0===r?void 0:r[0])||void 0===d?void 0:d.tvGroup;(null===(u=null===(c=null===(a=e.content)||void 0===a?void 0:a.body)||void 0===c?void 0:c[0])||void 0===u?void 0:u.isTvGroup)&&!l&&(l=null===(v=null===(m=null===(s=e.content)||void 0===s?void 0:s.body)||void 0===m?void 0:m[0])||void 0===v?void 0:v.code),n.includes(N)||(V.includes(N)||"DE"===(null===(h=null===(_=null===(p=null==e?void 0:e.content)||void 0===p?void 0:p.body)||void 0===_?void 0:_[0])||void 0===h?void 0:h.tvLang))&&(n.push(N),t.push(null===(g=null===(f=null==e?void 0:e.content)||void 0===f?void 0:f.body)||void 0===g?void 0:g[0])),(null===(b=o[N])||void 0===b?void 0:b.length)||(o[N]=[]),o[N].push({name:null===(E=null===(y=null===(x=null==e?void 0:e.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===E?void 0:E.tvLang,value:L[null===(k=null===(w=null===(T=null==e?void 0:e.content)||void 0===T?void 0:T.body)||void 0===w?void 0:w[0])||void 0===k?void 0:k.tvLang],prod:null===(S=null===(C=null===(P=null==e?void 0:e.content)||void 0===P?void 0:P.body)||void 0===C?void 0:C[0])||void 0===S?void 0:S.code})})),w(o),""==a&&c(l);const i=t.filter((e=>"NETFLIX"===(null==e?void 0:e.tvGroup))),r=t.indexOf(i[0]),d=t.splice(r,1)[0];t.splice(0,0,d),E(t)};return e.createElement(e.Fragment,null,e.createElement(i.Modal,{contentClassName:Je.errormodalbox,show:o,dialogClassName:Je.errordialog,onHide:I,centered:!0},e.createElement(i.Modal.Header,{className:Je.header,closeButton:!0,onClick:I}),e.createElement("div",{className:Je.errorwrapper},e.createElement(i.Modal.Title,{className:Je.title},(null===(v=null==t?void 0:t.product)||void 0===v?void 0:v.includes("Netflix"))?null==S?void 0:S.entertainment_prod_modal_head:null==S?void 0:S.choose_tv_box_app),e.createElement("div",null,e.createElement(i.Modal.Body,{className:Je.body},y&&y.map(((n,t)=>{var o;let l="",i=!1;const r=null===(o=T[null==n?void 0:n.tvGroup])||void 0===o?void 0:o.reduce(((e,n)=>(i=n.prod==a,i&&(l=n.name.toLowerCase()),e||i)),!1);return e.createElement(dn,{key:t,content:n,value:t,options:T[null==n?void 0:n.tvGroup],setProduct:D,onclick:O,localeID:x,checked:r,langSelected:l})}))))),""!=a&&e.createElement(i.Modal.Footer,{className:Je.footer},e.createElement("div",{className:"row w-100"},e.createElement("div",{className:"text-center"},e.createElement("button",{className:`${Je.confirmBtn} primarybutton`,onClick:()=>(e=>{var n,o,i,d,a,c,u,s;const m=(h||[]).filter((n=>{var t,o,l;if((null===(l=null===(o=null===(t=null==n?void 0:n.content)||void 0===t?void 0:t.body)||void 0===o?void 0:o[0])||void 0===l?void 0:l.productId)===e)return n})),v={ignoreId:"",selectedEntertainmentProduct:[]};(null===(d=null===(i=null===(o=null===(n=m[0])||void 0===n?void 0:n.content)||void 0===o?void 0:o.body)||void 0===i?void 0:i[0])||void 0===d?void 0:d.productId)&&e!==(null==t?void 0:t.product)&&(v.ignoreId=null==t?void 0:t.product,v.selectedEntertainmentProduct.push({id:null===(s=null===(u=null===(c=null===(a=m[0])||void 0===a?void 0:a.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.productId,checkVoucher:!1,promoIds:[null==t?void 0:t.promotion]})),r&&r(v),l(!1)})(a)},(null===(p=null==t?void 0:t.product)||void 0===p?void 0:p.includes("Netflix"))?e.createElement(e.Fragment,null,S.confirm_your_choice,e.createElement("img",{className:Je["img-tick"],src:`${P}/icons/tick.svg`,height:24,width:24,alt:""})):null==S?void 0:S.continue))))))},cn=({content:n,priceCollection:t,sbStaticConstants:o})=>{const l=null==t?void 0:t.int_fmc,i=null==t?void 0:t.mob_fmc,r=null==t?void 0:t.mob_benefit_category;return e.createElement("div",null,e.createElement("div",{className:Be.optioncontainer},e.createElement("div",{className:Be.optionlist},(null==n?void 0:n.length)>0&&e.createElement("span",{className:Be.optiontitle},null==o?void 0:o.benefits),(n||[]).map(((n,t)=>"default"==(null==n?void 0:n.id)||"int_fmc"==(null==n?void 0:n.id)&&l>0&&"FMC"!=r||"multimob_fmc"==(null==n?void 0:n.id)&&i>0&&"MULTIMOBILE"==r||"combi_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==r?e.createElement("div",{key:t,className:"d-flex justify-content-between"},e.createElement("span",null,n&&e.createElement("span",{className:"d-flex"},(null==n?void 0:n.text)&&!(null==n?void 0:n.isMMC)&&e.createElement("span",{className:Be.optionwrapper},(null==n?void 0:n.icon)&&e.createElement("img",{src:null==n?void 0:n.icon,width:24,height:24}),e.createElement("span",{className:`${Be.text} ms-2`},e.createElement(W,{content:null==n?void 0:n.text}))),(null==n?void 0:n.text)&&"MULTIMOBILE"===r&&(null==n?void 0:n.isMMC)&&e.createElement("span",{className:Be.optionwrapper,id:"benefits"},(null==n?void 0:n.icon)&&e.createElement("img",{src:null==n?void 0:n.icon,width:24,height:24}),e.createElement("span",{className:`${Be.text} ms-2`},e.createElement(W,{content:null==n?void 0:n.text}))))),e.createElement("span",null,(null==n?void 0:n.toolTip)&&e.createElement(he,{content:null==n?void 0:n.toolTip,isBenefit:!0}))):"")))))};var un={giftcontainer:"ChooseGiftV2-module_giftcontainer__Dbb2N",giftlist:"ChooseGiftV2-module_giftlist__DgXih",gifttitle:"ChooseGiftV2-module_gifttitle__zO2X8",gifttooltip:"ChooseGiftV2-module_gifttooltip__gYZ5V",giftsection:"ChooseGiftV2-module_giftsection__4l8rb",giftimagecontainer:"ChooseGiftV2-module_giftimagecontainer__W23p1",giftimg:"ChooseGiftV2-module_giftimg__6S6jb",giftdescription:"ChooseGiftV2-module_giftdescription__S-woF",description:"ChooseGiftV2-module_description__EjBz5",list:"ChooseGiftV2-module_list__Wb9GH"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ChooseGiftV2-module_giftcontainer__Dbb2N {\n border: 1px solid #B6C8C0;\n background: rgba(153, 178, 167, 0.1);\n border-radius: 8px;\n padding: 16px;\n margin-bottom: 10px;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftlist__DgXih {\n margin-top: 2px;\n display: flex;\n align-items: center;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftlist__DgXih .ChooseGiftV2-module_gifttitle__zO2X8 {\n font-size: 16px;\n line-height: 24px;\n width: calc(100% - 48px);\n font-weight: bold;\n margin-left: 11px;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftlist__DgXih .ChooseGiftV2-module_gifttooltip__gYZ5V {\n float: right;\n position: relative;\n top: 2px;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb {\n margin: 8px 0px 10px 0px;\n display: flex;\n flex-wrap: wrap;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb .ChooseGiftV2-module_giftimagecontainer__W23p1 {\n cursor: pointer;\n margin-right: 8px;\n padding: 8px 2px;\n flex-grow: 1;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb .ChooseGiftV2-module_giftimagecontainer__W23p1 img {\n display: block;\n margin: 0 auto;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftsection__4l8rb .ChooseGiftV2-module_giftimg__6S6jb {\n border: 2px solid red;\n border-radius: 8px;\n width: fit-content;\n padding: 6px 0;\n box-sizing: border-box;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftdescription__S-woF {\n display: inline-block;\n font-size: 14px;\n line-height: 20px;\n color: #606060;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_giftdescription__S-woF .ChooseGiftV2-module_description__EjBz5 {\n font-weight: 700;\n color: #3d3935;\n}\n.ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_list__Wb9GH {\n margin: 16px 0px;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ChooseGiftV2-module_giftcontainer__Dbb2N .ChooseGiftV2-module_list__Wb9GH {\n margin: 8px 0;\n }\n}");const sn=({content:n})=>{var t,o;return e.createElement("div",null,e.createElement("div",{className:un.giftcontainer},e.createElement("div",{className:un.giftlist},(null==n?void 0:n.giftImage)&&e.createElement("span",{className:un.gifticon},e.createElement("img",{src:null===(t=null==n?void 0:n.giftIcon)||void 0===t?void 0:t.filename,width:24,height:24})),e.createElement("span",{className:un.gifttitle},null==n?void 0:n.title),e.createElement("span",{className:un.gifttooltip},(null==n?void 0:n.tooltipText)&&e.createElement(he,{content:null==n?void 0:n.tooltipText})),e.createElement("div",{className:un.list},e.createElement("div",{className:un.giftlist},e.createElement("div",{className:un.giftsection},(null==n?void 0:n.giftIcon)&&e.createElement("span",{className:un.gifticon},e.createElement("img",{src:null===(o=null==n?void 0:n.giftImage)||void 0===o?void 0:o.filename,width:64,height:64})),e.createElement("div",{className:un.giftdescription},e.createElement("span",{className:un.description},null==n?void 0:n.giftName),e.createElement("br",null),e.createElement("span",{className:un.giftprice},null==n?void 0:n.price))))))))},mn=({content:n,selectedGiftItem:t,parentPoType:o})=>{var l,i,r;const[d,a]=e.useState(0),[c,u]=e.useState(null===(l=null==n?void 0:n.listOfGifts)||void 0===l?void 0:l[0]);return e.useEffect((()=>{var e,l;let i=!1;null===(e=null==n?void 0:n.listOfGifts)||void 0===e||e.map(((e,l)=>{e.is_default&&(u(e),a(l),i=!0,t({tuaProdId:null==e?void 0:e.tuaProdId,giftGroupId:null==n?void 0:n.giftGroupId,parentPoType:o}))})),i||t({tuaProdId:null===(l=null==n?void 0:n.listOfGifts)||void 0===l?void 0:l[0].tuaProdId,giftGroupId:null==n?void 0:n.giftGroupId,parentPoType:o})}),[]),e.createElement("div",null,e.createElement("div",{className:un.giftcontainer},e.createElement("div",{className:un.giftlist},e.createElement("span",{className:un.gifticon},e.createElement("img",{src:null===(i=null==n?void 0:n.giftIcon)||void 0===i?void 0:i.filename,width:24,height:24})),e.createElement("span",{className:un.gifttitle},null==n?void 0:n.title),e.createElement("div",{className:un.gifttooltip},e.createElement(he,{content:null==n?void 0:n.tooltipText}))),e.createElement("div",{className:un.giftsection},null===(r=null==n?void 0:n.listOfGifts)||void 0===r?void 0:r.map(((l,i)=>{var r;return e.createElement("div",{key:i,onClick:()=>((e,l)=>{u(e),a(l),t({tuaProdId:null==e?void 0:e.tuaProdId,giftGroupId:null==n?void 0:n.giftGroupId,parentPoType:o})})(l,i),className:`${un.giftimagecontainer} ${i===d&&un.giftimg}`},e.createElement("img",{src:null===(r=l.image)||void 0===r?void 0:r.filename,width:64,height:64}))}))),e.createElement("div",{className:un.giftdescription},e.createElement("span",{className:un.description},null==c?void 0:c.title)," ",e.createElement("br",null),e.createElement("span",{className:un.giftprice},(null==c?void 0:c.description)&&e.createElement(W,{content:null==c?void 0:c.description})))))},vn=(e,n,t)=>{window.dataLayer.push(Object.assign({event:e,event_name:n},t))};var pn="CashbackV2-module_cashbackcontainer__uRM1Z",_n="CashbackV2-module_cashbackmodule__kYlg6",hn="CashbackV2-module_cashbackicon__fDkXT",fn="CashbackV2-module_cashbackimage__led6d",gn="CashbackV2-module_cashbacktitle__su2j2",bn="CashbackV2-module_cashbacktooltip__MdcgY",xn="CashbackV2-module_cashbackdescription__-UtWu";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.CashbackV2-module_cashbackcontainer__uRM1Z {\n border: 1px solid #B6C8C0;\n background: rgba(153, 178, 167, 0.1);\n border-radius: 8px;\n box-sizing: border-box;\n padding: 16px;\n align-items: center;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackmodule__kYlg6 {\n font-size: 14px;\n line-height: 20px;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackmodule__kYlg6 .CashbackV2-module_cashbackicon__fDkXT {\n position: relative;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackmodule__kYlg6 .CashbackV2-module_cashbackimage__led6d {\n display: flex;\n align-items: center;\n margin-top: 8px;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbacktitle__su2j2 {\n margin-left: 8px;\n font-weight: 700;\n margin-top: 2px;\n color: #3d3935;\n font-size: 16px;\n line-height: 24px;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbacktooltip__MdcgY {\n float: right;\n position: relative;\n}\n.CashbackV2-module_cashbackcontainer__uRM1Z .CashbackV2-module_cashbackdescription__-UtWu {\n font-weight: 400;\n color: #5f5955;\n margin-left: 8px;\n}");const yn=({content:n})=>{var t,o;return e.createElement("div",null,e.createElement("div",{className:`${pn} cashbackv2container`},e.createElement("div",{className:_n},e.createElement("div",null,e.createElement("span",{className:hn},e.createElement("img",{src:null===(t=null==n?void 0:n.icon)||void 0===t?void 0:t.filename,alt:"cashback",width:24,height:24})),e.createElement("span",{className:gn},null==n?void 0:n.title),e.createElement("span",{className:bn},(null==n?void 0:n.tooltiptext)&&e.createElement(he,{content:null==n?void 0:n.tooltiptext}))),e.createElement("div",{className:fn},e.createElement("img",{src:null===(o=null==n?void 0:n.image)||void 0===o?void 0:o.filename,alt:"cashback",width:64,height:64}),e.createElement("span",{className:xn},null==n?void 0:n.description)))))},En=({content:n,cards:t,metadata:o,indexKey:l,offeringData:i,uniqueId:r,tabIndex:d,lineCheckCallBack:a,sbStaticConstants:u,address:s,eligibleBundle:m,summaryUrl:v,isMobileFlow:p,updatedContent:h,lineTableContent:b})=>{var x,y,E,T,w,k,C,S,V,N,I,L,D,A,B,R,$,M,j,G;const[U,q]=e.useState({}),[X,K]=e.useState(),[J,Z]=e.useState(""),[ee,ne]=e.useState(""),[te,oe]=e.useState(!1),[le,ie]=e.useState(!1),[re,de]=e.useState(!1),[ae,ce]=e.useState([]),ue=null===(x=null==g?void 0:g.getInstance())||void 0===x?void 0:x.getAssetPath(),[se,me]=e.useState(!1),ve=null==U?void 0:U.code,pe=((null==i?void 0:i[r])||[]).filter((e=>(null==e?void 0:e.id)===ve)),_e=((e,n,t)=>{var o,l,i,r,d,a,c,u,s,m;const v={base:"",onetimePrice:"",discount:[],contractDuration:"",int_fmc:0,mob_fmc:0,mob_benefit_category:"",id:"",promoID:""};Array.isArray(e)&&(null==e||e.map((e=>{var n,t,o;v.id=null!==(n=null==e?void 0:e.id)&&void 0!==n?n:"",null===(t=null==e?void 0:e.prices)||void 0===t||t.map((e=>{var n,t;"recurring"===(null===(n=null==e?void 0:e.priceType)||void 0===n?void 0:n.toLowerCase())?v.base=null==e?void 0:e.value:"one time"===(null===(t=null==e?void 0:e.priceType)||void 0===t?void 0:t.toLowerCase())&&(v.onetimePrice=null==e?void 0:e.value)})),null===(o=null==e?void 0:e.derivedPrice)||void 0===o||o.map((e=>{var n,t;const o={cycleStart:"",cycleEnd:"",value:""};o.cycleStart=null===(n=null==e?void 0:e.cycle)||void 0===n?void 0:n.cycleStart,o.cycleEnd=null===(t=null==e?void 0:e.cycle)||void 0===t?void 0:t.cycleEnd,o.value=null==e?void 0:e.value,v.discount.push(o)}))}))),null===(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.bundledOffers)||void 0===l||l.forEach((e=>{var n,t,o,l,i,r,d,a,c;null===(n=null==e?void 0:e.prices)||void 0===n||n.forEach((e=>{var n,t;(null===(n=null==e?void 0:e.priceAlteration)||void 0===n?void 0:n.length)>0&&(null===(t=null==e?void 0:e.priceAlteration)||void 0===t||t.forEach((e=>{"INTERNET_FMC"==(null==e?void 0:e.priceCategory)?v.int_fmc+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(v.mob_fmc+=Number(null==e?void 0:e.value),v.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null===(o=null===(t=null==e?void 0:e.promotionInfo)||void 0===t?void 0:t[0])||void 0===o?void 0:o.contractDuration)&&(v.contractDuration=null===(i=null===(l=null==e?void 0:e.promotionInfo)||void 0===l?void 0:l[0])||void 0===i?void 0:i.contractDuration),(null===(d=null===(r=null==e?void 0:e.promotionInfo)||void 0===r?void 0:r[0])||void 0===d?void 0:d.id)&&(v.promoID=null===(c=null===(a=null==e?void 0:e.promotionInfo)||void 0===a?void 0:a[0])||void 0===c?void 0:c.id)})),(null===(i=null==e?void 0:e[0])||void 0===i?void 0:i.isBundle)||(v.contractDuration=null===(d=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.promotionInfo)||void 0===d?void 0:d[0].contractDuration,v.promoID=null===(u=null===(c=null===(a=null==e?void 0:e[0])||void 0===a?void 0:a.promotionInfo)||void 0===c?void 0:c[0])||void 0===u?void 0:u.id);let p=0;return null===(m=null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.prices)||void 0===m||m.map((e=>{var n,t;(null===(n=null==e?void 0:e.priceAlteration)||void 0===n?void 0:n.length)>0&&(null===(t=null==e?void 0:e.priceAlteration)||void 0===t||t.map((e=>{"INTERNET_FMC"==(null==e?void 0:e.priceCategory)?p+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(v.mob_fmc+=Number(null==e?void 0:e.value),v.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==v?void 0:v.contractDuration)||n||(v.contractDuration="12"),v.int_fmc=t?p:v.int_fmc,v})(pe,p),he=null===(y=null==f?void 0:f.getInstance())||void 0===y?void 0:y.getCartUrl(),[ge,be]=e.useState(!1);let ye;if(U){const e=null==U?void 0:U.code;ye=s&&(null===(E=null==m?void 0:m.eligibleBundle)||void 0===E?void 0:E.includes(e))}const Te=void 0!==typeof window&&document.getElementById("reusable-linetable");e.useEffect((()=>{var e,n;const t=null==pe?void 0:pe.filter((e=>e&&e.id===(null==U?void 0:U.code)));ie((e=>{let n=!1;return null==e||e.map((e=>{var t;null===(t=null==e?void 0:e.promotionInfo)||void 0===t||t.map((e=>{(null==e?void 0:e.hardwareGift)&&(n=!0)}))})),n})(p?t:null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.bundledOffers)),de((e=>{let n=!1;return null==e||e.map((e=>{var t;null===(t=null==e?void 0:e.promotionInfo)||void 0===t||t.map((e=>{(null==e?void 0:e.cashBack)&&(n=!0)}))})),n})(p?t:null===(n=null==t?void 0:t[0])||void 0===n?void 0:n.bundledOffers))}),[U,pe]),e.useEffect((()=>{var e,t,o;if(null==n?void 0:n.productStroyObj){const l=((e,n,t)=>{var o,l,i,r,d,a,c,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,P,C,S,V,N,I,O,L,D,A,B,R,z,F,$,M,j,G,U,W,q,X,H,K,J,Z,Q,ee,ne,te,oe,le,ie,re,de,ae,ce,ue,se,me,ve,pe,_e,he,fe,ge,be,xe,ye;const Ee={displayName:"",description:"",icon:"",code:"",productDetailsModal:[],pageType:"",highlightText:"",promoID:"",productConfig:[],entitlementConfig:[],benefitsSection:[],serviceOptions:{avalaible:!1,promotion:"",ids:new Set,product:"",radioValue:"",tvChannelName:"",poType:""},countryListUrl:"",promoObj:[],addSmartPhone:[],promoText:"",priceDisplayText:""},Te=n?null==e?void 0:e.productStroyObj.stroy:null==e?void 0:e.productStroyObj;if(Ee.displayName=null===(i=null===(l=null===(o=null==Te?void 0:Te.content)||void 0===o?void 0:o.body)||void 0===l?void 0:l[0])||void 0===i?void 0:i.displayName,Ee.code=null===(a=null===(d=null===(r=null==Te?void 0:Te.content)||void 0===r?void 0:r.body)||void 0===d?void 0:d[0])||void 0===a?void 0:a.code,Ee.highlightText=null==e?void 0:e.highlightText,Ee.promoText=null===(s=null===(u=null===(c=null==Te?void 0:Te.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.promoText,null==e?void 0:e.promStroyObj){const t={};Ee.promoID=null===(m=null==e?void 0:e.promStroyObj)||void 0===m?void 0:m.prom,Ee.serviceOptions.promotion=null===(v=null==e?void 0:e.promStroyObj)||void 0===v?void 0:v.prom;const o=null===(p=null==e?void 0:e.promStroyObj)||void 0===p?void 0:p.stroy,l=null==o?void 0:o.content;if(l&&(null==l?void 0:l.promoDescription)&&(null==l?void 0:l.promoDescription.length)>0)for(let o=0;o<l.promoDescription.length;o++){const i=l.promoDescription[o];if(e.promStroyObj.prom===i.parent_promo_id){t.promotion=null==i?void 0:i.parent_promo_id,t.description=null==i?void 0:i.description,t.isPricingPromo=!1,t.isGiftPromo=!1,t.isDefault=null===(_=null==e?void 0:e.promStroyObj)||void 0===_?void 0:_.isDefault,t.displayText=null==i?void 0:i.displayText,t.cashback=null==i?void 0:i.cashback,i.type.includes("pricing")?t.isPricingPromo=!0:i.type.includes("gift")&&(t.isGiftPromo=!0,t.giftConfig=null==i?void 0:i.giftConfig,t.giftConfigV2=null==i?void 0:i.giftConfigV2,t.parentPoType=n?"MOBILE":"HOME"),!(null==t?void 0:t.isPricingPromo)&&!(null==t?void 0:t.isGiftPromo)||(null===(h=null==e?void 0:e.products)||void 0===h?void 0:h.dontShowPromotion)||(Ee.priceDisplayText=null==i?void 0:i.displayText);break}}Ee.promoObj.push(t)}if(n){if(Ee.description=null===(H=null===(X=null===(q=null==Te?void 0:Te.content)||void 0===q?void 0:q.body)||void 0===X?void 0:X[0])||void 0===H?void 0:H.introText,Ee.productDetailsModal=null===(Z=null===(J=null===(K=null==Te?void 0:Te.content)||void 0===K?void 0:K.body)||void 0===J?void 0:J[0])||void 0===Z?void 0:Z.subscriptionDetailModal,Ee.icon=null===(te=null===(ne=null===(ee=null===(Q=null==Te?void 0:Te.content)||void 0===Q?void 0:Q.body)||void 0===ee?void 0:ee[0])||void 0===ne?void 0:ne.prodImage)||void 0===te?void 0:te.filename,Ee.pageType="MOBILE",Ee.countryListUrl={reference:null===(re=null===(ie=null===(le=null===(oe=null==Te?void 0:Te.content)||void 0===oe?void 0:oe.body)||void 0===le?void 0:le[0])||void 0===ie?void 0:ie.countryList)||void 0===re?void 0:re.cached_url},(null===(ce=null===(ae=null===(de=null==Te?void 0:Te.content.body)||void 0===de?void 0:de[0])||void 0===ae?void 0:ae.entitlementConfig)||void 0===ce?void 0:ce.length)>0){const e=[];null===(me=null===(se=null===(ue=null==Te?void 0:Te.content.body)||void 0===ue?void 0:ue[0])||void 0===se?void 0:se.entitlementConfig)||void 0===me||me.map((n=>{var t;const o={icon:null===(t=null==n?void 0:n.entitlementIcon)||void 0===t?void 0:t.filename,name:null==n?void 0:n.entitlementName,description:null==n?void 0:n.entitlementDescription,tooltip:null==n?void 0:n.tooltip,linkText:null==n?void 0:n.linkText,includeDescription:null==n?void 0:n.includeDescription};e.push(o)})),Ee.productConfig=e}if((null===(he=null===(_e=null===(pe=null===(ve=null==Te?void 0:Te.content)||void 0===ve?void 0:ve.body)||void 0===pe?void 0:pe[0])||void 0===_e?void 0:_e.extraOptions)||void 0===he?void 0:he.length)>0){const e=[];null===(xe=null===(be=null===(ge=null===(fe=null==Te?void 0:Te.content)||void 0===fe?void 0:fe.body)||void 0===ge?void 0:ge[0])||void 0===be?void 0:be.extraOptions)||void 0===xe||xe.map((n=>{var t;const o={icon:null===(t=null==n?void 0:n.entitlementIcon)||void 0===t?void 0:t.filename,id:"default",text:null==n?void 0:n.entitlementName,toolTip:null==n?void 0:n.tooltip,isMMC:null==n?void 0:n.isMMC};null==e||e.push(o)})),Ee.benefitsSection=e}(null===(ye=null==t?void 0:t.addSmartphone)||void 0===ye?void 0:ye.length)>0&&(Ee.addSmartPhone=null==t?void 0:t.addSmartphone)}else{const e=["NETFLIX","SPORTS"];if(Ee.description=null===(b=null===(g=null===(f=null==Te?void 0:Te.content)||void 0===f?void 0:f.body)||void 0===g?void 0:g[0])||void 0===b?void 0:b.description,Ee.productDetailsModal=null===(E=null===(y=null===(x=null==Te?void 0:Te.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===E?void 0:E.productDetailsModal,Ee.pageType="HOME",(null===(P=null===(k=null===(w=null===(T=null==Te?void 0:Te.content)||void 0===T?void 0:T.body)||void 0===w?void 0:w[0])||void 0===k?void 0:k.products)||void 0===P?void 0:P.length)>0){const n=Y(null===(V=null===(S=null===(C=null==Te?void 0:Te.content)||void 0===C?void 0:C.body)||void 0===S?void 0:S[0])||void 0===V?void 0:V.products);if((null==n?void 0:n.length)>0){const t=[],o=[];null==n||n.map((n=>{var l,i,r,d;const a=null===(l=null==n?void 0:n.bundleConfig)||void 0===l?void 0:l[0],c={icon:null===(i=null==a?void 0:a.bundleIcon)||void 0===i?void 0:i.filename,name:(null==a?void 0:a.bundleDisplayName)?null==a?void 0:a.bundleDisplayName:n.displayName,description:(null==a?void 0:a.description)?null==a?void 0:a.description:n.description,tooltip:null==n?void 0:n.toolTipText,linkText:n.linkText,includeDescription:null==a?void 0:a.includeDescription,includeEntitlement:null==a?void 0:a.includeEntitlement,poType:null==n?void 0:n.poType};(null==a?void 0:a.includeEntitlement)&&(null===(r=null==n?void 0:n.entitlementConfig)||void 0===r?void 0:r.length)>0&&(null===(d=null==n?void 0:n.entitlementConfig)||void 0===d||d.map((e=>{var n;null===(n=null==e?void 0:e.entitlementValues)||void 0===n||n.map((e=>{var n;const t={icon:null===(n=null==e?void 0:e.icon)||void 0===n?void 0:n.filename,toolTip:null==e?void 0:e.toolTipText,entitlement:null==e?void 0:e.value,disabled:null==e?void 0:e.disabled};null==o||o.push(t)}))}))),null==t||t.push(c),"TV"===(null==n?void 0:n.poType)&&e.includes(null==n?void 0:n.tvGroup)&&(Ee.serviceOptions.poType="TV",Ee.serviceOptions.radioValue=null==n?void 0:n.code,"NETFLIX"==(null==n?void 0:n.tvGroup)?Ee.serviceOptions.tvChannelName="Netflix":"SPORTS"==(null==n?void 0:n.tvGroup)?Ee.serviceOptions.tvChannelName=(null==n?void 0:n.displayName)+" "+(null==n?void 0:n.tvLang):Ee.serviceOptions.tvChannelName="TV Box",Ee.serviceOptions.avalaible=!0,Ee.serviceOptions.product=null==n?void 0:n.code,Ee.serviceOptions.ids.add(null==n?void 0:n.tvGroupProdPath))})),Ee.productConfig=t,Ee.entitlementConfig=o}}if((null===(L=null===(O=null===(I=null===(N=null==Te?void 0:Te.content)||void 0===N?void 0:N.body)||void 0===I?void 0:I[0])||void 0===O?void 0:O.benefitsSection)||void 0===L?void 0:L.length)>0){const e=[];null===(R=null===(B=null===(A=null===(D=null==Te?void 0:Te.content)||void 0===D?void 0:D.body)||void 0===A?void 0:A[0])||void 0===B?void 0:B.benefitsSection)||void 0===R||R.map((n=>{var t;const o={icon:null===(t=null==n?void 0:n.icon)||void 0===t?void 0:t.filename,id:null==n?void 0:n.id,text:null==n?void 0:n.text,toolTip:null==n?void 0:n.tooltip};null==e||e.push(o)})),Ee.benefitsSection=e}(null===(M=null===($=null===(F=null===(z=null==Te?void 0:Te.content)||void 0===z?void 0:z.body)||void 0===F?void 0:F[0])||void 0===$?void 0:$.addnEntitlements)||void 0===M?void 0:M.length)>0&&(null===(W=null===(U=null===(G=null===(j=null==Te?void 0:Te.content)||void 0===j?void 0:j.body)||void 0===G?void 0:G[0])||void 0===U?void 0:U.addnEntitlements)||void 0===W||W.map((e=>{var n,t,o,l;const i={icon:null===(n=null==e?void 0:e.icon)||void 0===n?void 0:n.filename,name:null==e?void 0:e.text,description:null==e?void 0:e.description,tooltip:null==e?void 0:e.toolTip,linkText:null==e?void 0:e.linkText,includeDescription:null!==(t=null==e?void 0:e.includeDescription)&&void 0!==t&&t,includeEntitlement:null!==(o=null==e?void 0:e.includeEntitlement)&&void 0!==o&&o};(null===(l=Ee.productConfig)||void 0===l?void 0:l.length)>0?Ee.productConfig.push(i):Ee.productConfig=i})))}return Ee})(n,p,h);"TV"===(null===(e=null==l?void 0:l.serviceOptions)||void 0===e?void 0:e.poType)&&(ne(null===(t=null==l?void 0:l.serviceOptions)||void 0===t?void 0:t.radioValue),Z(null===(o=null==l?void 0:l.serviceOptions)||void 0===o?void 0:o.tvChannelName)),q(l)}}),[n]),e.useEffect((()=>(setTimeout((()=>{ke()}),100),null===window||void 0===window||window.addEventListener("load",ke),null===window||void 0===window||window.addEventListener("resize",ke),()=>{window.removeEventListener("resize",ke),window.removeEventListener("load",ke)})),[U,_e]);const we=()=>{var e;(null===(e=null==U?void 0:U.serviceOptions)||void 0===e?void 0:e.avalaible)&&oe(!0)},ke=()=>{P(`headingV3${d}`,t),P(`descriptionV3${d}`,t),P(`titleV3${d}`,t),P(`detailsectionv3${d}`,t),P(`product-configv3${d}`,t),P(`gift-section${d}`,t),P(`cashback-section${d}`,t),P(`benefits-section${d}`,t),P(`order-section${d}`,t),P(`price-section${d}`,t),P(`benefits-price-section${d}`,t),P(`contract-section${d}`,t)};let Pe=void 0!==typeof window&&c.get("sunriseAuth");Pe=Pe&&JSON.parse(Pe);const Ce=()=>{var e;if(!(!(null==b?void 0:b.enableExistingCustomer)||null!=Pe)&&c.set("one-commerce-login","true",{path:"/"}),be(!1),"MOBILE"===(null==U?void 0:U.pageType))me(!0),0!==(null===(e=Object.keys(i))||void 0===e?void 0:e.length)&&Q(null==U?void 0:U.code,"",(null==_e?void 0:_e.promoID)?null==_e?void 0:_e.promoID:F,he,"mobile",ae).then((e=>{c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",null==U?void 0:U.code,{path:"/"}),Oe(fe,pe,"",Ee),window.location.href=v})).catch((e=>{console.log(e),me(!1)})).finally((()=>{me(!1)}));else{const e=c.get("one-commerce-linecheckcorrelationid"),n=null==U?void 0:U.code;m&&s&&e?(me(!0),0!==pe.length&&Q(pe,ee,(null==_e?void 0:_e.promoID)?null==_e?void 0:_e.promoID:z,he,"fixnet",ae).then((e=>{c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",n,{path:"/"}),c.remove("landline"),Oe(fe,pe,"",Ee),window.location.href=v})).catch((e=>{console.log(e)})).finally((()=>{me(!1)}))):a()}},Se=0===(null===(T=Object.keys(U))||void 0===T?void 0:T.length),Ve=()=>{var e,n,t,o;const l=(null==_e?void 0:_e.promoID)?null==_e?void 0:_e.promoID:F;let r="";r=`?componentCode=&productType=subscription&segmentCode=RC&prefPromo=${null!=l?l:""}&productCode=${null!==(e=null==U?void 0:U.code)&&void 0!==e?e:""}`,window.location.href=(null===(o=null===(t=null===(n=null==U?void 0:U.addSmartPhone)||void 0===n?void 0:n[0])||void 0===t?void 0:t.buttonLink)||void 0===o?void 0:o.cached_url)+r,Ne(U,l,i),vn(xe,"combine_with_device",Ie(pe,"",Ee))},Ne=(e,n,t)=>{var o,l,i,d,a,c,u,s,m,v,p,_,h,f,g,b;const x=null===(o=null==t?void 0:t[r])||void 0===o?void 0:o.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.code))),y=null!==(a=null===(d=null===(i=null===(l=null==x?void 0:x[0])||void 0===l?void 0:l.prices)||void 0===i?void 0:i[0])||void 0===d?void 0:d.value)&&void 0!==a?a:0,E=null!==(m=null===(s=null===(u=null===(c=null==x?void 0:x[0])||void 0===c?void 0:c.derivedPrice)||void 0===u?void 0:u[0])||void 0===s?void 0:s.value)&&void 0!==m?m:0,T=null!==(_=null===(p=null===(v=null==e?void 0:e.promotionInfo)||void 0===v?void 0:v[0])||void 0===p?void 0:p.contractDuration)&&void 0!==_?_:0,w=null!==(g=null===(f=null===(h=null==e?void 0:e.promotionInfo)||void 0===h?void 0:h[0])||void 0===f?void 0:f.campaignDuration)&&void 0!==g?g:0,k={mobileSubscription:null!==(b=null==e?void 0:e.code)&&void 0!==b?b:"",mobileSubscriptionPrice:E>0?E:y,mobileSubscriptionPromo:n,subGroup:"MOBILE",duration:Number(w>0?w:T),basePrice:y,withoutPromo:!1};void 0!==typeof window&&sessionStorage.setItem("one-ecommerce-mobileSummary",JSON.stringify(k))},Le=e=>{const n=ae.findIndex((n=>e.giftGroupId===n.giftGroupId)),t=ae;-1===n?t.push(e):t[n]=e,ce([...t])};return e.createElement(e.Fragment,null,se&&Te&&_.createPortal(e.createElement(H,{keyParams:"loading"}),Te),Se&&e.createElement("div",{className:"w-75 pb-2"},e.createElement(Fe,null)),!Se&&m&&n&&s&&!p&&e.createElement("div",{className:De.selected},e.createElement("span",{style:{paddingBottom:"10px"}},ye?e.createElement("span",{className:De.activeicon},e.createElement("img",{src:`${ue}/icons/lineCheck-success.svg`,alt:"",width:24,height:24,className:De.activeicon}),e.createElement("span",null,null==u?void 0:u.subscriptionAvalTxt)):e.createElement("span",{className:De.inactiveicon},e.createElement("img",{src:`${ue}/icons/cross_disabled.svg`,alt:"",width:24,height:24,className:De.inactiveicon}),e.createElement("span",null,null==u?void 0:u.notSubscriptionTxt)))),e.createElement("div",{className:`${p||!1!==ye?"":De.overlay}`,style:{flexDirection:"column"}},e.createElement("div",{className:`${De.bundleproductcard} ${De.productcontainer} ${(null===(w=null==U?void 0:U.highlightText)||void 0===w?void 0:w.length)>0&&De.highlightBorder}`},(null===(k=null==U?void 0:U.highlightText)||void 0===k?void 0:k.length)>0&&e.createElement("div",{className:`${De.highlightText}`},null==U?void 0:U.highlightText),(null===(C=null==U?void 0:U.priceDisplayText)||void 0===C?void 0:C.length)>0&&e.createElement("div",{className:`${De.promocontainer}`},null==U?void 0:U.priceDisplayText),e.createElement("div",null,e.createElement("div",{className:`${De.detailsection}`,id:`detailsectionv3${d}${l}`},e.createElement("div",{className:`${De.headersection}`,id:`headingV3${d}${l}`},e.createElement("div",{className:`${De.titlesection}`},e.createElement("div",{className:`${De.productheader}`,id:`titleV3${d}${l}`},null==U?void 0:U.displayName),e.createElement("div",null,(null==U?void 0:U.icon)&&e.createElement("img",{className:`${De.imagecontainer}`,src:null==U?void 0:U.icon,height:15,width:20}))),e.createElement("div",{className:`${De.productdescription}`,id:`descriptionV3${d}${l}`},e.createElement(W,{content:null==U?void 0:U.description}))),e.createElement("div",{className:`${De.productconfig}`,id:`product-configv3${d}${l}`},Se?e.createElement(e.Fragment,null,e.createElement("div",{className:De.space}),e.createElement(Fe,{stylename:De.skeletontittle,count:1}),e.createElement(Fe,{stylename:De.skeletonline,count:5}),e.createElement("div",{className:De.space}),e.createElement(Fe,{stylename:De.skeletontittle,count:1}),e.createElement(Fe,{stylename:De.skeletonline,count:5})):e.createElement("div",{style:{paddingTop:"8px"}},(null==U?void 0:U.productConfig)&&(null===(S=null==U?void 0:U.productConfig)||void 0===S?void 0:S.map(((n,l)=>e.createElement(Re,{content:Object.assign(Object.assign({},n),{tvChannelName:J,entertainOption:X}),entitlementConfig:null==U?void 0:U.entitlementConfig,indexKey:l,listlength:t,showModalPopup:we,sbStaticConstants:u,tabIndex:d,countryList:null==U?void 0:U.countryListUrl,metadata:o}))))))),e.createElement("div",{className:`${De.detailsection}`,id:`benefits-price-section${d}${l}`},e.createElement("div",{className:`${De.giftsection}`,id:`gift-section${d}${l}`},e.createElement("div",null,null===(V=null==U?void 0:U.promoObj)||void 0===V?void 0:V.map(((n,t)=>{var o,i,r;return e.createElement("div",{key:t},e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&le&&(null===(o=null==n?void 0:n.giftConfig)||void 0===o?void 0:o.map(((n,t)=>e.createElement(sn,{content:n,key:t}))))),e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&le&&(null===(i=null==n?void 0:n.giftConfigV2)||void 0===i?void 0:i.map(((t,o)=>e.createElement(mn,{content:t,key:o,selectedGiftItem:Le,parentPoType:null==n?void 0:n.parentPoType}))))),e.createElement("div",{className:`${De.giftsection}`,id:`cashback-section${d}${l}`},(null==n?void 0:n.cashback)&&re&&(null===(r=null==n?void 0:n.cashback)||void 0===r?void 0:r.map(((n,t)=>e.createElement(yn,{content:n,key:t}))))))})))),e.createElement("div",{className:`${De.benefitssection}`,id:`benefits-section${d}${l}`},(null===(N=null==U?void 0:U.benefitsSection)||void 0===N?void 0:N.length)>0&&e.createElement(cn,{content:null==U?void 0:U.benefitsSection,priceCollection:_e,sbStaticConstants:u})),e.createElement("div",{className:`${De.ordersection} `,id:`order-section${d}${l}`},""===(null==_e?void 0:_e.base)?e.createElement("div",null,e.createElement(Fe,{stylename:De.skeletontittle})):e.createElement("div",{className:`${De.flexgrid} ${De.pricesection} `,id:`price-section${d}${l}`},e.createElement($e,{content:U,priceCollection:_e,toggleSwitch:!1,sbStaticConstants:u}))," ",e.createElement("div",{className:`${(null==h?void 0:h.swapButton)&&De.swapButton}`},e.createElement("div",{style:{padding:"16px 0"}},e.createElement(Ke,{content:n,sbStaticConstants:u,isAvailable:ye,showPrice:_e,isSkeletonLoading:Se,isMobileFlow:p,createCartCall:Ce,address:s,updatedContent:h})),e.createElement("div",{className:De.productcontractduration,id:`contract-section${d}${l}`},(null==_e?void 0:_e.contractDuration)?O(null===(I=null==u?void 0:u.minContractDuration)||void 0===I?void 0:I.substring(1),[null==_e?void 0:_e.contractDuration]):null==u?void 0:u.simo_no_contract_term),(null===(L=null==U?void 0:U.addSmartPhone)||void 0===L?void 0:L.length)>0&&e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==h?void 0:h.swapButton)&&p?(null==h?void 0:h.ctaLabel)&&e.createElement("div",{style:{padding:"16px 0"}},e.createElement("button",{className:"primarybutton",onClick:()=>Ve()},e.createElement("span",{className:De.buttontext},null==h?void 0:h.ctaLabel))):e.createElement("span",{className:`${De.productdetailslink} ${De.addsmartphone}`},e.createElement("div",null,e.createElement("span",null,(null===(B=null===(A=null===(D=null==U?void 0:U.addSmartPhone)||void 0===D?void 0:D[0])||void 0===A?void 0:A.buttonIcon)||void 0===B?void 0:B.filename)&&e.createElement("img",{src:null===(M=null===($=null===(R=null==U?void 0:U.addSmartPhone)||void 0===R?void 0:R[0])||void 0===$?void 0:$.buttonIcon)||void 0===M?void 0:M.filename,width:12,height:18,alt:"icon"})),e.createElement("span",null,e.createElement("a",{onClick:()=>Ve()},null===(G=null===(j=null==U?void 0:U.addSmartPhone)||void 0===j?void 0:j[0])||void 0===G?void 0:G.buttonLabel)))))),e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==U?void 0:U.productDetailsModal)&&e.createElement("span",{className:De.productdetailslink,onClick:()=>{be(!ge),vn(xe,"download_product_details",Ie(pe,"",Ee))}},null==u?void 0:u.product_details_link)),ge&&e.createElement(e.Fragment,null,e.createElement(Ye,{products:null==U?void 0:U.productDetailsModal,showProductDetail:ge,setShowProductDetail:be,content:n,priceCollection:_e,addToCart:Object.assign(Object.assign({},n),{isSkeletonLoading:Se,isAvailable:ye,isMobileFlow:p,address:s}),sbStaticConstants:u,createCartCall:Ce,contractDuration:null==_e?void 0:_e.contractDuration})))),te&&(Se?e.createElement(Fe,null):e.createElement(an,{key:null==U?void 0:U.code,content:null==U?void 0:U.serviceOptions,setShowModal:oe,uniqueId:r,setEntertainment:K,setTvChannelName:Z,code:null==U?void 0:U.code,showModal:te,radioValue:ee,setRadioValue:ne,metadata:o}))))))},Tn=({content:t,metadata:o,activeIndex:l,lineCheckCallBack:i,sbStaticConstants:r,address:d,eligibleBundle:a,setGenericErrorModalDetails:u,loginSuccess:s})=>{var m,v,p,_,h;const g=null==o?void 0:o.lang,[b,x]=e.useState(),y=null==t?void 0:t._uid,[E,T]=e.useState([]),w=[],k=new Map,C={language:g,type:"B2C"},S={},V=N(),I=null===(m=null==f?void 0:f.getInstance())||void 0===m?void 0:m.getSBUrl(),O=null===(v=null==f?void 0:f.getInstance())||void 0===v?void 0:v.getBaseUrl(),L=null===(_=null===(p=null==t?void 0:t.lineTableContent)||void 0===p?void 0:p.summaryPageUri)||void 0===_?void 0:_.cached_url,[D,A]=e.useState(!1);let B=void 0!==typeof window&&c.get("sunriseAuth");B=B&&JSON.parse(B);const R=()=>{var e,n,o,l,i;const r=[],d=null===(e=null==t?void 0:t.lineTableContent)||void 0===e?void 0:e.enableExistingCustomer,a=null===(n=null==t?void 0:t.lineTableContent)||void 0===n?void 0:n.subscriptionType;if(((e,n)=>{n.map((n=>{var t,o,l,i,r;const d={id:"",promoIds:[]},a=null===(t=null==n?void 0:n.products)||void 0===t?void 0:t.home_parent_promo_id,c=null===(o=null==n?void 0:n.products)||void 0===o?void 0:o.mob_parent_promo_id;d.id=null===(l=null==n?void 0:n.products)||void 0===l?void 0:l.product_id,a&&!(null===(i=null==d?void 0:d.promoIds)||void 0===i?void 0:i.includes(a))&&d.promoIds.push(a),c&&!(null===(r=null==d?void 0:d.promoIds)||void 0===r?void 0:r.includes(c))&&d.promoIds.push(c),e.push(d)}))})(r,(null==t?void 0:t.productList)||[]),((null==t?void 0:t.tabIndex)===(null==t?void 0:t.activeIndex)&&!(null==b?void 0:b[y])||(null==t?void 0:t.tabIndex)===(null==t?void 0:t.activeIndex)&&s)&&(null==t?void 0:t.dynamicProductOffer))try{null===(o=ee(r,null==t?void 0:t._uid,O,d,a))||void 0===o||o.then((e=>{x(e),u({showPopup:!1})})).catch((e=>{var n,o;console.log("error---\x3e",e),u({showPopup:!0,content:null===(o=null===(n=null==t?void 0:t.lineTableContent)||void 0===n?void 0:n.telesalesBlok)||void 0===o?void 0:o[0]})}))}catch(e){console.log("error---\x3e",e),u({showPopup:!0,content:null===(i=null===(l=null==t?void 0:t.lineTableContent)||void 0===l?void 0:l.telesalesBlok)||void 0===i?void 0:i[0]})}};e.useEffect((()=>{l!=(null==t?void 0:t.tabIndex)&&l||R()}),[null==t?void 0:t.activeIndex]),e.useEffect((()=>{if(((null==t?void 0:t.productList)||[]).forEach((e=>{var n,o,l,i,r,d,a,c,u;k.get(null===(n=null==e?void 0:e.products)||void 0===n?void 0:n.product_story_uuid)||k.set(null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.product_story_uuid,{k:0,prod_id:null==e?void 0:e.products.product_id,showPromotion:null===(l=null==e?void 0:e.products)||void 0===l?void 0:l.dontShowPromotion}),k.get(null===(i=null==e?void 0:e.products)||void 0===i?void 0:i.home_promo_story_uuid)||k.set(null===(r=null==e?void 0:e.products)||void 0===r?void 0:r.home_promo_story_uuid,{k:0}),"4P"!==(null==t?void 0:t.pageType)&&"MOBILE"!==(null==t?void 0:t.pageType)||!(null===(d=null==e?void 0:e.products)||void 0===d?void 0:d.mob_promo_story_uuid)||""===(null===(a=null==e?void 0:e.products)||void 0===a?void 0:a.mob_promo_story_uuid)||(null==k?void 0:k.has(null===(c=null==e?void 0:e.products)||void 0===c?void 0:c.mob_promo_story_uuid))||null==k||k.set(null===(u=null==e?void 0:e.products)||void 0===u?void 0:u.mob_promo_story_uuid,{k:0}),w.push(e)})),"MOBILE"===(null==t?void 0:t.pageType)&&A(!0),k.size>0){let e="";for(const[n,t]of k.entries())0==t.k&&(e=e+n+",",t.k=1);const o=I+`rest/cms/stories/?by_uuids=${e}`;n.CMSStoryblokServiceV2.get(o,C).then((e=>{var n,t;null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.stories)||void 0===t||t.map((e=>{k.get(null==e?void 0:e.uuid).stroy=e}))})).catch((e=>{console.log(e)})).finally((()=>{const e=[];if(w.length>0)if("MOBILE"!==(null==t?void 0:t.pageType)){const t=new Map;if(null==w||w.map((e=>{var n,o,l,i,r,d;const a=null===(o=k.get(null===(n=null==e?void 0:e.products)||void 0===n?void 0:n.product_story_uuid))||void 0===o?void 0:o.stroy;if((null==a?void 0:a.content)&&(null===(l=null==a?void 0:a.content)||void 0===l?void 0:l.body)&&(null===(i=null==a?void 0:a.content)||void 0===i?void 0:i.body[0])){const e=null===(d=null===(r=null==a?void 0:a.content)||void 0===r?void 0:r.body[0])||void 0===d?void 0:d.products;null==e||e.map((e=>{t.get(null==e?void 0:e.listProduct)||t.set(null==e?void 0:e.listProduct,{k:0,prod_id:null==e?void 0:e.listProduct,order:null==e?void 0:e.order})}))}})),t.size>0){let o="";for(const[e,n]of t.entries())0==n.k&&(o=o+e+",",n.k=1);const l=I+`rest/cms/stories/?by_uuids=${o}`;n.CMSStoryblokServiceV2.get(l,C).then((e=>{var n;null===(n=e.data.stories)||void 0===n||n.map((e=>{var n,o;const l=t.get(e.uuid);l.storyBody=(null===(o=null===(n=null==e?void 0:e.content)||void 0===n?void 0:n.body)||void 0===o?void 0:o[0])||null,l.storyBody.default_full_slug=null==e?void 0:e.default_full_slug,l.storyBody.slug=null==e?void 0:e.slug}))})).catch((e=>{console.log(e)})).finally((()=>{null==w||w.map((n=>{var o,l,i,r,d,a,c,u;const s=null===(l=k.get(null===(o=null==n?void 0:n.products)||void 0===o?void 0:o.product_story_uuid))||void 0===l?void 0:l.stroy;if((null==s?void 0:s.content)&&(null===(i=null==s?void 0:s.content)||void 0===i?void 0:i.body)&&(null===(r=null==s?void 0:s.content)||void 0===r?void 0:r.body[0])){const e=null===(d=null==s?void 0:s.content)||void 0===d?void 0:d.body[0],n=[],o=null==e?void 0:e.products;null==o||o.map((e=>{var o;const l=null===(o=t.get(null==e?void 0:e.listProduct))||void 0===o?void 0:o.storyBody;if(n.push(Object.assign({},e,{cProd:l})),l){const e=(null==l?void 0:l.poType)?null==l?void 0:l.poType:null==l?void 0:l.subGroup;if(!S[e]){let n=null==l?void 0:l.slug;"TV"!==e||"NETFLIX"!==(null==l?void 0:l.tvGroup)&&"PREMIUM"!==(null==l?void 0:l.tvGroup)&&"SPORTS"!==(null==l?void 0:l.tvGroup)?"TV"!==e||"TVBOX"!==(null==l?void 0:l.tvGroup)&&"TVAPP"!==(null==l?void 0:l.tvGroup)||(n="tvboxorapp/"+n):n="entertainment/"+n;const t=null==l?void 0:l.default_full_slug.replace(n,"");S[e]={slug:t}}}})),e.products=n}let m=Object.assign({},k.get(null===(a=null==n?void 0:n.products)||void 0===a?void 0:a.home_promo_story_uuid));m.prom=null===(c=null==n?void 0:n.products)||void 0===c?void 0:c.home_parent_promo_id,m.isDefault=null===(u=null==n?void 0:n.products)||void 0===u?void 0:u.home_promo_default;let v=Object.assign({},n,{productStroyObj:s,promStroyObj:m,showPromotion:null==n?void 0:n.dontShowPromotion});e.push(v)}));try{localStorage.setItem("slugDetails",JSON.stringify(S))}catch(e){}T(e)}))}}else(null==w?void 0:w.length)>0&&(null==w||w.map(((n,o)=>{var l,i,r,d,a,c,u,s,m,v;let p;"MOBILE"===(null==t?void 0:t.pageType)&&(p=null==Object?void 0:Object.assign({},null==k?void 0:k.get(null===(l=null==n?void 0:n.products)||void 0===l?void 0:l.mob_promo_story_uuid)),p.prom=null===(i=null==n?void 0:n.products)||void 0===i?void 0:i.mob_parent_promo_id,p.isDefault=null===(r=null==n?void 0:n.products)||void 0===r?void 0:r.mob_promo_default);const _=null==Object?void 0:Object.assign({},n,{productStroyObj:null==k?void 0:k.get(null===(d=null==n?void 0:n.products)||void 0===d?void 0:d.product_story_uuid),promStroyObj:p});if(0==o){const e=null===(a=null==_?void 0:_.productStroyObj)||void 0===a?void 0:a.stroy;if(e){const n=null==e?void 0:e.content,t=(null===(c=null==n?void 0:n.body[0])||void 0===c?void 0:c.poType)?null===(u=null==n?void 0:n.body[0])||void 0===u?void 0:u.poType:null===(s=null==n?void 0:n.body[0])||void 0===s?void 0:s.subGroup;if(!S[t]){const n=null===(m=null==e?void 0:e.default_full_slug)||void 0===m?void 0:m.replace(null==e?void 0:e.slug,"");S[t]={slug:n}}}}_.displayConfig=null!==(v=null==t?void 0:t.displayConfig)&&void 0!==v?v:[],null==e||e.push(_)})),T(e))}))}}),[g]),e.useEffect((()=>(setTimeout((()=>{z()}),100),null===window||void 0===window||window.addEventListener("resize",z),null===window||void 0===window||window.addEventListener("load",z),()=>{window.removeEventListener("resize",z),window.removeEventListener("load",z)})),[E]);const z=()=>{var e;P(`productCardV3${null==t?void 0:t.activeIndex}`,null===(e=null==t?void 0:t.productList)||void 0===e?void 0:e.length)};return e.useEffect((()=>{var e;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&Oe("view",b[y],"",Ee)}),[b]),e.useEffect((()=>{var e;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&!D&&(null==a?void 0:a.eligibleBundle)&&Oe("available",b[y],"",Ee,null==a?void 0:a.eligibleBundle)}),[a,b]),e.useEffect((()=>{(null==B?void 0:B.siteId)&&s&&R()}),[B,s]),e.createElement("div",null,e.createElement("div",{className:De.titlecontainer},(null==t?void 0:t.title)&&e.createElement("div",{className:De.title},null==t?void 0:t.title),(null==t?void 0:t.subTitle)&&e.createElement("div",{className:De.description},null==t?void 0:t.subTitle)),e.createElement("div",{className:"linetableV3"},V&&e.createElement(Ae,{carouselIndex:null==t?void 0:t.activeIndex,key:null==t?void 0:t.activeIndex,arrow:null===(h=null==t?void 0:t.lineTableContent)||void 0===h?void 0:h.enableMobileArrows},((null==E?void 0:E.length)&&E||new Array((null==E?void 0:E.length)||3).fill(1)).map(((n,l)=>{var c;return e.createElement("div",{key:l,id:`productCardV3${null==t?void 0:t.activeIndex}`,style:{textAlign:"center"}},e.createElement(En,{content:n,updatedContent:t,key:l,indexKey:l,lineTableContent:null==t?void 0:t.lineTableContent,metadata:o,productSection:l,cards:null===(c=null==t?void 0:t.productList)||void 0===c?void 0:c.length,tabIndex:null==t?void 0:t.tabIndex,offeringData:b,uniqueId:y,lineCheckCallBack:i,sbStaticConstants:r,address:d,eligibleBundle:a,summaryUrl:L,isMobileFlow:D}))})))))};var wn={clockwise:"StickyProductAnchor-module_clockwise__cmjEp",counterclockwise:"StickyProductAnchor-module_counterclockwise__2qVj1",offsetClass:"StickyProductAnchor-module_offsetClass__oPIod",offsetClass2:"StickyProductAnchor-module_offsetClass2__kkZCK",nonOffsetClass:"StickyProductAnchor-module_nonOffsetClass__PDwhG",falconStyle:"StickyProductAnchor-module_falconStyle__Y8I-1",noFalconStyle:"StickyProductAnchor-module_noFalconStyle__j6yBe",noFalconStyle2:"StickyProductAnchor-module_noFalconStyle2__gHBBn",stickyAnchorContainer:"StickyProductAnchor-module_stickyAnchorContainer__I9khe",productTitle:"StickyProductAnchor-module_productTitle__0QC0i",priceSection:"StickyProductAnchor-module_priceSection__Edxyi",priceDuration:"StickyProductAnchor-module_priceDuration__KIRL5",contentWrapper:"StickyProductAnchor-module_contentWrapper__dilZl",benefitsContainer:"StickyProductAnchor-module_benefitsContainer__3guW-",benefitsContainer2:"StickyProductAnchor-module_benefitsContainer2__Kg8ZS",benefits:"StickyProductAnchor-module_benefits__RQU5F",buyNowButton:"StickyProductAnchor-module_buyNowButton__uPigF",subcontain:"StickyProductAnchor-module_subcontain__H0Om-",arrowIcon:"StickyProductAnchor-module_arrowIcon__ZlsgK",productContainer:"StickyProductAnchor-module_productContainer__UAjgq"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.StickyProductAnchor-module_clockwise__cmjEp {\n transform: rotate(180deg);\n transition: transform 0.5s linear;\n}\n\n.StickyProductAnchor-module_counterclockwise__2qVj1 {\n transform: rotate(0deg);\n transition: transform 0.5s linear;\n}\n\n.StickyProductAnchor-module_offsetClass__oPIod {\n top: 10px;\n z-index: 1;\n width: 100%;\n}\n\n.StickyProductAnchor-module_offsetClass2__kkZCK {\n top: 10px;\n z-index: 1;\n width: 100%;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_offsetClass2__kkZCK {\n top: 0px;\n }\n}\n.StickyProductAnchor-module_nonOffsetClass__PDwhG {\n visibility: hidden;\n position: absolute;\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .StickyProductAnchor-module_offsetClass__oPIod {\n top: 10px;\n z-index: 1;\n width: 100%;\n }\n}\n@media (min-width: 1024px) {\n .StickyProductAnchor-module_offsetClass__oPIod {\n top: 85px;\n }\n .StickyProductAnchor-module_falconStyle__Y8I-1 {\n top: 38px !important;\n }\n .StickyProductAnchor-module_noFalconStyle__j6yBe {\n top: 85px !important;\n }\n .StickyProductAnchor-module_noFalconStyle2__gHBBn {\n top: 85px !important;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe {\n background-color: #e6e3df;\n padding: 2px 0px;\n box-shadow: 1px -1px 4px rgba(87, 84, 82, 0.2);\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe {\n padding: 5px 0px;\n background-color: #f7f6f5;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe {\n background-color: #f7f6f5;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i {\n font-size: 18px;\n line-height: 24px;\n font-weight: 700;\n display: flex;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i {\n font-size: 14px;\n line-height: 20px;\n }\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i .StickyProductAnchor-module_priceSection__Edxyi {\n font-size: 12px;\n line-height: 20px;\n }\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_productTitle__0QC0i .StickyProductAnchor-module_priceSection__Edxyi .StickyProductAnchor-module_priceDuration__KIRL5 {\n font-weight: 400;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl {\n display: flex;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl {\n align-items: center;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW-, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS {\n margin-right: 24px;\n display: flex;\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW-, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS {\n margin-left: 10px;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW- .StickyProductAnchor-module_benefits__RQU5F, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_benefits__RQU5F {\n margin-right: 18px;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer__3guW- .StickyProductAnchor-module_benefits__RQU5F, .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_benefits__RQU5F {\n margin: 20px;\n }\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_priceSection__Edxyi {\n font-weight: 700;\n margin-right: 16px;\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_priceSection__Edxyi .StickyProductAnchor-module_priceDuration__KIRL5 {\n font-weight: 400;\n}\n.StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_buyNowButton__uPigF {\n padding: 8px 24px;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 25px;\n border: none;\n font-size: 14px;\n line-height: 20px;\n font-weight: 700;\n}\n@media (max-width: 1023px) {\n .StickyProductAnchor-module_stickyAnchorContainer__I9khe .StickyProductAnchor-module_contentWrapper__dilZl .StickyProductAnchor-module_buyNowButton__uPigF {\n height: 36px;\n }\n}\n\n.StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_subcontain__H0Om- {\n margin: 0px 80px 20px;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .StickyProductAnchor-module_benefitsContainer2__Kg8ZS {\n box-shadow: 1px -1px 4px rgba(87, 84, 82, 0.2);\n }\n .StickyProductAnchor-module_benefitsContainer2__Kg8ZS .StickyProductAnchor-module_subcontain__H0Om- {\n margin: 0px 57px 20px;\n cursor: pointer;\n }\n}\n\n.StickyProductAnchor-module_arrowIcon__ZlsgK {\n margin-right: 16px;\n}\n\n.StickyProductAnchor-module_productContainer__UAjgq {\n display: flex;\n justify-content: space-between;\n margin: 4px 0px;\n}");exports.AssetPathPropConfig=g,exports.Button=({type:n,text:t,onClick:o,content:l})=>e.createElement("button",{type:"button",className:`button Button-${null==l?void 0:l.type}`,onClick:o},null==l?void 0:l.text),exports.Card=({content:n,updatedContent:t,indexKey:o,listLength:l,addToCart:i,metadata:r,modalTriggered:d,showPrice:a})=>{var c,u,s,m,v,p,_,h,f,g,b,x,y,E,T,w,k,C,S,V,N,I,O,L,D,A,B,R,z,F,$,M,j,G,U,q,X,H,K,Y,J,Z,Q,ee,ne,le,ie,re,de,ae,me,ve,pe,_e,he;const fe=Object.assign({},null!==(s=null===(u=null===(c=null==n?void 0:n.testProductReference)||void 0===c?void 0:c[0])||void 0===u?void 0:u.reference)&&void 0!==s?s:null==n?void 0:n.reference),ge={listLength:l,indexKey:o,arrowUpIcon:null===(_=null===(p=null===(v=null===(m=null==fe?void 0:fe.content)||void 0===m?void 0:m.body)||void 0===v?void 0:v[0])||void 0===p?void 0:p.arrowUp)||void 0===_?void 0:_.filename,arrowDownIcon:null===(b=null===(g=null===(f=null===(h=null==fe?void 0:fe.content)||void 0===h?void 0:h.body)||void 0===f?void 0:f[0])||void 0===g?void 0:g.arrowDown)||void 0===b?void 0:b.filename,arrowLeftRed:null===(T=null===(E=null===(y=null===(x=null==fe?void 0:fe.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===E?void 0:E.arrowLeftRed)||void 0===T?void 0:T.filename},be=null!==(w=null==t?void 0:t.enableNewAddToCart)&&void 0!==w&&w,xe=e.useRef(null),ye=e.useRef(null),Ee=e.useMemo((()=>ge),[ge]),Te=()=>{P("linetable-card-title",l),P("linetable-card-tooltiptxt",l),P("linetable-card-bottomConatiner",l)};return e.useEffect((()=>{setTimeout((()=>{Te()}),100),null===window||void 0===window||window.addEventListener("resize",Te)}),[n]),e.createElement(te.Provider,{value:Ee},e.createElement("div",{className:"linetable-card-productTeaser"},e.createElement("div",{className:"linetable-card-productContainer "},fe.content&&e.createElement(e.Fragment,null,e.createElement("div",{className:"linetable-card-titleContainer",id:`linetable-card-title${o}`,ref:xe},e.createElement("div",{className:"linetable-card-prodHeading"},null===(C=null===(k=null==fe?void 0:fe.content)||void 0===k?void 0:k.body[0])||void 0===C?void 0:C.name),e.createElement("div",{className:"linetable-card-productTitle"},e.createElement("h3",null,null===(V=null===(S=null==fe?void 0:fe.content)||void 0===S?void 0:S.body[0])||void 0===V?void 0:V.displayName),(null===(O=null===(I=null===(N=null==fe?void 0:fe.content)||void 0===N?void 0:N.body[0])||void 0===I?void 0:I.prodImage)||void 0===O?void 0:O.filename)&&e.createElement("img",{src:null===(A=null===(D=null===(L=null==fe?void 0:fe.content)||void 0===L?void 0:L.body[0])||void 0===D?void 0:D.prodImage)||void 0===A?void 0:A.filename,height:15,width:20})),e.createElement("div",{className:"linetable-card-prodDescription"},e.createElement(W,{content:null===(R=null===(B=null==fe?void 0:fe.content)||void 0===B?void 0:B.body[0])||void 0===R?void 0:R.description}))),!(null==t?void 0:t.isPrepaidFlow)&&e.createElement("hr",null)),(null==fe?void 0:fe.content)&&(null===(F=null===(z=null==fe?void 0:fe.content)||void 0===z?void 0:z.body[0])||void 0===F?void 0:F.introText)&&e.createElement(e.Fragment,null,e.createElement("div",{className:""+(be?"d-block":"d-none d-sm-block")},e.createElement("div",{className:"linetable-card-introText",id:`linetable-card-tooltiptxt${o}`,ref:ye},e.createElement(W,{content:null===(M=null===($=null==fe?void 0:fe.content)||void 0===$?void 0:$.body[0])||void 0===M?void 0:M.introText})),e.createElement("hr",null))),null===(U=(null===(G=null===(j=null==fe?void 0:fe.content)||void 0===j?void 0:j.body[0])||void 0===G?void 0:G.entitlementConfig)||[])||void 0===U?void 0:U.map(((t,o)=>e.createElement(oe,{content:t,product:n,key:o,indexKey:o,showEntitleValue:be,metadata:r,modalTriggered:d}))),e.createElement("hr",null),e.createElement("div",{id:`linetable-card-bottomConatiner${o}`,className:"linetable-card-bottomConatiner"},e.createElement("div",{className:"linetable-card-productDetailSection"},(null===(K=null===(H=null===(X=null===(q=null==fe?void 0:fe.content)||void 0===q?void 0:q.body)||void 0===X?void 0:X[0])||void 0===H?void 0:H.productDetailIcon)||void 0===K?void 0:K.filename)&&e.createElement("img",{src:null===(Q=null===(Z=null===(J=null===(Y=null==fe?void 0:fe.content)||void 0===Y?void 0:Y.body)||void 0===J?void 0:J[0])||void 0===Z?void 0:Z.productDetailIcon)||void 0===Q?void 0:Q.filename,width:24,height:24}),e.createElement(ue,{content:null===(ne=null===(ee=null==fe?void 0:fe.content)||void 0===ee?void 0:ee.body)||void 0===ne?void 0:ne[0],updatedContent:t,modalTriggered:d,addToCart:i})),e.createElement("div",null,(null===(re=null===(ie=null===(le=null==fe?void 0:fe.content)||void 0===le?void 0:le.body)||void 0===ie?void 0:ie[0])||void 0===re?void 0:re.isEnablePrice)&&e.createElement(ce,{content:null===(ae=null===(de=null==fe?void 0:fe.content)||void 0===de?void 0:de.body)||void 0===ae?void 0:ae[0],addToCart:i,variant:"productCard"})),e.createElement("div",null,!(null===(pe=null===(ve=null===(me=null==fe?void 0:fe.content)||void 0===me?void 0:me.body)||void 0===ve?void 0:ve[0])||void 0===pe?void 0:pe.isEnablePrice)&&!(null==t?void 0:t.staticPrice)&&e.createElement(se,{content:null===(he=null===(_e=null==fe?void 0:fe.content)||void 0===_e?void 0:_e.body)||void 0===he?void 0:he[0],showPrice:a,addToCart:i}))))))},exports.CardEntitlement=oe,exports.CarouselComp=n=>e.createElement(e.Fragment,null,e.createElement(s,{responsive:{desktop:{breakpoint:{max:7e3,min:1440},items:4},tabletLarge:{breakpoint:{max:1439,min:1024},items:3},tabletMedium:{breakpoint:{max:1023,min:768},items:2},mobile:{breakpoint:{max:767,min:0},items:1}},deviceType:"desktop",ssr:!0,renderButtonGroupOutside:!0,partialVisible:!0,swipeable:!0,autoPlay:!1,shouldResetAutoplay:!1,arrows:!0},n.children),e.createElement("p",null,"compo")),exports.LineTableBasicPropConfig=f,exports.LoginModal=({toggleFun:n})=>(e.useState(!1),e.createElement("div",{className:"loginModal"},e.createElement("div",{className:"w-100 h-100 d-flex position-relative justify-content-center align-items-center"},e.createElement("div",{className:"loginContainer"},"Hi Angles Kathirvel",e.createElement("button",{onClick:n},"Close"))))),exports.ProductTableV3=({content:t,metadata:o,setGenericErrorModalDetails:l,loginSuccess:r,lineCheckCallBack:d,tabCheckCallBack:a,changeAddressClicked:u})=>{var s,m,v;const[p,_]=e.useState(),[h,g]=e.useState(),[b,x]=e.useState(0);let y="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),E=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),k="undefined"!=typeof window&&c.get("chAddressJson");const P=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),C=P+T,S=P+w,V={find_by:"uuid",language:null==o?void 0:o.lang,type:"B2C",value:null==o?void 0:o.storyId};return e.useEffect((()=>{var e,t;(e=C,t=V,K(void 0,void 0,void 0,(function*(){try{return yield n.CMSStoryblokServiceV2.get(e,t).then((e=>{var n,t,o;const l=null===(o=null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.story)||void 0===t?void 0:t.content)||void 0===o?void 0:o.body;for(const e of l)if("productTableV2"==e.component||"productTableWithOutLC"===e.component||"prodConfigContainer"===e.component)return e})).catch((e=>{throw e}))}catch(e){return e}}))).then((e=>g(e))),((e="en",t)=>{try{return n.CMSStoryblokServiceV2.get(t,{dimension:e,per_page:1e3,type:"B2C"}).then((e=>{var n;const t={};((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.datasource_entries)||[]).map((e=>{t[e.name]=null!=e.dimension_value?e.dimension_value:e.value}));try{localStorage.removeItem("sbstaticcontent"),localStorage.setItem("sbstaticcontent",JSON.stringify(t))}catch(e){}return t})).catch((e=>e))}catch(e){throw Error("Promise failed")}})(null==o?void 0:o.lang,S).then((e=>_(e))).catch((e=>console.log(e)))}),[]),e.useEffect((()=>{var e,n,t;const o=new URLSearchParams(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.search),l=null==o?void 0:o.get("tabOption");h&&null!==l&&((null==h?void 0:h.productContainer)||[]).map(((e,n)=>{(null==e?void 0:e.tabId)===l&&x(n)}));const i=null===(t=null===(n=null==h?void 0:h.productContainer)||void 0===n?void 0:n[b])||void 0===t?void 0:t.tabId;null==a||a(i)}),[h]),e.useEffect((()=>{y="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),E=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),k="undefined"!=typeof window&&c.get("chAddressJson")}),[u]),e.createElement("div",{id:"reusable-linetable"},(null==h?void 0:h.productContainer)&&e.createElement(e.Fragment,null,e.createElement(ie,null,e.createElement("div",{className:`row justify-content-center ${De.tabblock}`},(null===(m=null==h?void 0:h.productContainer)||void 0===m?void 0:m.length)>1&&e.createElement("div",{className:` ${De.tabcontainer}`},((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement("div",{className:` ${De.tabs} ${b===t?De.tabcontentactive:De.tabcontentinactive}`,key:null==n?void 0:n.tabCaption},e.createElement("label",{className:` ${De.tabcontent} `},e.createElement("input",{type:"radio",checked:b===t,onChange:()=>{x(t),null==a||a(null==n?void 0:n.tabId),vn(xe,Te,{click_text:null==n?void 0:n.tabCaption})}}),null==n?void 0:n.tabCaption))))))),e.createElement(ie,{resuablelineTable:!0},e.createElement("div",{className:"position-relative "},e.createElement(i.Carousel,{activeIndex:b,indicators:!1,controls:!1,interval:null,id:"pt-carousel",slide:!1},(null===(v=null==h?void 0:h.productContainer)||void 0===v?void 0:v.length)>0&&((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement(i.Carousel.Item,{key:t},e.createElement(Tn,{content:Object.assign(Object.assign({},n),{pageType:n.pageType,dynamicProductOffer:!0,tabIndex:t,activeIndex:b,lineTableContent:h}),metadata:o,activeIndex:b,lineCheckCallBack:d,tabCheckCallBack:a,sbStaticConstants:p,address:k,eligibleBundle:E,setGenericErrorModalDetails:l,loginSuccess:r})))))))))},exports.ProductTeaser=({content:t,lineCheckCallBack:o,offerDataCallBack:l,productCallBack:i})=>{var r,d,a,m,v,p;const[_,h]=e.useState([]),[f,g]=e.useState(""),[y,E]=e.useState(!1),T=null===(r=null==ve?void 0:ve.getInstance())||void 0===r?void 0:r.getBaseUrl(),w=N(),k=null===(d=(null==t?void 0:t.productTeaserSlides)||[])||void 0===d?void 0:d.map((e=>null==e?void 0:e.tabTitle)),P=e=>{var n,o,l,i;const r=null!==(i=null===(l=null===(o=null===(n=(null==t?void 0:t.productTeaserSlides)||[])||void 0===n?void 0:n.filter((n=>(null==n?void 0:n.tabTitle)===e)))||void 0===o?void 0:o[0])||void 0===l?void 0:l.heading)&&void 0!==i?i:"";var d,a;d=Te,a=r,window.dataLayer.push({event:xe,event_name:d,click_text:a})},C=[];return null===(a=(null==t?void 0:t.productTeaserSlides)||[])||void 0===a||a.forEach(((e,n)=>{var t,o;(null==e?void 0:e.productId)&&0===(null===(t=C.filter((n=>n.id===(null==e?void 0:e.productId))))||void 0===t?void 0:t.length)&&C.push({id:null==e?void 0:e.productId,promoIds:[(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:(null==e?void 0:e.productType)===R?z:F]}),(null==e?void 0:e.tvProductId)&&0===(null===(o=C.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.tvProductId))))||void 0===o?void 0:o.length)&&C.push({id:null==e?void 0:e.tvProductId,promoIds:[(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:z]})})),e.useEffect((()=>{var e,t;0===(null==_?void 0:_.length)&&(e=C,t=T,K(void 0,void 0,void 0,(function*(){try{localStorage.removeItem("entertainment"),c.remove("one-commerce-login",{path:"/"});const o={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":b}},l=t+x,i=yield n.ApiServiceV2.getApiServiceInstance().post(l,e,o).then((e=>{if(200==e.status)return null==e?void 0:e.data}));if(i.error)return i.error;{const e=[];return null==i||i.forEach((n=>{e[n.id]=n})),e}}catch(e){console.log("error---\x3e",e)}}))).then((e=>{var n;e&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)>0&&h(e)})).catch((e=>{console.log("error---\x3e",e)}))}),[]),e.useEffect((()=>{var e;(null===(e=null==t?void 0:t.productTeaserSlides)||void 0===e?void 0:e.map((e=>e.productType))).map((e=>{var n,o,r,d,a,c,u,s,m,v,p,h,g;if(1==(null===(n=Object.keys(_))||void 0===n?void 0:n.length)&&"function"==typeof l&&e===$&&"function"==typeof i){const e=null===(r=null===(o=null==C?void 0:C[0])||void 0===o?void 0:o.promoIds)||void 0===r?void 0:r[0],n=null===(d=null==C?void 0:C[0])||void 0===d?void 0:d.id;l(_[n],e,f),i(n)}else if((null===(a=Object.keys(_))||void 0===a?void 0:a.length)>1&&"function"==typeof l&&e===$&&"function"==typeof i){const e=null!==(m=null===(s=null===(u=null===(c=null==C?void 0:C.filter((e=>(null==e?void 0:e.id)===f)))||void 0===c?void 0:c[0])||void 0===u?void 0:u.promoIds)||void 0===s?void 0:s[0])&&void 0!==m?m:"",n=null!==(h=null===(p=null===(v=null==C?void 0:C.filter((e=>(null==e?void 0:e.id)===f)))||void 0===v?void 0:v[0])||void 0===p?void 0:p.id)&&void 0!==h?h:"";l(_[f],e,f),i(n)}else e===R&&(null===(g=null==t?void 0:t.productTeaserSlides)||void 0===g||g.map((e=>{var n,t,o,i,r;const d=y?null==e?void 0:e.tvProductId:null==e?void 0:e.productId;if((null===(n=Object.keys(_))||void 0===n?void 0:n.length)>0&&"function"==typeof l){const e=null!==(r=null===(i=null===(o=null===(t=null==C?void 0:C.filter((e=>(null==e?void 0:e.id)===d)))||void 0===t?void 0:t[0])||void 0===o?void 0:o.promoIds)||void 0===i?void 0:i[0])&&void 0!==r?r:"";l(_[d],e)}})))}))}),[_,f,y]),e.useEffect((()=>{""!==f&&P(f)}),[f]),e.createElement("div",{className:"position-relative"},(null===(m=null==t?void 0:t.productTeaserSlides)||void 0===m?void 0:m.length)>0&&w&&e.createElement(s,{responsive:{desktop:{breakpoint:{max:7e3,min:1440},items:1},tabletLarge:{breakpoint:{max:1439,min:1024},items:1},tabletMedium:{breakpoint:{max:1023,min:768},items:1},mobile:{breakpoint:{max:767,min:0},items:1}},autoPlay:!1,shouldResetAutoplay:!1,showDots:1!==(null===(v=null==t?void 0:t.productTeaserSlides)||void 0===v?void 0:v.length),customDot:e.createElement((n=>{const{onClick:t,active:o,index:l}=n;return o&&g(k[l]),e.createElement("button",{className:o?me.stageTeaserTabActive:me.stageTeaserTab,onClick:()=>t()},k[l])}),null),dotListClass:me.carousel_dot,itemClass:me.carouselItem,ssr:!0,arrows:!1,containerClass:me.carouselContainer,sliderClass:me.sliderClass,customButtonGroup:e.createElement((n=>{var o,l,i;return e.createElement(e.Fragment,null,(null===(o=null==t?void 0:t.productTeaserSlides)||void 0===o?void 0:o.length)>1&&w!==$&&e.createElement("div",{style:{textAlign:"center"}},e.createElement("button",{disabled:0===(null===(l=null==n?void 0:n.carouselState)||void 0===l?void 0:l.currentSlide),className:me.leftArrow,onClick:n.previous}),e.createElement("button",{disabled:(null===(i=null==n?void 0:n.carouselState)||void 0===i?void 0:i.currentSlide)+1===(null==n?void 0:n.carouselState.totalItems),className:me.rightArrow,onClick:n.next})))}),null),customTransition:"transform 1s ease",transitionDuration:500},null===(p=(null==t?void 0:t.productTeaserSlides)||[])||void 0===p?void 0:p.map(((n,l)=>e.createElement(Le,{content:t,slides:n,index:l,offeringData:_,lineCheckCallBack:o,setEnableToggle:E})))))},exports.ProductTeaserPropConfig=ve,exports.StickyProductAnchor=({content:n,offerData:t,lineCheckCallBack:o})=>{var l,i,r,d,a,u,s,m,v,p;const h=null===(l=null==f?void 0:f.getInstance())||void 0===l?void 0:l.getCartUrl(),[g,b]=e.useState(!1),[x,y]=e.useState(!1),[E,T]=e.useState("noFalconStyle"),[w,k]=e.useState("noFalconStyle"),[P,S]=e.useState(!1),V=N(),I=null===(i=null==n?void 0:n.filter((e=>(null==e?void 0:e.productId)===(null==t?void 0:t.id))))||void 0===i?void 0:i[0];let O=0;O=(null==t?void 0:t.derivedPrice)?null===(d=null===(r=null==t?void 0:t.derivedPrice)||void 0===r?void 0:r[0])||void 0===d?void 0:d.value:null===(u=null===(a=null==t?void 0:t.prices)||void 0===a?void 0:a[0])||void 0===u?void 0:u.value;const L=e=>{const n=(null==e?void 0:e.id)&&document.getElementById(null==e?void 0:e.id);S(!1),n&&n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},D=()=>e.createElement("div",{className:wn.priceSection},"CHF"," ",C(O),e.createElement("span",{className:wn.priceDuration},null==I?void 0:I.monthText));e.useEffect((()=>{const e=()=>{var e;const n=document.getElementById("productTeaser");if(!n)return;const{top:t,bottom:o}=n.getBoundingClientRect(),l=(null===window||void 0===window?void 0:window.innerHeight)||document.documentElement.clientHeight;b(t<l&&o>=0);let i=document.querySelectorAll(".sticky-header2");const r=document.getElementById("stickyAnchorContainer"),d=document.querySelectorAll(".sticky-header");if(null!=d){const e=(null==d?void 0:d.length)>0?"falconStyle":"noFalconStyle";T(e)}if(null!=i){const n=null===(e=null==i?void 0:i[0])||void 0===e?void 0:e.offsetHeight;k(n>=75?"noFalconStyle2":"falconStyle2")}const a=null==r?void 0:r.offsetTop;a&&window.scrollY>a?y(!0):y(!1);const c=document.getElementById("dropDownContainer");null==c||c.offsetTop};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]);let A;try{A=null===(s=document.getElementsByTagName("header"))||void 0===s?void 0:s[0]}catch(e){}return A?e.createElement(e.Fragment,null,(null==I?void 0:I.productName)&&e.createElement(e.Fragment,null,_.createPortal(e.createElement(e.Fragment,null,e.createElement("div",{className:`${wn.stickyAnchorContainer} ${x?wn.offsetClass:wn.nonOffsetClass} ${wn[E]} ${wn[w]}`,id:"stickyAnchorContainer"},e.createElement(ie,null,e.createElement("div",{className:wn.productContainer},e.createElement("div",{className:wn.productTitle},(V===j||V===$)&&e.createElement("img",{onClick:()=>{S(!P)},className:`${wn.arrowIcon} ${P?wn.clockwise:wn.counterclockwise}`,src:null===(m=null==I?void 0:I.arrowUp)||void 0===m?void 0:m.filename}),e.createElement("div",null,null==I?void 0:I.productName,e.createElement("div",{className:wn.productPrice},O>0&&(V===j||V===$)&&e.createElement(e.Fragment,null,D())))),e.createElement("div",{className:wn.contentWrapper},V!==j&&V!==$&&e.createElement(e.Fragment,null,e.createElement("span",{className:wn.benefitsContainer},null===(v=(null==I?void 0:I.benefits)||[])||void 0===v?void 0:v.map((n=>e.createElement("div",{className:wn.benefits,onClick:()=>L(n)},null==n?void 0:n.title)))),O>0&&e.createElement(e.Fragment,null,D())),(null==I?void 0:I.buyBtn)&&e.createElement("button",{className:wn.buyNowButton,onClick:(null==I?void 0:I.productType)===$?()=>{(null==t?void 0:t.id)&&Ce(fe,[t],"",be),(null==t?void 0:t.id)&&Q([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:"",h,$).then((e=>{var n;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",null==I?void 0:I.productId,{path:"/"}),window.location.href=null!==(n=null==I?void 0:I.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))}:()=>{var e,n,l;const i=localStorage.getItem("lineCheckResponse"),r=i&&JSON.parse(i),d=c.get("one-commerce-linecheckcorrelationid"),a=c.get("chAddressJson"),u=null!==(e=null==I?void 0:I.productId)&&void 0!==e?e:"",s=a&&r&&(null==r?void 0:r.eligibleBundle.includes(u));r&&a&&d?s&&(0!==(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&Ce(fe,[t],I,be),0!==(null===(l=Object.keys(t))||void 0===l?void 0:l.length)&&Q([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:z,h,R).then((e=>{var n;c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",u,{path:"/"}),c.remove("landline"),window.location.href=null!==(n=null==I?void 0:I.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))):"function"==typeof o&&o()}},null==I?void 0:I.buyBtn))))),(null==I?void 0:I.productName)&&P&&e.createElement("div",{className:`${wn.stickyAnchorContainer} ${x?wn.offsetClass2:wn.nonOffsetClass}`,id:"dropDownContainer"},e.createElement("span",{className:wn.benefitsContainer2},null===(p=(null==I?void 0:I.benefits)||[])||void 0===p?void 0:p.map((n=>e.createElement("div",{className:wn.subcontain,onClick:()=>L(n)},null==n?void 0:n.title)))))),A))):e.createElement(e.Fragment,null)};
|
2
2
|
//# sourceMappingURL=index.js.map
|