@sunrise-upc/mobile-prod-card 1.2.5-beta.7 → 1.2.5-beta.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -5,5 +5,5 @@
5
5
  * Copyright(c) 2015 Douglas Christopher Wilson
6
6
  * MIT Licensed
7
7
  */
8
- parse:function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var t={},o=n||{},l=e.split(";"),i=o.decode||kn,d=0;d<l.length;d++){var r=l[d],a=r.indexOf("=");if(!(a<0)){var c=r.substring(0,a).trim();if(null==t[c]){var u=r.substring(a+1,r.length).trim();'"'===u[0]&&(u=u.slice(1,-1)),t[c]=Sn(u,i)}}}return t},serialize:function(e,n,t){var o=t||{},l=o.encode||Tn;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!Pn.test(e))throw new TypeError("argument name is invalid");var i=l(n);if(i&&!Pn.test(i))throw new TypeError("argument val is invalid");var d=e+"="+i;if(null!=o.maxAge){var r=o.maxAge-0;if(isNaN(r)||!isFinite(r))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+Math.floor(r)}if(o.domain){if(!Pn.test(o.domain))throw new TypeError("option domain is invalid");d+="; Domain="+o.domain}if(o.path){if(!Pn.test(o.path))throw new TypeError("option path is invalid");d+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");d+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(d+="; HttpOnly");o.secure&&(d+="; Secure");if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return d}},kn=decodeURIComponent,Tn=encodeURIComponent,Pn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Sn(e,n){try{return n(e)}catch(n){return e}}!function(e){var n=wn&&wn.__assign||function(){return n=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},n.apply(this,arguments)},t=wn&&wn.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};Object.defineProperty(e,"__esModule",{value:!0}),e.checkCookies=e.hasCookie=e.removeCookies=e.deleteCookie=e.setCookies=e.setCookie=e.getCookie=e.getCookies=void 0;var o=En,l=function(){return"undefined"!=typeof window},i=function(e){void 0===e&&(e="");try{var n=JSON.stringify(e);return/^[\{\[]/.test(n)?n:e}catch(n){return e}};e.getCookies=function(e){var n;if(e&&(n=e.req),!l())return n&&n.cookies?n.cookies:n&&n.headers&&n.headers.cookie?(0,o.parse)(n.headers.cookie):{};for(var t={},i=document.cookie?document.cookie.split("; "):[],d=0,r=i.length;d<r;d++){var a=i[d].split("="),c=a.slice(1).join("=");t[a[0]]=c}return t};e.getCookie=function(n,t){var o,l=(0,e.getCookies)(t)[n];if(void 0!==l)return function(e){return"true"===e||"false"!==e&&("undefined"!==e?"null"===e?null:e:void 0)}((o=l)?o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent):o)};e.setCookie=function(e,d,r){var a,c,u;r&&(c=r.req,u=r.res,a=t(r,["req","res"]));var s=(0,o.serialize)(e,i(d),n({path:"/"},a));if(l())document.cookie=s;else if(u&&c){var m=u.getHeader("Set-Cookie");if(Array.isArray(m)||(m=m?[String(m)]:[]),u.setHeader("Set-Cookie",m.concat(s)),c&&c.cookies){var p=c.cookies;""===d?delete p[e]:p[e]=i(d)}if(c&&c.headers&&c.headers.cookie){p=(0,o.parse)(c.headers.cookie);""===d?delete p[e]:p[e]=i(d),c.headers.cookie=Object.entries(p).reduce((function(e,n){return e.concat("".concat(n[0],"=").concat(n[1],";"))}),"")}}};e.setCookies=function(n,t,o){return console.warn("[WARN]: setCookies was deprecated. It will be deleted in the new version. Use setCookie instead."),(0,e.setCookie)(n,t,o)};e.deleteCookie=function(t,o){return(0,e.setCookie)(t,"",n(n({},o),{maxAge:-1}))};e.removeCookies=function(n,t){return console.warn("[WARN]: removeCookies was deprecated. It will be deleted in the new version. Use deleteCookie instead."),(0,e.deleteCookie)(n,t)};e.hasCookie=function(n,t){return!!n&&(0,e.getCookies)(t).hasOwnProperty(n)};e.checkCookies=function(n,t){return console.warn("[WARN]: checkCookies was deprecated. It will be deleted in the new version. Use hasCookie instead."),(0,e.hasCookie)(n,t)}}(Cn);var Nn="Success-module_addresstext__fpGg5",Ln="Success-module_speed__vEhlw",In="Success-module_maxspeed__Yq1ZC",Vn="Success-module_tooltip__4R5Ux",On="Success-module_networkInfo__BeKKs",Dn="Success-module_mobilecard__73-r4",An="Success-module_spacedownload__jMUia",Bn="Success-module_downloadText__zg5M1",Mn="Success-module_downloader__--k56",Rn="Success-module_download__ADpzl",Fn="Success-module_address-unsuccess__bRTUF",zn="Success-module_mobilerow__u-8fK",$n="Success-module_spaceupload__av3Jg",Gn="Success-module_uploadText__pvv4-",Wn="Success-module_upload__Q3KLf",jn="Success-module_checkout__hMz1i",Un="Success-module_product__-hvEO",Hn="Success-module_checks-click__VjZ-O",qn="Success-module_checkoutline__ioLgh",Xn="Success-module_secondarybutton__1-u96";g("/* 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.Success-module_addresstext__fpGg5 {\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n color: #3d3935;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: unset;\n text-align: center;\n border-radius: 8px 0px 0px 0px;\n background-color: #F7F6F5;\n position: relative;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 {\n min-width: 580px;\n min-height: 272px;\n padding: 40px 16px;\n gap: 40px;\n border-radius: 8px 0px 0px 0px;\n background-color: #F7F6F5;\n position: relative;\n bottom: 33px;\n }\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 {\n padding-top: 40px;\n width: 100%;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw {\n padding: 0 16px !important;\n }\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw {\n position: relative;\n top: 26px;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_maxspeed__Yq1ZC {\n font-size: 14px;\n line-height: 16px;\n color: #5f5955;\n font-weight: 400;\n top: 10px;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_maxspeed__Yq1ZC {\n position: relative;\n min-width: 269px;\n min-height: 20px;\n gap: 0px;\n opacity: 0px;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_tooltip__4R5Ux {\n cursor: pointer;\n min-width: 16.25px;\n min-height: 16.25px;\n left: 1.88px;\n gap: 0px;\n color: #5F5955;\n position: relative;\n top: 8px;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_tooltip__4R5Ux {\n top: 1px !important;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs {\n display: flex;\n font-weight: 400;\n color: #5f5955;\n font-size: 14px;\n line-height: 20px;\n margin-top: 16px;\n justify-content: center;\n align-items: center;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs {\n top: 15px;\n position: relative;\n left: 0px !important;\n }\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs {\n margin-top: 6px;\n flex-direction: column;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 {\n display: flex;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 {\n flex-direction: row;\n align-items: flex-start;\n align-content: center;\n flex-wrap: wrap;\n justify-content: space-evenly;\n }\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia {\n border-right: 1px solid #E6E3DF;\n flex-direction: column;\n display: flex;\n margin-top: 16px;\n }\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia {\n flex-direction: column;\n display: flex;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_downloadText__zg5M1 {\n color: #5F5955;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n min-width: 67px;\n min-height: 20px;\n gap: 0px;\n text-align: center;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_downloadText__zg5M1 {\n display: inline-flex;\n }\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_downloader__--k56 {\n margin-left: 0px;\n margin-right: 8px;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_download__ADpzl {\n color: #5f5955;\n margin-right: 8px;\n margin-left: 8px;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_download__ADpzl {\n min-width: 73px;\n min-height: 24px;\n gap: 0px;\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: left;\n margin-right: 0;\n margin-left: 0;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_address-unsuccess__bRTUF {\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n color: #3d3935;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: unset;\n text-align: center;\n min-height: 146px;\n }\n}\n\n.Success-module_mobilerow__u-8fK {\n flex-direction: column;\n display: flex;\n margin-top: 16px;\n min-width: 73px;\n min-height: 48px;\n gap: 4px;\n margin-left: 0px !important;\n}\n@media (max-width: 767px) {\n .Success-module_mobilerow__u-8fK {\n padding: 0 16px;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_spaceupload__av3Jg {\n flex-direction: column;\n display: flex;\n margin-top: 16px;\n margin-left: 30px !important;\n }\n}\n@media (max-width: 767px) {\n .Success-module_spaceupload__av3Jg {\n display: flex;\n flex-direction: column;\n }\n}\n.Success-module_spaceupload__av3Jg .Success-module_uploadText__pvv4- {\n min-width: 48px;\n min-height: 20px;\n gap: 0px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n text-align: left;\n color: #5F5955;\n}\n@media (max-width: 767px) {\n .Success-module_spaceupload__av3Jg .Success-module_uploadText__pvv4- {\n display: inline-flex;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_upload__Q3KLf {\n min-width: 73px;\n min-height: 24px;\n gap: 0px;\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: left;\n color: #5F5955;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_checkout__hMz1i {\n align-items: center;\n display: flex;\n justify-content: center;\n position: relative;\n bottom: 32px;\n left: 0px;\n right: 20px;\n }\n .Success-module_product__-hvEO {\n align-items: center;\n display: flex;\n justify-content: center;\n position: relative;\n bottom: 32px;\n left: 0px;\n right: 20px;\n bottom: 30px;\n right: 0px;\n }\n .Success-module_checks-click__VjZ-O {\n max-width: 238px;\n max-height: 52px;\n padding: 14px 24px 14px 24px;\n gap: 8px;\n border-radius: 28px;\n }\n .Success-module_checkoutline__ioLgh {\n position: relative;\n left: 10px;\n }\n}\n.Success-module_secondarybutton__1-u96 {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n color: #da291c;\n cursor: pointer;\n background-color: white;\n border: 2px solid #da291c;\n border-radius: 28px;\n display: inline-flex;\n align-content: center;\n justify-content: center;\n min-width: 227px;\n min-height: 52px;\n padding: 14px;\n gap: 8px;\n}\n@media (max-width: 767px) {\n .Success-module_secondarybutton__1-u96 {\n width: 100%;\n }\n}\n\n@media (max-width: 767px) {\n .Success-module_checkout__hMz1i {\n width: 100% !important;\n }\n}\n\n@media (max-width: 767px) {\n .Success-module_product__-hvEO {\n width: 100% !important;\n }\n}");const Kn=({content:n,uploadDownload:t,textContent:o,eligibleBundle:l,tooltipcontent:i,onSuccess:d})=>{var r,a,u;const s=V();let m="undefined"!=typeof window&&c.get("one-commerce-access-type");const p=null===(r=null==o?void 0:o.linecheck)||void 0===r?void 0:r[0];try{m=m&&JSON.parse(m)}catch(e){console.log("invalid access Type json")}const[v,_]=e.useState();e.useEffect((()=>{(null==l?void 0:l.length)<1?_(null==p?void 0:p.dataText):_("")}),[]);return e.useEffect((()=>{v&&rn(v,Oe+" "+(null==p?void 0:p.title),Ie,Ve),v&&an(Ve,Ie,Oe+" | "+(null==p?void 0:p.title),v)}),[v]),e.createElement(e.Fragment,null,e.createElement("div",{className:`${Nn} ${"mobile"!=s&&(l&&(v||!v)&&(null==l?void 0:l.length)>1?Nn:Fn)}`},e.createElement("span",null,n),e.createElement("div",{className:Ln},!v&&(null==p?void 0:p.maximumSpeedText)&&e.createElement("p",{className:In},null==p?void 0:p.maximumSpeedText),!v&&e.createElement("span",{className:Vn},i&&e.createElement(xe,{content:p,tooltipcontent:i}))),!v&&(null==l?void 0:l.length)>0&&e.createElement("div",{className:On},e.createElement("div",{className:Dn},e.createElement("div",{className:zn},e.createElement("div",{className:An},e.createElement("span",{className:Bn},e.createElement(e.Fragment,null,null==p?void 0:p.downloadText)),e.createElement("span",{className:Mn},e.createElement("b",{className:Rn},null==t?void 0:t.maxBandwidthDown)))),e.createElement("div",{className:zn},e.createElement("div",{className:$n},e.createElement("span",{className:Gn},e.createElement(e.Fragment,null,null==p?void 0:p.uploadText)),e.createElement("span",null,e.createElement("b",{className:Wn},null==t?void 0:t.maxBandwidthUp)))," ","  ")))),!v&&(null==l?void 0:l.length)>0&&e.createElement("div",{className:jn},e.createElement("button",{name:"check address button",type:"button",className:`primarybutton ${Hn}`,disabled:!1,onClick:()=>{"function"==typeof d&&d()}},null==o?void 0:o.checkoutButtonLabel,e.createElement("span",null,e.createElement("img",{src:null===(a=null==p?void 0:p.rightArrowWhiteIcon)||void 0===a?void 0:a.filename,height:24,width:24,alt:"right-arrow",className:qn})))),v&&e.createElement("div",{className:Un},e.createElement("button",{name:"check address button",type:"button",className:Xn,disabled:!1,onClick:()=>{var e,n;(null===(e=null==o?void 0:o.otherProductsUrl)||void 0===e?void 0:e.url)&&"undefined"!=typeof window&&(window.location.href=null===(n=null==o?void 0:o.otherProductsUrl)||void 0===n?void 0:n.url)}},null==o?void 0:o.otherProductsLabel,e.createElement("span",null,e.createElement("img",{src:null===(u=null==p?void 0:p.arrowIcon)||void 0===u?void 0:u.filename,height:24,width:24,alt:"right-arrow",className:qn})))))};var Jn="LineCheckOverlay-module_linecheckOverlay__xm5mN",Yn="LineCheckOverlay-module_headerContainer__ZtE-q",Zn="LineCheckOverlay-module_closeIcon__DnyPh",Qn="LineCheckOverlay-module_helpText__TdjEy",et="LineCheckOverlay-module_linechecktitle__rh6uX",nt="LineCheckOverlay-module_changeTxt__BHU6a",tt="LineCheckOverlay-module_spinner__jr6Om",ot="LineCheckOverlay-module_maincontainerMob__5-DEz",lt="LineCheckOverlay-module_sub-container__38kO2";g("/* 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.LineCheckOverlay-module_linecheckOverlay__xm5mN {\n background-color: #ffffff;\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n cursor: pointer;\n z-index: 10000;\n padding: 0 16px;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_headerContainer__ZtE-q {\n background-color: #ffffff;\n /* box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2); */\n text-align: center;\n padding: 12px 0px;\n color: #000000;\n font-weight: 700;\n padding-right: 16px;\n font-size: 18px;\n line-height: 24px;\n height: 50px;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_headerContainer__ZtE-q .LineCheckOverlay-module_closeIcon__DnyPh {\n position: absolute;\n right: 15px;\n top: 18px;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_LCInputText__EHQKo {\n text-align: center;\n font-weight: 700;\n font-size: 18px;\n line-height: 24px;\n margin: 16px 0;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_helpText__TdjEy {\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n color: #5f5955;\n padding: 16px 16px 0px 16px;\n}\n\n.LineCheckOverlay-module_linechecktitle__rh6uX {\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n text-align: center;\n position: relative;\n}\n@media (min-width: 768px) {\n .LineCheckOverlay-module_linechecktitle__rh6uX {\n top: 12px;\n }\n}\n\n.LineCheckOverlay-module_changeTxt__BHU6a {\n color: #da291c;\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n}\n\n.LineCheckOverlay-module_changeTxt__BHU6a:hover {\n cursor: pointer;\n color: #961c13;\n}\n\n.LineCheckOverlay-module_changeTxt__BHU6a:active {\n cursor: pointer;\n color: #c7355f;\n}\n\n.LineCheckOverlay-module_spinner__jr6Om {\n margin-top: 60vh;\n}\n\n.LineCheckOverlay-module_maincontainerMob__5-DEz {\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n height: 100%;\n gap: 40px;\n}\n\n.LineCheckOverlay-module_sub-container__38kO2 {\n display: flex;\n flex-direction: column;\n gap: 24px;\n align-items: center;\n}");const it=({props:n,productName:t,handleModalClick:o,onSuccess:l})=>{var d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P,S,N,L,I,O,D,A,B,M,R,F,z,$,G,W,j,U,H,q;const X=e.useRef(null),K=V(),[J,Y]=e.useState(!1),Z=e.useRef(null);e.useEffect((()=>{var e,t;(null===(e=null==n?void 0:n.selectedAddress)||void 0===e?void 0:e.concatedAddress)&&(null===(t=null==X?void 0:X.current)||void 0===t||t.blur())}),[null===(d=null==n?void 0:n.selectedAddress)||void 0===d?void 0:d.concatedAddress]);const Q=e.createElement("div",null,e.createElement("span",{className:"mobileTable"},e.createElement("span",{className:"changeBtn",onClick:null==n?void 0:n.EditButtonClick,hidden:!(null===(r=null==n?void 0:n.linecheckResponse)||void 0===r?void 0:r.eligibleBundle)},e.createElement("span",{className:nt},"mobile"===K?null===(a=null==n?void 0:n.lineCheckContent)||void 0===a?void 0:a.changeTextMob:null===(c=null==n?void 0:n.lineCheckContent)||void 0===c?void 0:c.changeText))));return e.createElement(e.Fragment,null,e.createElement("div",{onClick:()=>{var e;null===(e=null==X?void 0:X.current)||void 0===e||e.focus()},className:Jn},e.createElement("div",{className:(null===(u=null==n?void 0:n.linecheckResponse)||void 0===u?void 0:u.eligibleBundle)&&ot},(null===(s=n.lineCheckContent)||void 0===s?void 0:s.popUpTitle)&&e.createElement("div",{className:Yn,ref:Z},J?null===(m=n.lineCheckContent)||void 0===m?void 0:m.popUpTitle:"",(null==n?void 0:n.isFetchingLineCheck)&&!(null==n?void 0:n.apiError)&&""!==(null===(p=null==X?void 0:X.current)||void 0===p?void 0:p.value)?e.createElement("div",{className:tt}," ",e.createElement(i.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"})):e.createElement("img",{onClick:o,className:Zn,width:13.5,height:13.5,alt:"close",src:null===(g=null===(h=null===(_=null===(v=null==n?void 0:n.lineCheckContent)||void 0===v?void 0:v.linecheckIcons)||void 0===_?void 0:_[0])||void 0===h?void 0:h.close)||void 0===g?void 0:g.filename})),e.createElement("div",{className:lt},(null===(f=null==n?void 0:n.linecheckResponse)||void 0===f?void 0:f.eligibleBundle)&&((null==n?void 0:n.errorMessage)||!(null==n?void 0:n.errorMessage)&&(null===(x=null===(b=null==n?void 0:n.linecheckResponse)||void 0===b?void 0:b.eligibleBundle)||void 0===x?void 0:x.length)>1?e.createElement("img",{src:null===(E=null===(C=null===(w=null===(y=null==n?void 0:n.lineCheckContent)||void 0===y?void 0:y.linecheckIcons)||void 0===w?void 0:w[0])||void 0===C?void 0:C.tick)||void 0===E?void 0:E.filename,height:"32px",width:"32px"}):e.createElement("img",{src:null===(S=null===(P=null===(T=null===(k=null==n?void 0:n.lineCheckContent)||void 0===k?void 0:k.linecheckIcons)||void 0===T?void 0:T[0])||void 0===P?void 0:P.notAvailableIcon)||void 0===S?void 0:S.filename,height:"32px",width:"32px"})),((null===(N=null==n?void 0:n.lineCheckContent)||void 0===N?void 0:N.linecheckTitle)||(null===(L=null==n?void 0:n.lineCheckContent)||void 0===L?void 0:L.successLinecheckTitle))&&e.createElement(e.Fragment,null,e.createElement("h4",{className:et},!(null==n?void 0:n.FetchingLineCheck)&&(null===(I=null==n?void 0:n.linecheckResponse)||void 0===I?void 0:I.eligibleBundle)?(null===(D=null===(O=null==n?void 0:n.linecheckResponse)||void 0===O?void 0:O.eligibleBundle)||void 0===D?void 0:D.length)<1?null===(A=null==n?void 0:n.lineCheckContent)||void 0===A?void 0:A.noConnectionTitle.replace("{0}",t):null===(B=null==n?void 0:n.lineCheckContent)||void 0===B?void 0:B.successLinecheckTitle.replace("{0}",t):null===(M=null==n?void 0:n.lineCheckContent)||void 0===M?void 0:M.linecheckTitle.replace("{0}",t)))),(null===(R=null==n?void 0:n.linecheckResponse)||void 0===R?void 0:R.eligibleBundle)?e.createElement(e.Fragment,null,e.createElement(Kn,{content:e.createElement("span",{"data-hj-suppress":!0},null===(z=null==n?void 0:n.selectedAddress)||void 0===z?void 0:z.concatedAddress,Q),isLoading:null==n?void 0:n.isFetchingLineCheck,uploadDownload:null===($=null==n?void 0:n.linecheckResponse)||void 0===$?void 0:$.maxUploadDownloadSpeed,textContent:null==n?void 0:n.content,eligibleBundle:null===(G=null==n?void 0:n.linecheckResponse)||void 0===G?void 0:G.eligibleBundle,tooltipcontent:null===(W=null==n?void 0:n.lineCheckContent)||void 0===W?void 0:W.speedTooltip,onSuccess:l})):e.createElement(e.Fragment,null,e.createElement(yn,{content:n.lineCheckContent,parentCallback:n.handleSelection,parentAddress:null===(F=n.selectedAddress)||void 0===F?void 0:F.concatedAddress,ref:X,isAddressNotFilled:n.isAddressNotFilled,name:"lineCheck",onChange:e=>{n.onChange(e)},apiError:n.apiError,setApiError:n.setApiError,setFetchingLineCheck:n.setFetchingLineCheck,onData:e=>{Y(!0)},FetchingLineCheck:null==n?void 0:n.FetchingLineCheck})),(null===(j=null==n?void 0:n.lineCheckContent)||void 0===j?void 0:j.helpText)&&!(null===(U=X.current)||void 0===U?void 0:U.value)?e.createElement("div",{className:Qn},!(null==n?void 0:n.isFetchingLineCheck)&&(null===(H=null==n?void 0:n.linecheckResponse)||void 0===H?void 0:H.eligibleBundle)?"":null===(q=null==n?void 0:n.lineCheckContent)||void 0===q?void 0:q.helpText):"")))};var dt={linecheckOverlay:"LineCheckV3-module_linecheckOverlay__RAe2G",maincontainerMob:"LineCheckV3-module_maincontainerMob__4SVlq",headerContainer:"LineCheckV3-module_headerContainer__Ut1Gl",inputrow:"LineCheckV3-module_inputrow__tIRGR","input-container":"LineCheckV3-module_input-container__QkGch","inputrow-success":"LineCheckV3-module_inputrow-success__W8KNh","inputrow-failure":"LineCheckV3-module_inputrow-failure__Elryv",horizontalDivider:"LineCheckV3-module_horizontalDivider__wA7-z","homeicon-wrapper":"LineCheckV3-module_homeicon-wrapper__96nLx",homeicon:"LineCheckV3-module_homeicon__JRepz",checkbutton:"LineCheckV3-module_checkbutton__Hvs6G",linechecktitle:"LineCheckV3-module_linechecktitle__q9IWF","linechecktitle-success":"LineCheckV3-module_linechecktitle-success__xShgM",helpText:"LineCheckV3-module_helpText__A4xmz",changeTxt:"LineCheckV3-module_changeTxt__OuWM8",changeTxts:"LineCheckV3-module_changeTxts__Fgzxd",closeIcon:"LineCheckV3-module_closeIcon__VW4f8"};g("/* 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.LineCheckV3-module_linecheckOverlay__RAe2G {\n background-color: #ffffff;\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n cursor: pointer;\n z-index: 10000;\n}\n.LineCheckV3-module_linecheckOverlay__RAe2G .LineCheckV3-module_maincontainerMob__4SVlq {\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n align-items: center;\n}\n.LineCheckV3-module_linecheckOverlay__RAe2G .LineCheckV3-module_maincontainerMob__4SVlq .LineCheckV3-module_headerContainer__Ut1Gl {\n background-color: #ffffff;\n /* box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2); */\n text-align: center;\n padding: 12px 0px;\n color: #000000;\n font-weight: 700;\n padding-right: 16px;\n font-size: 18px;\n line-height: 24px;\n height: 50px;\n}\n\n.LineCheckV3-module_inputrow__tIRGR {\n position: relative;\n box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);\n border-radius: 8px;\n background-color: #ffffff;\n padding: 16px;\n margin: 0px;\n}\n@media (min-width: 768px) {\n .LineCheckV3-module_inputrow__tIRGR {\n min-width: 844px;\n min-height: 173px;\n bottom: 55px;\n padding: 10px 16px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .LineCheckV3-module_inputrow__tIRGR {\n min-width: 680px !important;\n width: 680px;\n }\n .LineCheckV3-module_inputrow__tIRGR .LineCheckV3-module_input-container__QkGch {\n width: 62% !important;\n }\n}\n\n@media (min-width: 768px) {\n .LineCheckV3-module_inputrow-success__W8KNh {\n position: relative;\n max-width: 628px;\n max-height: 568px;\n padding: 40px 24px 40px 24px;\n gap: 40px;\n border-radius: 8px;\n opacity: 0px;\n background-color: #FFFFFF;\n box-shadow: 0px 2px 4px 0px rgba(87, 84, 82, 0.2);\n bottom: 40px;\n left: 40px;\n }\n .LineCheckV3-module_inputrow-failure__Elryv {\n max-width: 628px;\n position: relative;\n max-height: 442px;\n padding: 40px 24px 40px 24px;\n gap: 40px;\n border-radius: 8px 0px 0px 0px;\n opacity: 0px;\n color: #FFFFFF;\n box-shadow: 0px 2px 4px 0px rgba(87, 84, 82, 0.2);\n background-color: #FFFFFF;\n }\n .LineCheckV3-module_horizontalDivider__wA7-z {\n height: 1px;\n width: 815px;\n background-color: #E6E3DF;\n position: relative;\n bottom: 0px;\n right: 0px;\n left: 4px;\n top: 14px;\n }\n .LineCheckV3-module_homeicon-wrapper__96nLx {\n align-items: center;\n display: flex;\n justify-content: center;\n top: -20px;\n position: relative;\n }\n .LineCheckV3-module_homeicon__JRepz {\n min-width: 39px;\n min-height: 39px;\n position: relative;\n top: 27.5px;\n left: 0.5px;\n gap: 0px;\n opacity: 0px;\n color: #3D3935;\n }\n}\n@media (min-width: 768px) and (max-width: 767px) {\n .LineCheckV3-module_homeicon__JRepz {\n margin-top: 12px;\n }\n}\n@media (min-width: 768px) {\n .LineCheckV3-module_checkbutton__Hvs6G {\n min-width: 186px;\n min-height: 52px;\n padding: 14px 24px 14px 24px;\n gap: 8px;\n border-radius: 28px;\n opacity: 0px;\n color: #E6E3DF;\n position: relative;\n top: 15px;\n }\n}\n.LineCheckV3-module_linechecktitle__q9IWF, .LineCheckV3-module_linechecktitle-success__xShgM {\n font-family: Avenir Next;\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n text-align: center;\n position: relative;\n top: 10px;\n}\n@media (min-width: 768px) {\n .LineCheckV3-module_linechecktitle__q9IWF, .LineCheckV3-module_linechecktitle-success__xShgM {\n top: 12px;\n }\n}\n\n@media (min-width: 768px) {\n .LineCheckV3-module_linechecktitle-success__xShgM {\n top: -23px;\n }\n}\n\n.LineCheckV3-module_helpText__A4xmz {\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n color: #5f5955;\n padding: 16px 16px 0px 16px;\n}\n\n.LineCheckV3-module_changeTxt__OuWM8 {\n color: #da291c;\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n}\n\n.LineCheckV3-module_changeTxt__OuWM8:hover {\n cursor: pointer;\n color: #961c13;\n}\n\n.LineCheckV3-module_changeTxt__OuWM8:active {\n cursor: pointer;\n color: #c7355f;\n}\n\n@media (min-width: 768px) {\n .LineCheckV3-module_changeTxts__Fgzxd {\n color: #da291c;\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n position: relative;\n top: 10px;\n }\n}\n\n.LineCheckV3-module_closeIcon__VW4f8 {\n cursor: pointer;\n position: absolute;\n left: 95%;\n top: 24px;\n}");const rt=({content:n,shippingAddress:t,onSuccess:o,productName:l,handleModalClick:d,setShowModal:r})=>{var a,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P;const[S,N]=e.useState(!1),L=e.useRef(null),[I,O]=e.useState({enableCheckaddress:!1}),[D,A]=e.useState(),[B,M]=e.useState(),[R,F]=e.useState(!1),[z,$]=e.useState(),[G,W]=e.useState(!1),[j,U]=e.useState({openIndividualLineCheck:!1,availabilityCheckClicked:!1}),[H,q]=e.useState(!1),X=V();null==z||z.shouldAutomateLineCheck;const K=new Date;new Date(null===(a=null==B?void 0:B.plannedUpgrade)||void 0===a?void 0:a.date).getTime(),K.getTime();const[J,Y]=e.useState(!1),Z=(e,n)=>{U(n),M(" "),A(e),""!==(null==e?void 0:e.postCode)&&""!==e.city&&""!==e.houseNumber&&""!==e.street&&""!==e.concatedAddress?O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!0}))):O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!1})))},Q=()=>{(null==I?void 0:I.enableCheckaddress)?O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!1}))):N(!1)},ee=()=>{W(!1),"undefined"!=typeof window&&localStorage.removeItem("lineCheckResponse"),Cn.deleteCookie("chAddressJson"),Cn.deleteCookie("one-commerce-linecheckcorrelationid"),dn("lineTableView Address","Change",Le),O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!0}))),M("")},ne=e.createElement("div",null,e.createElement("span",{className:"mobileTable"},e.createElement("span",{className:"changeBtn",onClick:ee,hidden:!(null==B?void 0:B.eligibleBundle)},e.createElement("span",{className:"mobile"!==X?dt.changeTxts:dt.changeTxt},"mobile"===X?null==z?void 0:z.changeTextMob:null==z?void 0:z.changeText)))),te=()=>{var e;W(!0),I.enableCheckaddress||Object.keys(D).length>0?(F(!0),Cn.deleteCookie("chAddressJson"),Cn.setCookie("chAddressJson",JSON.stringify({addressValue:null==D?void 0:D.concatedAddress,selectedAdd:D}),{path:"/",maxAge:259200}),dn("lineCheckStart","Check address",Le),ln(ke,"line_check_start",{input:`${null==D?void 0:D.postCode}| ${null==D?void 0:D.city}`,selection:null==z?void 0:z.buttonvalue}),D&&Object.keys(D).length>0&&vn(D).then((e=>{localStorage.setItem("LinecheckCall","true"),F(!1),M(e),q(!1),"mobile"===X&&j.openIndividualLineCheck&&Y(!0)})).catch((e=>{console.log(e),q(!0),U(Object.assign(Object.assign({},j),{availabilityCheckClicked:!1})),"mobile"===X&&j.openIndividualLineCheck&&Y(!0)}))):(N(!0),null===(e=L.current)||void 0===e||e.focus(),"mobile"===X&&Y(!1))};e.useEffect((()=>{var e,n,t,o,l,i,d,r,a;try{let c=Cn.getCookie("chAddressJson");const u=Cn.getCookie("one-commerce-linecheckcorrelationid");try{c=c&&JSON.parse(c)}catch(e){console.log("invalid address json")}let s=Cn.getCookie("sunriseAuth");try{s=s&&JSON.parse(s)}catch(e){console.log("invalid AuthCookie json")}if(c){O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!1}))),A(null==c?void 0:c.selectedAdd);const s=localStorage.getItem("lineCheckResponse"),m=localStorage.getItem("one-commerce-linecheckcorrelationid"),p={eligibleBundle:null!==(n=s&&(null===(e=JSON.parse(s))||void 0===e?void 0:e.eligibleBundle))&&void 0!==n?n:[],configEligibleBundle:null!==(o=s&&(null===(t=JSON.parse(s))||void 0===t?void 0:t.configEligibleBundle))&&void 0!==o?o:[],maxUploadDownloadSpeed:null!==(i=s&&(null===(l=JSON.parse(s))||void 0===l?void 0:l.maxUploadDownloadSpeed))&&void 0!==i?i:{},lineCheckRepsonse:B&&JSON.parse(null==B?void 0:B.originalLinecheckResponse),lineCheckCorrelationId:null!=m?m:"",plannedUpgrade:null!==(r=s&&(null===(d=JSON.parse(s))||void 0===d?void 0:d.plannedUpgrade))&&void 0!==r?r:{}};s&&u&&(null===(a=JSON.parse(s))||void 0===a?void 0:a.eligibleBundle)&&Object.keys(null==c?void 0:c.selectedAdd).length&&M(p)}}catch(e){}}),[z,t]),e.useEffect((()=>{var e,t,o,l,i;n&&("lineCheckTemplate"===(null===(t=null===(e=null==n?void 0:n.reference)||void 0===e?void 0:e.content)||void 0===t?void 0:t.component)?$(null===(l=null===(o=null==n?void 0:n.reference)||void 0===o?void 0:o.content)||void 0===l?void 0:l.linecheck[0]):$(null===(i=null==n?void 0:n.linecheck)||void 0===i?void 0:i[0]))}),[]),e.useEffect((()=>{var e,n,t,o,l;(!(null==B?void 0:B.eligibleBundle)||(null==B?void 0:B.eligibleBundle.length)<1)&&N(!1),(null===(e=null==B?void 0:B.eligibleBundle)||void 0===e?void 0:e.length)&&(0!==Object.keys(D).length&&void 0!==(null===(n=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===n?void 0:n.maxBandwidthDown)||void 0!==(null===(t=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===t?void 0:t.maxBandwidthDown))&&(((e,n,t,o,l)=>{const i={address:e,eventAction:n,eventValue:t,id:o,timeStamp:Math.round(Date.now()/1e3),type:l};try{window.appEventData.push({event:l,eventInfo:i})}catch(e){}})(`${null==D?void 0:D.postCode}| ${null==D?void 0:D.city} | ${null==D?void 0:D.street} | ${null==D?void 0:D.houseNumber} |\n ${null===(o=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===o?void 0:o.maxBandwidthUp} | ${null===(l=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===l?void 0:l.maxBandwidthDown}`,"lineCheckResult",1,c.get("one-commerce-linecheckcorrelationid"),"view"),ln(ke,"line_check_results",{input:`${null==D?void 0:D.postCode}| ${null==D?void 0:D.city}`,eligible:""}))}),[null===(u=null==B?void 0:B.eligibleBundle)||void 0===u?void 0:u.length]);const oe=e.useRef(null),le=()=>{"mobile"!==X||j.openIndividualLineCheck?"mobile"===X&&j.openIndividualLineCheck&&j.availabilityCheckClicked&&te():(te(),setTimeout((()=>{var e;null===(e=oe.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),1e3))};e.useEffect((()=>{"mobile"!==X||j.openIndividualLineCheck?"mobile"===X&&j.openIndividualLineCheck&&j.availabilityCheckClicked&&le():le()}),[D]);const[ie,de]=e.useState(),re={linecheckResponse:B,eligibleBundle:null==B?void 0:B.eligibleBundle,lineCheckContent:z,handleSelection:Z,isAddressNotFilled:S,name:"lineCheck",onChange:Q,selectedAddress:D,isFetchingLineCheck:R,onClose:le,apiError:H,setApiError:q,setFetchingLineCheck:F,setPopup:Y,content:n,errorMessage:ie,EditButtonClick:ee},ae=Object.assign({},re);e.useEffect((()=>{var e;(null===(e=null==B?void 0:B.eligibleBundle)||void 0===e?void 0:e.length)<1?de(null==z?void 0:z.dataText):de("")}),[]);const ce=()=>{"mobile"===X&&Y(!0)};e.useEffect((()=>{ce(),window.addEventListener("resize",ce)}),[X]);return e.createElement(e.Fragment,null,!J&&"mobile"!==X&&e.createElement(e.Fragment,null,e.createElement("div",{className:"row justify-content-center ",ref:oe},e.createElement("div",{className:`${(null==B?void 0:B.eligibleBundle)&&"mobile"===X?dt.linecheckOverlay:"col-12 px-0"}`},e.createElement("div",{className:` ${S&&!(null==B?void 0:B.eligibleBundle)?"gradientborder":""} ${"mobile"!==X&&dt.maincontainerMob}`},e.createElement("div",{className:`${!(null==B?void 0:B.eligibleBundle)&&"mobile"!=X&&`row ${dt.inputrow}`} ${"mobile"!=X&&(null==B?void 0:B.eligibleBundle)&&(ie||!ie&&(null===(s=null==B?void 0:B.eligibleBundle)||void 0===s?void 0:s.length)>1?`row ${dt["inputrow-success"]}`:`row ${dt["inputrow-failure"]}`)} `},(null==B?void 0:B.eligibleBundle)&&(ie||!ie&&(null===(m=null==B?void 0:B.eligibleBundle)||void 0===m?void 0:m.length)>1?e.createElement("img",{src:null===(_=null===(v=null===(p=null==z?void 0:z.linecheckIcons)||void 0===p?void 0:p[0])||void 0===v?void 0:v.tick)||void 0===_?void 0:_.filename,height:"32px",width:"32px"}):e.createElement("img",{src:null===(f=null===(g=null===(h=null==z?void 0:z.linecheckIcons)||void 0===h?void 0:h[0])||void 0===g?void 0:g.notAvailableIcon)||void 0===f?void 0:f.filename,height:"32px",width:"32px"})),((null==z?void 0:z.linecheckTitle)||(null==z?void 0:z.successLinecheckTitle))&&e.createElement(e.Fragment,null,e.createElement("h4",{className:`${(null==B?void 0:B.eligibleBundle)?dt["linechecktitle-success"]:dt.linechecktitle} `},!R&&(null==B?void 0:B.eligibleBundle)&&(null==B?void 0:B.eligibleBundle)?(null===(b=null==B?void 0:B.eligibleBundle)||void 0===b?void 0:b.length)<1?null==z?void 0:z.noConnectionTitle.replace("{0}",l):null==z?void 0:z.successLinecheckTitle.replace("{0}",l):null==z?void 0:z.linecheckTitle.replace("{0}",l))),e.createElement("span",{onClick:()=>{r(!1)},className:dt.closeIcon},e.createElement("img",{width:14,height:14,alt:"close",src:null===(w=null===(y=null===(x=null==z?void 0:z.linecheckIcons)||void 0===x?void 0:x[0])||void 0===y?void 0:y.close)||void 0===w?void 0:w.filename})),(null==B?void 0:B.eligibleBundle)?e.createElement(e.Fragment,null,e.createElement(Kn,{content:e.createElement("span",{"data-hj-suppress":!0},null==D?void 0:D.concatedAddress,ne),isLoading:R,uploadDownload:null==B?void 0:B.maxUploadDownloadSpeed,textContent:n,eligibleBundle:null==B?void 0:B.eligibleBundle,tooltipcontent:z.speedTooltip,onSuccess:o})):e.createElement(e.Fragment,null,e.createElement("div",{className:dt.horizontalDivider}),e.createElement("div",{className:`col-1 px-0 ${dt["homeicon-wrapper"]}`},(null==B?void 0:B.eligibleBundle)?e.createElement(e.Fragment,null):e.createElement("img",{src:null===(k=null===(E=null===(C=null==z?void 0:z.linecheckIcons)||void 0===C?void 0:C[0])||void 0===E?void 0:E.home)||void 0===k?void 0:k.filename,height:""+("mobile"===X?"26px":"48px"),width:""+("mobile"===X?"26px":"48px"),alt:"home",className:dt.homeicon})),e.createElement("div",{className:`col-lg-8 col-md-8 col-sm-8 ${"mobile"===X&&((null==B?void 0:B.eligibleBundle)?"col-12":"col-9")} px-0 ${dt["input-container"]}`},e.createElement("div",null,e.createElement(yn,{content:z,parentCallback:Z,parentAddress:null==D?void 0:D.concatedAddress,ref:L,isAddressNotFilled:S,name:"lineCheck",onChange:Q,setAddressNotFilled:N,apiError:H,setApiError:q,setFetchingLineCheck:F,checkAvailability:G,FetchingLineCheck:R,setSelectedAddress:A}))),e.createElement("div",{className:`col-lg-3 col-md-3 col-sm-3 col-2 px-0 m-auto ${dt.checkbutton}`},e.createElement("button",{name:"check address button",type:"button",className:"primarybutton",disabled:!(null==I?void 0:I.enableCheckaddress)||R,hidden:!!(null==B?void 0:B.eligibleBundle),onClick:te,style:{width:"100%",position:"relative",bottom:"10px"}},R&&!H&&""!==(null===(T=null==L?void 0:L.current)||void 0===T?void 0:T.value)?e.createElement(i.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}):null==z?void 0:z.buttonvalue))))))),(null==z?void 0:z.helpText)&&!(null===(P=L.current)||void 0===P?void 0:P.value)&&e.createElement("div",{className:dt.helptext},!R&&(null==B?void 0:B.eligibleBundle)?"":null==z?void 0:z.helpText)),"mobile"===X&&J&&e.createElement("div",null,e.createElement(it,{props:ae,productName:l,handleModalClick:d,onSuccess:o})))},at=({modalState:n,handler:l,showFooter:i,footerNode:d,children:r,width:a,height:c,noCloseButton:u,backDrop:s,fixedWidth:m,backgroundColor:p,bodyPadding:v})=>(e.useEffect((()=>{const e=document&&document.querySelector(".modal-dialog");e&&(e.style.maxWidth=a,e.style.padding="0",e.style.width=m);const n=document.querySelector(".modal-content");n&&(n.style.minHeight=c,n.style.backgroundColor=p);const t=document.querySelector(".modal-body");t&&v&&(t.style.padding=v)}),[c]),e.createElement(t,{centered:!0,show:n,onHide:l,backdrop:s||"static",keyboard:!1,dialogClassName:"sr-custom-modal"},e.createElement(t.Header,null,e.createElement("div",{style:{display:u?"none":""}},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,r),i&&e.createElement(t.Footer,null,d))),ct=({content:n,onSuccess:t,showModal:o,setShowModal:l,productName:i})=>{var d,r,a;const c=null===(a=null===(r=null===(d=null==n?void 0:n.reference)||void 0===d?void 0:d.content)||void 0===r?void 0:r.body)||void 0===a?void 0:a[0],u=()=>{l(!1)};return e.createElement(at,{modalState:o,handler:u,showFooter:!1,noCloseButton:!0,backgroundColor:"transparent",fixedWidth:"850px"},e.createElement(rt,{content:c,onSuccess:t,productName:i,handleModalClick:u,setShowModal:l}))},ut=({content:n,slides:t,index:o,offeringData:l,lineCheckCallBack:i,setEnableToggle:d,tableSelectedTab:r})=>{var a,u,s,p,v,_,h,g,f,x,y,w,C,E,k,T,P,S,L,I,O,D,A,B,M,R,H,q,K,J,Z,Q,ee,ne;const oe=null===(a=null==b?void 0:b.getInstance())||void 0===a?void 0:a.getAssetPath(),le=null===(u=null==he?void 0:he.getInstance())||void 0===u?void 0:u.getCartUrl(),[ie,de]=e.useState(!1),[re,ae]=e.useState(!1);let ce=c.get("chAddressJson");const ue=V(),[se,me]=e.useState(!1),pe=t.selectedTabId===r;e.useEffect((()=>{de(pe)}),[pe]);let ve=localStorage.getItem("lineCheckResponse"),ge=ve&&JSON.parse(ve),fe=ie?null==t?void 0:t.tvProductId:null==t?void 0:t.productId,be=ce&&(null===(s=null==ge?void 0:ge.eligibleBundle)||void 0===s?void 0:s.includes(fe));const we=e=>{var n,t,o,i,d;(null==e?void 0:e.productType)===F?(ve=localStorage.getItem("lineCheckResponse"),ce=c.get("chAddressJson"),ge=ve&&JSON.parse(ve),fe=ie?null==e?void 0:e.tvProductId:null==e?void 0:e.productId,be=ce&&(null===(n=null==ge?void 0:ge.eligibleBundle)||void 0===n?void 0:n.includes(fe)),be&&(0!==(null===(t=Object.keys(l))||void 0===t?void 0:t.length)&&Ge(ye,[l[null==e?void 0:e.productId]],"",Te),me(!0),0!==(null===(o=Object.keys(l))||void 0===o?void 0:o.length)&&te([l[fe]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:z,le,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",fe,{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),me(!1)})).finally((()=>{me(!1)})))):(null==e?void 0:e.productType)===G&&(me(!0),0!==(null===(i=Object.keys(l))||void 0===i?void 0:i.length)&&Ge(ye,[l[null==e?void 0:e.productId]],"",Te),0!==(null===(d=Object.keys(l))||void 0===d?void 0:d.length)&&te([l[null==e?void 0:e.productId]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:$,le,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),me(!1)})).finally((()=>{me(!1)})))},Ce=()=>{var o,i,d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w;let C,E;const k=localStorage.getItem("lineCheckResponse"),T=k&&JSON.parse(k),P=ie?null==t?void 0:t.tvProductId:null==t?void 0:t.productId,S=!(!k||(null==T?void 0:T.eligibleBundle.includes(P)));return C=(null===(o=l[null==t?void 0:t.productId])||void 0===o?void 0:o.derivedPrice)?null===(r=null===(d=null===(i=l[null==t?void 0:t.productId])||void 0===i?void 0:i.derivedPrice)||void 0===d?void 0:d[0])||void 0===r?void 0:r.value:null===(u=null===(c=null===(a=l[null==t?void 0:t.productId])||void 0===a?void 0:a.prices)||void 0===c?void 0:c[0])||void 0===u?void 0:u.value,E=(null===(s=l[null==t?void 0:t.tvProductId])||void 0===s?void 0:s.derivedPrice)?null===(v=null===(p=null===(m=l[null==t?void 0:t.tvProductId])||void 0===m?void 0:m.derivedPrice)||void 0===p?void 0:p[0])||void 0===v?void 0:v.value:null===(g=null===(h=null===(_=l[null==t?void 0:t.tvProductId])||void 0===_?void 0:_.prices)||void 0===h?void 0:h[0])||void 0===g?void 0:g.value,e.createElement("div",{className:`${Ee?_e.priceContainer:_e.priceContainerNew}`,style:{marginLeft:"left"===(null==t?void 0:t.containerAlignment)&&ue!==G?"40px":"",marginRight:"right"===(null==t?void 0:t.containerAlignment)&&ue!==G?"40px":""}},S&&(null==t?void 0:t.productType)===F&&e.createElement("div",{className:_e.serviceUnavail},e.createElement("img",{src:`${oe}/icons/not-available.svg`,alt:"",width:24,height:24}),null==n?void 0:n.serviceabilityError),(null===(x=null===(b=null===(f=l[null==t?void 0:t.productId])||void 0===f?void 0:f.prices)||void 0===b?void 0:b[0])||void 0===x?void 0:x.value)>0&&e.createElement("span",{className:`${_e.priceWrapper} ${"left"===(null==t?void 0:t.containerAlignment)&&"right"!==(null==t?void 0:t.textAlignment)&&ue!==G?_e.leftWrapper:""}`},e.createElement("div",{className:`${"center"!==(null==t?void 0:t.containerAlignment)&&"center"!==(null==t?void 0:t.textAlignment)&&ue!==G?_e.sliderNew:_e.slider} ${ie&&(null==t?void 0:t.productType)===F&&_e.clicked}`},C&&e.createElement("div",{className:_e.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:_e.pricetxt},e.createElement(X,{content:null==t?void 0:t.priceTxt})),N(C),e.createElement("p",{className:_e.priceDuration},null==t?void 0:t.conDuration)),E&&e.createElement("div",{className:_e.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:_e.pricetxt},null==t?void 0:t.priceTxt),N(E),e.createElement("p",{className:_e.priceDuration},null==t?void 0:t.conDuration))),be?e.createElement("button",{onClick:()=>we(t),className:`${"center"===(null==t?void 0:t.containerAlignment)||"center"===(null==t?void 0:t.textAlignment)||ue===G?_e.callCart:_e.callCartNew}`},null==t?void 0:t.buttonLbl,e.createElement("img",{className:_e.arrowIcon,src:null===(y=null==n?void 0:n.btnIcon)||void 0===y?void 0:y.filename,alt:"submit",width:24,height:24})):e.createElement("button",{onClick:()=>ae(!re),className:`${"center"===(null==t?void 0:t.containerAlignment)||"center"===(null==t?void 0:t.textAlignment)||ue===G?_e.callCart:_e.callCartNew}`},null==t?void 0:t.checkAvailability,e.createElement("img",{className:_e.arrowIcon,src:null===(w=null==n?void 0:n.btnIcon)||void 0===w?void 0:w.filename,alt:"submit",width:24,height:24}))),e.createElement("div",{className:"left"===(null==t?void 0:t.containerAlignment)&&"left"===(null==t?void 0:t.textAlignment)&&ue!==G?_e.priceDescCenter:"left"===(null==t?void 0:t.containerAlignment)&&"center"===(null==t?void 0:t.textAlignment)&&ue!==G?_e.priceLeftCenter:"center"===(null==t?void 0:t.containerAlignment)||"center"===(null==t?void 0:t.textAlignment)||ue===G?_e.priceDesc:_e.priceDescNew},null==t?void 0:t.priceDesc))},Ee=null==t?void 0:t.isFullWidthImage,Pe=ue===j&&"left"===(null==t?void 0:t.containerAlignment),Se=ue===j&&"right"===(null==t?void 0:t.containerAlignment),Ne=ue===j&&"center"===(null==t?void 0:t.containerAlignment),Le=ue===j&&"left"===(null==t?void 0:t.textAlignment),Ie=ue===j&&"right"===(null==t?void 0:t.textAlignment);return e.createElement("div",{className:""},e.createElement("div",{className:_e.carouselItem,key:o},se&&e.createElement(Y,{keyParams:"loading"}),ue===j&&(null===(p=null==t?void 0:t.desktopBGImage)||void 0===p?void 0:p.filename)&&Ee&&e.createElement("img",{src:(null===(v=null==t?void 0:t.desktopBGImage)||void 0===v?void 0:v.filename)+"/m/",alt:"desktop teaser",width:"100%",height:"550px",className:_e.teaserImage})," ",ue===j&&(null===(_=null==t?void 0:t.desktopBGImage)||void 0===_?void 0:_.filename)&&!Ee&&"center"!==(null==t?void 0:t.containerAlignment)&&e.createElement("img",{src:(null===(h=null==t?void 0:t.desktopBGImage)||void 0===h?void 0:h.filename)+"/m/",alt:"desktop teaser",width:"50%",height:"550px",className:`${"left"===(null==t?void 0:t.containerAlignment)?_e.teaserImageLeft:_e.teaserImageRight}`}),(ue===U||ue===W)&&(null===(g=null==t?void 0:t.tabBGImage)||void 0===g?void 0:g.filename)&&e.createElement("img",{src:null===(f=null==t?void 0:t.tabBGImage)||void 0===f?void 0:f.filename,alt:"tablet Teaser",width:"100%",height:"550px",className:_e.teaserImage}),ue===G&&(null===(x=null==t?void 0:t.mobileBGImage)||void 0===x?void 0:x.filename)&&e.createElement("img",{src:null===(y=null==t?void 0:t.mobileBGImage)||void 0===y?void 0:y.filename,alt:"mobile Teaser",width:"100%",height:"500px",className:_e.teaserImage}),e.createElement("div",{className:`${ue===U||ue===W?_e.contentWrapper:Pe?_e.contentWrapperLeft:Se?_e.contentWrapperRight:_e.contentMobWrapper}`},e.createElement("div",{className:`${Pe||Se?_e.productDetailsWrapperNew:Ne&&Ee?_e.productDetailsWrapper:Ne&&!Ee?_e.productDetailsWrapperTransparent:""}`},e.createElement("div",{className:`${_e.titleSection} ${(null===(w=null==n?void 0:n.productTeaserSlides)||void 0===w?void 0:w.length)>1&&_e.extraSpace}\n ${Le?"text-start":Ie?"text-end":"text-center"}\n `},(null==t?void 0:t.heading)&&e.createElement(e.Fragment,null,!ie&&e.createElement("div",{className:`${_e.heading}`},null==t?void 0:t.heading),(null==t?void 0:t.tvSubHeading)&&ie&&e.createElement("div",{className:`${_e.heading} ${ie?_e.fadeInText:_e.fadeOutText}`},null==t?void 0:t.tvSubHeading)),(null==t?void 0:t.subHeading)&&e.createElement("div",{className:_e.paragraph},null==t?void 0:t.subHeading),(null==t?void 0:t.description)&&e.createElement("div",{className:_e.description},e.createElement(X,{content:null==t?void 0:t.description}))),e.createElement("div",null,Ne&&(null===(C=null==t?void 0:t.desktopBGImage)||void 0===C?void 0:C.filename)&&!Ee&&e.createElement("img",{src:(null===(E=null==t?void 0:t.desktopBGImage)||void 0===E?void 0:E.filename)+"/m/",alt:"transparent Image",width:"196px",height:"196px"})),e.createElement("div",{className:_e.featureSection},(null===(k=null==t?void 0:t.details)||void 0===k?void 0:k.length)>0&&e.createElement("div",{className:_e.featureList},null===(T=(null==t?void 0:t.details)||[])||void 0===T?void 0:T.map(((n,t)=>{var o,l,i;return e.createElement(e.Fragment,null,t>0&&ue!==G&&e.createElement("div",{className:_e.horizontalLine}),e.createElement("div",{className:_e.features},(null===(o=null==n?void 0:n.icon)||void 0===o?void 0:o.filename)&&e.createElement("img",{className:_e.featureIcon,src:ue===G?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(X,{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(xe,{content:null==n?void 0:n.tooltipTxt,tooltipClass:_e.toolTip}))))}))),ue===G&&(null==t?void 0:t.productType)===F&&(null===(P=Object.keys(l))||void 0===P?void 0:P.length)>0&&e.createElement("div",{className:_e.horizontalLineDark}),(null==t?void 0:t.productType)===F&&(null===(S=null==t?void 0:t.tvDetails)||void 0===S?void 0:S.length)>0&&""!==(null==t?void 0:t.tvProductId)&&e.createElement("div",{className:_e.addOnSection},e.createElement("img",{src:ue===G?null===(O=null===(I=null===(L=null==t?void 0:t.tvDetails)||void 0===L?void 0:L[0])||void 0===I?void 0:I.mobIcon)||void 0===O?void 0:O.filename:null===(B=null===(A=null===(D=null==t?void 0:t.tvDetails)||void 0===D?void 0:D[0])||void 0===A?void 0:A.icon)||void 0===B?void 0:B.filename,className:_e.addOnSectionIcon,alt:"tv",width:24,height:24}),e.createElement(X,{content:null===(R=null===(M=null==t?void 0:t.tvDetails)||void 0===M?void 0:M[0])||void 0===R?void 0:R.text}),e.createElement("span",{className:`d-flex align-items-center ${_e.toggleSection}`},e.createElement("span",{className:_e.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,r,a,c,u,s;de(!ie),d(!ie),c=ie?"toggle_off_configurator":"toggle_on_configurator",u=null==t?void 0:t.heading,s=(null===(a=null===(r=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===r?void 0:r[0])||void 0===a?void 0:a.text).replace(/[^a-zA-Z ]/g,""),window.dataLayer.push({event:ke,event_name:c,headline:u,selection:s})},checked:ie})),(null===(q=null===(H=null==t?void 0:t.tvDetails)||void 0===H?void 0:H[0])||void 0===q?void 0:q.tooltipTxt)&&e.createElement(xe,{content:null===(J=null===(K=null==t?void 0:t.tvDetails)||void 0===K?void 0:K[0])||void 0===J?void 0:J.tooltipTxt,tooltipClass:_e.toolTip}))),ue===G&&(null===(Z=Object.keys(l))||void 0===Z?void 0:Z.length)>0&&e.createElement(e.Fragment,null,e.createElement("div",{className:_e.horizontalLineDark}),Ce()))),ue!==G&&(null===(Q=Object.keys(l))||void 0===Q?void 0:Q.length)>0&&e.createElement(e.Fragment,null,Ce()),re&&(null==t?void 0:t.productType)===F&&(null===(ee=null==n?void 0:n.linecheckData)||void 0===ee?void 0:ee.length)>0&&e.createElement(ct,{content:null===(ne=null==n?void 0:n.linecheckData)||void 0===ne?void 0:ne[0],onSuccess:()=>{ae(!1),we(t),i()},showModal:re,setShowModal:ae,productName:null==t?void 0:t.heading}))))};var st={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",mobilecard:"LineTableV3Refined-module_mobilecard__GW9e3",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",images:"LineTableV3Refined-module_images__9j18U",imagespace:"LineTableV3Refined-module_imagespace__o5gPc",borderimage:"LineTableV3Refined-module_borderimage__mgiVb",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"};g("/* 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@media (max-width: 767px) {\n .LineTableV3Refined-module_mobilecard__GW9e3 {\n width: calc(100vw - 70px);\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 margin-top: -7px;\n}\n\n.LineTableV3Refined-module_images__9j18U {\n margin-right: -40px;\n}\n\n.LineTableV3Refined-module_imagespace__o5gPc {\n overflow: hidden;\n width: 100%;\n height: 100%;\n margin-left: -20px;\n margin-top: 30px;\n}\n\n.LineTableV3Refined-module_borderimage__mgiVb {\n padding: 0 4px;\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: 4px;\n color: #ffffff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 16px;\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 mt=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=V(),d=e.useRef(),r=parseInt(n.carouselIndex,10);let a=!1;return e.useEffect((()=>{const e=window.innerWidth;a=e<767,setTimeout((()=>{var e;(!a&&r>2||a)&&(null===(e=d.current)||void 0===e||e.goToSlide(r,!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:d,customTransition:"transform 1s ease"},n.children)};var pt={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"};g('/* 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-bottom: 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 vt=({content:n,entitlementConfig:t,indexKey:o,listlength:l,showModalPopup:i,sbStaticConstants:d,tabIndex:r,countryList:a,metadata:c})=>{var u;const[s,m]=e.useState(!1),p=e.useRef(null),v=null===(u=null==b?void 0:b.getInstance())||void 0===u?void 0:u.getAssetPath();e.useEffect((()=>{setTimeout((()=>{_()}),100)}),[s]);const _=()=>{P(`product-configv3${r}`,l),P(`detailsectionv3${r}`,l)};return e.createElement("div",{ref:p},e.createElement("div",{className:pt.productdetailswrapper},e.createElement("div",{className:pt.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:pt.imagecontainer})):"",e.createElement("span",{className:pt.displayname},null==n?void 0:n.name),(null==n?void 0:n.tooltip)?e.createElement("div",{className:pt.bundletooltip,style:{marginLeft:"auto"}},e.createElement(xe,{content:null==n?void 0:n.tooltip})):""),e.createElement("div",{className:pt.configdetailssection},(null==n?void 0:n.tvChannelName)&&"TV"===(null==n?void 0:n.poType)&&e.createElement("div",{className:pt.newmodal,onClick:()=>{i()}},e.createElement("div",{className:pt.tvHeading},null==n?void 0:n.tvChannelName),e.createElement("div",{className:pt.changeBtn},d.changeText),e.createElement("img",{src:`${v}/icons/chevron-down-red.svg`,height:24,width:24,alt:""})),(null==n?void 0:n.includeDescription)?e.createElement("div",{className:pt.productdetailsdescription,id:`entitledespV3${o}`},e.createElement(X,{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:pt.entitlementvalue},(null==n?void 0:n.icon)&&e.createElement("div",{className:pt.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)?pt.disabled:""},null==n?void 0:n.entitlement,(null==n?void 0:n.toolTipText)&&e.createElement("div",{className:pt.bundletooltip},e.createElement(xe,{content:null==n?void 0:n.toolTipText})))):"")))),(null==t?void 0:t.length)>2&&e.createElement("div",{className:pt.showmore,onClick:()=>m(!s)},s?null==d?void 0:d.show_less:null==d?void 0:d.show_more)),(null==n?void 0:n.linkText)&&e.createElement(le,{product:a,linkText:null==n?void 0:n.linkText,metadata:c,reuseableLineTable:!0}))))};var _t="SkeletonLoader-module_reactloadingskeletonV3__hLl73";g('/* 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 ht=({count:n=1,stylename:t=""})=>e.createElement("div",null,e.createElement(p,{className:`${_t} ${t}`,count:n})),gt=({content:n,priceCollection:t,toggleSwitch:o,sbStaticConstants:l})=>{var i,d,r,a,c,u;const s=null!==(i=null==t?void 0:t.base)&&void 0!==i?i:0;let m=null!==(a=null===(r=null===(d=null==t?void 0:t.discount)||void 0===d?void 0:d[0])||void 0===r?void 0:r.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 p=null==t?void 0:t.discount,v=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:`${pt.pricecontainer}`},e.createElement("span",{className:`${pt.discountedprice} ${o&&!(v>0||_>0)?"":o||v>0||_>0||(null==p?void 0:p.length)>0?pt.promo:""}`},N(m>0&&!o?m:s),e.createElement("span",{className:`${pt.duration}`},null==l?void 0:l.mt)),s&&(v>0||_>0||!o&&p.length>0)&&e.createElement("span",{className:`${pt.basePriceAfterDiscount}`},N(s)),e.createElement("div",null,null==n?void 0:n.promoText)),!o&&!_&&!v&&(null==p?void 0:p.length)>0&&(null===(u=null==p?void 0:p[0])||void 0===u?void 0:u.cycleEnd)&&e.createElement("div",null,e.createElement("div",{className:pt.pricedisplay},p.length>0&&p.map((n=>(720===(null==n?void 0:n.cycleEnd)&&(h=!0),e.createElement(e.Fragment,null," ",e.createElement("span",{className:pt.pricelabel},h?null==l?void 0:l.lifetime_label:e.createElement(e.Fragment,null," ",1!=n.cycleStart&&e.createElement(e.Fragment,null,"CHF"," ",N(n.value))," ",1===n.cycleStart?D(null==l?void 0:l.promo_first_lt,[n.cycleEnd]):D(null==l?void 0:l.promo_next_lt,[n.cycleEnd-n.cycleStart+1]))))))),!h&&e.createElement("span",null," ",D(null==l?void 0:l.promo_then_lt,[N(s)]))))):e.createElement(ht,{stylename:pt.blockskeleton}))};var ft="ProductDetailsV2-module_productmodal__2B7qv",bt="ProductDetailsV2-module_container__dH9t4",xt="ProductDetailsV2-module_backbtn__5E2Ow",yt="ProductDetailsV2-module_closebtn__vonVN",wt="ProductDetailsV2-module_cartbtn__lmC7O",Ct="ProductDetailsV2-module_check-footer__iuqqZ",Et="ProductDetailsV2-module_footer-linetablev3__bo9Qj";g("/* 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 kt=({modalState:n,handler:l,showFooter:i,footerNode:d,children:r,width:a,height:c,backButton:u})=>{var s;const m=null===(s=null==b?void 0:b.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:ft},e.createElement(t.Header,null,e.createElement("div",{onClick:l,className:`${bt}`},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:xt},u))),e.createElement("div",{className:`${yt} me-3 mt-3`},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,r),i&&e.createElement(t.Footer,null,d))},Tt=({content:n,isMobileFlow:t,sbStaticConstants:o,address:l,isAvailable:i,showPrice:d,createCartCall:r,updatedContent:a})=>{var c;const[u,s]=e.useState(!1);return e.useEffect((()=>{!t&&!i||""===(null==d?void 0:d.base)?s(!0):s(!1)}),[n,d,i]),e.createElement("div",null,t?(null==a?void 0:a.swapButton)?(null==a?void 0:a.ctaLinkLabel)&&e.createElement("a",{onClick:r,className:`${u&&st.disabled}`},null==a?void 0:a.ctaLinkLabel):e.createElement("button",{className:`primarybutton ${u&&st.disabled}`,onClick:r,disabled:u},e.createElement("span",{className:st.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&&st.disabled}`,onClick:r,disabled:u},e.createElement("span",{className:st.buttontext},null==o?void 0:o.addToCartBtnTxt))):e.createElement("button",{onClick:r,className:"configurebutton"},e.createElement("span",null,null==o?void 0:o.check_availability))))},Pt=({products:n,showProductDetail:t,setShowProductDetail:o,content:l,priceCollection:i,addToCart:d,sbStaticConstants:r,createCartCall:a,contractDuration:c})=>{var u;const[s,m]=e.useState(!0);let p=[],v="";n&&n.length>0&&(null==n||n.map((e=>{p=null==e?void 0:e.modalBody,v=null==e?void 0:e.backButton})));return e.createElement(e.Fragment,null,t&&e.createElement(e.Fragment,null,e.createElement(kt,{modalState:s,handler:()=>{m(!s),o(!t)},showFooter:!1,height:"100%",backButton:v},e.createElement(e.Fragment,null,null==p?void 0:p.map(((n,t)=>e.createElement(ae,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===B&&e.createElement(K,{content:n,key:t}),(null==n?void 0:n.component)===R&&e.createElement(se,{content:n}),(null==n?void 0:n.component)===M&&e.createElement(ue,{content:n}))))),e.createElement("div",{className:`footer-main ${Ct} `},e.createElement("span",{className:`${Et}`},e.createElement("div",null,e.createElement(gt,{content:l,priceCollection:i,sbStaticConstants:r}),e.createElement("div",null,c?D(null===(u=null==r?void 0:r.minContractDuration)||void 0===u?void 0:u.substring(1),[c]):null==r?void 0:r.simo_no_contract_term)),e.createElement("div",{className:wt},e.createElement(Tt,{content:l,sbStaticConstants:r,isAvailable:null==d?void 0:d.isAvailable,showPrice:i,isSkeletonLoading:null==d?void 0:d.isSkeletonLoading,isMobileFlow:null==d?void 0:d.isMobileFlow,createCartCall:a,address:null==d?void 0:d.address}))))))))};var St={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"};g("/* 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 Nt="EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h-",Lt="EntertainmentOptionsV2-module_cardinputelement__00RZZ",It="EntertainmentOptionsV2-module_card__LqNAf";g('/* 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 Vt="ReactInputSelectV2-module_selectcontainer__neygJ",Ot="ReactInputSelectV2-module_downArrowIcon__KGx-5",Dt="ReactInputSelectV2-module_transform180__XCHJs",At="ReactInputSelectV2-module_errormessage__FF0WO";g('/* 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 Bt=e.forwardRef((({name:n,options:t,content:o,isSearchable:l=!0,disableValues:i=[],defaultValue:d="",optionsValue:r="value",optionsLabel:a="label",isDisabled:c=!1,isClearable:u=!0,onChange:s},m)=>{const[p,_]=e.useState(!1),[h,g]=e.useState(d),[f,b]=e.useState(!1),[x,y]=e.useState(!1);Boolean(h)==x&&y(!x);return e.createElement("div",{className:Vt},e.createElement(v,{className:`react-select-container ${x&&"errorborder"}`,styles:(w=x&&p,{control:e=>Object.assign(Object.assign({},e),w&&{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(v.components.DropdownIndicator,Object.assign({},n),e.createElement("span",{className:`${Ot} ${n.selectProps.menuIsOpen?Dt:""}`})),IndicatorSeparator:null},value:h,onChange:e=>{g(e),"function"==typeof s&&s(e?{name:n,value:e}:{name:n,value:{[r]:"",[a]:""}})},isClearable:u,placeholder:"",onFocus:()=>b(!0),onBlur:()=>{!p&&_(!0),b(!1)},backspaceRemovesValue:!0,options:t,ref:m,getOptionLabel:e=>e[a],getOptionValue:e=>e[r],isOptionDisabled:e=>i.includes(e[r]),isDisabled:c,isSearchable:l}),e.createElement("label",{className:`${(h&&h[r]&&h[a]||f)&&"activeLabel"} selectcomplabel`},o.label),x&&p&&e.createElement("span",{className:At},o.errorMessage));var w})),Mt=({className:n="",name:t="demo",content:o,checked:l,options:i,setProduct:d,onclick:r,localeID:a,type:c="radio",langSelected:u})=>{var s,m;const[p,v]=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]),g=null==o?void 0:o.productId,[f,b]=e.useState(g);return e.useEffect((()=>{try{const e=null===localStorage||void 0===localStorage?void 0:localStorage.getItem("sbstaticcontent");if(""!==e){const n=e&&JSON.parse(e);v(Object.assign(Object.assign({},p),{details:null==n?void 0:n.details,included:null==n?void 0:n.included}))}}catch(e){}}),[]),e.createElement("label",{className:`${Nt} ${n}`,onClick:r},e.createElement("input",{type:c,name:t,value:f,className:`${Lt} d-none`,id:"demo1","data-additional":null==o?void 0:o.tvGroup,checked:l,readOnly:!0}),e.createElement("div",{className:`${It} 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(X,{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(Bt,{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));d(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==p?void 0:p.included))))},Rt=({content:t,showModal:o,setShowModal:l,setEntertainment:d,setTvChannelName:r,radioValue:a,setRadioValue:c,metadata:u})=>{var s,m,p,v;const _=null==t?void 0:t.ids,[h,g]=e.useState([]),x=null==u?void 0:u.lang,[y,w]=e.useState([]),[C,E]=e.useState({}),k=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),T=null===(m=null==b?void 0:b.getInstance())||void 0===m?void 0:m.getAssetPath(),P=localStorage.getItem("sbstaticcontent"),S=P&&JSON.parse(P),N=["NETFLIX","TVBOX","TVAPP"],L={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,L).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)})),g(o)}),[x]),e.useEffect((()=>{a&&h&&h.map((e=>{var n,t,o,l,i,d,c,u,s,m,p,v;(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===(d=null===(i=null===(l=e.content)||void 0===l?void 0:l.body)||void 0===i?void 0:i[0])||void 0===d?void 0:d.code)===a&&r((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===(v=null===(p=null===(m=null==e?void 0:e.content)||void 0===m?void 0:m.body)||void 0===p?void 0:p[0])||void 0===v?void 0:v.tvLang))}))}),[a]);const I=()=>{l(!1)},V=e=>{c(e.target.value)},O=H,D=e=>{c(e)},A=e=>{const n=[],t=[],o={};let l="";e.map((e=>{var i,d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P,S;const L=null===(r=null===(d=null===(i=e.content)||void 0===i?void 0:i.body)||void 0===d?void 0:d[0])||void 0===r?void 0:r.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===(p=null===(m=null===(s=e.content)||void 0===s?void 0:s.body)||void 0===m?void 0:m[0])||void 0===p?void 0:p.code),n.includes(L)||(N.includes(L)||"DE"===(null===(h=null===(_=null===(v=null==e?void 0:e.content)||void 0===v?void 0:v.body)||void 0===_?void 0:_[0])||void 0===h?void 0:h.tvLang))&&(n.push(L),t.push(null===(f=null===(g=null==e?void 0:e.content)||void 0===g?void 0:g.body)||void 0===f?void 0:f[0])),(null===(b=o[L])||void 0===b?void 0:b.length)||(o[L]=[]),o[L].push({name:null===(w=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===w?void 0:w.tvLang,value:O[null===(k=null===(E=null===(C=null==e?void 0:e.content)||void 0===C?void 0:C.body)||void 0===E?void 0:E[0])||void 0===k?void 0:k.tvLang],prod:null===(S=null===(P=null===(T=null==e?void 0:e.content)||void 0===T?void 0:T.body)||void 0===P?void 0:P[0])||void 0===S?void 0:S.code})})),E(o),""==a&&c(l);const i=t.filter((e=>"NETFLIX"===(null==e?void 0:e.tvGroup))),d=t.indexOf(i[0]),r=t.splice(d,1)[0];t.splice(0,0,r),w(t)};return e.createElement(e.Fragment,null,e.createElement(i.Modal,{contentClassName:St.errormodalbox,show:o,dialogClassName:St.errordialog,onHide:I,centered:!0},e.createElement(i.Modal.Header,{className:St.header,closeButton:!0,onClick:I}),e.createElement("div",{className:St.errorwrapper},e.createElement(i.Modal.Title,{className:St.title},(null===(p=null==t?void 0:t.product)||void 0===p?void 0:p.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:St.body},y&&y.map(((n,t)=>{var o;let l="",i=!1;const d=null===(o=C[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(Mt,{key:t,content:n,value:t,options:C[null==n?void 0:n.tvGroup],setProduct:D,onclick:V,localeID:x,checked:d,langSelected:l})}))))),""!=a&&e.createElement(i.Modal.Footer,{className:St.footer},e.createElement("div",{className:"row w-100"},e.createElement("div",{className:"text-center"},e.createElement("button",{className:`${St.confirmBtn} primarybutton`,onClick:()=>(e=>{var n,o,i,r,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})),p={ignoreId:"",selectedEntertainmentProduct:[]};(null===(r=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===r?void 0:r.productId)&&e!==(null==t?void 0:t.product)&&(p.ignoreId=null==t?void 0:t.product,p.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]})),d&&d(p),l(!1)})(a)},(null===(v=null==t?void 0:t.product)||void 0===v?void 0:v.includes("Netflix"))?e.createElement(e.Fragment,null,S.confirm_your_choice,e.createElement("img",{className:St["img-tick"],src:`${T}/icons/tick.svg`,height:24,width:24,alt:""})):null==S?void 0:S.continue))))))},Ft=({content:n,priceCollection:t,sbStaticConstants:o})=>{const l=null==t?void 0:t.int_fmc,i=null==t?void 0:t.mob_fmc,d=null==t?void 0:t.mob_benefit_category,r=n=>e.createElement("span",{className:pt.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:`${pt.text} ms-2`},e.createElement(X,{content:null==n?void 0:n.text})));return e.createElement("div",null,e.createElement("div",{className:pt.optioncontainer},e.createElement("div",{className:pt.optionlist},(null==n?void 0:n.length)>0&&e.createElement("span",{className:pt.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"!=d||"multimob_fmc"==(null==n?void 0:n.id)&&i>0&&"MULTIMOBILE"==d||"combi_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==d?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)&&!(null==n?void 0:n.isMobileFMC)&&e.createElement(e.Fragment,null,r(n)),(null==n?void 0:n.text)&&"MULTIMOBILE"===d&&(null==n?void 0:n.isMMC)&&e.createElement(e.Fragment,null,r(n)),(null==n?void 0:n.text)&&"FMC"===d&&(null==n?void 0:n.isMobileFMC)&&e.createElement(e.Fragment,null,r(n)))),e.createElement("span",null,(null==n?void 0:n.toolTip)&&e.createElement(xe,{content:null==n?void 0:n.toolTip,isBenefit:!0}))):"")))))};var zt={giftcontainer:"GiftConfigV2-module_giftcontainer__bUNTl",gifttitle:"GiftConfigV2-module_gifttitle__5SMQP",giftlist:"GiftConfigV2-module_giftlist__dZ-r-",giftsection:"GiftConfigV2-module_giftsection__-QBuQ",gifticon:"GiftConfigV2-module_gifticon__OcniV",giftdescription:"GiftConfigV2-module_giftdescription__5v6-A",description:"GiftConfigV2-module_description__UIoTt",gifttooltip:"GiftConfigV2-module_gifttooltip__1Lq-I",list:"GiftConfigV2-module_list__O4AOP"};g("/* 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.GiftConfigV2-module_giftcontainer__bUNTl {\n display: flex;\n flex-direction: column;\n border: 1px solid #B6C8C0;\n background: rgba(153, 178, 167, 0.1);\n border-radius: 8px;\n padding: 16px;\n margin: 0 0 10px;\n}\n@media (max-width: 1023px) {\n .GiftConfigV2-module_giftcontainer__bUNTl {\n padding: 10px;\n margin-bottom: 8px;\n }\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_gifttitle__5SMQP {\n font-size: 16px;\n line-height: 24px;\n font-weight: bold;\n margin-left: 11px;\n padding-top: 2px;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_giftsection__-QBuQ {\n display: flex;\n align-items: center;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_gifticon__OcniV {\n position: relative;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_giftdescription__5v6-A {\n display: inline-block;\n font-size: 14px;\n line-height: 20px;\n color: #606060;\n margin-left: 8px;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_giftdescription__5v6-A .GiftConfigV2-module_description__UIoTt {\n font-weight: 700;\n color: #3d3935;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_gifttooltip__1Lq-I {\n float: right;\n position: relative;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_list__O4AOP {\n margin-top: 8px;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_list__O4AOP {\n margin: 8px 0;\n }\n}");const $t=({content:n})=>{var t,o,l;return e.createElement("div",null,e.createElement("div",{className:zt.giftcontainer},e.createElement("div",{className:zt.giftlist},(null==n?void 0:n.giftIcon)&&(null===(t=null==n?void 0:n.giftIcon)||void 0===t?void 0:t.filename)&&e.createElement("span",{className:zt.gifticon},e.createElement("img",{src:null===(o=null==n?void 0:n.giftIcon)||void 0===o?void 0:o.filename,width:24,height:24})),e.createElement("span",{className:zt.gifttitle},null==n?void 0:n.title),e.createElement("span",{className:zt.gifttooltip},(null==n?void 0:n.tooltipText)&&e.createElement(xe,{content:null==n?void 0:n.tooltipText,isBenefit:!0}))),e.createElement("div",{className:zt.list},e.createElement("div",{className:zt.giftlist},e.createElement("div",{className:zt.giftsection},(null==n?void 0:n.giftIcon)&&e.createElement("span",{className:zt.gifticon},e.createElement("img",{src:null===(l=null==n?void 0:n.giftImage)||void 0===l?void 0:l.filename,width:64,height:64})),e.createElement("div",{className:zt.giftdescription},e.createElement("span",{className:zt.description},null==n?void 0:n.giftName),e.createElement("br",null),e.createElement("span",{className:zt.giftprice},null==n?void 0:n.price)))))))};var Gt={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"};g("/* 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 Wt=({content:n,selectedGiftItem:t,parentPoType:o})=>{var l,i,d;const[r,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:Gt.giftcontainer},e.createElement("div",{className:Gt.giftlist},e.createElement("span",{className:Gt.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:Gt.gifttitle},null==n?void 0:n.title),e.createElement("div",{className:Gt.gifttooltip},e.createElement(xe,{content:null==n?void 0:n.tooltipText}))),e.createElement("div",{className:Gt.giftsection},null===(d=null==n?void 0:n.listOfGifts)||void 0===d?void 0:d.map(((l,i)=>{var d;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:`${Gt.giftimagecontainer} ${i===r&&Gt.giftimg}`},e.createElement("img",{src:null===(d=l.image)||void 0===d?void 0:d.filename,width:64,height:64}))}))),e.createElement("div",{className:Gt.giftdescription},e.createElement("span",{className:Gt.description},null==c?void 0:c.title)," ",e.createElement("br",null),e.createElement("span",{className:Gt.giftprice},(null==c?void 0:c.description)&&e.createElement(X,{content:null==c?void 0:c.description})))))};var jt="CashbackV2-module_cashbackcontainer__uRM1Z",Ut="CashbackV2-module_cashbackmodule__kYlg6",Ht="CashbackV2-module_cashbackicon__fDkXT",qt="CashbackV2-module_cashbackimage__led6d",Xt="CashbackV2-module_cashbacktitle__su2j2",Kt="CashbackV2-module_cashbacktooltip__MdcgY",Jt="CashbackV2-module_cashbackdescription__-UtWu";g("/* 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 Yt=({content:n})=>{var t,o;return e.createElement("div",null,e.createElement("div",{className:`${jt} cashbackv2container`},e.createElement("div",{className:Ut},e.createElement("div",null,e.createElement("span",{className:Ht},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:Xt},null==n?void 0:n.title),e.createElement("span",{className:Kt},(null==n?void 0:n.tooltiptext)&&e.createElement(xe,{content:null==n?void 0:n.tooltiptext}))),e.createElement("div",{className:qt},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:Jt},null==n?void 0:n.description)))))},Zt=({content:n,cards:t,metadata:o,indexKey:l,offeringData:i,uniqueId:d,tabIndex:r,lineCheckCallBack:a,sbStaticConstants:u,address:s,eligibleBundle:m,summaryUrl:p,isMobileFlow:v,updatedContent:g,lineTableContent:x})=>{var y,w,C,E,k,T,S,N,L,I,V,O,A,B,M,R,F,G,W,j,U,H,q;const[K,J]=e.useState({}),[Z,ee]=e.useState({}),[ne,oe]=e.useState(),[le,ie]=e.useState(""),[de,re]=e.useState(""),[ae,ce]=e.useState(!1),[ue,se]=e.useState(!1),[me,pe]=e.useState(!1),[ve,_e]=e.useState([]),he=null===(y=null==b?void 0:b.getInstance())||void 0===y?void 0:y.getAssetPath(),[ge,fe]=e.useState(!1),[be,xe]=e.useState(!1),we=null==K?void 0:K.code,Ce=((null==i?void 0:i[d])||[]).filter((e=>(null==e?void 0:e.id)===we)),Te=((e,n,t)=>{var o,l,i,d,r,a,c,u,s,m;const p={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;p.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())?p.base=null==e?void 0:e.value:"one time"===(null===(t=null==e?void 0:e.priceType)||void 0===t?void 0:t.toLowerCase())&&(p.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,p.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,d,r,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)?p.int_fmc+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(p.mob_fmc+=Number(null==e?void 0:e.value),p.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)&&(p.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===(r=null===(d=null==e?void 0:e.promotionInfo)||void 0===d?void 0:d[0])||void 0===r?void 0:r.id)&&(p.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)||(p.contractDuration=null===(r=null===(d=null==e?void 0:e[0])||void 0===d?void 0:d.promotionInfo)||void 0===r?void 0:r[0].contractDuration,p.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 v=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)?v+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(p.mob_fmc+=Number(null==e?void 0:e.value),p.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==p?void 0:p.contractDuration)||n||(p.contractDuration="12"),p.int_fmc=t?v:p.int_fmc,p})(Ce,v),Ne=null===(w=null==f?void 0:f.getInstance())||void 0===w?void 0:w.getCartUrl(),[Le,Ie]=e.useState(!1);let Ve;if(K){const e=null==K?void 0:K.code;Ve=s&&(null===(C=null==m?void 0:m.eligibleBundle)||void 0===C?void 0:C.includes(e))}const Oe=void 0!==typeof window&&document.getElementById("reusable-linetable");e.useEffect((()=>{var e,n;const t=null==Ce?void 0:Ce.filter((e=>e&&e.id===(null==K?void 0:K.code)));se((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})(v?t:null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.bundledOffers)),pe((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})(v?t:null===(n=null==t?void 0:t[0])||void 0===n?void 0:n.bundledOffers))}),[K,Ce]),e.useEffect((()=>{var e,t,o;if(null==n?void 0:n.productStroyObj){const l=((e,n,t)=>{var o,l,i,d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P,S,N,L,I,V,O,D,A,B,M,R,F,z,$,G,W,j,U,H,q,X,K,J,Y,Z,ee,ne,te,oe,le,ie,de,re,ae,ce,ue,se,me,pe,ve,_e,he,ge,fe,be,xe,ye,we,Ce,Ee,ke;const Te={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:"",cardImg:"",bestSellerColor:""},Pe=n?null==e?void 0:e.productStroyObj.stroy:null==e?void 0:e.productStroyObj;if(Te.displayName=null===(i=null===(l=null===(o=null==Pe?void 0:Pe.content)||void 0===o?void 0:o.body)||void 0===l?void 0:l[0])||void 0===i?void 0:i.displayName,Te.code=null===(a=null===(r=null===(d=null==Pe?void 0:Pe.content)||void 0===d?void 0:d.body)||void 0===r?void 0:r[0])||void 0===a?void 0:a.code,Te.highlightText=null==e?void 0:e.highlightText,Te.promoText=null===(s=null===(u=null===(c=null==Pe?void 0:Pe.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.promoText,Te.cardImg=null===(_=null===(v=null===(p=null===(m=null==Pe?void 0:Pe.content)||void 0===m?void 0:m.body)||void 0===p?void 0:p[0])||void 0===v?void 0:v.img)||void 0===_?void 0:_.filename,null==e?void 0:e.promStroyObj){const t={};Te.promoID=null===(h=null==e?void 0:e.promStroyObj)||void 0===h?void 0:h.prom,Te.serviceOptions.promotion=null===(g=null==e?void 0:e.promStroyObj)||void 0===g?void 0:g.prom;const o=null===(f=null==e?void 0:e.promStroyObj)||void 0===f?void 0:f.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===(b=null==e?void 0:e.promStroyObj)||void 0===b?void 0:b.isDefault,t.displayText=null==i?void 0:i.displayText,t.bestSellerColor=null==i?void 0:i.bestSellerColor,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===(x=null==e?void 0:e.products)||void 0===x?void 0:x.dontShowPromotion)||(Te.priceDisplayText=null==i?void 0:i.displayText,Te.bestSellerColor=null==i?void 0:i.bestSellerColor);break}}Te.promoObj.push(t)}if(n){if(Te.description=null===(Z=null===(Y=null===(J=null==Pe?void 0:Pe.content)||void 0===J?void 0:J.body)||void 0===Y?void 0:Y[0])||void 0===Z?void 0:Z.introText,Te.productDetailsModal=null===(te=null===(ne=null===(ee=null==Pe?void 0:Pe.content)||void 0===ee?void 0:ee.body)||void 0===ne?void 0:ne[0])||void 0===te?void 0:te.subscriptionDetailModal,Te.icon=null===(de=null===(ie=null===(le=null===(oe=null==Pe?void 0:Pe.content)||void 0===oe?void 0:oe.body)||void 0===le?void 0:le[0])||void 0===ie?void 0:ie.prodImage)||void 0===de?void 0:de.filename,Te.pageType="MOBILE",Te.countryListUrl={reference:null===(ue=null===(ce=null===(ae=null===(re=null==Pe?void 0:Pe.content)||void 0===re?void 0:re.body)||void 0===ae?void 0:ae[0])||void 0===ce?void 0:ce.countryList)||void 0===ue?void 0:ue.cached_url},(null===(pe=null===(me=null===(se=null==Pe?void 0:Pe.content.body)||void 0===se?void 0:se[0])||void 0===me?void 0:me.entitlementConfig)||void 0===pe?void 0:pe.length)>0){const e=[];null===(he=null===(_e=null===(ve=null==Pe?void 0:Pe.content.body)||void 0===ve?void 0:ve[0])||void 0===_e?void 0:_e.entitlementConfig)||void 0===he||he.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)})),Te.productConfig=e}if((null===(xe=null===(be=null===(fe=null===(ge=null==Pe?void 0:Pe.content)||void 0===ge?void 0:ge.body)||void 0===fe?void 0:fe[0])||void 0===be?void 0:be.extraOptions)||void 0===xe?void 0:xe.length)>0){const e=[];null===(Ee=null===(Ce=null===(we=null===(ye=null==Pe?void 0:Pe.content)||void 0===ye?void 0:ye.body)||void 0===we?void 0:we[0])||void 0===Ce?void 0:Ce.extraOptions)||void 0===Ee||Ee.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,isMobileFMC:null==n?void 0:n.isFMC};null==e||e.push(o)})),Te.benefitsSection=e}(null===(ke=null==t?void 0:t.addSmartphone)||void 0===ke?void 0:ke.length)>0&&(Te.addSmartPhone=null==t?void 0:t.addSmartphone)}else{const e=["NETFLIX","SPORTS"];if(Te.description=null===(C=null===(w=null===(y=null==Pe?void 0:Pe.content)||void 0===y?void 0:y.body)||void 0===w?void 0:w[0])||void 0===C?void 0:C.description,Te.productDetailsModal=null===(T=null===(k=null===(E=null==Pe?void 0:Pe.content)||void 0===E?void 0:E.body)||void 0===k?void 0:k[0])||void 0===T?void 0:T.productDetailsModal,Te.pageType="HOME",(null===(L=null===(N=null===(S=null===(P=null==Pe?void 0:Pe.content)||void 0===P?void 0:P.body)||void 0===S?void 0:S[0])||void 0===N?void 0:N.products)||void 0===L?void 0:L.length)>0){const n=Q(null===(O=null===(V=null===(I=null==Pe?void 0:Pe.content)||void 0===I?void 0:I.body)||void 0===V?void 0:V[0])||void 0===O?void 0:O.products);if((null==n?void 0:n.length)>0){const t=[],o=[];null==n||n.map((n=>{var l,i,d,r;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===(d=null==n?void 0:n.entitlementConfig)||void 0===d?void 0:d.length)>0&&(null===(r=null==n?void 0:n.entitlementConfig)||void 0===r||r.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)&&(Te.serviceOptions.poType="TV",Te.serviceOptions.radioValue=null==n?void 0:n.code,"NETFLIX"==(null==n?void 0:n.tvGroup)?Te.serviceOptions.tvChannelName="Netflix":"SPORTS"==(null==n?void 0:n.tvGroup)?Te.serviceOptions.tvChannelName=(null==n?void 0:n.displayName)+" "+(null==n?void 0:n.tvLang):Te.serviceOptions.tvChannelName="TV Box",Te.serviceOptions.avalaible=!0,Te.serviceOptions.product=null==n?void 0:n.code,Te.serviceOptions.ids.add(null==n?void 0:n.tvGroupProdPath))})),Te.productConfig=t,Te.entitlementConfig=o}}if((null===(M=null===(B=null===(A=null===(D=null==Pe?void 0:Pe.content)||void 0===D?void 0:D.body)||void 0===A?void 0:A[0])||void 0===B?void 0:B.benefitsSection)||void 0===M?void 0:M.length)>0){const e=[];null===($=null===(z=null===(F=null===(R=null==Pe?void 0:Pe.content)||void 0===R?void 0:R.body)||void 0===F?void 0:F[0])||void 0===z?void 0:z.benefitsSection)||void 0===$||$.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)})),Te.benefitsSection=e}(null===(U=null===(j=null===(W=null===(G=null==Pe?void 0:Pe.content)||void 0===G?void 0:G.body)||void 0===W?void 0:W[0])||void 0===j?void 0:j.addnEntitlements)||void 0===U?void 0:U.length)>0&&(null===(K=null===(X=null===(q=null===(H=null==Pe?void 0:Pe.content)||void 0===H?void 0:H.body)||void 0===q?void 0:q[0])||void 0===X?void 0:X.addnEntitlements)||void 0===K||K.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=Te.productConfig)||void 0===l?void 0:l.length)>0?Te.productConfig.push(i):Te.productConfig=i})))}return Te})(n,v,g);"TV"===(null===(e=null==l?void 0:l.serviceOptions)||void 0===e?void 0:e.poType)&&(re(null===(t=null==l?void 0:l.serviceOptions)||void 0===t?void 0:t.radioValue),ie(null===(o=null==l?void 0:l.serviceOptions)||void 0===o?void 0:o.tvChannelName)),J(l),ee(l)}}),[n]),e.useEffect((()=>(setTimeout((()=>{Ae()}),100),null===window||void 0===window||window.addEventListener("load",Ae),null===window||void 0===window||window.addEventListener("resize",Ae),()=>{window.removeEventListener("resize",Ae),window.removeEventListener("load",Ae)})),[K,Te]);const De=()=>{var e;(null===(e=null==K?void 0:K.serviceOptions)||void 0===e?void 0:e.avalaible)&&ce(!0)},Ae=()=>{P(`headingV3${r}`,t),P(`descriptionV3${r}`,t),P(`titleV3${r}`,t),P(`detailsectionv3${r}`,t),P(`product-configv3${r}`,t),P(`gift-section${r}`,t),P(`cashback-section${r}`,t),P(`benefits-section${r}`,t),P(`order-section${r}`,t),P(`price-section${r}`,t),P(`benefits-price-section${r}`,t),P(`contract-section${r}`,t)};let Be=void 0!==typeof window&&c.get("sunriseAuth");Be=Be&&JSON.parse(Be);const Me=()=>{Ie(!1);!(!(null==x?void 0:x.enableExistingCustomer)||null!=Be)?xe(!0):Re()},Re=()=>{var e;if(Ie(!1),"MOBILE"===(null==K?void 0:K.pageType))fe(!0),0!==(null===(e=Object.keys(i))||void 0===e?void 0:e.length)&&te(Ce,"",(null==Te?void 0:Te.promoID)?null==Te?void 0:Te.promoID:$,Ne,"mobile",ve).then((e=>{c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",null==K?void 0:K.code,{path:"/"}),Ge(ye,Ce,"",Pe),window.location.href=p})).catch((e=>{console.log(e),fe(!1)})).finally((()=>{fe(!1)}));else{const e=c.get("one-commerce-linecheckcorrelationid"),n=null==K?void 0:K.code;m&&s&&e?(fe(!0),0!==Ce.length&&te(Ce,de,(null==Te?void 0:Te.promoID)?null==Te?void 0:Te.promoID:z,Ne,"fixnet",ve).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"),Ge(ye,Ce,"",Pe),window.location.href=p})).catch((e=>{console.log(e)})).finally((()=>{fe(!1)}))):a()}},Fe=0===(null===(E=Object.keys(K))||void 0===E?void 0:E.length),ze=()=>{var e,n,t,o;const l=(null==Te?void 0:Te.promoID)?null==Te?void 0:Te.promoID:$;let d="";d=`?componentCode=&productType=subscription&segmentCode=RC&prefPromo=${null!=l?l:""}&productCode=${null!==(e=null==K?void 0:K.code)&&void 0!==e?e:""}`,window.location.href=(null===(o=null===(t=null===(n=null==K?void 0:K.addSmartPhone)||void 0===n?void 0:n[0])||void 0===t?void 0:t.buttonLink)||void 0===o?void 0:o.cached_url)+d,We(K,l,i),tn(ke,Se,$e(Ce,"",Pe)),Ge(ye,Ce,"",Pe)},We=(e,n,t)=>{var o,l,i,r,a,c,u,s,m,p,v,_,h,g,f,b;const x=null===(o=null==t?void 0:t[d])||void 0===o?void 0:o.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.code))),y=null!==(a=null===(r=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===r?void 0:r.value)&&void 0!==a?a:0,w=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,C=null!==(_=null===(v=null===(p=null==e?void 0:e.promotionInfo)||void 0===p?void 0:p[0])||void 0===v?void 0:v.contractDuration)&&void 0!==_?_:0,E=null!==(f=null===(g=null===(h=null==e?void 0:e.promotionInfo)||void 0===h?void 0:h[0])||void 0===g?void 0:g.campaignDuration)&&void 0!==f?f:0,k={mobileSubscription:null!==(b=null==e?void 0:e.code)&&void 0!==b?b:"",mobileSubscriptionPrice:w>0?w:y,mobileSubscriptionPromo:n,subGroup:"MOBILE",duration:Number(E>0?E:C),basePrice:y,withoutPromo:!1};void 0!==typeof window&&sessionStorage.setItem("one-ecommerce-mobileSummary",JSON.stringify(k))},je=e=>{const n=ve.findIndex((n=>e.giftGroupId===n.giftGroupId)),t=ve;-1===n?t.push(e):t[n]=e,_e([...t])};return e.createElement(e.Fragment,null,ge&&Oe&&h.createPortal(e.createElement(Y,{keyParams:"loading"}),Oe),Fe&&e.createElement("div",{className:"w-75 pb-2"},e.createElement(ht,null)),!Fe&&m&&n&&s&&!v&&e.createElement("div",{className:st.selected},e.createElement("span",{style:{paddingBottom:"10px"}},Ve?e.createElement("span",{className:st.activeicon},e.createElement("img",{src:`${he}/icons/lineCheck-success.svg`,alt:"",width:24,height:24,className:st.activeicon}),e.createElement("span",null,null==u?void 0:u.subscriptionAvalTxt)):e.createElement("span",{className:st.inactiveicon},e.createElement("img",{src:`${he}/icons/cross_disabled.svg`,alt:"",width:24,height:24,className:st.inactiveicon}),e.createElement("span",null,null==u?void 0:u.notSubscriptionTxt)))),e.createElement("div",{className:`${v||!1!==Ve?"":st.overlay}`,style:{flexDirection:"column"}},e.createElement("div",{className:`${v?st.mobilecard:""} ${st.bundleproductcard} ${st.productcontainer} ${(null===(k=null==K?void 0:K.highlightText)||void 0===k?void 0:k.length)>0&&st.highlightBorder}`},(null===(T=null==K?void 0:K.highlightText)||void 0===T?void 0:T.length)>0&&e.createElement("div",{className:`${st.highlightText}`},null==K?void 0:K.highlightText),(null===(S=null==K?void 0:K.priceDisplayText)||void 0===S?void 0:S.length)>0&&e.createElement("div",{className:`${st.promocontainer}`,style:{background:null==K?void 0:K.bestSellerColor}},null==K?void 0:K.priceDisplayText," "),e.createElement("div",null,e.createElement("div",{className:`${st.detailsection}`,id:`detailsectionv3${r}${l}`},e.createElement("div",{className:`${st.headersection}`},e.createElement("div",{className:`${st.titlesection}`},e.createElement("div",{className:`${st.productheader}`,id:`titleV3${r}${l}`},null==K?void 0:K.displayName),e.createElement("div",null,(null==K?void 0:K.icon)&&e.createElement("img",{className:`${st.imagecontainer}`,src:null==K?void 0:K.icon,height:15,width:20}))),e.createElement("div",{className:`${st.productdescription}`,id:`descriptionV3${r}${l}`},e.createElement(X,{content:null==K?void 0:K.description})),e.createElement("div",{className:`${st.images}`},(null==Z?void 0:Z.cardImg)&&e.createElement("img",{className:`${st.imagespace} ${(null===(N=null==K?void 0:K.highlightText)||void 0===N?void 0:N.length)>0&&st.borderimage}`,alt:"cardimg",src:null==Z?void 0:Z.cardImg}))),e.createElement("div",{className:`${st.productconfig}`,id:`product-configv3${r}${l}`},Fe?e.createElement(e.Fragment,null,e.createElement("div",{className:st.space}),e.createElement(ht,{stylename:st.skeletontittle,count:1}),e.createElement(ht,{stylename:st.skeletonline,count:5}),e.createElement("div",{className:st.space}),e.createElement(ht,{stylename:st.skeletontittle,count:1}),e.createElement(ht,{stylename:st.skeletonline,count:5})):e.createElement("div",null,(null==K?void 0:K.productConfig)&&(null===(L=null==K?void 0:K.productConfig)||void 0===L?void 0:L.map(((n,l)=>e.createElement(vt,{content:Object.assign(Object.assign({},n),{tvChannelName:le,entertainOption:ne}),entitlementConfig:null==K?void 0:K.entitlementConfig,indexKey:l,listlength:t,showModalPopup:De,sbStaticConstants:u,tabIndex:r,countryList:null==K?void 0:K.countryListUrl,metadata:o}))))))),e.createElement("div",{className:`${st.detailsection}`,id:`benefits-price-section${r}${l}`},e.createElement("div",{className:`${st.benefitssection}`,id:`benefits-section${r}${l}`},(null===(I=null==K?void 0:K.benefitsSection)||void 0===I?void 0:I.length)>0&&e.createElement(Ft,{content:null==K?void 0:K.benefitsSection,priceCollection:Te,sbStaticConstants:u})),e.createElement("br",null),e.createElement("div",{className:`${st.giftsection}`,id:`gift-section${r}${l}`},e.createElement("div",null,null===(V=null==K?void 0:K.promoObj)||void 0===V?void 0:V.map(((n,t)=>{var o,i,d;return e.createElement("div",{key:t},e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&ue&&(null===(o=null==n?void 0:n.giftConfig)||void 0===o?void 0:o.map(((n,t)=>e.createElement($t,{content:n,key:t}))))),e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&ue&&(null===(i=null==n?void 0:n.giftConfigV2)||void 0===i?void 0:i.map(((t,o)=>e.createElement(Wt,{content:t,key:o,selectedGiftItem:je,parentPoType:null==n?void 0:n.parentPoType}))))),e.createElement("div",{className:`${st.giftsection}`,id:`cashback-section${r}${l}`},(null==n?void 0:n.cashback)&&me&&(null===(d=null==n?void 0:n.cashback)||void 0===d?void 0:d.map(((n,t)=>e.createElement(Yt,{content:n,key:t}))))))})))),e.createElement("div",{className:`${st.ordersection} `,id:`order-section${r}${l}`},""===(null==Te?void 0:Te.base)?e.createElement("div",null,e.createElement(ht,{stylename:st.skeletontittle})):e.createElement("div",{className:`${st.flexgrid} ${st.pricesection} `,id:`price-section${r}${l}`},e.createElement(gt,{content:K,priceCollection:Te,toggleSwitch:!1,sbStaticConstants:u}))," ",e.createElement("div",{className:`${(null==g?void 0:g.swapButton)&&st.swapButton}`},e.createElement("div",{style:{padding:"16px 0"}},e.createElement(Tt,{content:n,sbStaticConstants:u,isAvailable:Ve,showPrice:Te,isSkeletonLoading:Fe,isMobileFlow:v,createCartCall:v?Me:Re,address:s,updatedContent:g})),e.createElement("div",{className:st.productcontractduration,id:`contract-section${r}${l}`},(null==Te?void 0:Te.contractDuration)?D(null===(O=null==u?void 0:u.minContractDuration)||void 0===O?void 0:O.substring(1),[null==Te?void 0:Te.contractDuration]):null==u?void 0:u.simo_no_contract_term),(null===(A=null==K?void 0:K.addSmartPhone)||void 0===A?void 0:A.length)>0&&e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==g?void 0:g.swapButton)&&v?(null==g?void 0:g.ctaLabel)&&e.createElement("div",{style:{padding:"16px 0"}},e.createElement("button",{className:"primarybutton",onClick:()=>ze()},e.createElement("span",{className:st.buttontext},null==g?void 0:g.ctaLabel))):e.createElement("span",{className:`${st.productdetailslink} ${st.addsmartphone}`},e.createElement("div",null,e.createElement("span",null,(null===(R=null===(M=null===(B=null==K?void 0:K.addSmartPhone)||void 0===B?void 0:B[0])||void 0===M?void 0:M.buttonIcon)||void 0===R?void 0:R.filename)&&e.createElement("img",{src:null===(W=null===(G=null===(F=null==K?void 0:K.addSmartPhone)||void 0===F?void 0:F[0])||void 0===G?void 0:G.buttonIcon)||void 0===W?void 0:W.filename,width:12,height:18,alt:"icon"})),e.createElement("span",null,e.createElement("a",{onClick:()=>ze()},null===(U=null===(j=null==K?void 0:K.addSmartPhone)||void 0===j?void 0:j[0])||void 0===U?void 0:U.buttonLabel)))))),e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==K?void 0:K.productDetailsModal)&&e.createElement("span",{className:st.productdetailslink,onClick:()=>{Ie(!Le),tn(ke,Ee,$e(Ce,"",Pe))}},null==u?void 0:u.product_details_link)),Le&&e.createElement(e.Fragment,null,e.createElement(Pt,{products:null==K?void 0:K.productDetailsModal,showProductDetail:Le,setShowProductDetail:Ie,content:n,priceCollection:Te,addToCart:Object.assign(Object.assign({},n),{isSkeletonLoading:Fe,isAvailable:Ve,isMobileFlow:v,address:s}),sbStaticConstants:u,createCartCall:v?Me:Re,contractDuration:null==Te?void 0:Te.contractDuration})))),ae&&(Fe?e.createElement(ht,null):e.createElement(Rt,{key:null==K?void 0:K.code,content:null==K?void 0:K.serviceOptions,setShowModal:ce,uniqueId:d,setEntertainment:oe,setTvChannelName:ie,code:null==K?void 0:K.code,showModal:ae,radioValue:de,setRadioValue:re,metadata:o}))))),be&&(null===(H=null==x?void 0:x.loginData)||void 0===H?void 0:H.length)>0&&Oe&&h.createPortal(e.createElement(_.LoginModalV2,{content:null===(q=null==x?void 0:x.loginData)||void 0===q?void 0:q[0],closeLogin:()=>{xe(!1)},metadata:o,onSuccess:()=>{xe(!1),Re()}}),Oe))},Qt=({content:t,metadata:o,activeIndex:l,lineCheckCallBack:i,sbStaticConstants:d,address:r,eligibleBundle:a,setGenericErrorModalDetails:u,loginSuccess:s})=>{var m,p,v,_,h;const g=null==o?void 0:o.lang,[b,x]=e.useState(),y=null==t?void 0:t._uid,[w,C]=e.useState([]),E=[],k=new Map,T={language:g,type:"B2C"},S={},N=V(),L=null===(m=null==f?void 0:f.getInstance())||void 0===m?void 0:m.getSBUrl(),I=null===(p=null==f?void 0:f.getInstance())||void 0===p?void 0:p.getBaseUrl(),O=null===(_=null===(v=null==t?void 0:t.lineTableContent)||void 0===v?void 0:v.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 M=()=>{var e,n,o,l,i;const d=[],r=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,c=null==t?void 0:t.isReturnPromo;if(((e,n)=>{n.map((n=>{var t,o,l,i,d;const r={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;r.id=null===(l=null==n?void 0:n.products)||void 0===l?void 0:l.product_id,a&&!(null===(i=null==r?void 0:r.promoIds)||void 0===i?void 0:i.includes(a))&&r.promoIds.push(a),c&&!(null===(d=null==r?void 0:r.promoIds)||void 0===d?void 0:d.includes(c))&&r.promoIds.push(c),e.push(r)}))})(d,(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=oe(d,null==t?void 0:t._uid,I,r,a,c))||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||M()}),[null==t?void 0:t.activeIndex]),e.useEffect((()=>{if(((null==t?void 0:t.productList)||[]).forEach((e=>{var n,o,l,i,d,r,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===(d=null==e?void 0:e.products)||void 0===d?void 0:d.home_promo_story_uuid,{k:0}),"4P"!==(null==t?void 0:t.pageType)&&"MOBILE"!==(null==t?void 0:t.pageType)||!(null===(r=null==e?void 0:e.products)||void 0===r?void 0:r.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}),E.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=L+`rest/cms/stories/?by_uuids=${e}`;n.CMSStoryblokServiceV2.get(o,T).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(E.length>0)if("MOBILE"!==(null==t?void 0:t.pageType)){const t=new Map;if(null==E||E.map((e=>{var n,o,l,i,d,r;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===(r=null===(d=null==a?void 0:a.content)||void 0===d?void 0:d.body[0])||void 0===r?void 0:r.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=L+`rest/cms/stories/?by_uuids=${o}`;n.CMSStoryblokServiceV2.get(l,T).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==E||E.map((n=>{var o,l,i,d,r,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===(d=null==s?void 0:s.content)||void 0===d?void 0:d.body[0])){const e=null===(r=null==s?void 0:s.content)||void 0===r?void 0:r.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 p=Object.assign({},n,{productStroyObj:s,promStroyObj:m,showPromotion:null==n?void 0:n.dontShowPromotion});e.push(p)}));try{localStorage.setItem("slugDetails",JSON.stringify(S))}catch(e){}C(e)}))}}else(null==E?void 0:E.length)>0&&(null==E||E.map(((n,o)=>{var l,i,d,r,a,c,u,s,m,p;let v;"MOBILE"===(null==t?void 0:t.pageType)&&(v=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)),v.prom=null===(i=null==n?void 0:n.products)||void 0===i?void 0:i.mob_parent_promo_id,v.isDefault=null===(d=null==n?void 0:n.products)||void 0===d?void 0:d.mob_promo_default);const _=null==Object?void 0:Object.assign({},n,{productStroyObj:null==k?void 0:k.get(null===(r=null==n?void 0:n.products)||void 0===r?void 0:r.product_story_uuid),promStroyObj:v});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!==(p=null==t?void 0:t.displayConfig)&&void 0!==p?p:[],null==e||e.push(_)})),C(e))}))}}),[g]),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)})),[w]);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;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&Ge("view",b[y],"",Pe)}),[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)&&Ge("available",b[y],"",Pe,null==a?void 0:a.eligibleBundle)}),[a,b]),e.useEffect((()=>{(null==B?void 0:B.siteId)&&s&&M()}),[s]),e.createElement("div",null,e.createElement("div",{className:st.titlecontainer},(null==t?void 0:t.title)&&e.createElement("div",{className:st.title},null==t?void 0:t.title),(null==t?void 0:t.subTitle)&&e.createElement("div",{className:st.description},null==t?void 0:t.subTitle)),e.createElement("div",{className:"linetableV3"},N&&e.createElement(mt,{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==w?void 0:w.length)&&w||new Array((null==w?void 0:w.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(Zt,{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:d,address:r,eligibleBundle:a,summaryUrl:O,isMobileFlow:D}))})))))};var eo={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"};g("/* 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}");var no={tabblock:"StaticLineTable-module_tabblock__OXDQd",tabcontainer:"StaticLineTable-module_tabcontainer__BvX7d",tabcontent:"StaticLineTable-module_tabcontent__8qSfh",tabcontentactive:"StaticLineTable-module_tabcontentactive__0VWZG",tabcontentinactive:"StaticLineTable-module_tabcontentinactive__lMaGs",titlecontainer:"StaticLineTable-module_titlecontainer__vhfov",title:"StaticLineTable-module_title__S5CC7",description:"StaticLineTable-module_description__IoWLP",selected:"StaticLineTable-module_selected__RMX1r",inactiveicon:"StaticLineTable-module_inactiveicon__ek-0-",activeicon:"StaticLineTable-module_activeicon__DwS4K",productcenter:"StaticLineTable-module_productcenter__scRU7",bundleproductcard:"StaticLineTable-module_bundleproductcard__KYHf7",flexgrid:"StaticLineTable-module_flexgrid__uuyAX",productcontainer:"StaticLineTable-module_productcontainer__CA-5u",highlightBorder:"StaticLineTable-module_highlightBorder__dEWeh",highlightText:"StaticLineTable-module_highlightText__z2WSp",headersection:"StaticLineTable-module_headersection__ed21u",titlesection:"StaticLineTable-module_titlesection__DMlAo",productheader:"StaticLineTable-module_productheader__Z2vjX",productdescription:"StaticLineTable-module_productdescription__VdyCK",images:"StaticLineTable-module_images__Go1Hf",imagespace:"StaticLineTable-module_imagespace__Dy1x3",borderimage:"StaticLineTable-module_borderimage__2x-l3",ordersection:"StaticLineTable-module_ordersection__04k-y",pricesection:"StaticLineTable-module_pricesection__U7U-s",productcontractduration:"StaticLineTable-module_productcontractduration__dzt25",productdetailslink:"StaticLineTable-module_productdetailslink__Dzs8e",benefitssection:"StaticLineTable-module_benefitssection__7J8jk",overlay:"StaticLineTable-module_overlay__pa3Q8",addsmartphone:"StaticLineTable-module_addsmartphone__12--5",promocontainer:"StaticLineTable-module_promocontainer__Ub07A",disabled:"StaticLineTable-module_disabled__97Dzp",buttontext:"StaticLineTable-module_buttontext__CAfOt",swapButton:"StaticLineTable-module_swapButton__2SyEm"};g("/* 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.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontainer__BvX7d {\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 .StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontainer__BvX7d {\n border-radius: 8px;\n }\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontent__8qSfh {\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 .StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontent__8qSfh {\n border-radius: 8px;\n }\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentactive__0VWZG {\n background-color: #da291c;\n border-radius: 35px;\n color: white !important;\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentactive__0VWZG:hover {\n background-color: #961c13;\n}\n@media (max-width: 767px) {\n .StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentactive__0VWZG {\n border-radius: 8px;\n }\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentinactive__lMaGs:hover {\n color: #961c13;\n}\n.StaticLineTable-module_tabblock__OXDQd input[type=radio] {\n display: none;\n}\n\n.StaticLineTable-module_titlecontainer__vhfov .StaticLineTable-module_title__S5CC7 {\n font-size: 24px;\n font-weight: 700;\n line-height: 30px;\n padding-top: 20px;\n text-align: center;\n}\n.StaticLineTable-module_titlecontainer__vhfov .StaticLineTable-module_description__IoWLP {\n font-size: 16px;\n font-weight: 24px;\n text-align: center;\n}\n\n.StaticLineTable-module_selected__RMX1r {\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.StaticLineTable-module_selected__RMX1r .StaticLineTable-module_inactiveicon__ek-0- {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n.StaticLineTable-module_selected__RMX1r .StaticLineTable-module_activeicon__DwS4K {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n\n.StaticLineTable-module_productcenter__scRU7 {\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.StaticLineTable-module_bundleproductcard__KYHf7 {\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 .StaticLineTable-module_bundleproductcard__KYHf7 {\n margin-left: 8px;\n margin-right: 8px;\n }\n}\n\n.StaticLineTable-module_flexgrid__uuyAX {\n display: flex;\n}\n\n.StaticLineTable-module_productcontainer__CA-5u {\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.StaticLineTable-module_highlightBorder__dEWeh {\n border: 4px solid #587467;\n border-radius: 8px;\n}\n\n.StaticLineTable-module_highlightText__z2WSp {\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.StaticLineTable-module_headersection__ed21u {\n padding-bottom: 8px;\n}\n\n.StaticLineTable-module_titlesection__DMlAo {\n align-items: flex-start;\n display: flex;\n justify-content: space-between;\n}\n\n.StaticLineTable-module_productheader__Z2vjX {\n font-size: 28px;\n font-weight: 700;\n line-height: 36px;\n margin-bottom: 8px;\n}\n\n.StaticLineTable-module_productdescription__VdyCK {\n color: #587467;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n margin-top: -7px;\n}\n\n.StaticLineTable-module_images__Go1Hf {\n margin-right: -40px;\n}\n\n.StaticLineTable-module_imagespace__Dy1x3 {\n overflow: hidden;\n width: 100%;\n height: 100%;\n margin-left: -20px;\n margin-top: 30px;\n}\n\n.StaticLineTable-module_borderimage__2x-l3 {\n padding: 0 4px;\n}\n\n.StaticLineTable-module_ordersection__04k-y {\n border-top: 1px solid #e6e3df;\n margin-top: 15px;\n padding: 8px;\n text-align: center;\n}\n\n.StaticLineTable-module_pricesection__U7U-s {\n justify-content: center;\n}\n\n.StaticLineTable-module_productcontractduration__dzt25 {\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n}\n\n.StaticLineTable-module_productdetailslink__Dzs8e {\n color: #da291c;\n cursor: pointer;\n font-size: 16px;\n line-height: 24px;\n text-decoration: underline;\n}\n\n.StaticLineTable-module_benefitssection__7J8jk {\n padding-top: 16px;\n}\n\n.StaticLineTable-module_overlay__pa3Q8 {\n cursor: default;\n display: block;\n opacity: 0.4;\n pointer-events: none;\n}\n\n.StaticLineTable-module_addsmartphone__12--5 img {\n margin-right: 10px;\n vertical-align: bottom;\n}\n\n.StaticLineTable-module_promocontainer__Ub07A {\n align-items: center;\n background: #2e6199;\n border-radius: 4px;\n color: #ffffff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 16px;\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.StaticLineTable-module_disabled__97Dzp {\n opacity: 0.4;\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n}\n\n.StaticLineTable-module_buttontext__CAfOt {\n font-size: 16px;\n line-height: 24px;\n color: #ffffff;\n font-weight: bold;\n text-align: center;\n}\n\n.StaticLineTable-module_swapButton__2SyEm {\n display: flex;\n flex-direction: column-reverse;\n}");var to={productdetailswrapper:"StaticProductEntitle-module_productdetailswrapper__gzl6M",configheadersection:"StaticProductEntitle-module_configheadersection__f70WF",displayname:"StaticProductEntitle-module_displayname__5CVcP",configdetailssection:"StaticProductEntitle-module_configdetailssection__V7au8",disabled:"StaticProductEntitle-module_disabled__j-Lin",showmore:"StaticProductEntitle-module_showmore__RpLbs",newmodal:"StaticProductEntitle-module_newmodal__Feu6A",tvHeading:"StaticProductEntitle-module_tvHeading__UAbu6",changeBtn:"StaticProductEntitle-module_changeBtn__c7Vtt",optioncontainer:"StaticProductEntitle-module_optioncontainer__CoQ5Y",optionlist:"StaticProductEntitle-module_optionlist__xcxCh",optiontitle:"StaticProductEntitle-module_optiontitle__e20IH",optionwrapper:"StaticProductEntitle-module_optionwrapper__8vw2r",text:"StaticProductEntitle-module_text__nto6N",pricecontainer:"StaticProductEntitle-module_pricecontainer__OGX6q",discountedprice:"StaticProductEntitle-module_discountedprice__6A-5H",duration:"StaticProductEntitle-module_duration__YTTbN",basePriceAfterDiscount:"StaticProductEntitle-module_basePriceAfterDiscount__3WgFi",pricedisplay:"StaticProductEntitle-module_pricedisplay__xrKoJ",blockskeleton:"StaticProductEntitle-module_blockskeleton__3ZFj5"};g('/* 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.StaticProductEntitle-module_productdetailswrapper__gzl6M {\n border-bottom: 1px solid #e6e3df;\n padding: 16px 0;\n}\n\n.StaticProductEntitle-module_configheadersection__f70WF {\n display: inline-flex;\n}\n\n.StaticProductEntitle-module_displayname__5CVcP {\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.StaticProductEntitle-module_configdetailssection__V7au8 {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding-left: 32px;\n}\n\n.StaticProductEntitle-module_disabled__j-Lin {\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n opacity: 0.4;\n}\n\n.StaticProductEntitle-module_showmore__RpLbs {\n color: #da291c;\n cursor: pointer;\n padding-left: 0;\n}\n\n.StaticProductEntitle-module_newmodal__Feu6A {\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.StaticProductEntitle-module_newmodal__Feu6A .StaticProductEntitle-module_tvHeading__UAbu6 {\n font-weight: 700;\n margin-left: 10px;\n width: 100%;\n}\n.StaticProductEntitle-module_newmodal__Feu6A .StaticProductEntitle-module_changeBtn__c7Vtt {\n color: #da291c;\n}\n.StaticProductEntitle-module_newmodal__Feu6A > img {\n margin: 4px 10px 0 4px;\n}\n\n.StaticProductEntitle-module_optioncontainer__CoQ5Y {\n background: rgba(153, 178, 167, 0.1);\n border: 1px solid #B6C8C0;\n border-radius: 8px;\n padding: 12px 16px;\n}\n.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh {\n margin-top: 2px;\n}\n.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh .StaticProductEntitle-module_optiontitle__e20IH {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n}\n.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh .StaticProductEntitle-module_optionwrapper__8vw2r {\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.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh .StaticProductEntitle-module_optionwrapper__8vw2r .StaticProductEntitle-module_text__nto6N > div > p > b {\n color: #5e94cf;\n}\n\n.StaticProductEntitle-module_pricecontainer__OGX6q {\n justify-content: center;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_discountedprice__6A-5H {\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_duration__YTTbN {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_basePriceAfterDiscount__3WgFi {\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n padding-left: 10px;\n position: relative;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_basePriceAfterDiscount__3WgFi::after {\n border-bottom: 2px solid #e6003c;\n content: "";\n left: 8px;\n position: absolute;\n right: -1px;\n top: 50%;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_pricedisplay__xrKoJ {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n padding: 4px;\n}\n\n.StaticProductEntitle-module_blockskeleton__3ZFj5 {\n bottom: 5px;\n height: 15px;\n top: 5px;\n}');const oo=({content:n,constants:t,showModalPopup:o})=>{var l,i,d;const r=e.useRef(null),a=null===(l=null==b?void 0:b.getInstance())||void 0===l?void 0:l.getAssetPath();return e.createElement("div",null,e.createElement("div",{ref:r},e.createElement("div",{className:to.productdetailswrapper},e.createElement("div",{className:to.configheadersection,style:{width:"100%"}},(null===(i=null==n?void 0:n.icon)||void 0===i?void 0:i.filename)&&e.createElement("span",null,e.createElement("img",{src:null===(d=null==n?void 0:n.icon)||void 0===d?void 0:d.filename,alt:"img",width:24,height:24,className:to.imagecontainer})),e.createElement("span",{className:to.displayname},null==n?void 0:n.title),(null==n?void 0:n.tooltip)&&e.createElement("div",{className:to.bundletooltip,style:{marginLeft:"auto"}},e.createElement(xe,{content:null==n?void 0:n.tooltip}))),e.createElement("div",{className:to.configdetailssection},(null==n?void 0:n.channelName)&&(null==n?void 0:n.enableTV)&&e.createElement("div",{className:to.newmodal,onClick:()=>{o()}},e.createElement("div",{className:to.tvHeading},null==n?void 0:n.channelName),e.createElement("div",{className:to.changeBtn},t.changeText),e.createElement("img",{src:`${a}/icons/chevron-down-red.svg`,height:24,width:24,alt:""})),(null==n?void 0:n.description)&&e.createElement("div",{className:to.productdetailsdescription,id:"entitledespV3"},e.createElement(X,{content:null==n?void 0:n.description}))))))},lo=({content:n,benefitData:t,constants:o})=>{const l=null==t?void 0:t.int_fmc,i=null==t?void 0:t.mob_fmc,d=null==t?void 0:t.mob_benefit_category;return e.createElement("div",null,e.createElement("div",{className:to.optioncontainer},e.createElement("div",{className:to.optionlist},(null==n?void 0:n.length)>0&&e.createElement("span",{className:to.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"!=d||"multimob_fmc"==(null==n?void 0:n.id)&&i>0&&"MULTIMOBILE"==d||"combi_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==d||"mob_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==d?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)&&e.createElement(e.Fragment,null,(n=>{var t,o;return e.createElement("span",{className:to.optionwrapper},(null===(t=null==n?void 0:n.icon)||void 0===t?void 0:t.filename)&&e.createElement("img",{src:null===(o=null==n?void 0:n.icon)||void 0===o?void 0:o.filename,width:24,height:24,alt:"benefit icon"}),e.createElement("span",{className:`${to.text} ms-2`},e.createElement(X,{content:null==n?void 0:n.text})))})(n)))),e.createElement("span",null,(null==n?void 0:n.toolTip)&&e.createElement(xe,{content:null==n?void 0:n.toolTip,isBenefit:!0}))):"")))))},io=({priceCollection:n,constants:t,promoText:o})=>{var l,i,d,r,a,c;const u=null!==(l=null==n?void 0:n.base)&&void 0!==l?l:0;let s=null!==(r=null===(d=null===(i=null==n?void 0:n.discount)||void 0===i?void 0:i[0])||void 0===d?void 0:d.value)&&void 0!==r?r:0;null===(a=null==n?void 0:n.discount)||void 0===a||a.map((e=>{1==(null==e?void 0:e.cycleStart)&&(s=null==e?void 0:e.value)}));const m=null==n?void 0:n.discount,p=null==n?void 0:n.int_fmc,v=null==n?void 0:n.mob_fmc;let _=!1;return e.createElement("div",null,Number(u)>0?e.createElement(e.Fragment,null,e.createElement("div",{className:`${to.pricecontainer}`},e.createElement("span",{className:`${to.discountedprice} ${p>0||v>0||(null==m?void 0:m.length)>0?to.promo:""}`},N(s>0?s:u),e.createElement("span",{className:`${to.duration}`},null==t?void 0:t.month)),u&&(p>0||v>0||m.length>0)&&e.createElement("span",{className:`${to.basePriceAfterDiscount}`},N(u)),o&&e.createElement("div",null,o)),!v&&!p&&(null==m?void 0:m.length)>0&&(null===(c=null==m?void 0:m[0])||void 0===c?void 0:c.cycleEnd)&&e.createElement("div",null,e.createElement("div",{className:to.pricedisplay},m.length>0&&m.map((n=>(720===(null==n?void 0:n.cycleEnd)&&(_=!0),e.createElement(e.Fragment,null," ",e.createElement("span",{className:to.pricelabel},_?e.createElement("span",null," ",null==t?void 0:t.lifetimeLabel," "):e.createElement(e.Fragment,null," ",1!=n.cycleStart&&e.createElement(e.Fragment,null,"CHF"," ",N(n.value))," ",1===n.cycleStart?D(null==t?void 0:t.promoFirstLt,[n.cycleEnd]):D(null==t?void 0:t.promoNextLt,[n.cycleEnd-n.cycleStart+1]))))))),!_&&e.createElement("span",null," ",D(null==t?void 0:t.promoThenIt,[N(u)]))))):e.createElement(ht,{stylename:to.blockskeleton}))},ro=({isMobileFlow:n,createCartCall:t,constants:o,storyContent:l,showPrice:i,isAvailable:d,address:r})=>{var a;const[c,u]=e.useState(!1);return e.useEffect((()=>{!n&&!d||""===(null==i?void 0:i.base)?u(!0):u(!1)}),[l,i,d]),e.createElement("div",null,n?(null==l?void 0:l.swapButton)?(null==l?void 0:l.ctaLinkLabel)&&e.createElement("a",{onClick:t,className:`${c&&no.disabled}`},null==l?void 0:l.ctaLinkLabel):e.createElement("button",{className:`primarybutton ${c&&no.disabled}`,onClick:t,disabled:c},e.createElement("span",{className:no.buttontext},null==o?void 0:o.addToCartBtnTxt)):e.createElement(e.Fragment,null,r&&(null===(a=null==Object?void 0:Object.keys(r))||void 0===a?void 0:a.length)>0?e.createElement(e.Fragment,null,e.createElement("button",{className:`primarybutton ${c&&no.disabled}`,onClick:t,disabled:c},e.createElement("span",{className:no.buttontext},null==o?void 0:o.addToCartBtnTxt))):e.createElement("button",{onClick:t,className:"configurebutton"},e.createElement("span",null,null==o?void 0:o.checkAvailability))))};var ao="StaticProductDetails-module_productPopModal__of6yB",co="StaticProductDetails-module_container__OHbPI",uo="StaticProductDetails-module_backbtn__vU7Q0",so="StaticProductDetails-module_closebtn__yuQLi",mo="StaticProductDetails-module_cartbtn__e8KGX",po="StaticProductDetails-module_check-footer__AZ6lf",vo="StaticProductDetails-module_footer-linetablev3__3jswU";g("/* 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 .StaticProductDetails-module_productPopModal__of6yB {\n min-width: 884px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .StaticProductDetails-module_productPopModal__of6yB {\n min-width: 740px;\n }\n}\n.StaticProductDetails-module_productPopModal__of6yB .modal-body {\n padding: 0 16px 16px;\n}\n@media (max-width: 767px) {\n .StaticProductDetails-module_productPopModal__of6yB .modal-body {\n padding: 12px;\n }\n}\n.StaticProductDetails-module_productPopModal__of6yB .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.StaticProductDetails-module_productPopModal__of6yB .modal-content .modal-header {\n border-bottom: none !important;\n}\n.StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_container__OHbPI {\n display: flex;\n align-items: center;\n margin-left: 16px;\n}\n.StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_container__OHbPI .StaticProductDetails-module_backbtn__vU7Q0 {\n color: #da291c;\n}\n@media (max-width: 767px) {\n .StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_container__OHbPI {\n margin-left: 12px;\n }\n}\n.StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_closebtn__yuQLi .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n\n.StaticProductDetails-module_cartbtn__e8KGX {\n cursor: pointer;\n text-align: center;\n width: fit-content;\n float: right;\n}\n.StaticProductDetails-module_cartbtn__e8KGX .primarybutton {\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .StaticProductDetails-module_cartbtn__e8KGX {\n position: inherit;\n width: auto;\n top: 0;\n right: auto;\n }\n}\n\n.StaticProductDetails-module_check-footer__AZ6lf {\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.StaticProductDetails-module_check-footer__AZ6lf .StaticProductDetails-module_footer-linetablev3__3jswU {\n width: 100%;\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.StaticProductDetails-module_back-button__MMT6S {\n position: fixed;\n top: 0;\n padding: 16px 0;\n}\n\n.StaticProductDetails-module_modal-price__-owzv {\n padding: 16px 0 24px;\n}\n\n.StaticProductDetails-module_productDetailstext__7tLGS {\n color: #3d3935;\n text-decoration: underline;\n}\n\n.StaticProductDetails-module_productDetailstextNew__1OXNX {\n color: #da291c;\n text-decoration: underline;\n}\n\n.StaticProductDetails-module_textColor__FbmIS {\n color: #ffffff;\n text-decoration: underline;\n}");const _o=({modalState:n,handler:l,showFooter:i,footerNode:d,children:r,width:a,height:c,backButton:u})=>{var s;const m=null===(s=null==b?void 0:b.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:ao},e.createElement(t.Header,null,e.createElement("div",{onClick:l,className:`${co}`},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:uo},u))),e.createElement("div",{className:`${so} me-3 mt-3`},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,r),i&&e.createElement(t.Footer,null,d))},ho=({content:n,showProductDetail:t,setShowProductDetail:o,constants:l,showPrice:i,isMobileFlow:d,createCartCall:r,storyContent:a,isAvailable:c,address:u})=>{var s;const[m,p]=e.useState(!0);let v=[],_="";n&&n.length>0&&(null==n||n.map((e=>{v=null==e?void 0:e.modalBody,_=null==e?void 0:e.backButton})));return e.createElement(e.Fragment,null,e.createElement(_o,{modalState:m,handler:()=>{p(!m),o(!t)},showFooter:!1,height:"100%",backButton:_},e.createElement(e.Fragment,null,null==v?void 0:v.map(((n,t)=>e.createElement(ae,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===B&&e.createElement(K,{content:n,key:t}),(null==n?void 0:n.component)===R&&e.createElement(se,{content:n}),(null==n?void 0:n.component)===M&&e.createElement(ue,{content:n}))))),e.createElement("div",{className:`footer-main ${po} `},e.createElement("span",{className:`${vo}`},e.createElement("div",null,e.createElement(io,{priceCollection:i,constants:l}),e.createElement("div",null,(null==i?void 0:i.contractDuration)?D(null===(s=null==l?void 0:l.minContractDuration)||void 0===s?void 0:s.substring(1),[null==i?void 0:i.contractDuration]):null==l?void 0:l.noContractDuration)),e.createElement("div",{className:mo},e.createElement(ro,{isMobileFlow:d,createCartCall:r,constants:l,storyContent:a,showPrice:i,isAvailable:c,address:u})))))))},go=(e,n,t)=>{var o,l,i,d;const r=(null==e?void 0:e.promoID)?null==e?void 0:e.promoID:$;let a="";a=`?componentCode=&productType=subscription&segmentCode=RC&prefPromo=${null!=r?r:""}&productCode=${null!==(o=null==e?void 0:e.id)&&void 0!==o?o:""}`,window.location.href=(null===(d=null===(i=null===(l=null==n?void 0:n.addSmartPhone)||void 0===l?void 0:l[0])||void 0===i?void 0:i.buttonLink)||void 0===d?void 0:d.cached_url)+a,((e,n)=>{var t,o,l,i,d,r,a,c,u,s,m,p,v,_,h,g,f,b;const x=n,y=null!==(i=null===(l=null===(o=null===(t=null==x?void 0:x[0])||void 0===t?void 0:t.prices)||void 0===o?void 0:o[0])||void 0===l?void 0:l.value)&&void 0!==i?i:0,w=null!==(c=null===(a=null===(r=null===(d=null==x?void 0:x[0])||void 0===d?void 0:d.derivedPrice)||void 0===r?void 0:r[0])||void 0===a?void 0:a.value)&&void 0!==c?c:0,C=null!==(p=null===(m=null===(s=null===(u=null==x?void 0:x[0])||void 0===u?void 0:u.promotionInfo)||void 0===s?void 0:s[0])||void 0===m?void 0:m.contractDuration)&&void 0!==p?p:0,E=null!==(g=null===(h=null===(_=null===(v=null==x?void 0:x[0])||void 0===v?void 0:v.promotionInfo)||void 0===_?void 0:_[0])||void 0===h?void 0:h.campaignDuration)&&void 0!==g?g:0,k={mobileSubscription:null!==(b=null===(f=null==x?void 0:x[0])||void 0===f?void 0:f.id)&&void 0!==b?b:"",mobileSubscriptionPrice:w>0?w:y,mobileSubscriptionPromo:e,subGroup:"MOBILE",duration:Number(E>0?E:C),basePrice:y,withoutPromo:!1};void 0!==typeof window&&sessionStorage.setItem("one-ecommerce-mobileSummary",JSON.stringify(k))})(r,t),tn(ke,Se,Be(t,"",Pe)),Me(ye,t,"",Pe)};var fo={errormodalbox:"TVChannelModal-module_errormodalbox__MdM7c",header:"TVChannelModal-module_header__Bo-HW",errorwrapper:"TVChannelModal-module_errorwrapper__i8Rpe",title:"TVChannelModal-module_title__8Wyd9",footer:"TVChannelModal-module_footer__MI2lx",optionsContent:"TVChannelModal-module_optionsContent__VF89s",confirmBtn:"TVChannelModal-module_confirmBtn__g0bzN",errordialog:"TVChannelModal-module_errordialog__3-C3h",bodywrapper:"TVChannelModal-module_bodywrapper__rM7v2",cardwrapper:"TVChannelModal-module_cardwrapper__dKRPM",body:"TVChannelModal-module_body__2TTV9"};g("/* 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.TVChannelModal-module_errormodalbox__MdM7c {\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.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_header__Bo-HW {\n z-index: 1;\n border: none;\n padding: 0px;\n margin-bottom: -12px;\n margin-right: 0.5rem;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_header__Bo-HW .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_errorwrapper__i8Rpe {\n border-radius: 8px;\n box-shadow: rgba(87, 84, 82, 0.2);\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_errorwrapper__i8Rpe .TVChannelModal-module_title__8Wyd9 {\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.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx {\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.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx .TVChannelModal-module_optionsContent__VF89s {\n margin: auto;\n width: fit-content;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx .TVChannelModal-module_confirmBtn__g0bzN {\n border: none;\n width: fit-content;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx .TVChannelModal-module_confirmBtn__g0bzN > img {\n margin-left: 8px;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx p {\n color: #ffffff;\n align-items: left;\n}\n\n.TVChannelModal-module_errordialog__3-C3h {\n max-width: 934px;\n}\n\n.TVChannelModal-module_bodywrapper__rM7v2 {\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 .TVChannelModal-module_bodywrapper__rM7v2 {\n max-width: 380px;\n }\n}\n.TVChannelModal-module_bodywrapper__rM7v2 .TVChannelModal-module_cardwrapper__dKRPM {\n outline: 4px solid #da291c;\n border: 0px;\n border-radius: 8px;\n box-shadow: none;\n height: 100%;\n width: 100%;\n padding: 1rem;\n justify-content: center;\n}\n.TVChannelModal-module_bodywrapper__rM7v2 .TVChannelModal-module_cardwrapper__dKRPM h4 {\n color: #da291c;\n font-weight: 700;\n left: 32px;\n top: 12px;\n min-width: max-content;\n}\n\n.TVChannelModal-module_body__2TTV9 {\n padding: 0px;\n display: flex;\n color: #5f5955;\n flex-wrap: wrap;\n justify-content: center;\n}");const bo=({content:n,setShowModal:t,showModal:o,constants:l})=>{var d;const r=null===(d=null==b?void 0:b.getInstance())||void 0===d?void 0:d.getAssetPath(),a=()=>{t(!1)};return e.createElement(i.Modal,{contentClassName:fo.errormodalbox,show:o,dialogClassName:fo.errordialog,onHide:a,centered:!0},e.createElement(i.Modal.Header,{className:fo.header,closeButton:!0,onClick:a}),e.createElement("div",{className:fo.errorwrapper},e.createElement(i.Modal.Title,{className:fo.title},null==n?void 0:n.modalHeadline)),e.createElement(i.Modal.Body,{className:fo.body},e.createElement("div",{className:fo.bodywrapper},e.createElement("div",{className:fo.cardwrapper},e.createElement("h4",null,null==n?void 0:n.modalTitle),e.createElement("div",{className:"mb-3"},e.createElement(X,{content:null==n?void 0:n.modalDescription})),e.createElement("div",{className:"row w-100 pt-2 mt-auto"},e.createElement("h3",{className:"col-9 mb-0"},null==l?void 0:l.includedTxt))))),e.createElement(i.Modal.Footer,{className:fo.footer},e.createElement("div",{className:"row w-100"},e.createElement("div",{className:"text-center"},e.createElement("button",{className:`${fo.confirmBtn} primarybutton`,onClick:()=>a},null==l?void 0:l.closeTxt,e.createElement("img",{className:fo["img-tick"],src:`${r}/icons/tick.svg`,height:24,width:24,alt:""}))))))},xo=({content:n,offeringData:t,uniqueId:o,storyContent:l,metadata:i,tabIndex:d,cardsLength:r,indexKey:a,constants:u,mainContent:s,address:m,eligibleBundle:p,linecheckSuccessCallBack:v})=>{var g,x,y,w,C,E,k,T,S,N,L,I,V,O,A,B,M,R,F,G,W,j,U,H,q,K,J,Z,Q,ee,ne,oe,le,ie,de,re,ae,ce,ue,se,me;const[pe,ve]=e.useState(!1),[_e,he]=e.useState(!1),[ge,fe]=e.useState({showGift:!1,cashbackAvailable:!1}),[be,xe]=e.useState([]),[we,Ce]=e.useState(!1),[Te,Se]=e.useState(!1),[Ne,Le]=e.useState(!1),Ie=void 0!==typeof window&&document.getElementById("static-linetable"),Ve=0===(null===(g=Object.keys(n))||void 0===g?void 0:g.length),Oe=null===(E=null===(C=null===(w=null===(y=null===(x=null==n?void 0:n.products)||void 0===x?void 0:x[0])||void 0===y?void 0:y.reference)||void 0===w?void 0:w.content)||void 0===C?void 0:C.product)||void 0===E?void 0:E[0],De=null===(L=null===(N=null===(S=null===(T=null===(k=null==n?void 0:n.promotion)||void 0===k?void 0:k[0])||void 0===T?void 0:T.reference)||void 0===S?void 0:S.content)||void 0===N?void 0:N.promoDescription)||void 0===L?void 0:L[0],Ae=null==Oe?void 0:Oe.productId,Re=null===(I=null==f?void 0:f.getInstance())||void 0===I?void 0:I.getCartUrl(),Fe=null===(V=null==b?void 0:b.getInstance())||void 0===V?void 0:V.getAssetPath(),ze="MOBILE"===(null==l?void 0:l.pageType);let $e;$e=m&&(null===(O=null==p?void 0:p.eligibleBundle)||void 0===O?void 0:O.includes(Ae));let Ge=void 0!==typeof window&&c.get("sunriseAuth");Ge=Ge&&JSON.parse(Ge);const We=((null==t?void 0:t[o])||[]).filter((e=>(null==e?void 0:e.id)===Ae)),je=()=>{he(!1);!(!(null==s?void 0:s.enableExistingCustomer)||null!=Ge)?Ce(!0):Xe()},Ue=e=>{const n=be.findIndex((n=>(null==e?void 0:e.giftGroupId)===(null==n?void 0:n.giftGroupId))),t=be;-1===n?t.push(e):t[n]=e,xe([...t])},He=((e,n)=>{let t;return n||(t=(e||[]).filter((e=>!0===(null==e?void 0:e.enableTV)))),t})(null==Oe?void 0:Oe.bloks,ze),qe=null===(A=null==He?void 0:He[0])||void 0===A?void 0:A.tvProductId,Xe=()=>{he(!1),((e,n,t,o,l,i,d,r,a,u,s,m)=>{var p;if(d)e(!0),0!==(null===(p=Object.keys(o))||void 0===p?void 0:p.length)&&te(o,"",(null==i?void 0:i.promoID)?null==i?void 0:i.promoID:$,n,"mobile",t).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.id,{path:"/"}),Me(ye,o,"",Pe),window.location.href=null===(n=null==l?void 0:l.summaryPageUrl)||void 0===n?void 0:n.cached_url})).catch((n=>{console.log(n),e(!1)})).finally((()=>{e(!1)}));else{const d="undefined"!=typeof window&&c.get("one-commerce-linecheckcorrelationid");a&&u&&d?(e(!0),0!==o.length&&te(o,r,(null==i?void 0:i.promoID)?null==i?void 0:i.promoID:z,n,"fixnet",t).then((e=>{var n;"undefined"!=typeof window&&c.remove("one-commerce-cartId",{path:"/"}),"undefined"!=typeof window&&c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),"undefined"!=typeof window&&c.set("cartProduct",null==i?void 0:i.id,{path:"/"}),"undefined"!=typeof window&&c.remove("landline"),Me(ye,o,"",Pe),window.location.href=null===(n=null==l?void 0:l.summaryPageUrl)||void 0===n?void 0:n.cached_url})).catch((e=>{console.log(e)})).finally((()=>{e(!1)}))):s(!m)}})(ve,Re,be,We,s,Ke,ze,qe,p,m,Le,Ne)},Ke=((e,n,t)=>{var o,l,i,d,r,a,c,u,s;const m={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;m.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())?m.base=null==e?void 0:e.value:"one time"===(null===(t=null==e?void 0:e.priceType)||void 0===t?void 0:t.toLowerCase())&&(m.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,m.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;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)?m.int_fmc+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(m.mob_fmc+=Number(null==e?void 0:e.value),m.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==e?void 0:e.contractDuration)&&(m.contractDuration=null==e?void 0:e.contractDuration),(null===(o=null===(t=null==e?void 0:e.promotionInfo)||void 0===t?void 0:t[0])||void 0===o?void 0:o.id)&&(m.promoID=null===(i=null===(l=null==e?void 0:e.promotionInfo)||void 0===l?void 0:l[0])||void 0===i?void 0:i.id)})),(null===(i=null==e?void 0:e[0])||void 0===i?void 0:i.isBundle)||(m.contractDuration=null===(d=null==e?void 0:e[0])||void 0===d?void 0:d.contractDuration,m.promoID=null===(c=null===(a=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.promotionInfo)||void 0===a?void 0:a[0])||void 0===c?void 0:c.id);let p=0;return null===(s=null===(u=null==e?void 0:e[0])||void 0===u?void 0:u.prices)||void 0===s||s.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)||(m.mob_fmc+=Number(null==e?void 0:e.value),m.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==m?void 0:m.contractDuration)||n||(m.contractDuration="12"),m.int_fmc=t?p:m.int_fmc,m})(We,ze);e.useEffect((()=>{var e;setTimeout((()=>{((e,n)=>{P(`headingV3${e}`,n),P(`descriptionV3${e}`,n),P(`titleV3${e}`,n),P(`detailsectionv3${e}`,n),P(`product-configv3${e}`,n),P(`gift-section${e}`,n),P(`benefits-section${e}`,n),P(`order-section${e}`,n),P(`price-section${e}`,n),P(`benefits-price-section${e}`,n),P(`contract-section${e}`,n)})(d,r)}),100);const n=(e=>{let n=!1,t=!1;return null==e||e.map((e=>{var o;null===(o=null==e?void 0:e.promotionInfo)||void 0===o||o.map((e=>{(null==e?void 0:e.hardwareGift)&&(n=!0),(null==e?void 0:e.cashBack)&&(t=!0)}))})),{showGift:n,cashbackAvailable:t}})(ze?We:null===(e=null==We?void 0:We[0])||void 0===e?void 0:e.bundledOffers);fe(Object.assign({},n))}),[t]);const Je=()=>{(null==He?void 0:He.length)>0&&Se(!0)};return e.createElement("div",null,pe&&Ie&&h.createPortal(e.createElement(Y,{keyParams:"loading"}),Ie),Ve&&e.createElement("div",{className:"w-75 pb-2"},e.createElement(ht,null)),!Ve&&p&&n&&m&&!ze&&e.createElement("div",{className:no.selected},e.createElement("span",{style:{paddingBottom:"10px"}},$e?e.createElement("span",{className:no.activeicon},e.createElement("img",{src:`${Fe}/icons/lineCheck-success.svg`,alt:"",width:24,height:24,className:no.activeicon}),e.createElement("span",null,null==u?void 0:u.subscriptionAvalTxt)):e.createElement("span",{className:no.inactiveicon},e.createElement("img",{src:`${Fe}/icons/cross_disabled.svg`,alt:"",width:24,height:24,className:no.inactiveicon}),e.createElement("span",null,null==u?void 0:u.notSubscriptionTxt)))),e.createElement("div",{className:`${ze||!1!==$e?"":no.overlay}`,style:{flexDirection:"column"}},e.createElement("div",{className:`${no.bundleproductcard} ${no.productcontainer} ${(null===(B=null==n?void 0:n.highlightText)||void 0===B?void 0:B.length)>0&&no.highlightBorder}`},(null===(M=null==Oe?void 0:Oe.highlightText)||void 0===M?void 0:M.length)>0&&e.createElement("div",{className:`${no.highlightText}`},null==n?void 0:n.highlightText),(null==De?void 0:De.displayText)&&e.createElement("div",{className:`${no.promocontainer}`,style:{background:null==De?void 0:De.bestSellerColor}},null==De?void 0:De.displayText),e.createElement("div",{className:`${no.detailsection}`,id:`detailsectionv3${d}${a}`},e.createElement("div",{className:`${no.headersection}`},e.createElement("div",{className:`${no.titlesection}`},e.createElement("div",{className:`${no.productheader}`,id:`titleV3${d}${a}`},null==Oe?void 0:Oe.productName),e.createElement("div",null,(null===(R=null==Oe?void 0:Oe.icon)||void 0===R?void 0:R.filename)&&e.createElement("img",{className:`${no.imagecontainer}`,src:null===(F=null==Oe?void 0:Oe.icon)||void 0===F?void 0:F.filename,height:15,width:20}))),e.createElement("div",{className:`${no.productdescription}`,id:`descriptionV3${d}${a}`},e.createElement(X,{content:null==Oe?void 0:Oe.description})),e.createElement("div",{className:`${no.images}`},(null===(G=null==Oe?void 0:Oe.img)||void 0===G?void 0:G.filename)&&e.createElement("img",{className:`${no.imagespace} ${(null==n?void 0:n.highlightText)&&no.borderimage}`,alt:"cardimg",src:null===(W=null==Oe?void 0:Oe.img)||void 0===W?void 0:W.filename}))),e.createElement("div",{className:`${no.productconfig}`,id:`product-configv3${d}${a}`},Ve?e.createElement(e.Fragment,null,e.createElement("div",{className:no.space}),e.createElement(ht,{stylename:no.skeletontittle,count:1}),e.createElement(ht,{stylename:no.skeletonline,count:5}),e.createElement("div",{className:no.space}),e.createElement(ht,{stylename:no.skeletontittle,count:1}),e.createElement(ht,{stylename:no.skeletonline,count:5})):e.createElement("div",null,(null==Oe?void 0:Oe.bloks)&&(null===(j=null==Oe?void 0:Oe.bloks)||void 0===j?void 0:j.map(((n,t)=>e.createElement(oo,{content:n,indexKey:t,constants:u,key:t,showModalPopup:Je}))))))),e.createElement("div",{className:`${no.detailsection}`,id:`benefits-price-section${d}${a}`},e.createElement("div",{className:`${no.benefitssection}`,id:`benefits-section${d}${a}`},(null===(U=null==Oe?void 0:Oe.benefits)||void 0===U?void 0:U.length)>0&&e.createElement(lo,{content:null==Oe?void 0:Oe.benefits,benefitData:Ke,constants:u})),e.createElement("br",null),e.createElement("div",{className:`${no.giftsection}`,id:`gift-section${d}${a}`},(null==ge?void 0:ge.showGift)&&(null===(H=null==De?void 0:De.singleGift)||void 0===H?void 0:H.map(((n,t)=>e.createElement($t,{content:n,key:t})))),(null==ge?void 0:ge.showGift)&&(null===(q=null==De?void 0:De.giftConfig)||void 0===q?void 0:q.map(((n,t)=>e.createElement(Wt,{content:n,key:t,selectedGiftItem:Ue,parentPoType:ze?"MOBILE":"HOME"})))),e.createElement("div",{className:`${no.giftsection}`,id:`cashback-section${d}${a}`},(null==De?void 0:De.cashBack)&&(null==ge?void 0:ge.cashbackAvailable)&&(null===(K=null==De?void 0:De.cashBack)||void 0===K?void 0:K.map(((n,t)=>e.createElement(Yt,{content:n,key:t})))))),e.createElement("div",{className:`${no.ordersection}`,id:`order-section${d}${a}`},""===(null==Ke?void 0:Ke.base)?e.createElement("div",null,e.createElement(ht,{stylename:no.skeletontittle})):e.createElement("div",{className:`${no.flexgrid} ${no.pricesection} `,id:`price-section${d}${a}`},e.createElement(io,{priceCollection:Ke,constants:u,promoText:null==Oe?void 0:Oe.promoText})),e.createElement("div",{className:`${(null==l?void 0:l.swapButton)&&no.swapButton}`},e.createElement("div",{style:{padding:"16px 0"}},e.createElement(ro,{isMobileFlow:ze,createCartCall:ze?je:Xe,constants:u,storyContent:l,showPrice:Ke,isAvailable:$e,address:m})),e.createElement("div",{className:no.productcontractduration,id:`contract-section${d}${a}`},(null==Ke?void 0:Ke.contractDuration)>"1"?D(null===(J=null==u?void 0:u.minContractDuration)||void 0===J?void 0:J.substring(1),[null==Ke?void 0:Ke.contractDuration]):null==u?void 0:u.noContractDuration),(null===(Z=null==l?void 0:l.addSmartPhone)||void 0===Z?void 0:Z.length)>0&&e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==l?void 0:l.swapButton)?(null==l?void 0:l.ctaLabel)&&e.createElement("div",{style:{padding:"16px 0"}},e.createElement("button",{className:"primarybutton",onClick:()=>go(Ke,l,We)},e.createElement("span",{className:no.buttontext},null==l?void 0:l.ctaLabel))):e.createElement("span",{className:`${no.productdetailslink} ${no.addsmartphone}`},e.createElement("div",null,e.createElement("span",null,(null===(ne=null===(ee=null===(Q=null==l?void 0:l.addSmartPhone)||void 0===Q?void 0:Q[0])||void 0===ee?void 0:ee.buttonIcon)||void 0===ne?void 0:ne.filename)&&e.createElement("img",{src:null===(ie=null===(le=null===(oe=null==l?void 0:l.addSmartPhone)||void 0===oe?void 0:oe[0])||void 0===le?void 0:le.buttonIcon)||void 0===ie?void 0:ie.filename,width:12,height:18,alt:"icon"})),e.createElement("span",null,e.createElement("a",{onClick:()=>go(Ke,l,We)},null===(re=null===(de=null==l?void 0:l.addSmartPhone)||void 0===de?void 0:de[0])||void 0===re?void 0:re.buttonLabel)))))),e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null===(ae=null==Oe?void 0:Oe.productDetails)||void 0===ae?void 0:ae.length)>0&&e.createElement("span",{className:no.productdetailslink,onClick:()=>{he(!_e),tn(ke,Ee,Be(We,"",Pe))}},null==u?void 0:u.productDetailsLink)),_e&&e.createElement(ho,{content:null==Oe?void 0:Oe.productDetails,showProductDetail:_e,setShowProductDetail:he,constants:u,showPrice:Ke,isMobileFlow:ze,createCartCall:ze?je:Xe,storyContent:l,isAvailable:$e,address:m}))))),Te&&(Ve?e.createElement(ht,null):e.createElement(bo,{content:null==He?void 0:He[0],setShowModal:Se,showModal:Te,constants:u})),we&&ze&&(null===(ce=null==s?void 0:s.loginData)||void 0===ce?void 0:ce.length)>0&&Ie&&h.createPortal(e.createElement(_.LoginModalV2,{content:null===(ue=null==s?void 0:s.loginData)||void 0===ue?void 0:ue[0],closeLogin:()=>{Ce(!1)},metadata:i,onSuccess:()=>{Ce(!1),Xe()}}),Ie),Ne&&!ze&&(null===(se=null==s?void 0:s.linecheckData)||void 0===se?void 0:se.length)>0&&e.createElement(ct,{content:null===(me=null==s?void 0:s.linecheckData)||void 0===me?void 0:me[0],onSuccess:()=>{let e="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse");p=e&&(null===JSON||void 0===JSON?void 0:JSON.parse(e)),m="undefined"!=typeof window&&c.get("chAddressJson"),Le(!Ne),"function"==typeof v&&v(),Xe()},showModal:Ne,setShowModal:Le,productName:null==Oe?void 0:Oe.productName}))},yo=({content:n,setGenericErrorModalDetails:t,metadata:o,tabIndex:l,constants:i,loginSuccess:d,activeIndex:r,mainContent:a,address:u,eligibleBundle:s,linecheckSuccessCallBack:m})=>{var p,v,_;const h=V(),g=null==n?void 0:n._uid,[b,x]=e.useState(),y=null===(p=null==f?void 0:f.getInstance())||void 0===p?void 0:p.getBaseUrl();let w=void 0!==typeof window&&c.get("sunriseAuth");w=w&&JSON.parse(w);const C="MOBILE"===(null==n?void 0:n.pageType);e.useEffect((()=>(setTimeout((()=>{E()}),100),null===window||void 0===window||window.addEventListener("resize",E),null===window||void 0===window||window.addEventListener("load",E),()=>{window.removeEventListener("resize",E),window.removeEventListener("load",E)})),[null==n?void 0:n.productList]);const E=()=>{var e;P(`productCardV3${r}`,null===(e=null==n?void 0:n.productList)||void 0===e?void 0:e.length)};e.useEffect((()=>{var e;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&Ge("view",b[g],"",Pe)}),[b]),e.useEffect((()=>{var e;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&!C&&(null==s?void 0:s.eligibleBundle)&&Ge("available",b[g],"",Pe,null==s?void 0:s.eligibleBundle)}),[s,b]);const k=()=>{var e,o;const i=[],c=null==a?void 0:a.enableExistingCustomer,u=null==a?void 0:a.subscriptionType,s=null==n?void 0:n.isReturnPromo;var m,p;if(m=null==n?void 0:n.productList,p=i,null==m||m.map((e=>{var n,t,o,l,i,d,r,a,c,u,s;const m={id:"",promoIds:[]},v=null===(i=null===(l=null===(o=null===(t=null===(n=null==e?void 0:e.products)||void 0===n?void 0:n[0])||void 0===t?void 0:t.reference)||void 0===o?void 0:o.content)||void 0===l?void 0:l.product)||void 0===i?void 0:i[0],_=null===(u=null===(c=null===(a=null===(r=null===(d=null==e?void 0:e.promotion)||void 0===d?void 0:d[0])||void 0===r?void 0:r.reference)||void 0===a?void 0:a.content)||void 0===c?void 0:c.promoDescription)||void 0===u?void 0:u[0];m.id=null==v?void 0:v.productId,null===(s=null==m?void 0:m.promoIds)||void 0===s||s.push(null==_?void 0:_.promotionId),null==p||p.push(m)})),l===r&&!(null==b?void 0:b[g])||l===r&&d)try{null===(e=oe(i,null==n?void 0:n._uid,y,c,u,s))||void 0===e||e.then((e=>{x(e),t({showPopup:!1})})).catch((e=>{var n;console.log("error---\x3e",e),t({showPopup:!0,content:null===(n=null==a?void 0:a.telesalesBlok)||void 0===n?void 0:n[0]})}))}catch(e){console.log("error---\x3e",e),t({showPopup:!0,content:null===(o=null==a?void 0:a.telesalesBlok)||void 0===o?void 0:o[0]})}};return e.useEffect((()=>{r!=l&&r||k()}),[r]),e.useEffect((()=>{(null==w?void 0:w.siteId)&&d&&k()}),[d]),e.createElement("div",null,e.createElement("div",{className:no.titlecontainer},(null==n?void 0:n.title)&&e.createElement("div",{className:no.title},null==n?void 0:n.title),(null==n?void 0:n.subTitle)&&e.createElement("div",{className:no.description},null==n?void 0:n.subTitle)),e.createElement("div",{className:"linetableV3"},h&&e.createElement(mt,{carouselIndex:r,key:r,arrow:null==a?void 0:a.enableMobileArrows},((null===(v=null==n?void 0:n.productList)||void 0===v?void 0:v.length)&&(null==n?void 0:n.productList)||new Array((null===(_=null==n?void 0:n.productList)||void 0===_?void 0:_.length)||3).fill(1)).map(((t,d)=>{var c;return e.createElement("div",{id:`productCardV3${r}`,style:{textAlign:"center"}},e.createElement(xo,{content:t,offeringData:b,uniqueId:g,storyContent:n,metadata:o,tabIndex:l,cardsLength:null===(c=null==n?void 0:n.productList)||void 0===c?void 0:c.length,indexKey:d,constants:i,mainContent:a,linecheckSuccessCallBack:m,address:u,eligibleBundle:s}))})))))};exports.AssetPathPropConfig=b,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:d,modalTriggered:r,showPrice:a})=>{var c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,S,N,L,I,V,O,D,A,B,M,R,F,z,$,G,W,j,U,H,q,K,J,Y,Z,Q,ee,ne,te,oe,le,re,ae,ce,ue,se,_e,he;const ge=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),fe={listLength:l,indexKey:o,arrowUpIcon:null===(_=null===(v=null===(p=null===(m=null==ge?void 0:ge.content)||void 0===m?void 0:m.body)||void 0===p?void 0:p[0])||void 0===v?void 0:v.arrowUp)||void 0===_?void 0:_.filename,arrowDownIcon:null===(b=null===(f=null===(g=null===(h=null==ge?void 0:ge.content)||void 0===h?void 0:h.body)||void 0===g?void 0:g[0])||void 0===f?void 0:f.arrowDown)||void 0===b?void 0:b.filename,arrowLeftRed:null===(C=null===(w=null===(y=null===(x=null==ge?void 0:ge.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===w?void 0:w.arrowLeftRed)||void 0===C?void 0:C.filename},be=null!==(E=null==t?void 0:t.enableNewAddToCart)&&void 0!==E&&E,xe=e.useRef(null),ye=e.useRef(null),we=e.useMemo((()=>fe),[fe]),Ce=()=>{P("linetable-card-title",l),P("linetable-card-tooltiptxt",l),P("linetable-card-bottomConatiner",l)};return e.useEffect((()=>{setTimeout((()=>{Ce()}),100),null===window||void 0===window||window.addEventListener("resize",Ce)}),[n]),e.createElement(ie.Provider,{value:we},e.createElement("div",{className:"linetable-card-productTeaser"},e.createElement("div",{className:"linetable-card-productContainer "},ge.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===(T=null===(k=null==ge?void 0:ge.content)||void 0===k?void 0:k.body[0])||void 0===T?void 0:T.name),e.createElement("div",{className:"linetable-card-productTitle"},e.createElement("h3",null,null===(N=null===(S=null==ge?void 0:ge.content)||void 0===S?void 0:S.body[0])||void 0===N?void 0:N.displayName),(null===(V=null===(I=null===(L=null==ge?void 0:ge.content)||void 0===L?void 0:L.body[0])||void 0===I?void 0:I.prodImage)||void 0===V?void 0:V.filename)&&e.createElement("img",{src:null===(A=null===(D=null===(O=null==ge?void 0:ge.content)||void 0===O?void 0:O.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(X,{content:null===(M=null===(B=null==ge?void 0:ge.content)||void 0===B?void 0:B.body[0])||void 0===M?void 0:M.description}))),!(null==t?void 0:t.isPrepaidFlow)&&e.createElement("hr",null)),(null==ge?void 0:ge.content)&&(null===(F=null===(R=null==ge?void 0:ge.content)||void 0===R?void 0:R.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(X,{content:null===($=null===(z=null==ge?void 0:ge.content)||void 0===z?void 0:z.body[0])||void 0===$?void 0:$.introText})),e.createElement("hr",null))),null===(j=(null===(W=null===(G=null==ge?void 0:ge.content)||void 0===G?void 0:G.body[0])||void 0===W?void 0:W.entitlementConfig)||[])||void 0===j?void 0:j.map(((t,o)=>e.createElement(de,{content:t,product:n,key:o,indexKey:o,showEntitleValue:be,metadata:d,modalTriggered:r}))),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===(q=null===(H=null===(U=null==ge?void 0:ge.content)||void 0===U?void 0:U.body)||void 0===H?void 0:H[0])||void 0===q?void 0:q.productDetailIcon)||void 0===K?void 0:K.filename)&&e.createElement("img",{src:null===(Q=null===(Z=null===(Y=null===(J=null==ge?void 0:ge.content)||void 0===J?void 0:J.body)||void 0===Y?void 0:Y[0])||void 0===Z?void 0:Z.productDetailIcon)||void 0===Q?void 0:Q.filename,width:24,height:24}),e.createElement(pe,{content:null===(ne=null===(ee=null==ge?void 0:ge.content)||void 0===ee?void 0:ee.body)||void 0===ne?void 0:ne[0],updatedContent:t,modalTriggered:r,addToCart:i})),e.createElement("div",null,(null===(le=null===(oe=null===(te=null==ge?void 0:ge.content)||void 0===te?void 0:te.body)||void 0===oe?void 0:oe[0])||void 0===le?void 0:le.isEnablePrice)&&e.createElement(me,{content:null===(ae=null===(re=null==ge?void 0:ge.content)||void 0===re?void 0:re.body)||void 0===ae?void 0:ae[0],addToCart:i,variant:"productCard"})),e.createElement("div",null,!(null===(se=null===(ue=null===(ce=null==ge?void 0:ge.content)||void 0===ce?void 0:ce.body)||void 0===ue?void 0:ue[0])||void 0===se?void 0:se.isEnablePrice)&&!(null==t?void 0:t.staticPrice)&&e.createElement(ve,{content:null===(he=null===(_e=null==ge?void 0:ge.content)||void 0===_e?void 0:_e.body)||void 0===he?void 0:he[0],showPrice:a,addToCart:i}))))))},exports.CardEntitlement=de,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.LinecheckBasicPropConfig=ge,exports.LinecheckModal=ct,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:d,lineCheckCallBack:r,tabCheckCallBack:a,changeAddressClicked:u})=>{var s,m,p;const[v,_]=e.useState(),[h,g]=e.useState(),[b,x]=e.useState(0);let y="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),w=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),C="undefined"!=typeof window&&c.get("chAddressJson");const T=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),P=T+E,S=T+k,N={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=P,t=N,Z(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"),w=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),C="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(ae,null,e.createElement("div",{className:`row justify-content-center ${st.tabblock}`},(null===(m=null==h?void 0:h.productContainer)||void 0===m?void 0:m.length)>1&&e.createElement("div",{className:` ${st.tabcontainer}`},((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement("div",{className:` ${st.tabs} ${b===t?st.tabcontentactive:st.tabcontentinactive}`,key:null==n?void 0:n.tabCaption},e.createElement("label",{className:` ${st.tabcontent} `},e.createElement("input",{type:"radio",checked:b===t,onChange:()=>{x(t),null==a||a(null==n?void 0:n.tabId),tn(ke,Ne,{click_text:null==n?void 0:n.tabCaption})}}),null==n?void 0:n.tabCaption))))))),e.createElement(ae,{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===(p=null==h?void 0:h.productContainer)||void 0===p?void 0:p.length)>0&&((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement(i.Carousel.Item,{key:t},e.createElement(Qt,{content:Object.assign(Object.assign({},n),{pageType:n.pageType,dynamicProductOffer:!0,tabIndex:t,activeIndex:b,lineTableContent:h}),metadata:o,activeIndex:b,lineCheckCallBack:r,tabCheckCallBack:a,sbStaticConstants:v,address:C,eligibleBundle:w,setGenericErrorModalDetails:l,loginSuccess:d})))))))))},exports.ProductTeaser=({content:t,lineCheckCallBack:o,offerDataCallBack:l,productCallBack:i,tableSelectedTab:d})=>{var r,a,c,m,p,v,_,h;const[g,f]=e.useState([]),[b,w]=e.useState(""),[C,E]=e.useState(!1),k=null===(r=null==he?void 0:he.getInstance())||void 0===r?void 0:r.getBaseUrl(),T=V(),P=null===(a=(null==t?void 0:t.productTeaserSlides)||[])||void 0===a?void 0:a.map((e=>null==e?void 0:e.tabTitle)),N=e=>{var n,o,l,i;const d=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 r,a;r=Ne,a=d,window.dataLayer.push({event:ke,event_name:r,click_text:a})},L=[];return null===(c=(null==t?void 0:t.productTeaserSlides)||[])||void 0===c||c.forEach(((e,n)=>{var t,o;(null==e?void 0:e.productId)&&0===(null===(t=L.filter((n=>n.id===(null==e?void 0:e.productId))))||void 0===t?void 0:t.length)&&L.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)===F?z:$]}),(null==e?void 0:e.tvProductId)&&0===(null===(o=L.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.tvProductId))))||void 0===o?void 0:o.length)&&L.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==g?void 0:g.length)&&(e=L,t=k,Z(void 0,void 0,void 0,(function*(){try{localStorage.removeItem("entertainment");const o={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":x}},l=t+y,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&&f(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,d,r,a,c,u,s,m,p,v,_,h;if(1==(null===(n=Object.keys(g))||void 0===n?void 0:n.length)&&"function"==typeof l&&e===G&&"function"==typeof i){const e=null===(d=null===(o=null==L?void 0:L[0])||void 0===o?void 0:o.promoIds)||void 0===d?void 0:d[0],n=null===(r=null==L?void 0:L[0])||void 0===r?void 0:r.id;l(g[n],e,b),i(n)}else if((null===(a=Object.keys(g))||void 0===a?void 0:a.length)>1&&"function"==typeof l&&e===G&&"function"==typeof i){const e=null!==(m=null===(s=null===(u=null===(c=null==L?void 0:L.filter((e=>(null==e?void 0:e.id)===b)))||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!==(_=null===(v=null===(p=null==L?void 0:L.filter((e=>(null==e?void 0:e.id)===b)))||void 0===p?void 0:p[0])||void 0===v?void 0:v.id)&&void 0!==_?_:"";l(g[b],e,b),i(n)}else e===F&&(null===(h=null==t?void 0:t.productTeaserSlides)||void 0===h||h.map((e=>{var n,t,o,i,d;const r=C?null==e?void 0:e.tvProductId:null==e?void 0:e.productId;if((null===(n=Object.keys(g))||void 0===n?void 0:n.length)>0&&"function"==typeof l){const e=null!==(d=null===(i=null===(o=null===(t=null==L?void 0:L.filter((e=>(null==e?void 0:e.id)===r)))||void 0===t?void 0:t[0])||void 0===o?void 0:o.promoIds)||void 0===i?void 0:i[0])&&void 0!==d?d:"";l(g[r],e)}})))}))}),[g,b,C]),e.useEffect((()=>{""!==b&&N(b)}),[b]),e.createElement("div",{className:"position-relative"},(null===(m=null==t?void 0:t.productTeaserSlides)||void 0===m?void 0:m.length)>0&&T&&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===(p=null==t?void 0:t.productTeaserSlides)||void 0===p?void 0:p.length),customDot:e.createElement((n=>{const{onClick:t,active:o,index:l}=n;return o&&w(P[l]),e.createElement("button",{className:o?_e.stageTeaserTabActive:_e.stageTeaserTab,onClick:()=>t()},P[l])}),null),dotListClass:_e.carousel_dot,itemClass:_e.carouselItem,ssr:!0,arrows:!1,containerClass:`${_e.carouselContainer} ${S(null===(_=null===(v=null==t?void 0:t.productTeaserSlides)||void 0===v?void 0:v[0])||void 0===_?void 0:_.gradientBackground)}`,sliderClass:_e.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&&T!==G&&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:_e.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:_e.rightArrow,onClick:n.next})))}),null),customTransition:"transform 1s ease",transitionDuration:500},null===(h=(null==t?void 0:t.productTeaserSlides)||[])||void 0===h?void 0:h.map(((n,l)=>e.createElement(ut,{content:t,slides:n,index:l,offeringData:g,lineCheckCallBack:o,setEnableToggle:E,tableSelectedTab:d})))))},exports.ProductTeaserPropConfig=he,exports.StaticLineTable=({content:n,tabCheckCallBack:t,setGenericErrorModalDetails:o,metadata:l,loginSuccess:d,changeAddressClicked:r,linecheckSuccessCallBack:a})=>{var u,s,m;const[p,v]=e.useState(0),_=null===(u=null==n?void 0:n.oneEcomConstants)||void 0===u?void 0:u[0];let h="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),g=h&&(null===JSON||void 0===JSON?void 0:JSON.parse(h)),f="undefined"!=typeof window&&c.get("chAddressJson");return e.useEffect((()=>{var e,o,l;const i=new URLSearchParams(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.search),d=null==i?void 0:i.get("tabOption");n&&null!==d&&((null==n?void 0:n.productContainer)||[]).map(((e,n)=>{(null==e?void 0:e.tabId)===d&&v(n)}));const r=null===(l=null===(o=null==n?void 0:n.productContainer)||void 0===o?void 0:o[p])||void 0===l?void 0:l.tabId;"function"==typeof t&&(null==t||t(r))}),[n]),e.useEffect((()=>{h="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),g=h&&(null===JSON||void 0===JSON?void 0:JSON.parse(h)),f="undefined"!=typeof window&&c.get("chAddressJson")}),[r]),e.createElement("div",null,e.createElement("div",{id:"static-linetable"},(null==n?void 0:n.productContainer)&&e.createElement(e.Fragment,null,e.createElement(ae,null,e.createElement("div",{className:`row justify-content-center ${no.tabblock}`},(null===(s=null==n?void 0:n.productContainer)||void 0===s?void 0:s.length)>1&&e.createElement("div",{className:` ${no.tabcontainer}`},((null==n?void 0:n.productContainer)||[]).map(((n,o)=>e.createElement("div",{className:` ${no.tabs} ${p===o?no.tabcontentactive:no.tabcontentinactive}`,key:null==n?void 0:n.tabCaption},e.createElement("label",{className:` ${no.tabcontent} `},e.createElement("input",{type:"radio",checked:p===o,onChange:()=>{v(o),"function"==typeof t&&(null==t||t(null==n?void 0:n.tabId)),tn(ke,Ne,{click_text:null==n?void 0:n.tabCaption})}}),null==n?void 0:n.tabCaption))))))),e.createElement(ae,{resuablelineTable:!0},e.createElement("div",{className:"position-relative "},e.createElement(i.Carousel,{activeIndex:p,indicators:!1,controls:!1,interval:null,id:"pt-carousel",slide:!1},(null===(m=null==n?void 0:n.productContainer)||void 0===m?void 0:m.length)>0&&((null==n?void 0:n.productContainer)||[]).map(((t,r)=>e.createElement(i.Carousel.Item,{key:r},e.createElement(yo,{content:t,setGenericErrorModalDetails:o,metadata:l,tabIndex:r,constants:_,loginSuccess:d,activeIndex:p,mainContent:n,address:f,eligibleBundle:g,linecheckSuccessCallBack:a}))))))))))},exports.StickyProductAnchor=({content:n,offerData:t,lineCheckCallBack:o})=>{var l,i,d,r,a,u,s,m,p,v;const _=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),[w,C]=e.useState("noFalconStyle"),[E,k]=e.useState("noFalconStyle"),[T,P]=e.useState(!1),S=V(),L=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 I=0;I=(null==t?void 0:t.derivedPrice)?null===(r=null===(d=null==t?void 0:t.derivedPrice)||void 0===d?void 0:d[0])||void 0===r?void 0:r.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 O=e=>{const n=(null==e?void 0:e.id)&&document.getElementById(null==e?void 0:e.id);P(!1),n&&n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},D=()=>e.createElement("div",{className:eo.priceSection},"CHF"," ",N(I),e.createElement("span",{className:eo.priceDuration},null==L?void 0:L.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 d=document.getElementById("stickyAnchorContainer"),r=document.querySelectorAll(".sticky-header");if(null!=r){const e=(null==r?void 0:r.length)>0?"falconStyle":"noFalconStyle";C(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==d?void 0:d.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==L?void 0:L.productName)&&e.createElement(e.Fragment,null,h.createPortal(e.createElement(e.Fragment,null,e.createElement("div",{className:`${eo.stickyAnchorContainer} ${x?eo.offsetClass:eo.nonOffsetClass} ${eo[w]} ${eo[E]}`,id:"stickyAnchorContainer"},e.createElement(ae,null,e.createElement("div",{className:eo.productContainer},e.createElement("div",{className:eo.productTitle},(S===U||S===G)&&e.createElement("img",{onClick:()=>{P(!T)},className:`${eo.arrowIcon} ${T?eo.clockwise:eo.counterclockwise}`,src:null===(m=null==L?void 0:L.arrowUp)||void 0===m?void 0:m.filename}),e.createElement("div",null,null==L?void 0:L.productName,e.createElement("div",{className:eo.productPrice},I>0&&(S===U||S===G)&&e.createElement(e.Fragment,null,D())))),e.createElement("div",{className:eo.contentWrapper},S!==U&&S!==G&&e.createElement(e.Fragment,null,e.createElement("span",{className:eo.benefitsContainer},null===(p=(null==L?void 0:L.benefits)||[])||void 0===p?void 0:p.map((n=>e.createElement("div",{className:eo.benefits,onClick:()=>O(n)},null==n?void 0:n.title)))),I>0&&e.createElement(e.Fragment,null,D())),(null==L?void 0:L.buyBtn)&&e.createElement("button",{className:eo.buyNowButton,onClick:(null==L?void 0:L.productType)===G?()=>{(null==t?void 0:t.id)&&Ge(ye,[t],"",Ce),(null==t?void 0:t.id)&&te([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:"",_,G).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==L?void 0:L.productId,{path:"/"}),window.location.href=null!==(n=null==L?void 0:L.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))}:()=>{var e,n,l;const i=localStorage.getItem("lineCheckResponse"),d=i&&JSON.parse(i),r=c.get("one-commerce-linecheckcorrelationid"),a=c.get("chAddressJson"),u=null!==(e=null==L?void 0:L.productId)&&void 0!==e?e:"",s=a&&d&&(null==d?void 0:d.eligibleBundle.includes(u));d&&a&&r?s&&(0!==(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&Ge(ye,[t],L,Ce),0!==(null===(l=Object.keys(t))||void 0===l?void 0:l.length)&&te([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:z,_,F).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==L?void 0:L.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))):"function"==typeof o&&o()}},null==L?void 0:L.buyBtn))))),(null==L?void 0:L.productName)&&T&&e.createElement("div",{className:`${eo.stickyAnchorContainer} ${x?eo.offsetClass2:eo.nonOffsetClass}`,id:"dropDownContainer"},e.createElement("span",{className:eo.benefitsContainer2},null===(v=(null==L?void 0:L.benefits)||[])||void 0===v?void 0:v.map((n=>e.createElement("div",{className:eo.subcontain,onClick:()=>O(n)},null==n?void 0:n.title)))))),A))):e.createElement(e.Fragment,null)};
8
+ parse:function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var t={},o=n||{},l=e.split(";"),i=o.decode||kn,d=0;d<l.length;d++){var r=l[d],a=r.indexOf("=");if(!(a<0)){var c=r.substring(0,a).trim();if(null==t[c]){var u=r.substring(a+1,r.length).trim();'"'===u[0]&&(u=u.slice(1,-1)),t[c]=Sn(u,i)}}}return t},serialize:function(e,n,t){var o=t||{},l=o.encode||Tn;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!Pn.test(e))throw new TypeError("argument name is invalid");var i=l(n);if(i&&!Pn.test(i))throw new TypeError("argument val is invalid");var d=e+"="+i;if(null!=o.maxAge){var r=o.maxAge-0;if(isNaN(r)||!isFinite(r))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+Math.floor(r)}if(o.domain){if(!Pn.test(o.domain))throw new TypeError("option domain is invalid");d+="; Domain="+o.domain}if(o.path){if(!Pn.test(o.path))throw new TypeError("option path is invalid");d+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");d+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(d+="; HttpOnly");o.secure&&(d+="; Secure");if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return d}},kn=decodeURIComponent,Tn=encodeURIComponent,Pn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Sn(e,n){try{return n(e)}catch(n){return e}}!function(e){var n=wn&&wn.__assign||function(){return n=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},n.apply(this,arguments)},t=wn&&wn.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};Object.defineProperty(e,"__esModule",{value:!0}),e.checkCookies=e.hasCookie=e.removeCookies=e.deleteCookie=e.setCookies=e.setCookie=e.getCookie=e.getCookies=void 0;var o=En,l=function(){return"undefined"!=typeof window},i=function(e){void 0===e&&(e="");try{var n=JSON.stringify(e);return/^[\{\[]/.test(n)?n:e}catch(n){return e}};e.getCookies=function(e){var n;if(e&&(n=e.req),!l())return n&&n.cookies?n.cookies:n&&n.headers&&n.headers.cookie?(0,o.parse)(n.headers.cookie):{};for(var t={},i=document.cookie?document.cookie.split("; "):[],d=0,r=i.length;d<r;d++){var a=i[d].split("="),c=a.slice(1).join("=");t[a[0]]=c}return t};e.getCookie=function(n,t){var o,l=(0,e.getCookies)(t)[n];if(void 0!==l)return function(e){return"true"===e||"false"!==e&&("undefined"!==e?"null"===e?null:e:void 0)}((o=l)?o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent):o)};e.setCookie=function(e,d,r){var a,c,u;r&&(c=r.req,u=r.res,a=t(r,["req","res"]));var s=(0,o.serialize)(e,i(d),n({path:"/"},a));if(l())document.cookie=s;else if(u&&c){var m=u.getHeader("Set-Cookie");if(Array.isArray(m)||(m=m?[String(m)]:[]),u.setHeader("Set-Cookie",m.concat(s)),c&&c.cookies){var p=c.cookies;""===d?delete p[e]:p[e]=i(d)}if(c&&c.headers&&c.headers.cookie){p=(0,o.parse)(c.headers.cookie);""===d?delete p[e]:p[e]=i(d),c.headers.cookie=Object.entries(p).reduce((function(e,n){return e.concat("".concat(n[0],"=").concat(n[1],";"))}),"")}}};e.setCookies=function(n,t,o){return console.warn("[WARN]: setCookies was deprecated. It will be deleted in the new version. Use setCookie instead."),(0,e.setCookie)(n,t,o)};e.deleteCookie=function(t,o){return(0,e.setCookie)(t,"",n(n({},o),{maxAge:-1}))};e.removeCookies=function(n,t){return console.warn("[WARN]: removeCookies was deprecated. It will be deleted in the new version. Use deleteCookie instead."),(0,e.deleteCookie)(n,t)};e.hasCookie=function(n,t){return!!n&&(0,e.getCookies)(t).hasOwnProperty(n)};e.checkCookies=function(n,t){return console.warn("[WARN]: checkCookies was deprecated. It will be deleted in the new version. Use hasCookie instead."),(0,e.hasCookie)(n,t)}}(Cn);var Nn="Success-module_addresstext__fpGg5",Ln="Success-module_speed__vEhlw",In="Success-module_maxspeed__Yq1ZC",Vn="Success-module_tooltip__4R5Ux",On="Success-module_networkInfo__BeKKs",Dn="Success-module_mobilecard__73-r4",An="Success-module_spacedownload__jMUia",Bn="Success-module_downloadText__zg5M1",Mn="Success-module_downloader__--k56",Rn="Success-module_download__ADpzl",Fn="Success-module_address-unsuccess__bRTUF",zn="Success-module_mobilerow__u-8fK",$n="Success-module_spaceupload__av3Jg",Gn="Success-module_uploadText__pvv4-",Wn="Success-module_upload__Q3KLf",jn="Success-module_checkout__hMz1i",Un="Success-module_product__-hvEO",Hn="Success-module_checks-click__VjZ-O",qn="Success-module_checkoutline__ioLgh",Xn="Success-module_secondarybutton__1-u96";g("/* 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.Success-module_addresstext__fpGg5 {\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n color: #3d3935;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: unset;\n text-align: center;\n border-radius: 8px 0px 0px 0px;\n background-color: #F7F6F5;\n position: relative;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 {\n min-width: 580px;\n min-height: 272px;\n padding: 40px 16px;\n gap: 40px;\n border-radius: 8px 0px 0px 0px;\n background-color: #F7F6F5;\n position: relative;\n bottom: 33px;\n }\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 {\n padding-top: 40px;\n width: 100%;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw {\n padding: 0 16px !important;\n }\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw {\n position: relative;\n top: 26px;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_maxspeed__Yq1ZC {\n font-size: 14px;\n line-height: 16px;\n color: #5f5955;\n font-weight: 400;\n top: 10px;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_maxspeed__Yq1ZC {\n position: relative;\n min-width: 269px;\n min-height: 20px;\n gap: 0px;\n opacity: 0px;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_tooltip__4R5Ux {\n cursor: pointer;\n min-width: 16.25px;\n min-height: 16.25px;\n left: 1.88px;\n gap: 0px;\n color: #5F5955;\n position: relative;\n top: 8px;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_speed__vEhlw .Success-module_tooltip__4R5Ux {\n top: 1px !important;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs {\n display: flex;\n font-weight: 400;\n color: #5f5955;\n font-size: 14px;\n line-height: 20px;\n margin-top: 16px;\n justify-content: center;\n align-items: center;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs {\n top: 15px;\n position: relative;\n left: 0px !important;\n }\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs {\n margin-top: 6px;\n flex-direction: column;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 {\n display: flex;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 {\n flex-direction: row;\n align-items: flex-start;\n align-content: center;\n flex-wrap: wrap;\n justify-content: space-evenly;\n }\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia {\n border-right: 1px solid #E6E3DF;\n flex-direction: column;\n display: flex;\n margin-top: 16px;\n }\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia {\n flex-direction: column;\n display: flex;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_downloadText__zg5M1 {\n color: #5F5955;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n min-width: 67px;\n min-height: 20px;\n gap: 0px;\n text-align: center;\n}\n@media (max-width: 767px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_downloadText__zg5M1 {\n display: inline-flex;\n }\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_downloader__--k56 {\n margin-left: 0px;\n margin-right: 8px;\n }\n}\n.Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_download__ADpzl {\n color: #5f5955;\n margin-right: 8px;\n margin-left: 8px;\n}\n@media (min-width: 768px) {\n .Success-module_addresstext__fpGg5 .Success-module_networkInfo__BeKKs .Success-module_mobilecard__73-r4 .Success-module_spacedownload__jMUia .Success-module_download__ADpzl {\n min-width: 73px;\n min-height: 24px;\n gap: 0px;\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: left;\n margin-right: 0;\n margin-left: 0;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_address-unsuccess__bRTUF {\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n color: #3d3935;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: unset;\n text-align: center;\n min-height: 146px;\n }\n}\n\n.Success-module_mobilerow__u-8fK {\n flex-direction: column;\n display: flex;\n margin-top: 16px;\n min-width: 73px;\n min-height: 48px;\n gap: 4px;\n margin-left: 0px !important;\n}\n@media (max-width: 767px) {\n .Success-module_mobilerow__u-8fK {\n padding: 0 16px;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_spaceupload__av3Jg {\n flex-direction: column;\n display: flex;\n margin-top: 16px;\n margin-left: 30px !important;\n }\n}\n@media (max-width: 767px) {\n .Success-module_spaceupload__av3Jg {\n display: flex;\n flex-direction: column;\n }\n}\n.Success-module_spaceupload__av3Jg .Success-module_uploadText__pvv4- {\n min-width: 48px;\n min-height: 20px;\n gap: 0px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n text-align: left;\n color: #5F5955;\n}\n@media (max-width: 767px) {\n .Success-module_spaceupload__av3Jg .Success-module_uploadText__pvv4- {\n display: inline-flex;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_upload__Q3KLf {\n min-width: 73px;\n min-height: 24px;\n gap: 0px;\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: left;\n color: #5F5955;\n }\n}\n\n@media (min-width: 768px) {\n .Success-module_checkout__hMz1i {\n align-items: center;\n display: flex;\n justify-content: center;\n position: relative;\n bottom: 32px;\n left: 0px;\n right: 20px;\n }\n .Success-module_product__-hvEO {\n align-items: center;\n display: flex;\n justify-content: center;\n position: relative;\n bottom: 32px;\n left: 0px;\n right: 20px;\n bottom: 30px;\n right: 0px;\n }\n .Success-module_checks-click__VjZ-O {\n max-width: 238px;\n max-height: 52px;\n padding: 14px 24px 14px 24px;\n gap: 8px;\n border-radius: 28px;\n }\n .Success-module_checkoutline__ioLgh {\n position: relative;\n left: 10px;\n }\n}\n.Success-module_secondarybutton__1-u96 {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n color: #da291c;\n cursor: pointer;\n background-color: white;\n border: 2px solid #da291c;\n border-radius: 28px;\n display: inline-flex;\n align-content: center;\n justify-content: center;\n min-width: 227px;\n min-height: 52px;\n padding: 14px;\n gap: 8px;\n}\n@media (max-width: 767px) {\n .Success-module_secondarybutton__1-u96 {\n width: 100%;\n }\n}\n\n@media (max-width: 767px) {\n .Success-module_checkout__hMz1i {\n width: 100% !important;\n }\n}\n\n@media (max-width: 767px) {\n .Success-module_product__-hvEO {\n width: 100% !important;\n }\n}");const Kn=({content:n,uploadDownload:t,textContent:o,eligibleBundle:l,tooltipcontent:i,onSuccess:d})=>{var r,a,u;const s=V();let m="undefined"!=typeof window&&c.get("one-commerce-access-type");const p=null===(r=null==o?void 0:o.linecheck)||void 0===r?void 0:r[0];try{m=m&&JSON.parse(m)}catch(e){console.log("invalid access Type json")}const[v,_]=e.useState();e.useEffect((()=>{(null==l?void 0:l.length)<1?_(null==p?void 0:p.dataText):_("")}),[]);return e.useEffect((()=>{v&&rn(v,Oe+" "+(null==p?void 0:p.title),Ie,Ve),v&&an(Ve,Ie,Oe+" | "+(null==p?void 0:p.title),v)}),[v]),e.createElement(e.Fragment,null,e.createElement("div",{className:`${Nn} ${"mobile"!=s&&(l&&(v||!v)&&(null==l?void 0:l.length)>1?Nn:Fn)}`},e.createElement("span",null,n),e.createElement("div",{className:Ln},!v&&(null==p?void 0:p.maximumSpeedText)&&e.createElement("p",{className:In},null==p?void 0:p.maximumSpeedText),!v&&e.createElement("span",{className:Vn},i&&e.createElement(xe,{content:p,tooltipcontent:i}))),!v&&(null==l?void 0:l.length)>0&&e.createElement("div",{className:On},e.createElement("div",{className:Dn},e.createElement("div",{className:zn},e.createElement("div",{className:An},e.createElement("span",{className:Bn},e.createElement(e.Fragment,null,null==p?void 0:p.downloadText)),e.createElement("span",{className:Mn},e.createElement("b",{className:Rn},null==t?void 0:t.maxBandwidthDown)))),e.createElement("div",{className:zn},e.createElement("div",{className:$n},e.createElement("span",{className:Gn},e.createElement(e.Fragment,null,null==p?void 0:p.uploadText)),e.createElement("span",null,e.createElement("b",{className:Wn},null==t?void 0:t.maxBandwidthUp)))," ","  ")))),!v&&(null==l?void 0:l.length)>0&&e.createElement("div",{className:jn},e.createElement("button",{name:"check address button",type:"button",className:`primarybutton ${Hn}`,disabled:!1,onClick:()=>{"function"==typeof d&&d()}},null==o?void 0:o.checkoutButtonLabel,e.createElement("span",null,e.createElement("img",{src:null===(a=null==p?void 0:p.rightArrowWhiteIcon)||void 0===a?void 0:a.filename,height:24,width:24,alt:"right-arrow",className:qn})))),v&&e.createElement("div",{className:Un},e.createElement("button",{name:"check address button",type:"button",className:Xn,disabled:!1,onClick:()=>{var e,n;(null===(e=null==o?void 0:o.otherProductsUrl)||void 0===e?void 0:e.url)&&"undefined"!=typeof window&&(window.location.href=null===(n=null==o?void 0:o.otherProductsUrl)||void 0===n?void 0:n.url)}},null==o?void 0:o.otherProductsLabel,e.createElement("span",null,e.createElement("img",{src:null===(u=null==p?void 0:p.arrowIcon)||void 0===u?void 0:u.filename,height:24,width:24,alt:"right-arrow",className:qn})))))};var Jn="LineCheckOverlay-module_linecheckOverlay__xm5mN",Yn="LineCheckOverlay-module_headerContainer__ZtE-q",Zn="LineCheckOverlay-module_closeIcon__DnyPh",Qn="LineCheckOverlay-module_helpText__TdjEy",et="LineCheckOverlay-module_linechecktitle__rh6uX",nt="LineCheckOverlay-module_changeTxt__BHU6a",tt="LineCheckOverlay-module_spinner__jr6Om",ot="LineCheckOverlay-module_maincontainerMob__5-DEz",lt="LineCheckOverlay-module_sub-container__38kO2";g("/* 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.LineCheckOverlay-module_linecheckOverlay__xm5mN {\n background-color: #ffffff;\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n cursor: pointer;\n z-index: 10000;\n padding: 0 16px;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_headerContainer__ZtE-q {\n background-color: #ffffff;\n /* box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2); */\n text-align: center;\n padding: 12px 0px;\n color: #000000;\n font-weight: 700;\n padding-right: 16px;\n font-size: 18px;\n line-height: 24px;\n height: 50px;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_headerContainer__ZtE-q .LineCheckOverlay-module_closeIcon__DnyPh {\n position: absolute;\n right: 15px;\n top: 18px;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_LCInputText__EHQKo {\n text-align: center;\n font-weight: 700;\n font-size: 18px;\n line-height: 24px;\n margin: 16px 0;\n}\n.LineCheckOverlay-module_linecheckOverlay__xm5mN .LineCheckOverlay-module_helpText__TdjEy {\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n color: #5f5955;\n padding: 16px 16px 0px 16px;\n}\n\n.LineCheckOverlay-module_linechecktitle__rh6uX {\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n text-align: center;\n position: relative;\n}\n@media (min-width: 768px) {\n .LineCheckOverlay-module_linechecktitle__rh6uX {\n top: 12px;\n }\n}\n\n.LineCheckOverlay-module_changeTxt__BHU6a {\n color: #da291c;\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n}\n\n.LineCheckOverlay-module_changeTxt__BHU6a:hover {\n cursor: pointer;\n color: #961c13;\n}\n\n.LineCheckOverlay-module_changeTxt__BHU6a:active {\n cursor: pointer;\n color: #c7355f;\n}\n\n.LineCheckOverlay-module_spinner__jr6Om {\n margin-top: 60vh;\n}\n\n.LineCheckOverlay-module_maincontainerMob__5-DEz {\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n height: 100%;\n gap: 40px;\n}\n\n.LineCheckOverlay-module_sub-container__38kO2 {\n display: flex;\n flex-direction: column;\n gap: 24px;\n align-items: center;\n}");const it=({props:n,productName:t,handleModalClick:o,onSuccess:l})=>{var d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P,S,N,L,I,O,D,A,B,M,R,F,z,$,G,W,j,U,H,q;const X=e.useRef(null),K=V(),[J,Y]=e.useState(!1),Z=e.useRef(null);e.useEffect((()=>{var e,t;(null===(e=null==n?void 0:n.selectedAddress)||void 0===e?void 0:e.concatedAddress)&&(null===(t=null==X?void 0:X.current)||void 0===t||t.blur())}),[null===(d=null==n?void 0:n.selectedAddress)||void 0===d?void 0:d.concatedAddress]);const Q=e.createElement("div",null,e.createElement("span",{className:"mobileTable"},e.createElement("span",{className:"changeBtn",onClick:null==n?void 0:n.EditButtonClick,hidden:!(null===(r=null==n?void 0:n.linecheckResponse)||void 0===r?void 0:r.eligibleBundle)},e.createElement("span",{className:nt},"mobile"===K?null===(a=null==n?void 0:n.lineCheckContent)||void 0===a?void 0:a.changeTextMob:null===(c=null==n?void 0:n.lineCheckContent)||void 0===c?void 0:c.changeText))));return e.createElement(e.Fragment,null,e.createElement("div",{onClick:()=>{var e;null===(e=null==X?void 0:X.current)||void 0===e||e.focus()},className:Jn},e.createElement("div",{className:(null===(u=null==n?void 0:n.linecheckResponse)||void 0===u?void 0:u.eligibleBundle)&&ot},(null===(s=n.lineCheckContent)||void 0===s?void 0:s.popUpTitle)&&e.createElement("div",{className:Yn,ref:Z},J?null===(m=n.lineCheckContent)||void 0===m?void 0:m.popUpTitle:"",(null==n?void 0:n.isFetchingLineCheck)&&!(null==n?void 0:n.apiError)&&""!==(null===(p=null==X?void 0:X.current)||void 0===p?void 0:p.value)?e.createElement("div",{className:tt}," ",e.createElement(i.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"})):e.createElement("img",{onClick:o,className:Zn,width:13.5,height:13.5,alt:"close",src:null===(g=null===(h=null===(_=null===(v=null==n?void 0:n.lineCheckContent)||void 0===v?void 0:v.linecheckIcons)||void 0===_?void 0:_[0])||void 0===h?void 0:h.close)||void 0===g?void 0:g.filename})),e.createElement("div",{className:lt},(null===(f=null==n?void 0:n.linecheckResponse)||void 0===f?void 0:f.eligibleBundle)&&((null==n?void 0:n.errorMessage)||!(null==n?void 0:n.errorMessage)&&(null===(x=null===(b=null==n?void 0:n.linecheckResponse)||void 0===b?void 0:b.eligibleBundle)||void 0===x?void 0:x.length)>1?e.createElement("img",{src:null===(E=null===(C=null===(w=null===(y=null==n?void 0:n.lineCheckContent)||void 0===y?void 0:y.linecheckIcons)||void 0===w?void 0:w[0])||void 0===C?void 0:C.tick)||void 0===E?void 0:E.filename,height:"32px",width:"32px"}):e.createElement("img",{src:null===(S=null===(P=null===(T=null===(k=null==n?void 0:n.lineCheckContent)||void 0===k?void 0:k.linecheckIcons)||void 0===T?void 0:T[0])||void 0===P?void 0:P.notAvailableIcon)||void 0===S?void 0:S.filename,height:"32px",width:"32px"})),((null===(N=null==n?void 0:n.lineCheckContent)||void 0===N?void 0:N.linecheckTitle)||(null===(L=null==n?void 0:n.lineCheckContent)||void 0===L?void 0:L.successLinecheckTitle))&&e.createElement(e.Fragment,null,e.createElement("h4",{className:et},!(null==n?void 0:n.FetchingLineCheck)&&(null===(I=null==n?void 0:n.linecheckResponse)||void 0===I?void 0:I.eligibleBundle)?(null===(D=null===(O=null==n?void 0:n.linecheckResponse)||void 0===O?void 0:O.eligibleBundle)||void 0===D?void 0:D.length)<1?null===(A=null==n?void 0:n.lineCheckContent)||void 0===A?void 0:A.noConnectionTitle.replace("{0}",t):null===(B=null==n?void 0:n.lineCheckContent)||void 0===B?void 0:B.successLinecheckTitle.replace("{0}",t):null===(M=null==n?void 0:n.lineCheckContent)||void 0===M?void 0:M.linecheckTitle.replace("{0}",t)))),(null===(R=null==n?void 0:n.linecheckResponse)||void 0===R?void 0:R.eligibleBundle)?e.createElement(e.Fragment,null,e.createElement(Kn,{content:e.createElement("span",{"data-hj-suppress":!0},null===(z=null==n?void 0:n.selectedAddress)||void 0===z?void 0:z.concatedAddress,Q),isLoading:null==n?void 0:n.isFetchingLineCheck,uploadDownload:null===($=null==n?void 0:n.linecheckResponse)||void 0===$?void 0:$.maxUploadDownloadSpeed,textContent:null==n?void 0:n.content,eligibleBundle:null===(G=null==n?void 0:n.linecheckResponse)||void 0===G?void 0:G.eligibleBundle,tooltipcontent:null===(W=null==n?void 0:n.lineCheckContent)||void 0===W?void 0:W.speedTooltip,onSuccess:l})):e.createElement(e.Fragment,null,e.createElement(yn,{content:n.lineCheckContent,parentCallback:n.handleSelection,parentAddress:null===(F=n.selectedAddress)||void 0===F?void 0:F.concatedAddress,ref:X,isAddressNotFilled:n.isAddressNotFilled,name:"lineCheck",onChange:e=>{n.onChange(e)},apiError:n.apiError,setApiError:n.setApiError,setFetchingLineCheck:n.setFetchingLineCheck,onData:e=>{Y(!0)},FetchingLineCheck:null==n?void 0:n.FetchingLineCheck})),(null===(j=null==n?void 0:n.lineCheckContent)||void 0===j?void 0:j.helpText)&&!(null===(U=X.current)||void 0===U?void 0:U.value)?e.createElement("div",{className:Qn},!(null==n?void 0:n.isFetchingLineCheck)&&(null===(H=null==n?void 0:n.linecheckResponse)||void 0===H?void 0:H.eligibleBundle)?"":null===(q=null==n?void 0:n.lineCheckContent)||void 0===q?void 0:q.helpText):"")))};var dt={linecheckOverlay:"LineCheckV3-module_linecheckOverlay__RAe2G",maincontainerMob:"LineCheckV3-module_maincontainerMob__4SVlq",headerContainer:"LineCheckV3-module_headerContainer__Ut1Gl",inputrow:"LineCheckV3-module_inputrow__tIRGR","input-container":"LineCheckV3-module_input-container__QkGch","inputrow-success":"LineCheckV3-module_inputrow-success__W8KNh","inputrow-failure":"LineCheckV3-module_inputrow-failure__Elryv",horizontalDivider:"LineCheckV3-module_horizontalDivider__wA7-z","homeicon-wrapper":"LineCheckV3-module_homeicon-wrapper__96nLx",homeicon:"LineCheckV3-module_homeicon__JRepz",checkbutton:"LineCheckV3-module_checkbutton__Hvs6G",linechecktitle:"LineCheckV3-module_linechecktitle__q9IWF","linechecktitle-success":"LineCheckV3-module_linechecktitle-success__xShgM",helpText:"LineCheckV3-module_helpText__A4xmz",changeTxt:"LineCheckV3-module_changeTxt__OuWM8",changeTxts:"LineCheckV3-module_changeTxts__Fgzxd",closeIcon:"LineCheckV3-module_closeIcon__VW4f8"};g("/* 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.LineCheckV3-module_linecheckOverlay__RAe2G {\n background-color: #ffffff;\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n cursor: pointer;\n z-index: 10000;\n}\n.LineCheckV3-module_linecheckOverlay__RAe2G .LineCheckV3-module_maincontainerMob__4SVlq {\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n align-items: center;\n}\n.LineCheckV3-module_linecheckOverlay__RAe2G .LineCheckV3-module_maincontainerMob__4SVlq .LineCheckV3-module_headerContainer__Ut1Gl {\n background-color: #ffffff;\n /* box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2); */\n text-align: center;\n padding: 12px 0px;\n color: #000000;\n font-weight: 700;\n padding-right: 16px;\n font-size: 18px;\n line-height: 24px;\n height: 50px;\n}\n\n.LineCheckV3-module_inputrow__tIRGR {\n position: relative;\n box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);\n border-radius: 8px;\n background-color: #ffffff;\n padding: 16px;\n margin: 0px;\n}\n@media (min-width: 768px) {\n .LineCheckV3-module_inputrow__tIRGR {\n min-width: 844px;\n min-height: 173px;\n bottom: 55px;\n padding: 10px 16px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .LineCheckV3-module_inputrow__tIRGR {\n min-width: 680px !important;\n width: 680px;\n }\n .LineCheckV3-module_inputrow__tIRGR .LineCheckV3-module_input-container__QkGch {\n width: 62% !important;\n }\n}\n\n@media (min-width: 768px) {\n .LineCheckV3-module_inputrow-success__W8KNh {\n position: relative;\n max-width: 628px;\n max-height: 568px;\n padding: 40px 24px 40px 24px;\n gap: 40px;\n border-radius: 8px;\n opacity: 0px;\n background-color: #FFFFFF;\n box-shadow: 0px 2px 4px 0px rgba(87, 84, 82, 0.2);\n bottom: 40px;\n left: 40px;\n }\n .LineCheckV3-module_inputrow-failure__Elryv {\n max-width: 628px;\n position: relative;\n max-height: 442px;\n padding: 40px 24px 40px 24px;\n gap: 40px;\n border-radius: 8px 0px 0px 0px;\n opacity: 0px;\n color: #FFFFFF;\n box-shadow: 0px 2px 4px 0px rgba(87, 84, 82, 0.2);\n background-color: #FFFFFF;\n }\n .LineCheckV3-module_horizontalDivider__wA7-z {\n height: 1px;\n width: 815px;\n background-color: #E6E3DF;\n position: relative;\n bottom: 0px;\n right: 0px;\n left: 4px;\n top: 14px;\n }\n .LineCheckV3-module_homeicon-wrapper__96nLx {\n align-items: center;\n display: flex;\n justify-content: center;\n top: -20px;\n position: relative;\n }\n .LineCheckV3-module_homeicon__JRepz {\n min-width: 39px;\n min-height: 39px;\n position: relative;\n top: 27.5px;\n left: 0.5px;\n gap: 0px;\n opacity: 0px;\n color: #3D3935;\n }\n}\n@media (min-width: 768px) and (max-width: 767px) {\n .LineCheckV3-module_homeicon__JRepz {\n margin-top: 12px;\n }\n}\n@media (min-width: 768px) {\n .LineCheckV3-module_checkbutton__Hvs6G {\n min-width: 186px;\n min-height: 52px;\n padding: 14px 24px 14px 24px;\n gap: 8px;\n border-radius: 28px;\n opacity: 0px;\n color: #E6E3DF;\n position: relative;\n top: 15px;\n }\n}\n.LineCheckV3-module_linechecktitle__q9IWF, .LineCheckV3-module_linechecktitle-success__xShgM {\n font-family: Avenir Next;\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n text-align: center;\n position: relative;\n top: 10px;\n}\n@media (min-width: 768px) {\n .LineCheckV3-module_linechecktitle__q9IWF, .LineCheckV3-module_linechecktitle-success__xShgM {\n top: 12px;\n }\n}\n\n@media (min-width: 768px) {\n .LineCheckV3-module_linechecktitle-success__xShgM {\n top: -23px;\n }\n}\n\n.LineCheckV3-module_helpText__A4xmz {\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n color: #5f5955;\n padding: 16px 16px 0px 16px;\n}\n\n.LineCheckV3-module_changeTxt__OuWM8 {\n color: #da291c;\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n}\n\n.LineCheckV3-module_changeTxt__OuWM8:hover {\n cursor: pointer;\n color: #961c13;\n}\n\n.LineCheckV3-module_changeTxt__OuWM8:active {\n cursor: pointer;\n color: #c7355f;\n}\n\n@media (min-width: 768px) {\n .LineCheckV3-module_changeTxts__Fgzxd {\n color: #da291c;\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n position: relative;\n top: 10px;\n }\n}\n\n.LineCheckV3-module_closeIcon__VW4f8 {\n cursor: pointer;\n position: absolute;\n left: 95%;\n top: 24px;\n}");const rt=({content:n,shippingAddress:t,onSuccess:o,productName:l,handleModalClick:d,setShowModal:r})=>{var a,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P;const[S,N]=e.useState(!1),L=e.useRef(null),[I,O]=e.useState({enableCheckaddress:!1}),[D,A]=e.useState(),[B,M]=e.useState(),[R,F]=e.useState(!1),[z,$]=e.useState(),[G,W]=e.useState(!1),[j,U]=e.useState({openIndividualLineCheck:!1,availabilityCheckClicked:!1}),[H,q]=e.useState(!1),X=V();null==z||z.shouldAutomateLineCheck;const K=new Date;new Date(null===(a=null==B?void 0:B.plannedUpgrade)||void 0===a?void 0:a.date).getTime(),K.getTime();const[J,Y]=e.useState(!1),Z=(e,n)=>{U(n),M(" "),A(e),""!==(null==e?void 0:e.postCode)&&""!==e.city&&""!==e.houseNumber&&""!==e.street&&""!==e.concatedAddress?O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!0}))):O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!1})))},Q=()=>{(null==I?void 0:I.enableCheckaddress)?O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!1}))):N(!1)},ee=()=>{W(!1),"undefined"!=typeof window&&localStorage.removeItem("lineCheckResponse"),Cn.deleteCookie("chAddressJson"),Cn.deleteCookie("one-commerce-linecheckcorrelationid"),dn("lineTableView Address","Change",Le),O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!0}))),M("")},ne=e.createElement("div",null,e.createElement("span",{className:"mobileTable"},e.createElement("span",{className:"changeBtn",onClick:ee,hidden:!(null==B?void 0:B.eligibleBundle)},e.createElement("span",{className:"mobile"!==X?dt.changeTxts:dt.changeTxt},"mobile"===X?null==z?void 0:z.changeTextMob:null==z?void 0:z.changeText)))),te=()=>{var e;W(!0),I.enableCheckaddress||Object.keys(D).length>0?(F(!0),Cn.deleteCookie("chAddressJson"),Cn.setCookie("chAddressJson",JSON.stringify({addressValue:null==D?void 0:D.concatedAddress,selectedAdd:D}),{path:"/",maxAge:259200}),dn("lineCheckStart","Check address",Le),ln(ke,"line_check_start",{input:`${null==D?void 0:D.postCode}| ${null==D?void 0:D.city}`,selection:null==z?void 0:z.buttonvalue}),D&&Object.keys(D).length>0&&vn(D).then((e=>{localStorage.setItem("LinecheckCall","true"),F(!1),M(e),q(!1),"mobile"===X&&j.openIndividualLineCheck&&Y(!0)})).catch((e=>{console.log(e),q(!0),U(Object.assign(Object.assign({},j),{availabilityCheckClicked:!1})),"mobile"===X&&j.openIndividualLineCheck&&Y(!0)}))):(N(!0),null===(e=L.current)||void 0===e||e.focus(),"mobile"===X&&Y(!1))};e.useEffect((()=>{var e,n,t,o,l,i,d,r,a;try{let c=Cn.getCookie("chAddressJson");const u=Cn.getCookie("one-commerce-linecheckcorrelationid");try{c=c&&JSON.parse(c)}catch(e){console.log("invalid address json")}let s=Cn.getCookie("sunriseAuth");try{s=s&&JSON.parse(s)}catch(e){console.log("invalid AuthCookie json")}if(c){O((e=>Object.assign(Object.assign({},e),{enableCheckaddress:!1}))),A(null==c?void 0:c.selectedAdd);const s=localStorage.getItem("lineCheckResponse"),m=localStorage.getItem("one-commerce-linecheckcorrelationid"),p={eligibleBundle:null!==(n=s&&(null===(e=JSON.parse(s))||void 0===e?void 0:e.eligibleBundle))&&void 0!==n?n:[],configEligibleBundle:null!==(o=s&&(null===(t=JSON.parse(s))||void 0===t?void 0:t.configEligibleBundle))&&void 0!==o?o:[],maxUploadDownloadSpeed:null!==(i=s&&(null===(l=JSON.parse(s))||void 0===l?void 0:l.maxUploadDownloadSpeed))&&void 0!==i?i:{},lineCheckRepsonse:B&&JSON.parse(null==B?void 0:B.originalLinecheckResponse),lineCheckCorrelationId:null!=m?m:"",plannedUpgrade:null!==(r=s&&(null===(d=JSON.parse(s))||void 0===d?void 0:d.plannedUpgrade))&&void 0!==r?r:{}};s&&u&&(null===(a=JSON.parse(s))||void 0===a?void 0:a.eligibleBundle)&&Object.keys(null==c?void 0:c.selectedAdd).length&&M(p)}}catch(e){}}),[z,t]),e.useEffect((()=>{var e,t,o,l,i;n&&("lineCheckTemplate"===(null===(t=null===(e=null==n?void 0:n.reference)||void 0===e?void 0:e.content)||void 0===t?void 0:t.component)?$(null===(l=null===(o=null==n?void 0:n.reference)||void 0===o?void 0:o.content)||void 0===l?void 0:l.linecheck[0]):$(null===(i=null==n?void 0:n.linecheck)||void 0===i?void 0:i[0]))}),[]),e.useEffect((()=>{var e,n,t,o,l;(!(null==B?void 0:B.eligibleBundle)||(null==B?void 0:B.eligibleBundle.length)<1)&&N(!1),(null===(e=null==B?void 0:B.eligibleBundle)||void 0===e?void 0:e.length)&&(0!==Object.keys(D).length&&void 0!==(null===(n=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===n?void 0:n.maxBandwidthDown)||void 0!==(null===(t=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===t?void 0:t.maxBandwidthDown))&&(((e,n,t,o,l)=>{const i={address:e,eventAction:n,eventValue:t,id:o,timeStamp:Math.round(Date.now()/1e3),type:l};try{window.appEventData.push({event:l,eventInfo:i})}catch(e){}})(`${null==D?void 0:D.postCode}| ${null==D?void 0:D.city} | ${null==D?void 0:D.street} | ${null==D?void 0:D.houseNumber} |\n ${null===(o=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===o?void 0:o.maxBandwidthUp} | ${null===(l=null==B?void 0:B.maxUploadDownloadSpeed)||void 0===l?void 0:l.maxBandwidthDown}`,"lineCheckResult",1,c.get("one-commerce-linecheckcorrelationid"),"view"),ln(ke,"line_check_results",{input:`${null==D?void 0:D.postCode}| ${null==D?void 0:D.city}`,eligible:""}))}),[null===(u=null==B?void 0:B.eligibleBundle)||void 0===u?void 0:u.length]);const oe=e.useRef(null),le=()=>{"mobile"!==X||j.openIndividualLineCheck?"mobile"===X&&j.openIndividualLineCheck&&j.availabilityCheckClicked&&te():(te(),setTimeout((()=>{var e;null===(e=oe.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),1e3))};e.useEffect((()=>{"mobile"!==X||j.openIndividualLineCheck?"mobile"===X&&j.openIndividualLineCheck&&j.availabilityCheckClicked&&le():le()}),[D]);const[ie,de]=e.useState(),re={linecheckResponse:B,eligibleBundle:null==B?void 0:B.eligibleBundle,lineCheckContent:z,handleSelection:Z,isAddressNotFilled:S,name:"lineCheck",onChange:Q,selectedAddress:D,isFetchingLineCheck:R,onClose:le,apiError:H,setApiError:q,setFetchingLineCheck:F,setPopup:Y,content:n,errorMessage:ie,EditButtonClick:ee},ae=Object.assign({},re);e.useEffect((()=>{var e;(null===(e=null==B?void 0:B.eligibleBundle)||void 0===e?void 0:e.length)<1?de(null==z?void 0:z.dataText):de("")}),[]);const ce=()=>{"mobile"===X&&Y(!0)};e.useEffect((()=>{ce(),window.addEventListener("resize",ce)}),[X]);return e.createElement(e.Fragment,null,!J&&"mobile"!==X&&e.createElement(e.Fragment,null,e.createElement("div",{className:"row justify-content-center ",ref:oe},e.createElement("div",{className:`${(null==B?void 0:B.eligibleBundle)&&"mobile"===X?dt.linecheckOverlay:"col-12 px-0"}`},e.createElement("div",{className:` ${S&&!(null==B?void 0:B.eligibleBundle)?"gradientborder":""} ${"mobile"!==X&&dt.maincontainerMob}`},e.createElement("div",{className:`${!(null==B?void 0:B.eligibleBundle)&&"mobile"!=X&&`row ${dt.inputrow}`} ${"mobile"!=X&&(null==B?void 0:B.eligibleBundle)&&(ie||!ie&&(null===(s=null==B?void 0:B.eligibleBundle)||void 0===s?void 0:s.length)>1?`row ${dt["inputrow-success"]}`:`row ${dt["inputrow-failure"]}`)} `},(null==B?void 0:B.eligibleBundle)&&(ie||!ie&&(null===(m=null==B?void 0:B.eligibleBundle)||void 0===m?void 0:m.length)>1?e.createElement("img",{src:null===(_=null===(v=null===(p=null==z?void 0:z.linecheckIcons)||void 0===p?void 0:p[0])||void 0===v?void 0:v.tick)||void 0===_?void 0:_.filename,height:"32px",width:"32px"}):e.createElement("img",{src:null===(f=null===(g=null===(h=null==z?void 0:z.linecheckIcons)||void 0===h?void 0:h[0])||void 0===g?void 0:g.notAvailableIcon)||void 0===f?void 0:f.filename,height:"32px",width:"32px"})),((null==z?void 0:z.linecheckTitle)||(null==z?void 0:z.successLinecheckTitle))&&e.createElement(e.Fragment,null,e.createElement("h4",{className:`${(null==B?void 0:B.eligibleBundle)?dt["linechecktitle-success"]:dt.linechecktitle} `},!R&&(null==B?void 0:B.eligibleBundle)&&(null==B?void 0:B.eligibleBundle)?(null===(b=null==B?void 0:B.eligibleBundle)||void 0===b?void 0:b.length)<1?null==z?void 0:z.noConnectionTitle.replace("{0}",l):null==z?void 0:z.successLinecheckTitle.replace("{0}",l):null==z?void 0:z.linecheckTitle.replace("{0}",l))),e.createElement("span",{onClick:()=>{r(!1)},className:dt.closeIcon},e.createElement("img",{width:14,height:14,alt:"close",src:null===(w=null===(y=null===(x=null==z?void 0:z.linecheckIcons)||void 0===x?void 0:x[0])||void 0===y?void 0:y.close)||void 0===w?void 0:w.filename})),(null==B?void 0:B.eligibleBundle)?e.createElement(e.Fragment,null,e.createElement(Kn,{content:e.createElement("span",{"data-hj-suppress":!0},null==D?void 0:D.concatedAddress,ne),isLoading:R,uploadDownload:null==B?void 0:B.maxUploadDownloadSpeed,textContent:n,eligibleBundle:null==B?void 0:B.eligibleBundle,tooltipcontent:z.speedTooltip,onSuccess:o})):e.createElement(e.Fragment,null,e.createElement("div",{className:dt.horizontalDivider}),e.createElement("div",{className:`col-1 px-0 ${dt["homeicon-wrapper"]}`},(null==B?void 0:B.eligibleBundle)?e.createElement(e.Fragment,null):e.createElement("img",{src:null===(k=null===(E=null===(C=null==z?void 0:z.linecheckIcons)||void 0===C?void 0:C[0])||void 0===E?void 0:E.home)||void 0===k?void 0:k.filename,height:""+("mobile"===X?"26px":"48px"),width:""+("mobile"===X?"26px":"48px"),alt:"home",className:dt.homeicon})),e.createElement("div",{className:`col-lg-8 col-md-8 col-sm-8 ${"mobile"===X&&((null==B?void 0:B.eligibleBundle)?"col-12":"col-9")} px-0 ${dt["input-container"]}`},e.createElement("div",null,e.createElement(yn,{content:z,parentCallback:Z,parentAddress:null==D?void 0:D.concatedAddress,ref:L,isAddressNotFilled:S,name:"lineCheck",onChange:Q,setAddressNotFilled:N,apiError:H,setApiError:q,setFetchingLineCheck:F,checkAvailability:G,FetchingLineCheck:R,setSelectedAddress:A}))),e.createElement("div",{className:`col-lg-3 col-md-3 col-sm-3 col-2 px-0 m-auto ${dt.checkbutton}`},e.createElement("button",{name:"check address button",type:"button",className:"primarybutton",disabled:!(null==I?void 0:I.enableCheckaddress)||R,hidden:!!(null==B?void 0:B.eligibleBundle),onClick:te,style:{width:"100%",position:"relative",bottom:"10px"}},R&&!H&&""!==(null===(T=null==L?void 0:L.current)||void 0===T?void 0:T.value)?e.createElement(i.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}):null==z?void 0:z.buttonvalue))))))),(null==z?void 0:z.helpText)&&!(null===(P=L.current)||void 0===P?void 0:P.value)&&e.createElement("div",{className:dt.helptext},!R&&(null==B?void 0:B.eligibleBundle)?"":null==z?void 0:z.helpText)),"mobile"===X&&J&&e.createElement("div",null,e.createElement(it,{props:ae,productName:l,handleModalClick:d,onSuccess:o})))},at=({modalState:n,handler:l,showFooter:i,footerNode:d,children:r,width:a,height:c,noCloseButton:u,backDrop:s,fixedWidth:m,backgroundColor:p,bodyPadding:v})=>(e.useEffect((()=>{const e=document&&document.querySelector(".modal-dialog");e&&(e.style.maxWidth=a,e.style.padding="0",e.style.width=m);const n=document.querySelector(".modal-content");n&&(n.style.minHeight=c,n.style.backgroundColor=p);const t=document.querySelector(".modal-body");t&&v&&(t.style.padding=v)}),[c]),e.createElement(t,{centered:!0,show:n,onHide:l,backdrop:s||"static",keyboard:!1,dialogClassName:"sr-custom-modal"},e.createElement(t.Header,null,e.createElement("div",{style:{display:u?"none":""}},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,r),i&&e.createElement(t.Footer,null,d))),ct=({content:n,onSuccess:t,showModal:o,setShowModal:l,productName:i})=>{var d,r,a;const c=null===(a=null===(r=null===(d=null==n?void 0:n.reference)||void 0===d?void 0:d.content)||void 0===r?void 0:r.body)||void 0===a?void 0:a[0],u=()=>{l(!1)};return e.createElement(at,{modalState:o,handler:u,showFooter:!1,noCloseButton:!0,backgroundColor:"transparent",fixedWidth:"850px"},e.createElement(rt,{content:c,onSuccess:t,productName:i,handleModalClick:u,setShowModal:l}))},ut=({content:n,slides:t,index:o,offeringData:l,lineCheckCallBack:i,setEnableToggle:d,tableSelectedTab:r})=>{var a,u,s,p,v,_,h,g,f,x,y,w,C,E,k,T,P,S,L,I,O,D,A,B,M,R,H,q,K,J,Z,Q,ee,ne;const oe=null===(a=null==b?void 0:b.getInstance())||void 0===a?void 0:a.getAssetPath(),le=null===(u=null==he?void 0:he.getInstance())||void 0===u?void 0:u.getCartUrl(),[ie,de]=e.useState(!1),[re,ae]=e.useState(!1);let ce=c.get("chAddressJson");const ue=V(),[se,me]=e.useState(!1),pe=t.selectedTabId===r;e.useEffect((()=>{de(pe)}),[pe]);let ve=localStorage.getItem("lineCheckResponse"),ge=ve&&JSON.parse(ve),fe=ie?null==t?void 0:t.tvProductId:null==t?void 0:t.productId,be=ce&&(null===(s=null==ge?void 0:ge.eligibleBundle)||void 0===s?void 0:s.includes(fe));const we=e=>{var n,t,o,i,d;(null==e?void 0:e.productType)===F?(ve=localStorage.getItem("lineCheckResponse"),ce=c.get("chAddressJson"),ge=ve&&JSON.parse(ve),fe=ie?null==e?void 0:e.tvProductId:null==e?void 0:e.productId,be=ce&&(null===(n=null==ge?void 0:ge.eligibleBundle)||void 0===n?void 0:n.includes(fe)),be&&(0!==(null===(t=Object.keys(l))||void 0===t?void 0:t.length)&&Ge(ye,[l[null==e?void 0:e.productId]],"",Te),me(!0),0!==(null===(o=Object.keys(l))||void 0===o?void 0:o.length)&&te([l[fe]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:z,le,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",fe,{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),me(!1)})).finally((()=>{me(!1)})))):(null==e?void 0:e.productType)===G&&(me(!0),0!==(null===(i=Object.keys(l))||void 0===i?void 0:i.length)&&Ge(ye,[l[null==e?void 0:e.productId]],"",Te),0!==(null===(d=Object.keys(l))||void 0===d?void 0:d.length)&&te([l[null==e?void 0:e.productId]],"",(null==e?void 0:e.promoId)?null==e?void 0:e.promoId:$,le,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),me(!1)})).finally((()=>{me(!1)})))},Ce=()=>{var o,i,d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w;let C,E;const k=localStorage.getItem("lineCheckResponse"),T=k&&JSON.parse(k),P=ie?null==t?void 0:t.tvProductId:null==t?void 0:t.productId,S=!(!k||(null==T?void 0:T.eligibleBundle.includes(P)));return C=(null===(o=l[null==t?void 0:t.productId])||void 0===o?void 0:o.derivedPrice)?null===(r=null===(d=null===(i=l[null==t?void 0:t.productId])||void 0===i?void 0:i.derivedPrice)||void 0===d?void 0:d[0])||void 0===r?void 0:r.value:null===(u=null===(c=null===(a=l[null==t?void 0:t.productId])||void 0===a?void 0:a.prices)||void 0===c?void 0:c[0])||void 0===u?void 0:u.value,E=(null===(s=l[null==t?void 0:t.tvProductId])||void 0===s?void 0:s.derivedPrice)?null===(v=null===(p=null===(m=l[null==t?void 0:t.tvProductId])||void 0===m?void 0:m.derivedPrice)||void 0===p?void 0:p[0])||void 0===v?void 0:v.value:null===(g=null===(h=null===(_=l[null==t?void 0:t.tvProductId])||void 0===_?void 0:_.prices)||void 0===h?void 0:h[0])||void 0===g?void 0:g.value,e.createElement("div",{className:`${Ee?_e.priceContainer:_e.priceContainerNew}`,style:{marginLeft:"left"===(null==t?void 0:t.containerAlignment)&&ue!==G?"40px":"",marginRight:"right"===(null==t?void 0:t.containerAlignment)&&ue!==G?"40px":""}},S&&(null==t?void 0:t.productType)===F&&e.createElement("div",{className:_e.serviceUnavail},e.createElement("img",{src:`${oe}/icons/not-available.svg`,alt:"",width:24,height:24}),null==n?void 0:n.serviceabilityError),(null===(x=null===(b=null===(f=l[null==t?void 0:t.productId])||void 0===f?void 0:f.prices)||void 0===b?void 0:b[0])||void 0===x?void 0:x.value)>0&&e.createElement("span",{className:`${_e.priceWrapper} ${"left"===(null==t?void 0:t.containerAlignment)&&"right"!==(null==t?void 0:t.textAlignment)&&ue!==G?_e.leftWrapper:""}`},e.createElement("div",{className:`${"center"!==(null==t?void 0:t.containerAlignment)&&"center"!==(null==t?void 0:t.textAlignment)&&ue!==G?_e.sliderNew:_e.slider} ${ie&&(null==t?void 0:t.productType)===F&&_e.clicked}`},C&&e.createElement("div",{className:_e.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:_e.pricetxt},e.createElement(X,{content:null==t?void 0:t.priceTxt})),N(C),e.createElement("p",{className:_e.priceDuration},null==t?void 0:t.conDuration)),E&&e.createElement("div",{className:_e.line},(null==t?void 0:t.priceTxt)&&e.createElement("div",{className:_e.pricetxt},null==t?void 0:t.priceTxt),N(E),e.createElement("p",{className:_e.priceDuration},null==t?void 0:t.conDuration))),be?e.createElement("button",{onClick:()=>we(t),className:`${"center"===(null==t?void 0:t.containerAlignment)||"center"===(null==t?void 0:t.textAlignment)||ue===G?_e.callCart:_e.callCartNew}`},null==t?void 0:t.buttonLbl,e.createElement("img",{className:_e.arrowIcon,src:null===(y=null==n?void 0:n.btnIcon)||void 0===y?void 0:y.filename,alt:"submit",width:24,height:24})):e.createElement("button",{onClick:()=>ae(!re),className:`${"center"===(null==t?void 0:t.containerAlignment)||"center"===(null==t?void 0:t.textAlignment)||ue===G?_e.callCart:_e.callCartNew}`},null==t?void 0:t.checkAvailability,e.createElement("img",{className:_e.arrowIcon,src:null===(w=null==n?void 0:n.btnIcon)||void 0===w?void 0:w.filename,alt:"submit",width:24,height:24}))),e.createElement("div",{className:"left"===(null==t?void 0:t.containerAlignment)&&"left"===(null==t?void 0:t.textAlignment)&&ue!==G?_e.priceDescCenter:"left"===(null==t?void 0:t.containerAlignment)&&"center"===(null==t?void 0:t.textAlignment)&&ue!==G?_e.priceLeftCenter:"center"===(null==t?void 0:t.containerAlignment)||"center"===(null==t?void 0:t.textAlignment)||ue===G?_e.priceDesc:_e.priceDescNew},null==t?void 0:t.priceDesc))},Ee=null==t?void 0:t.isFullWidthImage,Pe=ue===j&&"left"===(null==t?void 0:t.containerAlignment),Se=ue===j&&"right"===(null==t?void 0:t.containerAlignment),Ne=ue===j&&"center"===(null==t?void 0:t.containerAlignment),Le=ue===j&&"left"===(null==t?void 0:t.textAlignment),Ie=ue===j&&"right"===(null==t?void 0:t.textAlignment);return e.createElement("div",{className:""},e.createElement("div",{className:_e.carouselItem,key:o},se&&e.createElement(Y,{keyParams:"loading"}),ue===j&&(null===(p=null==t?void 0:t.desktopBGImage)||void 0===p?void 0:p.filename)&&Ee&&e.createElement("img",{src:(null===(v=null==t?void 0:t.desktopBGImage)||void 0===v?void 0:v.filename)+"/m/",alt:"desktop teaser",width:"100%",height:"550px",className:_e.teaserImage})," ",ue===j&&(null===(_=null==t?void 0:t.desktopBGImage)||void 0===_?void 0:_.filename)&&!Ee&&"center"!==(null==t?void 0:t.containerAlignment)&&e.createElement("img",{src:(null===(h=null==t?void 0:t.desktopBGImage)||void 0===h?void 0:h.filename)+"/m/",alt:"desktop teaser",width:"50%",height:"550px",className:`${"left"===(null==t?void 0:t.containerAlignment)?_e.teaserImageLeft:_e.teaserImageRight}`}),(ue===U||ue===W)&&(null===(g=null==t?void 0:t.tabBGImage)||void 0===g?void 0:g.filename)&&e.createElement("img",{src:null===(f=null==t?void 0:t.tabBGImage)||void 0===f?void 0:f.filename,alt:"tablet Teaser",width:"100%",height:"550px",className:_e.teaserImage}),ue===G&&(null===(x=null==t?void 0:t.mobileBGImage)||void 0===x?void 0:x.filename)&&e.createElement("img",{src:null===(y=null==t?void 0:t.mobileBGImage)||void 0===y?void 0:y.filename,alt:"mobile Teaser",width:"100%",height:"500px",className:_e.teaserImage}),e.createElement("div",{className:`${ue===U||ue===W?_e.contentWrapper:Pe?_e.contentWrapperLeft:Se?_e.contentWrapperRight:_e.contentMobWrapper}`},e.createElement("div",{className:`${Pe||Se?_e.productDetailsWrapperNew:Ne&&Ee?_e.productDetailsWrapper:Ne&&!Ee?_e.productDetailsWrapperTransparent:""}`},e.createElement("div",{className:`${_e.titleSection} ${(null===(w=null==n?void 0:n.productTeaserSlides)||void 0===w?void 0:w.length)>1&&_e.extraSpace}\n ${Le?"text-start":Ie?"text-end":"text-center"}\n `},(null==t?void 0:t.heading)&&e.createElement(e.Fragment,null,!ie&&e.createElement("div",{className:`${_e.heading}`},null==t?void 0:t.heading),(null==t?void 0:t.tvSubHeading)&&ie&&e.createElement("div",{className:`${_e.heading} ${ie?_e.fadeInText:_e.fadeOutText}`},null==t?void 0:t.tvSubHeading)),(null==t?void 0:t.subHeading)&&e.createElement("div",{className:_e.paragraph},null==t?void 0:t.subHeading),(null==t?void 0:t.description)&&e.createElement("div",{className:_e.description},e.createElement(X,{content:null==t?void 0:t.description}))),e.createElement("div",null,Ne&&(null===(C=null==t?void 0:t.desktopBGImage)||void 0===C?void 0:C.filename)&&!Ee&&e.createElement("img",{src:(null===(E=null==t?void 0:t.desktopBGImage)||void 0===E?void 0:E.filename)+"/m/",alt:"transparent Image",width:"196px",height:"196px"})),e.createElement("div",{className:_e.featureSection},(null===(k=null==t?void 0:t.details)||void 0===k?void 0:k.length)>0&&e.createElement("div",{className:_e.featureList},null===(T=(null==t?void 0:t.details)||[])||void 0===T?void 0:T.map(((n,t)=>{var o,l,i;return e.createElement(e.Fragment,null,t>0&&ue!==G&&e.createElement("div",{className:_e.horizontalLine}),e.createElement("div",{className:_e.features},(null===(o=null==n?void 0:n.icon)||void 0===o?void 0:o.filename)&&e.createElement("img",{className:_e.featureIcon,src:ue===G?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(X,{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(xe,{content:null==n?void 0:n.tooltipTxt,tooltipClass:_e.toolTip}))))}))),ue===G&&(null==t?void 0:t.productType)===F&&(null===(P=Object.keys(l))||void 0===P?void 0:P.length)>0&&e.createElement("div",{className:_e.horizontalLineDark}),(null==t?void 0:t.productType)===F&&(null===(S=null==t?void 0:t.tvDetails)||void 0===S?void 0:S.length)>0&&""!==(null==t?void 0:t.tvProductId)&&e.createElement("div",{className:_e.addOnSection},e.createElement("img",{src:ue===G?null===(O=null===(I=null===(L=null==t?void 0:t.tvDetails)||void 0===L?void 0:L[0])||void 0===I?void 0:I.mobIcon)||void 0===O?void 0:O.filename:null===(B=null===(A=null===(D=null==t?void 0:t.tvDetails)||void 0===D?void 0:D[0])||void 0===A?void 0:A.icon)||void 0===B?void 0:B.filename,className:_e.addOnSectionIcon,alt:"tv",width:24,height:24}),e.createElement(X,{content:null===(R=null===(M=null==t?void 0:t.tvDetails)||void 0===M?void 0:M[0])||void 0===R?void 0:R.text}),e.createElement("span",{className:`d-flex align-items-center ${_e.toggleSection}`},e.createElement("span",{className:_e.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,r,a,c,u,s;de(!ie),d(!ie),c=ie?"toggle_off_configurator":"toggle_on_configurator",u=null==t?void 0:t.heading,s=(null===(a=null===(r=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===r?void 0:r[0])||void 0===a?void 0:a.text).replace(/[^a-zA-Z ]/g,""),window.dataLayer.push({event:ke,event_name:c,headline:u,selection:s})},checked:ie})),(null===(q=null===(H=null==t?void 0:t.tvDetails)||void 0===H?void 0:H[0])||void 0===q?void 0:q.tooltipTxt)&&e.createElement(xe,{content:null===(J=null===(K=null==t?void 0:t.tvDetails)||void 0===K?void 0:K[0])||void 0===J?void 0:J.tooltipTxt,tooltipClass:_e.toolTip}))),ue===G&&(null===(Z=Object.keys(l))||void 0===Z?void 0:Z.length)>0&&e.createElement(e.Fragment,null,e.createElement("div",{className:_e.horizontalLineDark}),Ce()))),ue!==G&&(null===(Q=Object.keys(l))||void 0===Q?void 0:Q.length)>0&&e.createElement(e.Fragment,null,Ce()),re&&(null==t?void 0:t.productType)===F&&(null===(ee=null==n?void 0:n.linecheckData)||void 0===ee?void 0:ee.length)>0&&e.createElement(ct,{content:null===(ne=null==n?void 0:n.linecheckData)||void 0===ne?void 0:ne[0],onSuccess:()=>{ae(!1),we(t),i()},showModal:re,setShowModal:ae,productName:null==t?void 0:t.heading}))))};var st={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",mobilecard:"LineTableV3Refined-module_mobilecard__GW9e3",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",images:"LineTableV3Refined-module_images__9j18U",imagespace:"LineTableV3Refined-module_imagespace__o5gPc",borderimage:"LineTableV3Refined-module_borderimage__mgiVb",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"};g("/* 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@media (max-width: 767px) {\n .LineTableV3Refined-module_mobilecard__GW9e3 {\n width: calc(100vw - 70px);\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 margin-top: -7px;\n}\n\n.LineTableV3Refined-module_images__9j18U {\n margin-right: -40px;\n}\n\n.LineTableV3Refined-module_imagespace__o5gPc {\n overflow: hidden;\n width: 100%;\n height: 100%;\n margin-left: -20px;\n margin-top: 30px;\n}\n\n.LineTableV3Refined-module_borderimage__mgiVb {\n padding: 0 4px;\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: 4px;\n color: #ffffff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 16px;\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 mt=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=V(),d=e.useRef(),r=parseInt(n.carouselIndex,10);let a=!1;return e.useEffect((()=>{const e=window.innerWidth;a=e<767,setTimeout((()=>{var e;(!a&&r>2||a)&&(null===(e=d.current)||void 0===e||e.goToSlide(r,!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:d,customTransition:"transform 1s ease"},n.children)};var pt={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"};g('/* 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-bottom: 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 vt=({content:n,entitlementConfig:t,indexKey:o,listlength:l,showModalPopup:i,sbStaticConstants:d,tabIndex:r,countryList:a,metadata:c})=>{var u;const[s,m]=e.useState(!1),p=e.useRef(null),v=null===(u=null==b?void 0:b.getInstance())||void 0===u?void 0:u.getAssetPath();e.useEffect((()=>{setTimeout((()=>{_()}),100)}),[s]);const _=()=>{P(`product-configv3${r}`,l),P(`detailsectionv3${r}`,l)};return e.createElement("div",{ref:p},e.createElement("div",{className:pt.productdetailswrapper},e.createElement("div",{className:pt.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:pt.imagecontainer})):"",e.createElement("span",{className:pt.displayname},null==n?void 0:n.name),(null==n?void 0:n.tooltip)?e.createElement("div",{className:pt.bundletooltip,style:{marginLeft:"auto"}},e.createElement(xe,{content:null==n?void 0:n.tooltip})):""),e.createElement("div",{className:pt.configdetailssection},(null==n?void 0:n.tvChannelName)&&"TV"===(null==n?void 0:n.poType)&&e.createElement("div",{className:pt.newmodal,onClick:()=>{i()}},e.createElement("div",{className:pt.tvHeading},null==n?void 0:n.tvChannelName),e.createElement("div",{className:pt.changeBtn},d.changeText),e.createElement("img",{src:`${v}/icons/chevron-down-red.svg`,height:24,width:24,alt:""})),(null==n?void 0:n.includeDescription)?e.createElement("div",{className:pt.productdetailsdescription,id:`entitledespV3${o}`},e.createElement(X,{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:pt.entitlementvalue},(null==n?void 0:n.icon)&&e.createElement("div",{className:pt.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)?pt.disabled:""},null==n?void 0:n.entitlement,(null==n?void 0:n.toolTipText)&&e.createElement("div",{className:pt.bundletooltip},e.createElement(xe,{content:null==n?void 0:n.toolTipText})))):"")))),(null==t?void 0:t.length)>2&&e.createElement("div",{className:pt.showmore,onClick:()=>m(!s)},s?null==d?void 0:d.show_less:null==d?void 0:d.show_more)),(null==n?void 0:n.linkText)&&e.createElement(le,{product:a,linkText:null==n?void 0:n.linkText,metadata:c,reuseableLineTable:!0}))))};var _t="SkeletonLoader-module_reactloadingskeletonV3__hLl73";g('/* 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 ht=({count:n=1,stylename:t=""})=>e.createElement("div",null,e.createElement(p,{className:`${_t} ${t}`,count:n})),gt=({content:n,priceCollection:t,toggleSwitch:o,sbStaticConstants:l})=>{var i,d,r,a,c,u;const s=null!==(i=null==t?void 0:t.base)&&void 0!==i?i:0;let m=null!==(a=null===(r=null===(d=null==t?void 0:t.discount)||void 0===d?void 0:d[0])||void 0===r?void 0:r.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 p=null==t?void 0:t.discount,v=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:`${pt.pricecontainer}`},e.createElement("span",{className:`${pt.discountedprice} ${o&&!(v>0||_>0)?"":o||v>0||_>0||(null==p?void 0:p.length)>0?pt.promo:""}`},N(m>0&&!o?m:s),e.createElement("span",{className:`${pt.duration}`},null==l?void 0:l.mt)),s&&(v>0||_>0||!o&&p.length>0)&&e.createElement("span",{className:`${pt.basePriceAfterDiscount}`},N(s)),e.createElement("div",null,null==n?void 0:n.promoText)),!o&&!_&&!v&&(null==p?void 0:p.length)>0&&(null===(u=null==p?void 0:p[0])||void 0===u?void 0:u.cycleEnd)&&e.createElement("div",null,e.createElement("div",{className:pt.pricedisplay},p.length>0&&p.map((n=>(720===(null==n?void 0:n.cycleEnd)&&(h=!0),e.createElement(e.Fragment,null," ",e.createElement("span",{className:pt.pricelabel},h?null==l?void 0:l.lifetime_label:e.createElement(e.Fragment,null," ",1!=n.cycleStart&&e.createElement(e.Fragment,null,"CHF"," ",N(n.value))," ",1===n.cycleStart?D(null==l?void 0:l.promo_first_lt,[n.cycleEnd]):D(null==l?void 0:l.promo_next_lt,[n.cycleEnd-n.cycleStart+1]))))))),!h&&e.createElement("span",null," ",D(null==l?void 0:l.promo_then_lt,[N(s)]))))):e.createElement(ht,{stylename:pt.blockskeleton}))};var ft="ProductDetailsV2-module_productmodal__2B7qv",bt="ProductDetailsV2-module_container__dH9t4",xt="ProductDetailsV2-module_backbtn__5E2Ow",yt="ProductDetailsV2-module_closebtn__vonVN",wt="ProductDetailsV2-module_cartbtn__lmC7O",Ct="ProductDetailsV2-module_check-footer__iuqqZ",Et="ProductDetailsV2-module_footer-linetablev3__bo9Qj";g("/* 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 kt=({modalState:n,handler:l,showFooter:i,footerNode:d,children:r,width:a,height:c,backButton:u})=>{var s;const m=null===(s=null==b?void 0:b.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:ft},e.createElement(t.Header,null,e.createElement("div",{onClick:l,className:`${bt}`},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:xt},u))),e.createElement("div",{className:`${yt} me-3 mt-3`},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,r),i&&e.createElement(t.Footer,null,d))},Tt=({content:n,isMobileFlow:t,sbStaticConstants:o,address:l,isAvailable:i,showPrice:d,createCartCall:r,updatedContent:a})=>{var c;const[u,s]=e.useState(!1);return e.useEffect((()=>{!t&&!i||""===(null==d?void 0:d.base)?s(!0):s(!1)}),[n,d,i]),e.createElement("div",null,t?(null==a?void 0:a.swapButton)?(null==a?void 0:a.ctaLinkLabel)&&e.createElement("a",{onClick:r,className:`${u&&st.disabled}`},null==a?void 0:a.ctaLinkLabel):e.createElement("button",{className:`primarybutton ${u&&st.disabled}`,onClick:r,disabled:u},e.createElement("span",{className:st.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&&st.disabled}`,onClick:r,disabled:u},e.createElement("span",{className:st.buttontext},null==o?void 0:o.addToCartBtnTxt))):e.createElement("button",{onClick:r,className:"configurebutton"},e.createElement("span",null,null==o?void 0:o.check_availability))))},Pt=({products:n,showProductDetail:t,setShowProductDetail:o,content:l,priceCollection:i,addToCart:d,sbStaticConstants:r,createCartCall:a,contractDuration:c})=>{var u;const[s,m]=e.useState(!0);let p=[],v="";n&&n.length>0&&(null==n||n.map((e=>{p=null==e?void 0:e.modalBody,v=null==e?void 0:e.backButton})));return e.createElement(e.Fragment,null,t&&e.createElement(e.Fragment,null,e.createElement(kt,{modalState:s,handler:()=>{m(!s),o(!t)},showFooter:!1,height:"100%",backButton:v},e.createElement(e.Fragment,null,null==p?void 0:p.map(((n,t)=>e.createElement(ae,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===B&&e.createElement(K,{content:n,key:t}),(null==n?void 0:n.component)===R&&e.createElement(se,{content:n}),(null==n?void 0:n.component)===M&&e.createElement(ue,{content:n}))))),e.createElement("div",{className:`footer-main ${Ct} `},e.createElement("span",{className:`${Et}`},e.createElement("div",null,e.createElement(gt,{content:l,priceCollection:i,sbStaticConstants:r}),e.createElement("div",null,c?D(null===(u=null==r?void 0:r.minContractDuration)||void 0===u?void 0:u.substring(1),[c]):null==r?void 0:r.simo_no_contract_term)),e.createElement("div",{className:wt},e.createElement(Tt,{content:l,sbStaticConstants:r,isAvailable:null==d?void 0:d.isAvailable,showPrice:i,isSkeletonLoading:null==d?void 0:d.isSkeletonLoading,isMobileFlow:null==d?void 0:d.isMobileFlow,createCartCall:a,address:null==d?void 0:d.address}))))))))};var St={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"};g("/* 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 Nt="EntertainmentOptionsV2-module_entertainmentoptionswrapper__qk4h-",Lt="EntertainmentOptionsV2-module_cardinputelement__00RZZ",It="EntertainmentOptionsV2-module_card__LqNAf";g('/* 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 Vt="ReactInputSelectV2-module_selectcontainer__neygJ",Ot="ReactInputSelectV2-module_downArrowIcon__KGx-5",Dt="ReactInputSelectV2-module_transform180__XCHJs",At="ReactInputSelectV2-module_errormessage__FF0WO";g('/* 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 Bt=e.forwardRef((({name:n,options:t,content:o,isSearchable:l=!0,disableValues:i=[],defaultValue:d="",optionsValue:r="value",optionsLabel:a="label",isDisabled:c=!1,isClearable:u=!0,onChange:s},m)=>{const[p,_]=e.useState(!1),[h,g]=e.useState(d),[f,b]=e.useState(!1),[x,y]=e.useState(!1);Boolean(h)==x&&y(!x);return e.createElement("div",{className:Vt},e.createElement(v,{className:`react-select-container ${x&&"errorborder"}`,styles:(w=x&&p,{control:e=>Object.assign(Object.assign({},e),w&&{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(v.components.DropdownIndicator,Object.assign({},n),e.createElement("span",{className:`${Ot} ${n.selectProps.menuIsOpen?Dt:""}`})),IndicatorSeparator:null},value:h,onChange:e=>{g(e),"function"==typeof s&&s(e?{name:n,value:e}:{name:n,value:{[r]:"",[a]:""}})},isClearable:u,placeholder:"",onFocus:()=>b(!0),onBlur:()=>{!p&&_(!0),b(!1)},backspaceRemovesValue:!0,options:t,ref:m,getOptionLabel:e=>e[a],getOptionValue:e=>e[r],isOptionDisabled:e=>i.includes(e[r]),isDisabled:c,isSearchable:l}),e.createElement("label",{className:`${(h&&h[r]&&h[a]||f)&&"activeLabel"} selectcomplabel`},o.label),x&&p&&e.createElement("span",{className:At},o.errorMessage));var w})),Mt=({className:n="",name:t="demo",content:o,checked:l,options:i,setProduct:d,onclick:r,localeID:a,type:c="radio",langSelected:u})=>{var s,m;const[p,v]=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]),g=null==o?void 0:o.productId,[f,b]=e.useState(g);return e.useEffect((()=>{try{const e=null===localStorage||void 0===localStorage?void 0:localStorage.getItem("sbstaticcontent");if(""!==e){const n=e&&JSON.parse(e);v(Object.assign(Object.assign({},p),{details:null==n?void 0:n.details,included:null==n?void 0:n.included}))}}catch(e){}}),[]),e.createElement("label",{className:`${Nt} ${n}`,onClick:r},e.createElement("input",{type:c,name:t,value:f,className:`${Lt} d-none`,id:"demo1","data-additional":null==o?void 0:o.tvGroup,checked:l,readOnly:!0}),e.createElement("div",{className:`${It} 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(X,{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(Bt,{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));d(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==p?void 0:p.included))))},Rt=({content:t,showModal:o,setShowModal:l,setEntertainment:d,setTvChannelName:r,radioValue:a,setRadioValue:c,metadata:u})=>{var s,m,p,v;const _=null==t?void 0:t.ids,[h,g]=e.useState([]),x=null==u?void 0:u.lang,[y,w]=e.useState([]),[C,E]=e.useState({}),k=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),T=null===(m=null==b?void 0:b.getInstance())||void 0===m?void 0:m.getAssetPath(),P=localStorage.getItem("sbstaticcontent"),S=P&&JSON.parse(P),N=["NETFLIX","TVBOX","TVAPP"],L={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,L).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)})),g(o)}),[x]),e.useEffect((()=>{a&&h&&h.map((e=>{var n,t,o,l,i,d,c,u,s,m,p,v;(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===(d=null===(i=null===(l=e.content)||void 0===l?void 0:l.body)||void 0===i?void 0:i[0])||void 0===d?void 0:d.code)===a&&r((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===(v=null===(p=null===(m=null==e?void 0:e.content)||void 0===m?void 0:m.body)||void 0===p?void 0:p[0])||void 0===v?void 0:v.tvLang))}))}),[a]);const I=()=>{l(!1)},V=e=>{c(e.target.value)},O=H,D=e=>{c(e)},A=e=>{const n=[],t=[],o={};let l="";e.map((e=>{var i,d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P,S;const L=null===(r=null===(d=null===(i=e.content)||void 0===i?void 0:i.body)||void 0===d?void 0:d[0])||void 0===r?void 0:r.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===(p=null===(m=null===(s=e.content)||void 0===s?void 0:s.body)||void 0===m?void 0:m[0])||void 0===p?void 0:p.code),n.includes(L)||(N.includes(L)||"DE"===(null===(h=null===(_=null===(v=null==e?void 0:e.content)||void 0===v?void 0:v.body)||void 0===_?void 0:_[0])||void 0===h?void 0:h.tvLang))&&(n.push(L),t.push(null===(f=null===(g=null==e?void 0:e.content)||void 0===g?void 0:g.body)||void 0===f?void 0:f[0])),(null===(b=o[L])||void 0===b?void 0:b.length)||(o[L]=[]),o[L].push({name:null===(w=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===w?void 0:w.tvLang,value:O[null===(k=null===(E=null===(C=null==e?void 0:e.content)||void 0===C?void 0:C.body)||void 0===E?void 0:E[0])||void 0===k?void 0:k.tvLang],prod:null===(S=null===(P=null===(T=null==e?void 0:e.content)||void 0===T?void 0:T.body)||void 0===P?void 0:P[0])||void 0===S?void 0:S.code})})),E(o),""==a&&c(l);const i=t.filter((e=>"NETFLIX"===(null==e?void 0:e.tvGroup))),d=t.indexOf(i[0]),r=t.splice(d,1)[0];t.splice(0,0,r),w(t)};return e.createElement(e.Fragment,null,e.createElement(i.Modal,{contentClassName:St.errormodalbox,show:o,dialogClassName:St.errordialog,onHide:I,centered:!0},e.createElement(i.Modal.Header,{className:St.header,closeButton:!0,onClick:I}),e.createElement("div",{className:St.errorwrapper},e.createElement(i.Modal.Title,{className:St.title},(null===(p=null==t?void 0:t.product)||void 0===p?void 0:p.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:St.body},y&&y.map(((n,t)=>{var o;let l="",i=!1;const d=null===(o=C[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(Mt,{key:t,content:n,value:t,options:C[null==n?void 0:n.tvGroup],setProduct:D,onclick:V,localeID:x,checked:d,langSelected:l})}))))),""!=a&&e.createElement(i.Modal.Footer,{className:St.footer},e.createElement("div",{className:"row w-100"},e.createElement("div",{className:"text-center"},e.createElement("button",{className:`${St.confirmBtn} primarybutton`,onClick:()=>(e=>{var n,o,i,r,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})),p={ignoreId:"",selectedEntertainmentProduct:[]};(null===(r=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===r?void 0:r.productId)&&e!==(null==t?void 0:t.product)&&(p.ignoreId=null==t?void 0:t.product,p.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]})),d&&d(p),l(!1)})(a)},(null===(v=null==t?void 0:t.product)||void 0===v?void 0:v.includes("Netflix"))?e.createElement(e.Fragment,null,S.confirm_your_choice,e.createElement("img",{className:St["img-tick"],src:`${T}/icons/tick.svg`,height:24,width:24,alt:""})):null==S?void 0:S.continue))))))},Ft=({content:n,priceCollection:t,sbStaticConstants:o})=>{const l=null==t?void 0:t.int_fmc,i=null==t?void 0:t.mob_fmc,d=null==t?void 0:t.mob_benefit_category,r=n=>e.createElement("span",{className:pt.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:`${pt.text} ms-2`},e.createElement(X,{content:null==n?void 0:n.text})));return e.createElement("div",null,e.createElement("div",{className:pt.optioncontainer},e.createElement("div",{className:pt.optionlist},(null==n?void 0:n.length)>0&&e.createElement("span",{className:pt.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"!=d||"multimob_fmc"==(null==n?void 0:n.id)&&i>0&&"MULTIMOBILE"==d||"combi_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==d?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)&&!(null==n?void 0:n.isMobileFMC)&&e.createElement(e.Fragment,null,r(n)),(null==n?void 0:n.text)&&"MULTIMOBILE"===d&&(null==n?void 0:n.isMMC)&&e.createElement(e.Fragment,null,r(n)),(null==n?void 0:n.text)&&"FMC"===d&&(null==n?void 0:n.isMobileFMC)&&e.createElement(e.Fragment,null,r(n)))),e.createElement("span",null,(null==n?void 0:n.toolTip)&&e.createElement(xe,{content:null==n?void 0:n.toolTip,isBenefit:!0}))):"")))))};var zt={giftcontainer:"GiftConfigV2-module_giftcontainer__bUNTl",gifttitle:"GiftConfigV2-module_gifttitle__5SMQP",giftlist:"GiftConfigV2-module_giftlist__dZ-r-",giftsection:"GiftConfigV2-module_giftsection__-QBuQ",gifticon:"GiftConfigV2-module_gifticon__OcniV",giftdescription:"GiftConfigV2-module_giftdescription__5v6-A",description:"GiftConfigV2-module_description__UIoTt",gifttooltip:"GiftConfigV2-module_gifttooltip__1Lq-I",list:"GiftConfigV2-module_list__O4AOP"};g("/* 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.GiftConfigV2-module_giftcontainer__bUNTl {\n display: flex;\n flex-direction: column;\n border: 1px solid #B6C8C0;\n background: rgba(153, 178, 167, 0.1);\n border-radius: 8px;\n padding: 16px;\n margin: 0 0 10px;\n}\n@media (max-width: 1023px) {\n .GiftConfigV2-module_giftcontainer__bUNTl {\n padding: 10px;\n margin-bottom: 8px;\n }\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_gifttitle__5SMQP {\n font-size: 16px;\n line-height: 24px;\n font-weight: bold;\n margin-left: 11px;\n padding-top: 2px;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_giftsection__-QBuQ {\n display: flex;\n align-items: center;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_gifticon__OcniV {\n position: relative;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_giftdescription__5v6-A {\n display: inline-block;\n font-size: 14px;\n line-height: 20px;\n color: #606060;\n margin-left: 8px;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_giftdescription__5v6-A .GiftConfigV2-module_description__UIoTt {\n font-weight: 700;\n color: #3d3935;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_gifttooltip__1Lq-I {\n float: right;\n position: relative;\n}\n.GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_list__O4AOP {\n margin-top: 8px;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .GiftConfigV2-module_giftcontainer__bUNTl .GiftConfigV2-module_giftlist__dZ-r- .GiftConfigV2-module_list__O4AOP {\n margin: 8px 0;\n }\n}");const $t=({content:n})=>{var t,o,l;return e.createElement("div",null,e.createElement("div",{className:zt.giftcontainer},e.createElement("div",{className:zt.giftlist},(null==n?void 0:n.giftIcon)&&(null===(t=null==n?void 0:n.giftIcon)||void 0===t?void 0:t.filename)&&e.createElement("span",{className:zt.gifticon},e.createElement("img",{src:null===(o=null==n?void 0:n.giftIcon)||void 0===o?void 0:o.filename,width:24,height:24})),e.createElement("span",{className:zt.gifttitle},null==n?void 0:n.title),e.createElement("span",{className:zt.gifttooltip},(null==n?void 0:n.tooltipText)&&e.createElement(xe,{content:null==n?void 0:n.tooltipText,isBenefit:!0}))),e.createElement("div",{className:zt.list},e.createElement("div",{className:zt.giftlist},e.createElement("div",{className:zt.giftsection},(null==n?void 0:n.giftIcon)&&e.createElement("span",{className:zt.gifticon},e.createElement("img",{src:null===(l=null==n?void 0:n.giftImage)||void 0===l?void 0:l.filename,width:64,height:64})),e.createElement("div",{className:zt.giftdescription},e.createElement("span",{className:zt.description},null==n?void 0:n.giftName),e.createElement("br",null),e.createElement("span",{className:zt.giftprice},null==n?void 0:n.price)))))))};var Gt={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"};g("/* 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 Wt=({content:n,selectedGiftItem:t,parentPoType:o})=>{var l,i,d;const[r,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:Gt.giftcontainer},e.createElement("div",{className:Gt.giftlist},e.createElement("span",{className:Gt.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:Gt.gifttitle},null==n?void 0:n.title),e.createElement("div",{className:Gt.gifttooltip},e.createElement(xe,{content:null==n?void 0:n.tooltipText}))),e.createElement("div",{className:Gt.giftsection},null===(d=null==n?void 0:n.listOfGifts)||void 0===d?void 0:d.map(((l,i)=>{var d;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:`${Gt.giftimagecontainer} ${i===r&&Gt.giftimg}`},e.createElement("img",{src:null===(d=l.image)||void 0===d?void 0:d.filename,width:64,height:64}))}))),e.createElement("div",{className:Gt.giftdescription},e.createElement("span",{className:Gt.description},null==c?void 0:c.title)," ",e.createElement("br",null),e.createElement("span",{className:Gt.giftprice},(null==c?void 0:c.description)&&e.createElement(X,{content:null==c?void 0:c.description})))))};var jt="CashbackV2-module_cashbackcontainer__uRM1Z",Ut="CashbackV2-module_cashbackmodule__kYlg6",Ht="CashbackV2-module_cashbackicon__fDkXT",qt="CashbackV2-module_cashbackimage__led6d",Xt="CashbackV2-module_cashbacktitle__su2j2",Kt="CashbackV2-module_cashbacktooltip__MdcgY",Jt="CashbackV2-module_cashbackdescription__-UtWu";g("/* 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 Yt=({content:n})=>{var t,o;return e.createElement("div",null,e.createElement("div",{className:`${jt} cashbackv2container`},e.createElement("div",{className:Ut},e.createElement("div",null,e.createElement("span",{className:Ht},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:Xt},null==n?void 0:n.title),e.createElement("span",{className:Kt},(null==n?void 0:n.tooltiptext)&&e.createElement(xe,{content:null==n?void 0:n.tooltiptext}))),e.createElement("div",{className:qt},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:Jt},null==n?void 0:n.description)))))},Zt=({content:n,cards:t,metadata:o,indexKey:l,offeringData:i,uniqueId:d,tabIndex:r,lineCheckCallBack:a,sbStaticConstants:u,address:s,eligibleBundle:m,summaryUrl:p,isMobileFlow:v,updatedContent:g,lineTableContent:x})=>{var y,w,C,E,k,T,S,N,L,I,V,O,A,B,M,R,F,G,W,j,U,H,q;const[K,J]=e.useState({}),[Z,ee]=e.useState({}),[ne,oe]=e.useState(),[le,ie]=e.useState(""),[de,re]=e.useState(""),[ae,ce]=e.useState(!1),[ue,se]=e.useState(!1),[me,pe]=e.useState(!1),[ve,_e]=e.useState([]),he=null===(y=null==b?void 0:b.getInstance())||void 0===y?void 0:y.getAssetPath(),[ge,fe]=e.useState(!1),[be,xe]=e.useState(!1),we=null==K?void 0:K.code,Ce=((null==i?void 0:i[d])||[]).filter((e=>(null==e?void 0:e.id)===we)),Te=((e,n,t)=>{var o,l,i,d,r,a,c,u,s,m;const p={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;p.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())?p.base=null==e?void 0:e.value:"one time"===(null===(t=null==e?void 0:e.priceType)||void 0===t?void 0:t.toLowerCase())&&(p.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,p.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,d,r,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)?p.int_fmc+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(p.mob_fmc+=Number(null==e?void 0:e.value),p.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)&&(p.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===(r=null===(d=null==e?void 0:e.promotionInfo)||void 0===d?void 0:d[0])||void 0===r?void 0:r.id)&&(p.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)||(p.contractDuration=null===(r=null===(d=null==e?void 0:e[0])||void 0===d?void 0:d.promotionInfo)||void 0===r?void 0:r[0].contractDuration,p.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 v=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)?v+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(p.mob_fmc+=Number(null==e?void 0:e.value),p.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==p?void 0:p.contractDuration)||n||(p.contractDuration="12"),p.int_fmc=t?v:p.int_fmc,p})(Ce,v),Ne=null===(w=null==f?void 0:f.getInstance())||void 0===w?void 0:w.getCartUrl(),[Le,Ie]=e.useState(!1);let Ve;if(K){const e=null==K?void 0:K.code;Ve=s&&(null===(C=null==m?void 0:m.eligibleBundle)||void 0===C?void 0:C.includes(e))}const Oe=void 0!==typeof window&&document.getElementById("reusable-linetable");e.useEffect((()=>{var e,n;const t=null==Ce?void 0:Ce.filter((e=>e&&e.id===(null==K?void 0:K.code)));se((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})(v?t:null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.bundledOffers)),pe((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})(v?t:null===(n=null==t?void 0:t[0])||void 0===n?void 0:n.bundledOffers))}),[K,Ce]),e.useEffect((()=>{var e,t,o;if(null==n?void 0:n.productStroyObj){const l=((e,n,t)=>{var o,l,i,d,r,a,c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,P,S,N,L,I,V,O,D,A,B,M,R,F,z,$,G,W,j,U,H,q,X,K,J,Y,Z,ee,ne,te,oe,le,ie,de,re,ae,ce,ue,se,me,pe,ve,_e,he,ge,fe,be,xe,ye,we,Ce,Ee,ke;const Te={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:"",cardImg:"",bestSellerColor:""},Pe=n?null==e?void 0:e.productStroyObj.stroy:null==e?void 0:e.productStroyObj;if(Te.displayName=null===(i=null===(l=null===(o=null==Pe?void 0:Pe.content)||void 0===o?void 0:o.body)||void 0===l?void 0:l[0])||void 0===i?void 0:i.displayName,Te.code=null===(a=null===(r=null===(d=null==Pe?void 0:Pe.content)||void 0===d?void 0:d.body)||void 0===r?void 0:r[0])||void 0===a?void 0:a.code,Te.highlightText=null==e?void 0:e.highlightText,Te.promoText=null===(s=null===(u=null===(c=null==Pe?void 0:Pe.content)||void 0===c?void 0:c.body)||void 0===u?void 0:u[0])||void 0===s?void 0:s.promoText,Te.cardImg=null===(_=null===(v=null===(p=null===(m=null==Pe?void 0:Pe.content)||void 0===m?void 0:m.body)||void 0===p?void 0:p[0])||void 0===v?void 0:v.img)||void 0===_?void 0:_.filename,null==e?void 0:e.promStroyObj){const t={};Te.promoID=null===(h=null==e?void 0:e.promStroyObj)||void 0===h?void 0:h.prom,Te.serviceOptions.promotion=null===(g=null==e?void 0:e.promStroyObj)||void 0===g?void 0:g.prom;const o=null===(f=null==e?void 0:e.promStroyObj)||void 0===f?void 0:f.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===(b=null==e?void 0:e.promStroyObj)||void 0===b?void 0:b.isDefault,t.displayText=null==i?void 0:i.displayText,t.bestSellerColor=null==i?void 0:i.bestSellerColor,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===(x=null==e?void 0:e.products)||void 0===x?void 0:x.dontShowPromotion)||(Te.priceDisplayText=null==i?void 0:i.displayText,Te.bestSellerColor=null==i?void 0:i.bestSellerColor);break}}Te.promoObj.push(t)}if(n){if(Te.description=null===(Z=null===(Y=null===(J=null==Pe?void 0:Pe.content)||void 0===J?void 0:J.body)||void 0===Y?void 0:Y[0])||void 0===Z?void 0:Z.introText,Te.productDetailsModal=null===(te=null===(ne=null===(ee=null==Pe?void 0:Pe.content)||void 0===ee?void 0:ee.body)||void 0===ne?void 0:ne[0])||void 0===te?void 0:te.subscriptionDetailModal,Te.icon=null===(de=null===(ie=null===(le=null===(oe=null==Pe?void 0:Pe.content)||void 0===oe?void 0:oe.body)||void 0===le?void 0:le[0])||void 0===ie?void 0:ie.prodImage)||void 0===de?void 0:de.filename,Te.pageType="MOBILE",Te.countryListUrl={reference:null===(ue=null===(ce=null===(ae=null===(re=null==Pe?void 0:Pe.content)||void 0===re?void 0:re.body)||void 0===ae?void 0:ae[0])||void 0===ce?void 0:ce.countryList)||void 0===ue?void 0:ue.cached_url},(null===(pe=null===(me=null===(se=null==Pe?void 0:Pe.content.body)||void 0===se?void 0:se[0])||void 0===me?void 0:me.entitlementConfig)||void 0===pe?void 0:pe.length)>0){const e=[];null===(he=null===(_e=null===(ve=null==Pe?void 0:Pe.content.body)||void 0===ve?void 0:ve[0])||void 0===_e?void 0:_e.entitlementConfig)||void 0===he||he.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)})),Te.productConfig=e}if((null===(xe=null===(be=null===(fe=null===(ge=null==Pe?void 0:Pe.content)||void 0===ge?void 0:ge.body)||void 0===fe?void 0:fe[0])||void 0===be?void 0:be.extraOptions)||void 0===xe?void 0:xe.length)>0){const e=[];null===(Ee=null===(Ce=null===(we=null===(ye=null==Pe?void 0:Pe.content)||void 0===ye?void 0:ye.body)||void 0===we?void 0:we[0])||void 0===Ce?void 0:Ce.extraOptions)||void 0===Ee||Ee.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,isMobileFMC:null==n?void 0:n.isFMC};null==e||e.push(o)})),Te.benefitsSection=e}(null===(ke=null==t?void 0:t.addSmartphone)||void 0===ke?void 0:ke.length)>0&&(Te.addSmartPhone=null==t?void 0:t.addSmartphone)}else{const e=["NETFLIX","SPORTS"];if(Te.description=null===(C=null===(w=null===(y=null==Pe?void 0:Pe.content)||void 0===y?void 0:y.body)||void 0===w?void 0:w[0])||void 0===C?void 0:C.description,Te.productDetailsModal=null===(T=null===(k=null===(E=null==Pe?void 0:Pe.content)||void 0===E?void 0:E.body)||void 0===k?void 0:k[0])||void 0===T?void 0:T.productDetailsModal,Te.pageType="HOME",(null===(L=null===(N=null===(S=null===(P=null==Pe?void 0:Pe.content)||void 0===P?void 0:P.body)||void 0===S?void 0:S[0])||void 0===N?void 0:N.products)||void 0===L?void 0:L.length)>0){const n=Q(null===(O=null===(V=null===(I=null==Pe?void 0:Pe.content)||void 0===I?void 0:I.body)||void 0===V?void 0:V[0])||void 0===O?void 0:O.products);if((null==n?void 0:n.length)>0){const t=[],o=[];null==n||n.map((n=>{var l,i,d,r;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===(d=null==n?void 0:n.entitlementConfig)||void 0===d?void 0:d.length)>0&&(null===(r=null==n?void 0:n.entitlementConfig)||void 0===r||r.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)&&(Te.serviceOptions.poType="TV",Te.serviceOptions.radioValue=null==n?void 0:n.code,"NETFLIX"==(null==n?void 0:n.tvGroup)?Te.serviceOptions.tvChannelName="Netflix":"SPORTS"==(null==n?void 0:n.tvGroup)?Te.serviceOptions.tvChannelName=(null==n?void 0:n.displayName)+" "+(null==n?void 0:n.tvLang):Te.serviceOptions.tvChannelName="TV Box",Te.serviceOptions.avalaible=!0,Te.serviceOptions.product=null==n?void 0:n.code,Te.serviceOptions.ids.add(null==n?void 0:n.tvGroupProdPath))})),Te.productConfig=t,Te.entitlementConfig=o}}if((null===(M=null===(B=null===(A=null===(D=null==Pe?void 0:Pe.content)||void 0===D?void 0:D.body)||void 0===A?void 0:A[0])||void 0===B?void 0:B.benefitsSection)||void 0===M?void 0:M.length)>0){const e=[];null===($=null===(z=null===(F=null===(R=null==Pe?void 0:Pe.content)||void 0===R?void 0:R.body)||void 0===F?void 0:F[0])||void 0===z?void 0:z.benefitsSection)||void 0===$||$.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)})),Te.benefitsSection=e}(null===(U=null===(j=null===(W=null===(G=null==Pe?void 0:Pe.content)||void 0===G?void 0:G.body)||void 0===W?void 0:W[0])||void 0===j?void 0:j.addnEntitlements)||void 0===U?void 0:U.length)>0&&(null===(K=null===(X=null===(q=null===(H=null==Pe?void 0:Pe.content)||void 0===H?void 0:H.body)||void 0===q?void 0:q[0])||void 0===X?void 0:X.addnEntitlements)||void 0===K||K.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=Te.productConfig)||void 0===l?void 0:l.length)>0?Te.productConfig.push(i):Te.productConfig=i})))}return Te})(n,v,g);"TV"===(null===(e=null==l?void 0:l.serviceOptions)||void 0===e?void 0:e.poType)&&(re(null===(t=null==l?void 0:l.serviceOptions)||void 0===t?void 0:t.radioValue),ie(null===(o=null==l?void 0:l.serviceOptions)||void 0===o?void 0:o.tvChannelName)),J(l),ee(l)}}),[n]),e.useEffect((()=>(setTimeout((()=>{Ae()}),100),null===window||void 0===window||window.addEventListener("load",Ae),null===window||void 0===window||window.addEventListener("resize",Ae),()=>{window.removeEventListener("resize",Ae),window.removeEventListener("load",Ae)})),[K,Te]);const De=()=>{var e;(null===(e=null==K?void 0:K.serviceOptions)||void 0===e?void 0:e.avalaible)&&ce(!0)},Ae=()=>{P(`headingV3${r}`,t),P(`descriptionV3${r}`,t),P(`titleV3${r}`,t),P(`detailsectionv3${r}`,t),P(`product-configv3${r}`,t),P(`gift-section${r}`,t),P(`cashback-section${r}`,t),P(`benefits-section${r}`,t),P(`order-section${r}`,t),P(`price-section${r}`,t),P(`benefits-price-section${r}`,t),P(`contract-section${r}`,t)};let Be=void 0!==typeof window&&c.get("sunriseAuth");Be=Be&&JSON.parse(Be);const Me=()=>{Ie(!1);!(!(null==x?void 0:x.enableExistingCustomer)||null!=Be)?xe(!0):Re()},Re=()=>{var e;if(Ie(!1),"MOBILE"===(null==K?void 0:K.pageType))fe(!0),0!==(null===(e=Object.keys(i))||void 0===e?void 0:e.length)&&te(Ce,"",(null==Te?void 0:Te.promoID)?null==Te?void 0:Te.promoID:$,Ne,"mobile",ve).then((e=>{c.remove("one-commerce-cartId",{path:"/"}),c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),c.set("cartProduct",null==K?void 0:K.code,{path:"/"}),Ge(ye,Ce,"",Pe),window.location.href=p})).catch((e=>{console.log(e),fe(!1)})).finally((()=>{fe(!1)}));else{const e=c.get("one-commerce-linecheckcorrelationid"),n=null==K?void 0:K.code;m&&s&&e?(fe(!0),0!==Ce.length&&te(Ce,de,(null==Te?void 0:Te.promoID)?null==Te?void 0:Te.promoID:z,Ne,"fixnet",ve).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"),Ge(ye,Ce,"",Pe),window.location.href=p})).catch((e=>{console.log(e)})).finally((()=>{fe(!1)}))):a()}},Fe=0===(null===(E=Object.keys(K))||void 0===E?void 0:E.length),ze=()=>{var e,n,t,o;const l=(null==Te?void 0:Te.promoID)?null==Te?void 0:Te.promoID:$;let d="";d=`?componentCode=&productType=subscription&segmentCode=RC&prefPromo=${null!=l?l:""}&productCode=${null!==(e=null==K?void 0:K.code)&&void 0!==e?e:""}`,window.location.href=(null===(o=null===(t=null===(n=null==K?void 0:K.addSmartPhone)||void 0===n?void 0:n[0])||void 0===t?void 0:t.buttonLink)||void 0===o?void 0:o.cached_url)+d,We(K,l,i),tn(ke,Se,$e(Ce,"",Pe)),Ge(ye,Ce,"",Pe)},We=(e,n,t)=>{var o,l,i,r,a,c,u,s,m,p,v,_,h,g,f,b;const x=null===(o=null==t?void 0:t[d])||void 0===o?void 0:o.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.code))),y=null!==(a=null===(r=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===r?void 0:r.value)&&void 0!==a?a:0,w=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,C=null!==(_=null===(v=null===(p=null==e?void 0:e.promotionInfo)||void 0===p?void 0:p[0])||void 0===v?void 0:v.contractDuration)&&void 0!==_?_:0,E=null!==(f=null===(g=null===(h=null==e?void 0:e.promotionInfo)||void 0===h?void 0:h[0])||void 0===g?void 0:g.campaignDuration)&&void 0!==f?f:0,k={mobileSubscription:null!==(b=null==e?void 0:e.code)&&void 0!==b?b:"",mobileSubscriptionPrice:w>0?w:y,mobileSubscriptionPromo:n,subGroup:"MOBILE",duration:Number(E>0?E:C),basePrice:y,withoutPromo:!1};void 0!==typeof window&&sessionStorage.setItem("one-ecommerce-mobileSummary",JSON.stringify(k))},je=e=>{const n=ve.findIndex((n=>e.giftGroupId===n.giftGroupId)),t=ve;-1===n?t.push(e):t[n]=e,_e([...t])};return e.createElement(e.Fragment,null,ge&&Oe&&h.createPortal(e.createElement(Y,{keyParams:"loading"}),Oe),Fe&&e.createElement("div",{className:"w-75 pb-2"},e.createElement(ht,null)),!Fe&&m&&n&&s&&!v&&e.createElement("div",{className:st.selected},e.createElement("span",{style:{paddingBottom:"10px"}},Ve?e.createElement("span",{className:st.activeicon},e.createElement("img",{src:`${he}/icons/lineCheck-success.svg`,alt:"",width:24,height:24,className:st.activeicon}),e.createElement("span",null,null==u?void 0:u.subscriptionAvalTxt)):e.createElement("span",{className:st.inactiveicon},e.createElement("img",{src:`${he}/icons/cross_disabled.svg`,alt:"",width:24,height:24,className:st.inactiveicon}),e.createElement("span",null,null==u?void 0:u.notSubscriptionTxt)))),e.createElement("div",{className:`${v||!1!==Ve?"":st.overlay}`,style:{flexDirection:"column"}},e.createElement("div",{className:`${v?st.mobilecard:""} ${st.bundleproductcard} ${st.productcontainer} ${(null===(k=null==K?void 0:K.highlightText)||void 0===k?void 0:k.length)>0&&st.highlightBorder}`},(null===(T=null==K?void 0:K.highlightText)||void 0===T?void 0:T.length)>0&&e.createElement("div",{className:`${st.highlightText}`},null==K?void 0:K.highlightText),(null===(S=null==K?void 0:K.priceDisplayText)||void 0===S?void 0:S.length)>0&&e.createElement("div",{className:`${st.promocontainer}`,style:{background:null==K?void 0:K.bestSellerColor}},null==K?void 0:K.priceDisplayText," "),e.createElement("div",null,e.createElement("div",{className:`${st.detailsection}`,id:`detailsectionv3${r}${l}`},e.createElement("div",{className:`${st.headersection}`},e.createElement("div",{className:`${st.titlesection}`},e.createElement("div",{className:`${st.productheader}`,id:`titleV3${r}${l}`},null==K?void 0:K.displayName),e.createElement("div",null,(null==K?void 0:K.icon)&&e.createElement("img",{className:`${st.imagecontainer}`,src:null==K?void 0:K.icon,height:15,width:20}))),e.createElement("div",{className:`${st.productdescription}`,id:`descriptionV3${r}${l}`},e.createElement(X,{content:null==K?void 0:K.description})),e.createElement("div",{className:`${st.images}`},(null==Z?void 0:Z.cardImg)&&e.createElement("img",{className:`${st.imagespace} ${(null===(N=null==K?void 0:K.highlightText)||void 0===N?void 0:N.length)>0&&st.borderimage}`,alt:"cardimg",src:null==Z?void 0:Z.cardImg}))),e.createElement("div",{className:`${st.productconfig}`,id:`product-configv3${r}${l}`},Fe?e.createElement(e.Fragment,null,e.createElement("div",{className:st.space}),e.createElement(ht,{stylename:st.skeletontittle,count:1}),e.createElement(ht,{stylename:st.skeletonline,count:5}),e.createElement("div",{className:st.space}),e.createElement(ht,{stylename:st.skeletontittle,count:1}),e.createElement(ht,{stylename:st.skeletonline,count:5})):e.createElement("div",null,(null==K?void 0:K.productConfig)&&(null===(L=null==K?void 0:K.productConfig)||void 0===L?void 0:L.map(((n,l)=>e.createElement(vt,{content:Object.assign(Object.assign({},n),{tvChannelName:le,entertainOption:ne}),entitlementConfig:null==K?void 0:K.entitlementConfig,indexKey:l,listlength:t,showModalPopup:De,sbStaticConstants:u,tabIndex:r,countryList:null==K?void 0:K.countryListUrl,metadata:o}))))))),e.createElement("div",{className:`${st.detailsection}`,id:`benefits-price-section${r}${l}`},e.createElement("div",{className:`${st.benefitssection}`,id:`benefits-section${r}${l}`},(null===(I=null==K?void 0:K.benefitsSection)||void 0===I?void 0:I.length)>0&&e.createElement(Ft,{content:null==K?void 0:K.benefitsSection,priceCollection:Te,sbStaticConstants:u})),e.createElement("br",null),e.createElement("div",{className:`${st.giftsection}`,id:`gift-section${r}${l}`},e.createElement("div",null,null===(V=null==K?void 0:K.promoObj)||void 0===V?void 0:V.map(((n,t)=>{var o,i,d;return e.createElement("div",{key:t},e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&ue&&(null===(o=null==n?void 0:n.giftConfig)||void 0===o?void 0:o.map(((n,t)=>e.createElement($t,{content:n,key:t}))))),e.createElement("div",null,(null==n?void 0:n.isGiftPromo)&&ue&&(null===(i=null==n?void 0:n.giftConfigV2)||void 0===i?void 0:i.map(((t,o)=>e.createElement(Wt,{content:t,key:o,selectedGiftItem:je,parentPoType:null==n?void 0:n.parentPoType}))))),e.createElement("div",{className:`${st.giftsection}`,id:`cashback-section${r}${l}`},(null==n?void 0:n.cashback)&&me&&(null===(d=null==n?void 0:n.cashback)||void 0===d?void 0:d.map(((n,t)=>e.createElement(Yt,{content:n,key:t}))))))})))),e.createElement("div",{className:`${st.ordersection} `,id:`order-section${r}${l}`},""===(null==Te?void 0:Te.base)?e.createElement("div",null,e.createElement(ht,{stylename:st.skeletontittle})):e.createElement("div",{className:`${st.flexgrid} ${st.pricesection} `,id:`price-section${r}${l}`},e.createElement(gt,{content:K,priceCollection:Te,toggleSwitch:!1,sbStaticConstants:u}))," ",e.createElement("div",{className:`${(null==g?void 0:g.swapButton)&&st.swapButton}`},e.createElement("div",{style:{padding:"16px 0"}},e.createElement(Tt,{content:n,sbStaticConstants:u,isAvailable:Ve,showPrice:Te,isSkeletonLoading:Fe,isMobileFlow:v,createCartCall:v?Me:Re,address:s,updatedContent:g})),e.createElement("div",{className:st.productcontractduration,id:`contract-section${r}${l}`},(null==Te?void 0:Te.contractDuration)?D(null===(O=null==u?void 0:u.minContractDuration)||void 0===O?void 0:O.substring(1),[null==Te?void 0:Te.contractDuration]):null==u?void 0:u.simo_no_contract_term),(null===(A=null==K?void 0:K.addSmartPhone)||void 0===A?void 0:A.length)>0&&e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==g?void 0:g.swapButton)&&v?(null==g?void 0:g.ctaLabel)&&e.createElement("div",{style:{padding:"16px 0"}},e.createElement("button",{className:"primarybutton",onClick:()=>ze()},e.createElement("span",{className:st.buttontext},null==g?void 0:g.ctaLabel))):e.createElement("span",{className:`${st.productdetailslink} ${st.addsmartphone}`},e.createElement("div",null,e.createElement("span",null,(null===(R=null===(M=null===(B=null==K?void 0:K.addSmartPhone)||void 0===B?void 0:B[0])||void 0===M?void 0:M.buttonIcon)||void 0===R?void 0:R.filename)&&e.createElement("img",{src:null===(W=null===(G=null===(F=null==K?void 0:K.addSmartPhone)||void 0===F?void 0:F[0])||void 0===G?void 0:G.buttonIcon)||void 0===W?void 0:W.filename,width:12,height:18,alt:"icon"})),e.createElement("span",null,e.createElement("a",{onClick:()=>ze()},null===(U=null===(j=null==K?void 0:K.addSmartPhone)||void 0===j?void 0:j[0])||void 0===U?void 0:U.buttonLabel)))))),e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==K?void 0:K.productDetailsModal)&&e.createElement("span",{className:st.productdetailslink,onClick:()=>{Ie(!Le),tn(ke,Ee,$e(Ce,"",Pe))}},null==u?void 0:u.product_details_link)),Le&&e.createElement(e.Fragment,null,e.createElement(Pt,{products:null==K?void 0:K.productDetailsModal,showProductDetail:Le,setShowProductDetail:Ie,content:n,priceCollection:Te,addToCart:Object.assign(Object.assign({},n),{isSkeletonLoading:Fe,isAvailable:Ve,isMobileFlow:v,address:s}),sbStaticConstants:u,createCartCall:v?Me:Re,contractDuration:null==Te?void 0:Te.contractDuration})))),ae&&(Fe?e.createElement(ht,null):e.createElement(Rt,{key:null==K?void 0:K.code,content:null==K?void 0:K.serviceOptions,setShowModal:ce,uniqueId:d,setEntertainment:oe,setTvChannelName:ie,code:null==K?void 0:K.code,showModal:ae,radioValue:de,setRadioValue:re,metadata:o}))))),be&&(null===(H=null==x?void 0:x.loginData)||void 0===H?void 0:H.length)>0&&Oe&&h.createPortal(e.createElement(_.LoginModalV2,{content:null===(q=null==x?void 0:x.loginData)||void 0===q?void 0:q[0],closeLogin:()=>{xe(!1)},metadata:o,onSuccess:()=>{xe(!1),Re()}}),Oe))},Qt=({content:t,metadata:o,activeIndex:l,lineCheckCallBack:i,sbStaticConstants:d,address:r,eligibleBundle:a,setGenericErrorModalDetails:u,loginSuccess:s})=>{var m,p,v,_,h;const g=null==o?void 0:o.lang,[b,x]=e.useState(),y=null==t?void 0:t._uid,[w,C]=e.useState([]),E=[],k=new Map,T={language:g,type:"B2C"},S={},N=V(),L=null===(m=null==f?void 0:f.getInstance())||void 0===m?void 0:m.getSBUrl(),I=null===(p=null==f?void 0:f.getInstance())||void 0===p?void 0:p.getBaseUrl(),O=null===(_=null===(v=null==t?void 0:t.lineTableContent)||void 0===v?void 0:v.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 M=()=>{var e,n,o,l,i;const d=[],r=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,c=null==t?void 0:t.isReturnPromo;if(((e,n)=>{n.map((n=>{var t,o,l,i,d;const r={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;r.id=null===(l=null==n?void 0:n.products)||void 0===l?void 0:l.product_id,a&&!(null===(i=null==r?void 0:r.promoIds)||void 0===i?void 0:i.includes(a))&&r.promoIds.push(a),c&&!(null===(d=null==r?void 0:r.promoIds)||void 0===d?void 0:d.includes(c))&&r.promoIds.push(c),e.push(r)}))})(d,(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=oe(d,null==t?void 0:t._uid,I,r,a,c))||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||M()}),[null==t?void 0:t.activeIndex]),e.useEffect((()=>{if(((null==t?void 0:t.productList)||[]).forEach((e=>{var n,o,l,i,d,r,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===(d=null==e?void 0:e.products)||void 0===d?void 0:d.home_promo_story_uuid,{k:0}),"4P"!==(null==t?void 0:t.pageType)&&"MOBILE"!==(null==t?void 0:t.pageType)||!(null===(r=null==e?void 0:e.products)||void 0===r?void 0:r.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}),E.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=L+`rest/cms/stories/?by_uuids=${e}`;n.CMSStoryblokServiceV2.get(o,T).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(E.length>0)if("MOBILE"!==(null==t?void 0:t.pageType)){const t=new Map;if(null==E||E.map((e=>{var n,o,l,i,d,r;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===(r=null===(d=null==a?void 0:a.content)||void 0===d?void 0:d.body[0])||void 0===r?void 0:r.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=L+`rest/cms/stories/?by_uuids=${o}`;n.CMSStoryblokServiceV2.get(l,T).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==E||E.map((n=>{var o,l,i,d,r,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===(d=null==s?void 0:s.content)||void 0===d?void 0:d.body[0])){const e=null===(r=null==s?void 0:s.content)||void 0===r?void 0:r.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 p=Object.assign({},n,{productStroyObj:s,promStroyObj:m,showPromotion:null==n?void 0:n.dontShowPromotion});e.push(p)}));try{localStorage.setItem("slugDetails",JSON.stringify(S))}catch(e){}C(e)}))}}else(null==E?void 0:E.length)>0&&(null==E||E.map(((n,o)=>{var l,i,d,r,a,c,u,s,m,p;let v;"MOBILE"===(null==t?void 0:t.pageType)&&(v=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)),v.prom=null===(i=null==n?void 0:n.products)||void 0===i?void 0:i.mob_parent_promo_id,v.isDefault=null===(d=null==n?void 0:n.products)||void 0===d?void 0:d.mob_promo_default);const _=null==Object?void 0:Object.assign({},n,{productStroyObj:null==k?void 0:k.get(null===(r=null==n?void 0:n.products)||void 0===r?void 0:r.product_story_uuid),promStroyObj:v});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!==(p=null==t?void 0:t.displayConfig)&&void 0!==p?p:[],null==e||e.push(_)})),C(e))}))}}),[g]),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)})),[w]);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;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&Ge("view",b[y],"",Pe)}),[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)&&Ge("available",b[y],"",Pe,null==a?void 0:a.eligibleBundle)}),[a,b]),e.useEffect((()=>{(null==B?void 0:B.siteId)&&s&&M()}),[s]),e.createElement("div",null,e.createElement("div",{className:st.titlecontainer},(null==t?void 0:t.title)&&e.createElement("div",{className:st.title},null==t?void 0:t.title),(null==t?void 0:t.subTitle)&&e.createElement("div",{className:st.description},null==t?void 0:t.subTitle)),e.createElement("div",{className:"linetableV3"},N&&e.createElement(mt,{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==w?void 0:w.length)&&w||new Array((null==w?void 0:w.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(Zt,{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:d,address:r,eligibleBundle:a,summaryUrl:O,isMobileFlow:D}))})))))};var eo={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"};g("/* 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}");var no={tabblock:"StaticLineTable-module_tabblock__OXDQd",tabcontainer:"StaticLineTable-module_tabcontainer__BvX7d",tabcontent:"StaticLineTable-module_tabcontent__8qSfh",tabcontentactive:"StaticLineTable-module_tabcontentactive__0VWZG",tabcontentinactive:"StaticLineTable-module_tabcontentinactive__lMaGs",titlecontainer:"StaticLineTable-module_titlecontainer__vhfov",title:"StaticLineTable-module_title__S5CC7",description:"StaticLineTable-module_description__IoWLP",selected:"StaticLineTable-module_selected__RMX1r",inactiveicon:"StaticLineTable-module_inactiveicon__ek-0-",activeicon:"StaticLineTable-module_activeicon__DwS4K",productcenter:"StaticLineTable-module_productcenter__scRU7",bundleproductcard:"StaticLineTable-module_bundleproductcard__KYHf7",flexgrid:"StaticLineTable-module_flexgrid__uuyAX",productcontainer:"StaticLineTable-module_productcontainer__CA-5u",highlightBorder:"StaticLineTable-module_highlightBorder__dEWeh",highlightText:"StaticLineTable-module_highlightText__z2WSp",headersection:"StaticLineTable-module_headersection__ed21u",titlesection:"StaticLineTable-module_titlesection__DMlAo",productheader:"StaticLineTable-module_productheader__Z2vjX",productdescription:"StaticLineTable-module_productdescription__VdyCK",images:"StaticLineTable-module_images__Go1Hf",imagespace:"StaticLineTable-module_imagespace__Dy1x3",borderimage:"StaticLineTable-module_borderimage__2x-l3",ordersection:"StaticLineTable-module_ordersection__04k-y",pricesection:"StaticLineTable-module_pricesection__U7U-s",productcontractduration:"StaticLineTable-module_productcontractduration__dzt25",productdetailslink:"StaticLineTable-module_productdetailslink__Dzs8e",benefitssection:"StaticLineTable-module_benefitssection__7J8jk",overlay:"StaticLineTable-module_overlay__pa3Q8",addsmartphone:"StaticLineTable-module_addsmartphone__12--5",promocontainer:"StaticLineTable-module_promocontainer__Ub07A",disabled:"StaticLineTable-module_disabled__97Dzp",buttontext:"StaticLineTable-module_buttontext__CAfOt",swapButton:"StaticLineTable-module_swapButton__2SyEm"};g("/* 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.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontainer__BvX7d {\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 .StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontainer__BvX7d {\n border-radius: 8px;\n }\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontent__8qSfh {\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 .StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontent__8qSfh {\n border-radius: 8px;\n }\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentactive__0VWZG {\n background-color: #da291c;\n border-radius: 35px;\n color: white !important;\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentactive__0VWZG:hover {\n background-color: #961c13;\n}\n@media (max-width: 767px) {\n .StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentactive__0VWZG {\n border-radius: 8px;\n }\n}\n.StaticLineTable-module_tabblock__OXDQd .StaticLineTable-module_tabcontentinactive__lMaGs:hover {\n color: #961c13;\n}\n.StaticLineTable-module_tabblock__OXDQd input[type=radio] {\n display: none;\n}\n\n.StaticLineTable-module_titlecontainer__vhfov .StaticLineTable-module_title__S5CC7 {\n font-size: 24px;\n font-weight: 700;\n line-height: 30px;\n padding-top: 20px;\n text-align: center;\n}\n.StaticLineTable-module_titlecontainer__vhfov .StaticLineTable-module_description__IoWLP {\n font-size: 16px;\n font-weight: 24px;\n text-align: center;\n}\n\n.StaticLineTable-module_selected__RMX1r {\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.StaticLineTable-module_selected__RMX1r .StaticLineTable-module_inactiveicon__ek-0- {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n.StaticLineTable-module_selected__RMX1r .StaticLineTable-module_activeicon__DwS4K {\n height: 24px;\n margin-right: 12px;\n width: 24px;\n}\n\n.StaticLineTable-module_productcenter__scRU7 {\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.StaticLineTable-module_bundleproductcard__KYHf7 {\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 .StaticLineTable-module_bundleproductcard__KYHf7 {\n margin-left: 8px;\n margin-right: 8px;\n }\n}\n\n.StaticLineTable-module_flexgrid__uuyAX {\n display: flex;\n}\n\n.StaticLineTable-module_productcontainer__CA-5u {\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.StaticLineTable-module_highlightBorder__dEWeh {\n border: 4px solid #587467;\n border-radius: 8px;\n}\n\n.StaticLineTable-module_highlightText__z2WSp {\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.StaticLineTable-module_headersection__ed21u {\n padding-bottom: 8px;\n}\n\n.StaticLineTable-module_titlesection__DMlAo {\n align-items: flex-start;\n display: flex;\n justify-content: space-between;\n}\n\n.StaticLineTable-module_productheader__Z2vjX {\n font-size: 28px;\n font-weight: 700;\n line-height: 36px;\n margin-bottom: 8px;\n}\n\n.StaticLineTable-module_productdescription__VdyCK {\n color: #587467;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n margin-top: -7px;\n}\n\n.StaticLineTable-module_images__Go1Hf {\n margin-right: -40px;\n}\n\n.StaticLineTable-module_imagespace__Dy1x3 {\n overflow: hidden;\n width: 100%;\n height: 100%;\n margin-left: -20px;\n margin-top: 30px;\n}\n\n.StaticLineTable-module_borderimage__2x-l3 {\n padding: 0 4px;\n}\n\n.StaticLineTable-module_ordersection__04k-y {\n border-top: 1px solid #e6e3df;\n margin-top: 15px;\n padding: 8px;\n text-align: center;\n}\n\n.StaticLineTable-module_pricesection__U7U-s {\n justify-content: center;\n}\n\n.StaticLineTable-module_productcontractduration__dzt25 {\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n}\n\n.StaticLineTable-module_productdetailslink__Dzs8e {\n color: #da291c;\n cursor: pointer;\n font-size: 16px;\n line-height: 24px;\n text-decoration: underline;\n}\n\n.StaticLineTable-module_benefitssection__7J8jk {\n padding-top: 16px;\n}\n\n.StaticLineTable-module_overlay__pa3Q8 {\n cursor: default;\n display: block;\n opacity: 0.4;\n pointer-events: none;\n}\n\n.StaticLineTable-module_addsmartphone__12--5 img {\n margin-right: 10px;\n vertical-align: bottom;\n}\n\n.StaticLineTable-module_promocontainer__Ub07A {\n align-items: center;\n background: #2e6199;\n border-radius: 4px;\n color: #ffffff;\n display: flex;\n flex-direction: row;\n font-size: 14px;\n font-weight: 700;\n justify-content: center;\n left: 16px;\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.StaticLineTable-module_disabled__97Dzp {\n opacity: 0.4;\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n}\n\n.StaticLineTable-module_buttontext__CAfOt {\n font-size: 16px;\n line-height: 24px;\n color: #ffffff;\n font-weight: bold;\n text-align: center;\n}\n\n.StaticLineTable-module_swapButton__2SyEm {\n display: flex;\n flex-direction: column-reverse;\n}");var to={productdetailswrapper:"StaticProductEntitle-module_productdetailswrapper__gzl6M",configheadersection:"StaticProductEntitle-module_configheadersection__f70WF",displayname:"StaticProductEntitle-module_displayname__5CVcP",configdetailssection:"StaticProductEntitle-module_configdetailssection__V7au8",disabled:"StaticProductEntitle-module_disabled__j-Lin",showmore:"StaticProductEntitle-module_showmore__RpLbs",newmodal:"StaticProductEntitle-module_newmodal__Feu6A",tvHeading:"StaticProductEntitle-module_tvHeading__UAbu6",changeBtn:"StaticProductEntitle-module_changeBtn__c7Vtt",optioncontainer:"StaticProductEntitle-module_optioncontainer__CoQ5Y",optionlist:"StaticProductEntitle-module_optionlist__xcxCh",optiontitle:"StaticProductEntitle-module_optiontitle__e20IH",optionwrapper:"StaticProductEntitle-module_optionwrapper__8vw2r",text:"StaticProductEntitle-module_text__nto6N",pricecontainer:"StaticProductEntitle-module_pricecontainer__OGX6q",discountedprice:"StaticProductEntitle-module_discountedprice__6A-5H",duration:"StaticProductEntitle-module_duration__YTTbN",basePriceAfterDiscount:"StaticProductEntitle-module_basePriceAfterDiscount__3WgFi",pricedisplay:"StaticProductEntitle-module_pricedisplay__xrKoJ",blockskeleton:"StaticProductEntitle-module_blockskeleton__3ZFj5"};g('/* 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.StaticProductEntitle-module_productdetailswrapper__gzl6M {\n border-bottom: 1px solid #e6e3df;\n padding: 16px 0;\n}\n\n.StaticProductEntitle-module_configheadersection__f70WF {\n display: inline-flex;\n}\n\n.StaticProductEntitle-module_displayname__5CVcP {\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.StaticProductEntitle-module_configdetailssection__V7au8 {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding-left: 32px;\n}\n\n.StaticProductEntitle-module_disabled__j-Lin {\n color: #606060;\n display: inline-block;\n font-weight: 500;\n margin-right: 6px;\n opacity: 0.4;\n}\n\n.StaticProductEntitle-module_showmore__RpLbs {\n color: #da291c;\n cursor: pointer;\n padding-left: 0;\n}\n\n.StaticProductEntitle-module_newmodal__Feu6A {\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.StaticProductEntitle-module_newmodal__Feu6A .StaticProductEntitle-module_tvHeading__UAbu6 {\n font-weight: 700;\n margin-left: 10px;\n width: 100%;\n}\n.StaticProductEntitle-module_newmodal__Feu6A .StaticProductEntitle-module_changeBtn__c7Vtt {\n color: #da291c;\n}\n.StaticProductEntitle-module_newmodal__Feu6A > img {\n margin: 4px 10px 0 4px;\n}\n\n.StaticProductEntitle-module_optioncontainer__CoQ5Y {\n background: rgba(153, 178, 167, 0.1);\n border: 1px solid #B6C8C0;\n border-radius: 8px;\n padding: 12px 16px;\n}\n.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh {\n margin-top: 2px;\n}\n.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh .StaticProductEntitle-module_optiontitle__e20IH {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n}\n.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh .StaticProductEntitle-module_optionwrapper__8vw2r {\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.StaticProductEntitle-module_optioncontainer__CoQ5Y .StaticProductEntitle-module_optionlist__xcxCh .StaticProductEntitle-module_optionwrapper__8vw2r .StaticProductEntitle-module_text__nto6N > div > p > b {\n color: #5e94cf;\n}\n\n.StaticProductEntitle-module_pricecontainer__OGX6q {\n justify-content: center;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_discountedprice__6A-5H {\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_duration__YTTbN {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_basePriceAfterDiscount__3WgFi {\n font-size: 20px;\n font-weight: 700;\n line-height: 28px;\n padding-left: 10px;\n position: relative;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_basePriceAfterDiscount__3WgFi::after {\n border-bottom: 2px solid #e6003c;\n content: "";\n left: 8px;\n position: absolute;\n right: -1px;\n top: 50%;\n}\n.StaticProductEntitle-module_pricecontainer__OGX6q .StaticProductEntitle-module_pricedisplay__xrKoJ {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n padding: 4px;\n}\n\n.StaticProductEntitle-module_blockskeleton__3ZFj5 {\n bottom: 5px;\n height: 15px;\n top: 5px;\n}');const oo=({content:n,constants:t,showModalPopup:o})=>{var l,i,d;const r=e.useRef(null),a=null===(l=null==b?void 0:b.getInstance())||void 0===l?void 0:l.getAssetPath();return e.createElement("div",null,e.createElement("div",{ref:r},e.createElement("div",{className:to.productdetailswrapper},e.createElement("div",{className:to.configheadersection,style:{width:"100%"}},(null===(i=null==n?void 0:n.icon)||void 0===i?void 0:i.filename)&&e.createElement("span",null,e.createElement("img",{src:null===(d=null==n?void 0:n.icon)||void 0===d?void 0:d.filename,alt:"img",width:24,height:24,className:to.imagecontainer})),e.createElement("span",{className:to.displayname},null==n?void 0:n.title),(null==n?void 0:n.tooltip)&&e.createElement("div",{className:to.bundletooltip,style:{marginLeft:"auto"}},e.createElement(xe,{content:null==n?void 0:n.tooltip}))),e.createElement("div",{className:to.configdetailssection},(null==n?void 0:n.channelName)&&(null==n?void 0:n.enableTV)&&e.createElement("div",{className:to.newmodal,onClick:()=>{o()}},e.createElement("div",{className:to.tvHeading},null==n?void 0:n.channelName),e.createElement("div",{className:to.changeBtn},t.changeText),e.createElement("img",{src:`${a}/icons/chevron-down-red.svg`,height:24,width:24,alt:""})),(null==n?void 0:n.description)&&e.createElement("div",{className:to.productdetailsdescription,id:"entitledespV3"},e.createElement(X,{content:null==n?void 0:n.description}))))))},lo=({content:n,benefitData:t,constants:o})=>{const l=null==t?void 0:t.int_fmc,i=null==t?void 0:t.mob_fmc,d=null==t?void 0:t.mob_benefit_category;return e.createElement("div",null,e.createElement("div",{className:to.optioncontainer},e.createElement("div",{className:to.optionlist},(null==n?void 0:n.length)>0&&e.createElement("span",{className:to.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"!=d||"multimob_fmc"==(null==n?void 0:n.id)&&i>0&&"MULTIMOBILE"==d||"combi_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==d||"mob_fmc"==(null==n?void 0:n.id)&&i>0&&"FMC"==d?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)&&e.createElement(e.Fragment,null,(n=>{var t,o;return e.createElement("span",{className:to.optionwrapper},(null===(t=null==n?void 0:n.icon)||void 0===t?void 0:t.filename)&&e.createElement("img",{src:null===(o=null==n?void 0:n.icon)||void 0===o?void 0:o.filename,width:24,height:24,alt:"benefit icon"}),e.createElement("span",{className:`${to.text} ms-2`},e.createElement(X,{content:null==n?void 0:n.text})))})(n)))),e.createElement("span",null,(null==n?void 0:n.toolTip)&&e.createElement(xe,{content:null==n?void 0:n.toolTip,isBenefit:!0}))):"")))))},io=({priceCollection:n,constants:t,promoText:o})=>{var l,i,d,r,a,c;const u=null!==(l=null==n?void 0:n.base)&&void 0!==l?l:0;let s=null!==(r=null===(d=null===(i=null==n?void 0:n.discount)||void 0===i?void 0:i[0])||void 0===d?void 0:d.value)&&void 0!==r?r:0;null===(a=null==n?void 0:n.discount)||void 0===a||a.map((e=>{1==(null==e?void 0:e.cycleStart)&&(s=null==e?void 0:e.value)}));const m=null==n?void 0:n.discount,p=null==n?void 0:n.int_fmc,v=null==n?void 0:n.mob_fmc;let _=!1;return e.createElement("div",null,Number(u)>0?e.createElement(e.Fragment,null,e.createElement("div",{className:`${to.pricecontainer}`},e.createElement("span",{className:`${to.discountedprice} ${p>0||v>0||(null==m?void 0:m.length)>0?to.promo:""}`},N(s>0?s:u),e.createElement("span",{className:`${to.duration}`},null==t?void 0:t.month)),u&&(p>0||v>0||m.length>0)&&e.createElement("span",{className:`${to.basePriceAfterDiscount}`},N(u)),o&&e.createElement("div",null,o)),!v&&!p&&(null==m?void 0:m.length)>0&&(null===(c=null==m?void 0:m[0])||void 0===c?void 0:c.cycleEnd)&&e.createElement("div",null,e.createElement("div",{className:to.pricedisplay},m.length>0&&m.map((n=>(720===(null==n?void 0:n.cycleEnd)&&(_=!0),e.createElement(e.Fragment,null," ",e.createElement("span",{className:to.pricelabel},_?e.createElement("span",null," ",null==t?void 0:t.lifetimeLabel," "):e.createElement(e.Fragment,null," ",1!=n.cycleStart&&e.createElement(e.Fragment,null,"CHF"," ",N(n.value))," ",1===n.cycleStart?D(null==t?void 0:t.promoFirstLt,[n.cycleEnd]):D(null==t?void 0:t.promoNextLt,[n.cycleEnd-n.cycleStart+1]))))))),!_&&e.createElement("span",null," ",D(null==t?void 0:t.promoThenIt,[N(u)]))))):e.createElement(ht,{stylename:to.blockskeleton}))},ro=({isMobileFlow:n,createCartCall:t,constants:o,storyContent:l,showPrice:i,isAvailable:d,address:r})=>{var a;const[c,u]=e.useState(!1);return e.useEffect((()=>{!n&&!d||""===(null==i?void 0:i.base)?u(!0):u(!1)}),[l,i,d]),e.createElement("div",null,n?(null==l?void 0:l.swapButton)?(null==l?void 0:l.ctaLinkLabel)&&e.createElement("a",{onClick:t,className:`${c&&no.disabled}`},null==l?void 0:l.ctaLinkLabel):e.createElement("button",{className:`primarybutton ${c&&no.disabled}`,onClick:t,disabled:c},e.createElement("span",{className:no.buttontext},null==o?void 0:o.addToCartBtnTxt)):e.createElement(e.Fragment,null,r&&(null===(a=null==Object?void 0:Object.keys(r))||void 0===a?void 0:a.length)>0?e.createElement(e.Fragment,null,e.createElement("button",{className:`primarybutton ${c&&no.disabled}`,onClick:t,disabled:c},e.createElement("span",{className:no.buttontext},null==o?void 0:o.addToCartBtnTxt))):e.createElement("button",{onClick:t,className:"configurebutton"},e.createElement("span",null,null==o?void 0:o.checkAvailability))))};var ao="StaticProductDetails-module_productPopModal__of6yB",co="StaticProductDetails-module_container__OHbPI",uo="StaticProductDetails-module_backbtn__vU7Q0",so="StaticProductDetails-module_closebtn__yuQLi",mo="StaticProductDetails-module_cartbtn__e8KGX",po="StaticProductDetails-module_check-footer__AZ6lf",vo="StaticProductDetails-module_footer-linetablev3__3jswU";g("/* 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 .StaticProductDetails-module_productPopModal__of6yB {\n min-width: 884px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .StaticProductDetails-module_productPopModal__of6yB {\n min-width: 740px;\n }\n}\n.StaticProductDetails-module_productPopModal__of6yB .modal-body {\n padding: 0 16px 16px;\n}\n@media (max-width: 767px) {\n .StaticProductDetails-module_productPopModal__of6yB .modal-body {\n padding: 12px;\n }\n}\n.StaticProductDetails-module_productPopModal__of6yB .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.StaticProductDetails-module_productPopModal__of6yB .modal-content .modal-header {\n border-bottom: none !important;\n}\n.StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_container__OHbPI {\n display: flex;\n align-items: center;\n margin-left: 16px;\n}\n.StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_container__OHbPI .StaticProductDetails-module_backbtn__vU7Q0 {\n color: #da291c;\n}\n@media (max-width: 767px) {\n .StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_container__OHbPI {\n margin-left: 12px;\n }\n}\n.StaticProductDetails-module_productPopModal__of6yB .StaticProductDetails-module_closebtn__yuQLi .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n\n.StaticProductDetails-module_cartbtn__e8KGX {\n cursor: pointer;\n text-align: center;\n width: fit-content;\n float: right;\n}\n.StaticProductDetails-module_cartbtn__e8KGX .primarybutton {\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .StaticProductDetails-module_cartbtn__e8KGX {\n position: inherit;\n width: auto;\n top: 0;\n right: auto;\n }\n}\n\n.StaticProductDetails-module_check-footer__AZ6lf {\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.StaticProductDetails-module_check-footer__AZ6lf .StaticProductDetails-module_footer-linetablev3__3jswU {\n width: 100%;\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.StaticProductDetails-module_back-button__MMT6S {\n position: fixed;\n top: 0;\n padding: 16px 0;\n}\n\n.StaticProductDetails-module_modal-price__-owzv {\n padding: 16px 0 24px;\n}\n\n.StaticProductDetails-module_productDetailstext__7tLGS {\n color: #3d3935;\n text-decoration: underline;\n}\n\n.StaticProductDetails-module_productDetailstextNew__1OXNX {\n color: #da291c;\n text-decoration: underline;\n}\n\n.StaticProductDetails-module_textColor__FbmIS {\n color: #ffffff;\n text-decoration: underline;\n}");const _o=({modalState:n,handler:l,showFooter:i,footerNode:d,children:r,width:a,height:c,backButton:u})=>{var s;const m=null===(s=null==b?void 0:b.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:ao},e.createElement(t.Header,null,e.createElement("div",{onClick:l,className:`${co}`},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:uo},u))),e.createElement("div",{className:`${so} me-3 mt-3`},e.createElement(o,{className:"sr-modal-close",onClick:l}))),e.createElement(t.Body,null,r),i&&e.createElement(t.Footer,null,d))},ho=({content:n,showProductDetail:t,setShowProductDetail:o,constants:l,showPrice:i,isMobileFlow:d,createCartCall:r,storyContent:a,isAvailable:c,address:u})=>{var s;const[m,p]=e.useState(!0);let v=[],_="";n&&n.length>0&&(null==n||n.map((e=>{v=null==e?void 0:e.modalBody,_=null==e?void 0:e.backButton})));return e.createElement(e.Fragment,null,e.createElement(_o,{modalState:m,handler:()=>{p(!m),o(!t)},showFooter:!1,height:"100%",backButton:_},e.createElement(e.Fragment,null,null==v?void 0:v.map(((n,t)=>e.createElement(ae,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===B&&e.createElement(K,{content:n,key:t}),(null==n?void 0:n.component)===R&&e.createElement(se,{content:n}),(null==n?void 0:n.component)===M&&e.createElement(ue,{content:n}))))),e.createElement("div",{className:`footer-main ${po} `},e.createElement("span",{className:`${vo}`},e.createElement("div",null,e.createElement(io,{priceCollection:i,constants:l}),e.createElement("div",null,(null==i?void 0:i.contractDuration)?D(null===(s=null==l?void 0:l.minContractDuration)||void 0===s?void 0:s.substring(1),[null==i?void 0:i.contractDuration]):null==l?void 0:l.noContractDuration)),e.createElement("div",{className:mo},e.createElement(ro,{isMobileFlow:d,createCartCall:r,constants:l,storyContent:a,showPrice:i,isAvailable:c,address:u})))))))},go=(e,n,t)=>{var o,l,i,d;const r=(null==e?void 0:e.promoID)?null==e?void 0:e.promoID:$;let a="";a=`?componentCode=&productType=subscription&segmentCode=RC&prefPromo=${null!=r?r:""}&productCode=${null!==(o=null==e?void 0:e.id)&&void 0!==o?o:""}`,window.location.href=(null===(d=null===(i=null===(l=null==n?void 0:n.addSmartPhone)||void 0===l?void 0:l[0])||void 0===i?void 0:i.buttonLink)||void 0===d?void 0:d.cached_url)+a,((e,n)=>{var t,o,l,i,d,r,a,c,u,s,m,p,v,_,h,g,f,b;const x=n,y=null!==(i=null===(l=null===(o=null===(t=null==x?void 0:x[0])||void 0===t?void 0:t.prices)||void 0===o?void 0:o[0])||void 0===l?void 0:l.value)&&void 0!==i?i:0,w=null!==(c=null===(a=null===(r=null===(d=null==x?void 0:x[0])||void 0===d?void 0:d.derivedPrice)||void 0===r?void 0:r[0])||void 0===a?void 0:a.value)&&void 0!==c?c:0,C=null!==(p=null===(m=null===(s=null===(u=null==x?void 0:x[0])||void 0===u?void 0:u.promotionInfo)||void 0===s?void 0:s[0])||void 0===m?void 0:m.contractDuration)&&void 0!==p?p:0,E=null!==(g=null===(h=null===(_=null===(v=null==x?void 0:x[0])||void 0===v?void 0:v.promotionInfo)||void 0===_?void 0:_[0])||void 0===h?void 0:h.campaignDuration)&&void 0!==g?g:0,k={mobileSubscription:null!==(b=null===(f=null==x?void 0:x[0])||void 0===f?void 0:f.id)&&void 0!==b?b:"",mobileSubscriptionPrice:w>0?w:y,mobileSubscriptionPromo:e,subGroup:"MOBILE",duration:Number(E>0?E:C),basePrice:y,withoutPromo:!1};void 0!==typeof window&&sessionStorage.setItem("one-ecommerce-mobileSummary",JSON.stringify(k))})(r,t),tn(ke,Se,Be(t,"",Pe)),Me(ye,t,"",Pe)};var fo={errormodalbox:"TVChannelModal-module_errormodalbox__MdM7c",header:"TVChannelModal-module_header__Bo-HW",errorwrapper:"TVChannelModal-module_errorwrapper__i8Rpe",title:"TVChannelModal-module_title__8Wyd9",footer:"TVChannelModal-module_footer__MI2lx",optionsContent:"TVChannelModal-module_optionsContent__VF89s",confirmBtn:"TVChannelModal-module_confirmBtn__g0bzN",errordialog:"TVChannelModal-module_errordialog__3-C3h",bodywrapper:"TVChannelModal-module_bodywrapper__rM7v2",cardwrapper:"TVChannelModal-module_cardwrapper__dKRPM",body:"TVChannelModal-module_body__2TTV9"};g("/* 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.TVChannelModal-module_errormodalbox__MdM7c {\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.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_header__Bo-HW {\n z-index: 1;\n border: none;\n padding: 0px;\n margin-bottom: -12px;\n margin-right: 0.5rem;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_header__Bo-HW .btn-close:focus {\n border: none;\n box-shadow: none;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_errorwrapper__i8Rpe {\n border-radius: 8px;\n box-shadow: rgba(87, 84, 82, 0.2);\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_errorwrapper__i8Rpe .TVChannelModal-module_title__8Wyd9 {\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.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx {\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.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx .TVChannelModal-module_optionsContent__VF89s {\n margin: auto;\n width: fit-content;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx .TVChannelModal-module_confirmBtn__g0bzN {\n border: none;\n width: fit-content;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx .TVChannelModal-module_confirmBtn__g0bzN > img {\n margin-left: 8px;\n}\n.TVChannelModal-module_errormodalbox__MdM7c .TVChannelModal-module_footer__MI2lx p {\n color: #ffffff;\n align-items: left;\n}\n\n.TVChannelModal-module_errordialog__3-C3h {\n max-width: 934px;\n}\n\n.TVChannelModal-module_bodywrapper__rM7v2 {\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 .TVChannelModal-module_bodywrapper__rM7v2 {\n max-width: 380px;\n }\n}\n.TVChannelModal-module_bodywrapper__rM7v2 .TVChannelModal-module_cardwrapper__dKRPM {\n outline: 4px solid #da291c;\n border: 0px;\n border-radius: 8px;\n box-shadow: none;\n height: 100%;\n width: 100%;\n padding: 1rem;\n justify-content: center;\n}\n.TVChannelModal-module_bodywrapper__rM7v2 .TVChannelModal-module_cardwrapper__dKRPM h4 {\n color: #da291c;\n font-weight: 700;\n left: 32px;\n top: 12px;\n min-width: max-content;\n}\n\n.TVChannelModal-module_body__2TTV9 {\n padding: 0px;\n display: flex;\n color: #5f5955;\n flex-wrap: wrap;\n justify-content: center;\n}");const bo=({content:n,setShowModal:t,showModal:o,constants:l})=>{var d;const r=null===(d=null==b?void 0:b.getInstance())||void 0===d?void 0:d.getAssetPath(),a=()=>{t(!1)};return e.createElement(i.Modal,{contentClassName:fo.errormodalbox,show:o,dialogClassName:fo.errordialog,onHide:a,centered:!0},e.createElement(i.Modal.Header,{className:fo.header,closeButton:!0,onClick:a}),e.createElement("div",{className:fo.errorwrapper},e.createElement(i.Modal.Title,{className:fo.title},null==n?void 0:n.modalHeadline)),e.createElement(i.Modal.Body,{className:fo.body},e.createElement("div",{className:fo.bodywrapper},e.createElement("div",{className:fo.cardwrapper},e.createElement("h4",null,null==n?void 0:n.modalTitle),e.createElement("div",{className:"mb-3"},e.createElement(X,{content:null==n?void 0:n.modalDescription})),e.createElement("div",{className:"row w-100 pt-2 mt-auto"},e.createElement("h3",{className:"col-9 mb-0"},null==l?void 0:l.includedTxt))))),e.createElement(i.Modal.Footer,{className:fo.footer},e.createElement("div",{className:"row w-100"},e.createElement("div",{className:"text-center"},e.createElement("button",{className:`${fo.confirmBtn} primarybutton`,onClick:()=>a},null==l?void 0:l.closeTxt,e.createElement("img",{className:fo["img-tick"],src:`${r}/icons/tick.svg`,height:24,width:24,alt:""}))))))},xo=({content:n,offeringData:t,uniqueId:o,storyContent:l,metadata:i,tabIndex:d,cardsLength:r,indexKey:a,constants:u,mainContent:s,address:m,eligibleBundle:p,linecheckSuccessCallBack:v})=>{var g,x,y,w,C,E,k,T,S,N,L,I,V,O,A,B,M,R,F,G,W,j,U,H,q,K,J,Z,Q,ee,ne,oe,le,ie,de,re,ae,ce,ue,se,me;const[pe,ve]=e.useState(!1),[_e,he]=e.useState(!1),[ge,fe]=e.useState({showGift:!1,cashbackAvailable:!1}),[be,xe]=e.useState([]),[we,Ce]=e.useState(!1),[Te,Se]=e.useState(!1),[Ne,Le]=e.useState(!1),Ie=void 0!==typeof window&&document.getElementById("static-linetable"),Ve=0===(null===(g=Object.keys(n))||void 0===g?void 0:g.length),Oe=null===(E=null===(C=null===(w=null===(y=null===(x=null==n?void 0:n.products)||void 0===x?void 0:x[0])||void 0===y?void 0:y.reference)||void 0===w?void 0:w.content)||void 0===C?void 0:C.product)||void 0===E?void 0:E[0],De=null===(L=null===(N=null===(S=null===(T=null===(k=null==n?void 0:n.promotion)||void 0===k?void 0:k[0])||void 0===T?void 0:T.reference)||void 0===S?void 0:S.content)||void 0===N?void 0:N.promoDescription)||void 0===L?void 0:L[0],Ae=null==Oe?void 0:Oe.productId,Re=null===(I=null==f?void 0:f.getInstance())||void 0===I?void 0:I.getCartUrl(),Fe=null===(V=null==b?void 0:b.getInstance())||void 0===V?void 0:V.getAssetPath(),ze="MOBILE"===(null==l?void 0:l.pageType);let $e;$e=m&&(null===(O=null==p?void 0:p.eligibleBundle)||void 0===O?void 0:O.includes(Ae));let Ge=void 0!==typeof window&&c.get("sunriseAuth");Ge=Ge&&JSON.parse(Ge);const We=((null==t?void 0:t[o])||[]).filter((e=>(null==e?void 0:e.id)===Ae)),je=()=>{he(!1);!(!(null==s?void 0:s.enableExistingCustomer)||null!=Ge)?Ce(!0):Xe()},Ue=e=>{const n=be.findIndex((n=>(null==e?void 0:e.giftGroupId)===(null==n?void 0:n.giftGroupId))),t=be;-1===n?t.push(e):t[n]=e,xe([...t])},He=((e,n)=>{let t;return n||(t=(e||[]).filter((e=>!0===(null==e?void 0:e.enableTV)))),t})(null==Oe?void 0:Oe.bloks,ze),qe=null===(A=null==He?void 0:He[0])||void 0===A?void 0:A.tvProductId,Xe=()=>{he(!1),((e,n,t,o,l,i,d,r,a,u,s,m)=>{var p;if(d)e(!0),0!==(null===(p=Object.keys(o))||void 0===p?void 0:p.length)&&te(o,"",(null==i?void 0:i.promoID)?null==i?void 0:i.promoID:$,n,"mobile",t).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.id,{path:"/"}),Me(ye,o,"",Pe),window.location.href=null===(n=null==l?void 0:l.summaryPageUrl)||void 0===n?void 0:n.cached_url})).catch((n=>{console.log(n),e(!1)})).finally((()=>{e(!1)}));else{const d="undefined"!=typeof window&&c.get("one-commerce-linecheckcorrelationid");a&&u&&d?(e(!0),0!==o.length&&te(o,r,(null==i?void 0:i.promoID)?null==i?void 0:i.promoID:z,n,"fixnet",t).then((e=>{var n;"undefined"!=typeof window&&c.remove("one-commerce-cartId",{path:"/"}),"undefined"!=typeof window&&c.set("one-commerce-cartId",null==e?void 0:e.id,{path:"/"}),"undefined"!=typeof window&&c.set("cartProduct",null==i?void 0:i.id,{path:"/"}),"undefined"!=typeof window&&c.remove("landline"),Me(ye,o,"",Pe),window.location.href=null===(n=null==l?void 0:l.summaryPageUrl)||void 0===n?void 0:n.cached_url})).catch((e=>{console.log(e)})).finally((()=>{e(!1)}))):s(!m)}})(ve,Re,be,We,s,Ke,ze,qe,p,m,Le,Ne)},Ke=((e,n,t,o)=>{var l,i,d,r,a,c,u,s,m,p,v;const _={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;_.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())?_.base=null==e?void 0:e.value:"one time"===(null===(t=null==e?void 0:e.priceType)||void 0===t?void 0:t.toLowerCase())&&(_.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,_.discount.push(o)}))}))),null===(i=null===(l=null==e?void 0:e[0])||void 0===l?void 0:l.bundledOffers)||void 0===i||i.forEach((e=>{var n,t,o,l,i;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)?_.int_fmc+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(_.mob_fmc+=Number(null==e?void 0:e.value),_.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==e?void 0:e.contractDuration)&&(_.contractDuration=null==e?void 0:e.contractDuration),(null===(o=null===(t=null==e?void 0:e.promotionInfo)||void 0===t?void 0:t[0])||void 0===o?void 0:o.id)&&(_.promoID=null===(i=null===(l=null==e?void 0:e.promotionInfo)||void 0===l?void 0:l[0])||void 0===i?void 0:i.id)})),(null===(d=null==e?void 0:e[0])||void 0===d?void 0:d.isBundle)||(_.contractDuration=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.contractDuration,_.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 h=0;if(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)?h+=Number(null==e?void 0:e.value):"MULTIMOBILE"!=(null==e?void 0:e.priceCategory)&&"FMC"!=(null==e?void 0:e.priceCategory)||(_.mob_fmc+=Number(null==e?void 0:e.value),_.mob_benefit_category=null==e?void 0:e.priceCategory)})))})),(null==_?void 0:_.contractDuration)||n||(_.contractDuration="12"),_.int_fmc=o?h:_.int_fmc,"4P"==t){let n="0";null===(v=null===(p=null==e?void 0:e[0])||void 0===p?void 0:p.bundledOffers)||void 0===v||v.map((e=>{(null==e?void 0:e.contractDuration)&&(n=Number(n)>Number(null==e?void 0:e.contractDuration)?n:null==e?void 0:e.contractDuration)})),_.contractDuration=n}return _})(We,ze,null==s?void 0:s.pageType);e.useEffect((()=>{var e;setTimeout((()=>{((e,n)=>{P(`headingV3${e}`,n),P(`descriptionV3${e}`,n),P(`titleV3${e}`,n),P(`detailsectionv3${e}`,n),P(`product-configv3${e}`,n),P(`gift-section${e}`,n),P(`benefits-section${e}`,n),P(`order-section${e}`,n),P(`price-section${e}`,n),P(`benefits-price-section${e}`,n),P(`contract-section${e}`,n)})(d,r)}),100);const n=(e=>{let n=!1,t=!1;return null==e||e.map((e=>{var o;null===(o=null==e?void 0:e.promotionInfo)||void 0===o||o.map((e=>{(null==e?void 0:e.hardwareGift)&&(n=!0),(null==e?void 0:e.cashBack)&&(t=!0)}))})),{showGift:n,cashbackAvailable:t}})(ze?We:null===(e=null==We?void 0:We[0])||void 0===e?void 0:e.bundledOffers);fe(Object.assign({},n))}),[t]);const Je=()=>{(null==He?void 0:He.length)>0&&Se(!0)};return e.createElement("div",null,pe&&Ie&&h.createPortal(e.createElement(Y,{keyParams:"loading"}),Ie),Ve&&e.createElement("div",{className:"w-75 pb-2"},e.createElement(ht,null)),!Ve&&p&&n&&m&&!ze&&e.createElement("div",{className:no.selected},e.createElement("span",{style:{paddingBottom:"10px"}},$e?e.createElement("span",{className:no.activeicon},e.createElement("img",{src:`${Fe}/icons/lineCheck-success.svg`,alt:"",width:24,height:24,className:no.activeicon}),e.createElement("span",null,null==u?void 0:u.subscriptionAvalTxt)):e.createElement("span",{className:no.inactiveicon},e.createElement("img",{src:`${Fe}/icons/cross_disabled.svg`,alt:"",width:24,height:24,className:no.inactiveicon}),e.createElement("span",null,null==u?void 0:u.notSubscriptionTxt)))),e.createElement("div",{className:`${ze||!1!==$e?"":no.overlay}`,style:{flexDirection:"column"}},e.createElement("div",{className:`${no.bundleproductcard} ${no.productcontainer} ${(null===(B=null==n?void 0:n.highlightText)||void 0===B?void 0:B.length)>0&&no.highlightBorder}`},(null===(M=null==Oe?void 0:Oe.highlightText)||void 0===M?void 0:M.length)>0&&e.createElement("div",{className:`${no.highlightText}`},null==n?void 0:n.highlightText),(null==De?void 0:De.displayText)&&e.createElement("div",{className:`${no.promocontainer}`,style:{background:null==De?void 0:De.bestSellerColor}},null==De?void 0:De.displayText),e.createElement("div",{className:`${no.detailsection}`,id:`detailsectionv3${d}${a}`},e.createElement("div",{className:`${no.headersection}`},e.createElement("div",{className:`${no.titlesection}`},e.createElement("div",{className:`${no.productheader}`,id:`titleV3${d}${a}`},null==Oe?void 0:Oe.productName),e.createElement("div",null,(null===(R=null==Oe?void 0:Oe.icon)||void 0===R?void 0:R.filename)&&e.createElement("img",{className:`${no.imagecontainer}`,src:null===(F=null==Oe?void 0:Oe.icon)||void 0===F?void 0:F.filename,height:15,width:20}))),e.createElement("div",{className:`${no.productdescription}`,id:`descriptionV3${d}${a}`},e.createElement(X,{content:null==Oe?void 0:Oe.description})),e.createElement("div",{className:`${no.images}`},(null===(G=null==Oe?void 0:Oe.img)||void 0===G?void 0:G.filename)&&e.createElement("img",{className:`${no.imagespace} ${(null==n?void 0:n.highlightText)&&no.borderimage}`,alt:"cardimg",src:null===(W=null==Oe?void 0:Oe.img)||void 0===W?void 0:W.filename}))),e.createElement("div",{className:`${no.productconfig}`,id:`product-configv3${d}${a}`},Ve?e.createElement(e.Fragment,null,e.createElement("div",{className:no.space}),e.createElement(ht,{stylename:no.skeletontittle,count:1}),e.createElement(ht,{stylename:no.skeletonline,count:5}),e.createElement("div",{className:no.space}),e.createElement(ht,{stylename:no.skeletontittle,count:1}),e.createElement(ht,{stylename:no.skeletonline,count:5})):e.createElement("div",null,(null==Oe?void 0:Oe.bloks)&&(null===(j=null==Oe?void 0:Oe.bloks)||void 0===j?void 0:j.map(((n,t)=>e.createElement(oo,{content:n,indexKey:t,constants:u,key:t,showModalPopup:Je}))))))),e.createElement("div",{className:`${no.detailsection}`,id:`benefits-price-section${d}${a}`},e.createElement("div",{className:`${no.benefitssection}`,id:`benefits-section${d}${a}`},(null===(U=null==Oe?void 0:Oe.benefits)||void 0===U?void 0:U.length)>0&&e.createElement(lo,{content:null==Oe?void 0:Oe.benefits,benefitData:Ke,constants:u})),e.createElement("br",null),e.createElement("div",{className:`${no.giftsection}`,id:`gift-section${d}${a}`},(null==ge?void 0:ge.showGift)&&(null===(H=null==De?void 0:De.singleGift)||void 0===H?void 0:H.map(((n,t)=>e.createElement($t,{content:n,key:t})))),(null==ge?void 0:ge.showGift)&&(null===(q=null==De?void 0:De.giftConfig)||void 0===q?void 0:q.map(((n,t)=>e.createElement(Wt,{content:n,key:t,selectedGiftItem:Ue,parentPoType:ze?"MOBILE":"HOME"})))),e.createElement("div",{className:`${no.giftsection}`,id:`cashback-section${d}${a}`},(null==De?void 0:De.cashBack)&&(null==ge?void 0:ge.cashbackAvailable)&&(null===(K=null==De?void 0:De.cashBack)||void 0===K?void 0:K.map(((n,t)=>e.createElement(Yt,{content:n,key:t})))))),e.createElement("div",{className:`${no.ordersection}`,id:`order-section${d}${a}`},""===(null==Ke?void 0:Ke.base)?e.createElement("div",null,e.createElement(ht,{stylename:no.skeletontittle})):e.createElement("div",{className:`${no.flexgrid} ${no.pricesection} `,id:`price-section${d}${a}`},e.createElement(io,{priceCollection:Ke,constants:u,promoText:null==Oe?void 0:Oe.promoText})),e.createElement("div",{className:`${(null==l?void 0:l.swapButton)&&no.swapButton}`},e.createElement("div",{style:{padding:"16px 0"}},e.createElement(ro,{isMobileFlow:ze,createCartCall:ze?je:Xe,constants:u,storyContent:l,showPrice:Ke,isAvailable:$e,address:m})),e.createElement("div",{className:no.productcontractduration,id:`contract-section${d}${a}`},(null==Ke?void 0:Ke.contractDuration)>"1"?D(null===(J=null==u?void 0:u.minContractDuration)||void 0===J?void 0:J.substring(1),[null==Ke?void 0:Ke.contractDuration]):null==u?void 0:u.noContractDuration),(null===(Z=null==l?void 0:l.addSmartPhone)||void 0===Z?void 0:Z.length)>0&&e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null==l?void 0:l.swapButton)?(null==l?void 0:l.ctaLabel)&&e.createElement("div",{style:{padding:"16px 0"}},e.createElement("button",{className:"primarybutton",onClick:()=>go(Ke,l,We)},e.createElement("span",{className:no.buttontext},null==l?void 0:l.ctaLabel))):e.createElement("span",{className:`${no.productdetailslink} ${no.addsmartphone}`},e.createElement("div",null,e.createElement("span",null,(null===(ne=null===(ee=null===(Q=null==l?void 0:l.addSmartPhone)||void 0===Q?void 0:Q[0])||void 0===ee?void 0:ee.buttonIcon)||void 0===ne?void 0:ne.filename)&&e.createElement("img",{src:null===(ie=null===(le=null===(oe=null==l?void 0:l.addSmartPhone)||void 0===oe?void 0:oe[0])||void 0===le?void 0:le.buttonIcon)||void 0===ie?void 0:ie.filename,width:12,height:18,alt:"icon"})),e.createElement("span",null,e.createElement("a",{onClick:()=>go(Ke,l,We)},null===(re=null===(de=null==l?void 0:l.addSmartPhone)||void 0===de?void 0:de[0])||void 0===re?void 0:re.buttonLabel)))))),e.createElement("div",{style:{textAlign:"center",padding:"4px"}},(null===(ae=null==Oe?void 0:Oe.productDetails)||void 0===ae?void 0:ae.length)>0&&e.createElement("span",{className:no.productdetailslink,onClick:()=>{he(!_e),tn(ke,Ee,Be(We,"",Pe))}},null==u?void 0:u.productDetailsLink)),_e&&e.createElement(ho,{content:null==Oe?void 0:Oe.productDetails,showProductDetail:_e,setShowProductDetail:he,constants:u,showPrice:Ke,isMobileFlow:ze,createCartCall:ze?je:Xe,storyContent:l,isAvailable:$e,address:m}))))),Te&&(Ve?e.createElement(ht,null):e.createElement(bo,{content:null==He?void 0:He[0],setShowModal:Se,showModal:Te,constants:u})),we&&ze&&(null===(ce=null==s?void 0:s.loginData)||void 0===ce?void 0:ce.length)>0&&Ie&&h.createPortal(e.createElement(_.LoginModalV2,{content:null===(ue=null==s?void 0:s.loginData)||void 0===ue?void 0:ue[0],closeLogin:()=>{Ce(!1)},metadata:i,onSuccess:()=>{Ce(!1),Xe()}}),Ie),Ne&&!ze&&(null===(se=null==s?void 0:s.linecheckData)||void 0===se?void 0:se.length)>0&&e.createElement(ct,{content:null===(me=null==s?void 0:s.linecheckData)||void 0===me?void 0:me[0],onSuccess:()=>{let e="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse");p=e&&(null===JSON||void 0===JSON?void 0:JSON.parse(e)),m="undefined"!=typeof window&&c.get("chAddressJson"),Le(!Ne),"function"==typeof v&&v(),Xe()},showModal:Ne,setShowModal:Le,productName:null==Oe?void 0:Oe.productName}))},yo=({content:n,setGenericErrorModalDetails:t,metadata:o,tabIndex:l,constants:i,loginSuccess:d,activeIndex:r,mainContent:a,address:u,eligibleBundle:s,linecheckSuccessCallBack:m})=>{var p,v,_;const h=V(),g=null==n?void 0:n._uid,[b,x]=e.useState(),y=null===(p=null==f?void 0:f.getInstance())||void 0===p?void 0:p.getBaseUrl();let w=void 0!==typeof window&&c.get("sunriseAuth");w=w&&JSON.parse(w);const C="MOBILE"===(null==n?void 0:n.pageType);e.useEffect((()=>(setTimeout((()=>{E()}),100),null===window||void 0===window||window.addEventListener("resize",E),null===window||void 0===window||window.addEventListener("load",E),()=>{window.removeEventListener("resize",E),window.removeEventListener("load",E)})),[null==n?void 0:n.productList]);const E=()=>{var e;P(`productCardV3${r}`,null===(e=null==n?void 0:n.productList)||void 0===e?void 0:e.length)};e.useEffect((()=>{var e;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&Ge("view",b[g],"",Pe)}),[b]),e.useEffect((()=>{var e;b&&(null===(e=Object.keys(b))||void 0===e?void 0:e.length)>0&&!C&&(null==s?void 0:s.eligibleBundle)&&Ge("available",b[g],"",Pe,null==s?void 0:s.eligibleBundle)}),[s,b]);const k=()=>{var e,o;const i=[],c=null==a?void 0:a.enableExistingCustomer,u=null==a?void 0:a.subscriptionType,s=null==n?void 0:n.isReturnPromo;var m,p;if(m=null==n?void 0:n.productList,p=i,null==m||m.map((e=>{var n,t,o,l,i,d,r,a,c,u,s;const m={id:"",promoIds:[]},v=null===(i=null===(l=null===(o=null===(t=null===(n=null==e?void 0:e.products)||void 0===n?void 0:n[0])||void 0===t?void 0:t.reference)||void 0===o?void 0:o.content)||void 0===l?void 0:l.product)||void 0===i?void 0:i[0],_=null===(u=null===(c=null===(a=null===(r=null===(d=null==e?void 0:e.promotion)||void 0===d?void 0:d[0])||void 0===r?void 0:r.reference)||void 0===a?void 0:a.content)||void 0===c?void 0:c.promoDescription)||void 0===u?void 0:u[0];m.id=null==v?void 0:v.productId,null===(s=null==m?void 0:m.promoIds)||void 0===s||s.push(null==_?void 0:_.promotionId),null==p||p.push(m)})),l===r&&!(null==b?void 0:b[g])||l===r&&d)try{null===(e=oe(i,null==n?void 0:n._uid,y,c,u,s))||void 0===e||e.then((e=>{x(e),t({showPopup:!1})})).catch((e=>{var n;console.log("error---\x3e",e),t({showPopup:!0,content:null===(n=null==a?void 0:a.telesalesBlok)||void 0===n?void 0:n[0]})}))}catch(e){console.log("error---\x3e",e),t({showPopup:!0,content:null===(o=null==a?void 0:a.telesalesBlok)||void 0===o?void 0:o[0]})}};return e.useEffect((()=>{r!=l&&r||k()}),[r]),e.useEffect((()=>{(null==w?void 0:w.siteId)&&d&&k()}),[d]),e.createElement("div",null,e.createElement("div",{className:no.titlecontainer},(null==n?void 0:n.title)&&e.createElement("div",{className:no.title},null==n?void 0:n.title),(null==n?void 0:n.subTitle)&&e.createElement("div",{className:no.description},null==n?void 0:n.subTitle)),e.createElement("div",{className:"linetableV3"},h&&e.createElement(mt,{carouselIndex:r,key:r,arrow:null==a?void 0:a.enableMobileArrows},((null===(v=null==n?void 0:n.productList)||void 0===v?void 0:v.length)&&(null==n?void 0:n.productList)||new Array((null===(_=null==n?void 0:n.productList)||void 0===_?void 0:_.length)||3).fill(1)).map(((t,d)=>{var c;return e.createElement("div",{id:`productCardV3${r}`,style:{textAlign:"center"}},e.createElement(xo,{content:t,offeringData:b,uniqueId:g,storyContent:n,metadata:o,tabIndex:l,cardsLength:null===(c=null==n?void 0:n.productList)||void 0===c?void 0:c.length,indexKey:d,constants:i,mainContent:a,linecheckSuccessCallBack:m,address:u,eligibleBundle:s}))})))))};exports.AssetPathPropConfig=b,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:d,modalTriggered:r,showPrice:a})=>{var c,u,s,m,p,v,_,h,g,f,b,x,y,w,C,E,k,T,S,N,L,I,V,O,D,A,B,M,R,F,z,$,G,W,j,U,H,q,K,J,Y,Z,Q,ee,ne,te,oe,le,re,ae,ce,ue,se,_e,he;const ge=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),fe={listLength:l,indexKey:o,arrowUpIcon:null===(_=null===(v=null===(p=null===(m=null==ge?void 0:ge.content)||void 0===m?void 0:m.body)||void 0===p?void 0:p[0])||void 0===v?void 0:v.arrowUp)||void 0===_?void 0:_.filename,arrowDownIcon:null===(b=null===(f=null===(g=null===(h=null==ge?void 0:ge.content)||void 0===h?void 0:h.body)||void 0===g?void 0:g[0])||void 0===f?void 0:f.arrowDown)||void 0===b?void 0:b.filename,arrowLeftRed:null===(C=null===(w=null===(y=null===(x=null==ge?void 0:ge.content)||void 0===x?void 0:x.body)||void 0===y?void 0:y[0])||void 0===w?void 0:w.arrowLeftRed)||void 0===C?void 0:C.filename},be=null!==(E=null==t?void 0:t.enableNewAddToCart)&&void 0!==E&&E,xe=e.useRef(null),ye=e.useRef(null),we=e.useMemo((()=>fe),[fe]),Ce=()=>{P("linetable-card-title",l),P("linetable-card-tooltiptxt",l),P("linetable-card-bottomConatiner",l)};return e.useEffect((()=>{setTimeout((()=>{Ce()}),100),null===window||void 0===window||window.addEventListener("resize",Ce)}),[n]),e.createElement(ie.Provider,{value:we},e.createElement("div",{className:"linetable-card-productTeaser"},e.createElement("div",{className:"linetable-card-productContainer "},ge.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===(T=null===(k=null==ge?void 0:ge.content)||void 0===k?void 0:k.body[0])||void 0===T?void 0:T.name),e.createElement("div",{className:"linetable-card-productTitle"},e.createElement("h3",null,null===(N=null===(S=null==ge?void 0:ge.content)||void 0===S?void 0:S.body[0])||void 0===N?void 0:N.displayName),(null===(V=null===(I=null===(L=null==ge?void 0:ge.content)||void 0===L?void 0:L.body[0])||void 0===I?void 0:I.prodImage)||void 0===V?void 0:V.filename)&&e.createElement("img",{src:null===(A=null===(D=null===(O=null==ge?void 0:ge.content)||void 0===O?void 0:O.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(X,{content:null===(M=null===(B=null==ge?void 0:ge.content)||void 0===B?void 0:B.body[0])||void 0===M?void 0:M.description}))),!(null==t?void 0:t.isPrepaidFlow)&&e.createElement("hr",null)),(null==ge?void 0:ge.content)&&(null===(F=null===(R=null==ge?void 0:ge.content)||void 0===R?void 0:R.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(X,{content:null===($=null===(z=null==ge?void 0:ge.content)||void 0===z?void 0:z.body[0])||void 0===$?void 0:$.introText})),e.createElement("hr",null))),null===(j=(null===(W=null===(G=null==ge?void 0:ge.content)||void 0===G?void 0:G.body[0])||void 0===W?void 0:W.entitlementConfig)||[])||void 0===j?void 0:j.map(((t,o)=>e.createElement(de,{content:t,product:n,key:o,indexKey:o,showEntitleValue:be,metadata:d,modalTriggered:r}))),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===(q=null===(H=null===(U=null==ge?void 0:ge.content)||void 0===U?void 0:U.body)||void 0===H?void 0:H[0])||void 0===q?void 0:q.productDetailIcon)||void 0===K?void 0:K.filename)&&e.createElement("img",{src:null===(Q=null===(Z=null===(Y=null===(J=null==ge?void 0:ge.content)||void 0===J?void 0:J.body)||void 0===Y?void 0:Y[0])||void 0===Z?void 0:Z.productDetailIcon)||void 0===Q?void 0:Q.filename,width:24,height:24}),e.createElement(pe,{content:null===(ne=null===(ee=null==ge?void 0:ge.content)||void 0===ee?void 0:ee.body)||void 0===ne?void 0:ne[0],updatedContent:t,modalTriggered:r,addToCart:i})),e.createElement("div",null,(null===(le=null===(oe=null===(te=null==ge?void 0:ge.content)||void 0===te?void 0:te.body)||void 0===oe?void 0:oe[0])||void 0===le?void 0:le.isEnablePrice)&&e.createElement(me,{content:null===(ae=null===(re=null==ge?void 0:ge.content)||void 0===re?void 0:re.body)||void 0===ae?void 0:ae[0],addToCart:i,variant:"productCard"})),e.createElement("div",null,!(null===(se=null===(ue=null===(ce=null==ge?void 0:ge.content)||void 0===ce?void 0:ce.body)||void 0===ue?void 0:ue[0])||void 0===se?void 0:se.isEnablePrice)&&!(null==t?void 0:t.staticPrice)&&e.createElement(ve,{content:null===(he=null===(_e=null==ge?void 0:ge.content)||void 0===_e?void 0:_e.body)||void 0===he?void 0:he[0],showPrice:a,addToCart:i}))))))},exports.CardEntitlement=de,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.LinecheckBasicPropConfig=ge,exports.LinecheckModal=ct,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:d,lineCheckCallBack:r,tabCheckCallBack:a,changeAddressClicked:u})=>{var s,m,p;const[v,_]=e.useState(),[h,g]=e.useState(),[b,x]=e.useState(0);let y="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),w=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),C="undefined"!=typeof window&&c.get("chAddressJson");const T=null===(s=null==f?void 0:f.getInstance())||void 0===s?void 0:s.getSBUrl(),P=T+E,S=T+k,N={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=P,t=N,Z(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"),w=y&&(null===JSON||void 0===JSON?void 0:JSON.parse(y)),C="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(ae,null,e.createElement("div",{className:`row justify-content-center ${st.tabblock}`},(null===(m=null==h?void 0:h.productContainer)||void 0===m?void 0:m.length)>1&&e.createElement("div",{className:` ${st.tabcontainer}`},((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement("div",{className:` ${st.tabs} ${b===t?st.tabcontentactive:st.tabcontentinactive}`,key:null==n?void 0:n.tabCaption},e.createElement("label",{className:` ${st.tabcontent} `},e.createElement("input",{type:"radio",checked:b===t,onChange:()=>{x(t),null==a||a(null==n?void 0:n.tabId),tn(ke,Ne,{click_text:null==n?void 0:n.tabCaption})}}),null==n?void 0:n.tabCaption))))))),e.createElement(ae,{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===(p=null==h?void 0:h.productContainer)||void 0===p?void 0:p.length)>0&&((null==h?void 0:h.productContainer)||[]).map(((n,t)=>e.createElement(i.Carousel.Item,{key:t},e.createElement(Qt,{content:Object.assign(Object.assign({},n),{pageType:n.pageType,dynamicProductOffer:!0,tabIndex:t,activeIndex:b,lineTableContent:h}),metadata:o,activeIndex:b,lineCheckCallBack:r,tabCheckCallBack:a,sbStaticConstants:v,address:C,eligibleBundle:w,setGenericErrorModalDetails:l,loginSuccess:d})))))))))},exports.ProductTeaser=({content:t,lineCheckCallBack:o,offerDataCallBack:l,productCallBack:i,tableSelectedTab:d})=>{var r,a,c,m,p,v,_,h;const[g,f]=e.useState([]),[b,w]=e.useState(""),[C,E]=e.useState(!1),k=null===(r=null==he?void 0:he.getInstance())||void 0===r?void 0:r.getBaseUrl(),T=V(),P=null===(a=(null==t?void 0:t.productTeaserSlides)||[])||void 0===a?void 0:a.map((e=>null==e?void 0:e.tabTitle)),N=e=>{var n,o,l,i;const d=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 r,a;r=Ne,a=d,window.dataLayer.push({event:ke,event_name:r,click_text:a})},L=[];return null===(c=(null==t?void 0:t.productTeaserSlides)||[])||void 0===c||c.forEach(((e,n)=>{var t,o;(null==e?void 0:e.productId)&&0===(null===(t=L.filter((n=>n.id===(null==e?void 0:e.productId))))||void 0===t?void 0:t.length)&&L.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)===F?z:$]}),(null==e?void 0:e.tvProductId)&&0===(null===(o=L.filter((n=>(null==n?void 0:n.id)===(null==e?void 0:e.tvProductId))))||void 0===o?void 0:o.length)&&L.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==g?void 0:g.length)&&(e=L,t=k,Z(void 0,void 0,void 0,(function*(){try{localStorage.removeItem("entertainment");const o={headers:{"x-correlation-id":u.v4(),"x-sunrise-channel":x}},l=t+y,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&&f(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,d,r,a,c,u,s,m,p,v,_,h;if(1==(null===(n=Object.keys(g))||void 0===n?void 0:n.length)&&"function"==typeof l&&e===G&&"function"==typeof i){const e=null===(d=null===(o=null==L?void 0:L[0])||void 0===o?void 0:o.promoIds)||void 0===d?void 0:d[0],n=null===(r=null==L?void 0:L[0])||void 0===r?void 0:r.id;l(g[n],e,b),i(n)}else if((null===(a=Object.keys(g))||void 0===a?void 0:a.length)>1&&"function"==typeof l&&e===G&&"function"==typeof i){const e=null!==(m=null===(s=null===(u=null===(c=null==L?void 0:L.filter((e=>(null==e?void 0:e.id)===b)))||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!==(_=null===(v=null===(p=null==L?void 0:L.filter((e=>(null==e?void 0:e.id)===b)))||void 0===p?void 0:p[0])||void 0===v?void 0:v.id)&&void 0!==_?_:"";l(g[b],e,b),i(n)}else e===F&&(null===(h=null==t?void 0:t.productTeaserSlides)||void 0===h||h.map((e=>{var n,t,o,i,d;const r=C?null==e?void 0:e.tvProductId:null==e?void 0:e.productId;if((null===(n=Object.keys(g))||void 0===n?void 0:n.length)>0&&"function"==typeof l){const e=null!==(d=null===(i=null===(o=null===(t=null==L?void 0:L.filter((e=>(null==e?void 0:e.id)===r)))||void 0===t?void 0:t[0])||void 0===o?void 0:o.promoIds)||void 0===i?void 0:i[0])&&void 0!==d?d:"";l(g[r],e)}})))}))}),[g,b,C]),e.useEffect((()=>{""!==b&&N(b)}),[b]),e.createElement("div",{className:"position-relative"},(null===(m=null==t?void 0:t.productTeaserSlides)||void 0===m?void 0:m.length)>0&&T&&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===(p=null==t?void 0:t.productTeaserSlides)||void 0===p?void 0:p.length),customDot:e.createElement((n=>{const{onClick:t,active:o,index:l}=n;return o&&w(P[l]),e.createElement("button",{className:o?_e.stageTeaserTabActive:_e.stageTeaserTab,onClick:()=>t()},P[l])}),null),dotListClass:_e.carousel_dot,itemClass:_e.carouselItem,ssr:!0,arrows:!1,containerClass:`${_e.carouselContainer} ${S(null===(_=null===(v=null==t?void 0:t.productTeaserSlides)||void 0===v?void 0:v[0])||void 0===_?void 0:_.gradientBackground)}`,sliderClass:_e.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&&T!==G&&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:_e.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:_e.rightArrow,onClick:n.next})))}),null),customTransition:"transform 1s ease",transitionDuration:500},null===(h=(null==t?void 0:t.productTeaserSlides)||[])||void 0===h?void 0:h.map(((n,l)=>e.createElement(ut,{content:t,slides:n,index:l,offeringData:g,lineCheckCallBack:o,setEnableToggle:E,tableSelectedTab:d})))))},exports.ProductTeaserPropConfig=he,exports.StaticLineTable=({content:n,tabCheckCallBack:t,setGenericErrorModalDetails:o,metadata:l,loginSuccess:d,changeAddressClicked:r,linecheckSuccessCallBack:a})=>{var u,s,m;const[p,v]=e.useState(0),_=null===(u=null==n?void 0:n.oneEcomConstants)||void 0===u?void 0:u[0];let h="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),g=h&&(null===JSON||void 0===JSON?void 0:JSON.parse(h)),f="undefined"!=typeof window&&c.get("chAddressJson");return e.useEffect((()=>{var e,o,l;const i=new URLSearchParams(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.search),d=null==i?void 0:i.get("tabOption");n&&null!==d&&((null==n?void 0:n.productContainer)||[]).map(((e,n)=>{(null==e?void 0:e.tabId)===d&&v(n)}));const r=null===(l=null===(o=null==n?void 0:n.productContainer)||void 0===o?void 0:o[p])||void 0===l?void 0:l.tabId;"function"==typeof t&&(null==t||t(r))}),[n]),e.useEffect((()=>{h="undefined"!=typeof window&&localStorage.getItem("lineCheckResponse"),g=h&&(null===JSON||void 0===JSON?void 0:JSON.parse(h)),f="undefined"!=typeof window&&c.get("chAddressJson")}),[r]),e.createElement("div",null,e.createElement("div",{id:"static-linetable"},(null==n?void 0:n.productContainer)&&e.createElement(e.Fragment,null,e.createElement(ae,null,e.createElement("div",{className:`row justify-content-center ${no.tabblock}`},(null===(s=null==n?void 0:n.productContainer)||void 0===s?void 0:s.length)>1&&e.createElement("div",{className:` ${no.tabcontainer}`},((null==n?void 0:n.productContainer)||[]).map(((n,o)=>e.createElement("div",{className:` ${no.tabs} ${p===o?no.tabcontentactive:no.tabcontentinactive}`,key:null==n?void 0:n.tabCaption},e.createElement("label",{className:` ${no.tabcontent} `},e.createElement("input",{type:"radio",checked:p===o,onChange:()=>{v(o),"function"==typeof t&&(null==t||t(null==n?void 0:n.tabId)),tn(ke,Ne,{click_text:null==n?void 0:n.tabCaption})}}),null==n?void 0:n.tabCaption))))))),e.createElement(ae,{resuablelineTable:!0},e.createElement("div",{className:"position-relative "},e.createElement(i.Carousel,{activeIndex:p,indicators:!1,controls:!1,interval:null,id:"pt-carousel",slide:!1},(null===(m=null==n?void 0:n.productContainer)||void 0===m?void 0:m.length)>0&&((null==n?void 0:n.productContainer)||[]).map(((t,r)=>e.createElement(i.Carousel.Item,{key:r},e.createElement(yo,{content:t,setGenericErrorModalDetails:o,metadata:l,tabIndex:r,constants:_,loginSuccess:d,activeIndex:p,mainContent:n,address:f,eligibleBundle:g,linecheckSuccessCallBack:a}))))))))))},exports.StickyProductAnchor=({content:n,offerData:t,lineCheckCallBack:o})=>{var l,i,d,r,a,u,s,m,p,v;const _=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),[w,C]=e.useState("noFalconStyle"),[E,k]=e.useState("noFalconStyle"),[T,P]=e.useState(!1),S=V(),L=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 I=0;I=(null==t?void 0:t.derivedPrice)?null===(r=null===(d=null==t?void 0:t.derivedPrice)||void 0===d?void 0:d[0])||void 0===r?void 0:r.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 O=e=>{const n=(null==e?void 0:e.id)&&document.getElementById(null==e?void 0:e.id);P(!1),n&&n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},D=()=>e.createElement("div",{className:eo.priceSection},"CHF"," ",N(I),e.createElement("span",{className:eo.priceDuration},null==L?void 0:L.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 d=document.getElementById("stickyAnchorContainer"),r=document.querySelectorAll(".sticky-header");if(null!=r){const e=(null==r?void 0:r.length)>0?"falconStyle":"noFalconStyle";C(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==d?void 0:d.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==L?void 0:L.productName)&&e.createElement(e.Fragment,null,h.createPortal(e.createElement(e.Fragment,null,e.createElement("div",{className:`${eo.stickyAnchorContainer} ${x?eo.offsetClass:eo.nonOffsetClass} ${eo[w]} ${eo[E]}`,id:"stickyAnchorContainer"},e.createElement(ae,null,e.createElement("div",{className:eo.productContainer},e.createElement("div",{className:eo.productTitle},(S===U||S===G)&&e.createElement("img",{onClick:()=>{P(!T)},className:`${eo.arrowIcon} ${T?eo.clockwise:eo.counterclockwise}`,src:null===(m=null==L?void 0:L.arrowUp)||void 0===m?void 0:m.filename}),e.createElement("div",null,null==L?void 0:L.productName,e.createElement("div",{className:eo.productPrice},I>0&&(S===U||S===G)&&e.createElement(e.Fragment,null,D())))),e.createElement("div",{className:eo.contentWrapper},S!==U&&S!==G&&e.createElement(e.Fragment,null,e.createElement("span",{className:eo.benefitsContainer},null===(p=(null==L?void 0:L.benefits)||[])||void 0===p?void 0:p.map((n=>e.createElement("div",{className:eo.benefits,onClick:()=>O(n)},null==n?void 0:n.title)))),I>0&&e.createElement(e.Fragment,null,D())),(null==L?void 0:L.buyBtn)&&e.createElement("button",{className:eo.buyNowButton,onClick:(null==L?void 0:L.productType)===G?()=>{(null==t?void 0:t.id)&&Ge(ye,[t],"",Ce),(null==t?void 0:t.id)&&te([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:"",_,G).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==L?void 0:L.productId,{path:"/"}),window.location.href=null!==(n=null==L?void 0:L.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))}:()=>{var e,n,l;const i=localStorage.getItem("lineCheckResponse"),d=i&&JSON.parse(i),r=c.get("one-commerce-linecheckcorrelationid"),a=c.get("chAddressJson"),u=null!==(e=null==L?void 0:L.productId)&&void 0!==e?e:"",s=a&&d&&(null==d?void 0:d.eligibleBundle.includes(u));d&&a&&r?s&&(0!==(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&Ge(ye,[t],L,Ce),0!==(null===(l=Object.keys(t))||void 0===l?void 0:l.length)&&te([t],"",(null==t?void 0:t.promoId)?null==t?void 0:t.promoId:z,_,F).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==L?void 0:L.checkoutUrl)&&void 0!==n?n:""})).catch((e=>{console.log(e)}))):"function"==typeof o&&o()}},null==L?void 0:L.buyBtn))))),(null==L?void 0:L.productName)&&T&&e.createElement("div",{className:`${eo.stickyAnchorContainer} ${x?eo.offsetClass2:eo.nonOffsetClass}`,id:"dropDownContainer"},e.createElement("span",{className:eo.benefitsContainer2},null===(v=(null==L?void 0:L.benefits)||[])||void 0===v?void 0:v.map((n=>e.createElement("div",{className:eo.subcontain,onClick:()=>O(n)},null==n?void 0:n.title)))))),A))):e.createElement(e.Fragment,null)};
9
9
  //# sourceMappingURL=index.js.map