@sunrise-upc/mobile-prod-card 8.0.3 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),n=require("@sunrise-upc/ajax-lib"),t=require("uuid"),o=require("react-bootstrap"),l=require("storyblok-rich-text-react-renderer-ts"),i=require("react-select"),a=require("react-bootstrap/Modal"),d=require("react-bootstrap/CloseButton"),r=require("react-bootstrap/Container"),c=require("react-bootstrap/Row"),s=require("react-bootstrap/Col"),u=require("js-cookie"),m=require("react-multi-carousel"),p=require("react-bootstrap/Form"),v=require("react-loading-skeleton"),_=require("react-dom");function h(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}h(".Button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n min-width: 32px;\r\n min-height: 32px;\r\n background-color: aliceblue;\r\n}\r\n\r\n.Button-primary {\r\n background-color: aqua; \r\n}\r\n.Button-secondary{\r\n background-color: burlywood;\r\n}\r\n.Button-error {\r\n background-color: red;\r\n}");class g{constructor(e){this.config={baseURL:"",cartURL:"",storyBlokURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.getSBUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.storyBlokURL)&&void 0!==n?n:""},this.config=e}}g.getInstance=()=>g.instance,g.create=e=>{g.instance=new g(e)};class f{constructor(e){this.config={assetPath:"",basicConfigUrl:""},this.getAssetPath=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.assetPath)&&void 0!==n?n:""},this.getBasicConfigUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.basicConfigUrl)&&void 0!==n?n:""},this.config=e}}f.getInstance=()=>f.instance,f.create=e=>{f.instance=new f(e)};const b={ADDR_SUGG:"address-suggestion/",CATELOG_MGMT:"catalogue-management/",CART_MGMT:"basket-management/",CUSTOMER:"customer-management/",STORYBLOK:"storyblok-management/",LOGINMETHOD:"login-method",LOGIN:"login",MTANLOGIN:"login-mtan",LOGINPOLICY:"my.policy",LOGIN_OTP:"login-otp",LOGIN_MFA:"login-mfa"},x={X_SUN_CHAL:"ESHOP",LINE_TABLEV2:"v2/offer",LINE_TABLEV3:"v3/offer",CREATE_CARTV2:"carts/v2",SUBSCRIPTION:"?subscriptionType=",VOUCHER_PROMOTIONS:"v1/voucher-promotions",HARDWARES:"v1/hardwares?filterSearchOption.id=",HARDWARE_DEVICES:"v1/hardwares?filterSearchOption.id=parent__true&filterSearchOption.id=residual__true&filterSearchOption.id=category__sellableMobilePostpaidDevices&priceRequired=false&filterSearchOption.id=",TV_SERVICE_OPTIONS_V2:"v2/service-optionByCategory?category=category__popUpTvOptions",CUSTOMER_EVENTS:"events"},y="rest/cms/singlestory",w="rest/cms/dsource_entries?datasource=one-ecommerce-constant-keys",S="rest/cms/stories";function C(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}function E(e,n,t,o){return new(t||(t=Promise))((function(l,i){function a(e){try{r(o.next(e))}catch(e){i(e)}}function d(e){try{r(o.throw(e))}catch(e){i(e)}}function r(e){var n;e.done?l(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,d)}r((o=o.apply(e,n||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;class k{constructor(e){this.config={baseURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getAPIServiceObject=()=>{if(!this.apiServiceObject){const e={options:void 0,props:{incCsrf:!0,baseUrl:this.getBaseUrl()}};this.apiServiceObject=n.ApiServiceV2.getApiServiceInstance(e)}return this.apiServiceObject},this.config=e}}k.getInstance=()=>k.instance,k.create=e=>{k.instance=new k(e)};const P="none",T="falconDescription",O="falconAccordionList",N="spacer",L="fixnet",D="defaultWirelineBundle",I="defaultMobilePostpaidBundle",M="vctype",V="voucher",B="one-ecommerce-hardwareSummary",A="CONTRACT",F="HARDWARE",R="mobile",j="desktop",z="large-desktop",U="tablet",W={EN:"English",FR:"Français",IT:"Italiano",DE:"Deutsch"},$="LOGIN_MFA",H="DEPRICATING_SMS",Y="DEPRICATING_EMAIL",G="DEPRICATED_EMAIL",q="OTP_NR_LIST",K="PW_CHANGED",X="OTP_SMS_OLD",Q="OTP_SMS_NEW",J="OTP_SMS",Z="OTP_EMAIL",ee="OTP_NR_NEW",ne="LOGIN_OTP",te="PW_RESET",oe="OTP_NR_ADD",le="OTP_NR_CONFIRM",ie="OTP_NR_CHANGE",ae="PW_FORGOT";var de;!function(e){e.EMAIL="Email_Id",e.CLI="CLI",e.CUSTOMER_NUMBER="SiteID",e.MSISDN="MSISDN"}(de||(de={}));const re=e=>e?e.replace(/\s+/g,""):"",ce=e=>(9===e.length&&/^[a|A]{0,1}[0-9]+$/.test(e)&&(e="0"+e),/^[a-zA-Z0-9.!#$%&’*+\=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(String(e).toLowerCase())||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())?de.EMAIL:/^07[5-9][0-9]{7}$/gi.test(e)||/^00417[6-9][0-9]{7}$/gi.test(e)||/^0417[6-9][0-9]{7}$/gi.test(e)||/^\+417[6-9][0-9]{7}$/gi.test(e)||/^004107[6-9][0-9]{7}$/gi.test(e)||/^04107[6-9][0-9]{7}$/gi.test(e)||/^\+4107[6-9][0-9]{7}$/gi.test(e)?de.MSISDN:/^0[1-9][0-9]{8}$/gi.test(e)||/^0041[1-9][0-9]{8}$/gi.test(e)||/^041[1-9][0-9]{8}$/gi.test(e)||/^\+41[1-9][0-9]{8}$/gi.test(e)||/^00410[1-9][0-9]{8}$/gi.test(e)||/^0410[1-9][0-9]{8}$/gi.test(e)||/^\+410[1-9][0-9]{8}$/gi.test(e)?de.CLI:e.toLowerCase().startsWith("a")&&/^A|a[0-9]{10}$/gi.test(e)||/^[0-9]{10}$/gi.test(e)?de.CUSTOMER_NUMBER:void 0),se=e=>{e=e.replace(/\s/g,"");const n=ce(e);if(n&&n!==de.EMAIL){if(e.length>10&&e.startsWith("0041")){const n=e.replace("0041","");return n.startsWith("0")?n:"0"+n}if(e.length>10&&e.startsWith("+41")){const n=e.replace("+41","");return n.startsWith("0")?n:"0"+n}if(e.length>10&&e.startsWith("041")){const n=e.replace("041","");return n.startsWith("0")?n:"0"+n}return 9!==e.length||/^[a-zA-Z]/.test(e)||e.startsWith("0")||e.startsWith("0041")||e.startsWith("+41")||e.match(/^(?:00|\+)[0-9]{1,2}/)?/^[a-zA-Z]/.test(e)||ce(e)!==de.CUSTOMER_NUMBER||e.startsWith("+")&&(10!==e.length||!e.startsWith("00"))?e:"A"+e:"0"+e}return e},ue=(e,n)=>{const t=n?(e=>/^0041[1-9][0-9]{8}$/gi.test(e)?[4,6,9,11]:/^00410[1-9][0-9]{8}$/gi.test(e)?[4,7,10,12]:/^0410[1-9][0-9]{8}$/gi.test(e)||/^\+410[1-9][0-9]{8}$/gi.test(e)?[3,6,9,11]:[3,5,8,10])(e?e.replace(/\s+/g,""):""):9===(null==e?void 0:e.length)?[2,5,7]:[3,6,8];return me(e," ",t)},me=(e,n,t)=>{if("undefined"===e||!e)return"";const o=e.split(n).join("");let l="";for(let e=0;e<o.length;e++)t.includes(e)&&(l+=n),l+=o[e];return l},pe=(e,n,o)=>E(void 0,void 0,void 0,(function*(){var l;const i=null==k?void 0:k.getInstance(),a=null==i?void 0:i.getBaseUrl();o.current&&o.current.abort(),o.current=new AbortController;const d=o.current.signal;if(a){const o=new URLSearchParams;e&&o.append("action",e),n&&(null===(l=[X,Q,J,Z])||void 0===l?void 0:l.includes(e))&&o.append("otp",n),n&&e===ee&&o.append("msisdn",n),n&&e===q&&o.append("recipient",n),n&&e===te&&o.append("password",n);try{const e=yield fetch(`${a}${null==b?void 0:b.LOGINPOLICY}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},body:o.toString(),signal:d}),n=yield e.json();if(n&&(null==n?void 0:n.status))return n;return n&&((null==n?void 0:n.errorcode)||(null==n?void 0:n.errorCode))}catch(e){return e}}})),ve=(e,n,o,l,i,a,d)=>E(void 0,void 0,void 0,(function*(){i.current&&i.current.abort(),i.current=new AbortController;const r=i.current.signal,c=null==k?void 0:k.getInstance(),s=null==c?void 0:c.getBaseUrl();if(s){const i=new URLSearchParams;e&&i.append("action",e),o&&i.append("username",o),a&&i.append("language",a),l&&i.append("password",l),d&&i.append("remember",d.toString());try{const e=yield fetch(`${s}${n}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},body:i.toString(),signal:r}),o=yield e.json();if(o&&(null==o?void 0:o.status))return o;return o&&((null==o?void 0:o.errorcode)||(null==o?void 0:o.errorCode))}catch(e){return e}}})),_e=e=>{switch(e){case"grey-600":return"falcon-grey-600";case"grey-500":return"falcon-grey-500";case"grey-100":return"falcon-grey-100";case"grey-400":return"falcon-grey-400";case"ice-white":return"falcon-ice-white";default:return""}},he=(e,n)=>{const t=[];let o,l,i=0;[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height="unset",t.push(null==l?void 0:l.clientHeight),i++)})),o=Math.max(...t),i=0,[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height=`${o}px`),i++}))},ge=e=>{switch(e){case"rubyglow-diagonal":return"falcon-gradient-rubyglow-diagonal";case"rubyglow-inverted-diagonal":return"falcon-gradient-rubyglow-inverted-diagonal";case"rubyglow-vertical":return"falcon-gradient-rubyglow-vertical";case"pinksky-diagonal":return"falcon-gradient-pinksky-diagonal";case"pinksky-inverted-diagonal":return"falcon-gradient-pinksky-inverted-diagonal";case"pinksky-vertical":return"falcon-gradient-pinksky-vertical";case"bluehaze-diagonal":return"falcon-gradient-bluehaze-diagonal";case"bluehaze-vertical":return"falcon-gradient-bluehaze-vertical";case"greencloud-diagonal":return"falcon-gradient-greencloud-diagonal";case"greencloud-inverted-diagonal":return"falcon-gradient-greencloud-inverted-diagonal";case"greencloud-vertical":return"falcon-gradient-greencloud-vertical";case"peachfog-diagonal":return"falcon-gradient-peachfog-diagonal";case"peachfog-inverted-diagonal":return"falcon-gradient-peachfog-inverted-diagonal";case"peachfog-vertical":return"falcon-gradient-peachfog-vertical";case"darkblue-haze":return"falcon-gradient-dark-blue-haze";case"skyfuel-diagonal":return"falcon-gradient-skyfuel-diagonal";case"skyfuel-vertical":return"falcon-gradient-skyfuel-vertical";case"skyfuel-inverted-diagonal":return"falcon-gradient-skyfuel-inverted-diagonal";default:return""}},fe=e=>{e=Number(e);let n=0;return n=new RegExp("^[0-9][^.]*$").test(e.toString())?e+".-":e.toFixed(2).replace(/\.00$/,""),n},be=(e,n,t)=>{let o=null;const l=new Date;o={value:n,expiry:t?l.getTime()+t:null},localStorage.setItem(e,JSON.stringify(o))},xe=e=>{const n="undefined"!=typeof window&&localStorage.getItem(e),t=new Date;if(!n)return null;let o={};try{if(o=JSON.parse(n),o.expiry&&t.getTime()>o.expiry)return ye(e),null}catch(e){return n}return null==o?void 0:o.value},ye=e=>{localStorage.removeItem(e)},we=()=>{const[n,t]=e.useState(0);return e.useEffect((()=>{const e=()=>{t(window.innerWidth)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),n>=1440?"large-desktop":n<1440&&n>=1024?"desktop":n<1024&&n>=768?"tablet":n<768&&n>0?"mobile":""},Se=()=>{const[n,t]=e.useState(!1),o=()=>{const e=window.matchMedia("(pointer:coarse)");t(e.matches)};return e.useEffect((()=>(o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o))),[]),n},Ce=(e,n)=>null==e?void 0:e.replace(/{\w+}/g,(e=>n[e.substring(1,e.length-1)]||e)),Ee=e=>{switch(e){case"success":return"/icons/checksuccess.svg";case"error":return"/icons/error.svg";case"info":case"infoWhite":return"/icons/info.svg";case"warning":return"/icons/alert.svg";case"tip":return"/icons/tip.svg";default:return""}},ke=e=>"undefined"!=typeof window?e=="/"+window.document.documentElement.getAttribute("lang")+"/"?void 0:e:"#",Pe=(e,n)=>{const[t]=["https://a.storyblok.com/f/113473/"],[o]=[e+"asset/"];return n?n.replace(t,`${o}`):n||""},Te=n=>{var t;const i=we(),a=Se(),d="mobile"===i||"tablet"===i||a,r=null===(t=null==f?void 0:f.getInstance())||void 0===t?void 0:t.getAssetPath();return e.createElement("div",null,l.render(n.content,{markResolvers:{link:(t,l)=>{const{href:i,target:a,linktype:c}=l;return"email"===c?e.createElement("a",{href:`mailto:${i}`,target:null===a||"_self"===a?"_top":"_blank"},t):n.isIFrame?e.createElement("a",{href:i,target:null===a||"_self"===a?"_top":"_blank"},t):e.createElement(e.Fragment,null,(null==n?void 0:n.linkAsTooltip)&&(null==n?void 0:n.toolTipText)?e.createElement(o.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:d?"click":"hover",overlay:(null==n?void 0:n.toolTipText)?e.createElement(o.Popover,{id:"popover-basic"},e.createElement(o.Popover.Body,null,null==n?void 0:n.toolTipText,d&&r&&e.createElement("img",{src:`${r}/icons/overlay-close.svg`,alt:"close",style:{float:"right"},width:24,height:24,onClick:()=>{var e;return null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.click()}}))):e.createElement(e.Fragment,null)},e.createElement("span",null,t)):e.createElement("a",{href:i,target:null===a?"":a},t))}}}))},Oe="addtocart",Ne="Sunrise",Le="Sticky Line Table",De="select_promotion",Ie="view_promotion",Me="download_product_details",Ve="gaEvent",Be="Stage Teaser",Ae="Line Table",Fe="Line Table - Product",Re="Line Table - Device",je="combine_with_device",ze="tab_click",Ue="All",We="promotion_popup",$e="click",He="Missing or Invalid Error",Ye="error",Ge="fixnet",qe="sunriseAuth",Ke="error",Xe="login",Qe="Remember me | Selected",Je="Remember me | not selected",Ze="unSuccess via password",en="LoginError",nn="loginUnSuccessful",tn="failed",on="Internet",ln="Mobile",an="POSTPAID",dn="INTERNET",rn=(e,n,t)=>{window.dataLayer.push(Object.assign({event:e,event_name:n},t))};let cn;const sn=(e,n,t)=>{window.dataLayer.push(Object.assign({event:e,event_name:n},t))},un=(e,n,t)=>{const o={eventAction:e,eventValue:n,timeStamp:Math.round(Date.now()/1e3),type:t};"dropDownClick/enter/leftClick"==t&&(t=$e);try{"view"==t?(cn=[],window.appEventData.push({event:t,eventInfo:o,component:cn})):window.appEventData.push({event:t,eventInfo:o})}catch(e){}},mn=(e,n,t,o,l,i)=>{const a={description:e,source:n,title:t,type:o,guid:l,errorID:i};"dropDownClick/enter/leftClick"==o&&(o=$e);try{const{guid:e,errorID:n}=a,t=C(a,["guid","errorID"]);"error"==o&&null==e&&null==n||"success"==o||"general"==o?window.appEventData.push({event:"message",message:t}):void 0!==e&&void 0!==n&&window.appEventData.push({event:"message",message:a})}catch(e){}},pn=(e,n,t,o,l)=>{const i={message_type:e,message_title:n,message_source:t,message_reason:o,message_guid:l};try{if(void 0!==l)window.dataLayer.push(Object.assign({event:"gaEvent",event_name:"error_event"},i));else{const l={message_type:e,message_title:n,message_source:t,message_reason:o};window.dataLayer.push(Object.assign({event:"gaEvent",event_name:"error_event"},l))}}catch(e){}},vn=e=>{var n,t,o,l,i,a,d,r,c,s,u;const m=null!==(t=(null==e?void 0:e.data)&&(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.code))&&void 0!==t?t:null==e?void 0:e.status,p=null!==(l=(null==e?void 0:e.data)&&(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.message))&&void 0!==l?l:null==e?void 0:e.statusText,v=null!==(a=(null==e?void 0:e.data)&&(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.id))&&void 0!==a?a:"",_=null!==(r=(null==e?void 0:e.data)&&(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.supplierCode))&&void 0!==r?r:"";let h="";try{h=null===(c=null==e?void 0:e.request)||void 0===c?void 0:c.responseURL,h=null===(u=null===(s=null==h?void 0:h.split("/"))||void 0===s?void 0:s.slice(5))||void 0===u?void 0:u.join("-")}catch(e){console.log("Error while formatting aPI",e)}const g={event:"gaEvent",event_name:"error_event",message_guid:m,message_reason:`MSA: ${p}`,message_source:`fixnet | ${h}`,message_title:"Api errror",message_type:"Error",message_apiinfo:`${v} | ${_}`};try{window.dataLayer.push(g)}catch(e){console.log("Error while inserting into datalayer",e)}},_n=(e,n,t,o,l,i)=>{try{if(n&&t&&o&&l&&i){const a={loginType:e,accountID:n,language:t,lastLoginDate:o,type:l,existingUser:i};window.appEventData.push({user:a})}else{const n={loginType:e};window.appEventData.push({user:n})}}catch(e){}};var hn="ReusableLogin-module_login-container__Ad6KQ",gn="ReusableLogin-module_icon-container__FGJQU",fn="ReusableLogin-module_back-text__MKh1u",bn="ReusableLogin-module_loginmodal__XhQt-",xn="ReusableLogin-module_inputSuccess__dK7Uz",yn="ReusableLogin-module_iconcontainer__QpoFB",wn="ReusableLogin-module_logintitle__bnFYd",Sn="ReusableLogin-module_loginmodalLabel__gakRq",Cn="ReusableLogin-module_confirmbtn__woa5L",En="ReusableLogin-module_horizontalline__ew-1o",kn="ReusableLogin-module_infotooltip__e3Al0",Pn="ReusableLogin-module_eyeicon__XTxJn",Tn="ReusableLogin-module_credentialerror__T9TK0",On="ReusableLogin-module_tempcode__rzrt5",Nn="ReusableLogin-module_warningicon__3HIvk",Ln="ReusableLogin-module_blockedcontent__OQn79",Dn="ReusableLogin-module_warningcontent__KzTOC",In="ReusableLogin-module_technicalerror__n3C0N",Mn="ReusableLogin-module_updatedetails__DHwPR",Vn="ReusableLogin-module_loginmodalrem__GKQDm",Bn="ReusableLogin-module_checkmark__XKH5n";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ReusableLogin-module_login-container__Ad6KQ {\n align-items: center;\n background-color: white;\n box-shadow: -1px 18px 25px 5px rgba(87, 84, 82, 0.4);\n display: flex;\n flex-direction: column;\n justify-content: center;\n max-width: 624px;\n padding: 24px 32px;\n position: absolute;\n width: 100%;\n border-radius: 4px;\n}\n@media (max-width: 767px) {\n .ReusableLogin-module_login-container__Ad6KQ {\n padding: 16px;\n }\n}\n\n.ReusableLogin-module_login-header__hzlgu {\n width: 100%;\n margin-bottom: 24px;\n display: flex;\n justify-content: space-between;\n}\n\n.ReusableLogin-module_login-header__hzlgu span {\n cursor: pointer;\n}\n\n.ReusableLogin-module_login-header__hzlgu img {\n cursor: pointer;\n}\n\n.ReusableLogin-module_icon-container__FGJQU {\n width: 24px;\n height: 24px;\n}\n\n.ReusableLogin-module_back-text__MKh1u {\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n color: #da291c;\n padding-left: 4px;\n}\n\n.ReusableLogin-module_channel-selection-title__0iFVE {\n font-weight: 700;\n line-height: 36px;\n font-size: 28px;\n text-align: center;\n margin-bottom: 24px;\n}\n\n.ReusableLogin-module_channel-selection-description__MFGOM {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n text-align: left;\n color: #333333;\n margin-bottom: 24px;\n}\n\n.ReusableLogin-module_btn-primary__9w79K {\n background: #d9415c;\n border: none;\n border-radius: 28px;\n color: #ffffff;\n font-weight: 700;\n overflow: visible;\n padding: 14px 24px;\n}\n.ReusableLogin-module_btn-primary__9w79K:disabled {\n background-color: #e6e3df;\n color: #b3aeaa;\n cursor: default;\n}\n@media (max-width: 767px) {\n .ReusableLogin-module_btn-primary__9w79K {\n padding: 10px 24px;\n }\n}\n\n.ReusableLogin-module_errorMsg__pDhM4 {\n color: #bf0760;\n display: flex;\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-bottom: 4px;\n}\n\n.ReusableLogin-module_resend__DQ50C {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n color: #3d3935;\n}\n\n.ReusableLogin-module_loginmodal__XhQt- {\n align-items: center;\n background-color: rgba(87, 84, 82, 0.4);\n font-size: 16px;\n line-height: 24px;\n color: #333333;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n padding: 16px;\n position: fixed;\n top: 0;\n transition: opacity 3s;\n width: 100%;\n z-index: 11;\n}\n.ReusableLogin-module_loginmodal__XhQt- input {\n background: #f7f6f5 !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input:focus {\n border: 2px solid #3D3935 !important;\n border-radius: 4px;\n}\n.ReusableLogin-module_loginmodal__XhQt- input:disabled {\n background: #e6e3df !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input.ReusableLogin-module_inputSuccess__dK7Uz {\n border-color: #8fd200 !important;\n box-shadow: 0 0 0 1px #8fd200 !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input::-webkit-outer-spin-button, .ReusableLogin-module_loginmodal__XhQt- input::-webkit-inner-spin-button {\n -webkit-appearance: none !important;\n margin: 0 !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input[type=number] {\n -moz-appearance: textfield !important;\n}\n\n.ReusableLogin-module_iconcontainer__QpoFB {\n bottom: 14px;\n position: absolute;\n right: 12.25px;\n}\n\n.ReusableLogin-module_logintitle__bnFYd {\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n text-align: center;\n width: 100%;\n}\n\n.ReusableLogin-module_formControl__hBGQP {\n border: none;\n padding: 14px 0;\n}\n.ReusableLogin-module_formControl__hBGQP::-ms-reveal {\n display: none;\n}\n.ReusableLogin-module_formControl__hBGQP:focus, .ReusableLogin-module_formControl__hBGQP:not(:placeholder-shown) {\n border-color: black;\n box-shadow: none;\n}\n\n.ReusableLogin-module_loginmodalLabel__gakRq {\n overflow: hidden;\n right: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ReusableLogin-module_confirmbtn__woa5L {\n height: 52px;\n width: 150px;\n}\n\n.ReusableLogin-module_horizontalline__ew-1o {\n border: 1px solid #e5e5e5;\n margin: 25px 0px;\n width: 70%;\n}\n\n.ReusableLogin-module_infotooltip__e3Al0 {\n font-size: 12px;\n line-height: 1.33;\n margin-top: 4px;\n}\n\n.ReusableLogin-module_eyeicon__XTxJn {\n display: inline-block;\n height: 24px;\n margin-left: 8px;\n width: 24px;\n}\n\n.ReusableLogin-module_credentialerror__T9TK0 {\n color: #bf0760;\n display: flex;\n font-size: 12px;\n font-weight: 400;\n height: 32px;\n line-height: 16px;\n margin-top: 4px;\n position: absolute;\n top: 52px;\n}\n\n.ReusableLogin-module_tempcode__rzrt5 {\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n padding: 16px 0 0;\n}\n\n.ReusableLogin-module_warningicon__3HIvk {\n content: "";\n display: inline-block;\n height: 16px;\n margin-right: 4px;\n margin-top: 2px;\n width: 16px;\n}\n\n.ReusableLogin-module_blockedcontent__OQn79 {\n align-items: flex-start;\n background: #f9e7f0;\n border: 1.5px solid #bf0760;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n height: 120px;\n justify-content: center;\n padding: 16px 16px 8px;\n}\n\n.ReusableLogin-module_warningcontent__KzTOC {\n align-items: flex-start;\n background: #FFFAE6;\n border: 1.5px solid #ffc805;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n height: 120px;\n justify-content: center;\n padding: 16px 16px 8px;\n}\n\n.ReusableLogin-module_technicalerror__n3C0N {\n height: 90px;\n}\n\n.ReusableLogin-module_updatedetails__DHwPR {\n color: #da291c;\n cursor: pointer;\n margin: 0 5px;\n text-decoration: underline;\n}\n\n.ReusableLogin-module_loginmodalrem__GKQDm {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n cursor: pointer;\n display: block;\n font-weight: 700;\n padding-left: 28px;\n position: relative;\n text-align: left;\n user-select: none;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm input {\n cursor: pointer;\n height: 0;\n opacity: 0;\n position: absolute;\n width: 0;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm input:checked ~ .ReusableLogin-module_checkmark__XKH5n {\n background-color: #da291c;\n border: 2px solid #da291c;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm input:checked ~ .ReusableLogin-module_checkmark__XKH5n:after {\n display: block;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm .ReusableLogin-module_checkmark__XKH5n {\n border: 2px solid #5f5955;\n border-radius: 4px;\n height: 20px;\n left: 0;\n position: absolute;\n top: 2px;\n width: 20px;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm .ReusableLogin-module_checkmark__XKH5n:after {\n -ms-transform: rotate(45deg);\n -webkit-transform: rotate(45deg);\n border: solid white;\n border-width: 0 3px 3px 0;\n height: 10px;\n left: 5px;\n top: 2px;\n transform: rotate(45deg);\n width: 5px;\n}');const An=({content:n,changeCurrentView:t,metadata:l,onSuccess:i,loginIcons:a,userID:d,password:r,isProdEnv:c=!0})=>{var s,u,m,p,v,_,h,g;const[f,x]=e.useState({userName:d,password:r}),[y,w]=e.useState(!1),[S,C]=e.useState(!1),[E,k]=e.useState(!1),[P,T]=e.useState(!1),[O,N]=e.useState(!1),[L,D]=e.useState(1),[I,M]=e.useState(""),[V,B]=e.useState(!1),[A,F]=e.useState(!1),[R,j]=e.useState(!1),[z,U]=e.useState(!1),[W,q]=e.useState(!1),[K,X]=e.useState(!1),Q=e.useRef(),Z=/^[0-9]+$/,ee=e=>{k(!1),B(!1),F(!1),j(!1);const n=e.target.value,t=e.target.id;"userName"===t&&(U(!1),q(!1),x(Object.assign(Object.assign({},f),{userName:n})),n&&n&&Z.test(n)?C(!0):C(!1)),"password"===t&&x(Object.assign(Object.assign({},f),{password:n}))},te=e=>{const t=/^(?:\+?\d+)$/,{userName:o,password:l}=f,i=(e=>{const n=se(e),t=ce(n);if(t&&t!==de.EMAIL&&t!==de.CUSTOMER_NUMBER){const n=e.match(/^((?:0|00|\+)[0-9]{1,2})(\d{3})(\d{2})(\d{2})(\d{2})(\d{1,2})?$/);return ue(e,!!(n&&n.length>0))}return e})(o.replace(/\s/g,""));if(x(Object.assign(Object.assign({},f),{userName:i})),o){const i=se(re(o));(e=>{const n=/^[a|A]{0,1}[0-9]+$/;return!(e.length<10||10!==e.length&&!n.test(e))&&!!n.test(e)&&(e.startsWith("a")||e.startsWith("A")?11===e.length:n.test(e)&&10===e.length)})(i)||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(i).toLowerCase())?e&&""!==l&&oe(i,l):(C(!1),t.test(i)?(q(!0),pn(Ye,He,Xe,null==n?void 0:n.invalidNumberMessage)):(U(!0),pn(Ye,He,Xe,null==n?void 0:n.invalidEmailMessage)))}},oe=(e,o)=>{w(!0);const a=ce(e)+" | Password";ve($,null==b?void 0:b.LOGIN_MFA,e,o,Q,null==l?void 0:l.lang,K).then((e=>{var o,l;"OK"===(null==e?void 0:e.status)?(localStorage.setItem("existingUser","true"),localStorage.setItem("userNameType",a),k(!1),i(),un("loginSuccessful","success via password",$e),sn(Ve,Xe,{result:"successful",message_title:"",login_type:a,selection:K?Qe:Je})):(null===(o=[H,Y,G,J])||void 0===o?void 0:o.includes(null==e?void 0:e.status))?(C(!1),t(null==f?void 0:f.userName,e)):"ERROR"===(null==e?void 0:e.status)?(F(!0),un(nn,Ze,$e),mn(null==n?void 0:n.technicalError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.technicalError)):"NOK"===(null==e?void 0:e.status)&&(null===(l=null==e?void 0:e.status)||void 0===l?void 0:l.segment)?(j(!0),C(!1),mn(null==n?void 0:n.invalidSegmentError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.invalidSegmentError),_n(a)):(k(!0),C(!1),le(),un(nn,Ze,$e),sn(Ve,Xe,{result:tn,message_title:null==n?void 0:n.userNameError,login_type:a,selection:K?Qe:Je}),mn(null==n?void 0:n.userNameError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.userNameError),_n(a))})).catch((e=>{k(!0),C(!1),console.log(e,"--\x3eerror"),un(nn,Ze,$e),mn(null==n?void 0:n.userNameError,Xe,en,Ke),sn(Ve,Xe,{result:tn,message_title:null==n?void 0:n.userNameError,login_type:a,selection:"Remember me | "+(K?"Selected":"not selected")}),pn(Ye,He,Xe,null==n?void 0:n.userNameError),_n(a)})).finally((()=>{w(!1)}))},le=()=>{var e,t,o,l,i;if((null==f?void 0:f.userName)===I?D(L+1):(D(1),M(null==f?void 0:f.userName)),L>=2&&L<4)B(!0),mn(null==n?void 0:n.invalidAttemptError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.invalidAttemptError);else if(4===L){B(!1),N(!0);const a=null===(i=null===(l=null===(o=null===(t=null===(e=null==n?void 0:n.loginBlockedError)||void 0===e?void 0:e.content)||void 0===t?void 0:t[0])||void 0===o?void 0:o.content)||void 0===l?void 0:l[0])||void 0===i?void 0:i.text;mn(a,Xe,en,Ke),pn(Ye,He,Xe,a)}},ie=e=>{"Enter"!==e.key||E||te(!0)};return e.createElement(e.Fragment,null,e.createElement("div",{className:wn},null==n?void 0:n.title),e.createElement("div",{className:"mt-4"}),O&&e.createElement(e.Fragment,null,e.createElement("div",{className:Ln},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(s=null==a?void 0:a.error)||void 0===s?void 0:s.filename,alt:"error",width:24,height:24})," "),e.createElement(Te,{content:null==n?void 0:n.loginBlockedError}))),e.createElement("div",{className:"mt-4"})),V&&e.createElement(e.Fragment,null,e.createElement("div",{className:Dn},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(u=null==a?void 0:a.warning)||void 0===u?void 0:u.filename,alt:"error",width:24,height:24})," "),e.createElement(Te,{content:null==n?void 0:n.invalidAttemptError}))),e.createElement("div",{className:"mt-4"})),(A||R)&&e.createElement(e.Fragment,null,e.createElement("div",{className:`${Dn} ${A&&In}`},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(m=null==a?void 0:a.warning)||void 0===m?void 0:m.filename,alt:"error",width:24,height:24})," "),A?e.createElement(Te,{content:null==n?void 0:n.technicalError}):e.createElement(Te,{content:null==n?void 0:n.invalidSegmentError}))),e.createElement("div",{className:"mt-4"})),e.createElement("div",{className:"form-floating w-100"},e.createElement("input",{type:"text",className:`form-control ${(E||z||W)&&"error-border"}\n `,id:"userName",placeholder:null==n?void 0:n.userNameLabel,value:null==f?void 0:f.userName,onChange:ee,autoComplete:"off",disabled:O,onBlur:()=>te(!1),onKeyDown:ie}),e.createElement("label",{className:`text-truncate w-100 ${Sn}`},null==n?void 0:n.userNameLabel),S&&e.createElement("p",{className:kn},null==n?void 0:n.infoText),(z||W)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(p=null==a?void 0:a.alertTriangle)||void 0===p?void 0:p.filename,alt:"alert",className:Nn}),z?null==n?void 0:n.invalidEmailMessage:null==n?void 0:n.invalidNumberMessage)),e.createElement("div",{className:"mt-4"}),e.createElement("div",{className:"form-floating w-100"},e.createElement("input",{type:P?"text":"password",className:`form-control ${E&&"error-border"} pe-5`,id:"password",placeholder:null==n?void 0:n.passwordLabel,value:null==f?void 0:f.password,onChange:ee,disabled:O,onKeyDown:ie}),e.createElement("label",{className:Sn},null==n?void 0:n.passwordLabel),e.createElement("div",{className:yn},e.createElement("span",{onClick:()=>!O&&T(!P)},P?e.createElement("img",{src:null===(v=null==a?void 0:a.eyeoff)||void 0===v?void 0:v.filename,alt:"eyeOff",className:Pn}):e.createElement("img",{src:null===(_=null==a?void 0:a.eye)||void 0===_?void 0:_.filename,alt:"eye",className:Pn}))),E&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(h=null==a?void 0:a.alertTriangle)||void 0===h?void 0:h.filename,alt:"alert",className:Nn}),null==n?void 0:n.userNameError)),e.createElement("div",{className:"w-100 d-flex justify-content-between mt-4"},!(null==n?void 0:n.hideRemMe)&&e.createElement("label",{className:`${Vn} me-auto`},e.createElement("input",{type:"checkbox",id:"remmberme",onChange:()=>X(!K),checked:K}),null==n?void 0:n.remLabel,e.createElement("span",{className:Bn},e.createElement("img",{src:null===(g=null==a?void 0:a.whiteTickmark)||void 0===g?void 0:g.filename,alt:"checkmark",role:"button",style:{marginBottom:"12px",marginLeft:"2px"}}))),(null==n?void 0:n.forgotPwdLink)&&e.createElement("a",{className:"text-decoration-none fw-bold ms-auto",onClick:()=>{Q.current&&Q.current.abort(),t(null==f?void 0:f.userName,{status:ae})}},null==n?void 0:n.forgotPwdLink)),e.createElement("div",null,e.createElement("button",{className:`primarybutton ${Cn} mt-4`,onClick:()=>te(!0),disabled:E||!f.password||!f.userName||O||z||W||y},y?e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}):null==n?void 0:n.nextButton)),!c&&e.createElement(e.Fragment,null,e.createElement("div",{className:En}),e.createElement("a",{className:`mb-2 text-decoration-none ${On}`,onClick:()=>{Q.current&&Q.current.abort(),t(null==f?void 0:f.userName,{status:ne}),un(Xe,null==n?void 0:n.otpLink,$e),sn(Ve,"get_temporary_code",{click_text:null==n?void 0:n.otpLink})}},null==n?void 0:n.otpLink)))};var Fn="ButtonStyles-module_Container__kud4M",Rn="ButtonStyles-module_changeButton__iri53",jn="ButtonStyles-module_continueButton__ymNDm",zn="ButtonStyles-module_inputField__4EF6W",Un="ButtonStyles-module_outerBar__g1Iol",Wn="ButtonStyles-module_innerBar__2kWNK",$n="ButtonStyles-module_good__RWgrf",Hn="ButtonStyles-module_great__1RIOR",Yn="ButtonStyles-module_valid__RF6MZ",Gn="ButtonStyles-module_resendcontent__luDgO";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ButtonStyles-module_Container__kud4M {\n color: #3D3935;\n}\n\n.ButtonStyles-module_changeButton__iri53 {\n border: 0;\n color: #da291c;\n background: none;\n font-weight: 700;\n}\n.ButtonStyles-module_changeButton__iri53:disabled {\n color: #b3aeaa;\n}\n\n.ButtonStyles-module_continueButton__ymNDm {\n background-color: #da291c;\n font-weight: 700;\n color: #ffffff;\n border-radius: 28px;\n padding: 14px 24px;\n border: 0;\n}\n.ButtonStyles-module_continueButton__ymNDm:disabled {\n background-color: #e6e3df;\n color: #b3aeaa;\n}\n\n.ButtonStyles-module_inputField__4EF6W {\n margin-top: 24px;\n}\n.ButtonStyles-module_inputField__4EF6W input {\n border-radius: 4px;\n min-width: 100%;\n padding: 14px 12px;\n border: 1px solid #b3aeaa;\n}\n.ButtonStyles-module_inputField__4EF6W span {\n font-size: 12px;\n line-height: 16px;\n}\n\n.ButtonStyles-module_outerBar__g1Iol {\n width: 100%;\n height: 4px;\n border-radius: 4px;\n background: #e6e3df;\n margin-bottom: 24px;\n}\n.ButtonStyles-module_outerBar__g1Iol .ButtonStyles-module_innerBar__2kWNK {\n height: 100%;\n border-radius: 4px;\n}\n.ButtonStyles-module_outerBar__g1Iol .ButtonStyles-module_innerBar__2kWNK.ButtonStyles-module_good__RWgrf {\n background: #ffc805;\n}\n.ButtonStyles-module_outerBar__g1Iol .ButtonStyles-module_innerBar__2kWNK.ButtonStyles-module_great__1RIOR {\n background: #8fd200;\n}\n\n.ButtonStyles-module_valid__RF6MZ {\n color: #8fd200;\n}\n\n.ButtonStyles-module_resendcontent__luDgO {\n align-items: flex-start;\n background: #f4fbe6;\n border: 1.5px solid #8fd200;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n height: 90px;\n justify-content: center;\n padding: 16px;\n}");var qn="ReactInputSelect-module_selectcontainer__3qYm1",Kn="ReactInputSelect-module_downArrowIcon__0aNJw",Xn="ReactInputSelect-module_transform180__LZhJD",Qn="ReactInputSelect-module_errormessage__b-fWF";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ReactInputSelect-module_selectcontainer__3qYm1 {\n position: relative;\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_downArrowIcon__0aNJw {\n display: inline-block;\n height: 24px;\n width: 24px;\n background-size: cover;\n background-position: center;\n margin-left: 8px;\n transform: rotate(0);\n transition: transform 0.3s;\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_downArrowIcon__0aNJw.ReactInputSelect-module_transform180__LZhJD {\n transform: rotate(180deg);\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_downArrowIcon__0aNJw:hover {\n cursor: pointer;\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_errormessage__b-fWF {\n color: #c60047;\n font-size: 12px;\n line-height: 16px;\n margin-top: 4px;\n}");const Jn={},Zn=e.forwardRef((({name:n,options:t,content:o,disableValues:l=[],defaultValue:a=Jn,optionsValue:d="value",optionsLabel:r="label",disabled:c=!1,autoSelectValueFromOptions:s=!0,onChange:u,onSaveClicked:m=!1,menuPlacement:p,loginIcons:v=""},_)=>{var h;const[g,f]=e.useState(!1),[b,x]=e.useState(a),[y,w]=e.useState(!1),[S,C]=e.useState(!1),E=e=>{x(e),"function"==typeof u&&u(e?{name:n,value:e}:{name:n,value:{[d]:"",[r]:""}})};e.useEffect((()=>{for(let e=0;e<t.length;e++)if(t[e][d]===(null==b?void 0:b[d])){E({[d]:t[e][d],[r]:t[e][r]});break}}),[null===(h=t[0])||void 0===h?void 0:h[r]]),e.useEffect((()=>{a&&s&&x(a)}),[a]);Boolean(b)==S&&C(!S);return e.createElement("div",{className:qn},e.createElement(i,{className:`react-select-container ${S&&"errorborder"}`,name:n,instanceId:"React-select",classNamePrefix:"react-select",components:{DropdownIndicator:n=>{var t;return e.createElement(i.components.DropdownIndicator,Object.assign({},n),e.createElement("span",{className:`${Kn} ${n.selectProps.menuIsOpen?Xn:""}`},e.createElement("img",{src:null===(t=null==v?void 0:v.chevronDown)||void 0===t?void 0:t.filename})))},IndicatorSeparator:null},value:b,id:n,onChange:E,isClearable:!0,placeholder:"",menuPlacement:p,onFocus:()=>w(!0),onBlur:()=>{!g&&f(!0),w(!1)},backspaceRemovesValue:!0,options:t,ref:_,getOptionLabel:e=>e[r],getOptionValue:e=>e[d],filterOption:i.createFilter({ignoreCase:!0,ignoreAccents:!0,trim:!0,matchFrom:"start"}),isOptionDisabled:e=>l.includes(e[d]),isDisabled:c,isSearchable:!1}),!c&&(null==o?void 0:o.placeholder)&&e.createElement("label",{className:`${(b&&b[d]&&b[r]||y)&&"activeLabel"} selectcomplabel`},null==o?void 0:o.placeholder),S&&g&&""===(null==a?void 0:a.id)&&(null==o?void 0:o.errorMessage)&&e.createElement("span",{className:Qn},null==o?void 0:o.errorMessage))})),et=({useCase:n,mainContent:t,changeCurrentView:l,response:i,resetPwdSuccessContent:a,loginIcons:d,errorContent:r})=>{var c,s,u,m;const[p,v]=e.useState({}),[_,h]=e.useState([]),[g,f]=e.useState({}),[b,x]=e.useState(""),[y,w]=e.useState(""),[S,C]=e.useState(!1),[E,k]=e.useState(!1),P=e.useRef(),T=e=>{S&&P.current&&P.current.abort(),C(!0),k(!1),n===K?(l("",{status:$}),C(!1)):e&&pe(e,null==g?void 0:g.value,P).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):k(!0),C(!1)})).catch((e=>{C(!1),k(!0),console.log(e)}))};return e.useEffect((()=>{var e,o,l,d,r,c,s,u,m;t&&(n===H&&(null===(e=null==t?void 0:t.depSmsSection)||void 0===e?void 0:e.length)>0&&v(null===(o=null==t?void 0:t.depSmsSection)||void 0===o?void 0:o[0]),n===Y&&((null==i?void 0:i.msisdn)&&(null===(l=null==t?void 0:t.depEmailSection)||void 0===l?void 0:l.length)>0?v(null===(d=null==t?void 0:t.depEmailSection)||void 0===d?void 0:d[0]):v(null===(r=null==t?void 0:t.depEmailSectionV2)||void 0===r?void 0:r[0])),n===G&&(null===(c=null==t?void 0:t.emailDeprecatedSection)||void 0===c?void 0:c.length)>0&&v(null===(s=null==t?void 0:t.emailDeprecatedSection)||void 0===s?void 0:s[0]),n===q&&(null===(u=null==t?void 0:t.otpNumListSection)||void 0===u?void 0:u.length)>0&&v(null===(m=null==t?void 0:t.otpNumListSection)||void 0===m?void 0:m[0]),n===K&&a&&v(a))}),[n,t,i]),e.useEffect((()=>{var e,t;if(n)switch(n){case H:w(ie),x(le);break;case Y:(null==i?void 0:i.msisdn)?(w(ie),x(le)):(w(oe),x("OTP_CONTINUE"));break;case G:x(oe);break;case q:w(oe),x(q);break;case K:x(K)}if(i&&(null==i?void 0:i.recipients)&&(null===(e=null==Object?void 0:Object.keys(null==i?void 0:i.recipients))||void 0===e?void 0:e.length)>0&&n===q){const e=null===(t=(null==Object?void 0:Object.values(null==i?void 0:i.recipients))||[])||void 0===t?void 0:t.map(((e,n)=>{var t;return{value:`${n+1}`,name:0===n?`${null!=e?e:""} ${null!==(t=null==p?void 0:p.currentLbl)&&void 0!==t?t:""}`:null!=e?e:""}}));(null==e?void 0:e.length)>0&&(h(e),f(null==e?void 0:e[0]))}}),[i,p]),e.createElement("div",null,n===K&&e.createElement("img",{src:null!==(s=null===(c=null==d?void 0:d.checkmark)||void 0===c?void 0:c.filename)&&void 0!==s?s:"",alt:"chekcmark",className:"mb-4 d-flex mx-auto",width:72,height:72}),(null==p?void 0:p.title)&&e.createElement("h2",{className:"text-center my-4 p-0"},null==p?void 0:p.title),(null==p?void 0:p.description)&&e.createElement("div",{className:""+(n===K?"text-center":"")},e.createElement(Te,{content:JSON.parse(Ce(JSON.stringify(null==p?void 0:p.description),n===Y?(null==i?void 0:i.msisdn)?[null==i?void 0:i.recipient,null==i?void 0:i.msisdn]:[null==i?void 0:i.date]:n===H?[null==i?void 0:i.recipient]:[]))})),(null==_?void 0:_.length)>0&&n===q&&e.createElement("div",{className:"my-4"},e.createElement(Zn,{name:"phone number",content:p,options:_,optionsValue:"value",defaultValue:g,optionsLabel:"name",autoSelectValueFromOptions:!1,onChange:e=>{var n,t,o,l;f({value:null!==(t=null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.value)&&void 0!==t?t:"",name:null!==(l=null===(o=null==e?void 0:e.value)||void 0===o?void 0:o.name)&&void 0!==l?l:""})},disableValues:["empty"],loginIcons:d}),E&&(null==r?void 0:r.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==d?void 0:d.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==r?void 0:r.technicalError)),((null==p?void 0:p.primaryBtnLbl)||(null==p?void 0:p.secondaryBtnLbl))&&e.createElement("div",{className:"mt-4"},S&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),E&&(null==r?void 0:r.technicalError)&&e.createElement("p",{className:`${Tn} mb-2 mt-0 position-static h-auto justify-content-center`},e.createElement("img",{src:null===(m=null==d?void 0:d.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==r?void 0:r.technicalError),e.createElement("div",{className:"d-flex justify-content-center gap-4"},(null==p?void 0:p.secondaryBtnLbl)&&n!==G&&e.createElement("button",{className:Rn,onClick:()=>T(y),disabled:S},null==p?void 0:p.secondaryBtnLbl),(null==p?void 0:p.primaryBtnLbl)&&e.createElement("button",{className:jn,onClick:()=>T(b),disabled:S},null==p?void 0:p.primaryBtnLbl))))},nt=({useCase:n,content:t,changeCurrentView:l,metadata:i,userID:a,loginIcons:d,response:r,errorContent:c})=>{var s,u,m;const p=/^[0-9]+$/,[v,_]=e.useState(!0),[h,g]=e.useState(null!=a?a:""),[f,x]=e.useState(!1),[y,w]=e.useState(!1),[S,C]=e.useState(!1),E=e.useRef(),k=e=>{g(e),w(!1),p.test(e)&&(null==e?void 0:e.length)>=10?_(!1):_(!0)},P=()=>{if(f&&E.current&&E.current.abort(),x(!0),C(!1),w(!1),n===ee&&pe(n,h,E).then((e=>{x(!1),(null==e?void 0:e.status)?"MSISDN_INVALID"===(null==e?void 0:e.error)||"NOK"===(null==e?void 0:e.status)?w(!0):"ERROR"!==(null==e?void 0:e.status)?l("",e):C(!0):C(!0)})).catch((e=>{x(!1),C(!0),console.log(e)})),n===ne||n===ae){const e=se(re(h));ve(n,null==b?void 0:b.LOGIN_OTP,e,"",E,null==i?void 0:i.lang).then((e=>{x(!1),(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):C(!0)})).catch((e=>{x(!1),C(!0),console.log(e)}))}};return e.useEffect((()=>{a&&k(a)}),[a]),e.useEffect((()=>{n===ee&&(null==r?void 0:r.msisdn)&&!isNaN(Number(null==r?void 0:r.msisdn))&&k(null==r?void 0:r.msisdn)}),[r,n]),e.createElement("div",{className:Fn},(null==t?void 0:t.title)&&e.createElement("h2",{className:"text-center mb-4 mt-4"},null==t?void 0:t.title),(null==t?void 0:t.descriptionV2)&&e.createElement(Te,{content:null==t?void 0:t.descriptionV2}),e.createElement("div",{className:`form-floating w-100 ${zn}`},e.createElement("input",{type:"number",id:n,placeholder:null!==(s=null==t?void 0:t.userNameLabel)&&void 0!==s?s:"",value:h,className:`form-control ${(S||y)&&"error-border mb-4"}`,onChange:e=>{var n;return k(null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.value)},onKeyDown:e=>{"Enter"!==(null==e?void 0:e.key)||v||f||P()}}),(null==t?void 0:t.userNameLabel)&&e.createElement("label",{className:`text-truncate w-100 ${Sn}`},null==t?void 0:t.userNameLabel),y&&(null==c?void 0:c.invalidNumberMessage)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==d?void 0:d.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==c?void 0:c.invalidNumberMessage),S&&(null==c?void 0:c.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(m=null==d?void 0:d.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==c?void 0:c.technicalError),(null==t?void 0:t.infoText)&&e.createElement("span",null,null==t?void 0:t.infoText)),(null==t?void 0:t.buttonLabel)&&e.createElement("div",{className:"text-center mt-4"},f&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),e.createElement("button",{className:jn,disabled:v||f,onClick:P},null==t?void 0:t.buttonLabel)))},tt=({useCase:n,mainContent:t,changeCurrentView:l,response:i,loginIcons:a,onSuccess:d,errorContent:r})=>{var c,s,u,m,p,v;const _=/^[0-9]+$/,[h,g]=e.useState(!0),[f,b]=e.useState(0),[x,y]=e.useState(!1),[w,S]=e.useState(""),[C,E]=e.useState({}),[k,P]=e.useState(!1),[T,O]=e.useState(!1),[N,L]=e.useState(!1),[D,I]=e.useState(!1),M=e.useRef();e.useEffect((()=>{var e,o,l,i,a,d,r,c;t&&(n===X&&(null===(e=null==t?void 0:t.smsOldSection)||void 0===e?void 0:e.length)>0&&E(null===(o=null==t?void 0:t.smsOldSection)||void 0===o?void 0:o[0]),n===Q&&(null===(l=null==t?void 0:t.smsNewSection)||void 0===l?void 0:l.length)>0&&E(null===(i=null==t?void 0:t.smsNewSection)||void 0===i?void 0:i[0]),n===J&&(null===(a=null==t?void 0:t.otpSmsSection)||void 0===a?void 0:a.length)>0&&E(null===(d=null==t?void 0:t.otpSmsSection)||void 0===d?void 0:d[0]),n===Z&&(null===(r=null==t?void 0:t.otpEmailSection)||void 0===r?void 0:r.length)>0&&E(null===(c=null==t?void 0:t.otpEmailSection)||void 0===c?void 0:c[0]))}),[t]),e.useEffect((()=>{if(x){let e=60;b(e);const n=setInterval((()=>{b(--e),e<=0&&(clearInterval(n),y(!1))}),1e3);return()=>{y(!1),clearTimeout(n)}}}),[x]),e.useEffect((()=>{y(!0)}),[]);const V=()=>{k&&M.current&&M.current.abort(),I(!1),P(!0),L(!1),O(!1),pe(n,w,M).then((e=>{(null==e?void 0:e.status)?"OK"===(null==e?void 0:e.status)?(localStorage.setItem("existingUser","true"),d()):"OTP_WRONG"===(null==e?void 0:e.error)?O(!0):"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):L(!0):L(!0),P(!1)})).catch((e=>{P(!1),L(!0),console.log(e)}))};return e.createElement("div",{className:Fn},(null==C?void 0:C.title)&&e.createElement("h2",{className:"text-center mb-4 mt-4"},null==C?void 0:C.title),D&&(null==C?void 0:C.resendInfo)&&e.createElement(e.Fragment,null,e.createElement("div",{className:Gn},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(c=null==a?void 0:a.checkmark)||void 0===c?void 0:c.filename,alt:"error",width:24,height:24})," "),(null==C?void 0:C.resendInfo)&&e.createElement(Te,{content:null==C?void 0:C.resendInfo}))),e.createElement("div",{className:"mt-4"})),e.createElement("p",null,(null==C?void 0:C.descriptionFirst)&&e.createElement("div",null,e.createElement(Te,{content:JSON.parse(Ce(JSON.stringify(null==C?void 0:C.descriptionFirst),[null!==(s=null==i?void 0:i.recipient)&&void 0!==s?s:" "]))})),e.createElement("div",null,(null==C?void 0:C.descSecStart)&&e.createElement(e.Fragment,null,e.createElement("br",null),null==C?void 0:C.descSecStart),(null==C?void 0:C.descSecSplitLink)&&e.createElement("span",{className:Mn,onClick:()=>{M.current&&M.current.abort(),l("",{status:$})}},null==C?void 0:C.descSecSplitLink),(null==C?void 0:C.descSecEnd)&&e.createElement(e.Fragment,null,null==C?void 0:C.descSecEnd))),e.createElement("div",{className:`form-floating w-100 ${zn}`},e.createElement("input",{type:"number",id:n,placeholder:"Temporary code",value:w,className:`form-control ${(N||T)&&"error-border mb-4"}`,onChange:e=>{var n,t,o,l;S(null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.value),O(!1),I(!1),_.test(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&6===(null===(l=null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.value)||void 0===l?void 0:l.length)?g(!1):g(!0)},onKeyDown:e=>{"Enter"!==(null==e?void 0:e.key)||h||k||V()},maxLength:6}),(null==C?void 0:C.otpLabel)&&e.createElement("label",{className:`text-truncate w-100 ${Sn}`},null==C?void 0:C.otpLabel),T&&(null==r?void 0:r.tempCodeError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==a?void 0:a.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==r?void 0:r.tempCodeError),N&&(null==r?void 0:r.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(m=null==a?void 0:a.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==r?void 0:r.technicalError)),0===f?e.createElement("div",{className:"text-center fw-bold mt-2",style:{color:"#da291c"},onClick:()=>{M.current&&M.current.abort(),I(!0),y(!0),pe("OTP_RESEND","",M).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):L(!0)}))}},null!==(p=null==C?void 0:C.resendCodeLabel)&&void 0!==p?p:""):e.createElement("div",{className:"text-center fw-bold mt-2"},null!==(v=Ce(null==C?void 0:C.resendTimeLabel,[f]))&&void 0!==v?v:""),(null==C?void 0:C.buttonLabel)&&e.createElement("div",{className:"text-center mt-4"},k&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),e.createElement("button",{className:jn,disabled:h||k,onClick:V},null==C?void 0:C.buttonLabel)))},ot=({content:n,useCase:t,loginIcons:l,changeCurrentView:i,errorContent:a})=>{var d,r,c,s,u,m,p;const[v,_]=e.useState(""),[h,g]=e.useState(""),[f,b]=e.useState(!1),[x,y]=e.useState(!1),[w,S]=e.useState(!1),[C,E]=e.useState([]),[k,P]=e.useState(0),[T,O]=e.useState(!1),[N,L]=e.useState({showPswd:!1,showConfirmPswd:!1}),D=0===k?0:k/(null==C?void 0:C.length)*100,I=e.useRef(),M=e=>{var n,t,o,l;const i=null!==(t=null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.value)&&void 0!==t?t:"",a=null!==(l=null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.id)&&void 0!==l?l:"";"password"===a&&_(i),"confirmPassword"===a&&g(i)},V=()=>{T&&I.current&&I.current.abort(),O(!0),S(!1),pe(t,v,I).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?i("",e):S(!0),O(!1)})).catch((e=>{O(!1),S(!0),console.log(e)}))},B=e=>{"Enter"!==(null==e?void 0:e.key)||v!==h||""===v||""===h||T||k!==(null==C?void 0:C.length)||V()};return e.useEffect((()=>{var e,t;if((null===(e=null==n?void 0:n.pwdReqList)||void 0===e?void 0:e.length)>0){let e=0;const o=null===(t=(null==n?void 0:n.pwdReqList)||[])||void 0===t?void 0:t.map((n=>{var t,o;const l=null===(t=new RegExp(null==n?void 0:n.key))||void 0===t?void 0:t.test(v);return l&&(e+=1),{value:null!==(o=null==n?void 0:n.value)&&void 0!==o?o:"",isValid:l}}));P(e),E(o)}}),[v,n]),e.useEffect((()=>{y(""!==v&&""!==h&&v===h&&100===D),b(""!==h&&v!==h),w&&S(!1)}),[v,h]),e.createElement("div",null,n&&e.createElement(e.Fragment,null,(null==n?void 0:n.title)&&e.createElement("h2",{className:"p-0 my-4 text-center"},null==n?void 0:n.title),(null==n?void 0:n.description)&&e.createElement(Te,{content:null==n?void 0:n.description}),e.createElement("div",{className:"form-floating w-100 mt-4"},e.createElement("input",{type:(null==N?void 0:N.showPswd)?"text":"password",className:`${x&&xn} form-control ${f&&"error-border"} pe-5`,id:"password",placeholder:null==n?void 0:n.newPwdPlaceholder,value:v,onChange:M,onKeyDown:B}),e.createElement("label",{className:Sn},null==n?void 0:n.newPwdPlaceholder),e.createElement("div",{className:yn},e.createElement("span",{onClick:()=>L(Object.assign(Object.assign({},N),{showPswd:!(null==N?void 0:N.showPswd)}))},(null==N?void 0:N.showPswd)?e.createElement("img",{src:null===(d=null==l?void 0:l.eyeoff)||void 0===d?void 0:d.filename,alt:"eyeOff",className:Pn}):e.createElement("img",{src:null===(r=null==l?void 0:l.eye)||void 0===r?void 0:r.filename,alt:"eye",className:Pn})))),e.createElement("div",{className:`form-floating w-100 mt-4 ${f&&"mb-4"}`},e.createElement("input",{type:(null==N?void 0:N.showConfirmPswd)?"text":"password",className:`${x&&xn} form-control ${f&&"error-border"} pe-5`,id:"confirmPassword",placeholder:null==n?void 0:n.cnfrmPwdPlaceholder,value:h,onChange:M,onKeyDown:B}),e.createElement("label",{className:Sn},null==n?void 0:n.cnfrmPwdPlaceholder),e.createElement("div",{className:yn},e.createElement("span",{onClick:()=>L(Object.assign(Object.assign({},N),{showConfirmPswd:!(null==N?void 0:N.showConfirmPswd)}))},(null==N?void 0:N.showConfirmPswd)?e.createElement("img",{src:null===(c=null==l?void 0:l.eyeoff)||void 0===c?void 0:c.filename,alt:"eyeOff",className:Pn}):e.createElement("img",{src:null===(s=null==l?void 0:l.eye)||void 0===s?void 0:s.filename,alt:"eye",className:Pn}))),f&&(null==a?void 0:a.resetPwdError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==l?void 0:l.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==a?void 0:a.resetPwdError),w&&(null==a?void 0:a.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(m=null==l?void 0:l.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==a?void 0:a.technicalError)),e.createElement("div",null,(null==n?void 0:n.pwdStrngthLbl)&&e.createElement("div",{className:"mt-4 mb-1"},null==n?void 0:n.pwdStrngthLbl),e.createElement("div",{className:Un},e.createElement("div",{className:`${Wn} ${k===(null==C?void 0:C.length)?Hn:$n}`,style:{width:`${D}%`}})),(null==C?void 0:C.length)>0&&(null===(p=C||[])||void 0===p?void 0:p.map((n=>{var t,o;return e.createElement("div",{className:`${(null==n?void 0:n.isValid)?Yn:""} d-flex align-items-center`},e.createElement("img",{src:(null==n?void 0:n.isValid)?null===(t=null==l?void 0:l.greenTickmark)||void 0===t?void 0:t.filename:null===(o=null==l?void 0:l.greyTickmark)||void 0===o?void 0:o.filename,alt:"tick",width:16,height:16,className:"me-1"}),null==n?void 0:n.value)})))),(null==n?void 0:n.cnfrmBtnLbl)&&e.createElement("div",{className:"text-center mt-4"},T&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),e.createElement("button",{className:jn,onClick:V,disabled:v!==h||""===v||""===h||T||k!==(null==C?void 0:C.length)},null==n?void 0:n.cnfrmBtnLbl))))},lt=({content:n,closeLogin:t,metadata:o,onSuccess:l,isProdEnv:i=!0})=>{var a,d;const[r,c]=e.useState(n),[s,u]=e.useState($),[m,p]=e.useState(""),[v,_]=e.useState(n),[h,g]=e.useState(""),[f,b]=e.useState(""),[x,y]=e.useState(n),[w,S]=e.useState(n),[C,E]=e.useState(n),[k,P]=e.useState(n),T=e.useRef();e.useEffect((()=>{var e,t,o,l,i,a,d,r,s,u,m,p,v,h,g,f,b,x,w,C,k,T,O,N,L,D,I,M,V,B,A,F,R,j,z,U,W,$;n&&("loginPageTemplate"===(null===(t=null===(e=null==n?void 0:n.reference)||void 0===e?void 0:e.content)||void 0===t?void 0:t.component)?(c(null===(d=null===(a=null===(i=null===(l=null===(o=null==n?void 0:n.reference)||void 0===o?void 0:o.content)||void 0===l?void 0:l.body)||void 0===i?void 0:i[0])||void 0===a?void 0:a.popup)||void 0===d?void 0:d[0]),_(null===(p=null===(m=null===(u=null===(s=null===(r=null==n?void 0:n.reference)||void 0===r?void 0:r.content)||void 0===s?void 0:s.body)||void 0===u?void 0:u[0])||void 0===m?void 0:m.icons)||void 0===p?void 0:p[0]),y(null===(b=null===(f=null===(g=null===(h=null===(v=null==n?void 0:n.reference)||void 0===v?void 0:v.content)||void 0===h?void 0:h.body)||void 0===g?void 0:g[0])||void 0===f?void 0:f.mfaV2)||void 0===b?void 0:b[0]),S(null===(T=null===(k=null===(C=null===(w=null===(x=null==n?void 0:n.reference)||void 0===x?void 0:x.content)||void 0===w?void 0:w.body)||void 0===C?void 0:C[0])||void 0===k?void 0:k.forgotPwd)||void 0===T?void 0:T[0]),E(null===(I=null===(D=null===(L=null===(N=null===(O=null==n?void 0:n.reference)||void 0===O?void 0:O.content)||void 0===N?void 0:N.body)||void 0===L?void 0:L[0])||void 0===D?void 0:D.resetPwd)||void 0===I?void 0:I[0]),P(null===(F=null===(A=null===(B=null===(V=null===(M=null==n?void 0:n.reference)||void 0===M?void 0:M.content)||void 0===V?void 0:V.body)||void 0===B?void 0:B[0])||void 0===A?void 0:A.resetPwdSuccess)||void 0===F?void 0:F[0])):(c(null===(R=null==n?void 0:n.popup)||void 0===R?void 0:R[0]),_(null===(j=null==n?void 0:n.icons)||void 0===j?void 0:j[0]),y(null===(z=null==n?void 0:n.mfaV2)||void 0===z?void 0:z[0]),S(null===(U=null==n?void 0:n.forgotPwd)||void 0===U?void 0:U[0]),E(null===(W=null==n?void 0:n.resetPwd)||void 0===W?void 0:W[0]),P(null===($=null==n?void 0:n.resetPwdSuccess)||void 0===$?void 0:$[0])))}),[n]);const O=(e,n,t)=>{""!==e&&p(e),u(null==n?void 0:n.status),g(n),b(t)};return e.createElement("div",{className:bn},e.createElement("div",{className:"w-100 h-100 d-flex position-relative justify-content-center align-items-center"},e.createElement("div",{className:`${hn}`},e.createElement("div",{className:"position-relative w-100",role:"button"},s!==$&&s!==K&&e.createElement("span",{style:{display:"flex",width:"fit-content"},onClick:()=>{T.current&&T.current.abort(),pe("BACK","",T).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?O("",e):O(m,{status:$},f)})).catch((()=>O(m,{status:$})))}},e.createElement("img",{src:null===(a=null==v?void 0:v.back)||void 0===a?void 0:a.filename,className:`${gn}`,alt:"back"}),e.createElement("div",{className:`${fn}`},null==r?void 0:r.backTxt)),e.createElement("img",{src:null===(d=null==v?void 0:v.close)||void 0===d?void 0:d.filename,className:`${gn} position-absolute end-0 top-0`,alt:"close",onClick:t})),e.createElement("div",{className:"w-100 d-flex align-items-center flex-column"},(()=>{var n,t;switch(s){case $:return e.createElement(An,{content:r,changeCurrentView:O,metadata:o,onSuccess:l,loginIcons:v,userID:m,password:f,isProdEnv:i});case H:case Y:case G:case q:case K:return e.createElement(et,{useCase:s,mainContent:null!=x?x:{},changeCurrentView:O,response:h,resetPwdSuccessContent:k,loginIcons:v,errorContent:r});case X:case Q:case J:case Z:return e.createElement(tt,{useCase:s,mainContent:null!=x?x:{},changeCurrentView:O,response:h,loginIcons:v,onSuccess:l,errorContent:r});case ee:return e.createElement(nt,{useCase:s,content:null!==(t=null===(n=null==x?void 0:x.newNumberSection)||void 0===n?void 0:n[0])&&void 0!==t?t:{},changeCurrentView:O,loginIcons:v,response:h,errorContent:r});case ne:case ae:return e.createElement(nt,{useCase:s,content:null!=w?w:{},changeCurrentView:O,metadata:o,loginIcons:v,userID:m,errorContent:r});case te:return e.createElement(ot,{content:C,useCase:s,loginIcons:v,changeCurrentView:O,errorContent:r});default:return e.createElement(e.Fragment,null)}})()))))};h(".linetable-countryOverlay-linkTextNew {\r\n color: #da291c;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.linetable-countryOverlay-utils-noWrap {\r\n white-space: nowrap;\r\n}\r\n\r\n.linetable-countryOverlay-utils-colWidth {\r\n max-width: 210px;\r\n}\r\n\r\n.linetable-countryOverlay-contain {\r\n display: flex;\r\n align-items: first baseline;\r\n padding-top: 10px;\r\n}\r\n\r\n.linetable-countryOverlay-image {\r\n width: 24px;\r\n height: 16px;\r\n}\r\n\r\n.linetable-countryOverlay-name {\r\n color: #000000;\r\n align-items: center;\r\n padding-left: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 32px;\r\n}\r\n.linetable-countryOverlay-blackthemecolor {\r\n color: #ffffff !important;\r\n}\r\n\r\n.linetable-countryOverlay-desktopView {\r\n display: block;\r\n}\r\n.linetable-countryOverlay-mobView {\r\n display: none;\r\n}\r\n@media (max-width: 767px) {\r\n .linetable-countryOverlay-linkTextNew {\r\n font-size: 14px;\r\n line-height: 24px;\r\n }\r\n}\r\n\r\n@media (min-width: 1440px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: block;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: none;\r\n }\r\n}\r\n@media (max-width: 1023px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: none;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: block;\r\n width: 100%;\r\n }\r\n}\r\n.reusbablelnetable-margin {\r\n margin-left: 0;\r\n}\r\n");h(".dbold {\r\n font-weight: 500;\r\n font-size: 40px;\r\n line-height: 60px;\r\n}\r\n");const it=({content:n})=>{var t;const o=_e((null==n?void 0:n.textColor)&&n.textColor),l=(null==n?void 0:n.textColor)&&n.textColor!=P?o:"",i=(null==n?void 0:n.textColor)&&n.textColor===P?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{};return e.createElement(e.Fragment,null,n.headingStyle&&n.text&&"h1"===n.headingStyle?e.createElement("h1",{className:l,style:Object.assign({},i)},n.text," "):"h2"===n.headingStyle?e.createElement("h2",{className:`${l}`,style:Object.assign({},i)},n.text):"h3"===n.headingStyle?e.createElement("h3",{className:l,style:Object.assign({},i)},n.text):"h4"===n.headingStyle?e.createElement("h4",{className:l,style:Object.assign({},i)},n.text):e.createElement("div",{className:"dbold",style:Object.assign({},i)},n.text))},at=({content:n})=>{var t;const o=_e(n.textColor);return e.createElement(e.Fragment,null,e.createElement("div",{className:`d-inline-flex align-${n.textElementPosition}`},n.icon&&n.icon.filename&&e.createElement("img",{src:n.icon&&n.icon.filename,alt:n.icon&&n.icon.alt,title:n.icon&&n.icon.title,height:24,width:24}),n.text&&e.createElement("div",{className:`${n.icon&&n.icon.filename} ${n.textColor&&n.textColor!=P?o:""}`,style:Object.assign({},n.textColor&&n.textColor===P?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{})},e.createElement(Te,{content:n.text}))))};h(".linetable-country-overlayModal {\r\n max-width: 900px;\r\n padding: 1rem 2rem;\r\n}\r\n");const dt=({children:n,modalState:t,handler:o,noCloseButton:l,showBackBtn:i,overlay:r})=>{const[c,s]=e.useState(),[u,m]=e.useState();return e.useEffect((()=>{r.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"falconTitle"==(null==e?void 0:e.component)&&s(e),"falconDescription"==(null==e?void 0:e.component)&&m(e)}))}))}),[r]),e.createElement(e.Fragment,null,e.createElement(a,{centered:!0,show:t,onHide:o,keyboard:!1,dialogClassName:"linetable-country-overlayModal"},e.createElement(a.Header,null,e.createElement("div",{style:{display:l?"none":""}},e.createElement("div",{className:"d-flex align-items-center"},i&&e.createElement("div",{className:"me-sm-4 me-3 d-flex align-items-center",onClick:o},e.createElement("img",{src:"../../icons/left_arrow.svg"})),c&&e.createElement(it,{content:c}))),e.createElement("div",{style:{display:l?"none":""}},e.createElement(d,{className:"sr-modal-close",onClick:o}))),e.createElement(a.Body,null,n),e.createElement(a.Footer,null,u&&e.createElement(at,{content:u}))))};h(".linetable-dotLoader-loaderParent {\r\n width: 100%;\r\n position: fixed;\r\n z-index: 3;\r\n top: 0;\r\n left: 0;\r\n bottom: 0;\r\n right: 0;\r\n background-color: rgba(255, 255, 255, 0.8);\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-dotLoader-dotClass {\r\n justify-content: center;\r\n display: flex;\r\n z-index: 1;\r\n}\r\n.linetable-dotLoader-dotContent {\r\n display: flex;\r\n justify-content: center;\r\n animation: contentplay 2s linear 0s infinite;\r\n}\r\n@keyframes dotplay {\r\n 0%,\r\n 20% {\r\n transform: translateY(0);\r\n }\r\n 10% {\r\n transform: translateY(-20px);\r\n }\r\n}\r\n.linetable-dotLoader-dots:nth-child(1) {\r\n animation-delay: 0.4s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(2) {\r\n animation-delay: 0.8s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(3) {\r\n animation-delay: 1.2s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(4) {\r\n animation-delay: 1.6s;\r\n}\r\n.linetable-dotLoader-dots {\r\n margin: 5px 2px;\r\n width: 12px;\r\n height: 12px;\r\n border-radius: 50%;\r\n background: linear-gradient(180deg, #e2271e 0%, #ef7c3c 100%);\r\n animation: dotplay 2s linear 0s infinite;\r\n}\r\n@keyframes contentplay {\r\n 0% {\r\n opacity: 0.2;\r\n }\r\n 30% {\r\n opacity: 1;\r\n }\r\n}\r\n");const rt=({keyParams:n})=>{const[t,o]=e.useState(0),[l,i]=e.useState({}),a={checkout:[null==l?void 0:l.uspFreeShipping,null==l?void 0:l.uspBestService,null==l?void 0:l.uspCheckout],loading:[null==l?void 0:l.loading]},d=n?a[`${n}`]:a.checkout;return e.useEffect((()=>{i(xe("sbstaticcontent"))}),[]),e.useEffect((()=>{let e=d.length-1;o(e);const n=setInterval((()=>{o(e--),e<0&&(e=d.length-1)}),2e3);return()=>{clearTimeout(n)}}),[]),e.createElement("div",{className:"d-flex align-items-center justify-content-center linetable-dotLoader-loaderParent"},e.createElement("div",{className:"linetable-dotLoader-dotClass"},e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"})),e.createElement("div",null,e.createElement("h4",{className:"linetable-dotLoader-dotContent"},d[t]," ")))},ct=e=>{const n=[];return null==e||e.map((e=>{const t=Number(null==e?void 0:e.order)||999,o=null==e?void 0:e.cProd;o.sortOrder=t,null==n||n.push(o)})),null==n||n.sort(((e,n)=>(null==e?void 0:e.sortOrder)-(null==n?void 0:n.sortOrder))),n},st=e=>{var n;const t=[];return null===(n=e||[])||void 0===n||n.forEach((e=>{t.push({id:e,name:e})})),t},ut=(e,n,t,o,l,i)=>{var a,d,r,c,s,u,m,p,v,_,h,g,f,b,x,y,w,S,C,E,k;const P=null!==(s=null===(c=null===(r=null===(d=null===(a=null==o?void 0:o.selectedVarientDetails)||void 0===a?void 0:a.hardwarePrices)||void 0===d?void 0:d.smartUpgradeInstallments)||void 0===r?void 0:r.insurance)||void 0===c?void 0:c.value)&&void 0!==s?s:0,T=null!==(_=null===(v=null===(p=null===(m=null===(u=null==o?void 0:o.selectedVarientDetails)||void 0===u?void 0:u.hardwarePrices)||void 0===m?void 0:m.smartUpgradeInstallments)||void 0===p?void 0:p.upFrontPayment)||void 0===v?void 0:v.value)&&void 0!==_?_:"";let O="";if("undefined"!=typeof window){const e=window.location.href,n=window.document.documentElement.getAttribute("lang"),t=null==e?void 0:e.search(`/${n}`);O=null==e?void 0:e.slice(t)}const N={hardwareVariant:{id:null===(h=null==o?void 0:o.selectedVarientDetails)||void 0===h?void 0:h.id,note:mt(o,T),hardwarePrices:null===(g=null==o?void 0:o.selectedVarientDetails)||void 0===g?void 0:g.hardwarePrices,selectedContractType:A,deviceRedirectUrl:"",buyBackPrice:[],itemType:F,insuranceName:P&&null!==(f=null==e?void 0:e.insuranceId)&&void 0!==f?f:"",insurancePrice:P||""},checkSubscriptions:{simSelectedType:"",enableV2Layout:!0,enableNoSubscriptionFlow:!0,dpSubsidyRatePlanPromoId:"",flowType:"dpTable"},subscription:{mobileSubscription:null==n?void 0:n.mobProductId,mobileSubscriptionPromo:(null===(y=null===(x=null===(b=null==t?void 0:t[null==n?void 0:n.mobProductId])||void 0===b?void 0:b.promotionInfo)||void 0===x?void 0:x[0])||void 0===y?void 0:y.id)?null===(C=null===(S=null===(w=null==t?void 0:t[null==n?void 0:n.mobProductId])||void 0===w?void 0:w.promotionInfo)||void 0===S?void 0:S[0])||void 0===C?void 0:C.id:I,originalPrice:null!==(E=null==l?void 0:l.totalBasePrice)&&void 0!==E?E:0,discountedPrice:null!==(k=null==l?void 0:l.totalDiscountedPrice)&&void 0!==k?k:0,ubRedirectUrl:ke(O)}};N&&sessionStorage.setItem(B,JSON.stringify(N)),window.location.href=i},mt=(e,n)=>{var t;return[{author:"flowInitiated",text:F},{author:"hardwareConfiguration",text:`${null==e?void 0:e.selectedColor}, ${null==e?void 0:e.selectedStorage}`},{author:"hardwareImageUrl",text:null!==(t=null==e?void 0:e.selectedImageUrl)&&void 0!==t?t:""},{author:"hardwareGroupName",text:null==e?void 0:e.selectedDeviceModal},{author:"hardwareCategory",text:"smartphone"},{author:"upfront",text:n},{author:"ultimateBundle",text:"true"},{author:"RESIDUAL",text:"true"}]},pt=e=>{var n;const t={};return null===(n=e||[])||void 0===n||n.forEach((e=>{let n=null==e?void 0:e.priceCategory;0!==(null==e?void 0:e.duration)||(null==e?void 0:e.residual)||"BASE"!==(null==e?void 0:e.priceCategory)?24!==(null==e?void 0:e.duration)||(null==e?void 0:e.residual)||(null==e?void 0:e.priceCategory)!==A?24===(null==e?void 0:e.duration)&&(null==e?void 0:e.residual)&&(null==e?void 0:e.priceCategory)===A&&(n="smartUpgradeInstallments"):n="installments":n="basePrice",t[n]=e})),t},vt="ESHOP",_t="/suggest/address",ht="/v1/linecheck";let gt=void 0!==typeof window&&u.get("sunriseAuth");gt=gt&&JSON.parse(gt);const ft=(e,o,l)=>E(void 0,void 0,void 0,(function*(){var i,a,d;try{localStorage.removeItem("entertainment");const i={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},params:{}};l&&(i.params={returnPromo:!0});const a=o+x.LINE_TABLEV2,d=yield n.ApiServiceV2.getApiServiceInstance().post(a,e,i).then((e=>{if(200==e.status)return null==e?void 0:e.data}));if(d.error)return d.error;{const e=[];return null==d||d.forEach((n=>{e[n.id]=n})),e}}catch(e){((null===(a=null===(i=null==e?void 0:e.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.code)||504===(null===(d=null==e?void 0:e.response)||void 0===d?void 0:d.status))&&vn(null==e?void 0:e.response),console.log("error---\x3e",e)}})),bt=(e,o,l,i,a,d,r,c,s,m="",p,v,_,h)=>E(void 0,void 0,void 0,(function*(){var g,f,b,y,w,S,C,E,k,P,T,O,N,D,I,M,V,B,A,j,z,U,W,$,H,Y,G,q,K,X,Q,J,Z,ee,ne,te,oe,le,ie,ae,de,re,ce,se,ue,me,pe,ve,_e,he,ge,fe,be,xe,we;let Se={};if(a===L){let n="",t="";const i=null!==(g=u.get("one-commerce-linecheckcorrelationid"))&&void 0!==g?g:"",a=(e=>{var n,t,o;let l=[],i=void 0!==typeof window&&localStorage.getItem("lineCheckResponse");if(i){i=JSON.parse(i);const a=null===(n=null==i?void 0:i.originalLinecheckResponse)||void 0===n?void 0:n.sellableProducts;l=null===(o=null===(t=null==a?void 0:a.find((n=>(null==n?void 0:n.name)===e)))||void 0===t?void 0:t.access)||void 0===o?void 0:o[0]}return l})(null===(f=null==e?void 0:e[0])||void 0===f?void 0:f.id);Se={relatedParty:[{id:"anonymous",segment:"RESIDENTIAL"}],cartItem:[{itemType:"HOME",promotionId:l,items:[],note:[{author:"linecheckCorrelationId",text:i}]}]};const r={itemType:"MOBILE",promotionId:l,items:[]};if(null===(b=e[0])||void 0===b?void 0:b.isBundle)null===(w=null===(y=e[0])||void 0===y?void 0:y.bundledOffers)||void 0===w||w.map((e=>{var l,i,a,d,c,s,u,m,p,v,_,h,g,f,b,x,y,w,S;if(null===(i=null===(l=null==e?void 0:e.promotionInfo)||void 0===l?void 0:l[0])||void 0===i?void 0:i.id){const o=1==(null===(u=null===(s=null===(c=null===(d=null===(a=null==e?void 0:e.promotionInfo)||void 0===a?void 0:a[0])||void 0===d?void 0:d.hardwareGift)||void 0===c?void 0:c[0])||void 0===s?void 0:s.ids)||void 0===u?void 0:u.length)?null===(h=null===(_=null===(v=null===(p=null===(m=null==e?void 0:e.promotionInfo)||void 0===m?void 0:m[0])||void 0===p?void 0:p.hardwareGift)||void 0===v?void 0:v[0])||void 0===_?void 0:_.ids)||void 0===h?void 0:h[0]:"";"mobile"===(null===(g=null==e?void 0:e.productType)||void 0===g?void 0:g.toLowerCase())?(r.promotionId=null===(b=null===(f=null==e?void 0:e.promotionInfo)||void 0===f?void 0:f[0])||void 0===b?void 0:b.id,n=o):(Se.cartItem[0].promotionId=null===(y=null===(x=null==e?void 0:e.promotionInfo)||void 0===x?void 0:x[0])||void 0===y?void 0:y.id,t=o)}"tv"==(null===(w=null==e?void 0:e.productType)||void 0===w?void 0:w.toLowerCase())&&o?Se.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:o}):"mobile"===(null===(S=null==e?void 0:e.productType)||void 0===S?void 0:S.toLowerCase())?r.items.push({itemType:"RATEPLAN",id:null==e?void 0:e.id}):Se.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:null==e?void 0:e.id})})),t&&(null===(S=Se.cartItem[0].items)||void 0===S||S.push({itemType:"GIFT",id:t})),n&&r.items.push({itemType:"GIFT",id:n}),(null===(C=null==r?void 0:r.items)||void 0===C?void 0:C.length)>0&&(null===(E=null==Se?void 0:Se.cartItem)||void 0===E||E.push(r)),(null==v?void 0:v.length)>0&&(null==v||v.forEach((e=>{Se.cartItem[0].items.push({itemType:"TV_SERVICE_OPTION",id:null==e?void 0:e.id})})));else{const n=1==(null===(D=null===(N=null===(O=null===(T=null===(P=null===(k=null==e?void 0:e[0])||void 0===k?void 0:k.promotionInfo)||void 0===P?void 0:P[0])||void 0===T?void 0:T.hardwareGift)||void 0===O?void 0:O[0])||void 0===N?void 0:N.ids)||void 0===D?void 0:D.length)?null===(j=null===(A=null===(B=null===(V=null===(M=null===(I=null==e?void 0:e[0])||void 0===I?void 0:I.promotionInfo)||void 0===M?void 0:M[0])||void 0===V?void 0:V.hardwareGift)||void 0===B?void 0:B[0])||void 0===A?void 0:A.ids)||void 0===j?void 0:j[0]:"";Se.cartItem[0].items.push({itemType:null===(z=null==e?void 0:e[0])||void 0===z?void 0:z.productType,id:null===(U=null==e?void 0:e[0])||void 0===U?void 0:U.id}),n&&(null===(W=Se.cartItem[0].items)||void 0===W||W.push({itemType:"GIFT",id:n}))}d&&(null==d?void 0:d.length)>0&&(null==d||d.map((e=>{var n,t,o,l;"HOME"===(null==e?void 0:e.parentPoType)?null===(o=null===(t=null===(n=null==Se?void 0:Se.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}):null===(l=r.items)||void 0===l||l.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId})}))),(null==a?void 0:a.accessType)&&(null===(Y=null===(H=null===($=null==Se?void 0:Se.cartItem)||void 0===$?void 0:$[0])||void 0===H?void 0:H.note)||void 0===Y||Y.push({author:"lineCheckaccessType",text:null==a?void 0:a.accessType})),(null==a?void 0:a.timeSlot)&&(null===(K=null===(q=null===(G=null==Se?void 0:Se.cartItem)||void 0===G?void 0:G[0])||void 0===q?void 0:q.note)||void 0===K||K.push({author:"lineCheckEarliestActivationDate",text:null===(X=null==a?void 0:a.timeSlot)||void 0===X?void 0:X.start}));try{const e=(e=>{const n=e+"=";let t;return document.cookie.split(";").some((e=>{for(;" "===e.charAt(0);)e=e.substring(1);return 0===e.indexOf(n)&&(t=JSON.parse(decodeURIComponent(e.substring(n.length,e.length))),!0)})),t})("chAddressJson"),n=[{characteristic:{installationAddress:!0,country:"CH",city:null===(Q=null==e?void 0:e.selectedAdd)||void 0===Q?void 0:Q.city,street1:null===(J=null==e?void 0:e.selectedAdd)||void 0===J?void 0:J.street,postCode:null===(Z=null==e?void 0:e.selectedAdd)||void 0===Z?void 0:Z.postCode,street2:null===(ee=null==e?void 0:e.selectedAdd)||void 0===ee?void 0:ee.houseNumber}}];Se.contactMedium=n}catch(e){console.log("issue at line check address addition in create cart ==>",e)}}else if(a===R){Se=r?{relatedParty:[{segment:"RESIDENTIAL"}],cartItem:[{itemType:"MOBILE",promotionId:l,items:[{itemType:"RATEPLAN",id:(null===(ne=null==e?void 0:e[0])||void 0===ne?void 0:ne.id)?null===(te=null==e?void 0:e[0])||void 0===te?void 0:te.id:e,subscribedInfo:{installedPlan:"Sunrise Prepaid Unlimited",id:c}}],processType:{id:"PRE_TO_POST"}}]}:{relatedParty:[{segment:"RESIDENTIAL"}],cartItem:[{itemType:"MOBILE",promotionId:l,items:[{itemType:"RATEPLAN",id:(null===(oe=null==e?void 0:e[0])||void 0===oe?void 0:oe.id)?null===(le=null==e?void 0:e[0])||void 0===le?void 0:le.id:e,clientDiscountInfo:_?[{discountRef:_,discountType:"DISCOUNT"}]:void 0}]}]};const n=1==(null===(se=null===(ce=null===(re=null===(de=null===(ae=null===(ie=null==e?void 0:e[0])||void 0===ie?void 0:ie.promotionInfo)||void 0===ae?void 0:ae[0])||void 0===de?void 0:de.hardwareGift)||void 0===re?void 0:re[0])||void 0===ce?void 0:ce.ids)||void 0===se?void 0:se.length)?null===(he=null===(_e=null===(ve=null===(pe=null===(me=null===(ue=null==e?void 0:e[0])||void 0===ue?void 0:ue.promotionInfo)||void 0===me?void 0:me[0])||void 0===pe?void 0:pe.hardwareGift)||void 0===ve?void 0:ve[0])||void 0===_e?void 0:_e.ids)||void 0===he?void 0:he[0]:"";n&&(null===(ge=Se.cartItem[0].items)||void 0===ge||ge.push({itemType:"GIFT",id:n})),d&&(null==d?void 0:d.length)>0&&(null==d||d.map((e=>{var n,t,o;"HOME"!==(null==e?void 0:e.parentPoType)&&(null===(o=null===(t=null===(n=null==Se?void 0:Se.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}))})))}if(s){const e=[];e.push({author:"voucherType",text:"QoQa"}),""!==m&&(e.push({author:"voucherCode",text:m}),ye("vctype")),Se.cartItem[0].note=e}else if(_&&h){const e=[];null==e||e.push({author:"offerType",text:"ATL"}),null==e||e.push({author:"externalPromotionName",text:_}),null==e||e.push({author:"offerVersion",text:h}),Se.cartItem[0].note=e}if(p){const e=(e=>{var n,t,o,l,i,a,d,r,c,s,u,m,p,v,_,h;let g=[];const f=null!==(l=null===(o=null===(t=null===(n=null==e?void 0:e.selectedVarientDetails)||void 0===n?void 0:n.hardwarePrices)||void 0===t?void 0:t.smartUpgradeInstallments)||void 0===o?void 0:o.duration)&&void 0!==l?l:0,b=null!==(c=null===(r=null===(d=null===(a=null===(i=null==e?void 0:e.selectedVarientDetails)||void 0===i?void 0:i.hardwarePrices)||void 0===a?void 0:a.smartUpgradeInstallments)||void 0===d?void 0:d.upFrontPayment)||void 0===r?void 0:r.value)&&void 0!==c?c:0,x=null!==(v=null===(p=null===(m=null===(u=null===(s=null==e?void 0:e.selectedVarientDetails)||void 0===s?void 0:s.hardwarePrices)||void 0===u?void 0:u.smartUpgradeInstallments)||void 0===m?void 0:m.insurance)||void 0===p?void 0:p.value)&&void 0!==v?v:0,y={itemType:F,id:null!==(h=null===(_=null==e?void 0:e.selectedVarientDetails)||void 0===_?void 0:_.id)&&void 0!==h?h:"",contractTerm:f,note:mt(e,b)};if(y&&(null==g||g.push(y)),x){const n={itemType:"DEVICE_INSURANCE",id:null==e?void 0:e.insuranceName};null==g||g.push(n)}return(null==g?void 0:g.length)>0?g:null})(p);e&&(null===(xe=null===(be=null===(fe=null==Se?void 0:Se.cartItem)||void 0===fe?void 0:fe[0])||void 0===be?void 0:be.items)||void 0===xe||xe.push(...e))}const Ce={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL}},Ee=i+x.CREATE_CARTV2;if((null===(we=Object.keys(Se))||void 0===we?void 0:we.length)>0){const e=yield n.ApiServiceV2.getApiServiceInstance().post(Ee,Se,Ce).then((e=>{if(ye("isB2BCustomer"),200==e.status)return null==e?void 0:e.data})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}));if(e.error)throw e.error;return e}})),xt=(e,o,l,i,a,d,r,c,s)=>E(void 0,void 0,void 0,(function*(){let u;localStorage.removeItem("entertainment"),u={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL}},d&&(u.params={returnPromo:!0}),r&&(u.params={journey:"P2P"}),s&&(u.params=Object.assign(Object.assign({},u.params),{journey:"FPB"}));let m=l+x.LINE_TABLEV2;c&&localStorage.getItem("prospectId")&&(u.headers["x-sunrise-prospect-id"]=localStorage.getItem("prospectId"),m=l+x.LINE_TABLEV3);const p=i?m+x.SUBSCRIPTION+a:m,v=yield n.ApiServiceV2.getApiServiceInstance().post(p,e,u).then((e=>{if(200==e.status)return null==e?void 0:e.data})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}));return v.error?v.error:{[o]:v}})),yt=(e,o)=>E(void 0,void 0,void 0,(function*(){let l;l={params:{},headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL}},l.params={category:e};const i=o,a=yield n.ApiServiceV2.getApiServiceInstance().get(i,l).then((e=>200==e.status?null==e?void 0:e.data:null==e?void 0:e.status)).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}));return(null==a?void 0:a.error)?null==a?void 0:a.error:{subscriptionData:a}})),wt=(e,o)=>E(void 0,void 0,void 0,(function*(){var l;try{const i={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},params:{offerIds:e,voucherCode:o}},a=(null===(l=null==g?void 0:g.getInstance())||void 0===l?void 0:l.getBaseUrl())+`${x.VOUCHER_PROMOTIONS}`;yield n.ApiServiceV2.getApiServiceInstance().get(a,i).then((e=>{if(200==e.status)return null==e?void 0:e.data}))}catch(e){}})),St=(e,o={},l)=>E(void 0,void 0,void 0,(function*(){let i;i={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":vt,"x-sunrise-prospect-id":l}};let a=e+(null==x?void 0:x.CUSTOMER_EVENTS);yield n.ApiServiceV2.getApiServiceInstance().post(a,o,i).then((e=>{if(200==e.status)return console.log("trackPegaEvents result.data",e.data),null==e?void 0:e.data})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}))})),Ct=({linkText:t,product:o,metadata:l,modalTriggered:i,reuseableLineTable:a})=>{var d,u,m,p;const[v,_]=e.useState(!1),[h,f]=e.useState([]),[b,x]=e.useState(!0),[y,w]=e.useState(),[S,C]=e.useState([]),k=(null===(u=null===(d=null==o?void 0:o.testProductReference)||void 0===d?void 0:d[0])||void 0===u?void 0:u.reference)?null===(p=null===(m=null==o?void 0:o.testProductReference)||void 0===m?void 0:m[0])||void 0===p?void 0:p.reference:null==o?void 0:o.reference;let P;e.useEffect((()=>{h&&h.length>0&&h.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"countryListComponent"==(null==e?void 0:e.component)&&C(null==e?void 0:e.countryValues)}))}))}),[h]),e.useEffect((()=>{(null==S?void 0:S.length)>0&&(P=S.length,w(Math.ceil(P/3)))}),[S]);return e.createElement(e.Fragment,null,e.createElement(dt,{modalState:v,handler:()=>{_(!1),"function"==typeof i&&i()},overlay:h},b&&e.createElement(rt,{keyParams:"loading"}),!b&&e.createElement(e.Fragment,null,e.createElement(r,{className:"linetable-countryOverlay-desktopView"},e.createElement("div",null,e.createElement(c,{className:"linetable-countryOverlay-utils-noWrap"},e.createElement(s,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(c,null,S.slice(0,y).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(s,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(c,null,S.slice(y,2*y).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(s,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(c,null,S.slice(2*y,3*y).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name))))))))),e.createElement(r,{className:"linetable-countryOverlay-mobView"},e.createElement(c,null,e.createElement(s,null,e.createElement(c,null,S.map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))))))),e.createElement("span",{onClick:()=>{var e,t,o,d,r,c,s,u,m,p,h;_(!v),"function"==typeof i&&i();const b=(null===(d=null===(o=null===(t=null===(e=null==k?void 0:k.content)||void 0===e?void 0:e.body)||void 0===t?void 0:t[0])||void 0===o?void 0:o.countryList)||void 0===d?void 0:d.cached_url)?null===(m=null===(u=null===(s=null===(c=null===(r=null==k?void 0:k.content)||void 0===r?void 0:r.body)||void 0===c?void 0:c[0])||void 0===s?void 0:s.countryList)||void 0===u?void 0:u.cached_url)||void 0===m?void 0:m.replace(null==l?void 0:l.lang,""):null==k?void 0:k.replace(null==l?void 0:l.lang,""),y=null==b?void 0:b.replace("//",""),w=`${a?null===(p=null==g?void 0:g.getInstance())||void 0===p?void 0:p.getSBUrl():null===(h=null==g?void 0:g.getInstance())||void 0===h?void 0:h.getBaseUrl()}rest/cms/stories/?by_slugs=${y}`;((e,t,o,l)=>E(void 0,void 0,void 0,(function*(){var i;const a=xe(`${e}_${t}_countryData`);if(a)return a;try{const a={language:t,type:"B2C"},d=null===(i=(yield n.CMSStoryblokServiceV2.get(o,a)).data)||void 0===i?void 0:i.stories;return d&&d.length>0&&be(`${e}_${t}_countryData`,d,l),d}catch(e){return console.error(e),e}})))(null==k?void 0:k.name,null==l?void 0:l.lang,w,864e5).then((e=>{e&&e.length>0&&f(e),x(!1)}))},className:`linetable-countryOverlay-linkTextNew display-5 ${a&&"reusbablelnetable-margin"}`},t))};h(".linetable-CardEntitlement-mobileProductEntitlement {\r\n margin: 0;\r\n padding: 0 16px 0 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementValue {\r\n display: flex;\r\n margin-bottom: 4px;\r\n align-items: center;\r\n font-size: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementIcon {\r\n align-self: flex-start;\r\n margin-right: 8px;\r\n}\r\n\r\n.linetable-CardEntitlement-entitlementIcon img {\r\n vertical-align: sub;\r\n}\r\n.linetable-CardEntitlement-animationTitle {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #3d3935;\r\n font-weight: 700;\r\n margin-bottom: auto;\r\n}\r\n.linetable-CardEntitlement-entitlementContent {\r\n display: inline-flex;\r\n margin-bottom: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementDescription {\r\n color: #3d3935;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n font-size: 16px;\r\n font-weight: 500;\r\n width: calc(100% - 32px);\r\n}\r\n");const Et=e.createContext({indexKey:0,listLength:0,arrowUpIcon:"",arrowDownIcon:"",arrowLeftRed:""}),kt=({content:n,product:t,indexKey:o,showEntitleValue:l,metadata:i,modalTriggered:a})=>{var d,r,c,s;const u=e.useRef(null),m=e.useContext(Et),p=()=>{he(`linetable-CardEntitlement-entitlementSection${m.indexKey}`,m.listLength)};return e.useEffect((()=>{setTimeout((()=>{(null==u?void 0:u.current)&&p()}),200),window.addEventListener("resize",p)}),[n]),e.createElement("div",{className:"linetable-CardEntitlement-mobileProductEntitlement",id:`linetable-CardEntitlement-entitlementSection${o}${m.indexKey}`,ref:u},e.createElement("div",{className:"row linetable-CardEntitlement-entitlementContent"},e.createElement("div",{className:"linetable-CardEntitlement-entitlementValue "},e.createElement(e.Fragment,null,(null==n?void 0:n.isblacktheme)?e.createElement(e.Fragment,null,(null===(d=null==n?void 0:n.blackFridayentitlementIcon)||void 0===d?void 0:d.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(r=null==n?void 0:n.blackFridayentitlementIcon)||void 0===r?void 0:r.filename,width:20,height:20}))):e.createElement(e.Fragment,null,(null===(c=null==n?void 0:n.entitlementIcon)||void 0===c?void 0:c.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(s=null==n?void 0:n.entitlementIcon)||void 0===s?void 0:s.filename,width:20,height:20}))),e.createElement("span",{className:"linetable-CardEntitlement-animationTitle entitlementDisplay"},null==n?void 0:n.entitlementName))),e.createElement("div",{className:"d-block"},n.entitlementDescription&&l&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementDescription"},null==n?void 0:n.entitlementDescription),(null==n?void 0:n.linkText)&&e.createElement(Ct,{product:t,linkText:null==n?void 0:n.linkText,metadata:i,modalTriggered:a,reuseableLineTable:!1}))))};h(".linetable-card-linetable-card-flexGrid {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-card-productContainer {\r\n background-color: #fff;\r\n padding: 24px 0 16px;\r\n text-align: left;\r\n height: 100%;\r\n border-radius: 8px;\r\n}\r\n.linetable-card-productContainer hr {\r\n margin: 16px;\r\n}\r\n.linetable-card-introText {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n font-size: 16px;\r\n line-height: 24px;\r\n font-weight: 500;\r\n color: #587467;\r\n}\r\n.linetable-card-productTeaser {\r\n background-color: #fff;\r\n border-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n box-shadow: 0px 4px 12px 0px #57545233;\r\n}\r\n.linetable-card-prodHeading {\r\n font-size: 14px;\r\n line-height: 20px;\r\n color: #606060;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n}\r\n.linetable-card-titleContainer {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n}\r\n.linetable-card-productTitle {\r\n color: #1e1e1e;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n display: flex;\r\n align-items: baseline;\r\n justify-content: space-between;\r\n}\r\n.linetable-card-productTitle > h1,\r\n.linetable-card-productTitle > h2,\r\n.linetable-card-productTitle > h3,\r\n.linetable-card-productTitle > h4,\r\n.linetable-card-productTitle > h5,\r\n.linetable-card-productTitle > h6 {\r\n color: #1e1e1e !important;\r\n}\r\n.linetable-card-productTitle > h3 {\r\n font-size: 24px;\r\n line-height: 32px;\r\n}\r\n.linetable-card-productTitle > h2 {\r\n margin-right: 8px;\r\n}\r\n.linetable-card-prodDescription {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #333333;\r\n display: flex;\r\n font-weight: 400;\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-card-productTitle {\r\n height: auto;\r\n }\r\n}\r\n\r\n.linetable-card-productDetailSection{\r\n margin: 0 16px;\r\n}\r\n.linetable-card-productDetailSection img {\r\n vertical-align: bottom;\r\n margin-right: 8px;\r\n}\r\n.linetable-card-bottomConatiner {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: end;\r\n}");const Pt=({modalState:n,handler:t,showFooter:l,footerNode:i,children:a,width:d,height:r,noCloseButton:c,backButton:s})=>{const u=e.useContext(Et);return e.useEffect((()=>{const e=document.querySelector(".linetable-product-modal .footer-main");e&&(e.style.zIndex="10");const n=document&&document.querySelector(".modal-dialog.linetable-product-modal");n&&(n.style.maxWidth=d,n.style.padding="0",n.style.transform="none");const t=document.querySelector(".linetable-product-modal .modal-content");t&&(t.style.height=r,t.style.backgroundColor="#F7F6F5");const o=document.querySelector(".linetable-product-modal .modal-header");o&&(o.style.position="absolute",o.style.top="0",o.style.zIndex="1",o.style.maxWidth="100%",o.style.background="#f8f8f8",o.style.width="100%");const l=document.querySelector(".linetable-product-modal .modal-body");l&&(l.style.background="#f8f8f8",l.style.paddingTop="70px")}),[r]),e.createElement(o.Modal,{scrollable:!1,show:n,onHide:t,keyboard:!1,dialogClassName:"linetable-product-modal"},e.createElement(o.Modal.Header,null,s&&e.createElement("div",{style:{justifyContent:"start",cursor:"pointer"},onClick:t},e.createElement(e.Fragment,null,(null==u?void 0:u.arrowLeftRed)&&e.createElement("img",{src:null==u?void 0:u.arrowLeftRed,width:24,height:24}),e.createElement("span",{style:{color:"#DA291C"}}," ",s))),e.createElement("div",{style:{display:c?"none":"",justifyContent:"end"}},e.createElement(o.CloseButton,{className:"sr-modal-close",onClick:t}))),e.createElement(o.Modal.Body,null,a),l&&e.createElement(o.Modal.Footer,null,i))};h(".linetable-sr-def-row {\r\n margin-left: auto;\r\n margin-right: auto;\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n max-width: 1308px;\r\n width: 100%;\r\n}\r\n\r\n.resusable-linetable {\r\n padding-left: 0;\r\n padding-right: 0;\r\n}\r\n\r\n@media (min-width: 1024px) and (max-width: 1439px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n@media (min-width: 768px) and (max-width: 1023px) {\r\n .linetable-sr-def-row {\r\n max-width: 720px;\r\n }\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n.linetable-sr-def-row .linetable-sr-def-row {\r\n padding: 0px;\r\n max-width: 100%;\r\n}");const Tt=({children:n,resuablelineTable:t})=>e.createElement("div",{className:`linetable-sr-def-row linetable-sr-responsive-row\n ${t&&"resusable-linetable"}\n `},n);h(".linetable-falconAccordion-section {\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description {\r\n color: #3d3935;\r\n padding-bottom: 32px;\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description p a {\r\n color: #da291c;\r\n}\r\n\r\n.linetable-falconAccordion-container {\r\n box-shadow: 0 2px 4px rgba(87, 84, 82, 0.2);\r\n border-radius: 8px;\r\n overflow: hidden;\r\n padding: 0;\r\n}\r\n\r\n.linetable-falconAccordion-current-item {\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:first-child {\r\n border-radius: 8px 8px 0 0;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:last-child {\r\n border-bottom: none;\r\n border-radius: 0 0 8px 8px;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-item:hover {\r\n background-color: #f7f6f5;\r\n}\r\n\r\n.linetable-falconAccordion-wrapper {\r\n margin-left: 32px;\r\n margin-right: 32px;\r\n border-bottom: 1px solid #e6e3df;\r\n}\r\n\r\n.linetable-falconAccordion-title {\r\n color: #3d3935;\r\n font-style: normal;\r\n font-weight: bold;\r\n font-size: 16px;\r\n line-height: 24px;\r\n margin-right: 28px;\r\n min-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 24px 0;\r\n}\r\n\r\n.prod-card .accordion-body {\r\n padding: 8px 0 32px 0;\r\n color: #3d3935;\r\n text-align: left;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-button::after {\r\n position: absolute;\r\n top: 24px;\r\n right: 0;\r\n background-image: url('/ecom-int/icons/falcon-arrow-down.svg') !important;\r\n background-size: 24px 24px !important;\r\n background-size: unset;\r\n}\r\n\r\n.prod-card .accordion-button:not(.collapsed)::after {\r\n background-image: url('/ecom-int/icons/falcon-arrow-up.svg') !important;\r\n}\r\n\r\n.linetable-falconAccordion-disabled {\r\n opacity: 0.8;\r\n pointer-events: none;\r\n background-color: #e6e3df;\r\n}\r\n\r\n/* for mobile view */\r\n@media (max-width: 767px) {\r\n .prod-card .description {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .linetable-falconAccordion-item:hover {\r\n background-color: none;\r\n }\r\n\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n }\r\n\r\n .prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 16px 0;\r\n }\r\n\r\n .prod-card .accordion-body {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .prod-card .accordion-button::after {\r\n top: 16px;\r\n }\r\n}\r\n\r\n/* For tablet view */\r\n@media (max-width: 1023px) {\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 24px;\r\n margin-right: 24px;\r\n }\r\n}");const Ot=({content:n})=>{const t=null==n?void 0:n._uid;return e.createElement("div",{className:"prod-card"},e.createElement(o.Accordion,{flush:!0,defaultActiveKey:(null==n?void 0:n.alwaysOpen)?t:""},e.createElement(o.Accordion.Item,{eventKey:t,className:`${(null==n?void 0:n.disabled)&&"linetable-falconAccordion-disabled"} linetable-falconAccordion-item`},e.createElement("div",{className:"linetable-falconAccordion-wrapper"},e.createElement(o.Accordion.Header,null,e.createElement("span",{className:"linetable-falconAccordion-title"},null==n?void 0:n.title)),e.createElement(o.Accordion.Body,null,(null==n?void 0:n.bodyText)&&e.createElement(Te,{content:null==n?void 0:n.bodyText}))))))},Nt=({content:n})=>{var t,o,l,i,a,d,r;return e.createElement("section",{className:"linetable-falconAccordion-section"},e.createElement(Tt,null,e.createElement(e.Fragment,null,(null==n?void 0:n.title)&&(null===(t=null==n?void 0:n.title)||void 0===t?void 0:t.length)>0&&e.createElement(it,{content:null===(o=null==n?void 0:n.title)||void 0===o?void 0:o[0]}),(null==n?void 0:n.description)&&(null===(l=null==n?void 0:n.description)||void 0===l?void 0:l.length)>0&&e.createElement("div",{className:"linetable-falconAccordion-description"},e.createElement(at,{content:null===(i=null==n?void 0:n.description)||void 0===i?void 0:i[0]})),(null==n?void 0:n.accordions)&&(null===(a=null==n?void 0:n.accordions)||void 0===a?void 0:a.length)>0&&(null===(d=null==n?void 0:n.accordions[0])||void 0===d?void 0:d.title)&&e.createElement("div",{className:"linetable-falconAccordion-container"},null===(r=null==n?void 0:n.accordions)||void 0===r?void 0:r.map((n=>e.createElement("div",{tabIndex:0,key:null==n?void 0:n._uid,className:"linetable-falconAccordion-current-item"},e.createElement(Ot,{content:Object.assign({},n)}))))))))},Lt=({content:n})=>{const t=(e=>{switch(e){case"grey-100":return"falcon-background-grey-100";case"ice-white":return"falcon-background-ice-white";case"transparent":return"falcon-background-transparent";default:return""}})(null==n?void 0:n.backgroundColor),o=ge(null==n?void 0:n.gradientBackground),l=(null==n?void 0:n.gradientBackground)===P?t:o;return e.createElement("div",null,n.height?e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.height}px`}}):e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.desktopHeight}px`}}),e.createElement("div",{className:`d-block d-sm-none ${l} `,style:{height:`${n.mobHeight}px`}}))};h(".linetable-productDetailsText {\r\n color: #da291c;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n}");h('.linetable-staticPrice-priceWrapper {\r\n\tborder-radius: 8px;\r\n\tborder: 1px solid #E6E3DF;\r\n\tmargin: 16px 16px 0 16px;\r\n\tpadding: 8px 16px;\r\n\tfont-size: 14px;\r\n\tfont-weight: 400;\r\n\tline-height: 20px;\r\n}\r\n\r\n.linetable-staticPrice-discountPriceSection {\r\n\tcolor: #2E6199;\r\n\tmargin-right: 8px;\r\n}\r\n\r\n.linetable-staticPrice-discountedPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-basePrice {\r\n\tfont-size: 20px;\r\n\tfont-weight: 700;\r\n\tline-height: 28px;\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.linetable-staticPrice-priceStrikeout::after {\r\n\tcontent: "";\r\n\tposition: absolute;\r\n\tright: -1px;\r\n\tleft: -2px;\r\n\ttop: 50%;\r\n\twidth: 100%;\r\n\tborder-bottom: 2px solid #da291c;\r\n\ttransform: rotate(-18.22deg);\r\n}\r\n\r\n.linetable-staticPrice-noDiscountPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-contractDescription {\r\n\tmargin-top: 6px;\r\n}\r\n\r\n.linetable-staticPrice-addToCart {\r\n\tmargin-top: 8px;\r\n\twidth: 100%;\r\n\tpadding: 10px 24px;\r\n\tborder-radius: 25px;\r\n\tbackground: #DA291C;\r\n\tcolor: #FFFFFF;\r\n\tfont-size: 16px;\r\n\tfont-weight: 700;\r\n\tline-height: 24px;\r\n\tborder: 0px;\r\n}\r\n\r\n.linetable-staticPrice-productDetails-priceWrapper {\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n}\r\n\r\n@media (min-width: 425px) {\r\n\t.linetable-staticPrice-productDetails-addToCart {\r\n\t\tmin-width: 120px;\r\n\t}\r\n}');const Dt=({content:n,addToCart:t,variant:o})=>{const l=e.useContext(Et),i=()=>{he("linetable-staticPrice-priceSection",l.listLength)};e.useEffect((()=>{setTimeout((()=>{i()}),200),window.addEventListener("resize",i)}),[n]);return e.createElement("div",{className:`linetable-staticPrice-priceWrapper ${"productDetails"===o&&"linetable-staticPrice-productDetails-priceWrapper"}`},e.createElement("div",{id:`linetable-staticPrice-priceSection${null==l?void 0:l.indexKey}`},e.createElement("div",{className:"linetable-staticPrice-priceSection"},(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},null==n?void 0:n.discountPriceValue),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+((null==n?void 0:n.isEnableDiscountPrice)?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},fe(null==n?void 0:n.priceValue)),!(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement(e.Fragment,null,null==n?void 0:n.priceDuration))),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},null==n?void 0:n.contractDescription)),e.createElement("div",null,e.createElement("button",{className:`linetable-staticPrice-addToCart ${"productDetails"===o&&"linetable-staticPrice-productDetails-addToCart"}`,onClick:()=>{"function"==typeof t&&t(n)}},null==n?void 0:n.addButton)))},It=({content:n,updatedContent:t,modalTriggered:o,addToCart:l})=>{var i;const[a,d]=e.useState(!1),r=null==n?void 0:n.subscriptionDetailModal;let c=[],s="";r&&(null==r?void 0:r.length)>0&&(null==r||r.map((e=>{c=null==e?void 0:e.modalBody,null==e||e.productPriceVariant,s=null==e?void 0:e.backButton,null==e||e.priceChangeContent})));const u=()=>{d(!a),"function"==typeof o&&o()};return e.createElement(e.Fragment,null,a&&e.createElement(Pt,{modalState:a,handler:u,showFooter:!1,height:"100%",width:"883px",backButton:s},e.createElement(e.Fragment,null,null==c?void 0:c.map(((n,t)=>e.createElement(Tt,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===T&&e.createElement(at,{content:n,key:t}),(null==n?void 0:n.component)===N&&e.createElement(Lt,{content:n}),(null==n?void 0:n.component)===O&&e.createElement(Nt,{content:n}))))),(null==n?void 0:n.isEnablePrice)&&e.createElement(Dt,{content:n,addToCart:l,variant:"productDetails"}))),e.createElement("span",{onClick:u,className:"linetable-productDetailsText"},null!==(i=null==t?void 0:t.subscription)&&void 0!==i?i:null==t?void 0:t.subscriptionText))},Mt=({content:n,showPrice:t,addToCart:o})=>{var l,i,a,d,r;const c=null!==(l=null==t?void 0:t.base)&&void 0!==l?l:0;let s=null!==(d=null===(a=null===(i=null==t?void 0:t.discount)||void 0===i?void 0:i[0])||void 0===a?void 0:a.value)&&void 0!==d?d:0;null===(r=null==t?void 0:t.discount)||void 0===r||r.map((e=>{1==(null==e?void 0:e.cycleStart)&&(s=null==e?void 0:e.value)}));const u=null==t?void 0:t.contractDuration;return e.createElement("div",{className:"linetable-staticPrice-priceWrapper"},(null==t?void 0:t.base)?e.createElement(e.Fragment,null,s>0&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},fe(s)),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+(s>0?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},fe(c)),0===s&&(null==n?void 0:n.priceDuration)),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},u&&0!==u?e.createElement("div",null):e.createElement("div",null,null==n?void 0:n.contractDescription))):"",e.createElement("div",null,e.createElement("button",{className:"linetable-staticPrice-addToCart",onClick:o},null==n?void 0:n.addButton)))};var Vt={carouselContainer:"ProductTeaser-module_carouselContainer__RzBpK",arrowButton:"ProductTeaser-module_arrowButton__-AkY4",leftArrow:"ProductTeaser-module_leftArrow__Ybrjm",rightArrow:"ProductTeaser-module_rightArrow__MYs5F",stageTeaserTab:"ProductTeaser-module_stageTeaserTab__VYRxL",stageTeaserTabActive:"ProductTeaser-module_stageTeaserTabActive__Wu5nT",carousel_dot:"ProductTeaser-module_carousel_dot__zxG-A",carouselItemNew:"ProductTeaser-module_carouselItemNew__TTklX",teaserImageLeft:"ProductTeaser-module_teaserImageLeft__dIk-h",teaserImageRight:"ProductTeaser-module_teaserImageRight__hHvry",carouselItem:"ProductTeaser-module_carouselItem__vtLwf",teaserImage:"ProductTeaser-module_teaserImage__sQ3ed",productDetailsWrapperNew:"ProductTeaser-module_productDetailsWrapperNew__DfLax",productDetailsWrapperTransparent:"ProductTeaser-module_productDetailsWrapperTransparent__ES5iK",productDetailsWrapper:"ProductTeaser-module_productDetailsWrapper__0jFlz",titleSection:"ProductTeaser-module_titleSection__YqXUJ",featureSection:"ProductTeaser-module_featureSection__T-YzP",contentWrapper:"ProductTeaser-module_contentWrapper__3GKwX",contentWrapperLeft:"ProductTeaser-module_contentWrapperLeft__tGGEs",priceContainer:"ProductTeaser-module_priceContainer__CzBhB",priceContainerNew:"ProductTeaser-module_priceContainerNew__hn6rW",contentWrapperRight:"ProductTeaser-module_contentWrapperRight__8FP0u",contentMobWrapper:"ProductTeaser-module_contentMobWrapper__9rRLQ",heading:"ProductTeaser-module_heading__Xim2-",fadeOutText:"ProductTeaser-module_fadeOutText__nKr5i",fadeInText:"ProductTeaser-module_fadeInText__Ux98m",paragraph:"ProductTeaser-module_paragraph__hUonu",description:"ProductTeaser-module_description__s-lyV",extraSpace:"ProductTeaser-module_extraSpace__HFJ2A",toolTip:"ProductTeaser-module_toolTip__KL7Xx",gradiantBox:"ProductTeaser-module_gradiantBox__Eys-K",addOnSection:"ProductTeaser-module_addOnSection__G4zhX",featureList:"ProductTeaser-module_featureList__gmPS1",features:"ProductTeaser-module_features__o2jMu",featureIcon:"ProductTeaser-module_featureIcon__PbcQN",horizontalLine:"ProductTeaser-module_horizontalLine__Nfj9U",horizontalLineDark:"ProductTeaser-module_horizontalLineDark__Sg-Ou",addOnSectionIcon:"ProductTeaser-module_addOnSectionIcon__9-EoX",toggleSection:"ProductTeaser-module_toggleSection__2az0R",toggle:"ProductTeaser-module_toggle__GClvg",serviceUnavail:"ProductTeaser-module_serviceUnavail__Pe52H",leftWrapper:"ProductTeaser-module_leftWrapper__pj0yj",priceWrapper:"ProductTeaser-module_priceWrapper__7TC6y",slider:"ProductTeaser-module_slider__-V4R1",line:"ProductTeaser-module_line__mbJxT",pricetxt:"ProductTeaser-module_pricetxt__YYSmd",sliderNew:"ProductTeaser-module_sliderNew__ZnCAh",clicked:"ProductTeaser-module_clicked__A9jUK",priceDuration:"ProductTeaser-module_priceDuration__TeeO9",callCartNew:"ProductTeaser-module_callCartNew__AksMY",arrowIcon:"ProductTeaser-module_arrowIcon__OFm89",callCart:"ProductTeaser-module_callCart__YLJSL",disableCallcart:"ProductTeaser-module_disableCallcart__-M8Od",priceDesc:"ProductTeaser-module_priceDesc__8Er0h",priceDescCenter:"ProductTeaser-module_priceDescCenter__hhZUS",priceDescNew:"ProductTeaser-module_priceDescNew__ghXo4",priceLeftCenter:"ProductTeaser-module_priceLeftCenter__SVC5R"};h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ProductTeaser-module_carouselContainer__RzBpK {\n position: static;\n margin-top: 32px;\n border-radius: 24px;\n}\n@media (min-width: 768px) {\n .ProductTeaser-module_carouselContainer__RzBpK {\n box-shadow: 0px 20px 30px -8px rgba(87, 84, 82, 0.4);\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n background: #ffffff;\n box-shadow: 0px 4px 12px rgba(87, 84, 82, 0.2);\n border-radius: 24px;\n font-size: 16px;\n height: 44px;\n width: 44px;\n padding: 10px;\n position: absolute;\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n color: #da291c;\n font-size: 20px;\n display: block;\n font-family: revicons;\n text-align: center;\n z-index: 1;\n position: relative;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n content: "\\e825";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F:disabled {\n background: #e6e3df;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before {\n content: "\\e824";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm:disabled {\n background: #e6e3df;\n}\n\n.ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n border-radius: 40px;\n border: none;\n color: #5f5955;\n background-color: #ffffff;\n font-size: 16px;\n line-height: 24px;\n font-weight: 700;\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n max-width: 158px;\n }\n}\n\n.ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n color: #ffffff;\n background: #da291c;\n}\n\n.ProductTeaser-module_carousel_dot__zxG-A {\n border-radius: 50px;\n background-color: #ffffff;\n border: 2px solid rgba(61, 57, 53, 0.25);\n padding: 1px;\n width: fit-content;\n margin: 0 auto;\n position: absolute;\n top: -24px;\n height: fit-content;\n}\n\n.ProductTeaser-module_carouselItemNew__TTklX {\n position: fixed;\n top: -24px;\n width: 100%;\n}\n\n.ProductTeaser-module_teaserImageLeft__dIk-h {\n object-fit: contain;\n object-position: right;\n position: relative;\n left: 600px;\n}\n\n.ProductTeaser-module_teaserImageRight__hHvry {\n object-fit: contain;\n object-position: left;\n position: relative;\n}\n\n.ProductTeaser-module_carouselItem__vtLwf {\n position: relative;\n width: 100%;\n}\n.ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n object-fit: cover;\n object-position: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_carouselItem__vtLwf {\n display: flex;\n justify-content: center;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n border-radius: 24px;\n position: absolute;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperNew__DfLax, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz {\n min-width: 520px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperNew__DfLax .ProductTeaser-module_titleSection__YqXUJ, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK .ProductTeaser-module_titleSection__YqXUJ, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n left: unset;\n top: unset;\n height: fit-content;\n margin: auto 0;\n font-size: 28px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperNew__DfLax .ProductTeaser-module_featureSection__T-YzP, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK .ProductTeaser-module_featureSection__T-YzP, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: 0px;\n top: 0;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz {\n position: absolute;\n display: flex;\n justify-content: space-between;\n left: 107px;\n right: 107px;\n top: 129px;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK {\n position: relative;\n display: flex;\n justify-content: space-between;\n padding: 0 50px;\n top: 129px;\n height: 550px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n left: unset;\n top: unset;\n bottom: 170px;\n height: fit-content;\n margin: auto 0;\n font-size: 28px;\n }\n}\n\n.ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n position: absolute;\n top: 40px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n left: 30px;\n }\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n max-width: 460px;\n }\n}\n@media (min-width: 768px) {\n .ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n left: 24px;\n max-width: 400px;\n }\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_titleSection__YqXUJ, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n text-align: center;\n left: unset;\n top: unset;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_featureSection__T-YzP, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: unset;\n top: unset;\n margin-top: 24px;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_priceContainerNew__hn6rW, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_priceContainerNew__hn6rW {\n position: relative;\n top: unset;\n bottom: unset;\n margin-top: 24px;\n}\n\n@media (min-width: 1440px) {\n .ProductTeaser-module_contentWrapperLeft__tGGEs {\n left: 107px;\n }\n}\n\n.ProductTeaser-module_contentWrapperRight__8FP0u {\n position: absolute;\n max-width: 400px;\n top: 40px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_contentWrapperRight__8FP0u {\n right: 107px;\n }\n}\n.ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n text-align: center;\n right: unset;\n top: unset;\n}\n.ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: unset;\n top: unset;\n margin-top: 24px;\n}\n.ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_priceContainerNew__hn6rW {\n position: relative;\n top: unset;\n bottom: unset;\n margin-top: 24px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n position: relative;\n margin: 0 16px;\n width: 100%;\n }\n}\n@media (max-width: 320px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n margin: 0 8px;\n }\n}\n\n.ProductTeaser-module_titleSection__YqXUJ {\n position: absolute;\n top: 173px;\n left: 107px;\n color: #ffffff;\n font-weight: 700;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n max-width: 412px;\n }\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n top: unset;\n left: unset;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n text-align: center;\n top: 32px;\n left: unset;\n width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 16px;\n line-height: 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 14px;\n line-height: 20px;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeOutText__nKr5i {\n opacity: 0;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeInText__Ux98m {\n opacity: 1;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 28px;\n line-height: 36px;\n margin: 8px 0 12px 0;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 20px;\n line-height: 28px;\n max-width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_description__s-lyV {\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_extraSpace__HFJ2A {\n top: 62px;\n }\n}\n\n.ProductTeaser-module_featureSection__T-YzP {\n position: absolute;\n right: 107px;\n top: 129px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_featureSection__T-YzP {\n max-width: 412px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP {\n right: unset;\n top: unset;\n margin-top: 397px;\n font-size: 14px;\n line-height: 20px;\n background-color: #ffffff;\n color: #3D3935;\n border-radius: 12px;\n position: relative;\n height: fit-content;\n }\n}\n.ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: brightness(0) invert(1);\n margin-left: 16px;\n display: flex;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: none;\n }\n}\n\n.ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px;\n background: rgba(0, 0, 0, 0.2);\n backdrop-filter: blur(12.5px);\n color: #ffffff;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n background: none;\n color: unset;\n backdrop-filter: unset;\n }\n}\n\n.ProductTeaser-module_featureList__gmPS1 {\n padding: 4px 20px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu {\n display: flex;\n align-items: center;\n margin: 12px 0;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu a {\n color: #ffffff;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu .ProductTeaser-module_featureIcon__PbcQN {\n margin-right: 10px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #ffffff;\n text-decoration: underline;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #3d3935;\n }\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLine__Nfj9U, .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n opacity: 0.5;\n background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);\n height: 1px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px 12px 0px 0px;\n }\n}\n\n.ProductTeaser-module_addOnSection__G4zhX {\n padding: 16px 20px;\n margin-top: 16px;\n display: flex;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_addOnSectionIcon__9-EoX {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R {\n margin-left: auto;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R .ProductTeaser-module_toggle__GClvg {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input {\n cursor: pointer;\n margin-top: unset;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input:focus {\n border: unset !important;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_addOnSection__G4zhX {\n border-radius: 0px 0px 12px 12px;\n margin-top: 0px;\n padding: 12px 20px;\n align-items: center;\n }\n}\n\n.ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_priceContainerNew__hn6rW {\n position: absolute;\n bottom: 40px;\n width: 100%;\n color: #ffffff;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_serviceUnavail__Pe52H {\n text-align: center;\n margin-bottom: 10px;\n font-size: 16px;\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H img, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_serviceUnavail__Pe52H img {\n margin-right: 8px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_priceContainerNew__hn6rW {\n color: #3D3935;\n position: static;\n display: flex;\n justify-content: center;\n flex-direction: column;\n padding: 16px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_leftWrapper__pj0yj, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_leftWrapper__pj0yj {\n position: relative;\n right: 38px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y {\n font-size: 24px;\n line-height: 32px;\n font-weight: 700;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y {\n margin-right: unset;\n flex-direction: column;\n font-size: 20px;\n line-height: 28px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n height: 32px;\n overflow: hidden;\n margin-right: 12px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT {\n transition: transform 0.5s ease;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n margin-right: 6px;\n display: inline-block;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n margin-bottom: 8px;\n margin-right: unset;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh {\n height: 32px;\n min-width: 158px;\n overflow: hidden;\n margin-right: 12px;\n position: relative;\n bottom: 16px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT {\n transition: transform 0.5s ease;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n margin-right: 6px;\n display: inline-block;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh {\n margin-bottom: 8px;\n margin-right: unset;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_clicked__A9jUK .ProductTeaser-module_line__mbJxT, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_clicked__A9jUK .ProductTeaser-module_line__mbJxT {\n transform: translateY(-100%);\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_priceDuration__TeeO9, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_priceDuration__TeeO9 {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n display: inline-block;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY {\n padding: 10px 24px;\n font-weight: 700;\n border: none;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 338px;\n height: 52px;\n font-size: 16px;\n line-height: 24px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY .ProductTeaser-module_arrowIcon__OFm89, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY .ProductTeaser-module_arrowIcon__OFm89 {\n margin-left: 8px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY {\n padding: 14px 24px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY {\n padding: 10px 24px;\n max-width: 100%;\n display: flex;\n justify-content: center;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n font-weight: 700;\n border: none;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 28px;\n display: flex;\n align-items: center;\n font-size: 16px;\n line-height: 24px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL .ProductTeaser-module_arrowIcon__OFm89, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL .ProductTeaser-module_arrowIcon__OFm89 {\n margin-left: 8px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 14px 24px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n max-width: 100%;\n display: flex;\n justify-content: center;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_disableCallcart__-M8Od, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_disableCallcart__-M8Od {\n background-color: #e6e3df;\n color: #b3aeaa;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceLeftCenter__SVC5R, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceLeftCenter__SVC5R {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 10px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceLeftCenter__SVC5R, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceLeftCenter__SVC5R {\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceLeftCenter__SVC5R, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceLeftCenter__SVC5R {\n position: relative;\n right: 52px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescNew__ghXo4 {\n justify-content: flex-start;\n position: relative;\n bottom: 30px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescCenter__hhZUS {\n justify-content: flex-start;\n position: relative;\n bottom: 30px;\n right: 40px;\n}\n\n.ProductTeaser-module_priceContainerNew__hn6rW {\n bottom: 0px;\n top: 400px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n margin: 0 16px;\n height: 1px;\n background-color: #e6e3df;\n }\n}');class Bt{constructor(e){this.config={baseURL:"",cartURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.config=e}}Bt.getInstance=()=>Bt.instance,Bt.create=e=>{Bt.instance=new Bt(e)};class At{constructor(e){this.config={baseURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.config=e}}At.getInstance=()=>At.instance,At.create=e=>{At.instance=new At(e)};class Ft{constructor(e){this.config={baseURL:"",cartURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.config=e}}Ft.getInstance=()=>Ft.instance,Ft.create=e=>{Ft.instance=new Ft(e)};var Rt="ToolTip-module_tooltipicon__U5Rvt",jt="ToolTip-module_benefits__-gI-y";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ToolTip-module_tooltipicon__U5Rvt {\n height: 24px;\n margin-left: 4px;\n min-width: 20px;\n width: 24px;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .ToolTip-module_tooltipicon__U5Rvt img {\n width: inherit;\n height: inherit;\n }\n}\n\n.ToolTip-module_benefits__-gI-y img {\n width: 20px !important;\n height: 20px !important;\n}");const zt=({content:n,heading:t="",tooltipClass:l="",isBenefit:i=!1})=>{var a;const d=we(),r=Se(),c=null===(a=null==f?void 0:f.getInstance())||void 0===a?void 0:a.getAssetPath();return n&&e.createElement(o.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:""+("mobile"===d||"tablet"===d||r?"click":"hover"),overlay:n&&e.createElement(o.Popover,{id:"popover-basic"},""!==t&&e.createElement(o.Popover.Header,null,t),e.createElement(o.Popover.Body,null,n))},e.createElement("div",{className:`${Rt} ${l} ${i&&jt}`},c&&e.createElement("img",{src:`${c}/icons/tooltip_icon.svg`,width:24,height:24,alt:""})))},Ut=(e,n)=>{var t,o,l,i,a,d,r,c,s,u,m,p,v,_,h,g,f,b,x,y;const{itemCategory:w,location:S}=n,C=null!==(a=null===(i=null===(l=null===(o=null===(t=null==e?void 0:e.prices)||void 0===t?void 0:t[0])||void 0===o?void 0:o.priceAlteration)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value)&&void 0!==a?a:0,E=null!==(c=null===(r=null===(d=null==e?void 0:e.prices)||void 0===d?void 0:d[0])||void 0===r?void 0:r.value)&&void 0!==c?c:0;return{item_id:null!==(s=null==e?void 0:e.id)&&void 0!==s?s:"",item_name:null!==(u=null==e?void 0:e.id)&&void 0!==u?u:"",affiliation:null!==(v=null===(p=null===(m=null==e?void 0:e.promotionInfo)||void 0===m?void 0:m[0])||void 0===p?void 0:p.campaignId)&&void 0!==v?v:"",coupon:"",discount:C&&Number(C),index:0,item_brand:Ne,item_category:null!==(h=null!==(_=null==w?void 0:w.productName)&&void 0!==_?_:null==w?void 0:w.id)&&void 0!==h?h:"MOBILE",item_category2:w?"BUNDLE":"MOBILE",item_category3:"",item_category4:"",item_category5:"",item_list_id:w?"Fixnet":"Mobile",item_list_name:w?"Fixnet":"Mobile",item_variant:null!==(f=null!==(g=null==w?void 0:w.productName)&&void 0!==g?g:null==w?void 0:w.id)&&void 0!==f?f:null==e?void 0:e.id,location_id:S,price:E&&Number(E),quantity:1,promotion_id:null!==(y=null===(x=null===(b=null==e?void 0:e.promotionInfo)||void 0===b?void 0:b[0])||void 0===x?void 0:x.campaignId)&&void 0!==y?y:""}},Wt=(e,n,t)=>{const o=[];return null==e||e.map((e=>{var l;(null==e?void 0:e.bundledOffers)?null===(l=null==e?void 0:e.bundledOffers)||void 0===l||l.map((l=>{const i=""==n?e:n;o.push(Ut(l,{itemCategory:i,location:t}))})):o.push(Ut(e,{location:t}))})),o},$t=(e,n,t)=>{var o,l,i,a;const d=null===(i=null===(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.derivedPrice)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value;return{currency:"CHF",value:null!==(a=d&&Number(d))&&void 0!==a?a:0,items:Wt(e,n,t)}},Ht=e=>{const n={prodCategory:"",prodsubCategory:"",prodsubscription:""};if("MOBILE"===(null==e?void 0:e.productType))n.prodCategory="Mobile",n.prodsubCategory="Postpaid",n.prodsubscription="Subscription only";else if("MOBILEPREPAID_RATEPLAN"===(null==e?void 0:e.productType))n.prodCategory="Mobile",n.prodsubCategory="Prepaid",n.prodsubscription="No subscription";else{switch(n.prodCategory="Home",null==e?void 0:e.productType){case"INTERNET":n.prodsubCategory="Internet";break;case"TV":n.prodsubCategory="TV";break;case"VOICE":n.prodsubCategory="Phone";break;default:n.prodsubCategory=""}n.prodsubscription="Subscription only"}return n},Yt=(e,n,t)=>{var o,l,i,a,d,r,c,s,u,m,p,v,_,h,g,f,b,x,y,w,S,C;const{itemCategory:E,location:k}=n,P=null!==(d=null===(a=null===(i=null===(l=null===(o=null==e?void 0:e.prices)||void 0===o?void 0:o[0])||void 0===l?void 0:l.priceAlteration)||void 0===i?void 0:i[0])||void 0===a?void 0:a.value)&&void 0!==d?d:0,T=null!==(s=null===(c=null===(r=null==e?void 0:e.prices)||void 0===r?void 0:r[0])||void 0===c?void 0:c.value)&&void 0!==s?s:0,O={item_id:null!==(u=null==e?void 0:e.id)&&void 0!==u?u:"",item_name:null!==(m=null==e?void 0:e.id)&&void 0!==m?m:"",affiliation:null!==(_=null===(v=null===(p=null==e?void 0:e.promotionInfo)||void 0===p?void 0:p[0])||void 0===v?void 0:v.campaignId)&&void 0!==_?_:"",coupon:"",discount:P&&Number(P),index:0,item_brand:Ne,item_category:null===(h=Ht(e))||void 0===h?void 0:h.prodCategory,item_category2:null===(g=Ht(e))||void 0===g?void 0:g.prodsubCategory,item_category3:"",item_category4:null===(f=Ht(e))||void 0===f?void 0:f.prodsubscription,item_category5:"",item_list_id:E?"Fixnet":"Mobile",item_list_name:E?"Fixnet":"Mobile",item_variant:null!==(y=null!==(x=null!==(b=null==E?void 0:E.title)&&void 0!==b?b:null==E?void 0:E.productName)&&void 0!==x?x:null==E?void 0:E.id)&&void 0!==y?y:null==e?void 0:e.id,location_id:k,price:T&&Number(T),quantity:1,promotion_id:null!==(C=null===(S=null===(w=null==e?void 0:e.promotionInfo)||void 0===w?void 0:w[0])||void 0===S?void 0:S.campaignId)&&void 0!==C?C:""};return t&&(O.item_available=t),O},Gt=(e,n,t,o)=>{const l=[];let i="";return null==e||e.map((e=>{var a;if(null==e?void 0:e.bundledOffers)null===(a=null==e?void 0:e.bundledOffers)||void 0===a||a.map((a=>{var d;const r=""==n?e:n;o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no");const c=Yt(a,{itemCategory:r,location:t},i);c.item_category3=`${null===(d=null==e?void 0:e.bundledOffers)||void 0===d?void 0:d.length}P Subscription`,l.push(c)}));else if("INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers)){const n=Yt(e,{location:t});"MOBILEPREPAID_RATEPLAN"===(null==e?void 0:e.productType)?n.item_category3="":n.item_category3="1P Subscription",l.push(n)}else{const n={id:null==e?void 0:e.id};o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no");const a=Yt(e,{itemCategory:n,location:t},i);a.item_category3="1P Subscription",l.push(a)}})),l},qt=(e,n,t)=>{let o;null==e||e.map((e=>{o=(null==e?void 0:e.bundledOffers)?"Fixnet":"INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers)?"Mobile":"Internet"}));return{item_list_id:o,item_list_name:o,items:Gt(e,n,t)}},Kt=(e,n,t,o)=>{var l,i,a,d;const r=null===(a=null===(i=null===(l=null==e?void 0:e[0])||void 0===l?void 0:l.derivedPrice)||void 0===i?void 0:i[0])||void 0===a?void 0:a.value;return{currency:"CHF",value:null!==(d=r&&Number(r))&&void 0!==d?d:0,items:Gt(e,n,t,o)}},Xt=(e,n,t,o,l,i)=>{var a,d;"view"===e?null===window||void 0===window||window.dataLayer.push({event:"view_item_list",event_name:"view_item_list",ecommerce:qt(n,t,o),isPegaEnabled:!!i}):"addtocart"===e?null===window||void 0===window||window.dataLayer.push({event:"add_to_cart",event_name:"add_to_cart",ecommerce:Kt(n,t,o),transaction_type:"MOBILE"===(null===(a=null==n?void 0:n[0])||void 0===a?void 0:a.productType)?"MOBILE_ORDER":"HOME_ORDER",isPegaEnabled:!!i,fromPopup:!!(null===(d=null==n?void 0:n[0])||void 0===d?void 0:d.fromPopup)}):"available"===e&&window.dataLayer.push({event:"view_item",event_name:"view_item",ecommerce:Kt(n,t,o,l),isPegaEnabled:!!i})};var Qt={inputcontainer:"AutoComplete-module_inputcontainer__VORIB","cross-icon":"AutoComplete-module_cross-icon__7SIoo",addresscontainer:"AutoComplete-module_addresscontainer__za7ZE",suggestionactive:"AutoComplete-module_suggestionactive__4cjbE"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.AutoComplete-module_inputcontainer__VORIB {\n position: relative;\n top: 27px;\n margin-right: 16px;\n}\n.AutoComplete-module_inputcontainer__VORIB input {\n font-size: 16px;\n line-height: 24px;\n border: 1px solid #B3AEAA !important;\n border-radius: 4px;\n height: 52px;\n padding: 14px 12px;\n width: 100%;\n background: #F7F6F5;\n}\n@media (max-width: 767px) {\n .AutoComplete-module_inputcontainer__VORIB {\n margin: 0 !important;\n }\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_cross-icon__7SIoo {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n padding: 14px;\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE {\n background: #ffffff;\n box-shadow: 0px 8px 24px rgba(51, 51, 51, 0.2);\n cursor: pointer;\n list-style: none;\n padding: 12px;\n position: absolute;\n text-align: left;\n width: 100%;\n z-index: 1000;\n transition: all 1s ease-in;\n}\n@media (max-width: 767px) {\n .AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE {\n margin-top: 0px;\n background: #f7f6f5;\n }\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE .AutoComplete-module_addresscontainer__za7ZE :hover {\n background: #e5e5e5;\n border-radius: 4px;\n text-align: left;\n width: 100%;\n z-index: 100;\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_suggestionactive__4cjbE,\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE li:hover {\n background-color: #f7f6f5;\n cursor: pointer;\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_suggestionactive__4cjbE,\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE li {\n padding: 10px 12px;\n}\n\ninput:disabled {\n background-color: #e6e3df !important;\n}\n\ninput[type=text]:disabled {\n color: #86807C !important;\n}\n\nlabel:disabled {\n color: #86807C !important;\n}");const Jt=e.forwardRef(((n,t)=>{var o,l,i;const{inputValue:a,setInputValue:d,dropdownValue:r,placeholder:c,onChange:s,name:u,inputClassName:m,selectedData:p,minLength:v,maxLength:_,content:h,setApiError:g,setFetchingLineCheck:f,checkAvailability:b,FetchingLineCheck:x,setaddressNotFound:y}=n,[w,S]=e.useState(-1),[C,E]=e.useState(!0),[k,P]=e.useState(!1);we();return e.useEffect((()=>{r&&r.length>0&&(null==a?void 0:a.length)>=3?P(!0):P(!1)}),[r]),e.createElement(e.Fragment,null,e.createElement("div",{id:"dropdownselect",className:`${Qt.inputcontainer} form-floating ${x&&Qt["box-disabled"]}`},e.createElement("input",{type:"text",disabled:x||!C||b,placeholder:c,onChange:s,name:u,onKeyDown:e=>{if(r&&Object.keys(r).length>0)if("Enter"===(null==e?void 0:e.key)||13===(null==e?void 0:e.keyCode)){if(-1===w)return;S(-1),E(!0),P(!1),d(r[w].concatedAddress),p(r[w])}else if("ArrowUp"===(null==e?void 0:e.key)||38===(null==e?void 0:e.keyCode)){if(-1===w)return void S((null==r?void 0:r.length)-1);S(w-1)}else if("ArrowDown"===(null==e?void 0:e.key)||40===(null==e?void 0:e.keyCode)){if(w===(null==r?void 0:r.length)-1)return void S(-1);S(w+1)}else S(-1)},value:a,autoComplete:"off","aria-autocomplete":"none",className:m,spellCheck:"false",minLength:v,maxLength:_}),e.createElement("label",{htmlFor:"address",className:"input-label"},c),!(x||!C||b)&&0!==(null==a?void 0:a.length)&&e.createElement("div",{className:Qt["cross-icon"],onClick:()=>{var e,n;(null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.focus())||P(!1),d(""),null===(n=null==t?void 0:t.current)||void 0===n||n.focus(),g(!1),f(!1),y(!1)}},e.createElement("img",{src:null===(i=null===(l=null===(o=null==h?void 0:h.linecheckIcons)||void 0===o?void 0:o[0])||void 0===l?void 0:l.close)||void 0===i?void 0:i.filename,height:14,width:14,alt:"cross-icon"})),k&&(null==r?void 0:r.length)&&e.createElement("ul",{className:Qt.addresscontainer},r.map(((n,t)=>{let o;return t===w&&(o="active"),e.createElement(e.Fragment,null,e.createElement("li",{className:"active"===o?Qt.suggestionactive:Qt.suggestionInactive,key:t,onClick:e=>((e,n)=>{var t;S(-1),P(!1),E(!0),d((null==n?void 0:n.currentTarget)&&(null===(t=null==n?void 0:n.currentTarget)||void 0===t?void 0:t.innerText)),p(e)})(n,e)},n&&n.concatedAddress))})))))}));var Zt={inputcontainer:"IndividualLineCheck-module_inputcontainer__RzNgl","comman-css":"IndividualLineCheck-module_comman-css__Ih8mD",errorInputs:"IndividualLineCheck-module_errorInputs__VLMc5",individuallinecheck:"IndividualLineCheck-module_individuallinecheck__S0DaG","individuallinecheck-bottom":"IndividualLineCheck-module_individuallinecheck-bottom__mHELS",errorbutton:"IndividualLineCheck-module_errorbutton__YhCHC",btn:"IndividualLineCheck-module_btn__aCYjV",smallerinputcontainer:"IndividualLineCheck-module_smallerinputcontainer__HjSk0",cityinputcontainer:"IndividualLineCheck-module_cityinputcontainer__tMbW1","error-section":"IndividualLineCheck-module_error-section__y69YQ","errorinput-small":"IndividualLineCheck-module_errorinput-small__zu3mE","errorinput-small-mobile":"IndividualLineCheck-module_errorinput-small-mobile__3P158"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.IndividualLineCheck-module_inputcontainer__RzNgl {\n position: relative;\n margin: 18px 16px 32px 0;\n top: 18px;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .form-floating {\n margin-right: 0;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_comman-css__Ih8mD {\n border: 1px solid #B3AEAA;\n background-color: #F7F6F5;\n border-radius: 4px;\n padding: 13px 12px 13px 12px;\n gap: 4px;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl input {\n border: 1px solid #B3AEAA !important;\n font-size: 16px;\n line-height: 24px;\n border-radius: 4px;\n height: 52px;\n padding: 14px 12px;\n width: 100%;\n background: #F7F6F5;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_inputcontainer__RzNgl {\n margin: 0 16px;\n top: 0px;\n }\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_errorInputs__VLMc5 {\n border: 2px solid #BF0760 !important;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck__S0DaG, .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck-bottom__mHELS {\n display: inline-flex;\n width: 100%;\n margin-bottom: 24px;\n gap: 12px;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck__S0DaG, .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck-bottom__mHELS {\n display: block;\n margin: 16px 0;\n text-align: center;\n }\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_errorbutton__YhCHC {\n background-color: #ffffff;\n padding: 0 16px 0 12px;\n border-radius: 12px;\n color: #da291c;\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_errorbutton__YhCHC {\n background-color: transparent;\n padding: 0 16px 0 8px;\n }\n}\n\n@media (max-width: 767px) {\n .IndividualLineCheck-module_btn__aCYjV {\n width: 100% !important;\n }\n}\n\n.IndividualLineCheck-module_smallerinputcontainer__HjSk0 {\n min-width: 145px;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .IndividualLineCheck-module_smallerinputcontainer__HjSk0 {\n min-width: 120px !important;\n }\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_smallerinputcontainer__HjSk0 {\n min-width: 88px !important;\n margin-bottom: 32px;\n }\n}\n\n.IndividualLineCheck-module_cityinputcontainer__tMbW1 {\n min-width: 365px !important;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .IndividualLineCheck-module_cityinputcontainer__tMbW1 {\n min-width: 230px !important;\n }\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_cityinputcontainer__tMbW1 {\n min-width: 88px !important;\n margin-bottom: 32px;\n }\n}\n\n.IndividualLineCheck-module_error-section__y69YQ {\n font-size: 16px;\n line-height: 24px;\n color: #BF0760;\n font-weight: 400;\n}\n.IndividualLineCheck-module_error-section__y69YQ > img {\n margin-right: 4px;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_error-section__y69YQ {\n text-align: left;\n }\n}\n\n.IndividualLineCheck-module_errorinput-small__zu3mE {\n margin-bottom: 0 !important;\n}\n\n.IndividualLineCheck-module_individuallinecheck-bottom__mHELS {\n margin-bottom: 0 !important;\n}\n\n@media (max-width: 767px) {\n .IndividualLineCheck-module_errorinput-small-mobile__3P158 {\n margin-bottom: 8px;\n }\n}");const eo=e.forwardRef((({parentCallBackIndividual:n,content:t,apiError:o,setApiError:l,setFetchingLineCheck:i,setSelectedAddress:a,FetchingLineCheck:d,addressRef:r,openIndividualLineCheck:c,selected:s,addressNotFound:u,setaddressNotFound:m,isAddressNotFilled:p,setAddressNotFilled:v,setIndivialOpen:_},h)=>{const[g,f]=e.useState({street:"",city:"",postCode:"",houseNumber:"",concatedAddress:""}),[b,x]=e.useState(""),y=we(),[w,S]=e.useState(!1);e.useEffect((()=>{"function"==typeof l&&l(!1),"function"==typeof i&&i(!1),"function"==typeof a&&a("")}),[]);const C=e=>{m(!0),f(Object.assign(Object.assign({},g),{[e.target.name]:e.target.value}));const n=Object.assign(Object.assign({},g),{[e.target.name]:e.target.value});E(Object.assign({},n)),l(!1),i(!1),_((e=>Object.assign(Object.assign({},e),{indErrorOpen:!1})))};e.useEffect((()=>{f(s)}),[u]);const E=e=>{let n="";""!==(null==e?void 0:e.postCode)&&""!==e.city&&""!==e.houseNumber&&""!==e.street?(n=e.street+" "+e.houseNumber+", "+e.postCode+" "+e.city,x(n)):(n="",x(""))};e.useEffect((()=>{const e=Object.assign(Object.assign({},g),{concatedAddress:b});f(Object.assign(Object.assign({},g),{concatedAddress:b})),"mobile"!==y&&n(e,w)}),[b]);const k=()=>e.createElement("p",{className:Zt["error-section"]},e.createElement("img",{src:"/ecom-int/icons/error-msg-icon.svg",height:14,width:14,alt:"error"}),null==t?void 0:t.requiredFieldText);return e.createElement("div",{className:`${Zt.inputcontainer} ${p&&Zt["errorinput-container"]}`},e.createElement("div",{className:`${p&&u&&(""===(null==g?void 0:g.postCode)||""===(null==g?void 0:g.city))&&Zt["errorinput-small"]} ${Zt.individuallinecheck}`},e.createElement("div",{className:`${Zt.smallerinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.postCode)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{required:!0,placeholder:(null==t?void 0:t.zip)+"*",name:"postCode",onChange:C,value:d||u?null==g?void 0:g.postCode:null==s?void 0:s.postCode,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.postCode)?Zt.errorInputs:Zt["comman-css"]} `}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.zip)+"*"),(p||w)&&""===(null==g?void 0:g.postCode)&&u&&k()),e.createElement("div",{className:`${Zt.cityinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.city)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{placeholder:(null==t?void 0:t.city)+"*",name:"city",onChange:C,value:d||u?null==g?void 0:g.city:null==s?void 0:s.city,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.city)?Zt.errorInputs:Zt["comman-css"]}`}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.city)+"*"),(p||w)&&""===(null==g?void 0:g.city)&&u&&k())),e.createElement("div",{className:`${Zt["individuallinecheck-bottom"]}`},e.createElement("div",{className:`${Zt.cityinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.street)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{placeholder:(null==t?void 0:t.street)+"*",name:"street",onChange:C,value:d||u?null==g?void 0:g.street:null==s?void 0:s.street,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.street)?Zt.errorInputs:Zt["comman-css"]}`}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.street)+"*"),(p||w)&&""===(null==g?void 0:g.street)&&u&&k()),e.createElement("div",{className:`${Zt.smallerinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.houseNumber)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{placeholder:(null==t?void 0:t.houseNumber)+"*",name:"houseNumber",onChange:C,value:d||u?null==g?void 0:g.houseNumber:null==s?void 0:s.houseNumber,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.houseNumber)?Zt.errorInputs:Zt["comman-css"]}`}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.houseNumber)+"*"),(p||w)&&""===(null==g?void 0:g.houseNumber)&&u&&k())),"mobile"===y&&e.createElement(e.Fragment,null,e.createElement("div",{className:Zt.individuallinecheck},e.createElement("button",{name:"check address button",type:"button",className:`primarybutton ${Zt.btn}`,disabled:!1,onClick:()=>{S(!0),""!==(null==g?void 0:g.postCode)&&""!==(null==g?void 0:g.city)&&""!==(null==g?void 0:g.houseNumber)&&""!==(null==g?void 0:g.street)?"function"==typeof n&&n(g,!0):"function"==typeof v&&v(!p)},style:{width:"50%"}},null==t?void 0:t.buttonvalue))))})),no="address-suggestion",to="catalogue-management",oo=e=>E(void 0,void 0,void 0,(function*(){var o,l,i,a,d,r,c;const s=yield(e=>{var o;const l=null===(o=null==At?void 0:At.getInstance())||void 0===o?void 0:o.getBaseUrl(),i={params:{},headers:{"x-sunrise-channel":vt,"x-correlation-id":t.v4()}},a={address:e,segment:"Residential"};try{const e=`${l}${to}${ht}`;return n.ApiServiceV2.getApiServiceInstance().post(e,a,i).then((e=>{var n,t;if(200==e.status){const o=null===(t=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.headers)||void 0===t?void 0:t["x-correlation-id"];try{"undefined"!=typeof window&&localStorage.removeItem("one-commerce-linecheckcorrelationid"),"undefined"!=typeof window&&localStorage.setItem("one-commerce-linecheckcorrelationid",o)}catch(e){}return"undefined"!=typeof window&&u.remove("one-commerce-linecheckcorrelationid",{path:"/"}),"undefined"!=typeof window&&u.set("one-commerce-linecheckcorrelationid",o,{path:"/",expires:3}),{response:null==e?void 0:e.data,corelationaId:o}}return[]})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}))}catch(e){return e}})(e),m=yield((null===(o=null==s?void 0:s.response)||void 0===o?void 0:o.sellableProducts)||[]).map((e=>e.name)),p=[];for(const e of null===(l=null==s?void 0:s.response)||void 0===l?void 0:l.eligibleCombinations)for(const n of null==e?void 0:e.rateplans)p.push(null==n?void 0:n.name);const v=null===(a=null===(i=null==s?void 0:s.response)||void 0===i?void 0:i.eligibleSpeed)||void 0===a?void 0:a.maxSpeed,_=null===(r=null===(d=null==s?void 0:s.response)||void 0===d?void 0:d.eligibleSpeed)||void 0===r?void 0:r.plannedUpgrades,h=null===(c=null==s?void 0:s.response)||void 0===c?void 0:c.eligibleAccess;try{"undefined"!=typeof window&&localStorage.setItem("lineCheckResponse",JSON.stringify({eligibleBundle:m,configEligibleBundle:p,maxUploadDownloadSpeed:v,plannedUpgrade:_,originalLinecheckResponse:null==s?void 0:s.response}));try{"undefined"!=typeof window&&localStorage.setItem("one-commerce-access-type",JSON.stringify(h))}catch(e){}"undefined"!=typeof window&&u.set("one-commerce-access-type",JSON.stringify(h),{path:"/",expires:3})}catch(e){}return{corelationaId:s.corelationaId,lineCheckResponse:null==s?void 0:s.response,eligibleBundle:m,maxUploadDownloadSpeed:v,configEligibleBundle:p,plannedUpgrade:_}}));var lo="LineCheckInput-module_errorfield__hEZF5",io="LineCheckInput-module_errormsg__SVc94",ao="LineCheckInput-module_truncation__80rK4",ro="LineCheckInput-module_checking__aIxIH",co="LineCheckInput-module_address__oRhfO",so="LineCheckInput-module_secondarybutton__5iCpn",uo="LineCheckInput-module_secondarybutton-mobile__USH6B",mo="LineCheckInput-module_ul-disabled__oA7jV",po="LineCheckInput-module_list__JA3Jx";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.LineCheckInput-module_errorfield__hEZF5 {\n border: 2px solid #c60047 !important;\n}\n\n.LineCheckInput-module_errormsg__SVc94 {\n color: #c60047;\n font-size: 12px;\n line-height: 16px;\n font-weight: 500;\n padding-top: 4px;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_errormsg__SVc94 {\n margin-left: 16px;\n }\n}\n\n.LineCheckInput-module_truncation__80rK4 {\n text-overflow: ellipsis;\n}\n\n.LineCheckInput-module_checking__aIxIH {\n padding-right: 28px !important;\n}\n\n@media (max-width: 767px) {\n .LineCheckInput-module_address__oRhfO {\n position: relative;\n top: 10px;\n }\n}\n\n.LineCheckInput-module_secondarybutton__5iCpn {\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n color: #da291c;\n padding: 16px 0px 0px;\n background-color: #ffffff;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_secondarybutton__5iCpn {\n background-color: #ffffff;\n padding: 16px;\n border-radius: 12px;\n margin: 16px 20px;\n height: 52px;\n }\n}\n\n.LineCheckInput-module_secondarybutton-mobile__USH6B {\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n color: #da291c;\n padding: 16px 0px 0px;\n background-color: #ffffff;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_secondarybutton-mobile__USH6B {\n background-color: #ffffff;\n padding: 16px 0px;\n border-radius: 12px;\n margin: 16px 0px;\n height: 52px;\n }\n}\n\n@media (min-width: 768px) {\n .LineCheckInput-module_ul-disabled__oA7jV {\n position: relative;\n top: 29px;\n background-color: #FFFFFF;\n margin-right: 16px;\n left: -1px;\n }\n .LineCheckInput-module_ul-disabled__oA7jV .LineCheckInput-module_list__JA3Jx {\n box-shadow: 0px 8px 24px rgba(51, 51, 51, 0.2);\n cursor: pointer;\n padding: 12px;\n text-align: left;\n width: 100%;\n z-index: 1000;\n transition: all 1s ease-in;\n }\n}\n.LineCheckInput-module_errorbutton__wd49l {\n background-color: #ffffff;\n padding: 0 16px 0 12px;\n border-radius: 12px;\n color: #da291c;\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n margin-top: 16px;\n margin-bottom: 8px;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_errorbutton__wd49l {\n background-color: transparent;\n padding: 0 16px 0 8px;\n }\n}");const vo=e.forwardRef((({content:n,parentCallback:o,parentAddress:l,isAddressNotFilled:i,onChange:a,name:d,apiError:r,setApiError:c,setFetchingLineCheck:s,checkAvailability:u,onData:m,FetchingLineCheck:p,setSelectedAddress:v,ref:_,Address:h,setIndivialOpen:g,indivialOpen:f,setAddressNotFilled:b})=>{var x,y,w,S,C,k;const[P,T]=e.useState(!1),[O,N]=e.useState(!1),[L,D]=e.useState(""),[I,M]=e.useState(""),[V,B]=e.useState(),[A,F]=e.useState(!1),R=e.useRef(),j=we();e.useEffect((()=>{P&&I?"differentAddress"===d&&"function"==typeof o&&o({}):D("")}),[I,P]),e.useEffect((()=>{"function"==typeof M&&M(l)}),[]),e.useEffect((()=>{O&&mn(null==n?void 0:n.errorMsg,Ge+" "+(null==n?void 0:n.title),He,Ye),!I&&i&&mn(null==n?void 0:n.requiredFieldText,Ge+" "+(null==n?void 0:n.title),He,Ye),L&&mn(L,Ge+" "+(null==n?void 0:n.title),He,Ye),O&&pn(Ye,He,Ge+" | "+(null==n?void 0:n.title),null==n?void 0:n.errorMsg),!I&&i&&pn(Ye,He,Ge+" | "+(null==n?void 0:n.title),null==n?void 0:n.requiredFieldText),L&&pn(Ye,He,Ge+" | "+(null==n?void 0:n.title),L)}),[O,i,L]);return e.useEffect((()=>{r&&("function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0})),"mobile"===j&&A&&"function"==typeof g&&g(Object.assign(Object.assign({},f),{indErrorOpen:!0})))}),[r]),e.useEffect((()=>{A&&!P&&"function"==typeof g&&g(Object.assign(Object.assign({},f),{indErrorOpen:!0}))}),[A,P]),e.createElement(e.Fragment,null,!A&&e.createElement(Jt,{inputValue:I||"",setInputValue:M,dropdownValue:V,placeholder:null==n?void 0:n.placeholder,ref:_,onChange:e=>{var o,l,i;"function"==typeof a&&a(e),"function"==typeof M&&M(null===(o=null==e?void 0:e.currentTarget)||void 0===o?void 0:o.value);let d=!1;d=new RegExp(`[${null==n?void 0:n.regexp}]`).test(null===(l=null==e?void 0:e.currentTarget)||void 0===l?void 0:l.value),N(d);((e,n,o)=>E(void 0,void 0,void 0,(function*(){var l;if(!n&&(null==e?void 0:e.length)>=3){o.current&&o.current.abort(),o.current=new AbortController;const n=o.current.signal,i=null===(l=null==At?void 0:At.getInstance())||void 0===l?void 0:l.getBaseUrl();try{const o=yield fetch(`${i}${no}${_t}?count=10&address=${e.replace(/,(?=[^\s])/g,", ")}`,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","x-correlation-id":t.v4(),"x-sunrise-channel":vt},signal:n}),l=yield o.json();if(l){const e=[];return(null==l?void 0:l.items)&&(null==l||l.items.forEach((n=>{(null==n?void 0:n.street)&&(null==n?void 0:n.houseNumber)&&(null==n?void 0:n.postCode)&&(null==n?void 0:n.city)&&(n.concatedAddress=`${null==n?void 0:n.street} ${null==n?void 0:n.houseNumber},${null==n?void 0:n.postCode} ${null==n?void 0:n.city}`,e.push(n))}))),e}}catch(e){console.log(e)}}})))(null===(i=null==e?void 0:e.currentTarget)||void 0===i?void 0:i.value,d,R).then((e=>{e&&(null==e?void 0:e.error)||(null==e?void 0:e.length)<=0?(B([]),T(!0)):(B(e),T(!1))})).catch((e=>console.log(e)))},selectedData:e=>{"function"==typeof M&&M(e.concatedAddress),"function"==typeof o&&o(e,{openIndividualLineCheck:!1,availabilityCheckClicked:!1})},inputClassName:`${i?lo:""} ${p||u?"":ro} ${ao} form-control `,minLength:null==n?void 0:n.linecheckMinLength,maxLength:null==n?void 0:n.linecheckMaxLength,name:d,content:n,addressNotFound:P,setApiError:c,setFetchingLineCheck:s,checkAvailability:u,FetchingLineCheck:p,setaddressNotFound:T}),O&&e.createElement("p",{className:io},null==n?void 0:n.errorMsg),e.createElement("div",{className:co},!I&&i&&e.createElement("p",{className:io},e.createElement("img",{src:null===(w=null===(y=null===(x=null==n?void 0:n.linecheckIcons)||void 0===x?void 0:x[0])||void 0===y?void 0:y.warning)||void 0===w?void 0:w.filename,height:"12px",width:"16px",alt:"alert"}),null==n?void 0:n.requiredFieldText)),r&&"mobile"==j&&!A&&!p&&e.createElement("p",{className:uo,onClick:()=>{"function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0}))}},null==n?void 0:n.noAddress,e.createElement("span",null,e.createElement("img",{src:null===(S=null==n?void 0:n.arrowIcon)||void 0===S?void 0:S.filename,height:24,width:24,alt:"right-arrow"}))),P&&!A&&!p&&e.createElement("div",null,"mobile"===j&&e.createElement("p",{className:uo,onClick:()=>{"function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0}))}},null==n?void 0:n.noAddress,e.createElement("span",null,e.createElement("img",{src:null===(C=null==n?void 0:n.arrowIcon)||void 0===C?void 0:C.filename,height:24,width:24,alt:"right-arrow"})))),A&&e.createElement(eo,{parentCallBackIndividual:(e,n)=>{""!==(null==e?void 0:e.postCode)&&""!==e.city&&""!==e.houseNumber&&""!==e.street&&""!==e.concatedAddress&&"function"==typeof o&&o(e,{openIndividualLineCheck:A,availabilityCheckClicked:n})},content:n,apiError:r,setApiError:c,setFetchingLineCheck:s,setSelectedAddress:v,openIndividualLineCheck:A,FetchingLineCheck:p,addressRef:_,selected:h,addressNotFound:P,setaddressNotFound:T,isAddressNotFilled:i,setAddressNotFilled:b,setIndivialOpen:g}),(P&&!A||!p&&!P&&A)&&"mobile"!=j&&e.createElement(e.Fragment,null,!(!p&&!P&&A)&&e.createElement("div",{className:mo},e.createElement("p",{className:`${so} ${po} `,onClick:()=>{"function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0}))}},null==n?void 0:n.noAddress,e.createElement("span",null,e.createElement("img",{src:null===(k=null==n?void 0:n.arrowIcon)||void 0===k?void 0:k.filename,height:24,width:24,alt:"right-arrow"}))))))}));var _o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var go={},fo={
1
+ "use strict";var e=require("react"),n=require("@sunrise-upc/ajax-lib"),t=require("uuid"),o=require("react-bootstrap"),l=require("storyblok-rich-text-react-renderer-ts"),i=require("react-select"),a=require("react-bootstrap/Modal"),d=require("react-bootstrap/CloseButton"),r=require("react-bootstrap/Container"),c=require("react-bootstrap/Row"),s=require("react-bootstrap/Col"),u=require("js-cookie"),m=require("react-multi-carousel"),p=require("react-bootstrap/Form"),v=require("react-loading-skeleton"),_=require("react-dom");function h(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}h(".Button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n min-width: 32px;\r\n min-height: 32px;\r\n background-color: aliceblue;\r\n}\r\n\r\n.Button-primary {\r\n background-color: aqua; \r\n}\r\n.Button-secondary{\r\n background-color: burlywood;\r\n}\r\n.Button-error {\r\n background-color: red;\r\n}");class g{constructor(e){this.config={baseURL:"",cartURL:"",storyBlokURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.getSBUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.storyBlokURL)&&void 0!==n?n:""},this.config=e}}g.getInstance=()=>g.instance,g.create=e=>{g.instance=new g(e)};class f{constructor(e){this.config={assetPath:"",basicConfigUrl:""},this.getAssetPath=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.assetPath)&&void 0!==n?n:""},this.getBasicConfigUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.basicConfigUrl)&&void 0!==n?n:""},this.config=e}}f.getInstance=()=>f.instance,f.create=e=>{f.instance=new f(e)};const b={ADDR_SUGG:"address-suggestion/",CATELOG_MGMT:"catalogue-management/",CART_MGMT:"basket-management/",CUSTOMER:"customer-management/",STORYBLOK:"storyblok-management/",LOGINMETHOD:"login-method",LOGIN:"login",MTANLOGIN:"login-mtan",LOGINPOLICY:"my.policy",LOGIN_OTP:"login-otp",LOGIN_MFA:"login-mfa"},x={X_SUN_CHAL:"ESHOP",LINE_TABLEV2:"v2/offer",LINE_TABLEV3:"v3/offer",CREATE_CARTV2:"carts/v2",CREATE_CARTV3:"carts/v3",SUBSCRIPTION:"?subscriptionType=",VOUCHER_PROMOTIONS:"v1/voucher-promotions",HARDWARES:"v1/hardwares?filterSearchOption.id=",HARDWARE_DEVICES:"v1/hardwares?filterSearchOption.id=parent__true&filterSearchOption.id=residual__true&filterSearchOption.id=category__sellableMobilePostpaidDevices&priceRequired=false&filterSearchOption.id=",TV_SERVICE_OPTIONS_V2:"v2/service-optionByCategory?category=category__popUpTvOptions",CUSTOMER_EVENTS:"events"},y="rest/cms/singlestory",w="rest/cms/dsource_entries?datasource=one-ecommerce-constant-keys",S="rest/cms/stories";function C(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}function E(e,n,t,o){return new(t||(t=Promise))((function(l,i){function a(e){try{r(o.next(e))}catch(e){i(e)}}function d(e){try{r(o.throw(e))}catch(e){i(e)}}function r(e){var n;e.done?l(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,d)}r((o=o.apply(e,n||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;class k{constructor(e){this.config={baseURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getAPIServiceObject=()=>{if(!this.apiServiceObject){const e={options:void 0,props:{incCsrf:!0,baseUrl:this.getBaseUrl()}};this.apiServiceObject=n.ApiServiceV2.getApiServiceInstance(e)}return this.apiServiceObject},this.config=e}}k.getInstance=()=>k.instance,k.create=e=>{k.instance=new k(e)};const P="none",T="falconDescription",O="falconAccordionList",N="spacer",L="fixnet",D="defaultWirelineBundle",I="defaultMobilePostpaidBundle",M="vctype",V="voucher",B="one-ecommerce-hardwareSummary",A="CONTRACT",F="HARDWARE",R="mobile",j="desktop",z="large-desktop",U="tablet",W={EN:"English",FR:"Français",IT:"Italiano",DE:"Deutsch"},$="LOGIN_MFA",H="DEPRICATING_SMS",Y="DEPRICATING_EMAIL",G="DEPRICATED_EMAIL",q="OTP_NR_LIST",K="PW_CHANGED",X="OTP_SMS_OLD",Q="OTP_SMS_NEW",J="OTP_SMS",Z="OTP_EMAIL",ee="OTP_NR_NEW",ne="LOGIN_OTP",te="PW_RESET",oe="OTP_NR_ADD",le="OTP_NR_CONFIRM",ie="OTP_NR_CHANGE",ae="PW_FORGOT";var de;!function(e){e.EMAIL="Email_Id",e.CLI="CLI",e.CUSTOMER_NUMBER="SiteID",e.MSISDN="MSISDN"}(de||(de={}));const re=e=>e?e.replace(/\s+/g,""):"",ce=e=>(9===e.length&&/^[a|A]{0,1}[0-9]+$/.test(e)&&(e="0"+e),/^[a-zA-Z0-9.!#$%&’*+\=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(String(e).toLowerCase())||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())?de.EMAIL:/^07[5-9][0-9]{7}$/gi.test(e)||/^00417[6-9][0-9]{7}$/gi.test(e)||/^0417[6-9][0-9]{7}$/gi.test(e)||/^\+417[6-9][0-9]{7}$/gi.test(e)||/^004107[6-9][0-9]{7}$/gi.test(e)||/^04107[6-9][0-9]{7}$/gi.test(e)||/^\+4107[6-9][0-9]{7}$/gi.test(e)?de.MSISDN:/^0[1-9][0-9]{8}$/gi.test(e)||/^0041[1-9][0-9]{8}$/gi.test(e)||/^041[1-9][0-9]{8}$/gi.test(e)||/^\+41[1-9][0-9]{8}$/gi.test(e)||/^00410[1-9][0-9]{8}$/gi.test(e)||/^0410[1-9][0-9]{8}$/gi.test(e)||/^\+410[1-9][0-9]{8}$/gi.test(e)?de.CLI:e.toLowerCase().startsWith("a")&&/^A|a[0-9]{10}$/gi.test(e)||/^[0-9]{10}$/gi.test(e)?de.CUSTOMER_NUMBER:void 0),se=e=>{e=e.replace(/\s/g,"");const n=ce(e);if(n&&n!==de.EMAIL){if(e.length>10&&e.startsWith("0041")){const n=e.replace("0041","");return n.startsWith("0")?n:"0"+n}if(e.length>10&&e.startsWith("+41")){const n=e.replace("+41","");return n.startsWith("0")?n:"0"+n}if(e.length>10&&e.startsWith("041")){const n=e.replace("041","");return n.startsWith("0")?n:"0"+n}return 9!==e.length||/^[a-zA-Z]/.test(e)||e.startsWith("0")||e.startsWith("0041")||e.startsWith("+41")||e.match(/^(?:00|\+)[0-9]{1,2}/)?/^[a-zA-Z]/.test(e)||ce(e)!==de.CUSTOMER_NUMBER||e.startsWith("+")&&(10!==e.length||!e.startsWith("00"))?e:"A"+e:"0"+e}return e},ue=(e,n)=>{const t=n?(e=>/^0041[1-9][0-9]{8}$/gi.test(e)?[4,6,9,11]:/^00410[1-9][0-9]{8}$/gi.test(e)?[4,7,10,12]:/^0410[1-9][0-9]{8}$/gi.test(e)||/^\+410[1-9][0-9]{8}$/gi.test(e)?[3,6,9,11]:[3,5,8,10])(e?e.replace(/\s+/g,""):""):9===(null==e?void 0:e.length)?[2,5,7]:[3,6,8];return me(e," ",t)},me=(e,n,t)=>{if("undefined"===e||!e)return"";const o=e.split(n).join("");let l="";for(let e=0;e<o.length;e++)t.includes(e)&&(l+=n),l+=o[e];return l},pe=(e,n,o)=>E(void 0,void 0,void 0,(function*(){var l;const i=null==k?void 0:k.getInstance(),a=null==i?void 0:i.getBaseUrl();o.current&&o.current.abort(),o.current=new AbortController;const d=o.current.signal;if(a){const o=new URLSearchParams;e&&o.append("action",e),n&&(null===(l=[X,Q,J,Z])||void 0===l?void 0:l.includes(e))&&o.append("otp",n),n&&e===ee&&o.append("msisdn",n),n&&e===q&&o.append("recipient",n),n&&e===te&&o.append("password",n);try{const e=yield fetch(`${a}${null==b?void 0:b.LOGINPOLICY}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},body:o.toString(),signal:d}),n=yield e.json();if(n&&(null==n?void 0:n.status))return n;return n&&((null==n?void 0:n.errorcode)||(null==n?void 0:n.errorCode))}catch(e){return e}}})),ve=(e,n,o,l,i,a,d)=>E(void 0,void 0,void 0,(function*(){i.current&&i.current.abort(),i.current=new AbortController;const r=i.current.signal,c=null==k?void 0:k.getInstance(),s=null==c?void 0:c.getBaseUrl();if(s){const i=new URLSearchParams;e&&i.append("action",e),o&&i.append("username",o),a&&i.append("language",a),l&&i.append("password",l),d&&i.append("remember",d.toString());try{const e=yield fetch(`${s}${n}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},body:i.toString(),signal:r}),o=yield e.json();if(o&&(null==o?void 0:o.status))return o;return o&&((null==o?void 0:o.errorcode)||(null==o?void 0:o.errorCode))}catch(e){return e}}})),_e=e=>{switch(e){case"grey-600":return"falcon-grey-600";case"grey-500":return"falcon-grey-500";case"grey-100":return"falcon-grey-100";case"grey-400":return"falcon-grey-400";case"ice-white":return"falcon-ice-white";default:return""}},he=(e,n)=>{const t=[];let o,l,i=0;[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height="unset",t.push(null==l?void 0:l.clientHeight),i++)})),o=Math.max(...t),i=0,[...Array(n)].forEach((()=>{l=document.getElementById(`${e}${i}`),null!=l&&(l.style.height=`${o}px`),i++}))},ge=e=>{switch(e){case"rubyglow-diagonal":return"falcon-gradient-rubyglow-diagonal";case"rubyglow-inverted-diagonal":return"falcon-gradient-rubyglow-inverted-diagonal";case"rubyglow-vertical":return"falcon-gradient-rubyglow-vertical";case"pinksky-diagonal":return"falcon-gradient-pinksky-diagonal";case"pinksky-inverted-diagonal":return"falcon-gradient-pinksky-inverted-diagonal";case"pinksky-vertical":return"falcon-gradient-pinksky-vertical";case"bluehaze-diagonal":return"falcon-gradient-bluehaze-diagonal";case"bluehaze-vertical":return"falcon-gradient-bluehaze-vertical";case"greencloud-diagonal":return"falcon-gradient-greencloud-diagonal";case"greencloud-inverted-diagonal":return"falcon-gradient-greencloud-inverted-diagonal";case"greencloud-vertical":return"falcon-gradient-greencloud-vertical";case"peachfog-diagonal":return"falcon-gradient-peachfog-diagonal";case"peachfog-inverted-diagonal":return"falcon-gradient-peachfog-inverted-diagonal";case"peachfog-vertical":return"falcon-gradient-peachfog-vertical";case"darkblue-haze":return"falcon-gradient-dark-blue-haze";case"skyfuel-diagonal":return"falcon-gradient-skyfuel-diagonal";case"skyfuel-vertical":return"falcon-gradient-skyfuel-vertical";case"skyfuel-inverted-diagonal":return"falcon-gradient-skyfuel-inverted-diagonal";default:return""}},fe=e=>{e=Number(e);let n=0;return n=new RegExp("^[0-9][^.]*$").test(e.toString())?e+".-":e.toFixed(2).replace(/\.00$/,""),n},be=(e,n,t)=>{let o=null;const l=new Date;o={value:n,expiry:t?l.getTime()+t:null},localStorage.setItem(e,JSON.stringify(o))},xe=e=>{const n="undefined"!=typeof window&&localStorage.getItem(e),t=new Date;if(!n)return null;let o={};try{if(o=JSON.parse(n),o.expiry&&t.getTime()>o.expiry)return ye(e),null}catch(e){return n}return null==o?void 0:o.value},ye=e=>{localStorage.removeItem(e)},we=()=>{const[n,t]=e.useState(0);return e.useEffect((()=>{const e=()=>{t(window.innerWidth)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),n>=1440?"large-desktop":n<1440&&n>=1024?"desktop":n<1024&&n>=768?"tablet":n<768&&n>0?"mobile":""},Se=()=>{const[n,t]=e.useState(!1),o=()=>{const e=window.matchMedia("(pointer:coarse)");t(e.matches)};return e.useEffect((()=>(o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o))),[]),n},Ce=(e,n)=>null==e?void 0:e.replace(/{\w+}/g,(e=>n[e.substring(1,e.length-1)]||e)),Ee=e=>{switch(e){case"success":return"/icons/checksuccess.svg";case"error":return"/icons/error.svg";case"info":case"infoWhite":return"/icons/info.svg";case"warning":return"/icons/alert.svg";case"tip":return"/icons/tip.svg";default:return""}},ke=e=>"undefined"!=typeof window?e=="/"+window.document.documentElement.getAttribute("lang")+"/"?void 0:e:"#",Pe=(e,n)=>{const[t]=["https://a.storyblok.com/f/113473/"],[o]=[e+"asset/"];return n?n.replace(t,`${o}`):n||""},Te=n=>{var t;const i=we(),a=Se(),d="mobile"===i||"tablet"===i||a,r=null===(t=null==f?void 0:f.getInstance())||void 0===t?void 0:t.getAssetPath();return e.createElement("div",null,l.render(n.content,{markResolvers:{link:(t,l)=>{const{href:i,target:a,linktype:c}=l;return"email"===c?e.createElement("a",{href:`mailto:${i}`,target:null===a||"_self"===a?"_top":"_blank"},t):n.isIFrame?e.createElement("a",{href:i,target:null===a||"_self"===a?"_top":"_blank"},t):e.createElement(e.Fragment,null,(null==n?void 0:n.linkAsTooltip)&&(null==n?void 0:n.toolTipText)?e.createElement(o.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:d?"click":"hover",overlay:(null==n?void 0:n.toolTipText)?e.createElement(o.Popover,{id:"popover-basic"},e.createElement(o.Popover.Body,null,null==n?void 0:n.toolTipText,d&&r&&e.createElement("img",{src:`${r}/icons/overlay-close.svg`,alt:"close",style:{float:"right"},width:24,height:24,onClick:()=>{var e;return null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.click()}}))):e.createElement(e.Fragment,null)},e.createElement("span",null,t)):e.createElement("a",{href:i,target:null===a?"":a},t))}}}))},Oe="addtocart",Ne="Sunrise",Le="Sticky Line Table",De="select_promotion",Ie="view_promotion",Me="download_product_details",Ve="gaEvent",Be="Stage Teaser",Ae="Line Table",Fe="Line Table - Product",Re="Line Table - Device",je="combine_with_device",ze="tab_click",Ue="All",We="promotion_popup",$e="click",He="Missing or Invalid Error",Ye="error",Ge="fixnet",qe="sunriseAuth",Ke="error",Xe="login",Qe="Remember me | Selected",Je="Remember me | not selected",Ze="unSuccess via password",en="LoginError",nn="loginUnSuccessful",tn="failed",on="Internet",ln="Mobile",an="POSTPAID",dn="INTERNET",rn=(e,n,t)=>{window.dataLayer.push(Object.assign({event:e,event_name:n},t))};let cn;const sn=(e,n,t)=>{window.dataLayer.push(Object.assign({event:e,event_name:n},t))},un=(e,n,t)=>{const o={eventAction:e,eventValue:n,timeStamp:Math.round(Date.now()/1e3),type:t};"dropDownClick/enter/leftClick"==t&&(t=$e);try{"view"==t?(cn=[],window.appEventData.push({event:t,eventInfo:o,component:cn})):window.appEventData.push({event:t,eventInfo:o})}catch(e){}},mn=(e,n,t,o,l,i)=>{const a={description:e,source:n,title:t,type:o,guid:l,errorID:i};"dropDownClick/enter/leftClick"==o&&(o=$e);try{const{guid:e,errorID:n}=a,t=C(a,["guid","errorID"]);"error"==o&&null==e&&null==n||"success"==o||"general"==o?window.appEventData.push({event:"message",message:t}):void 0!==e&&void 0!==n&&window.appEventData.push({event:"message",message:a})}catch(e){}},pn=(e,n,t,o,l)=>{const i={message_type:e,message_title:n,message_source:t,message_reason:o,message_guid:l};try{if(void 0!==l)window.dataLayer.push(Object.assign({event:"gaEvent",event_name:"error_event"},i));else{const l={message_type:e,message_title:n,message_source:t,message_reason:o};window.dataLayer.push(Object.assign({event:"gaEvent",event_name:"error_event"},l))}}catch(e){}},vn=e=>{var n,t,o,l,i,a,d,r,c,s,u;const m=null!==(t=(null==e?void 0:e.data)&&(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.code))&&void 0!==t?t:null==e?void 0:e.status,p=null!==(l=(null==e?void 0:e.data)&&(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.message))&&void 0!==l?l:null==e?void 0:e.statusText,v=null!==(a=(null==e?void 0:e.data)&&(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.id))&&void 0!==a?a:"",_=null!==(r=(null==e?void 0:e.data)&&(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.supplierCode))&&void 0!==r?r:"";let h="";try{h=null===(c=null==e?void 0:e.request)||void 0===c?void 0:c.responseURL,h=null===(u=null===(s=null==h?void 0:h.split("/"))||void 0===s?void 0:s.slice(5))||void 0===u?void 0:u.join("-")}catch(e){console.log("Error while formatting aPI",e)}const g={event:"gaEvent",event_name:"error_event",message_guid:m,message_reason:`MSA: ${p}`,message_source:`fixnet | ${h}`,message_title:"Api errror",message_type:"Error",message_apiinfo:`${v} | ${_}`};try{window.dataLayer.push(g)}catch(e){console.log("Error while inserting into datalayer",e)}},_n=(e,n,t,o,l,i)=>{try{if(n&&t&&o&&l&&i){const a={loginType:e,accountID:n,language:t,lastLoginDate:o,type:l,existingUser:i};window.appEventData.push({user:a})}else{const n={loginType:e};window.appEventData.push({user:n})}}catch(e){}};var hn="ReusableLogin-module_login-container__Ad6KQ",gn="ReusableLogin-module_icon-container__FGJQU",fn="ReusableLogin-module_back-text__MKh1u",bn="ReusableLogin-module_loginmodal__XhQt-",xn="ReusableLogin-module_inputSuccess__dK7Uz",yn="ReusableLogin-module_iconcontainer__QpoFB",wn="ReusableLogin-module_logintitle__bnFYd",Sn="ReusableLogin-module_loginmodalLabel__gakRq",Cn="ReusableLogin-module_confirmbtn__woa5L",En="ReusableLogin-module_horizontalline__ew-1o",kn="ReusableLogin-module_infotooltip__e3Al0",Pn="ReusableLogin-module_eyeicon__XTxJn",Tn="ReusableLogin-module_credentialerror__T9TK0",On="ReusableLogin-module_tempcode__rzrt5",Nn="ReusableLogin-module_warningicon__3HIvk",Ln="ReusableLogin-module_blockedcontent__OQn79",Dn="ReusableLogin-module_warningcontent__KzTOC",In="ReusableLogin-module_technicalerror__n3C0N",Mn="ReusableLogin-module_updatedetails__DHwPR",Vn="ReusableLogin-module_loginmodalrem__GKQDm",Bn="ReusableLogin-module_checkmark__XKH5n";h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ReusableLogin-module_login-container__Ad6KQ {\n align-items: center;\n background-color: white;\n box-shadow: -1px 18px 25px 5px rgba(87, 84, 82, 0.4);\n display: flex;\n flex-direction: column;\n justify-content: center;\n max-width: 624px;\n padding: 24px 32px;\n position: absolute;\n width: 100%;\n border-radius: 4px;\n}\n@media (max-width: 767px) {\n .ReusableLogin-module_login-container__Ad6KQ {\n padding: 16px;\n }\n}\n\n.ReusableLogin-module_login-header__hzlgu {\n width: 100%;\n margin-bottom: 24px;\n display: flex;\n justify-content: space-between;\n}\n\n.ReusableLogin-module_login-header__hzlgu span {\n cursor: pointer;\n}\n\n.ReusableLogin-module_login-header__hzlgu img {\n cursor: pointer;\n}\n\n.ReusableLogin-module_icon-container__FGJQU {\n width: 24px;\n height: 24px;\n}\n\n.ReusableLogin-module_back-text__MKh1u {\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n color: #da291c;\n padding-left: 4px;\n}\n\n.ReusableLogin-module_channel-selection-title__0iFVE {\n font-weight: 700;\n line-height: 36px;\n font-size: 28px;\n text-align: center;\n margin-bottom: 24px;\n}\n\n.ReusableLogin-module_channel-selection-description__MFGOM {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n text-align: left;\n color: #333333;\n margin-bottom: 24px;\n}\n\n.ReusableLogin-module_btn-primary__9w79K {\n background: #d9415c;\n border: none;\n border-radius: 28px;\n color: #ffffff;\n font-weight: 700;\n overflow: visible;\n padding: 14px 24px;\n}\n.ReusableLogin-module_btn-primary__9w79K:disabled {\n background-color: #e6e3df;\n color: #b3aeaa;\n cursor: default;\n}\n@media (max-width: 767px) {\n .ReusableLogin-module_btn-primary__9w79K {\n padding: 10px 24px;\n }\n}\n\n.ReusableLogin-module_errorMsg__pDhM4 {\n color: #bf0760;\n display: flex;\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-bottom: 4px;\n}\n\n.ReusableLogin-module_resend__DQ50C {\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n color: #3d3935;\n}\n\n.ReusableLogin-module_loginmodal__XhQt- {\n align-items: center;\n background-color: rgba(87, 84, 82, 0.4);\n font-size: 16px;\n line-height: 24px;\n color: #333333;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n padding: 16px;\n position: fixed;\n top: 0;\n transition: opacity 3s;\n width: 100%;\n z-index: 11;\n}\n.ReusableLogin-module_loginmodal__XhQt- input {\n background: #f7f6f5 !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input:focus {\n border: 2px solid #3D3935 !important;\n border-radius: 4px;\n}\n.ReusableLogin-module_loginmodal__XhQt- input:disabled {\n background: #e6e3df !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input.ReusableLogin-module_inputSuccess__dK7Uz {\n border-color: #8fd200 !important;\n box-shadow: 0 0 0 1px #8fd200 !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input::-webkit-outer-spin-button, .ReusableLogin-module_loginmodal__XhQt- input::-webkit-inner-spin-button {\n -webkit-appearance: none !important;\n margin: 0 !important;\n}\n.ReusableLogin-module_loginmodal__XhQt- input[type=number] {\n -moz-appearance: textfield !important;\n}\n\n.ReusableLogin-module_iconcontainer__QpoFB {\n bottom: 14px;\n position: absolute;\n right: 12.25px;\n}\n\n.ReusableLogin-module_logintitle__bnFYd {\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n text-align: center;\n width: 100%;\n}\n\n.ReusableLogin-module_formControl__hBGQP {\n border: none;\n padding: 14px 0;\n}\n.ReusableLogin-module_formControl__hBGQP::-ms-reveal {\n display: none;\n}\n.ReusableLogin-module_formControl__hBGQP:focus, .ReusableLogin-module_formControl__hBGQP:not(:placeholder-shown) {\n border-color: black;\n box-shadow: none;\n}\n\n.ReusableLogin-module_loginmodalLabel__gakRq {\n overflow: hidden;\n right: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ReusableLogin-module_confirmbtn__woa5L {\n height: 52px;\n width: 150px;\n}\n\n.ReusableLogin-module_horizontalline__ew-1o {\n border: 1px solid #e5e5e5;\n margin: 25px 0px;\n width: 70%;\n}\n\n.ReusableLogin-module_infotooltip__e3Al0 {\n font-size: 12px;\n line-height: 1.33;\n margin-top: 4px;\n}\n\n.ReusableLogin-module_eyeicon__XTxJn {\n display: inline-block;\n height: 24px;\n margin-left: 8px;\n width: 24px;\n}\n\n.ReusableLogin-module_credentialerror__T9TK0 {\n color: #bf0760;\n display: flex;\n font-size: 12px;\n font-weight: 400;\n height: 32px;\n line-height: 16px;\n margin-top: 4px;\n position: absolute;\n top: 52px;\n}\n\n.ReusableLogin-module_tempcode__rzrt5 {\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n padding: 16px 0 0;\n}\n\n.ReusableLogin-module_warningicon__3HIvk {\n content: "";\n display: inline-block;\n height: 16px;\n margin-right: 4px;\n margin-top: 2px;\n width: 16px;\n}\n\n.ReusableLogin-module_blockedcontent__OQn79 {\n align-items: flex-start;\n background: #f9e7f0;\n border: 1.5px solid #bf0760;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n height: 120px;\n justify-content: center;\n padding: 16px 16px 8px;\n}\n\n.ReusableLogin-module_warningcontent__KzTOC {\n align-items: flex-start;\n background: #FFFAE6;\n border: 1.5px solid #ffc805;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n height: 120px;\n justify-content: center;\n padding: 16px 16px 8px;\n}\n\n.ReusableLogin-module_technicalerror__n3C0N {\n height: 90px;\n}\n\n.ReusableLogin-module_updatedetails__DHwPR {\n color: #da291c;\n cursor: pointer;\n margin: 0 5px;\n text-decoration: underline;\n}\n\n.ReusableLogin-module_loginmodalrem__GKQDm {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n cursor: pointer;\n display: block;\n font-weight: 700;\n padding-left: 28px;\n position: relative;\n text-align: left;\n user-select: none;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm input {\n cursor: pointer;\n height: 0;\n opacity: 0;\n position: absolute;\n width: 0;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm input:checked ~ .ReusableLogin-module_checkmark__XKH5n {\n background-color: #da291c;\n border: 2px solid #da291c;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm input:checked ~ .ReusableLogin-module_checkmark__XKH5n:after {\n display: block;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm .ReusableLogin-module_checkmark__XKH5n {\n border: 2px solid #5f5955;\n border-radius: 4px;\n height: 20px;\n left: 0;\n position: absolute;\n top: 2px;\n width: 20px;\n}\n.ReusableLogin-module_loginmodalrem__GKQDm .ReusableLogin-module_checkmark__XKH5n:after {\n -ms-transform: rotate(45deg);\n -webkit-transform: rotate(45deg);\n border: solid white;\n border-width: 0 3px 3px 0;\n height: 10px;\n left: 5px;\n top: 2px;\n transform: rotate(45deg);\n width: 5px;\n}');const An=({content:n,changeCurrentView:t,metadata:l,onSuccess:i,loginIcons:a,userID:d,password:r,isProdEnv:c=!0})=>{var s,u,m,p,v,_,h,g;const[f,x]=e.useState({userName:d,password:r}),[y,w]=e.useState(!1),[S,C]=e.useState(!1),[E,k]=e.useState(!1),[P,T]=e.useState(!1),[O,N]=e.useState(!1),[L,D]=e.useState(1),[I,M]=e.useState(""),[V,B]=e.useState(!1),[A,F]=e.useState(!1),[R,j]=e.useState(!1),[z,U]=e.useState(!1),[W,q]=e.useState(!1),[K,X]=e.useState(!1),Q=e.useRef(),Z=/^[0-9]+$/,ee=e=>{k(!1),B(!1),F(!1),j(!1);const n=e.target.value,t=e.target.id;"userName"===t&&(U(!1),q(!1),x(Object.assign(Object.assign({},f),{userName:n})),n&&n&&Z.test(n)?C(!0):C(!1)),"password"===t&&x(Object.assign(Object.assign({},f),{password:n}))},te=e=>{const t=/^(?:\+?\d+)$/,{userName:o,password:l}=f,i=(e=>{const n=se(e),t=ce(n);if(t&&t!==de.EMAIL&&t!==de.CUSTOMER_NUMBER){const n=e.match(/^((?:0|00|\+)[0-9]{1,2})(\d{3})(\d{2})(\d{2})(\d{2})(\d{1,2})?$/);return ue(e,!!(n&&n.length>0))}return e})(o.replace(/\s/g,""));if(x(Object.assign(Object.assign({},f),{userName:i})),o){const i=se(re(o));(e=>{const n=/^[a|A]{0,1}[0-9]+$/;return!(e.length<10||10!==e.length&&!n.test(e))&&!!n.test(e)&&(e.startsWith("a")||e.startsWith("A")?11===e.length:n.test(e)&&10===e.length)})(i)||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(i).toLowerCase())?e&&""!==l&&oe(i,l):(C(!1),t.test(i)?(q(!0),pn(Ye,He,Xe,null==n?void 0:n.invalidNumberMessage)):(U(!0),pn(Ye,He,Xe,null==n?void 0:n.invalidEmailMessage)))}},oe=(e,o)=>{w(!0);const a=ce(e)+" | Password";ve($,null==b?void 0:b.LOGIN_MFA,e,o,Q,null==l?void 0:l.lang,K).then((e=>{var o,l;"OK"===(null==e?void 0:e.status)?(localStorage.setItem("existingUser","true"),localStorage.setItem("userNameType",a),k(!1),i(),un("loginSuccessful","success via password",$e),sn(Ve,Xe,{result:"successful",message_title:"",login_type:a,selection:K?Qe:Je})):(null===(o=[H,Y,G,J])||void 0===o?void 0:o.includes(null==e?void 0:e.status))?(C(!1),t(null==f?void 0:f.userName,e)):"ERROR"===(null==e?void 0:e.status)?(F(!0),un(nn,Ze,$e),mn(null==n?void 0:n.technicalError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.technicalError)):"NOK"===(null==e?void 0:e.status)&&(null===(l=null==e?void 0:e.status)||void 0===l?void 0:l.segment)?(j(!0),C(!1),mn(null==n?void 0:n.invalidSegmentError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.invalidSegmentError),_n(a)):(k(!0),C(!1),le(),un(nn,Ze,$e),sn(Ve,Xe,{result:tn,message_title:null==n?void 0:n.userNameError,login_type:a,selection:K?Qe:Je}),mn(null==n?void 0:n.userNameError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.userNameError),_n(a))})).catch((e=>{k(!0),C(!1),console.log(e,"--\x3eerror"),un(nn,Ze,$e),mn(null==n?void 0:n.userNameError,Xe,en,Ke),sn(Ve,Xe,{result:tn,message_title:null==n?void 0:n.userNameError,login_type:a,selection:"Remember me | "+(K?"Selected":"not selected")}),pn(Ye,He,Xe,null==n?void 0:n.userNameError),_n(a)})).finally((()=>{w(!1)}))},le=()=>{var e,t,o,l,i;if((null==f?void 0:f.userName)===I?D(L+1):(D(1),M(null==f?void 0:f.userName)),L>=2&&L<4)B(!0),mn(null==n?void 0:n.invalidAttemptError,Xe,en,Ke),pn(Ye,He,Xe,null==n?void 0:n.invalidAttemptError);else if(4===L){B(!1),N(!0);const a=null===(i=null===(l=null===(o=null===(t=null===(e=null==n?void 0:n.loginBlockedError)||void 0===e?void 0:e.content)||void 0===t?void 0:t[0])||void 0===o?void 0:o.content)||void 0===l?void 0:l[0])||void 0===i?void 0:i.text;mn(a,Xe,en,Ke),pn(Ye,He,Xe,a)}},ie=e=>{"Enter"!==e.key||E||te(!0)};return e.createElement(e.Fragment,null,e.createElement("div",{className:wn},null==n?void 0:n.title),e.createElement("div",{className:"mt-4"}),O&&e.createElement(e.Fragment,null,e.createElement("div",{className:Ln},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(s=null==a?void 0:a.error)||void 0===s?void 0:s.filename,alt:"error",width:24,height:24})," "),e.createElement(Te,{content:null==n?void 0:n.loginBlockedError}))),e.createElement("div",{className:"mt-4"})),V&&e.createElement(e.Fragment,null,e.createElement("div",{className:Dn},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(u=null==a?void 0:a.warning)||void 0===u?void 0:u.filename,alt:"error",width:24,height:24})," "),e.createElement(Te,{content:null==n?void 0:n.invalidAttemptError}))),e.createElement("div",{className:"mt-4"})),(A||R)&&e.createElement(e.Fragment,null,e.createElement("div",{className:`${Dn} ${A&&In}`},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(m=null==a?void 0:a.warning)||void 0===m?void 0:m.filename,alt:"error",width:24,height:24})," "),A?e.createElement(Te,{content:null==n?void 0:n.technicalError}):e.createElement(Te,{content:null==n?void 0:n.invalidSegmentError}))),e.createElement("div",{className:"mt-4"})),e.createElement("div",{className:"form-floating w-100"},e.createElement("input",{type:"text",className:`form-control ${(E||z||W)&&"error-border"}\n `,id:"userName",placeholder:null==n?void 0:n.userNameLabel,value:null==f?void 0:f.userName,onChange:ee,autoComplete:"off",disabled:O,onBlur:()=>te(!1),onKeyDown:ie}),e.createElement("label",{className:`text-truncate w-100 ${Sn}`},null==n?void 0:n.userNameLabel),S&&e.createElement("p",{className:kn},null==n?void 0:n.infoText),(z||W)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(p=null==a?void 0:a.alertTriangle)||void 0===p?void 0:p.filename,alt:"alert",className:Nn}),z?null==n?void 0:n.invalidEmailMessage:null==n?void 0:n.invalidNumberMessage)),e.createElement("div",{className:"mt-4"}),e.createElement("div",{className:"form-floating w-100"},e.createElement("input",{type:P?"text":"password",className:`form-control ${E&&"error-border"} pe-5`,id:"password",placeholder:null==n?void 0:n.passwordLabel,value:null==f?void 0:f.password,onChange:ee,disabled:O,onKeyDown:ie}),e.createElement("label",{className:Sn},null==n?void 0:n.passwordLabel),e.createElement("div",{className:yn},e.createElement("span",{onClick:()=>!O&&T(!P)},P?e.createElement("img",{src:null===(v=null==a?void 0:a.eyeoff)||void 0===v?void 0:v.filename,alt:"eyeOff",className:Pn}):e.createElement("img",{src:null===(_=null==a?void 0:a.eye)||void 0===_?void 0:_.filename,alt:"eye",className:Pn}))),E&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(h=null==a?void 0:a.alertTriangle)||void 0===h?void 0:h.filename,alt:"alert",className:Nn}),null==n?void 0:n.userNameError)),e.createElement("div",{className:"w-100 d-flex justify-content-between mt-4"},!(null==n?void 0:n.hideRemMe)&&e.createElement("label",{className:`${Vn} me-auto`},e.createElement("input",{type:"checkbox",id:"remmberme",onChange:()=>X(!K),checked:K}),null==n?void 0:n.remLabel,e.createElement("span",{className:Bn},e.createElement("img",{src:null===(g=null==a?void 0:a.whiteTickmark)||void 0===g?void 0:g.filename,alt:"checkmark",role:"button",style:{marginBottom:"12px",marginLeft:"2px"}}))),(null==n?void 0:n.forgotPwdLink)&&e.createElement("a",{className:"text-decoration-none fw-bold ms-auto",onClick:()=>{Q.current&&Q.current.abort(),t(null==f?void 0:f.userName,{status:ae})}},null==n?void 0:n.forgotPwdLink)),e.createElement("div",null,e.createElement("button",{className:`primarybutton ${Cn} mt-4`,onClick:()=>te(!0),disabled:E||!f.password||!f.userName||O||z||W||y},y?e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}):null==n?void 0:n.nextButton)),!c&&e.createElement(e.Fragment,null,e.createElement("div",{className:En}),e.createElement("a",{className:`mb-2 text-decoration-none ${On}`,onClick:()=>{Q.current&&Q.current.abort(),t(null==f?void 0:f.userName,{status:ne}),un(Xe,null==n?void 0:n.otpLink,$e),sn(Ve,"get_temporary_code",{click_text:null==n?void 0:n.otpLink})}},null==n?void 0:n.otpLink)))};var Fn="ButtonStyles-module_Container__kud4M",Rn="ButtonStyles-module_changeButton__iri53",jn="ButtonStyles-module_continueButton__ymNDm",zn="ButtonStyles-module_inputField__4EF6W",Un="ButtonStyles-module_outerBar__g1Iol",Wn="ButtonStyles-module_innerBar__2kWNK",$n="ButtonStyles-module_good__RWgrf",Hn="ButtonStyles-module_great__1RIOR",Yn="ButtonStyles-module_valid__RF6MZ",Gn="ButtonStyles-module_resendcontent__luDgO";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ButtonStyles-module_Container__kud4M {\n color: #3D3935;\n}\n\n.ButtonStyles-module_changeButton__iri53 {\n border: 0;\n color: #da291c;\n background: none;\n font-weight: 700;\n}\n.ButtonStyles-module_changeButton__iri53:disabled {\n color: #b3aeaa;\n}\n\n.ButtonStyles-module_continueButton__ymNDm {\n background-color: #da291c;\n font-weight: 700;\n color: #ffffff;\n border-radius: 28px;\n padding: 14px 24px;\n border: 0;\n}\n.ButtonStyles-module_continueButton__ymNDm:disabled {\n background-color: #e6e3df;\n color: #b3aeaa;\n}\n\n.ButtonStyles-module_inputField__4EF6W {\n margin-top: 24px;\n}\n.ButtonStyles-module_inputField__4EF6W input {\n border-radius: 4px;\n min-width: 100%;\n padding: 14px 12px;\n border: 1px solid #b3aeaa;\n}\n.ButtonStyles-module_inputField__4EF6W span {\n font-size: 12px;\n line-height: 16px;\n}\n\n.ButtonStyles-module_outerBar__g1Iol {\n width: 100%;\n height: 4px;\n border-radius: 4px;\n background: #e6e3df;\n margin-bottom: 24px;\n}\n.ButtonStyles-module_outerBar__g1Iol .ButtonStyles-module_innerBar__2kWNK {\n height: 100%;\n border-radius: 4px;\n}\n.ButtonStyles-module_outerBar__g1Iol .ButtonStyles-module_innerBar__2kWNK.ButtonStyles-module_good__RWgrf {\n background: #ffc805;\n}\n.ButtonStyles-module_outerBar__g1Iol .ButtonStyles-module_innerBar__2kWNK.ButtonStyles-module_great__1RIOR {\n background: #8fd200;\n}\n\n.ButtonStyles-module_valid__RF6MZ {\n color: #8fd200;\n}\n\n.ButtonStyles-module_resendcontent__luDgO {\n align-items: flex-start;\n background: #f4fbe6;\n border: 1.5px solid #8fd200;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n height: 90px;\n justify-content: center;\n padding: 16px;\n}");var qn="ReactInputSelect-module_selectcontainer__3qYm1",Kn="ReactInputSelect-module_downArrowIcon__0aNJw",Xn="ReactInputSelect-module_transform180__LZhJD",Qn="ReactInputSelect-module_errormessage__b-fWF";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ReactInputSelect-module_selectcontainer__3qYm1 {\n position: relative;\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_downArrowIcon__0aNJw {\n display: inline-block;\n height: 24px;\n width: 24px;\n background-size: cover;\n background-position: center;\n margin-left: 8px;\n transform: rotate(0);\n transition: transform 0.3s;\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_downArrowIcon__0aNJw.ReactInputSelect-module_transform180__LZhJD {\n transform: rotate(180deg);\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_downArrowIcon__0aNJw:hover {\n cursor: pointer;\n}\n.ReactInputSelect-module_selectcontainer__3qYm1 .ReactInputSelect-module_errormessage__b-fWF {\n color: #c60047;\n font-size: 12px;\n line-height: 16px;\n margin-top: 4px;\n}");const Jn={},Zn=e.forwardRef((({name:n,options:t,content:o,disableValues:l=[],defaultValue:a=Jn,optionsValue:d="value",optionsLabel:r="label",disabled:c=!1,autoSelectValueFromOptions:s=!0,onChange:u,onSaveClicked:m=!1,menuPlacement:p,loginIcons:v=""},_)=>{var h;const[g,f]=e.useState(!1),[b,x]=e.useState(a),[y,w]=e.useState(!1),[S,C]=e.useState(!1),E=e=>{x(e),"function"==typeof u&&u(e?{name:n,value:e}:{name:n,value:{[d]:"",[r]:""}})};e.useEffect((()=>{for(let e=0;e<t.length;e++)if(t[e][d]===(null==b?void 0:b[d])){E({[d]:t[e][d],[r]:t[e][r]});break}}),[null===(h=t[0])||void 0===h?void 0:h[r]]),e.useEffect((()=>{a&&s&&x(a)}),[a]);Boolean(b)==S&&C(!S);return e.createElement("div",{className:qn},e.createElement(i,{className:`react-select-container ${S&&"errorborder"}`,name:n,instanceId:"React-select",classNamePrefix:"react-select",components:{DropdownIndicator:n=>{var t;return e.createElement(i.components.DropdownIndicator,Object.assign({},n),e.createElement("span",{className:`${Kn} ${n.selectProps.menuIsOpen?Xn:""}`},e.createElement("img",{src:null===(t=null==v?void 0:v.chevronDown)||void 0===t?void 0:t.filename})))},IndicatorSeparator:null},value:b,id:n,onChange:E,isClearable:!0,placeholder:"",menuPlacement:p,onFocus:()=>w(!0),onBlur:()=>{!g&&f(!0),w(!1)},backspaceRemovesValue:!0,options:t,ref:_,getOptionLabel:e=>e[r],getOptionValue:e=>e[d],filterOption:i.createFilter({ignoreCase:!0,ignoreAccents:!0,trim:!0,matchFrom:"start"}),isOptionDisabled:e=>l.includes(e[d]),isDisabled:c,isSearchable:!1}),!c&&(null==o?void 0:o.placeholder)&&e.createElement("label",{className:`${(b&&b[d]&&b[r]||y)&&"activeLabel"} selectcomplabel`},null==o?void 0:o.placeholder),S&&g&&""===(null==a?void 0:a.id)&&(null==o?void 0:o.errorMessage)&&e.createElement("span",{className:Qn},null==o?void 0:o.errorMessage))})),et=({useCase:n,mainContent:t,changeCurrentView:l,response:i,resetPwdSuccessContent:a,loginIcons:d,errorContent:r})=>{var c,s,u,m;const[p,v]=e.useState({}),[_,h]=e.useState([]),[g,f]=e.useState({}),[b,x]=e.useState(""),[y,w]=e.useState(""),[S,C]=e.useState(!1),[E,k]=e.useState(!1),P=e.useRef(),T=e=>{S&&P.current&&P.current.abort(),C(!0),k(!1),n===K?(l("",{status:$}),C(!1)):e&&pe(e,null==g?void 0:g.value,P).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):k(!0),C(!1)})).catch((e=>{C(!1),k(!0),console.log(e)}))};return e.useEffect((()=>{var e,o,l,d,r,c,s,u,m;t&&(n===H&&(null===(e=null==t?void 0:t.depSmsSection)||void 0===e?void 0:e.length)>0&&v(null===(o=null==t?void 0:t.depSmsSection)||void 0===o?void 0:o[0]),n===Y&&((null==i?void 0:i.msisdn)&&(null===(l=null==t?void 0:t.depEmailSection)||void 0===l?void 0:l.length)>0?v(null===(d=null==t?void 0:t.depEmailSection)||void 0===d?void 0:d[0]):v(null===(r=null==t?void 0:t.depEmailSectionV2)||void 0===r?void 0:r[0])),n===G&&(null===(c=null==t?void 0:t.emailDeprecatedSection)||void 0===c?void 0:c.length)>0&&v(null===(s=null==t?void 0:t.emailDeprecatedSection)||void 0===s?void 0:s[0]),n===q&&(null===(u=null==t?void 0:t.otpNumListSection)||void 0===u?void 0:u.length)>0&&v(null===(m=null==t?void 0:t.otpNumListSection)||void 0===m?void 0:m[0]),n===K&&a&&v(a))}),[n,t,i]),e.useEffect((()=>{var e,t;if(n)switch(n){case H:w(ie),x(le);break;case Y:(null==i?void 0:i.msisdn)?(w(ie),x(le)):(w(oe),x("OTP_CONTINUE"));break;case G:x(oe);break;case q:w(oe),x(q);break;case K:x(K)}if(i&&(null==i?void 0:i.recipients)&&(null===(e=null==Object?void 0:Object.keys(null==i?void 0:i.recipients))||void 0===e?void 0:e.length)>0&&n===q){const e=null===(t=(null==Object?void 0:Object.values(null==i?void 0:i.recipients))||[])||void 0===t?void 0:t.map(((e,n)=>{var t;return{value:`${n+1}`,name:0===n?`${null!=e?e:""} ${null!==(t=null==p?void 0:p.currentLbl)&&void 0!==t?t:""}`:null!=e?e:""}}));(null==e?void 0:e.length)>0&&(h(e),f(null==e?void 0:e[0]))}}),[i,p]),e.createElement("div",null,n===K&&e.createElement("img",{src:null!==(s=null===(c=null==d?void 0:d.checkmark)||void 0===c?void 0:c.filename)&&void 0!==s?s:"",alt:"chekcmark",className:"mb-4 d-flex mx-auto",width:72,height:72}),(null==p?void 0:p.title)&&e.createElement("h2",{className:"text-center my-4 p-0"},null==p?void 0:p.title),(null==p?void 0:p.description)&&e.createElement("div",{className:""+(n===K?"text-center":"")},e.createElement(Te,{content:JSON.parse(Ce(JSON.stringify(null==p?void 0:p.description),n===Y?(null==i?void 0:i.msisdn)?[null==i?void 0:i.recipient,null==i?void 0:i.msisdn]:[null==i?void 0:i.date]:n===H?[null==i?void 0:i.recipient]:[]))})),(null==_?void 0:_.length)>0&&n===q&&e.createElement("div",{className:"my-4"},e.createElement(Zn,{name:"phone number",content:p,options:_,optionsValue:"value",defaultValue:g,optionsLabel:"name",autoSelectValueFromOptions:!1,onChange:e=>{var n,t,o,l;f({value:null!==(t=null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.value)&&void 0!==t?t:"",name:null!==(l=null===(o=null==e?void 0:e.value)||void 0===o?void 0:o.name)&&void 0!==l?l:""})},disableValues:["empty"],loginIcons:d}),E&&(null==r?void 0:r.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==d?void 0:d.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==r?void 0:r.technicalError)),((null==p?void 0:p.primaryBtnLbl)||(null==p?void 0:p.secondaryBtnLbl))&&e.createElement("div",{className:"mt-4"},S&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),E&&(null==r?void 0:r.technicalError)&&e.createElement("p",{className:`${Tn} mb-2 mt-0 position-static h-auto justify-content-center`},e.createElement("img",{src:null===(m=null==d?void 0:d.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==r?void 0:r.technicalError),e.createElement("div",{className:"d-flex justify-content-center gap-4"},(null==p?void 0:p.secondaryBtnLbl)&&n!==G&&e.createElement("button",{className:Rn,onClick:()=>T(y),disabled:S},null==p?void 0:p.secondaryBtnLbl),(null==p?void 0:p.primaryBtnLbl)&&e.createElement("button",{className:jn,onClick:()=>T(b),disabled:S},null==p?void 0:p.primaryBtnLbl))))},nt=({useCase:n,content:t,changeCurrentView:l,metadata:i,userID:a,loginIcons:d,response:r,errorContent:c})=>{var s,u,m;const p=/^[0-9]+$/,[v,_]=e.useState(!0),[h,g]=e.useState(null!=a?a:""),[f,x]=e.useState(!1),[y,w]=e.useState(!1),[S,C]=e.useState(!1),E=e.useRef(),k=e=>{g(e),w(!1),p.test(e)&&(null==e?void 0:e.length)>=10?_(!1):_(!0)},P=()=>{if(f&&E.current&&E.current.abort(),x(!0),C(!1),w(!1),n===ee&&pe(n,h,E).then((e=>{x(!1),(null==e?void 0:e.status)?"MSISDN_INVALID"===(null==e?void 0:e.error)||"NOK"===(null==e?void 0:e.status)?w(!0):"ERROR"!==(null==e?void 0:e.status)?l("",e):C(!0):C(!0)})).catch((e=>{x(!1),C(!0),console.log(e)})),n===ne||n===ae){const e=se(re(h));ve(n,null==b?void 0:b.LOGIN_OTP,e,"",E,null==i?void 0:i.lang).then((e=>{x(!1),(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):C(!0)})).catch((e=>{x(!1),C(!0),console.log(e)}))}};return e.useEffect((()=>{a&&k(a)}),[a]),e.useEffect((()=>{n===ee&&(null==r?void 0:r.msisdn)&&!isNaN(Number(null==r?void 0:r.msisdn))&&k(null==r?void 0:r.msisdn)}),[r,n]),e.createElement("div",{className:Fn},(null==t?void 0:t.title)&&e.createElement("h2",{className:"text-center mb-4 mt-4"},null==t?void 0:t.title),(null==t?void 0:t.descriptionV2)&&e.createElement(Te,{content:null==t?void 0:t.descriptionV2}),e.createElement("div",{className:`form-floating w-100 ${zn}`},e.createElement("input",{type:"number",id:n,placeholder:null!==(s=null==t?void 0:t.userNameLabel)&&void 0!==s?s:"",value:h,className:`form-control ${(S||y)&&"error-border mb-4"}`,onChange:e=>{var n;return k(null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.value)},onKeyDown:e=>{"Enter"!==(null==e?void 0:e.key)||v||f||P()}}),(null==t?void 0:t.userNameLabel)&&e.createElement("label",{className:`text-truncate w-100 ${Sn}`},null==t?void 0:t.userNameLabel),y&&(null==c?void 0:c.invalidNumberMessage)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==d?void 0:d.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==c?void 0:c.invalidNumberMessage),S&&(null==c?void 0:c.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(m=null==d?void 0:d.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==c?void 0:c.technicalError),(null==t?void 0:t.infoText)&&e.createElement("span",null,null==t?void 0:t.infoText)),(null==t?void 0:t.buttonLabel)&&e.createElement("div",{className:"text-center mt-4"},f&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),e.createElement("button",{className:jn,disabled:v||f,onClick:P},null==t?void 0:t.buttonLabel)))},tt=({useCase:n,mainContent:t,changeCurrentView:l,response:i,loginIcons:a,onSuccess:d,errorContent:r})=>{var c,s,u,m,p,v;const _=/^[0-9]+$/,[h,g]=e.useState(!0),[f,b]=e.useState(0),[x,y]=e.useState(!1),[w,S]=e.useState(""),[C,E]=e.useState({}),[k,P]=e.useState(!1),[T,O]=e.useState(!1),[N,L]=e.useState(!1),[D,I]=e.useState(!1),M=e.useRef();e.useEffect((()=>{var e,o,l,i,a,d,r,c;t&&(n===X&&(null===(e=null==t?void 0:t.smsOldSection)||void 0===e?void 0:e.length)>0&&E(null===(o=null==t?void 0:t.smsOldSection)||void 0===o?void 0:o[0]),n===Q&&(null===(l=null==t?void 0:t.smsNewSection)||void 0===l?void 0:l.length)>0&&E(null===(i=null==t?void 0:t.smsNewSection)||void 0===i?void 0:i[0]),n===J&&(null===(a=null==t?void 0:t.otpSmsSection)||void 0===a?void 0:a.length)>0&&E(null===(d=null==t?void 0:t.otpSmsSection)||void 0===d?void 0:d[0]),n===Z&&(null===(r=null==t?void 0:t.otpEmailSection)||void 0===r?void 0:r.length)>0&&E(null===(c=null==t?void 0:t.otpEmailSection)||void 0===c?void 0:c[0]))}),[t]),e.useEffect((()=>{if(x){let e=60;b(e);const n=setInterval((()=>{b(--e),e<=0&&(clearInterval(n),y(!1))}),1e3);return()=>{y(!1),clearTimeout(n)}}}),[x]),e.useEffect((()=>{y(!0)}),[]);const V=()=>{k&&M.current&&M.current.abort(),I(!1),P(!0),L(!1),O(!1),pe(n,w,M).then((e=>{(null==e?void 0:e.status)?"OK"===(null==e?void 0:e.status)?(localStorage.setItem("existingUser","true"),d()):"OTP_WRONG"===(null==e?void 0:e.error)?O(!0):"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):L(!0):L(!0),P(!1)})).catch((e=>{P(!1),L(!0),console.log(e)}))};return e.createElement("div",{className:Fn},(null==C?void 0:C.title)&&e.createElement("h2",{className:"text-center mb-4 mt-4"},null==C?void 0:C.title),D&&(null==C?void 0:C.resendInfo)&&e.createElement(e.Fragment,null,e.createElement("div",{className:Gn},e.createElement("span",{style:{display:"inline-flex"}},e.createElement("div",{style:{paddingRight:"10px"}},e.createElement("img",{src:null===(c=null==a?void 0:a.checkmark)||void 0===c?void 0:c.filename,alt:"error",width:24,height:24})," "),(null==C?void 0:C.resendInfo)&&e.createElement(Te,{content:null==C?void 0:C.resendInfo}))),e.createElement("div",{className:"mt-4"})),e.createElement("p",null,(null==C?void 0:C.descriptionFirst)&&e.createElement("div",null,e.createElement(Te,{content:JSON.parse(Ce(JSON.stringify(null==C?void 0:C.descriptionFirst),[null!==(s=null==i?void 0:i.recipient)&&void 0!==s?s:" "]))})),e.createElement("div",null,(null==C?void 0:C.descSecStart)&&e.createElement(e.Fragment,null,e.createElement("br",null),null==C?void 0:C.descSecStart),(null==C?void 0:C.descSecSplitLink)&&e.createElement("span",{className:Mn,onClick:()=>{M.current&&M.current.abort(),l("",{status:$})}},null==C?void 0:C.descSecSplitLink),(null==C?void 0:C.descSecEnd)&&e.createElement(e.Fragment,null,null==C?void 0:C.descSecEnd))),e.createElement("div",{className:`form-floating w-100 ${zn}`},e.createElement("input",{type:"number",id:n,placeholder:"Temporary code",value:w,className:`form-control ${(N||T)&&"error-border mb-4"}`,onChange:e=>{var n,t,o,l;S(null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.value),O(!1),I(!1),_.test(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&6===(null===(l=null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.value)||void 0===l?void 0:l.length)?g(!1):g(!0)},onKeyDown:e=>{"Enter"!==(null==e?void 0:e.key)||h||k||V()},maxLength:6}),(null==C?void 0:C.otpLabel)&&e.createElement("label",{className:`text-truncate w-100 ${Sn}`},null==C?void 0:C.otpLabel),T&&(null==r?void 0:r.tempCodeError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==a?void 0:a.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==r?void 0:r.tempCodeError),N&&(null==r?void 0:r.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(m=null==a?void 0:a.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==r?void 0:r.technicalError)),0===f?e.createElement("div",{className:"text-center fw-bold mt-2",style:{color:"#da291c"},onClick:()=>{M.current&&M.current.abort(),I(!0),y(!0),pe("OTP_RESEND","",M).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?l("",e):L(!0)}))}},null!==(p=null==C?void 0:C.resendCodeLabel)&&void 0!==p?p:""):e.createElement("div",{className:"text-center fw-bold mt-2"},null!==(v=Ce(null==C?void 0:C.resendTimeLabel,[f]))&&void 0!==v?v:""),(null==C?void 0:C.buttonLabel)&&e.createElement("div",{className:"text-center mt-4"},k&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),e.createElement("button",{className:jn,disabled:h||k,onClick:V},null==C?void 0:C.buttonLabel)))},ot=({content:n,useCase:t,loginIcons:l,changeCurrentView:i,errorContent:a})=>{var d,r,c,s,u,m,p;const[v,_]=e.useState(""),[h,g]=e.useState(""),[f,b]=e.useState(!1),[x,y]=e.useState(!1),[w,S]=e.useState(!1),[C,E]=e.useState([]),[k,P]=e.useState(0),[T,O]=e.useState(!1),[N,L]=e.useState({showPswd:!1,showConfirmPswd:!1}),D=0===k?0:k/(null==C?void 0:C.length)*100,I=e.useRef(),M=e=>{var n,t,o,l;const i=null!==(t=null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.value)&&void 0!==t?t:"",a=null!==(l=null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.id)&&void 0!==l?l:"";"password"===a&&_(i),"confirmPassword"===a&&g(i)},V=()=>{T&&I.current&&I.current.abort(),O(!0),S(!1),pe(t,v,I).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?i("",e):S(!0),O(!1)})).catch((e=>{O(!1),S(!0),console.log(e)}))},B=e=>{"Enter"!==(null==e?void 0:e.key)||v!==h||""===v||""===h||T||k!==(null==C?void 0:C.length)||V()};return e.useEffect((()=>{var e,t;if((null===(e=null==n?void 0:n.pwdReqList)||void 0===e?void 0:e.length)>0){let e=0;const o=null===(t=(null==n?void 0:n.pwdReqList)||[])||void 0===t?void 0:t.map((n=>{var t,o;const l=null===(t=new RegExp(null==n?void 0:n.key))||void 0===t?void 0:t.test(v);return l&&(e+=1),{value:null!==(o=null==n?void 0:n.value)&&void 0!==o?o:"",isValid:l}}));P(e),E(o)}}),[v,n]),e.useEffect((()=>{y(""!==v&&""!==h&&v===h&&100===D),b(""!==h&&v!==h),w&&S(!1)}),[v,h]),e.createElement("div",null,n&&e.createElement(e.Fragment,null,(null==n?void 0:n.title)&&e.createElement("h2",{className:"p-0 my-4 text-center"},null==n?void 0:n.title),(null==n?void 0:n.description)&&e.createElement(Te,{content:null==n?void 0:n.description}),e.createElement("div",{className:"form-floating w-100 mt-4"},e.createElement("input",{type:(null==N?void 0:N.showPswd)?"text":"password",className:`${x&&xn} form-control ${f&&"error-border"} pe-5`,id:"password",placeholder:null==n?void 0:n.newPwdPlaceholder,value:v,onChange:M,onKeyDown:B}),e.createElement("label",{className:Sn},null==n?void 0:n.newPwdPlaceholder),e.createElement("div",{className:yn},e.createElement("span",{onClick:()=>L(Object.assign(Object.assign({},N),{showPswd:!(null==N?void 0:N.showPswd)}))},(null==N?void 0:N.showPswd)?e.createElement("img",{src:null===(d=null==l?void 0:l.eyeoff)||void 0===d?void 0:d.filename,alt:"eyeOff",className:Pn}):e.createElement("img",{src:null===(r=null==l?void 0:l.eye)||void 0===r?void 0:r.filename,alt:"eye",className:Pn})))),e.createElement("div",{className:`form-floating w-100 mt-4 ${f&&"mb-4"}`},e.createElement("input",{type:(null==N?void 0:N.showConfirmPswd)?"text":"password",className:`${x&&xn} form-control ${f&&"error-border"} pe-5`,id:"confirmPassword",placeholder:null==n?void 0:n.cnfrmPwdPlaceholder,value:h,onChange:M,onKeyDown:B}),e.createElement("label",{className:Sn},null==n?void 0:n.cnfrmPwdPlaceholder),e.createElement("div",{className:yn},e.createElement("span",{onClick:()=>L(Object.assign(Object.assign({},N),{showConfirmPswd:!(null==N?void 0:N.showConfirmPswd)}))},(null==N?void 0:N.showConfirmPswd)?e.createElement("img",{src:null===(c=null==l?void 0:l.eyeoff)||void 0===c?void 0:c.filename,alt:"eyeOff",className:Pn}):e.createElement("img",{src:null===(s=null==l?void 0:l.eye)||void 0===s?void 0:s.filename,alt:"eye",className:Pn}))),f&&(null==a?void 0:a.resetPwdError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(u=null==l?void 0:l.alertTriangle)||void 0===u?void 0:u.filename,alt:"alert",className:Nn}),null==a?void 0:a.resetPwdError),w&&(null==a?void 0:a.technicalError)&&e.createElement("p",{className:Tn},e.createElement("img",{src:null===(m=null==l?void 0:l.alertTriangle)||void 0===m?void 0:m.filename,alt:"alert",className:Nn}),null==a?void 0:a.technicalError)),e.createElement("div",null,(null==n?void 0:n.pwdStrngthLbl)&&e.createElement("div",{className:"mt-4 mb-1"},null==n?void 0:n.pwdStrngthLbl),e.createElement("div",{className:Un},e.createElement("div",{className:`${Wn} ${k===(null==C?void 0:C.length)?Hn:$n}`,style:{width:`${D}%`}})),(null==C?void 0:C.length)>0&&(null===(p=C||[])||void 0===p?void 0:p.map((n=>{var t,o;return e.createElement("div",{className:`${(null==n?void 0:n.isValid)?Yn:""} d-flex align-items-center`},e.createElement("img",{src:(null==n?void 0:n.isValid)?null===(t=null==l?void 0:l.greenTickmark)||void 0===t?void 0:t.filename:null===(o=null==l?void 0:l.greyTickmark)||void 0===o?void 0:o.filename,alt:"tick",width:16,height:16,className:"me-1"}),null==n?void 0:n.value)})))),(null==n?void 0:n.cnfrmBtnLbl)&&e.createElement("div",{className:"text-center mt-4"},T&&e.createElement(o.Spinner,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"d-block mx-auto mb-3"}),e.createElement("button",{className:jn,onClick:V,disabled:v!==h||""===v||""===h||T||k!==(null==C?void 0:C.length)},null==n?void 0:n.cnfrmBtnLbl))))},lt=({content:n,closeLogin:t,metadata:o,onSuccess:l,isProdEnv:i=!0})=>{var a,d;const[r,c]=e.useState(n),[s,u]=e.useState($),[m,p]=e.useState(""),[v,_]=e.useState(n),[h,g]=e.useState(""),[f,b]=e.useState(""),[x,y]=e.useState(n),[w,S]=e.useState(n),[C,E]=e.useState(n),[k,P]=e.useState(n),T=e.useRef();e.useEffect((()=>{var e,t,o,l,i,a,d,r,s,u,m,p,v,h,g,f,b,x,w,C,k,T,O,N,L,D,I,M,V,B,A,F,R,j,z,U,W,$;n&&("loginPageTemplate"===(null===(t=null===(e=null==n?void 0:n.reference)||void 0===e?void 0:e.content)||void 0===t?void 0:t.component)?(c(null===(d=null===(a=null===(i=null===(l=null===(o=null==n?void 0:n.reference)||void 0===o?void 0:o.content)||void 0===l?void 0:l.body)||void 0===i?void 0:i[0])||void 0===a?void 0:a.popup)||void 0===d?void 0:d[0]),_(null===(p=null===(m=null===(u=null===(s=null===(r=null==n?void 0:n.reference)||void 0===r?void 0:r.content)||void 0===s?void 0:s.body)||void 0===u?void 0:u[0])||void 0===m?void 0:m.icons)||void 0===p?void 0:p[0]),y(null===(b=null===(f=null===(g=null===(h=null===(v=null==n?void 0:n.reference)||void 0===v?void 0:v.content)||void 0===h?void 0:h.body)||void 0===g?void 0:g[0])||void 0===f?void 0:f.mfaV2)||void 0===b?void 0:b[0]),S(null===(T=null===(k=null===(C=null===(w=null===(x=null==n?void 0:n.reference)||void 0===x?void 0:x.content)||void 0===w?void 0:w.body)||void 0===C?void 0:C[0])||void 0===k?void 0:k.forgotPwd)||void 0===T?void 0:T[0]),E(null===(I=null===(D=null===(L=null===(N=null===(O=null==n?void 0:n.reference)||void 0===O?void 0:O.content)||void 0===N?void 0:N.body)||void 0===L?void 0:L[0])||void 0===D?void 0:D.resetPwd)||void 0===I?void 0:I[0]),P(null===(F=null===(A=null===(B=null===(V=null===(M=null==n?void 0:n.reference)||void 0===M?void 0:M.content)||void 0===V?void 0:V.body)||void 0===B?void 0:B[0])||void 0===A?void 0:A.resetPwdSuccess)||void 0===F?void 0:F[0])):(c(null===(R=null==n?void 0:n.popup)||void 0===R?void 0:R[0]),_(null===(j=null==n?void 0:n.icons)||void 0===j?void 0:j[0]),y(null===(z=null==n?void 0:n.mfaV2)||void 0===z?void 0:z[0]),S(null===(U=null==n?void 0:n.forgotPwd)||void 0===U?void 0:U[0]),E(null===(W=null==n?void 0:n.resetPwd)||void 0===W?void 0:W[0]),P(null===($=null==n?void 0:n.resetPwdSuccess)||void 0===$?void 0:$[0])))}),[n]);const O=(e,n,t)=>{""!==e&&p(e),u(null==n?void 0:n.status),g(n),b(t)};return e.createElement("div",{className:bn},e.createElement("div",{className:"w-100 h-100 d-flex position-relative justify-content-center align-items-center"},e.createElement("div",{className:`${hn}`},e.createElement("div",{className:"position-relative w-100",role:"button"},s!==$&&s!==K&&e.createElement("span",{style:{display:"flex",width:"fit-content"},onClick:()=>{T.current&&T.current.abort(),pe("BACK","",T).then((e=>{(null==e?void 0:e.status)&&"NOK"!==(null==e?void 0:e.status)&&"ERROR"!==(null==e?void 0:e.status)?O("",e):O(m,{status:$},f)})).catch((()=>O(m,{status:$})))}},e.createElement("img",{src:null===(a=null==v?void 0:v.back)||void 0===a?void 0:a.filename,className:`${gn}`,alt:"back"}),e.createElement("div",{className:`${fn}`},null==r?void 0:r.backTxt)),e.createElement("img",{src:null===(d=null==v?void 0:v.close)||void 0===d?void 0:d.filename,className:`${gn} position-absolute end-0 top-0`,alt:"close",onClick:t})),e.createElement("div",{className:"w-100 d-flex align-items-center flex-column"},(()=>{var n,t;switch(s){case $:return e.createElement(An,{content:r,changeCurrentView:O,metadata:o,onSuccess:l,loginIcons:v,userID:m,password:f,isProdEnv:i});case H:case Y:case G:case q:case K:return e.createElement(et,{useCase:s,mainContent:null!=x?x:{},changeCurrentView:O,response:h,resetPwdSuccessContent:k,loginIcons:v,errorContent:r});case X:case Q:case J:case Z:return e.createElement(tt,{useCase:s,mainContent:null!=x?x:{},changeCurrentView:O,response:h,loginIcons:v,onSuccess:l,errorContent:r});case ee:return e.createElement(nt,{useCase:s,content:null!==(t=null===(n=null==x?void 0:x.newNumberSection)||void 0===n?void 0:n[0])&&void 0!==t?t:{},changeCurrentView:O,loginIcons:v,response:h,errorContent:r});case ne:case ae:return e.createElement(nt,{useCase:s,content:null!=w?w:{},changeCurrentView:O,metadata:o,loginIcons:v,userID:m,errorContent:r});case te:return e.createElement(ot,{content:C,useCase:s,loginIcons:v,changeCurrentView:O,errorContent:r});default:return e.createElement(e.Fragment,null)}})()))))};h(".linetable-countryOverlay-linkTextNew {\r\n color: #da291c;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.linetable-countryOverlay-utils-noWrap {\r\n white-space: nowrap;\r\n}\r\n\r\n.linetable-countryOverlay-utils-colWidth {\r\n max-width: 210px;\r\n}\r\n\r\n.linetable-countryOverlay-contain {\r\n display: flex;\r\n align-items: first baseline;\r\n padding-top: 10px;\r\n}\r\n\r\n.linetable-countryOverlay-image {\r\n width: 24px;\r\n height: 16px;\r\n}\r\n\r\n.linetable-countryOverlay-name {\r\n color: #000000;\r\n align-items: center;\r\n padding-left: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 32px;\r\n}\r\n.linetable-countryOverlay-blackthemecolor {\r\n color: #ffffff !important;\r\n}\r\n\r\n.linetable-countryOverlay-desktopView {\r\n display: block;\r\n}\r\n.linetable-countryOverlay-mobView {\r\n display: none;\r\n}\r\n@media (max-width: 767px) {\r\n .linetable-countryOverlay-linkTextNew {\r\n font-size: 14px;\r\n line-height: 24px;\r\n }\r\n}\r\n\r\n@media (min-width: 1440px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: block;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: none;\r\n }\r\n}\r\n@media (max-width: 1023px) {\r\n .linetable-countryOverlay-desktopView {\r\n display: none;\r\n }\r\n .linetable-countryOverlay-mobView {\r\n display: block;\r\n width: 100%;\r\n }\r\n}\r\n.reusbablelnetable-margin {\r\n margin-left: 0;\r\n}\r\n");h(".dbold {\r\n font-weight: 500;\r\n font-size: 40px;\r\n line-height: 60px;\r\n}\r\n");const it=({content:n})=>{var t;const o=_e((null==n?void 0:n.textColor)&&n.textColor),l=(null==n?void 0:n.textColor)&&n.textColor!=P?o:"",i=(null==n?void 0:n.textColor)&&n.textColor===P?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{};return e.createElement(e.Fragment,null,n.headingStyle&&n.text&&"h1"===n.headingStyle?e.createElement("h1",{className:l,style:Object.assign({},i)},n.text," "):"h2"===n.headingStyle?e.createElement("h2",{className:`${l}`,style:Object.assign({},i)},n.text):"h3"===n.headingStyle?e.createElement("h3",{className:l,style:Object.assign({},i)},n.text):"h4"===n.headingStyle?e.createElement("h4",{className:l,style:Object.assign({},i)},n.text):e.createElement("div",{className:"dbold",style:Object.assign({},i)},n.text))},at=({content:n})=>{var t;const o=_e(n.textColor);return e.createElement(e.Fragment,null,e.createElement("div",{className:`d-inline-flex align-${n.textElementPosition}`},n.icon&&n.icon.filename&&e.createElement("img",{src:n.icon&&n.icon.filename,alt:n.icon&&n.icon.alt,title:n.icon&&n.icon.title,height:24,width:24}),n.text&&e.createElement("div",{className:`${n.icon&&n.icon.filename} ${n.textColor&&n.textColor!=P?o:""}`,style:Object.assign({},n.textColor&&n.textColor===P?{color:null===(t=n.textColorPicker)||void 0===t?void 0:t.color}:{})},e.createElement(Te,{content:n.text}))))};h(".linetable-country-overlayModal {\r\n max-width: 900px;\r\n padding: 1rem 2rem;\r\n}\r\n");const dt=({children:n,modalState:t,handler:o,noCloseButton:l,showBackBtn:i,overlay:r})=>{const[c,s]=e.useState(),[u,m]=e.useState();return e.useEffect((()=>{r.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"falconTitle"==(null==e?void 0:e.component)&&s(e),"falconDescription"==(null==e?void 0:e.component)&&m(e)}))}))}),[r]),e.createElement(e.Fragment,null,e.createElement(a,{centered:!0,show:t,onHide:o,keyboard:!1,dialogClassName:"linetable-country-overlayModal"},e.createElement(a.Header,null,e.createElement("div",{style:{display:l?"none":""}},e.createElement("div",{className:"d-flex align-items-center"},i&&e.createElement("div",{className:"me-sm-4 me-3 d-flex align-items-center",onClick:o},e.createElement("img",{src:"../../icons/left_arrow.svg"})),c&&e.createElement(it,{content:c}))),e.createElement("div",{style:{display:l?"none":""}},e.createElement(d,{className:"sr-modal-close",onClick:o}))),e.createElement(a.Body,null,n),e.createElement(a.Footer,null,u&&e.createElement(at,{content:u}))))};h(".linetable-dotLoader-loaderParent {\r\n width: 100%;\r\n position: fixed;\r\n z-index: 3;\r\n top: 0;\r\n left: 0;\r\n bottom: 0;\r\n right: 0;\r\n background-color: rgba(255, 255, 255, 0.8);\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-dotLoader-dotClass {\r\n justify-content: center;\r\n display: flex;\r\n z-index: 1;\r\n}\r\n.linetable-dotLoader-dotContent {\r\n display: flex;\r\n justify-content: center;\r\n animation: contentplay 2s linear 0s infinite;\r\n}\r\n@keyframes dotplay {\r\n 0%,\r\n 20% {\r\n transform: translateY(0);\r\n }\r\n 10% {\r\n transform: translateY(-20px);\r\n }\r\n}\r\n.linetable-dotLoader-dots:nth-child(1) {\r\n animation-delay: 0.4s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(2) {\r\n animation-delay: 0.8s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(3) {\r\n animation-delay: 1.2s;\r\n}\r\n.linetable-dotLoader-dots:nth-child(4) {\r\n animation-delay: 1.6s;\r\n}\r\n.linetable-dotLoader-dots {\r\n margin: 5px 2px;\r\n width: 12px;\r\n height: 12px;\r\n border-radius: 50%;\r\n background: linear-gradient(180deg, #e2271e 0%, #ef7c3c 100%);\r\n animation: dotplay 2s linear 0s infinite;\r\n}\r\n@keyframes contentplay {\r\n 0% {\r\n opacity: 0.2;\r\n }\r\n 30% {\r\n opacity: 1;\r\n }\r\n}\r\n");const rt=({keyParams:n})=>{const[t,o]=e.useState(0),[l,i]=e.useState({}),a={checkout:[null==l?void 0:l.uspFreeShipping,null==l?void 0:l.uspBestService,null==l?void 0:l.uspCheckout],loading:[null==l?void 0:l.loading]},d=n?a[`${n}`]:a.checkout;return e.useEffect((()=>{i(xe("sbstaticcontent"))}),[]),e.useEffect((()=>{let e=d.length-1;o(e);const n=setInterval((()=>{o(e--),e<0&&(e=d.length-1)}),2e3);return()=>{clearTimeout(n)}}),[]),e.createElement("div",{className:"d-flex align-items-center justify-content-center linetable-dotLoader-loaderParent"},e.createElement("div",{className:"linetable-dotLoader-dotClass"},e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"}),e.createElement("div",{className:"linetable-dotLoader-dots"})),e.createElement("div",null,e.createElement("h4",{className:"linetable-dotLoader-dotContent"},d[t]," ")))},ct=e=>{const n=[];return null==e||e.map((e=>{const t=Number(null==e?void 0:e.order)||999,o=null==e?void 0:e.cProd;o.sortOrder=t,null==n||n.push(o)})),null==n||n.sort(((e,n)=>(null==e?void 0:e.sortOrder)-(null==n?void 0:n.sortOrder))),n},st=e=>{var n;const t=[];return null===(n=e||[])||void 0===n||n.forEach((e=>{t.push({id:e,name:e})})),t},ut=(e,n,t,o,l,i)=>{var a,d,r,c,s,u,m,p,v,_,h,g,f,b,x,y,w,S,C,E,k;const P=null!==(s=null===(c=null===(r=null===(d=null===(a=null==o?void 0:o.selectedVarientDetails)||void 0===a?void 0:a.hardwarePrices)||void 0===d?void 0:d.smartUpgradeInstallments)||void 0===r?void 0:r.insurance)||void 0===c?void 0:c.value)&&void 0!==s?s:0,T=null!==(_=null===(v=null===(p=null===(m=null===(u=null==o?void 0:o.selectedVarientDetails)||void 0===u?void 0:u.hardwarePrices)||void 0===m?void 0:m.smartUpgradeInstallments)||void 0===p?void 0:p.upFrontPayment)||void 0===v?void 0:v.value)&&void 0!==_?_:"";let O="";if("undefined"!=typeof window){const e=window.location.href,n=window.document.documentElement.getAttribute("lang"),t=null==e?void 0:e.search(`/${n}`);O=null==e?void 0:e.slice(t)}const N={hardwareVariant:{id:null===(h=null==o?void 0:o.selectedVarientDetails)||void 0===h?void 0:h.id,note:mt(o,T),hardwarePrices:null===(g=null==o?void 0:o.selectedVarientDetails)||void 0===g?void 0:g.hardwarePrices,selectedContractType:A,deviceRedirectUrl:"",buyBackPrice:[],itemType:F,insuranceName:P&&null!==(f=null==e?void 0:e.insuranceId)&&void 0!==f?f:"",insurancePrice:P||""},checkSubscriptions:{simSelectedType:"",enableV2Layout:!0,enableNoSubscriptionFlow:!0,dpSubsidyRatePlanPromoId:"",flowType:"dpTable"},subscription:{mobileSubscription:null==n?void 0:n.mobProductId,mobileSubscriptionPromo:(null===(y=null===(x=null===(b=null==t?void 0:t[null==n?void 0:n.mobProductId])||void 0===b?void 0:b.promotionInfo)||void 0===x?void 0:x[0])||void 0===y?void 0:y.id)?null===(C=null===(S=null===(w=null==t?void 0:t[null==n?void 0:n.mobProductId])||void 0===w?void 0:w.promotionInfo)||void 0===S?void 0:S[0])||void 0===C?void 0:C.id:I,originalPrice:null!==(E=null==l?void 0:l.totalBasePrice)&&void 0!==E?E:0,discountedPrice:null!==(k=null==l?void 0:l.totalDiscountedPrice)&&void 0!==k?k:0,ubRedirectUrl:ke(O)}};N&&sessionStorage.setItem(B,JSON.stringify(N)),window.location.href=i},mt=(e,n)=>{var t;return[{author:"flowInitiated",text:F},{author:"hardwareConfiguration",text:`${null==e?void 0:e.selectedColor}, ${null==e?void 0:e.selectedStorage}`},{author:"hardwareImageUrl",text:null!==(t=null==e?void 0:e.selectedImageUrl)&&void 0!==t?t:""},{author:"hardwareGroupName",text:null==e?void 0:e.selectedDeviceModal},{author:"hardwareCategory",text:"smartphone"},{author:"upfront",text:n},{author:"ultimateBundle",text:"true"},{author:"RESIDUAL",text:"true"}]},pt=e=>{var n;const t={};return null===(n=e||[])||void 0===n||n.forEach((e=>{let n=null==e?void 0:e.priceCategory;0!==(null==e?void 0:e.duration)||(null==e?void 0:e.residual)||"BASE"!==(null==e?void 0:e.priceCategory)?24!==(null==e?void 0:e.duration)||(null==e?void 0:e.residual)||(null==e?void 0:e.priceCategory)!==A?24===(null==e?void 0:e.duration)&&(null==e?void 0:e.residual)&&(null==e?void 0:e.priceCategory)===A&&(n="smartUpgradeInstallments"):n="installments":n="basePrice",t[n]=e})),t},vt="ESHOP",_t="/suggest/address",ht="/v1/linecheck";let gt=void 0!==typeof window&&u.get("sunriseAuth");gt=gt&&JSON.parse(gt);const ft=(e,o,l)=>E(void 0,void 0,void 0,(function*(){var i,a,d;try{localStorage.removeItem("entertainment");const i={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},params:{}};l&&(i.params={returnPromo:!0});const a=o+x.LINE_TABLEV2,d=yield n.ApiServiceV2.getApiServiceInstance().post(a,e,i).then((e=>{if(200==e.status)return null==e?void 0:e.data}));if(d.error)return d.error;{const e=[];return null==d||d.forEach((n=>{e[n.id]=n})),e}}catch(e){((null===(a=null===(i=null==e?void 0:e.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.code)||504===(null===(d=null==e?void 0:e.response)||void 0===d?void 0:d.status))&&vn(null==e?void 0:e.response),console.log("error---\x3e",e)}})),bt=(e,o,l,i,a,d,r,c,s,m="",p,v,_,h)=>E(void 0,void 0,void 0,(function*(){var g,f,b,y,w,S,C,E,k,P,T,O,N,D,I,M,V,B,A,j,z,U,W,$,H,Y,G,q,K,X,Q,J,Z,ee,ne,te,oe,le,ie,ae,de,re,ce,se,ue,me,pe,ve,_e,he,ge,fe,be,xe,we;let Se={};if(a===L){let n="",t="";const i=null!==(g=u.get("one-commerce-linecheckcorrelationid"))&&void 0!==g?g:"",a=(e=>{var n,t,o;let l=[],i=void 0!==typeof window&&localStorage.getItem("lineCheckResponse");if(i){i=JSON.parse(i);const a=null===(n=null==i?void 0:i.originalLinecheckResponse)||void 0===n?void 0:n.sellableProducts;l=null===(o=null===(t=null==a?void 0:a.find((n=>(null==n?void 0:n.name)===e)))||void 0===t?void 0:t.access)||void 0===o?void 0:o[0]}return l})(null===(f=null==e?void 0:e[0])||void 0===f?void 0:f.id);Se={relatedParty:[{id:"anonymous",segment:"RESIDENTIAL"}],cartItem:[{itemType:"HOME",promotionId:l,items:[],note:[{author:"linecheckCorrelationId",text:i}]}]};const r={itemType:"MOBILE",promotionId:l,items:[]};if(null===(b=e[0])||void 0===b?void 0:b.isBundle)null===(w=null===(y=e[0])||void 0===y?void 0:y.bundledOffers)||void 0===w||w.map((e=>{var l,i,a,d,c,s,u,m,p,v,_,h,g,f,b,x,y,w,S;if(null===(i=null===(l=null==e?void 0:e.promotionInfo)||void 0===l?void 0:l[0])||void 0===i?void 0:i.id){const o=1==(null===(u=null===(s=null===(c=null===(d=null===(a=null==e?void 0:e.promotionInfo)||void 0===a?void 0:a[0])||void 0===d?void 0:d.hardwareGift)||void 0===c?void 0:c[0])||void 0===s?void 0:s.ids)||void 0===u?void 0:u.length)?null===(h=null===(_=null===(v=null===(p=null===(m=null==e?void 0:e.promotionInfo)||void 0===m?void 0:m[0])||void 0===p?void 0:p.hardwareGift)||void 0===v?void 0:v[0])||void 0===_?void 0:_.ids)||void 0===h?void 0:h[0]:"";"mobile"===(null===(g=null==e?void 0:e.productType)||void 0===g?void 0:g.toLowerCase())?(r.promotionId=null===(b=null===(f=null==e?void 0:e.promotionInfo)||void 0===f?void 0:f[0])||void 0===b?void 0:b.id,n=o):(Se.cartItem[0].promotionId=null===(y=null===(x=null==e?void 0:e.promotionInfo)||void 0===x?void 0:x[0])||void 0===y?void 0:y.id,t=o)}"tv"==(null===(w=null==e?void 0:e.productType)||void 0===w?void 0:w.toLowerCase())&&o?Se.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:o}):"mobile"===(null===(S=null==e?void 0:e.productType)||void 0===S?void 0:S.toLowerCase())?r.items.push({itemType:"RATEPLAN",id:null==e?void 0:e.id}):Se.cartItem[0].items.push({itemType:null==e?void 0:e.productType,id:null==e?void 0:e.id})})),t&&(null===(S=Se.cartItem[0].items)||void 0===S||S.push({itemType:"GIFT",id:t})),n&&r.items.push({itemType:"GIFT",id:n}),(null===(C=null==r?void 0:r.items)||void 0===C?void 0:C.length)>0&&(null===(E=null==Se?void 0:Se.cartItem)||void 0===E||E.push(r)),(null==v?void 0:v.length)>0&&(null==v||v.forEach((e=>{Se.cartItem[0].items.push({itemType:"TV_SERVICE_OPTION",id:null==e?void 0:e.id})})));else{const n=1==(null===(D=null===(N=null===(O=null===(T=null===(P=null===(k=null==e?void 0:e[0])||void 0===k?void 0:k.promotionInfo)||void 0===P?void 0:P[0])||void 0===T?void 0:T.hardwareGift)||void 0===O?void 0:O[0])||void 0===N?void 0:N.ids)||void 0===D?void 0:D.length)?null===(j=null===(A=null===(B=null===(V=null===(M=null===(I=null==e?void 0:e[0])||void 0===I?void 0:I.promotionInfo)||void 0===M?void 0:M[0])||void 0===V?void 0:V.hardwareGift)||void 0===B?void 0:B[0])||void 0===A?void 0:A.ids)||void 0===j?void 0:j[0]:"";Se.cartItem[0].items.push({itemType:null===(z=null==e?void 0:e[0])||void 0===z?void 0:z.productType,id:null===(U=null==e?void 0:e[0])||void 0===U?void 0:U.id}),n&&(null===(W=Se.cartItem[0].items)||void 0===W||W.push({itemType:"GIFT",id:n}))}d&&(null==d?void 0:d.length)>0&&(null==d||d.map((e=>{var n,t,o,l;"HOME"===(null==e?void 0:e.parentPoType)?null===(o=null===(t=null===(n=null==Se?void 0:Se.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}):null===(l=r.items)||void 0===l||l.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId})}))),(null==a?void 0:a.accessType)&&(null===(Y=null===(H=null===($=null==Se?void 0:Se.cartItem)||void 0===$?void 0:$[0])||void 0===H?void 0:H.note)||void 0===Y||Y.push({author:"lineCheckaccessType",text:null==a?void 0:a.accessType})),(null==a?void 0:a.timeSlot)&&(null===(K=null===(q=null===(G=null==Se?void 0:Se.cartItem)||void 0===G?void 0:G[0])||void 0===q?void 0:q.note)||void 0===K||K.push({author:"lineCheckEarliestActivationDate",text:null===(X=null==a?void 0:a.timeSlot)||void 0===X?void 0:X.start}));try{const e=(e=>{const n=e+"=";let t;return document.cookie.split(";").some((e=>{for(;" "===e.charAt(0);)e=e.substring(1);return 0===e.indexOf(n)&&(t=JSON.parse(decodeURIComponent(e.substring(n.length,e.length))),!0)})),t})("chAddressJson"),n=[{characteristic:{installationAddress:!0,country:"CH",city:null===(Q=null==e?void 0:e.selectedAdd)||void 0===Q?void 0:Q.city,street1:null===(J=null==e?void 0:e.selectedAdd)||void 0===J?void 0:J.street,postCode:null===(Z=null==e?void 0:e.selectedAdd)||void 0===Z?void 0:Z.postCode,street2:null===(ee=null==e?void 0:e.selectedAdd)||void 0===ee?void 0:ee.houseNumber}}];Se.contactMedium=n}catch(e){console.log("issue at line check address addition in create cart ==>",e)}}else if(a===R){Se=r?{relatedParty:[{segment:"RESIDENTIAL"}],cartItem:[{itemType:"MOBILE",promotionId:l,items:[{itemType:"RATEPLAN",id:(null===(ne=null==e?void 0:e[0])||void 0===ne?void 0:ne.id)?null===(te=null==e?void 0:e[0])||void 0===te?void 0:te.id:e,subscribedInfo:{installedPlan:"Sunrise Prepaid Unlimited",id:c}}],processType:{id:"PRE_TO_POST"}}]}:{relatedParty:[{segment:"RESIDENTIAL"}],cartItem:[{itemType:"MOBILE",promotionId:l,items:[{itemType:"RATEPLAN",id:(null===(oe=null==e?void 0:e[0])||void 0===oe?void 0:oe.id)?null===(le=null==e?void 0:e[0])||void 0===le?void 0:le.id:e,clientDiscountInfo:_?[{discountRef:_,discountType:"DISCOUNT"}]:void 0}]}]};const n=1==(null===(se=null===(ce=null===(re=null===(de=null===(ae=null===(ie=null==e?void 0:e[0])||void 0===ie?void 0:ie.promotionInfo)||void 0===ae?void 0:ae[0])||void 0===de?void 0:de.hardwareGift)||void 0===re?void 0:re[0])||void 0===ce?void 0:ce.ids)||void 0===se?void 0:se.length)?null===(he=null===(_e=null===(ve=null===(pe=null===(me=null===(ue=null==e?void 0:e[0])||void 0===ue?void 0:ue.promotionInfo)||void 0===me?void 0:me[0])||void 0===pe?void 0:pe.hardwareGift)||void 0===ve?void 0:ve[0])||void 0===_e?void 0:_e.ids)||void 0===he?void 0:he[0]:"";n&&(null===(ge=Se.cartItem[0].items)||void 0===ge||ge.push({itemType:"GIFT",id:n})),d&&(null==d?void 0:d.length)>0&&(null==d||d.map((e=>{var n,t,o;"HOME"!==(null==e?void 0:e.parentPoType)&&(null===(o=null===(t=null===(n=null==Se?void 0:Se.cartItem)||void 0===n?void 0:n[0])||void 0===t?void 0:t.items)||void 0===o||o.push({itemType:"GIFT",id:null==e?void 0:e.tuaProdId}))})))}if(s){const e=[];e.push({author:"voucherType",text:"QoQa"}),""!==m&&(e.push({author:"voucherCode",text:m}),ye("vctype")),Se.cartItem[0].note=e}else if(_&&h){const e=[];null==e||e.push({author:"offerType",text:"ATL"}),null==e||e.push({author:"externalPromotionName",text:_}),null==e||e.push({author:"offerVersion",text:h}),Se.cartItem[0].note=e}if(p){const e=(e=>{var n,t,o,l,i,a,d,r,c,s,u,m,p,v,_,h;let g=[];const f=null!==(l=null===(o=null===(t=null===(n=null==e?void 0:e.selectedVarientDetails)||void 0===n?void 0:n.hardwarePrices)||void 0===t?void 0:t.smartUpgradeInstallments)||void 0===o?void 0:o.duration)&&void 0!==l?l:0,b=null!==(c=null===(r=null===(d=null===(a=null===(i=null==e?void 0:e.selectedVarientDetails)||void 0===i?void 0:i.hardwarePrices)||void 0===a?void 0:a.smartUpgradeInstallments)||void 0===d?void 0:d.upFrontPayment)||void 0===r?void 0:r.value)&&void 0!==c?c:0,x=null!==(v=null===(p=null===(m=null===(u=null===(s=null==e?void 0:e.selectedVarientDetails)||void 0===s?void 0:s.hardwarePrices)||void 0===u?void 0:u.smartUpgradeInstallments)||void 0===m?void 0:m.insurance)||void 0===p?void 0:p.value)&&void 0!==v?v:0,y={itemType:F,id:null!==(h=null===(_=null==e?void 0:e.selectedVarientDetails)||void 0===_?void 0:_.id)&&void 0!==h?h:"",contractTerm:f,note:mt(e,b)};if(y&&(null==g||g.push(y)),x){const n={itemType:"DEVICE_INSURANCE",id:null==e?void 0:e.insuranceName};null==g||g.push(n)}return(null==g?void 0:g.length)>0?g:null})(p);e&&(null===(xe=null===(be=null===(fe=null==Se?void 0:Se.cartItem)||void 0===fe?void 0:fe[0])||void 0===be?void 0:be.items)||void 0===xe||xe.push(...e))}const Ce={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL}},Ee=i+x.CREATE_CARTV3;if((null===(we=Object.keys(Se))||void 0===we?void 0:we.length)>0){const e=yield n.ApiServiceV2.getApiServiceInstance().post(Ee,Se,Ce).then((e=>{if(ye("isB2BCustomer"),200==e.status)return null==e?void 0:e.data})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}));if(e.error)throw e.error;return e}})),xt=(e,o,l,i,a,d,r,c,s)=>E(void 0,void 0,void 0,(function*(){let u;localStorage.removeItem("entertainment"),u={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL}},d&&(u.params={returnPromo:!0}),r&&(u.params={journey:"P2P"}),s&&(u.params=Object.assign(Object.assign({},u.params),{journey:"FPB"}));let m=l+x.LINE_TABLEV2;c&&localStorage.getItem("prospectId")&&(u.headers["x-sunrise-prospect-id"]=localStorage.getItem("prospectId"),m=l+x.LINE_TABLEV3);const p=i?m+x.SUBSCRIPTION+a:m,v=yield n.ApiServiceV2.getApiServiceInstance().post(p,e,u).then((e=>{if(200==e.status)return null==e?void 0:e.data})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}));return v.error?v.error:{[o]:v}})),yt=(e,o)=>E(void 0,void 0,void 0,(function*(){let l;l={params:{},headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL}},l.params={category:e};const i=o,a=yield n.ApiServiceV2.getApiServiceInstance().get(i,l).then((e=>200==e.status?null==e?void 0:e.data:null==e?void 0:e.status)).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}));return(null==a?void 0:a.error)?null==a?void 0:a.error:{subscriptionData:a}})),wt=(e,o)=>E(void 0,void 0,void 0,(function*(){var l;try{const i={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":x.X_SUN_CHAL},params:{offerIds:e,voucherCode:o}},a=(null===(l=null==g?void 0:g.getInstance())||void 0===l?void 0:l.getBaseUrl())+`${x.VOUCHER_PROMOTIONS}`;yield n.ApiServiceV2.getApiServiceInstance().get(a,i).then((e=>{if(200==e.status)return null==e?void 0:e.data}))}catch(e){}})),St=(e,o={},l)=>E(void 0,void 0,void 0,(function*(){let i;i={headers:{"x-correlation-id":t.v4(),"x-sunrise-channel":vt,"x-sunrise-prospect-id":l}};let a=e+(null==x?void 0:x.CUSTOMER_EVENTS);yield n.ApiServiceV2.getApiServiceInstance().post(a,o,i).then((e=>{if(200==e.status)return console.log("trackPegaEvents result.data",e.data),null==e?void 0:e.data})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}))})),Ct=({linkText:t,product:o,metadata:l,modalTriggered:i,reuseableLineTable:a})=>{var d,u,m,p;const[v,_]=e.useState(!1),[h,f]=e.useState([]),[b,x]=e.useState(!0),[y,w]=e.useState(),[S,C]=e.useState([]),k=(null===(u=null===(d=null==o?void 0:o.testProductReference)||void 0===d?void 0:d[0])||void 0===u?void 0:u.reference)?null===(p=null===(m=null==o?void 0:o.testProductReference)||void 0===m?void 0:m[0])||void 0===p?void 0:p.reference:null==o?void 0:o.reference;let P;e.useEffect((()=>{h&&h.length>0&&h.map((e=>{var n;null===(n=null==e?void 0:e.content)||void 0===n||n.body.map((e=>{"countryListComponent"==(null==e?void 0:e.component)&&C(null==e?void 0:e.countryValues)}))}))}),[h]),e.useEffect((()=>{(null==S?void 0:S.length)>0&&(P=S.length,w(Math.ceil(P/3)))}),[S]);return e.createElement(e.Fragment,null,e.createElement(dt,{modalState:v,handler:()=>{_(!1),"function"==typeof i&&i()},overlay:h},b&&e.createElement(rt,{keyParams:"loading"}),!b&&e.createElement(e.Fragment,null,e.createElement(r,{className:"linetable-countryOverlay-desktopView"},e.createElement("div",null,e.createElement(c,{className:"linetable-countryOverlay-utils-noWrap"},e.createElement(s,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(c,null,S.slice(0,y).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(s,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(c,null,S.slice(y,2*y).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))),e.createElement(s,{className:"linetable-countryOverlay-utils-colWidth"},e.createElement(c,null,S.slice(2*y,3*y).map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name))))))))),e.createElement(r,{className:"linetable-countryOverlay-mobView"},e.createElement(c,null,e.createElement(s,null,e.createElement(c,null,S.map(((n,t)=>e.createElement("div",{className:"linetable-countryOverlay-contain",key:n.name?n.name:t},e.createElement("div",null,e.createElement("img",{src:n.icon.filename,alt:"",className:"linetable-countryOverlay-image"})),e.createElement("div",{className:"linetable-countryOverlay-name"},n.name)))))))))),e.createElement("span",{onClick:()=>{var e,t,o,d,r,c,s,u,m,p,h;_(!v),"function"==typeof i&&i();const b=(null===(d=null===(o=null===(t=null===(e=null==k?void 0:k.content)||void 0===e?void 0:e.body)||void 0===t?void 0:t[0])||void 0===o?void 0:o.countryList)||void 0===d?void 0:d.cached_url)?null===(m=null===(u=null===(s=null===(c=null===(r=null==k?void 0:k.content)||void 0===r?void 0:r.body)||void 0===c?void 0:c[0])||void 0===s?void 0:s.countryList)||void 0===u?void 0:u.cached_url)||void 0===m?void 0:m.replace(null==l?void 0:l.lang,""):null==k?void 0:k.replace(null==l?void 0:l.lang,""),y=null==b?void 0:b.replace("//",""),w=`${a?null===(p=null==g?void 0:g.getInstance())||void 0===p?void 0:p.getSBUrl():null===(h=null==g?void 0:g.getInstance())||void 0===h?void 0:h.getBaseUrl()}rest/cms/stories/?by_slugs=${y}`;((e,t,o,l)=>E(void 0,void 0,void 0,(function*(){var i;const a=xe(`${e}_${t}_countryData`);if(a)return a;try{const a={language:t,type:"B2C"},d=null===(i=(yield n.CMSStoryblokServiceV2.get(o,a)).data)||void 0===i?void 0:i.stories;return d&&d.length>0&&be(`${e}_${t}_countryData`,d,l),d}catch(e){return console.error(e),e}})))(null==k?void 0:k.name,null==l?void 0:l.lang,w,864e5).then((e=>{e&&e.length>0&&f(e),x(!1)}))},className:`linetable-countryOverlay-linkTextNew display-5 ${a&&"reusbablelnetable-margin"}`},t))};h(".linetable-CardEntitlement-mobileProductEntitlement {\r\n margin: 0;\r\n padding: 0 16px 0 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementValue {\r\n display: flex;\r\n margin-bottom: 4px;\r\n align-items: center;\r\n font-size: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementIcon {\r\n align-self: flex-start;\r\n margin-right: 8px;\r\n}\r\n\r\n.linetable-CardEntitlement-entitlementIcon img {\r\n vertical-align: sub;\r\n}\r\n.linetable-CardEntitlement-animationTitle {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #3d3935;\r\n font-weight: 700;\r\n margin-bottom: auto;\r\n}\r\n.linetable-CardEntitlement-entitlementContent {\r\n display: inline-flex;\r\n margin-bottom: 16px;\r\n}\r\n.linetable-CardEntitlement-entitlementDescription {\r\n color: #3d3935;\r\n margin-left: 32px;\r\n margin-bottom: 4px;\r\n font-size: 16px;\r\n font-weight: 500;\r\n width: calc(100% - 32px);\r\n}\r\n");const Et=e.createContext({indexKey:0,listLength:0,arrowUpIcon:"",arrowDownIcon:"",arrowLeftRed:""}),kt=({content:n,product:t,indexKey:o,showEntitleValue:l,metadata:i,modalTriggered:a})=>{var d,r,c,s;const u=e.useRef(null),m=e.useContext(Et),p=()=>{he(`linetable-CardEntitlement-entitlementSection${m.indexKey}`,m.listLength)};return e.useEffect((()=>{setTimeout((()=>{(null==u?void 0:u.current)&&p()}),200),window.addEventListener("resize",p)}),[n]),e.createElement("div",{className:"linetable-CardEntitlement-mobileProductEntitlement",id:`linetable-CardEntitlement-entitlementSection${o}${m.indexKey}`,ref:u},e.createElement("div",{className:"row linetable-CardEntitlement-entitlementContent"},e.createElement("div",{className:"linetable-CardEntitlement-entitlementValue "},e.createElement(e.Fragment,null,(null==n?void 0:n.isblacktheme)?e.createElement(e.Fragment,null,(null===(d=null==n?void 0:n.blackFridayentitlementIcon)||void 0===d?void 0:d.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(r=null==n?void 0:n.blackFridayentitlementIcon)||void 0===r?void 0:r.filename,width:20,height:20}))):e.createElement(e.Fragment,null,(null===(c=null==n?void 0:n.entitlementIcon)||void 0===c?void 0:c.filename)&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementIcon"},e.createElement("img",{src:null===(s=null==n?void 0:n.entitlementIcon)||void 0===s?void 0:s.filename,width:20,height:20}))),e.createElement("span",{className:"linetable-CardEntitlement-animationTitle entitlementDisplay"},null==n?void 0:n.entitlementName))),e.createElement("div",{className:"d-block"},n.entitlementDescription&&l&&e.createElement("div",{className:"linetable-CardEntitlement-entitlementDescription"},null==n?void 0:n.entitlementDescription),(null==n?void 0:n.linkText)&&e.createElement(Ct,{product:t,linkText:null==n?void 0:n.linkText,metadata:i,modalTriggered:a,reuseableLineTable:!1}))))};h(".linetable-card-linetable-card-flexGrid {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.linetable-card-productContainer {\r\n background-color: #fff;\r\n padding: 24px 0 16px;\r\n text-align: left;\r\n height: 100%;\r\n border-radius: 8px;\r\n}\r\n.linetable-card-productContainer hr {\r\n margin: 16px;\r\n}\r\n.linetable-card-introText {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n font-size: 16px;\r\n line-height: 24px;\r\n font-weight: 500;\r\n color: #587467;\r\n}\r\n.linetable-card-productTeaser {\r\n background-color: #fff;\r\n border-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n box-shadow: 0px 4px 12px 0px #57545233;\r\n}\r\n.linetable-card-prodHeading {\r\n font-size: 14px;\r\n line-height: 20px;\r\n color: #606060;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n}\r\n.linetable-card-titleContainer {\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n}\r\n.linetable-card-productTitle {\r\n color: #1e1e1e;\r\n font-weight: bold;\r\n margin-bottom: 4px;\r\n display: flex;\r\n align-items: baseline;\r\n justify-content: space-between;\r\n}\r\n.linetable-card-productTitle > h1,\r\n.linetable-card-productTitle > h2,\r\n.linetable-card-productTitle > h3,\r\n.linetable-card-productTitle > h4,\r\n.linetable-card-productTitle > h5,\r\n.linetable-card-productTitle > h6 {\r\n color: #1e1e1e !important;\r\n}\r\n.linetable-card-productTitle > h3 {\r\n font-size: 24px;\r\n line-height: 32px;\r\n}\r\n.linetable-card-productTitle > h2 {\r\n margin-right: 8px;\r\n}\r\n.linetable-card-prodDescription {\r\n font-size: 16px;\r\n line-height: 24px;\r\n color: #333333;\r\n display: flex;\r\n font-weight: 400;\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-card-productTitle {\r\n height: auto;\r\n }\r\n}\r\n\r\n.linetable-card-productDetailSection{\r\n margin: 0 16px;\r\n}\r\n.linetable-card-productDetailSection img {\r\n vertical-align: bottom;\r\n margin-right: 8px;\r\n}\r\n.linetable-card-bottomConatiner {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: end;\r\n}");const Pt=({modalState:n,handler:t,showFooter:l,footerNode:i,children:a,width:d,height:r,noCloseButton:c,backButton:s})=>{const u=e.useContext(Et);return e.useEffect((()=>{const e=document.querySelector(".linetable-product-modal .footer-main");e&&(e.style.zIndex="10");const n=document&&document.querySelector(".modal-dialog.linetable-product-modal");n&&(n.style.maxWidth=d,n.style.padding="0",n.style.transform="none");const t=document.querySelector(".linetable-product-modal .modal-content");t&&(t.style.height=r,t.style.backgroundColor="#F7F6F5");const o=document.querySelector(".linetable-product-modal .modal-header");o&&(o.style.position="absolute",o.style.top="0",o.style.zIndex="1",o.style.maxWidth="100%",o.style.background="#f8f8f8",o.style.width="100%");const l=document.querySelector(".linetable-product-modal .modal-body");l&&(l.style.background="#f8f8f8",l.style.paddingTop="70px")}),[r]),e.createElement(o.Modal,{scrollable:!1,show:n,onHide:t,keyboard:!1,dialogClassName:"linetable-product-modal"},e.createElement(o.Modal.Header,null,s&&e.createElement("div",{style:{justifyContent:"start",cursor:"pointer"},onClick:t},e.createElement(e.Fragment,null,(null==u?void 0:u.arrowLeftRed)&&e.createElement("img",{src:null==u?void 0:u.arrowLeftRed,width:24,height:24}),e.createElement("span",{style:{color:"#DA291C"}}," ",s))),e.createElement("div",{style:{display:c?"none":"",justifyContent:"end"}},e.createElement(o.CloseButton,{className:"sr-modal-close",onClick:t}))),e.createElement(o.Modal.Body,null,a),l&&e.createElement(o.Modal.Footer,null,i))};h(".linetable-sr-def-row {\r\n margin-left: auto;\r\n margin-right: auto;\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n max-width: 1308px;\r\n width: 100%;\r\n}\r\n\r\n.resusable-linetable {\r\n padding-left: 0;\r\n padding-right: 0;\r\n}\r\n\r\n@media (min-width: 1024px) and (max-width: 1439px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n@media (min-width: 768px) and (max-width: 1023px) {\r\n .linetable-sr-def-row {\r\n max-width: 720px;\r\n }\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .linetable-sr-def-row {\r\n max-width: 972px;\r\n }\r\n}\r\n\r\n.linetable-sr-def-row .linetable-sr-def-row {\r\n padding: 0px;\r\n max-width: 100%;\r\n}");const Tt=({children:n,resuablelineTable:t})=>e.createElement("div",{className:`linetable-sr-def-row linetable-sr-responsive-row\n ${t&&"resusable-linetable"}\n `},n);h(".linetable-falconAccordion-section {\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description {\r\n color: #3d3935;\r\n padding-bottom: 32px;\r\n text-align: center;\r\n}\r\n\r\n.linetable-falconAccordion-description p a {\r\n color: #da291c;\r\n}\r\n\r\n.linetable-falconAccordion-container {\r\n box-shadow: 0 2px 4px rgba(87, 84, 82, 0.2);\r\n border-radius: 8px;\r\n overflow: hidden;\r\n padding: 0;\r\n}\r\n\r\n.linetable-falconAccordion-current-item {\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:first-child {\r\n border-radius: 8px 8px 0 0;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-current-item:last-child {\r\n border-bottom: none;\r\n border-radius: 0 0 8px 8px;\r\n overflow: hidden;\r\n}\r\n\r\n.linetable-falconAccordion-item:hover {\r\n background-color: #f7f6f5;\r\n}\r\n\r\n.linetable-falconAccordion-wrapper {\r\n margin-left: 32px;\r\n margin-right: 32px;\r\n border-bottom: 1px solid #e6e3df;\r\n}\r\n\r\n.linetable-falconAccordion-title {\r\n color: #3d3935;\r\n font-style: normal;\r\n font-weight: bold;\r\n font-size: 16px;\r\n line-height: 24px;\r\n margin-right: 28px;\r\n min-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 24px 0;\r\n}\r\n\r\n.prod-card .accordion-body {\r\n padding: 8px 0 32px 0;\r\n color: #3d3935;\r\n text-align: left;\r\n font-size: 16px;\r\n line-height: 24px;\r\n}\r\n\r\n.prod-card .accordion-button::after {\r\n position: absolute;\r\n top: 24px;\r\n right: 0;\r\n background-image: url('/ecom-int/icons/falcon-arrow-down.svg') !important;\r\n background-size: 24px 24px !important;\r\n background-size: unset;\r\n}\r\n\r\n.prod-card .accordion-button:not(.collapsed)::after {\r\n background-image: url('/ecom-int/icons/falcon-arrow-up.svg') !important;\r\n}\r\n\r\n.linetable-falconAccordion-disabled {\r\n opacity: 0.8;\r\n pointer-events: none;\r\n background-color: #e6e3df;\r\n}\r\n\r\n/* for mobile view */\r\n@media (max-width: 767px) {\r\n .prod-card .description {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .linetable-falconAccordion-item:hover {\r\n background-color: none;\r\n }\r\n\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n }\r\n\r\n .prod-card .accordion-flush .linetable-falconAccordion-item .accordion-button {\r\n padding: 16px 0;\r\n }\r\n\r\n .prod-card .accordion-body {\r\n padding-bottom: 24px;\r\n }\r\n\r\n .prod-card .accordion-button::after {\r\n top: 16px;\r\n }\r\n}\r\n\r\n/* For tablet view */\r\n@media (max-width: 1023px) {\r\n .linetable-falconAccordion-wrapper {\r\n margin-left: 24px;\r\n margin-right: 24px;\r\n }\r\n}");const Ot=({content:n})=>{const t=null==n?void 0:n._uid;return e.createElement("div",{className:"prod-card"},e.createElement(o.Accordion,{flush:!0,defaultActiveKey:(null==n?void 0:n.alwaysOpen)?t:""},e.createElement(o.Accordion.Item,{eventKey:t,className:`${(null==n?void 0:n.disabled)&&"linetable-falconAccordion-disabled"} linetable-falconAccordion-item`},e.createElement("div",{className:"linetable-falconAccordion-wrapper"},e.createElement(o.Accordion.Header,null,e.createElement("span",{className:"linetable-falconAccordion-title"},null==n?void 0:n.title)),e.createElement(o.Accordion.Body,null,(null==n?void 0:n.bodyText)&&e.createElement(Te,{content:null==n?void 0:n.bodyText}))))))},Nt=({content:n})=>{var t,o,l,i,a,d,r;return e.createElement("section",{className:"linetable-falconAccordion-section"},e.createElement(Tt,null,e.createElement(e.Fragment,null,(null==n?void 0:n.title)&&(null===(t=null==n?void 0:n.title)||void 0===t?void 0:t.length)>0&&e.createElement(it,{content:null===(o=null==n?void 0:n.title)||void 0===o?void 0:o[0]}),(null==n?void 0:n.description)&&(null===(l=null==n?void 0:n.description)||void 0===l?void 0:l.length)>0&&e.createElement("div",{className:"linetable-falconAccordion-description"},e.createElement(at,{content:null===(i=null==n?void 0:n.description)||void 0===i?void 0:i[0]})),(null==n?void 0:n.accordions)&&(null===(a=null==n?void 0:n.accordions)||void 0===a?void 0:a.length)>0&&(null===(d=null==n?void 0:n.accordions[0])||void 0===d?void 0:d.title)&&e.createElement("div",{className:"linetable-falconAccordion-container"},null===(r=null==n?void 0:n.accordions)||void 0===r?void 0:r.map((n=>e.createElement("div",{tabIndex:0,key:null==n?void 0:n._uid,className:"linetable-falconAccordion-current-item"},e.createElement(Ot,{content:Object.assign({},n)}))))))))},Lt=({content:n})=>{const t=(e=>{switch(e){case"grey-100":return"falcon-background-grey-100";case"ice-white":return"falcon-background-ice-white";case"transparent":return"falcon-background-transparent";default:return""}})(null==n?void 0:n.backgroundColor),o=ge(null==n?void 0:n.gradientBackground),l=(null==n?void 0:n.gradientBackground)===P?t:o;return e.createElement("div",null,n.height?e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.height}px`}}):e.createElement("div",{className:`d-none d-sm-block ${l}`,style:{height:`${n.desktopHeight}px`}}),e.createElement("div",{className:`d-block d-sm-none ${l} `,style:{height:`${n.mobHeight}px`}}))};h(".linetable-productDetailsText {\r\n color: #da291c;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n}");h('.linetable-staticPrice-priceWrapper {\r\n\tborder-radius: 8px;\r\n\tborder: 1px solid #E6E3DF;\r\n\tmargin: 16px 16px 0 16px;\r\n\tpadding: 8px 16px;\r\n\tfont-size: 14px;\r\n\tfont-weight: 400;\r\n\tline-height: 20px;\r\n}\r\n\r\n.linetable-staticPrice-discountPriceSection {\r\n\tcolor: #2E6199;\r\n\tmargin-right: 8px;\r\n}\r\n\r\n.linetable-staticPrice-discountedPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-basePrice {\r\n\tfont-size: 20px;\r\n\tfont-weight: 700;\r\n\tline-height: 28px;\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.linetable-staticPrice-priceStrikeout::after {\r\n\tcontent: "";\r\n\tposition: absolute;\r\n\tright: -1px;\r\n\tleft: -2px;\r\n\ttop: 50%;\r\n\twidth: 100%;\r\n\tborder-bottom: 2px solid #da291c;\r\n\ttransform: rotate(-18.22deg);\r\n}\r\n\r\n.linetable-staticPrice-noDiscountPrice {\r\n\tfont-size: 32px;\r\n\tfont-weight: 700;\r\n\tline-height: 40px;\r\n}\r\n\r\n.linetable-staticPrice-contractDescription {\r\n\tmargin-top: 6px;\r\n}\r\n\r\n.linetable-staticPrice-addToCart {\r\n\tmargin-top: 8px;\r\n\twidth: 100%;\r\n\tpadding: 10px 24px;\r\n\tborder-radius: 25px;\r\n\tbackground: #DA291C;\r\n\tcolor: #FFFFFF;\r\n\tfont-size: 16px;\r\n\tfont-weight: 700;\r\n\tline-height: 24px;\r\n\tborder: 0px;\r\n}\r\n\r\n.linetable-staticPrice-productDetails-priceWrapper {\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n}\r\n\r\n@media (min-width: 425px) {\r\n\t.linetable-staticPrice-productDetails-addToCart {\r\n\t\tmin-width: 120px;\r\n\t}\r\n}');const Dt=({content:n,addToCart:t,variant:o})=>{const l=e.useContext(Et),i=()=>{he("linetable-staticPrice-priceSection",l.listLength)};e.useEffect((()=>{setTimeout((()=>{i()}),200),window.addEventListener("resize",i)}),[n]);return e.createElement("div",{className:`linetable-staticPrice-priceWrapper ${"productDetails"===o&&"linetable-staticPrice-productDetails-priceWrapper"}`},e.createElement("div",{id:`linetable-staticPrice-priceSection${null==l?void 0:l.indexKey}`},e.createElement("div",{className:"linetable-staticPrice-priceSection"},(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},null==n?void 0:n.discountPriceValue),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+((null==n?void 0:n.isEnableDiscountPrice)?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},fe(null==n?void 0:n.priceValue)),!(null==n?void 0:n.isEnableDiscountPrice)&&e.createElement(e.Fragment,null,null==n?void 0:n.priceDuration))),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},null==n?void 0:n.contractDescription)),e.createElement("div",null,e.createElement("button",{className:`linetable-staticPrice-addToCart ${"productDetails"===o&&"linetable-staticPrice-productDetails-addToCart"}`,onClick:()=>{"function"==typeof t&&t(n)}},null==n?void 0:n.addButton)))},It=({content:n,updatedContent:t,modalTriggered:o,addToCart:l})=>{var i;const[a,d]=e.useState(!1),r=null==n?void 0:n.subscriptionDetailModal;let c=[],s="";r&&(null==r?void 0:r.length)>0&&(null==r||r.map((e=>{c=null==e?void 0:e.modalBody,null==e||e.productPriceVariant,s=null==e?void 0:e.backButton,null==e||e.priceChangeContent})));const u=()=>{d(!a),"function"==typeof o&&o()};return e.createElement(e.Fragment,null,a&&e.createElement(Pt,{modalState:a,handler:u,showFooter:!1,height:"100%",width:"883px",backButton:s},e.createElement(e.Fragment,null,null==c?void 0:c.map(((n,t)=>e.createElement(Tt,null,e.createElement(e.Fragment,null,(null==n?void 0:n.component)===T&&e.createElement(at,{content:n,key:t}),(null==n?void 0:n.component)===N&&e.createElement(Lt,{content:n}),(null==n?void 0:n.component)===O&&e.createElement(Nt,{content:n}))))),(null==n?void 0:n.isEnablePrice)&&e.createElement(Dt,{content:n,addToCart:l,variant:"productDetails"}))),e.createElement("span",{onClick:u,className:"linetable-productDetailsText"},null!==(i=null==t?void 0:t.subscription)&&void 0!==i?i:null==t?void 0:t.subscriptionText))},Mt=({content:n,showPrice:t,addToCart:o})=>{var l,i,a,d,r;const c=null!==(l=null==t?void 0:t.base)&&void 0!==l?l:0;let s=null!==(d=null===(a=null===(i=null==t?void 0:t.discount)||void 0===i?void 0:i[0])||void 0===a?void 0:a.value)&&void 0!==d?d:0;null===(r=null==t?void 0:t.discount)||void 0===r||r.map((e=>{1==(null==e?void 0:e.cycleStart)&&(s=null==e?void 0:e.value)}));const u=null==t?void 0:t.contractDuration;return e.createElement("div",{className:"linetable-staticPrice-priceWrapper"},(null==t?void 0:t.base)?e.createElement(e.Fragment,null,s>0&&e.createElement("span",{className:"linetable-staticPrice-discountPriceSection"},e.createElement("span",{className:"linetable-staticPrice-discountedPrice"},fe(s)),null==n?void 0:n.priceDuration),e.createElement("span",null,e.createElement("span",{className:"linetable-staticPrice-basePrice "+(s>0?"linetable-staticPrice-priceStrikeout":"linetable-staticPrice-noDiscountPrice")},fe(c)),0===s&&(null==n?void 0:n.priceDuration)),e.createElement("div",{className:"linetable-staticPrice-contractDescription"},u&&0!==u?e.createElement("div",null):e.createElement("div",null,null==n?void 0:n.contractDescription))):"",e.createElement("div",null,e.createElement("button",{className:"linetable-staticPrice-addToCart",onClick:o},null==n?void 0:n.addButton)))};var Vt={carouselContainer:"ProductTeaser-module_carouselContainer__RzBpK",arrowButton:"ProductTeaser-module_arrowButton__-AkY4",leftArrow:"ProductTeaser-module_leftArrow__Ybrjm",rightArrow:"ProductTeaser-module_rightArrow__MYs5F",stageTeaserTab:"ProductTeaser-module_stageTeaserTab__VYRxL",stageTeaserTabActive:"ProductTeaser-module_stageTeaserTabActive__Wu5nT",carousel_dot:"ProductTeaser-module_carousel_dot__zxG-A",carouselItemNew:"ProductTeaser-module_carouselItemNew__TTklX",teaserImageLeft:"ProductTeaser-module_teaserImageLeft__dIk-h",teaserImageRight:"ProductTeaser-module_teaserImageRight__hHvry",carouselItem:"ProductTeaser-module_carouselItem__vtLwf",teaserImage:"ProductTeaser-module_teaserImage__sQ3ed",productDetailsWrapperNew:"ProductTeaser-module_productDetailsWrapperNew__DfLax",productDetailsWrapperTransparent:"ProductTeaser-module_productDetailsWrapperTransparent__ES5iK",productDetailsWrapper:"ProductTeaser-module_productDetailsWrapper__0jFlz",titleSection:"ProductTeaser-module_titleSection__YqXUJ",featureSection:"ProductTeaser-module_featureSection__T-YzP",contentWrapper:"ProductTeaser-module_contentWrapper__3GKwX",contentWrapperLeft:"ProductTeaser-module_contentWrapperLeft__tGGEs",priceContainer:"ProductTeaser-module_priceContainer__CzBhB",priceContainerNew:"ProductTeaser-module_priceContainerNew__hn6rW",contentWrapperRight:"ProductTeaser-module_contentWrapperRight__8FP0u",contentMobWrapper:"ProductTeaser-module_contentMobWrapper__9rRLQ",heading:"ProductTeaser-module_heading__Xim2-",fadeOutText:"ProductTeaser-module_fadeOutText__nKr5i",fadeInText:"ProductTeaser-module_fadeInText__Ux98m",paragraph:"ProductTeaser-module_paragraph__hUonu",description:"ProductTeaser-module_description__s-lyV",extraSpace:"ProductTeaser-module_extraSpace__HFJ2A",toolTip:"ProductTeaser-module_toolTip__KL7Xx",gradiantBox:"ProductTeaser-module_gradiantBox__Eys-K",addOnSection:"ProductTeaser-module_addOnSection__G4zhX",featureList:"ProductTeaser-module_featureList__gmPS1",features:"ProductTeaser-module_features__o2jMu",featureIcon:"ProductTeaser-module_featureIcon__PbcQN",horizontalLine:"ProductTeaser-module_horizontalLine__Nfj9U",horizontalLineDark:"ProductTeaser-module_horizontalLineDark__Sg-Ou",addOnSectionIcon:"ProductTeaser-module_addOnSectionIcon__9-EoX",toggleSection:"ProductTeaser-module_toggleSection__2az0R",toggle:"ProductTeaser-module_toggle__GClvg",serviceUnavail:"ProductTeaser-module_serviceUnavail__Pe52H",leftWrapper:"ProductTeaser-module_leftWrapper__pj0yj",priceWrapper:"ProductTeaser-module_priceWrapper__7TC6y",slider:"ProductTeaser-module_slider__-V4R1",line:"ProductTeaser-module_line__mbJxT",pricetxt:"ProductTeaser-module_pricetxt__YYSmd",sliderNew:"ProductTeaser-module_sliderNew__ZnCAh",clicked:"ProductTeaser-module_clicked__A9jUK",priceDuration:"ProductTeaser-module_priceDuration__TeeO9",callCartNew:"ProductTeaser-module_callCartNew__AksMY",arrowIcon:"ProductTeaser-module_arrowIcon__OFm89",callCart:"ProductTeaser-module_callCart__YLJSL",disableCallcart:"ProductTeaser-module_disableCallcart__-M8Od",priceDesc:"ProductTeaser-module_priceDesc__8Er0h",priceDescCenter:"ProductTeaser-module_priceDescCenter__hhZUS",priceDescNew:"ProductTeaser-module_priceDescNew__ghXo4",priceLeftCenter:"ProductTeaser-module_priceLeftCenter__SVC5R"};h('/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ProductTeaser-module_carouselContainer__RzBpK {\n position: static;\n margin-top: 32px;\n border-radius: 24px;\n}\n@media (min-width: 768px) {\n .ProductTeaser-module_carouselContainer__RzBpK {\n box-shadow: 0px 20px 30px -8px rgba(87, 84, 82, 0.4);\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n background: #ffffff;\n box-shadow: 0px 4px 12px rgba(87, 84, 82, 0.2);\n border-radius: 24px;\n font-size: 16px;\n height: 44px;\n width: 44px;\n padding: 10px;\n position: absolute;\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_arrowButton__-AkY4::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before, .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n color: #da291c;\n font-size: 20px;\n display: block;\n font-family: revicons;\n text-align: center;\n z-index: 1;\n position: relative;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F {\n right: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F::before {\n content: "\\e825";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_rightArrow__MYs5F:disabled {\n background: #e6e3df;\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 22px;\n top: 253px;\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: 16px;\n top: 263px;\n }\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm {\n left: -32px;\n top: 278px;\n }\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm::before {\n content: "\\e824";\n}\n.ProductTeaser-module_carouselContainer__RzBpK .ProductTeaser-module_leftArrow__Ybrjm:disabled {\n background: #e6e3df;\n}\n\n.ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n border-radius: 40px;\n border: none;\n color: #5f5955;\n background-color: #ffffff;\n font-size: 16px;\n line-height: 24px;\n font-weight: 700;\n padding: 10px 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_stageTeaserTab__VYRxL, .ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n max-width: 158px;\n }\n}\n\n.ProductTeaser-module_stageTeaserTabActive__Wu5nT {\n color: #ffffff;\n background: #da291c;\n}\n\n.ProductTeaser-module_carousel_dot__zxG-A {\n border-radius: 50px;\n background-color: #ffffff;\n border: 2px solid rgba(61, 57, 53, 0.25);\n padding: 1px;\n width: fit-content;\n margin: 0 auto;\n position: absolute;\n top: -24px;\n height: fit-content;\n}\n\n.ProductTeaser-module_carouselItemNew__TTklX {\n position: fixed;\n top: -24px;\n width: 100%;\n}\n\n.ProductTeaser-module_teaserImageLeft__dIk-h {\n object-fit: contain;\n object-position: right;\n position: relative;\n left: 600px;\n}\n\n.ProductTeaser-module_teaserImageRight__hHvry {\n object-fit: contain;\n object-position: left;\n position: relative;\n}\n\n.ProductTeaser-module_carouselItem__vtLwf {\n position: relative;\n width: 100%;\n}\n.ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n object-fit: cover;\n object-position: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_carouselItem__vtLwf {\n display: flex;\n justify-content: center;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_teaserImage__sQ3ed {\n border-radius: 24px;\n position: absolute;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperNew__DfLax, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz {\n min-width: 520px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperNew__DfLax .ProductTeaser-module_titleSection__YqXUJ, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK .ProductTeaser-module_titleSection__YqXUJ, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n left: unset;\n top: unset;\n height: fit-content;\n margin: auto 0;\n font-size: 28px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperNew__DfLax .ProductTeaser-module_featureSection__T-YzP, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK .ProductTeaser-module_featureSection__T-YzP, .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: 0px;\n top: 0;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapper__0jFlz {\n position: absolute;\n display: flex;\n justify-content: space-between;\n left: 107px;\n right: 107px;\n top: 129px;\n }\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK {\n position: relative;\n display: flex;\n justify-content: space-between;\n padding: 0 50px;\n top: 129px;\n height: 550px;\n }\n .ProductTeaser-module_carouselItem__vtLwf .ProductTeaser-module_productDetailsWrapperTransparent__ES5iK .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n left: unset;\n top: unset;\n bottom: 170px;\n height: fit-content;\n margin: auto 0;\n font-size: 28px;\n }\n}\n\n.ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n position: absolute;\n top: 40px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n left: 30px;\n }\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n max-width: 460px;\n }\n}\n@media (min-width: 768px) {\n .ProductTeaser-module_contentWrapper__3GKwX, .ProductTeaser-module_contentWrapperLeft__tGGEs {\n left: 24px;\n max-width: 400px;\n }\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_titleSection__YqXUJ, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n text-align: center;\n left: unset;\n top: unset;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_featureSection__T-YzP, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: unset;\n top: unset;\n margin-top: 24px;\n}\n.ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_contentWrapper__3GKwX .ProductTeaser-module_priceContainerNew__hn6rW, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_contentWrapperLeft__tGGEs .ProductTeaser-module_priceContainerNew__hn6rW {\n position: relative;\n top: unset;\n bottom: unset;\n margin-top: 24px;\n}\n\n@media (min-width: 1440px) {\n .ProductTeaser-module_contentWrapperLeft__tGGEs {\n left: 107px;\n }\n}\n\n.ProductTeaser-module_contentWrapperRight__8FP0u {\n position: absolute;\n max-width: 400px;\n top: 40px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_contentWrapperRight__8FP0u {\n right: 107px;\n }\n}\n.ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n text-align: center;\n right: unset;\n top: unset;\n}\n.ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_featureSection__T-YzP {\n position: relative;\n right: unset;\n top: unset;\n margin-top: 24px;\n}\n.ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_contentWrapperRight__8FP0u .ProductTeaser-module_priceContainerNew__hn6rW {\n position: relative;\n top: unset;\n bottom: unset;\n margin-top: 24px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n position: relative;\n margin: 0 16px;\n width: 100%;\n }\n}\n@media (max-width: 320px) {\n .ProductTeaser-module_contentMobWrapper__9rRLQ {\n margin: 0 8px;\n }\n}\n\n.ProductTeaser-module_titleSection__YqXUJ {\n position: absolute;\n top: 173px;\n left: 107px;\n color: #ffffff;\n font-weight: 700;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n max-width: 412px;\n }\n}\n@media (min-width: 1024px) and (max-width: 1439px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n position: relative;\n top: unset;\n left: unset;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ {\n text-align: center;\n top: 32px;\n left: unset;\n width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 16px;\n line-height: 24px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_heading__Xim2- {\n font-size: 14px;\n line-height: 20px;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeOutText__nKr5i {\n opacity: 0;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_fadeInText__Ux98m {\n opacity: 1;\n transition: opacity 1s ease;\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 28px;\n line-height: 36px;\n margin: 8px 0 12px 0;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_paragraph__hUonu {\n font-size: 20px;\n line-height: 28px;\n max-width: 100%;\n }\n}\n.ProductTeaser-module_titleSection__YqXUJ .ProductTeaser-module_description__s-lyV {\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_extraSpace__HFJ2A {\n top: 62px;\n }\n}\n\n.ProductTeaser-module_featureSection__T-YzP {\n position: absolute;\n right: 107px;\n top: 129px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_featureSection__T-YzP {\n max-width: 412px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP {\n right: unset;\n top: unset;\n margin-top: 397px;\n font-size: 14px;\n line-height: 20px;\n background-color: #ffffff;\n color: #3D3935;\n border-radius: 12px;\n position: relative;\n height: fit-content;\n }\n}\n.ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: brightness(0) invert(1);\n margin-left: 16px;\n display: flex;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureSection__T-YzP .ProductTeaser-module_toolTip__KL7Xx {\n filter: none;\n }\n}\n\n.ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px;\n background: rgba(0, 0, 0, 0.2);\n backdrop-filter: blur(12.5px);\n color: #ffffff;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_gradiantBox__Eys-K, .ProductTeaser-module_addOnSection__G4zhX, .ProductTeaser-module_featureList__gmPS1 {\n background: none;\n color: unset;\n backdrop-filter: unset;\n }\n}\n\n.ProductTeaser-module_featureList__gmPS1 {\n padding: 4px 20px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu {\n display: flex;\n align-items: center;\n margin: 12px 0;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu a {\n color: #ffffff;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu .ProductTeaser-module_featureIcon__PbcQN {\n margin-right: 10px;\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #ffffff;\n text-decoration: underline;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_features__o2jMu span {\n color: #3d3935;\n }\n}\n.ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLine__Nfj9U, .ProductTeaser-module_featureList__gmPS1 .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n opacity: 0.5;\n background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);\n height: 1px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_featureList__gmPS1 {\n border-radius: 12px 12px 0px 0px;\n }\n}\n\n.ProductTeaser-module_addOnSection__G4zhX {\n padding: 16px 20px;\n margin-top: 16px;\n display: flex;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_addOnSectionIcon__9-EoX {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R {\n margin-left: auto;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R .ProductTeaser-module_toggle__GClvg {\n margin-right: 10px;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input {\n cursor: pointer;\n margin-top: unset;\n}\n.ProductTeaser-module_addOnSection__G4zhX .ProductTeaser-module_toggleSection__2az0R input:focus {\n border: unset !important;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_addOnSection__G4zhX {\n border-radius: 0px 0px 12px 12px;\n margin-top: 0px;\n padding: 12px 20px;\n align-items: center;\n }\n}\n\n.ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_priceContainerNew__hn6rW {\n position: absolute;\n bottom: 40px;\n width: 100%;\n color: #ffffff;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_serviceUnavail__Pe52H {\n text-align: center;\n margin-bottom: 10px;\n font-size: 16px;\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_serviceUnavail__Pe52H img, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_serviceUnavail__Pe52H img {\n margin-right: 8px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB, .ProductTeaser-module_priceContainerNew__hn6rW {\n color: #3D3935;\n position: static;\n display: flex;\n justify-content: center;\n flex-direction: column;\n padding: 16px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_leftWrapper__pj0yj, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_leftWrapper__pj0yj {\n position: relative;\n right: 38px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y {\n font-size: 24px;\n line-height: 32px;\n font-weight: 700;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y {\n margin-right: unset;\n flex-direction: column;\n font-size: 20px;\n line-height: 28px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n height: 32px;\n overflow: hidden;\n margin-right: 12px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT {\n transition: transform 0.5s ease;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n margin-right: 6px;\n display: inline-block;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_slider__-V4R1 {\n margin-bottom: 8px;\n margin-right: unset;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh {\n height: 32px;\n min-width: 158px;\n overflow: hidden;\n margin-right: 12px;\n position: relative;\n bottom: 16px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT {\n transition: transform 0.5s ease;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh .ProductTeaser-module_line__mbJxT .ProductTeaser-module_pricetxt__YYSmd {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n margin-right: 6px;\n display: inline-block;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_sliderNew__ZnCAh {\n margin-bottom: 8px;\n margin-right: unset;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_clicked__A9jUK .ProductTeaser-module_line__mbJxT, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_clicked__A9jUK .ProductTeaser-module_line__mbJxT {\n transform: translateY(-100%);\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_priceDuration__TeeO9, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_priceDuration__TeeO9 {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n display: inline-block;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY {\n padding: 10px 24px;\n font-weight: 700;\n border: none;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 338px;\n height: 52px;\n font-size: 16px;\n line-height: 24px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY .ProductTeaser-module_arrowIcon__OFm89, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY .ProductTeaser-module_arrowIcon__OFm89 {\n margin-left: 8px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY {\n padding: 14px 24px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCartNew__AksMY {\n padding: 10px 24px;\n max-width: 100%;\n display: flex;\n justify-content: center;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n font-weight: 700;\n border: none;\n background-color: #da291c;\n color: #ffffff;\n border-radius: 28px;\n display: flex;\n align-items: center;\n font-size: 16px;\n line-height: 24px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL .ProductTeaser-module_arrowIcon__OFm89, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL .ProductTeaser-module_arrowIcon__OFm89 {\n margin-left: 8px;\n}\n@media (min-width: 1440px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 14px 24px;\n }\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_callCart__YLJSL {\n padding: 10px 24px;\n max-width: 100%;\n display: flex;\n justify-content: center;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_disableCallcart__-M8Od, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceWrapper__7TC6y .ProductTeaser-module_disableCallcart__-M8Od {\n background-color: #e6e3df;\n color: #b3aeaa;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceLeftCenter__SVC5R, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceLeftCenter__SVC5R {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 10px;\n}\n@media (max-width: 767px) {\n .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDesc__8Er0h, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceLeftCenter__SVC5R, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceLeftCenter__SVC5R {\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n }\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceLeftCenter__SVC5R, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceLeftCenter__SVC5R {\n position: relative;\n right: 52px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescNew__ghXo4, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescNew__ghXo4 {\n justify-content: flex-start;\n position: relative;\n bottom: 30px;\n}\n.ProductTeaser-module_priceContainer__CzBhB .ProductTeaser-module_priceDescCenter__hhZUS, .ProductTeaser-module_priceContainerNew__hn6rW .ProductTeaser-module_priceDescCenter__hhZUS {\n justify-content: flex-start;\n position: relative;\n bottom: 30px;\n right: 40px;\n}\n\n.ProductTeaser-module_priceContainerNew__hn6rW {\n bottom: 0px;\n top: 400px;\n}\n\n@media (max-width: 767px) {\n .ProductTeaser-module_horizontalLineDark__Sg-Ou {\n margin: 0 16px;\n height: 1px;\n background-color: #e6e3df;\n }\n}');class Bt{constructor(e){this.config={baseURL:"",cartURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.config=e}}Bt.getInstance=()=>Bt.instance,Bt.create=e=>{Bt.instance=new Bt(e)};class At{constructor(e){this.config={baseURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.config=e}}At.getInstance=()=>At.instance,At.create=e=>{At.instance=new At(e)};class Ft{constructor(e){this.config={baseURL:"",cartURL:""},this.getConfig=()=>this.config,this.getBaseUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.baseURL)&&void 0!==n?n:""},this.getCartUrl=()=>{var e,n;return null!==(n=null===(e=this.config)||void 0===e?void 0:e.cartURL)&&void 0!==n?n:""},this.config=e}}Ft.getInstance=()=>Ft.instance,Ft.create=e=>{Ft.instance=new Ft(e)};var Rt="ToolTip-module_tooltipicon__U5Rvt",jt="ToolTip-module_benefits__-gI-y";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.ToolTip-module_tooltipicon__U5Rvt {\n height: 24px;\n margin-left: 4px;\n min-width: 20px;\n width: 24px;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .ToolTip-module_tooltipicon__U5Rvt img {\n width: inherit;\n height: inherit;\n }\n}\n\n.ToolTip-module_benefits__-gI-y img {\n width: 20px !important;\n height: 20px !important;\n}");const zt=({content:n,heading:t="",tooltipClass:l="",isBenefit:i=!1})=>{var a;const d=we(),r=Se(),c=null===(a=null==f?void 0:f.getInstance())||void 0===a?void 0:a.getAssetPath();return n&&e.createElement(o.OverlayTrigger,{placement:"auto",rootClose:!0,trigger:""+("mobile"===d||"tablet"===d||r?"click":"hover"),overlay:n&&e.createElement(o.Popover,{id:"popover-basic"},""!==t&&e.createElement(o.Popover.Header,null,t),e.createElement(o.Popover.Body,null,n))},e.createElement("div",{className:`${Rt} ${l} ${i&&jt}`},c&&e.createElement("img",{src:`${c}/icons/tooltip_icon.svg`,width:24,height:24,alt:""})))},Ut=(e,n)=>{var t,o,l,i,a,d,r,c,s,u,m,p,v,_,h,g,f,b,x,y;const{itemCategory:w,location:S}=n,C=null!==(a=null===(i=null===(l=null===(o=null===(t=null==e?void 0:e.prices)||void 0===t?void 0:t[0])||void 0===o?void 0:o.priceAlteration)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value)&&void 0!==a?a:0,E=null!==(c=null===(r=null===(d=null==e?void 0:e.prices)||void 0===d?void 0:d[0])||void 0===r?void 0:r.value)&&void 0!==c?c:0;return{item_id:null!==(s=null==e?void 0:e.id)&&void 0!==s?s:"",item_name:null!==(u=null==e?void 0:e.id)&&void 0!==u?u:"",affiliation:null!==(v=null===(p=null===(m=null==e?void 0:e.promotionInfo)||void 0===m?void 0:m[0])||void 0===p?void 0:p.campaignId)&&void 0!==v?v:"",coupon:"",discount:C&&Number(C),index:0,item_brand:Ne,item_category:null!==(h=null!==(_=null==w?void 0:w.productName)&&void 0!==_?_:null==w?void 0:w.id)&&void 0!==h?h:"MOBILE",item_category2:w?"BUNDLE":"MOBILE",item_category3:"",item_category4:"",item_category5:"",item_list_id:w?"Fixnet":"Mobile",item_list_name:w?"Fixnet":"Mobile",item_variant:null!==(f=null!==(g=null==w?void 0:w.productName)&&void 0!==g?g:null==w?void 0:w.id)&&void 0!==f?f:null==e?void 0:e.id,location_id:S,price:E&&Number(E),quantity:1,promotion_id:null!==(y=null===(x=null===(b=null==e?void 0:e.promotionInfo)||void 0===b?void 0:b[0])||void 0===x?void 0:x.campaignId)&&void 0!==y?y:""}},Wt=(e,n,t)=>{const o=[];return null==e||e.map((e=>{var l;(null==e?void 0:e.bundledOffers)?null===(l=null==e?void 0:e.bundledOffers)||void 0===l||l.map((l=>{const i=""==n?e:n;o.push(Ut(l,{itemCategory:i,location:t}))})):o.push(Ut(e,{location:t}))})),o},$t=(e,n,t)=>{var o,l,i,a;const d=null===(i=null===(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.derivedPrice)||void 0===l?void 0:l[0])||void 0===i?void 0:i.value;return{currency:"CHF",value:null!==(a=d&&Number(d))&&void 0!==a?a:0,items:Wt(e,n,t)}},Ht=e=>{const n={prodCategory:"",prodsubCategory:"",prodsubscription:""};if("MOBILE"===(null==e?void 0:e.productType))n.prodCategory="Mobile",n.prodsubCategory="Postpaid",n.prodsubscription="Subscription only";else if("MOBILEPREPAID_RATEPLAN"===(null==e?void 0:e.productType))n.prodCategory="Mobile",n.prodsubCategory="Prepaid",n.prodsubscription="No subscription";else{switch(n.prodCategory="Home",null==e?void 0:e.productType){case"INTERNET":n.prodsubCategory="Internet";break;case"TV":n.prodsubCategory="TV";break;case"VOICE":n.prodsubCategory="Phone";break;default:n.prodsubCategory=""}n.prodsubscription="Subscription only"}return n},Yt=(e,n,t)=>{var o,l,i,a,d,r,c,s,u,m,p,v,_,h,g,f,b,x,y,w,S,C;const{itemCategory:E,location:k}=n,P=null!==(d=null===(a=null===(i=null===(l=null===(o=null==e?void 0:e.prices)||void 0===o?void 0:o[0])||void 0===l?void 0:l.priceAlteration)||void 0===i?void 0:i[0])||void 0===a?void 0:a.value)&&void 0!==d?d:0,T=null!==(s=null===(c=null===(r=null==e?void 0:e.prices)||void 0===r?void 0:r[0])||void 0===c?void 0:c.value)&&void 0!==s?s:0,O={item_id:null!==(u=null==e?void 0:e.id)&&void 0!==u?u:"",item_name:null!==(m=null==e?void 0:e.id)&&void 0!==m?m:"",affiliation:null!==(_=null===(v=null===(p=null==e?void 0:e.promotionInfo)||void 0===p?void 0:p[0])||void 0===v?void 0:v.campaignId)&&void 0!==_?_:"",coupon:"",discount:P&&Number(P),index:0,item_brand:Ne,item_category:null===(h=Ht(e))||void 0===h?void 0:h.prodCategory,item_category2:null===(g=Ht(e))||void 0===g?void 0:g.prodsubCategory,item_category3:"",item_category4:null===(f=Ht(e))||void 0===f?void 0:f.prodsubscription,item_category5:"",item_list_id:E?"Fixnet":"Mobile",item_list_name:E?"Fixnet":"Mobile",item_variant:null!==(y=null!==(x=null!==(b=null==E?void 0:E.title)&&void 0!==b?b:null==E?void 0:E.productName)&&void 0!==x?x:null==E?void 0:E.id)&&void 0!==y?y:null==e?void 0:e.id,location_id:k,price:T&&Number(T),quantity:1,promotion_id:null!==(C=null===(S=null===(w=null==e?void 0:e.promotionInfo)||void 0===w?void 0:w[0])||void 0===S?void 0:S.campaignId)&&void 0!==C?C:""};return t&&(O.item_available=t),O},Gt=(e,n,t,o)=>{const l=[];let i="";return null==e||e.map((e=>{var a;if(null==e?void 0:e.bundledOffers)null===(a=null==e?void 0:e.bundledOffers)||void 0===a||a.map((a=>{var d;const r=""==n?e:n;o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no");const c=Yt(a,{itemCategory:r,location:t},i);c.item_category3=`${null===(d=null==e?void 0:e.bundledOffers)||void 0===d?void 0:d.length}P Subscription`,l.push(c)}));else if("INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers)){const n=Yt(e,{location:t});"MOBILEPREPAID_RATEPLAN"===(null==e?void 0:e.productType)?n.item_category3="":n.item_category3="1P Subscription",l.push(n)}else{const n={id:null==e?void 0:e.id};o&&(i=(null==o?void 0:o.includes(null==e?void 0:e.id))?"yes":"no");const a=Yt(e,{itemCategory:n,location:t},i);a.item_category3="1P Subscription",l.push(a)}})),l},qt=(e,n,t)=>{let o;null==e||e.map((e=>{o=(null==e?void 0:e.bundledOffers)?"Fixnet":"INTERNET"!==(null==e?void 0:e.productType)||(null==e?void 0:e.bundledOffers)?"Mobile":"Internet"}));return{item_list_id:o,item_list_name:o,items:Gt(e,n,t)}},Kt=(e,n,t,o)=>{var l,i,a,d;const r=null===(a=null===(i=null===(l=null==e?void 0:e[0])||void 0===l?void 0:l.derivedPrice)||void 0===i?void 0:i[0])||void 0===a?void 0:a.value;return{currency:"CHF",value:null!==(d=r&&Number(r))&&void 0!==d?d:0,items:Gt(e,n,t,o)}},Xt=(e,n,t,o,l,i)=>{var a,d;"view"===e?null===window||void 0===window||window.dataLayer.push({event:"view_item_list",event_name:"view_item_list",ecommerce:qt(n,t,o),isPegaEnabled:!!i}):"addtocart"===e?null===window||void 0===window||window.dataLayer.push({event:"add_to_cart",event_name:"add_to_cart",ecommerce:Kt(n,t,o),transaction_type:"MOBILE"===(null===(a=null==n?void 0:n[0])||void 0===a?void 0:a.productType)?"MOBILE_ORDER":"HOME_ORDER",isPegaEnabled:!!i,fromPopup:!!(null===(d=null==n?void 0:n[0])||void 0===d?void 0:d.fromPopup)}):"available"===e&&window.dataLayer.push({event:"view_item",event_name:"view_item",ecommerce:Kt(n,t,o,l),isPegaEnabled:!!i})};var Qt={inputcontainer:"AutoComplete-module_inputcontainer__VORIB","cross-icon":"AutoComplete-module_cross-icon__7SIoo",addresscontainer:"AutoComplete-module_addresscontainer__za7ZE",suggestionactive:"AutoComplete-module_suggestionactive__4cjbE"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.AutoComplete-module_inputcontainer__VORIB {\n position: relative;\n top: 27px;\n margin-right: 16px;\n}\n.AutoComplete-module_inputcontainer__VORIB input {\n font-size: 16px;\n line-height: 24px;\n border: 1px solid #B3AEAA !important;\n border-radius: 4px;\n height: 52px;\n padding: 14px 12px;\n width: 100%;\n background: #F7F6F5;\n}\n@media (max-width: 767px) {\n .AutoComplete-module_inputcontainer__VORIB {\n margin: 0 !important;\n }\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_cross-icon__7SIoo {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n padding: 14px;\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE {\n background: #ffffff;\n box-shadow: 0px 8px 24px rgba(51, 51, 51, 0.2);\n cursor: pointer;\n list-style: none;\n padding: 12px;\n position: absolute;\n text-align: left;\n width: 100%;\n z-index: 1000;\n transition: all 1s ease-in;\n}\n@media (max-width: 767px) {\n .AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE {\n margin-top: 0px;\n background: #f7f6f5;\n }\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE .AutoComplete-module_addresscontainer__za7ZE :hover {\n background: #e5e5e5;\n border-radius: 4px;\n text-align: left;\n width: 100%;\n z-index: 100;\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_suggestionactive__4cjbE,\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE li:hover {\n background-color: #f7f6f5;\n cursor: pointer;\n}\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_suggestionactive__4cjbE,\n.AutoComplete-module_inputcontainer__VORIB .AutoComplete-module_addresscontainer__za7ZE li {\n padding: 10px 12px;\n}\n\ninput:disabled {\n background-color: #e6e3df !important;\n}\n\ninput[type=text]:disabled {\n color: #86807C !important;\n}\n\nlabel:disabled {\n color: #86807C !important;\n}");const Jt=e.forwardRef(((n,t)=>{var o,l,i;const{inputValue:a,setInputValue:d,dropdownValue:r,placeholder:c,onChange:s,name:u,inputClassName:m,selectedData:p,minLength:v,maxLength:_,content:h,setApiError:g,setFetchingLineCheck:f,checkAvailability:b,FetchingLineCheck:x,setaddressNotFound:y}=n,[w,S]=e.useState(-1),[C,E]=e.useState(!0),[k,P]=e.useState(!1);we();return e.useEffect((()=>{r&&r.length>0&&(null==a?void 0:a.length)>=3?P(!0):P(!1)}),[r]),e.createElement(e.Fragment,null,e.createElement("div",{id:"dropdownselect",className:`${Qt.inputcontainer} form-floating ${x&&Qt["box-disabled"]}`},e.createElement("input",{type:"text",disabled:x||!C||b,placeholder:c,onChange:s,name:u,onKeyDown:e=>{if(r&&Object.keys(r).length>0)if("Enter"===(null==e?void 0:e.key)||13===(null==e?void 0:e.keyCode)){if(-1===w)return;S(-1),E(!0),P(!1),d(r[w].concatedAddress),p(r[w])}else if("ArrowUp"===(null==e?void 0:e.key)||38===(null==e?void 0:e.keyCode)){if(-1===w)return void S((null==r?void 0:r.length)-1);S(w-1)}else if("ArrowDown"===(null==e?void 0:e.key)||40===(null==e?void 0:e.keyCode)){if(w===(null==r?void 0:r.length)-1)return void S(-1);S(w+1)}else S(-1)},value:a,autoComplete:"off","aria-autocomplete":"none",className:m,spellCheck:"false",minLength:v,maxLength:_}),e.createElement("label",{htmlFor:"address",className:"input-label"},c),!(x||!C||b)&&0!==(null==a?void 0:a.length)&&e.createElement("div",{className:Qt["cross-icon"],onClick:()=>{var e,n;(null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.focus())||P(!1),d(""),null===(n=null==t?void 0:t.current)||void 0===n||n.focus(),g(!1),f(!1),y(!1)}},e.createElement("img",{src:null===(i=null===(l=null===(o=null==h?void 0:h.linecheckIcons)||void 0===o?void 0:o[0])||void 0===l?void 0:l.close)||void 0===i?void 0:i.filename,height:14,width:14,alt:"cross-icon"})),k&&(null==r?void 0:r.length)&&e.createElement("ul",{className:Qt.addresscontainer},r.map(((n,t)=>{let o;return t===w&&(o="active"),e.createElement(e.Fragment,null,e.createElement("li",{className:"active"===o?Qt.suggestionactive:Qt.suggestionInactive,key:t,onClick:e=>((e,n)=>{var t;S(-1),P(!1),E(!0),d((null==n?void 0:n.currentTarget)&&(null===(t=null==n?void 0:n.currentTarget)||void 0===t?void 0:t.innerText)),p(e)})(n,e)},n&&n.concatedAddress))})))))}));var Zt={inputcontainer:"IndividualLineCheck-module_inputcontainer__RzNgl","comman-css":"IndividualLineCheck-module_comman-css__Ih8mD",errorInputs:"IndividualLineCheck-module_errorInputs__VLMc5",individuallinecheck:"IndividualLineCheck-module_individuallinecheck__S0DaG","individuallinecheck-bottom":"IndividualLineCheck-module_individuallinecheck-bottom__mHELS",errorbutton:"IndividualLineCheck-module_errorbutton__YhCHC",btn:"IndividualLineCheck-module_btn__aCYjV",smallerinputcontainer:"IndividualLineCheck-module_smallerinputcontainer__HjSk0",cityinputcontainer:"IndividualLineCheck-module_cityinputcontainer__tMbW1","error-section":"IndividualLineCheck-module_error-section__y69YQ","errorinput-small":"IndividualLineCheck-module_errorinput-small__zu3mE","errorinput-small-mobile":"IndividualLineCheck-module_errorinput-small-mobile__3P158"};h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.IndividualLineCheck-module_inputcontainer__RzNgl {\n position: relative;\n margin: 18px 16px 32px 0;\n top: 18px;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .form-floating {\n margin-right: 0;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_comman-css__Ih8mD {\n border: 1px solid #B3AEAA;\n background-color: #F7F6F5;\n border-radius: 4px;\n padding: 13px 12px 13px 12px;\n gap: 4px;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl input {\n border: 1px solid #B3AEAA !important;\n font-size: 16px;\n line-height: 24px;\n border-radius: 4px;\n height: 52px;\n padding: 14px 12px;\n width: 100%;\n background: #F7F6F5;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_inputcontainer__RzNgl {\n margin: 0 16px;\n top: 0px;\n }\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_errorInputs__VLMc5 {\n border: 2px solid #BF0760 !important;\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck__S0DaG, .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck-bottom__mHELS {\n display: inline-flex;\n width: 100%;\n margin-bottom: 24px;\n gap: 12px;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck__S0DaG, .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_individuallinecheck-bottom__mHELS {\n display: block;\n margin: 16px 0;\n text-align: center;\n }\n}\n.IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_errorbutton__YhCHC {\n background-color: #ffffff;\n padding: 0 16px 0 12px;\n border-radius: 12px;\n color: #da291c;\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_inputcontainer__RzNgl .IndividualLineCheck-module_errorbutton__YhCHC {\n background-color: transparent;\n padding: 0 16px 0 8px;\n }\n}\n\n@media (max-width: 767px) {\n .IndividualLineCheck-module_btn__aCYjV {\n width: 100% !important;\n }\n}\n\n.IndividualLineCheck-module_smallerinputcontainer__HjSk0 {\n min-width: 145px;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .IndividualLineCheck-module_smallerinputcontainer__HjSk0 {\n min-width: 120px !important;\n }\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_smallerinputcontainer__HjSk0 {\n min-width: 88px !important;\n margin-bottom: 32px;\n }\n}\n\n.IndividualLineCheck-module_cityinputcontainer__tMbW1 {\n min-width: 365px !important;\n}\n@media (min-width: 768px) and (max-width: 1023px) {\n .IndividualLineCheck-module_cityinputcontainer__tMbW1 {\n min-width: 230px !important;\n }\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_cityinputcontainer__tMbW1 {\n min-width: 88px !important;\n margin-bottom: 32px;\n }\n}\n\n.IndividualLineCheck-module_error-section__y69YQ {\n font-size: 16px;\n line-height: 24px;\n color: #BF0760;\n font-weight: 400;\n}\n.IndividualLineCheck-module_error-section__y69YQ > img {\n margin-right: 4px;\n}\n@media (max-width: 767px) {\n .IndividualLineCheck-module_error-section__y69YQ {\n text-align: left;\n }\n}\n\n.IndividualLineCheck-module_errorinput-small__zu3mE {\n margin-bottom: 0 !important;\n}\n\n.IndividualLineCheck-module_individuallinecheck-bottom__mHELS {\n margin-bottom: 0 !important;\n}\n\n@media (max-width: 767px) {\n .IndividualLineCheck-module_errorinput-small-mobile__3P158 {\n margin-bottom: 8px;\n }\n}");const eo=e.forwardRef((({parentCallBackIndividual:n,content:t,apiError:o,setApiError:l,setFetchingLineCheck:i,setSelectedAddress:a,FetchingLineCheck:d,addressRef:r,openIndividualLineCheck:c,selected:s,addressNotFound:u,setaddressNotFound:m,isAddressNotFilled:p,setAddressNotFilled:v,setIndivialOpen:_},h)=>{const[g,f]=e.useState({street:"",city:"",postCode:"",houseNumber:"",concatedAddress:""}),[b,x]=e.useState(""),y=we(),[w,S]=e.useState(!1);e.useEffect((()=>{"function"==typeof l&&l(!1),"function"==typeof i&&i(!1),"function"==typeof a&&a("")}),[]);const C=e=>{m(!0),f(Object.assign(Object.assign({},g),{[e.target.name]:e.target.value}));const n=Object.assign(Object.assign({},g),{[e.target.name]:e.target.value});E(Object.assign({},n)),l(!1),i(!1),_((e=>Object.assign(Object.assign({},e),{indErrorOpen:!1})))};e.useEffect((()=>{f(s)}),[u]);const E=e=>{let n="";""!==(null==e?void 0:e.postCode)&&""!==e.city&&""!==e.houseNumber&&""!==e.street?(n=e.street+" "+e.houseNumber+", "+e.postCode+" "+e.city,x(n)):(n="",x(""))};e.useEffect((()=>{const e=Object.assign(Object.assign({},g),{concatedAddress:b});f(Object.assign(Object.assign({},g),{concatedAddress:b})),"mobile"!==y&&n(e,w)}),[b]);const k=()=>e.createElement("p",{className:Zt["error-section"]},e.createElement("img",{src:"/ecom-int/icons/error-msg-icon.svg",height:14,width:14,alt:"error"}),null==t?void 0:t.requiredFieldText);return e.createElement("div",{className:`${Zt.inputcontainer} ${p&&Zt["errorinput-container"]}`},e.createElement("div",{className:`${p&&u&&(""===(null==g?void 0:g.postCode)||""===(null==g?void 0:g.city))&&Zt["errorinput-small"]} ${Zt.individuallinecheck}`},e.createElement("div",{className:`${Zt.smallerinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.postCode)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{required:!0,placeholder:(null==t?void 0:t.zip)+"*",name:"postCode",onChange:C,value:d||u?null==g?void 0:g.postCode:null==s?void 0:s.postCode,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.postCode)?Zt.errorInputs:Zt["comman-css"]} `}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.zip)+"*"),(p||w)&&""===(null==g?void 0:g.postCode)&&u&&k()),e.createElement("div",{className:`${Zt.cityinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.city)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{placeholder:(null==t?void 0:t.city)+"*",name:"city",onChange:C,value:d||u?null==g?void 0:g.city:null==s?void 0:s.city,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.city)?Zt.errorInputs:Zt["comman-css"]}`}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.city)+"*"),(p||w)&&""===(null==g?void 0:g.city)&&u&&k())),e.createElement("div",{className:`${Zt["individuallinecheck-bottom"]}`},e.createElement("div",{className:`${Zt.cityinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.street)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{placeholder:(null==t?void 0:t.street)+"*",name:"street",onChange:C,value:d||u?null==g?void 0:g.street:null==s?void 0:s.street,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.street)?Zt.errorInputs:Zt["comman-css"]}`}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.street)+"*"),(p||w)&&""===(null==g?void 0:g.street)&&u&&k()),e.createElement("div",{className:`${Zt.smallerinputcontainer} form-floating ${p&&u&&""===(null==g?void 0:g.houseNumber)&&Zt["errorinput-small-mobile"]}`},e.createElement("input",{placeholder:(null==t?void 0:t.houseNumber)+"*",name:"houseNumber",onChange:C,value:d||u?null==g?void 0:g.houseNumber:null==s?void 0:s.houseNumber,className:`form-control\n ${(p||w)&&u&&""===(null==g?void 0:g.houseNumber)?Zt.errorInputs:Zt["comman-css"]}`}),e.createElement("label",{htmlFor:"address"},(null==t?void 0:t.houseNumber)+"*"),(p||w)&&""===(null==g?void 0:g.houseNumber)&&u&&k())),"mobile"===y&&e.createElement(e.Fragment,null,e.createElement("div",{className:Zt.individuallinecheck},e.createElement("button",{name:"check address button",type:"button",className:`primarybutton ${Zt.btn}`,disabled:!1,onClick:()=>{S(!0),""!==(null==g?void 0:g.postCode)&&""!==(null==g?void 0:g.city)&&""!==(null==g?void 0:g.houseNumber)&&""!==(null==g?void 0:g.street)?"function"==typeof n&&n(g,!0):"function"==typeof v&&v(!p)},style:{width:"50%"}},null==t?void 0:t.buttonvalue))))})),no="address-suggestion",to="catalogue-management",oo=e=>E(void 0,void 0,void 0,(function*(){var o,l,i,a,d,r,c;const s=yield(e=>{var o;const l=null===(o=null==At?void 0:At.getInstance())||void 0===o?void 0:o.getBaseUrl(),i={params:{},headers:{"x-sunrise-channel":vt,"x-correlation-id":t.v4()}},a={address:e,segment:"Residential"};try{const e=`${l}${to}${ht}`;return n.ApiServiceV2.getApiServiceInstance().post(e,a,i).then((e=>{var n,t;if(200==e.status){const o=null===(t=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.headers)||void 0===t?void 0:t["x-correlation-id"];try{"undefined"!=typeof window&&localStorage.removeItem("one-commerce-linecheckcorrelationid"),"undefined"!=typeof window&&localStorage.setItem("one-commerce-linecheckcorrelationid",o)}catch(e){}return"undefined"!=typeof window&&u.remove("one-commerce-linecheckcorrelationid",{path:"/"}),"undefined"!=typeof window&&u.set("one-commerce-linecheckcorrelationid",o,{path:"/",expires:3}),{response:null==e?void 0:e.data,corelationaId:o}}return[]})).catch((e=>{var n,t,o;((null===(t=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===t?void 0:t.code)||504===(null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status))&&vn(null==e?void 0:e.response)}))}catch(e){return e}})(e),m=yield((null===(o=null==s?void 0:s.response)||void 0===o?void 0:o.sellableProducts)||[]).map((e=>e.name)),p=[];for(const e of null===(l=null==s?void 0:s.response)||void 0===l?void 0:l.eligibleCombinations)for(const n of null==e?void 0:e.rateplans)p.push(null==n?void 0:n.name);const v=null===(a=null===(i=null==s?void 0:s.response)||void 0===i?void 0:i.eligibleSpeed)||void 0===a?void 0:a.maxSpeed,_=null===(r=null===(d=null==s?void 0:s.response)||void 0===d?void 0:d.eligibleSpeed)||void 0===r?void 0:r.plannedUpgrades,h=null===(c=null==s?void 0:s.response)||void 0===c?void 0:c.eligibleAccess;try{"undefined"!=typeof window&&localStorage.setItem("lineCheckResponse",JSON.stringify({eligibleBundle:m,configEligibleBundle:p,maxUploadDownloadSpeed:v,plannedUpgrade:_,originalLinecheckResponse:null==s?void 0:s.response}));try{"undefined"!=typeof window&&localStorage.setItem("one-commerce-access-type",JSON.stringify(h))}catch(e){}"undefined"!=typeof window&&u.set("one-commerce-access-type",JSON.stringify(h),{path:"/",expires:3})}catch(e){}return{corelationaId:s.corelationaId,lineCheckResponse:null==s?void 0:s.response,eligibleBundle:m,maxUploadDownloadSpeed:v,configEligibleBundle:p,plannedUpgrade:_}}));var lo="LineCheckInput-module_errorfield__hEZF5",io="LineCheckInput-module_errormsg__SVc94",ao="LineCheckInput-module_truncation__80rK4",ro="LineCheckInput-module_checking__aIxIH",co="LineCheckInput-module_address__oRhfO",so="LineCheckInput-module_secondarybutton__5iCpn",uo="LineCheckInput-module_secondarybutton-mobile__USH6B",mo="LineCheckInput-module_ul-disabled__oA7jV",po="LineCheckInput-module_list__JA3Jx";h("/* center a block element */\n/* use this to any of the pseudo elements as these are the mandatory properties */\n/* setting styles in separate formats for cross browser support */\n/* specify the max width for an element and apply ellipses and truncate the overflow */\n/* vertically center alilgn any HTML element */\n/* add basePath to assets */\n.LineCheckInput-module_errorfield__hEZF5 {\n border: 2px solid #c60047 !important;\n}\n\n.LineCheckInput-module_errormsg__SVc94 {\n color: #c60047;\n font-size: 12px;\n line-height: 16px;\n font-weight: 500;\n padding-top: 4px;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_errormsg__SVc94 {\n margin-left: 16px;\n }\n}\n\n.LineCheckInput-module_truncation__80rK4 {\n text-overflow: ellipsis;\n}\n\n.LineCheckInput-module_checking__aIxIH {\n padding-right: 28px !important;\n}\n\n@media (max-width: 767px) {\n .LineCheckInput-module_address__oRhfO {\n position: relative;\n top: 10px;\n }\n}\n\n.LineCheckInput-module_secondarybutton__5iCpn {\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n color: #da291c;\n padding: 16px 0px 0px;\n background-color: #ffffff;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_secondarybutton__5iCpn {\n background-color: #ffffff;\n padding: 16px;\n border-radius: 12px;\n margin: 16px 20px;\n height: 52px;\n }\n}\n\n.LineCheckInput-module_secondarybutton-mobile__USH6B {\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n color: #da291c;\n padding: 16px 0px 0px;\n background-color: #ffffff;\n cursor: pointer;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_secondarybutton-mobile__USH6B {\n background-color: #ffffff;\n padding: 16px 0px;\n border-radius: 12px;\n margin: 16px 0px;\n height: 52px;\n }\n}\n\n@media (min-width: 768px) {\n .LineCheckInput-module_ul-disabled__oA7jV {\n position: relative;\n top: 29px;\n background-color: #FFFFFF;\n margin-right: 16px;\n left: -1px;\n }\n .LineCheckInput-module_ul-disabled__oA7jV .LineCheckInput-module_list__JA3Jx {\n box-shadow: 0px 8px 24px rgba(51, 51, 51, 0.2);\n cursor: pointer;\n padding: 12px;\n text-align: left;\n width: 100%;\n z-index: 1000;\n transition: all 1s ease-in;\n }\n}\n.LineCheckInput-module_errorbutton__wd49l {\n background-color: #ffffff;\n padding: 0 16px 0 12px;\n border-radius: 12px;\n color: #da291c;\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: 24px;\n margin-top: 16px;\n margin-bottom: 8px;\n}\n@media (max-width: 767px) {\n .LineCheckInput-module_errorbutton__wd49l {\n background-color: transparent;\n padding: 0 16px 0 8px;\n }\n}");const vo=e.forwardRef((({content:n,parentCallback:o,parentAddress:l,isAddressNotFilled:i,onChange:a,name:d,apiError:r,setApiError:c,setFetchingLineCheck:s,checkAvailability:u,onData:m,FetchingLineCheck:p,setSelectedAddress:v,ref:_,Address:h,setIndivialOpen:g,indivialOpen:f,setAddressNotFilled:b})=>{var x,y,w,S,C,k;const[P,T]=e.useState(!1),[O,N]=e.useState(!1),[L,D]=e.useState(""),[I,M]=e.useState(""),[V,B]=e.useState(),[A,F]=e.useState(!1),R=e.useRef(),j=we();e.useEffect((()=>{P&&I?"differentAddress"===d&&"function"==typeof o&&o({}):D("")}),[I,P]),e.useEffect((()=>{"function"==typeof M&&M(l)}),[]),e.useEffect((()=>{O&&mn(null==n?void 0:n.errorMsg,Ge+" "+(null==n?void 0:n.title),He,Ye),!I&&i&&mn(null==n?void 0:n.requiredFieldText,Ge+" "+(null==n?void 0:n.title),He,Ye),L&&mn(L,Ge+" "+(null==n?void 0:n.title),He,Ye),O&&pn(Ye,He,Ge+" | "+(null==n?void 0:n.title),null==n?void 0:n.errorMsg),!I&&i&&pn(Ye,He,Ge+" | "+(null==n?void 0:n.title),null==n?void 0:n.requiredFieldText),L&&pn(Ye,He,Ge+" | "+(null==n?void 0:n.title),L)}),[O,i,L]);return e.useEffect((()=>{r&&("function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0})),"mobile"===j&&A&&"function"==typeof g&&g(Object.assign(Object.assign({},f),{indErrorOpen:!0})))}),[r]),e.useEffect((()=>{A&&!P&&"function"==typeof g&&g(Object.assign(Object.assign({},f),{indErrorOpen:!0}))}),[A,P]),e.createElement(e.Fragment,null,!A&&e.createElement(Jt,{inputValue:I||"",setInputValue:M,dropdownValue:V,placeholder:null==n?void 0:n.placeholder,ref:_,onChange:e=>{var o,l,i;"function"==typeof a&&a(e),"function"==typeof M&&M(null===(o=null==e?void 0:e.currentTarget)||void 0===o?void 0:o.value);let d=!1;d=new RegExp(`[${null==n?void 0:n.regexp}]`).test(null===(l=null==e?void 0:e.currentTarget)||void 0===l?void 0:l.value),N(d);((e,n,o)=>E(void 0,void 0,void 0,(function*(){var l;if(!n&&(null==e?void 0:e.length)>=3){o.current&&o.current.abort(),o.current=new AbortController;const n=o.current.signal,i=null===(l=null==At?void 0:At.getInstance())||void 0===l?void 0:l.getBaseUrl();try{const o=yield fetch(`${i}${no}${_t}?count=10&address=${e.replace(/,(?=[^\s])/g,", ")}`,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","x-correlation-id":t.v4(),"x-sunrise-channel":vt},signal:n}),l=yield o.json();if(l){const e=[];return(null==l?void 0:l.items)&&(null==l||l.items.forEach((n=>{(null==n?void 0:n.street)&&(null==n?void 0:n.houseNumber)&&(null==n?void 0:n.postCode)&&(null==n?void 0:n.city)&&(n.concatedAddress=`${null==n?void 0:n.street} ${null==n?void 0:n.houseNumber},${null==n?void 0:n.postCode} ${null==n?void 0:n.city}`,e.push(n))}))),e}}catch(e){console.log(e)}}})))(null===(i=null==e?void 0:e.currentTarget)||void 0===i?void 0:i.value,d,R).then((e=>{e&&(null==e?void 0:e.error)||(null==e?void 0:e.length)<=0?(B([]),T(!0)):(B(e),T(!1))})).catch((e=>console.log(e)))},selectedData:e=>{"function"==typeof M&&M(e.concatedAddress),"function"==typeof o&&o(e,{openIndividualLineCheck:!1,availabilityCheckClicked:!1})},inputClassName:`${i?lo:""} ${p||u?"":ro} ${ao} form-control `,minLength:null==n?void 0:n.linecheckMinLength,maxLength:null==n?void 0:n.linecheckMaxLength,name:d,content:n,addressNotFound:P,setApiError:c,setFetchingLineCheck:s,checkAvailability:u,FetchingLineCheck:p,setaddressNotFound:T}),O&&e.createElement("p",{className:io},null==n?void 0:n.errorMsg),e.createElement("div",{className:co},!I&&i&&e.createElement("p",{className:io},e.createElement("img",{src:null===(w=null===(y=null===(x=null==n?void 0:n.linecheckIcons)||void 0===x?void 0:x[0])||void 0===y?void 0:y.warning)||void 0===w?void 0:w.filename,height:"12px",width:"16px",alt:"alert"}),null==n?void 0:n.requiredFieldText)),r&&"mobile"==j&&!A&&!p&&e.createElement("p",{className:uo,onClick:()=>{"function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0}))}},null==n?void 0:n.noAddress,e.createElement("span",null,e.createElement("img",{src:null===(S=null==n?void 0:n.arrowIcon)||void 0===S?void 0:S.filename,height:24,width:24,alt:"right-arrow"}))),P&&!A&&!p&&e.createElement("div",null,"mobile"===j&&e.createElement("p",{className:uo,onClick:()=>{"function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0}))}},null==n?void 0:n.noAddress,e.createElement("span",null,e.createElement("img",{src:null===(C=null==n?void 0:n.arrowIcon)||void 0===C?void 0:C.filename,height:24,width:24,alt:"right-arrow"})))),A&&e.createElement(eo,{parentCallBackIndividual:(e,n)=>{""!==(null==e?void 0:e.postCode)&&""!==e.city&&""!==e.houseNumber&&""!==e.street&&""!==e.concatedAddress&&"function"==typeof o&&o(e,{openIndividualLineCheck:A,availabilityCheckClicked:n})},content:n,apiError:r,setApiError:c,setFetchingLineCheck:s,setSelectedAddress:v,openIndividualLineCheck:A,FetchingLineCheck:p,addressRef:_,selected:h,addressNotFound:P,setaddressNotFound:T,isAddressNotFilled:i,setAddressNotFilled:b,setIndivialOpen:g}),(P&&!A||!p&&!P&&A)&&"mobile"!=j&&e.createElement(e.Fragment,null,!(!p&&!P&&A)&&e.createElement("div",{className:mo},e.createElement("p",{className:`${so} ${po} `,onClick:()=>{"function"==typeof F&&F(!0),"function"==typeof g&&g(Object.assign(Object.assign({},f),{indOpen:!0}))}},null==n?void 0:n.noAddress,e.createElement("span",null,e.createElement("img",{src:null===(k=null==n?void 0:n.arrowIcon)||void 0===k?void 0:k.filename,height:24,width:24,alt:"right-arrow"}))))))}));var _o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var go={},fo={
2
2
  /*!
3
3
  * cookie
4
4
  * Copyright(c) 2012-2014 Roman Shtylman