@sunrise-upc/sales-static-components 3.8.7-beta.3 → 3.8.7-beta.5
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/components/StageTeaserV3/StageTeaserV3.js +1 -1
- package/dist/cjs/components/StageTeaserV3/StageTeaserV3.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/services/customerSegmentSync.js +1 -1
- package/dist/cjs/services/customerSegmentSync.js.map +1 -1
- package/dist/esm/components/StageTeaserV3/StageTeaserV3.js +1 -1
- package/dist/esm/components/StageTeaserV3/StageTeaserV3.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/services/customerSegmentSync.js +1 -1
- package/dist/esm/services/customerSegmentSync.js.map +1 -1
- package/dist/index.d.ts +24 -2
- package/dist/navigation.css +290 -290
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
require('./StageTeaserV3.css');
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),t=require("react/jsx-runtime"),i=require("react"),l=require("react-loading-skeleton");require("react-loading-skeleton/dist/skeleton.css");var n=require("./StageTeaserSwiperV3.js"),r=require("./StageTeaserV3.module.scss.js"),o=require("./DoubleGrid/DoubleGridComponent.js"),u=require("./SingleGrid/SingleGridComponent.js"),s=require("../RibbonComponent/utils.js"),d=require("../../services/CustomerService.js"),a=require("../../services/customerSegmentSync.js"),c=require("cookies-next"),v=require("../Constants.js");const m=l.default||l,f=a.createCustomerGroupFetcher({fetchCustomerProfile:d.customerGroup});exports.default=({content:l})=>{var d,S,g,E;const[h,p]=i.useState(null),[w,T]=i.useState(null),[C,O]=i.useState(!0),[_,y]=i.useState(!1),[R,x]=i.useState(!1),[j,G]=i.useState(!1),[M,b]=i.useState(null),[N,U]=i.useState(0),A=i.useRef(null),V=i.useRef(null),q=i.useRef(null),F=!!c.getCookie(v.AUTHCOOKIE),W=e=>e?s.calculateDateTime(new Date(e.trim().replace(/-/g,"/"))):null,I=(e,t)=>{const i=(Array.isArray(e)?e:[e]).filter(Boolean).map(e=>String(e).trim().toLowerCase());return!i.length||!!t.size&&i.some(e=>t.has(e))},$=e=>(Array.isArray(e)?e:[e]).filter(Boolean).map(e=>String(e).trim()).length>0,k=(e,t,i=!1)=>{const l=(Array.isArray(e)?e:[e]).filter(Boolean).map(e=>String(e).trim().toLowerCase()),n=l.length>0;return t?!!l.includes("all")||l.includes(t.toLowerCase()):!!i&&(!n||l.includes("all"))};i.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{U(e=>e+1)};return window.addEventListener(v.CUSTOMER_SEGMENT_REFRESH_EVENT,e),()=>{window.removeEventListener(v.CUSTOMER_SEGMENT_REFRESH_EVENT,e)}},[]),i.useEffect(()=>{let t=!0;return e.__awaiter(void 0,void 0,void 0,function*(){t&&(O(!0),y(!1),x(!1),G(!1));const e=q.current,i=null!==e&&e!==F,l=!0===e&&!F;if(q.current=F,l&&"undefined"!=typeof window&&window.localStorage.removeItem(v.CUSTOMER_GROUP_STORAGE_KEY),i&&T(null),"undefined"!=typeof window){const e=window.localStorage.getItem(v.CUSTOMER_GROUP_STORAGE_KEY);if(e&&!i&&F&&"NEW_CUSTOMER"!==e)return T(e),x(!1),void y(!0)}if(!F)return T("NEW_CUSTOMER"),"undefined"!=typeof window&&window.localStorage.setItem(v.CUSTOMER_GROUP_STORAGE_KEY,"NEW_CUSTOMER"),x(!1),void y(!0);try{const e=yield a.resolveCustomerGroup({fetchCustomerGroup:f,isLoggedIn:()=>F,storageKey:v.CUSTOMER_GROUP_STORAGE_KEY,newCustomerValue:"NEW_CUSTOMER"});t&&(T(e),x(!1),"undefined"!=typeof window&&e&&window.localStorage.setItem(v.CUSTOMER_GROUP_STORAGE_KEY,e),y(!0))}catch(e){t&&(T(null),x(!0),y(!0))}}),()=>{t=!1}},[F,N]),i.useEffect(()=>{const e=()=>{A.current&&(clearTimeout(A.current),A.current=null)};if(!_)return void G(!1);const t=R&&!w;if(!w&&!t)return void(_&&(p(null),G(!0),O(!1)));G(!1);const i=(null==l?void 0:l.teaserSlides)||[],n=(()=>{if("undefined"==typeof window)return new Set;const e=window.localStorage.getItem("tealium_va");if(!e)return new Set;try{const t=JSON.parse(e),i=null==t?void 0:t.audiences;return i&&"object"==typeof i?new Set(Object.keys(i).filter(Boolean).map(e=>String(e).trim().toLowerCase())):new Set}catch(e){return new Set}})(),r={FIXNET:null==l?void 0:l.fixnetOrder,MOBILE:null==l?void 0:l.mobileOrder,FIXNET_MOBILE:null==l?void 0:l.mobileFixnetOrder,DEFAULT:null==l?void 0:l.defaultOrder},o=w?r[w]:null;if(o){const e=o.split(",").map(e=>e.trim()).filter(e=>e.length>0),t=new Map(e.map((e,t)=>[e,t])),l=new Map(i.map((e,t)=>[e,t]));i.sort((e,i)=>{var n,r,o,u,s,d;const a=String(null!==(n=null==e?void 0:e.id)&&void 0!==n?n:"").trim(),c=String(null!==(r=null==i?void 0:i.id)&&void 0!==r?r:"").trim(),v=null!==(o=l.get(e))&&void 0!==o?o:0,m=null!==(u=l.get(i))&&void 0!==u?u:0,f=null!==(s=t.get(a))&&void 0!==s?s:t.get(String(v)),S=null!==(d=t.get(c))&&void 0!==d?d:t.get(String(m));return null==f&&null==S?v-m:null==f?1:null==S?-1:Number(f)-Number(S)})}const u=i.filter(e=>!0===(null==e?void 0:e.active)&&($(null==e?void 0:e.tealiumAudiences)?I(null==e?void 0:e.tealiumAudiences,n):k(null==e?void 0:e.customerType,w,t))),s=()=>{const e=new Date,t=[];u.forEach(i=>{((e,t)=>{const i=W(null==e?void 0:e.scheduleStartTime),l=W(null==e?void 0:e.scheduleEndTime),n=!i||t.getTime()>=i.getTime(),r=!l||l.getTime()>t.getTime();return n&&r})(i,e)&&(t.includes(i)||t.push(i))}),p(t.length>0?t:null),G(!0),O(!1)},d=()=>{e();const i=((null==l?void 0:l.teaserSlides)||[]).filter(e=>!0===(null==e?void 0:e.active)&&($(null==e?void 0:e.tealiumAudiences)?I(null==e?void 0:e.tealiumAudiences,n):k(null==e?void 0:e.customerType,w,t))),r=(new Date).getTime(),o=i.flatMap(e=>{const t=[],i=W(null==e?void 0:e.scheduleStartTime),l=W(null==e?void 0:e.scheduleEndTime);if(i){const e=i.getTime();e>r&&t.push(e)}if(l){const e=l.getTime();e>r&&t.push(e)}return t}).sort((e,t)=>e-t)[0];if(!o)return;const u=o-r;A.current=setTimeout(()=>{s(),d()},Math.max(u,0))};return s(),d(),()=>{e()}},[null==l?void 0:l.teaserSlides,w,_,R]),i.useEffect(()=>{if(!V.current||!(null==h?void 0:h.length))return;const e=()=>{var e;const t=null===(e=V.current)||void 0===e?void 0:e.offsetHeight;t&&t>0&&b(t)};e();const t=new ResizeObserver(e);return t.observe(V.current),()=>{t.disconnect()}},[null==h?void 0:h.length,null==l?void 0:l.isSlimVersion,null==l?void 0:l.isFullWidth]);const L=null==l?void 0:l.isFullWidth,B=null===(d=null==l?void 0:l.solidBgColor)||void 0===d?void 0:d.color,D="undefined"==typeof window?1368:window.innerWidth,K=D>=1024,P=(null==l?void 0:l.isSlimVersion)?480:K?550:500,H=L?0:48,Y=(null===(S=null==l?void 0:l.teaserSlides)||void 0===S?void 0:S.length)>1?34:0,z=M||P+H+Y,X=(()=>{if(!L)return D<768?"320px":D<1024?"660px":D>=1920?"1368px":"960px"})(),J=L?void 0:{width:X},Q=(e,i)=>"single"===(null==e?void 0:e.layoutgrid)?t.jsx(u.default,{content:e,isFullWidth:L,isSlimVersion:null==l?void 0:l.isSlimVersion,isFirstSlide:0===i},i):t.jsx(o.default,{content:e,isFullWidth:L,isSlimVersion:null==l?void 0:l.isSlimVersion,isFirstSlide:0===i},i),Z=t.jsx("div",{ref:V,className:`${r.default.outerContainer} ${L?r.default.fullWidth:""} ${(null==l?void 0:l.isSlimVersion)&&L?r.default.slimVersion:""}`,style:{backgroundColor:B,minHeight:`${z}px`},children:(null==h?void 0:h.length)>1?t.jsx(n.default,{content:l,isFullWidth:L,children:null===(g=h||[])||void 0===g?void 0:g.map((e,t)=>Q(e,t))}):t.jsx("div",{className:L?"":r.default.singleSlideCentered,style:J,children:Q(null==h?void 0:h[0],0)})});if(C||!_||!j){const e=(null===(E=null==l?void 0:l.teaserSlides)||void 0===E?void 0:E.length)>1,i={backgroundColor:B,minHeight:`${z}px`},n={display:"block",height:`${P}px`};return t.jsx("div",{className:`${r.default.outerContainer} ${L?r.default.fullWidth:""} ${(null==l?void 0:l.isSlimVersion)&&L?r.default.slimVersion:""}`,style:i,children:t.jsxs("div",{className:L?"":r.default.singleSlideCentered,style:J,children:[t.jsx("div",{className:`${r.default.skeletonContainer} ${(null==l?void 0:l.isSlimVersion)?r.default.slimVersion:""}`,children:t.jsx(m,{height:"100%",borderRadius:L?0:32,style:n})}),e&&t.jsx("div",{style:{marginTop:"24px",height:"10px"}})]})})}return(null==h?void 0:h.length)?Z:null};
|
|
3
3
|
//# sourceMappingURL=StageTeaserV3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageTeaserV3.js","sources":["../../../../../src/components/StageTeaserV3/StageTeaserV3.tsx"],"sourcesContent":[null],"names":["Skeleton","SkeletonRaw","default","content","displayArray","setdisplayArray","useState","customerGroupValue","setCustomerGroupValue","isInitialSkeletonVisible","setIsInitialSkeletonVisible","isCustomerGroupResolved","setIsCustomerGroupResolved","didCustomerGroupApiFail","setDidCustomerGroupApiFail","isDisplaySlidesFiltered","setIsDisplaySlidesFiltered","measuredTeaserHeight","setMeasuredTeaserHeight","customerSegmentRefreshVersion","setCustomerSegmentRefreshVersion","recalculateTimerRef","useRef","teaserContainerRef","previousExistingCustomerRef","existingCustomer","getCookie","AUTHCOOKIE","getScheduleDateTime","value","calculateDateTime","Date","trim","replace","matchesTealiumAudiences","slideAudiences","availableAudiences","normalizedSlideAudiences","Array","isArray","filter","Boolean","map","audience","String","toLowerCase","length","size","some","has","hasTealiumAudiencesConfigured","matchesCustomerType","customerType","customerGroup","allowAllOrUnsetAudienceFallback","normalizedTypes","type","hasAudienceConfigured","includes","useEffect","window","onCustomerSegmentRefresh","previousValue","addEventListener","CUSTOMER_SEGMENT_REFRESH_EVENT","removeEventListener","isMounted","__awaiter","hasExistingCustomerChanged","current","localStorage","removeItem","CUSTOMER_GROUP_STORAGE_KEY","cachedGroup","getItem","setItem","group","resolvedGroup","error","clearRecalculateTimer","clearTimeout","shouldUseAllAudienceFallback","teaserSlides","availableTealiumAudiences","Set","rawValue","parsed","JSON","parse","audiences","Object","keys","getTealiumAudienceKeys","orderConfig","FIXNET","fixnetOrder","MOBILE","mobileOrder","FIXNET_MOBILE","mobileFixnetOrder","DEFAULT","defaultOrder","selectedOrder","orderKeys","split","orderMap","Map","index","originalIndexMap","slide","sort","a","b","aIdKey","_a","id","bIdKey","_b","aOriginalIndex","_c","get","bOriginalIndex","_d","aIndex","_e","bIndex","_f","Number","activeSlides","slider","active","tealiumAudiences","recalculateDisplayArray","presentTime","toDisplay","forEach","currentTime","startTime","scheduleStartTime","endTime","scheduleEndTime","hasStarted","getTime","notExpired","isSlideWithinScheduleWindow","push","scheduleNextStartRecalculation","presentTimeMs","nextRecalculationTimeMs","flatMap","times","startTimeMs","endTimeMs","delay","setTimeout","Math","max","updateHeight","nextHeight","offsetHeight","observer","ResizeObserver","observe","disconnect","isSlimVersion","isFullWidth","solidBackGroundColor","solidBgColor","color","renderTeaserCard","card","key","layoutgrid","_jsx","SingleGridComponent","isFirstSlide","DoubleGridComponent","stageTeaserJsx","ref","className","Styles","outerContainer","fullWidth","slimVersion","style","backgroundColor","children","StageTeaserSwiperV3","singleSlideCentered","showDots","loadingContainerStyle","minHeight","undefined","loadingSkeletonStyle","display","height","_jsxs","skeletonContainer","borderRadius","marginTop"],"mappings":"4kBAIA,MAAMA,EAAYC,EAAoBC,SAAWD,kBAiBhB,EAA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BAAiBnB,EACjByB,UAAW9K,EAAuB,GAAGA,WAA2B+K,GAE5DC,EAA4C,CAChDC,QAAS,QACTC,OAAQlL,EAAuB,GAAG0I,KAAKC,IAAI3I,EAAuB,GAAI,YAAS+K,GAGjF,OACEnB,EAAAA,IAAA,MAAA,CACEM,UAAW,GAAGC,UAAOC,kBACnBhB,EAAce,EAAAA,QAAOE,UAAY,OAC/BnL,aAAO,EAAPA,EAASiK,gBAAiBC,EAAce,EAAAA,QAAOG,YAAc,KACjEC,MAAOM,EAAqBJ,SAE5BU,EAAAA,YAAKjB,UAAYd,EAA2C,GAA7Be,EAAAA,QAAOQ,oBAAwBF,SAAA,CAC5Db,EAAAA,IAAA,MAAA,CAAKM,UAAW,GAAGC,UAAOiB,sBAAqBlM,aAAO,EAAPA,EAASiK,eAAgBgB,UAAOG,YAAc,KAAIG,SAC/Fb,MAAC7K,EAAQ,CACPmM,OAAO,OACPG,aAAcjC,EAAc,EAAI,GAChCmB,MAAOS,MAGVJ,GACChB,MAAA,MAAA,CAAKW,MAAO,CAAEe,UAAW,OAAQJ,OAAQ,cAKnD,CAEA,OAAI/L,aAAY,EAAZA,EAAc0C,QACTmI,EAGF"}
|
|
1
|
+
{"version":3,"file":"StageTeaserV3.js","sources":["../../../../../src/components/StageTeaserV3/StageTeaserV3.tsx"],"sourcesContent":[null],"names":["Skeleton","SkeletonRaw","default","fetchCustomerGroup","createCustomerGroupFetcher","fetchCustomerProfile","customerGroup","content","displayArray","setdisplayArray","useState","customerGroupValue","setCustomerGroupValue","isInitialSkeletonVisible","setIsInitialSkeletonVisible","isCustomerGroupResolved","setIsCustomerGroupResolved","didCustomerGroupApiFail","setDidCustomerGroupApiFail","isDisplaySlidesFiltered","setIsDisplaySlidesFiltered","measuredTeaserHeight","setMeasuredTeaserHeight","customerSegmentRefreshVersion","setCustomerSegmentRefreshVersion","recalculateTimerRef","useRef","teaserContainerRef","previousExistingCustomerRef","existingCustomer","getCookie","AUTHCOOKIE","getScheduleDateTime","value","calculateDateTime","Date","trim","replace","matchesTealiumAudiences","slideAudiences","availableAudiences","normalizedSlideAudiences","Array","isArray","filter","Boolean","map","audience","String","toLowerCase","length","size","some","has","hasTealiumAudiencesConfigured","matchesCustomerType","customerType","allowAllOrUnsetAudienceFallback","normalizedTypes","type","hasAudienceConfigured","includes","useEffect","window","onCustomerSegmentRefresh","previousValue","addEventListener","CUSTOMER_SEGMENT_REFRESH_EVENT","removeEventListener","isMounted","__awaiter","previousExistingCustomer","current","hasExistingCustomerChanged","didCustomerLogout","localStorage","removeItem","CUSTOMER_GROUP_STORAGE_KEY","cachedGroup","getItem","setItem","resolvedGroup","resolveCustomerGroup","isLoggedIn","storageKey","newCustomerValue","error","clearRecalculateTimer","clearTimeout","shouldUseAllAudienceFallback","teaserSlides","availableTealiumAudiences","Set","rawValue","parsed","JSON","parse","audiences","Object","keys","getTealiumAudienceKeys","orderConfig","FIXNET","fixnetOrder","MOBILE","mobileOrder","FIXNET_MOBILE","mobileFixnetOrder","DEFAULT","defaultOrder","selectedOrder","orderKeys","split","orderMap","Map","index","originalIndexMap","slide","sort","a","b","aIdKey","_a","id","bIdKey","_b","aOriginalIndex","_c","get","bOriginalIndex","_d","aIndex","_e","bIndex","_f","Number","activeSlides","slider","active","tealiumAudiences","recalculateDisplayArray","presentTime","toDisplay","forEach","currentTime","startTime","scheduleStartTime","endTime","scheduleEndTime","hasStarted","getTime","notExpired","isSlideWithinScheduleWindow","push","scheduleNextStartRecalculation","presentTimeMs","nextRecalculationTimeMs","flatMap","times","startTimeMs","endTimeMs","delay","setTimeout","Math","max","updateHeight","nextHeight","offsetHeight","observer","ResizeObserver","observe","disconnect","isSlimVersion","isFullWidth","solidBackGroundColor","solidBgColor","color","fallbackViewportWidth","innerWidth","isDesktopViewport","baseTeaserHeight","outerPaddingHeight","estimatedDotsHeight","reservedTeaserHeight","centeredSlideWidth","singleSlideContainerStyle","undefined","width","renderTeaserCard","card","key","layoutgrid","_jsx","SingleGridComponent","isFirstSlide","DoubleGridComponent","stageTeaserJsx","ref","className","Styles","outerContainer","fullWidth","slimVersion","style","backgroundColor","minHeight","children","StageTeaserSwiperV3","singleSlideCentered","showDots","loadingContainerStyle","loadingSkeletonStyle","display","height","_jsxs","skeletonContainer","borderRadius","marginTop"],"mappings":"+nBAIA,MAAMA,EAAYC,EAAoBC,SAAWD,EAiB3CE,EAAqBC,EAAAA,2BAA2B,CACpDC,qBAAsBC,EAAAA,gCAIS,EAAGC,0BAClC,MAAOC,EAAcC,GAAmBC,EAAAA,SAAc,OAC/CC,EAAoBC,GAAyBF,EAAAA,SAAc,OAC3DG,EAA0BC,GAA+BJ,EAAAA,UAAkB,IAC3EK,EAAyBC,GAA8BN,EAAAA,UAAkB,IACzEO,EAAyBC,GAA8BR,EAAAA,UAAkB,IACzES,EAAyBC,GAA8BV,EAAAA,UAAkB,IACzEW,EAAsBC,GAA2BZ,EAAAA,SAAwB,OACzEa,EAA+BC,GAAoCd,EAAAA,SAAiB,GACrFe,EAAsBC,EAAAA,OAA6C,MACnEC,EAAqBD,EAAAA,OAA8B,MACnDE,EAA8BF,EAAAA,OAAuB,MAErDG,IADiBC,EAAAA,UAAUC,cAG3BC,EAAuBC,GACtBA,EAIEC,EAAAA,kBAAkB,IAAIC,KAAKF,EAAMG,OAAOC,QAAQ,KAAM,OAHpD,KAkCLC,EAA0B,CAACC,EAAqBC,KACpD,MAAMC,GAA4BC,MAAMC,QAAQJ,GAAkBA,EAAiB,CAACA,IACjFK,OAAOC,SACPC,IAAKC,GAAkBC,OAAOD,GAAUX,OAAOa,eAElD,OAAKR,EAAyBS,UAIzBV,EAAmBW,MAIjBV,EAAyBW,KAAML,GAAaP,EAAmBa,IAAIN,KAGtEO,EAAiCf,IACHG,MAAMC,QAAQJ,GAAkBA,EAAiB,CAACA,IACjFK,OAAOC,SACPC,IAAKC,GAAkBC,OAAOD,GAAUX,QAEXc,OAAS,EAGrCK,EAAsB,CAC1BC,EACAlD,EACAmD,GAA2C,KAE3C,MAC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AO,EAAPA,EAASqK,eAAgB2B,EAAAA,QAAOG,YAAc,cAC3FV,EAAAA,IAAChM,EAAQ,CACPqN,OAAO,OACPG,aAAc3C,EAAc,EAAI,GAChC8B,MAAOQ,MAGVF,GACCjB,MAAA,MAAA,CAAKW,MAAO,CAAEc,UAAW,OAAQJ,OAAQ,cAKnD,CAEA,OAAI7M,aAAY,EAAZA,EAAc0C,QACTkJ,EAGF"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("./components/RibbonComponent/RibbonComponent.js"),o=require("./components/RibbonRenderer/RibbonRenderer.js"),r=require("./components/GlobalPromoRibbon/GlobalPromoRibbon.js"),t=require("./components/FalconButtonV3/FalconButtonV3.js"),n=require("./components/StageTeaserComponent/StageTeaserComponent.js"),s=require("./components/ImageComponent/ImageComponent.js"),a=require("./components/TextComponent/TextComponent.js"),
|
|
1
|
+
"use strict";var e=require("./components/RibbonComponent/RibbonComponent.js"),o=require("./components/RibbonRenderer/RibbonRenderer.js"),r=require("./components/GlobalPromoRibbon/GlobalPromoRibbon.js"),t=require("./components/FalconButtonV3/FalconButtonV3.js"),n=require("./components/StageTeaserComponent/StageTeaserComponent.js"),s=require("./components/ImageComponent/ImageComponent.js"),a=require("./components/TextComponent/TextComponent.js"),p=require("./components/ButtonGroup/ButtonGroup.js"),i=require("./components/ImageWithText/ImageWithText.js"),u=require("./components/ImageWithTextWrapper/ImageWithTextWrapper.js"),m=require("./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js"),c=require("./components/linecheck/LineCheckV2.js"),C=require("./components/StageTeaserV3/StageTeaserV3.js"),l=require("./components/StageTeaserV3/PromoBubble/PromoBubble.js"),x=require("./components/FalconMainNavigation/FalconMainNavigation.js"),d=require("./components/SearchWrapper/SearchWrapper.js"),f=require("./components/MinimizedHeader/MinimizedHeader.js"),g=require("./services/LinecheckBasicPropConfig.js"),b=require("./services/CustomerPropConfig.js"),j=require("./services/CartPropConfig.js"),q=require("./services/customerSegmentSync.js"),T=require("./services/CustomerService.js");exports.RibbonComponent=e.default,exports.RibbonRenderer=o.default,exports.GlobalPromoRibbon=r.default,exports.FalconButtonV3=t.default,exports.StageTeaserComponent=n.default,exports.ImageComponent=s.default,exports.TextComponent=a.default,exports.ButtonGroup=p.default,exports.ImageWithText=i.default,exports.ImageWithTextWrapper=u.default,exports.InternetAndTvCardsBenefits=m.default,exports.LineCheckV2=c.default,exports.StageTeaserV3=C.default,exports.PromoBubble=l.default,exports.FalconMainNavigation=x.default,exports.SearchWrapper=d.default,exports.MinimizedHeader=f.default,exports.LinecheckBasicPropConfig=g.LinecheckBasicPropConfig,exports.CustomerPropConfig=b.CustomerPropConfig,exports.CartPropConfig=j.CartPropConfig,exports.createCustomerGroupFetcher=q.createCustomerGroupFetcher,exports.createCustomerSegmentSync=q.createCustomerSegmentSync,exports.extractCustomerGroupFromProfile=q.extractCustomerGroupFromProfile,exports.resolveCustomerGroup=q.resolveCustomerGroup,exports.customerGroup=T.customerGroup;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("../components/Constants.js");const r=e=>{if("string"!=typeof e)return null;const t=e.trim();return t.length>0?t:null},o=e=>{var t,o;const n=r(null==e?void 0:e.customerGroup);if(n)return n;const i=r(null===(o=null===(t=null==e?void 0:e.relatedParty)||void 0===t?void 0:t[0])||void 0===o?void 0:o.segment);return i||null},n=new Map,i=e=>"undefined"==typeof window?null:r(window.localStorage.getItem(e)),u=(e,t)=>{"undefined"!=typeof window&&(t?window.localStorage.setItem(e,t):window.localStorage.removeItem(e))},s=o=>e.__awaiter(void 0,void 0,void 0,function*(){const s=o.storageKey||t.CUSTOMER_GROUP_STORAGE_KEY,d=o.newCustomerValue||"NEW_CUSTOMER";if("undefined"==typeof window)return null;if(!o.isLoggedIn())return u(s,d),d;if(!o.forceRefresh){const e=i(s);if(e&&e!==d)return e}const l=n.get(s);if(l)return l;const f=e.__awaiter(void 0,void 0,void 0,function*(){try{const e=r(yield o.fetchCustomerGroup());return u(s,e),e}catch(e){return o.onError&&o.onError(e),i(s)}finally{n.delete(s)}});return n.set(s,f),f});exports.createCustomerGroupFetcher=t=>()=>e.__awaiter(void 0,void 0,void 0,function*(){const e=yield t.fetchCustomerProfile();return o(e||{})}),exports.createCustomerSegmentSync=r=>{var o;const n=r.storageKey||t.CUSTOMER_GROUP_STORAGE_KEY,u=r.refreshEventName||t.CUSTOMER_SEGMENT_REFRESH_EVENT,d=null!==(o=r.minSyncIntervalMs)&&void 0!==o?o:8e3,l=r.newCustomerValue||"NEW_CUSTOMER";let f=null,a=0;const c=e=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(u,{detail:{customerGroup:e,refreshedAt:Date.now()}}))};return{refreshCustomerSegmentAfterLogin:()=>e.__awaiter(void 0,void 0,void 0,function*(){if("undefined"==typeof window)return null;if(f)return f;if(Date.now()-a<d){const e=i(n);return c(e),e}return f=e.__awaiter(void 0,void 0,void 0,function*(){try{const e=yield s({fetchCustomerGroup:r.fetchCustomerGroup,isLoggedIn:r.isLoggedIn,storageKey:n,newCustomerValue:l,forceRefresh:!0,onError:r.onError});return a=Date.now(),c(e),e}finally{f=null}}),f}),subscribeToCustomerSegmentRefresh:e=>{if("undefined"==typeof window)return()=>{};const t=t=>{e(t)};return window.addEventListener(u,t),()=>{window.removeEventListener(u,t)}},dispatchCustomerSegmentRefreshEvent:c}},exports.extractCustomerGroupFromProfile=o,exports.resolveCustomerGroup=s;
|
|
2
2
|
//# sourceMappingURL=customerSegmentSync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerSegmentSync.js","sources":["../../../../src/services/customerSegmentSync.ts"],"sourcesContent":[null],"names":["normalizeCustomerGroup","value","normalized","trim","length","
|
|
1
|
+
{"version":3,"file":"customerSegmentSync.js","sources":["../../../../src/services/customerSegmentSync.ts"],"sourcesContent":[null],"names":["normalizeCustomerGroup","value","normalized","trim","length","extractCustomerGroupFromProfile","profile","directCustomerGroup","customerGroup","relatedPartySegment","_b","_a","relatedParty","segment","inFlightCustomerGroupByStorageKey","Map","getCachedCustomerGroup","storageKey","window","localStorage","getItem","setCachedCustomerGroup","setItem","removeItem","resolveCustomerGroup","options","__awaiter","CUSTOMER_GROUP_STORAGE_KEY","newCustomerValue","isLoggedIn","forceRefresh","cachedCustomerGroup","inFlightCustomerGroup","get","customerGroupPromise","resolvedCustomerGroup","fetchCustomerGroup","error","onError","delete","set","customerProfile","fetchCustomerProfile","refreshEventName","CUSTOMER_SEGMENT_REFRESH_EVENT","minSyncIntervalMs","inFlightSync","lastSyncedAtMs","dispatchCustomerSegmentRefreshEvent","dispatchEvent","CustomEvent","detail","refreshedAt","Date","now","refreshCustomerSegmentAfterLogin","subscribeToCustomerSegmentRefresh","handler","eventListener","event","addEventListener","removeEventListener"],"mappings":"yGA8CA,MAAMA,EAA0BC,IAC9B,GAAqB,iBAAVA,EACT,OAAO,KAGT,MAAMC,EAAaD,EAAME,OACzB,OAAOD,EAAWE,OAAS,EAAIF,EAAa,MAGjCG,EAAmCC,YAC9C,MAAMC,EAAsBP,EAAuBM,aAAO,EAAPA,EAASE,eAC5D,GAAID,EACF,OAAOA,EAGT,MAAME,EAAsBT,EAAiD,QAA1BU,EAAqB,QAArBC,EAAAL,eAAAA,EAASM,oBAAY,IAAAD,OAAA,EAAAA,EAAG,UAAE,IAAAD,OAAA,EAAAA,EAAEG,SAC/E,OAAIJ,GAIG,MAYHK,EAAoC,IAAIC,IAExCC,EAA0BC,GACR,oBAAXC,OACF,KAGFlB,EAAuBkB,OAAOC,aAAaC,QAAQH,IAGtDI,EAAyB,CAACJ,EAAoBT,KAC5B,oBAAXU,SAIPV,EACFU,OAAOC,aAAaG,QAAQL,EAAYT,GAI1CU,OAAOC,aAAaI,WAAWN,KA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AAAA,eAAA,OAAA,OAAA,EAAA,YAC1E,GAAsB,oBAAXR,OACT,OAAO,KAGT,GAAI4B,EACF,OAAOA,EAIT,GADYO,KAAKC,MACPP,EAAiBF,EAAmB,CAC5C,MAAMd,EAAsBf,EAAuBC,GAEnD,OADA+B,EAAoCjB,GAC7BA,CACT,CAoBA,OAlBAe,EAA2BpB,EAAAA,eAAA,OAAA,OAAA,EAAA,YACzB,IACE,MAAMS,QAA8BX,EAAqB,CACvDY,mBAAoBX,EAAQW,mBAC5BP,WAAYJ,EAAQI,WACpBZ,aACAW,mBACAE,cAAc,EACdQ,QAASb,EAAQa,UAInB,OAFAS,EAAiBM,KAAKC,MACtBN,EAAoCb,GAC7BA,CACT,SACEW,EAAe,IACjB,CACF,GAEOA,CACT,GAsBEU,kCAnBAC,IAEA,GAAsB,oBAAXvC,OACT,MAAO,OAGT,MAAMwC,EAAgCC,IACpCF,EAAQE,IAKV,OAFAzC,OAAO0C,iBAAiBjB,EAAkBe,GAEnC,KACLxC,OAAO2C,oBAAoBlB,EAAkBe,KAO/CV"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './StageTeaserV3.css';
|
|
2
|
-
import{__awaiter as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as i,jsxs as
|
|
2
|
+
import{__awaiter as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";import{useState as l,useRef as t,useEffect as o}from"react";import r from"react-loading-skeleton";import"react-loading-skeleton/dist/skeleton.css";import s from"./StageTeaserSwiperV3.js";import d from"./StageTeaserV3.module.scss.js";import u from"./DoubleGrid/DoubleGridComponent.js";import m from"./SingleGrid/SingleGridComponent.js";import{calculateDateTime as a}from"../RibbonComponent/utils.js";import{customerGroup as c}from"../../services/CustomerService.js";import{resolveCustomerGroup as v,createCustomerGroupFetcher as f}from"../../services/customerSegmentSync.js";import{getCookie as g}from"cookies-next";import{AUTHCOOKIE as p,CUSTOMER_SEGMENT_REFRESH_EVENT as S,CUSTOMER_GROUP_STORAGE_KEY as h}from"../Constants.js";const w=r.default||r,y=f({fetchCustomerProfile:c}),T=({content:r})=>{var c,f,T,C;const[b,E]=l(null),[x,V]=l(null),[N,O]=l(!0),[j,W]=l(!1),[A,F]=l(!1),[$,I]=l(!1),[L,M]=l(null),[k,B]=l(0),R=t(null),_=t(null),D=t(null),G=!!g(p),U=e=>e?a(new Date(e.trim().replace(/-/g,"/"))):null,H=(e,i)=>{const n=(Array.isArray(e)?e:[e]).filter(Boolean).map(e=>String(e).trim().toLowerCase());return!n.length||!!i.size&&n.some(e=>i.has(e))},z=e=>(Array.isArray(e)?e:[e]).filter(Boolean).map(e=>String(e).trim()).length>0,X=(e,i,n=!1)=>{const l=(Array.isArray(e)?e:[e]).filter(Boolean).map(e=>String(e).trim().toLowerCase()),t=l.length>0;return i?!!l.includes("all")||l.includes(i.toLowerCase()):!!n&&(!t||l.includes("all"))};o(()=>{if("undefined"==typeof window)return;const e=()=>{B(e=>e+1)};return window.addEventListener(S,e),()=>{window.removeEventListener(S,e)}},[]),o(()=>{let i=!0;return e(void 0,void 0,void 0,function*(){i&&(O(!0),W(!1),F(!1),I(!1));const e=D.current,n=null!==e&&e!==G,l=!0===e&&!G;if(D.current=G,l&&"undefined"!=typeof window&&window.localStorage.removeItem(h),n&&V(null),"undefined"!=typeof window){const e=window.localStorage.getItem(h);if(e&&!n&&G&&"NEW_CUSTOMER"!==e)return V(e),F(!1),void W(!0)}if(!G)return V("NEW_CUSTOMER"),"undefined"!=typeof window&&window.localStorage.setItem(h,"NEW_CUSTOMER"),F(!1),void W(!0);try{const e=yield v({fetchCustomerGroup:y,isLoggedIn:()=>G,storageKey:h,newCustomerValue:"NEW_CUSTOMER"});i&&(V(e),F(!1),"undefined"!=typeof window&&e&&window.localStorage.setItem(h,e),W(!0))}catch(e){i&&(V(null),F(!0),W(!0))}}),()=>{i=!1}},[G,k]),o(()=>{const e=()=>{R.current&&(clearTimeout(R.current),R.current=null)};if(!j)return void I(!1);const i=A&&!x;if(!x&&!i)return void(j&&(E(null),I(!0),O(!1)));I(!1);const n=(null==r?void 0:r.teaserSlides)||[],l=(()=>{if("undefined"==typeof window)return new Set;const e=window.localStorage.getItem("tealium_va");if(!e)return new Set;try{const i=JSON.parse(e),n=null==i?void 0:i.audiences;return n&&"object"==typeof n?new Set(Object.keys(n).filter(Boolean).map(e=>String(e).trim().toLowerCase())):new Set}catch(e){return new Set}})(),t={FIXNET:null==r?void 0:r.fixnetOrder,MOBILE:null==r?void 0:r.mobileOrder,FIXNET_MOBILE:null==r?void 0:r.mobileFixnetOrder,DEFAULT:null==r?void 0:r.defaultOrder},o=x?t[x]:null;if(o){const e=o.split(",").map(e=>e.trim()).filter(e=>e.length>0),i=new Map(e.map((e,i)=>[e,i])),l=new Map(n.map((e,i)=>[e,i]));n.sort((e,n)=>{var t,o,r,s,d,u;const m=String(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"").trim(),a=String(null!==(o=null==n?void 0:n.id)&&void 0!==o?o:"").trim(),c=null!==(r=l.get(e))&&void 0!==r?r:0,v=null!==(s=l.get(n))&&void 0!==s?s:0,f=null!==(d=i.get(m))&&void 0!==d?d:i.get(String(c)),g=null!==(u=i.get(a))&&void 0!==u?u:i.get(String(v));return null==f&&null==g?c-v:null==f?1:null==g?-1:Number(f)-Number(g)})}const s=n.filter(e=>!0===(null==e?void 0:e.active)&&(z(null==e?void 0:e.tealiumAudiences)?H(null==e?void 0:e.tealiumAudiences,l):X(null==e?void 0:e.customerType,x,i))),d=()=>{const e=new Date,i=[];s.forEach(n=>{((e,i)=>{const n=U(null==e?void 0:e.scheduleStartTime),l=U(null==e?void 0:e.scheduleEndTime),t=!n||i.getTime()>=n.getTime(),o=!l||l.getTime()>i.getTime();return t&&o})(n,e)&&(i.includes(n)||i.push(n))}),E(i.length>0?i:null),I(!0),O(!1)},u=()=>{e();const n=((null==r?void 0:r.teaserSlides)||[]).filter(e=>!0===(null==e?void 0:e.active)&&(z(null==e?void 0:e.tealiumAudiences)?H(null==e?void 0:e.tealiumAudiences,l):X(null==e?void 0:e.customerType,x,i))),t=(new Date).getTime(),o=n.flatMap(e=>{const i=[],n=U(null==e?void 0:e.scheduleStartTime),l=U(null==e?void 0:e.scheduleEndTime);if(n){const e=n.getTime();e>t&&i.push(e)}if(l){const e=l.getTime();e>t&&i.push(e)}return i}).sort((e,i)=>e-i)[0];if(!o)return;const s=o-t;R.current=setTimeout(()=>{d(),u()},Math.max(s,0))};return d(),u(),()=>{e()}},[null==r?void 0:r.teaserSlides,x,j,A]),o(()=>{if(!_.current||!(null==b?void 0:b.length))return;const e=()=>{var e;const i=null===(e=_.current)||void 0===e?void 0:e.offsetHeight;i&&i>0&&M(i)};e();const i=new ResizeObserver(e);return i.observe(_.current),()=>{i.disconnect()}},[null==b?void 0:b.length,null==r?void 0:r.isSlimVersion,null==r?void 0:r.isFullWidth]);const J=null==r?void 0:r.isFullWidth,K=null===(c=null==r?void 0:r.solidBgColor)||void 0===c?void 0:c.color,P="undefined"==typeof window?1368:window.innerWidth,q=P>=1024,Q=(null==r?void 0:r.isSlimVersion)?480:q?550:500,Y=J?0:48,Z=(null===(f=null==r?void 0:r.teaserSlides)||void 0===f?void 0:f.length)>1?34:0,ee=L||Q+Y+Z,ie=(()=>{if(!J)return P<768?"320px":P<1024?"660px":P>=1920?"1368px":"960px"})(),ne=J?void 0:{width:ie},le=(e,n)=>"single"===(null==e?void 0:e.layoutgrid)?i(m,{content:e,isFullWidth:J,isSlimVersion:null==r?void 0:r.isSlimVersion,isFirstSlide:0===n},n):i(u,{content:e,isFullWidth:J,isSlimVersion:null==r?void 0:r.isSlimVersion,isFirstSlide:0===n},n),te=i("div",{ref:_,className:`${d.outerContainer} ${J?d.fullWidth:""} ${(null==r?void 0:r.isSlimVersion)&&J?d.slimVersion:""}`,style:{backgroundColor:K,minHeight:`${ee}px`},children:(null==b?void 0:b.length)>1?i(s,{content:r,isFullWidth:J,children:null===(T=b||[])||void 0===T?void 0:T.map((e,i)=>le(e,i))}):i("div",{className:J?"":d.singleSlideCentered,style:ne,children:le(null==b?void 0:b[0],0)})});if(N||!j||!$){const e=(null===(C=null==r?void 0:r.teaserSlides)||void 0===C?void 0:C.length)>1,l={backgroundColor:K,minHeight:`${ee}px`},t={display:"block",height:`${Q}px`};return i("div",{className:`${d.outerContainer} ${J?d.fullWidth:""} ${(null==r?void 0:r.isSlimVersion)&&J?d.slimVersion:""}`,style:l,children:n("div",{className:J?"":d.singleSlideCentered,style:ne,children:[i("div",{className:`${d.skeletonContainer} ${(null==r?void 0:r.isSlimVersion)?d.slimVersion:""}`,children:i(w,{height:"100%",borderRadius:J?0:32,style:t})}),e&&i("div",{style:{marginTop:"24px",height:"10px"}})]})})}return(null==b?void 0:b.length)?te:null};export{T as default};
|
|
3
3
|
//# sourceMappingURL=StageTeaserV3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageTeaserV3.js","sources":["../../../../../src/components/StageTeaserV3/StageTeaserV3.tsx"],"sourcesContent":[null],"names":["Skeleton","SkeletonRaw","default","StageTeaserV3","content","displayArray","setdisplayArray","useState","customerGroupValue","setCustomerGroupValue","isInitialSkeletonVisible","setIsInitialSkeletonVisible","isCustomerGroupResolved","setIsCustomerGroupResolved","didCustomerGroupApiFail","setDidCustomerGroupApiFail","isDisplaySlidesFiltered","setIsDisplaySlidesFiltered","measuredTeaserHeight","setMeasuredTeaserHeight","customerSegmentRefreshVersion","setCustomerSegmentRefreshVersion","recalculateTimerRef","useRef","teaserContainerRef","previousExistingCustomerRef","existingCustomer","getCookie","AUTHCOOKIE","getScheduleDateTime","value","calculateDateTime","Date","trim","replace","matchesTealiumAudiences","slideAudiences","availableAudiences","normalizedSlideAudiences","Array","isArray","filter","Boolean","map","audience","String","toLowerCase","length","size","some","has","hasTealiumAudiencesConfigured","matchesCustomerType","customerType","customerGroup","allowAllOrUnsetAudienceFallback","normalizedTypes","type","hasAudienceConfigured","includes","useEffect","window","onCustomerSegmentRefresh","previousValue","addEventListener","CUSTOMER_SEGMENT_REFRESH_EVENT","removeEventListener","isMounted","__awaiter","hasExistingCustomerChanged","current","localStorage","removeItem","CUSTOMER_GROUP_STORAGE_KEY","cachedGroup","getItem","setItem","group","resolvedGroup","error","clearRecalculateTimer","clearTimeout","shouldUseAllAudienceFallback","teaserSlides","availableTealiumAudiences","Set","rawValue","parsed","JSON","parse","audiences","Object","keys","getTealiumAudienceKeys","orderConfig","FIXNET","fixnetOrder","MOBILE","mobileOrder","FIXNET_MOBILE","mobileFixnetOrder","DEFAULT","defaultOrder","selectedOrder","orderKeys","split","orderMap","Map","index","originalIndexMap","slide","sort","a","b","aIdKey","_a","id","bIdKey","_b","aOriginalIndex","_c","get","bOriginalIndex","_d","aIndex","_e","bIndex","_f","Number","activeSlides","slider","active","tealiumAudiences","recalculateDisplayArray","presentTime","toDisplay","forEach","currentTime","startTime","scheduleStartTime","endTime","scheduleEndTime","hasStarted","getTime","notExpired","isSlideWithinScheduleWindow","push","scheduleNextStartRecalculation","presentTimeMs","nextRecalculationTimeMs","flatMap","times","startTimeMs","endTimeMs","delay","setTimeout","Math","max","updateHeight","nextHeight","offsetHeight","observer","ResizeObserver","observe","disconnect","isSlimVersion","isFullWidth","solidBackGroundColor","solidBgColor","color","renderTeaserCard","card","key","layoutgrid","_jsx","SingleGridComponent","isFirstSlide","DoubleGridComponent","stageTeaserJsx","ref","className","Styles","outerContainer","fullWidth","slimVersion","style","backgroundColor","children","StageTeaserSwiperV3","singleSlideCentered","showDots","loadingContainerStyle","minHeight","undefined","loadingSkeletonStyle","display","height","_jsxs","skeletonContainer","borderRadius","marginTop"],"mappings":"+tBAIA,MAAMA,EAAYC,EAAoBC,SAAWD,EAiB3CE,EAA2B,EAAGC,wBAClC,MAAOC,EAAcC,GAAmBC,EAAc,OAC/CC,EAAoBC,GAAyBF,EAAc,OAC3DG,EAA0BC,GAA+BJ,GAAkB,IAC3EK,EAAyBC,GAA8BN,GAAkB,IACzEO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AAA,MAAA,CAAKM,UAAW,GAAGC,EAAOiB,sBAAqBlM,aAAO,EAAPA,EAASiK,eAAgBgB,EAAOG,YAAc,KAAIG,SAC/Fb,EAAC9K,EAAQ,CACPoM,OAAO,OACPG,aAAcjC,EAAc,EAAI,GAChCmB,MAAOS,MAGVJ,GACChB,EAAA,MAAA,CAAKW,MAAO,CAAEe,UAAW,OAAQJ,OAAQ,cAKnD,CAEA,OAAI/L,aAAY,EAAZA,EAAc0C,QACTmI,EAGF"}
|
|
1
|
+
{"version":3,"file":"StageTeaserV3.js","sources":["../../../../../src/components/StageTeaserV3/StageTeaserV3.tsx"],"sourcesContent":[null],"names":["Skeleton","SkeletonRaw","default","fetchCustomerGroup","createCustomerGroupFetcher","fetchCustomerProfile","customerGroup","StageTeaserV3","content","displayArray","setdisplayArray","useState","customerGroupValue","setCustomerGroupValue","isInitialSkeletonVisible","setIsInitialSkeletonVisible","isCustomerGroupResolved","setIsCustomerGroupResolved","didCustomerGroupApiFail","setDidCustomerGroupApiFail","isDisplaySlidesFiltered","setIsDisplaySlidesFiltered","measuredTeaserHeight","setMeasuredTeaserHeight","customerSegmentRefreshVersion","setCustomerSegmentRefreshVersion","recalculateTimerRef","useRef","teaserContainerRef","previousExistingCustomerRef","existingCustomer","getCookie","AUTHCOOKIE","getScheduleDateTime","value","calculateDateTime","Date","trim","replace","matchesTealiumAudiences","slideAudiences","availableAudiences","normalizedSlideAudiences","Array","isArray","filter","Boolean","map","audience","String","toLowerCase","length","size","some","has","hasTealiumAudiencesConfigured","matchesCustomerType","customerType","allowAllOrUnsetAudienceFallback","normalizedTypes","type","hasAudienceConfigured","includes","useEffect","window","onCustomerSegmentRefresh","previousValue","addEventListener","CUSTOMER_SEGMENT_REFRESH_EVENT","removeEventListener","isMounted","__awaiter","previousExistingCustomer","current","hasExistingCustomerChanged","didCustomerLogout","localStorage","removeItem","CUSTOMER_GROUP_STORAGE_KEY","cachedGroup","getItem","setItem","resolvedGroup","resolveCustomerGroup","isLoggedIn","storageKey","newCustomerValue","error","clearRecalculateTimer","clearTimeout","shouldUseAllAudienceFallback","teaserSlides","availableTealiumAudiences","Set","rawValue","parsed","JSON","parse","audiences","Object","keys","getTealiumAudienceKeys","orderConfig","FIXNET","fixnetOrder","MOBILE","mobileOrder","FIXNET_MOBILE","mobileFixnetOrder","DEFAULT","defaultOrder","selectedOrder","orderKeys","split","orderMap","Map","index","originalIndexMap","slide","sort","a","b","aIdKey","_a","id","bIdKey","_b","aOriginalIndex","_c","get","bOriginalIndex","_d","aIndex","_e","bIndex","_f","Number","activeSlides","slider","active","tealiumAudiences","recalculateDisplayArray","presentTime","toDisplay","forEach","currentTime","startTime","scheduleStartTime","endTime","scheduleEndTime","hasStarted","getTime","notExpired","isSlideWithinScheduleWindow","push","scheduleNextStartRecalculation","presentTimeMs","nextRecalculationTimeMs","flatMap","times","startTimeMs","endTimeMs","delay","setTimeout","Math","max","updateHeight","nextHeight","offsetHeight","observer","ResizeObserver","observe","disconnect","isSlimVersion","isFullWidth","solidBackGroundColor","solidBgColor","color","fallbackViewportWidth","innerWidth","isDesktopViewport","baseTeaserHeight","outerPaddingHeight","estimatedDotsHeight","reservedTeaserHeight","centeredSlideWidth","singleSlideContainerStyle","undefined","width","renderTeaserCard","card","key","layoutgrid","_jsx","SingleGridComponent","isFirstSlide","DoubleGridComponent","stageTeaserJsx","ref","className","Styles","outerContainer","fullWidth","slimVersion","style","backgroundColor","minHeight","children","StageTeaserSwiperV3","singleSlideCentered","showDots","loadingContainerStyle","loadingSkeletonStyle","display","height","_jsxs","skeletonContainer","borderRadius","marginTop"],"mappings":"40BAIA,MAAMA,EAAYC,EAAoBC,SAAWD,EAiB3CE,EAAqBC,EAA2B,CACpDC,qBAAsBC,IAIlBC,EAA2B,EAAGC,0BAClC,MAAOC,EAAcC,GAAmBC,EAAc,OAC/CC,EAAoBC,GAAyBF,EAAc,OAC3DG,EAA0BC,GAA+BJ,GAAkB,IAC3EK,EAAyBC,GAA8BN,GAAkB,I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AAM8L,GAAgC,QAArB/E,EAAA3H,aAAO,EAAPA,EAASmF,oBAAY,IAAAwC,OAAA,EAAAA,EAAEhF,QAAS,EAC3CgK,EAA6C,CACjDN,gBAAiB9B,EACjB+B,UAAW,GAAGtB,QAEV4B,EAA4C,CAChDC,QAAS,QACTC,OAAQ,GAAGjC,OAGb,OACEY,EAAA,MAAA,CACEM,UAAW,GAAGC,EAAOC,kBACnB3B,EAAc0B,EAAOE,UAAY,OAC/BlM,aAAO,EAAPA,EAASqK,gBAAiBC,EAAc0B,EAAOG,YAAc,KACjEC,MAAOO,EAAqBJ,SAE5BQ,EAAA,MAAA,CACEhB,UAAYzB,EAA2C,GAA7B0B,EAAOS,oBACjCL,MAAOlB,GAAyBqB,SAAA,CAEhCd,SAAKM,UAAW,GAAGC,EAAOgB,sBAAqBhN,aAAO,EAAPA,EAASqK,eAAgB2B,EAAOG,YAAc,cAC3FV,EAACjM,EAAQ,CACPsN,OAAO,OACPG,aAAc3C,EAAc,EAAI,GAChC8B,MAAOQ,MAGVF,GACCjB,EAAA,MAAA,CAAKW,MAAO,CAAEc,UAAW,OAAQJ,OAAQ,cAKnD,CAEA,OAAI7M,aAAY,EAAZA,EAAc0C,QACTkJ,GAGF"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as RibbonComponent}from"./components/RibbonComponent/RibbonComponent.js";export{default as RibbonRenderer}from"./components/RibbonRenderer/RibbonRenderer.js";export{default as GlobalPromoRibbon}from"./components/GlobalPromoRibbon/GlobalPromoRibbon.js";export{default as FalconButtonV3}from"./components/FalconButtonV3/FalconButtonV3.js";export{default as StageTeaserComponent}from"./components/StageTeaserComponent/StageTeaserComponent.js";export{default as ImageComponent}from"./components/ImageComponent/ImageComponent.js";export{default as TextComponent}from"./components/TextComponent/TextComponent.js";export{default as ButtonGroup}from"./components/ButtonGroup/ButtonGroup.js";export{default as ImageWithText}from"./components/ImageWithText/ImageWithText.js";export{default as ImageWithTextWrapper}from"./components/ImageWithTextWrapper/ImageWithTextWrapper.js";export{default as InternetAndTvCardsBenefits}from"./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js";export{default as LineCheckV2}from"./components/linecheck/LineCheckV2.js";export{default as StageTeaserV3}from"./components/StageTeaserV3/StageTeaserV3.js";export{default as PromoBubble}from"./components/StageTeaserV3/PromoBubble/PromoBubble.js";export{default as FalconMainNavigation}from"./components/FalconMainNavigation/FalconMainNavigation.js";export{default as SearchWrapper}from"./components/SearchWrapper/SearchWrapper.js";export{default as MinimizedHeader}from"./components/MinimizedHeader/MinimizedHeader.js";export{LinecheckBasicPropConfig}from"./services/LinecheckBasicPropConfig.js";export{CustomerPropConfig}from"./services/CustomerPropConfig.js";export{CartPropConfig}from"./services/CartPropConfig.js";export{createCustomerSegmentSync}from"./services/customerSegmentSync.js";
|
|
1
|
+
export{default as RibbonComponent}from"./components/RibbonComponent/RibbonComponent.js";export{default as RibbonRenderer}from"./components/RibbonRenderer/RibbonRenderer.js";export{default as GlobalPromoRibbon}from"./components/GlobalPromoRibbon/GlobalPromoRibbon.js";export{default as FalconButtonV3}from"./components/FalconButtonV3/FalconButtonV3.js";export{default as StageTeaserComponent}from"./components/StageTeaserComponent/StageTeaserComponent.js";export{default as ImageComponent}from"./components/ImageComponent/ImageComponent.js";export{default as TextComponent}from"./components/TextComponent/TextComponent.js";export{default as ButtonGroup}from"./components/ButtonGroup/ButtonGroup.js";export{default as ImageWithText}from"./components/ImageWithText/ImageWithText.js";export{default as ImageWithTextWrapper}from"./components/ImageWithTextWrapper/ImageWithTextWrapper.js";export{default as InternetAndTvCardsBenefits}from"./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js";export{default as LineCheckV2}from"./components/linecheck/LineCheckV2.js";export{default as StageTeaserV3}from"./components/StageTeaserV3/StageTeaserV3.js";export{default as PromoBubble}from"./components/StageTeaserV3/PromoBubble/PromoBubble.js";export{default as FalconMainNavigation}from"./components/FalconMainNavigation/FalconMainNavigation.js";export{default as SearchWrapper}from"./components/SearchWrapper/SearchWrapper.js";export{default as MinimizedHeader}from"./components/MinimizedHeader/MinimizedHeader.js";export{LinecheckBasicPropConfig}from"./services/LinecheckBasicPropConfig.js";export{CustomerPropConfig}from"./services/CustomerPropConfig.js";export{CartPropConfig}from"./services/CartPropConfig.js";export{createCustomerGroupFetcher,createCustomerSegmentSync,extractCustomerGroupFromProfile,resolveCustomerGroup}from"./services/customerSegmentSync.js";export{customerGroup}from"./services/CustomerService.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e}from"../node_modules/tslib/tslib.es6.js";import{CUSTOMER_GROUP_STORAGE_KEY as n,CUSTOMER_SEGMENT_REFRESH_EVENT as
|
|
1
|
+
import{__awaiter as e}from"../node_modules/tslib/tslib.es6.js";import{CUSTOMER_GROUP_STORAGE_KEY as n,CUSTOMER_SEGMENT_REFRESH_EVENT as o}from"../components/Constants.js";const t=e=>{if("string"!=typeof e)return null;const n=e.trim();return n.length>0?n:null},r=e=>{var n,o;const r=t(null==e?void 0:e.customerGroup);if(r)return r;const i=t(null===(o=null===(n=null==e?void 0:e.relatedParty)||void 0===n?void 0:n[0])||void 0===o?void 0:o.segment);return i||null},i=n=>()=>e(void 0,void 0,void 0,function*(){const e=yield n.fetchCustomerProfile();return r(e||{})}),u=new Map,d=e=>"undefined"==typeof window?null:t(window.localStorage.getItem(e)),s=(e,n)=>{"undefined"!=typeof window&&(n?window.localStorage.setItem(e,n):window.localStorage.removeItem(e))},l=o=>e(void 0,void 0,void 0,function*(){const r=o.storageKey||n,i=o.newCustomerValue||"NEW_CUSTOMER";if("undefined"==typeof window)return null;if(!o.isLoggedIn())return s(r,i),i;if(!o.forceRefresh){const e=d(r);if(e&&e!==i)return e}const l=u.get(r);if(l)return l;const f=e(void 0,void 0,void 0,function*(){try{const e=t(yield o.fetchCustomerGroup());return s(r,e),e}catch(e){return o.onError&&o.onError(e),d(r)}finally{u.delete(r)}});return u.set(r,f),f}),f=t=>{var r;const i=t.storageKey||n,u=t.refreshEventName||o,s=null!==(r=t.minSyncIntervalMs)&&void 0!==r?r:8e3,f=t.newCustomerValue||"NEW_CUSTOMER";let c=null,v=0;const w=e=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(u,{detail:{customerGroup:e,refreshedAt:Date.now()}}))};return{refreshCustomerSegmentAfterLogin:()=>e(void 0,void 0,void 0,function*(){if("undefined"==typeof window)return null;if(c)return c;if(Date.now()-v<s){const e=d(i);return w(e),e}return c=e(void 0,void 0,void 0,function*(){try{const e=yield l({fetchCustomerGroup:t.fetchCustomerGroup,isLoggedIn:t.isLoggedIn,storageKey:i,newCustomerValue:f,forceRefresh:!0,onError:t.onError});return v=Date.now(),w(e),e}finally{c=null}}),c}),subscribeToCustomerSegmentRefresh:e=>{if("undefined"==typeof window)return()=>{};const n=n=>{e(n)};return window.addEventListener(u,n),()=>{window.removeEventListener(u,n)}},dispatchCustomerSegmentRefreshEvent:w}};export{i as createCustomerGroupFetcher,f as createCustomerSegmentSync,r as extractCustomerGroupFromProfile,l as resolveCustomerGroup};
|
|
2
2
|
//# sourceMappingURL=customerSegmentSync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerSegmentSync.js","sources":["../../../../src/services/customerSegmentSync.ts"],"sourcesContent":[null],"names":["normalizeCustomerGroup","value","normalized","trim","length","
|
|
1
|
+
{"version":3,"file":"customerSegmentSync.js","sources":["../../../../src/services/customerSegmentSync.ts"],"sourcesContent":[null],"names":["normalizeCustomerGroup","value","normalized","trim","length","extractCustomerGroupFromProfile","profile","directCustomerGroup","customerGroup","relatedPartySegment","_b","_a","relatedParty","segment","createCustomerGroupFetcher","options","__awaiter","customerProfile","fetchCustomerProfile","inFlightCustomerGroupByStorageKey","Map","getCachedCustomerGroup","storageKey","window","localStorage","getItem","setCachedCustomerGroup","setItem","removeItem","resolveCustomerGroup","CUSTOMER_GROUP_STORAGE_KEY","newCustomerValue","isLoggedIn","forceRefresh","cachedCustomerGroup","inFlightCustomerGroup","get","customerGroupPromise","resolvedCustomerGroup","fetchCustomerGroup","error","onError","delete","set","createCustomerSegmentSync","refreshEventName","CUSTOMER_SEGMENT_REFRESH_EVENT","minSyncIntervalMs","inFlightSync","lastSyncedAtMs","dispatchCustomerSegmentRefreshEvent","dispatchEvent","CustomEvent","detail","refreshedAt","Date","now","refreshCustomerSegmentAfterLogin","subscribeToCustomerSegmentRefresh","handler","eventListener","event","addEventListener","removeEventListener"],"mappings":"2KA8CA,MAAMA,EAA0BC,IAC9B,GAAqB,iBAAVA,EACT,OAAO,KAGT,MAAMC,EAAaD,EAAME,OACzB,OAAOD,EAAWE,OAAS,EAAIF,EAAa,MAGjCG,EAAmCC,YAC9C,MAAMC,EAAsBP,EAAuBM,aAAO,EAAPA,EAASE,eAC5D,GAAID,EACF,OAAOA,EAGT,MAAME,EAAsBT,EAAiD,QAA1BU,EAAqB,QAArBC,EAAAL,eAAAA,EAASM,oBAAY,IAAAD,OAAA,EAAAA,EAAG,UAAE,IAAAD,OAAA,EAAAA,EAAEG,SAC/E,OAAIJ,GAIG,MAGIK,EACXC,GAEO,IAAWC,OAAA,OAAA,OAAA,EAAA,YAChB,MAAMC,QAAwBF,EAAQG,uBACtC,OAAOb,EAAiCY,GAAmB,GAC7D,GAGIE,EAAoC,IAAIC,IAExCC,EAA0BC,GACR,oBAAXC,OACF,KAGFvB,EAAuBuB,OAAOC,aAAaC,QAAQH,IAGtDI,EAAyB,CAACJ,EAAoBd,KAC5B,oBAAXe,SAIPf,EACFe,OAAOC,aAAaG,QAAQL,EAAYd,GAI1Ce,OAAOC,aAAaI,WAAWN,KAGpBO,EACXd,GAC0BC,OAAA,OAAA,OAAA,EAAA,YAC1B,MAAMM,EAAaP,EAAQO,YAAcQ,EACnCC,EAAmBhB,EAAQgB,kBAAoB,eAErD,GAAsB,oBAAXR,OACT,OAAO,KAGT,IAAKR,EAAQiB,aAE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AAQiB,WACpBV,aACAS,mBACAE,cAAc,EACdQ,QAAS1B,EAAQ0B,UAInB,OAFAQ,EAAiBM,KAAKC,MACtBN,EAAoCZ,GAC7BA,CACT,SACEU,EAAe,IACjB,CACF,GAEOA,CACT,GAsBEU,kCAnBAC,IAEA,GAAsB,oBAAXpC,OACT,MAAO,OAGT,MAAMqC,EAAgCC,IACpCF,EAAQE,IAKV,OAFAtC,OAAOuC,iBAAiBjB,EAAkBe,GAEnC,KACLrC,OAAOwC,oBAAoBlB,EAAkBe,KAO/CV"}
|
package/dist/index.d.ts
CHANGED
|
@@ -540,12 +540,34 @@ type CustomerSegmentSyncOptions = {
|
|
|
540
540
|
newCustomerValue?: string;
|
|
541
541
|
onError?: (error: unknown) => void;
|
|
542
542
|
};
|
|
543
|
+
type ResolveCustomerGroupOptions = {
|
|
544
|
+
fetchCustomerGroup: () => Promise<string | null>;
|
|
545
|
+
isLoggedIn: () => boolean;
|
|
546
|
+
storageKey?: string;
|
|
547
|
+
newCustomerValue?: string;
|
|
548
|
+
forceRefresh?: boolean;
|
|
549
|
+
onError?: (error: unknown) => void;
|
|
550
|
+
};
|
|
551
|
+
type CustomerProfileResponse = {
|
|
552
|
+
customerGroup?: string | null;
|
|
553
|
+
relatedParty?: Array<{
|
|
554
|
+
segment?: string | null;
|
|
555
|
+
}>;
|
|
556
|
+
};
|
|
557
|
+
type CreateCustomerGroupFetcherOptions<TProfileResponse = unknown> = {
|
|
558
|
+
fetchCustomerProfile: () => TProfileResponse | Promise<TProfileResponse>;
|
|
559
|
+
};
|
|
543
560
|
type CustomerSegmentSyncApi = {
|
|
544
561
|
refreshCustomerSegmentAfterLogin: () => Promise<string | null>;
|
|
545
562
|
subscribeToCustomerSegmentRefresh: (handler: (event: CustomEvent<CustomerSegmentRefreshDetail>) => void) => () => void;
|
|
546
563
|
dispatchCustomerSegmentRefreshEvent: (customerGroup: string | null) => void;
|
|
547
564
|
};
|
|
565
|
+
declare const extractCustomerGroupFromProfile: (profile: CustomerProfileResponse) => string | null;
|
|
566
|
+
declare const createCustomerGroupFetcher: <TProfileResponse = unknown>(options: CreateCustomerGroupFetcherOptions<TProfileResponse>) => (() => Promise<string | null>);
|
|
567
|
+
declare const resolveCustomerGroup: (options: ResolveCustomerGroupOptions) => Promise<string | null>;
|
|
548
568
|
declare const createCustomerSegmentSync: (options: CustomerSegmentSyncOptions) => CustomerSegmentSyncApi;
|
|
549
569
|
|
|
550
|
-
|
|
551
|
-
|
|
570
|
+
declare const customerGroup: () => string | Promise<any>;
|
|
571
|
+
|
|
572
|
+
export { ButtonGroup, CartPropConfig, CustomerPropConfig, FalconButtonV3, FalconMainNavigation, GlobalPromoRibbon, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, MinimizedHeader, PromoBubble, RibbonComponent, RibbonRenderer, SearchWrapper, StageTeaserComponent, StageTeaserV3, TextComponent, createCustomerGroupFetcher, createCustomerSegmentSync, customerGroup, extractCustomerGroupFromProfile, resolveCustomerGroup };
|
|
573
|
+
export type { CartPropConfigSchema, CreateCustomerGroupFetcherOptions, CustomerProfileResponse, CustomerPropConfigSchema, CustomerSegmentRefreshDetail, CustomerSegmentSyncApi, CustomerSegmentSyncOptions, LinecheckBasicPropConfigSchema, ResolveCustomerGroupOptions, RibbonComponentSchema, RibbonRendererProps };
|
package/dist/navigation.css
CHANGED
|
@@ -647,6 +647,124 @@
|
|
|
647
647
|
visibility: visible;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
+
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartOverlay.module.scss */
|
|
651
|
+
/* center a block element */
|
|
652
|
+
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
653
|
+
/* setting styles in separate formats for cross browser support */
|
|
654
|
+
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
655
|
+
/* vertically center alilgn any HTML element */
|
|
656
|
+
/* add basePath to assets */
|
|
657
|
+
.cart-overlay-panel.offcanvas {
|
|
658
|
+
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.cart-overlay-panel .offcanvas-header {
|
|
662
|
+
height: 96px;
|
|
663
|
+
padding: 20px 16px;
|
|
664
|
+
gap: 24px;
|
|
665
|
+
align-items: center;
|
|
666
|
+
background: #ffffff;
|
|
667
|
+
border-bottom: 1px solid #e6e3df;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.cart-overlay-panel .offcanvas-title {
|
|
671
|
+
display: flex;
|
|
672
|
+
flex-direction: column;
|
|
673
|
+
align-items: flex-start;
|
|
674
|
+
gap: 2px;
|
|
675
|
+
font-size: 24px;
|
|
676
|
+
line-height: 32px;
|
|
677
|
+
font-weight: 700;
|
|
678
|
+
color: #3d3935;
|
|
679
|
+
}
|
|
680
|
+
@media (max-width: 1023px) {
|
|
681
|
+
.cart-overlay-panel .offcanvas-title {
|
|
682
|
+
font-size: 20px;
|
|
683
|
+
line-height: 28px;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.cart-overlay-panel .btn-close {
|
|
688
|
+
opacity: 0.7;
|
|
689
|
+
width: 20px;
|
|
690
|
+
height: 20px;
|
|
691
|
+
}
|
|
692
|
+
.cart-overlay-panel .btn-close:hover {
|
|
693
|
+
opacity: 1;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.cart-overlay-panel .offcanvas-body {
|
|
697
|
+
padding: 0;
|
|
698
|
+
overflow-y: auto;
|
|
699
|
+
display: flex;
|
|
700
|
+
flex-direction: column;
|
|
701
|
+
background: #f7f6f5;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.cart-overlay-panel.offcanvas-bottom {
|
|
705
|
+
border-radius: 8px 8px 0 0 !important;
|
|
706
|
+
width: 100% !important;
|
|
707
|
+
overflow: hidden;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.CartOverlay-module__backdrop___lMc-O {
|
|
711
|
+
position: fixed;
|
|
712
|
+
inset: 0;
|
|
713
|
+
z-index: 1040;
|
|
714
|
+
background: rgba(153, 178, 167, 0.1);
|
|
715
|
+
animation: CartOverlay-module__fadeIn___G8JYJ 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
@keyframes CartOverlay-module__fadeIn___G8JYJ {
|
|
719
|
+
from {
|
|
720
|
+
opacity: 0;
|
|
721
|
+
}
|
|
722
|
+
to {
|
|
723
|
+
opacity: 1;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
.CartOverlay-module__footer___OwJpW {
|
|
727
|
+
padding: 16px 24px;
|
|
728
|
+
border-top: 1px solid #d2d2d2;
|
|
729
|
+
background-color: #ffffff;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.CartOverlay-module__dismissButton___57qsq {
|
|
733
|
+
display: flex;
|
|
734
|
+
align-items: center;
|
|
735
|
+
justify-content: center;
|
|
736
|
+
width: 100%;
|
|
737
|
+
height: 52px;
|
|
738
|
+
padding: 14px 24px;
|
|
739
|
+
gap: 8px;
|
|
740
|
+
background: none;
|
|
741
|
+
border: 2px solid #da291c;
|
|
742
|
+
border-radius: 28px;
|
|
743
|
+
font-size: 16px;
|
|
744
|
+
line-height: 24px;
|
|
745
|
+
font-weight: 600;
|
|
746
|
+
color: #da291c;
|
|
747
|
+
text-align: center;
|
|
748
|
+
cursor: pointer;
|
|
749
|
+
transition: background-color 0.15s ease;
|
|
750
|
+
}
|
|
751
|
+
.CartOverlay-module__dismissButton___57qsq:hover {
|
|
752
|
+
background-color: rgba(218, 41, 28, 0.05);
|
|
753
|
+
}
|
|
754
|
+
.CartOverlay-module__dismissButton___57qsq:focus-visible {
|
|
755
|
+
outline: 2px solid #da291c;
|
|
756
|
+
outline-offset: 2px;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.CartOverlay-module__errorMessage___ylBiH {
|
|
760
|
+
margin: auto 24px;
|
|
761
|
+
padding: 16px;
|
|
762
|
+
font-size: 20px;
|
|
763
|
+
line-height: 28px;
|
|
764
|
+
color: #3d3935;
|
|
765
|
+
text-align: center;
|
|
766
|
+
}
|
|
767
|
+
|
|
650
768
|
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/MinimizedHeader/MinimizedHeader.module.scss */
|
|
651
769
|
/* center a block element */
|
|
652
770
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
@@ -1289,88 +1407,6 @@
|
|
|
1289
1407
|
filter: brightness(0) invert(0.9);
|
|
1290
1408
|
}
|
|
1291
1409
|
|
|
1292
|
-
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.module.scss */
|
|
1293
|
-
/* center a block element */
|
|
1294
|
-
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1295
|
-
/* setting styles in separate formats for cross browser support */
|
|
1296
|
-
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
1297
|
-
/* vertically center alilgn any HTML element */
|
|
1298
|
-
/* add basePath to assets */
|
|
1299
|
-
.EmptyCart-module__emptyState___HtCXJ {
|
|
1300
|
-
display: flex;
|
|
1301
|
-
flex-direction: column;
|
|
1302
|
-
align-items: center;
|
|
1303
|
-
justify-content: center;
|
|
1304
|
-
flex: 1;
|
|
1305
|
-
padding: 32px 24px 24px;
|
|
1306
|
-
text-align: center;
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
.EmptyCart-module__emptyIcon___A7F8f {
|
|
1310
|
-
margin-bottom: 8px;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
.EmptyCart-module__emptyText___aX6Nu {
|
|
1314
|
-
font-size: 16px;
|
|
1315
|
-
line-height: 24px;
|
|
1316
|
-
font-weight: 700;
|
|
1317
|
-
color: #3d3935;
|
|
1318
|
-
margin: 0 0 44px;
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
.EmptyCart-module__emptySubText___P504H {
|
|
1322
|
-
font-size: 14px;
|
|
1323
|
-
line-height: 20px;
|
|
1324
|
-
color: #787472;
|
|
1325
|
-
margin: 0 0 8px;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
.EmptyCart-module__categoryLinks___J9tic {
|
|
1329
|
-
display: flex;
|
|
1330
|
-
gap: 12px;
|
|
1331
|
-
width: 100%;
|
|
1332
|
-
justify-content: center;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
.EmptyCart-module__categoryLink___YxsmA {
|
|
1336
|
-
display: flex;
|
|
1337
|
-
flex-direction: column;
|
|
1338
|
-
align-items: center;
|
|
1339
|
-
justify-content: center;
|
|
1340
|
-
gap: 6px;
|
|
1341
|
-
flex: 1;
|
|
1342
|
-
padding: 12px 8px;
|
|
1343
|
-
background-color: #ffffff;
|
|
1344
|
-
border: none;
|
|
1345
|
-
border-radius: 8px;
|
|
1346
|
-
text-decoration: none;
|
|
1347
|
-
color: #3d3935;
|
|
1348
|
-
font-size: 12px;
|
|
1349
|
-
line-height: 16px;
|
|
1350
|
-
font-weight: 500;
|
|
1351
|
-
text-align: center;
|
|
1352
|
-
transition: background-color 0.15s ease;
|
|
1353
|
-
}
|
|
1354
|
-
.EmptyCart-module__categoryLink___YxsmA:hover {
|
|
1355
|
-
background-color: #f8f8f8;
|
|
1356
|
-
text-decoration: none;
|
|
1357
|
-
color: #3d3935;
|
|
1358
|
-
}
|
|
1359
|
-
.EmptyCart-module__categoryLink___YxsmA:focus-visible {
|
|
1360
|
-
outline: 2px solid #e6003c;
|
|
1361
|
-
outline-offset: 2px;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
.EmptyCart-module__categoryLinkIcon___HjhbO {
|
|
1365
|
-
display: flex;
|
|
1366
|
-
align-items: center;
|
|
1367
|
-
justify-content: center;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
.EmptyCart-module__categoryLinkLabel___1dS9s {
|
|
1371
|
-
line-height: 1.3;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
1410
|
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/FalconHeader/BusinessCustomerLinkOut/BusinessCustomerLinkOut.module.scss */
|
|
1375
1411
|
/* center a block element */
|
|
1376
1412
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
@@ -1458,125 +1494,40 @@
|
|
|
1458
1494
|
background-color: #1f1f1f;
|
|
1459
1495
|
}
|
|
1460
1496
|
|
|
1461
|
-
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/
|
|
1497
|
+
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/SubNavigation/SubNavigation.module.scss */
|
|
1462
1498
|
/* center a block element */
|
|
1463
1499
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1464
1500
|
/* setting styles in separate formats for cross browser support */
|
|
1465
1501
|
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
1466
1502
|
/* vertically center alilgn any HTML element */
|
|
1467
1503
|
/* add basePath to assets */
|
|
1468
|
-
.
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1504
|
+
.SubNavigation-module__container___Wb5XN {
|
|
1505
|
+
background-color: #ffffff;
|
|
1506
|
+
color: #575452;
|
|
1507
|
+
border-radius: 0px 0px 8px 8px;
|
|
1508
|
+
margin: 0 auto;
|
|
1509
|
+
max-width: 1308px;
|
|
1510
|
+
min-height: 47px;
|
|
1511
|
+
-webkit-align-items: center;
|
|
1512
|
+
-moz-align-items: center;
|
|
1513
|
+
-o-align-items: center;
|
|
1474
1514
|
align-items: center;
|
|
1475
|
-
justify-content: center;
|
|
1476
|
-
padding: 24px;
|
|
1477
1515
|
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
padding: 24px;
|
|
1483
|
-
width: 100%;
|
|
1484
|
-
max-width: 320px;
|
|
1485
|
-
display: flex;
|
|
1486
|
-
flex-direction: column;
|
|
1487
|
-
gap: 24px;
|
|
1516
|
+
.SubNavigation-module__container___Wb5XN .SubNavigation-module__item___c32EK {
|
|
1517
|
+
font-size: 14px;
|
|
1518
|
+
line-height: 20px;
|
|
1519
|
+
font-weight: 700;
|
|
1488
1520
|
}
|
|
1489
|
-
|
|
1490
|
-
|
|
1521
|
+
.SubNavigation-module__container___Wb5XN .SubNavigation-module__item___c32EK a {
|
|
1522
|
+
margin-left: 0 !important;
|
|
1523
|
+
margin-top: 0 !important;
|
|
1491
1524
|
font-size: 18px;
|
|
1492
|
-
line-height:
|
|
1493
|
-
font-weight:
|
|
1494
|
-
|
|
1495
|
-
text-align: center;
|
|
1525
|
+
line-height: 24px;
|
|
1526
|
+
font-weight: 400;
|
|
1527
|
+
display: block !important;
|
|
1496
1528
|
}
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
display: flex;
|
|
1500
|
-
gap: 12px;
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
.CartClearConfirm-module__cancelButton___LYopb {
|
|
1504
|
-
flex: 1;
|
|
1505
|
-
height: 48px;
|
|
1506
|
-
background: none;
|
|
1507
|
-
border: 2px solid #3d3935;
|
|
1508
|
-
border-radius: 28px;
|
|
1509
|
-
font-size: 16px;
|
|
1510
|
-
line-height: 24px;
|
|
1511
|
-
font-weight: 600;
|
|
1512
|
-
color: #3d3935;
|
|
1513
|
-
cursor: pointer;
|
|
1514
|
-
transition: background-color 0.15s ease;
|
|
1515
|
-
}
|
|
1516
|
-
.CartClearConfirm-module__cancelButton___LYopb:hover {
|
|
1517
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
1518
|
-
}
|
|
1519
|
-
.CartClearConfirm-module__cancelButton___LYopb:focus-visible {
|
|
1520
|
-
outline: 2px solid #3d3935;
|
|
1521
|
-
outline-offset: 2px;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
.CartClearConfirm-module__confirmButton___KgPKy {
|
|
1525
|
-
flex: 1;
|
|
1526
|
-
height: 48px;
|
|
1527
|
-
background: #3d3935;
|
|
1528
|
-
border: 2px solid #3d3935;
|
|
1529
|
-
border-radius: 28px;
|
|
1530
|
-
font-size: 16px;
|
|
1531
|
-
line-height: 24px;
|
|
1532
|
-
font-weight: 600;
|
|
1533
|
-
color: #ffffff;
|
|
1534
|
-
cursor: pointer;
|
|
1535
|
-
transition: background-color 0.15s ease;
|
|
1536
|
-
}
|
|
1537
|
-
.CartClearConfirm-module__confirmButton___KgPKy:hover {
|
|
1538
|
-
background-color: #3d3935;
|
|
1539
|
-
border-color: #3d3935;
|
|
1540
|
-
}
|
|
1541
|
-
.CartClearConfirm-module__confirmButton___KgPKy:focus-visible {
|
|
1542
|
-
outline: 2px solid #3d3935;
|
|
1543
|
-
outline-offset: 2px;
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/SubNavigation/SubNavigation.module.scss */
|
|
1547
|
-
/* center a block element */
|
|
1548
|
-
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1549
|
-
/* setting styles in separate formats for cross browser support */
|
|
1550
|
-
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
1551
|
-
/* vertically center alilgn any HTML element */
|
|
1552
|
-
/* add basePath to assets */
|
|
1553
|
-
.SubNavigation-module__container___Wb5XN {
|
|
1554
|
-
background-color: #ffffff;
|
|
1555
|
-
color: #575452;
|
|
1556
|
-
border-radius: 0px 0px 8px 8px;
|
|
1557
|
-
margin: 0 auto;
|
|
1558
|
-
max-width: 1308px;
|
|
1559
|
-
min-height: 47px;
|
|
1560
|
-
-webkit-align-items: center;
|
|
1561
|
-
-moz-align-items: center;
|
|
1562
|
-
-o-align-items: center;
|
|
1563
|
-
align-items: center;
|
|
1564
|
-
}
|
|
1565
|
-
.SubNavigation-module__container___Wb5XN .SubNavigation-module__item___c32EK {
|
|
1566
|
-
font-size: 14px;
|
|
1567
|
-
line-height: 20px;
|
|
1568
|
-
font-weight: 700;
|
|
1569
|
-
}
|
|
1570
|
-
.SubNavigation-module__container___Wb5XN .SubNavigation-module__item___c32EK a {
|
|
1571
|
-
margin-left: 0 !important;
|
|
1572
|
-
margin-top: 0 !important;
|
|
1573
|
-
font-size: 18px;
|
|
1574
|
-
line-height: 24px;
|
|
1575
|
-
font-weight: 400;
|
|
1576
|
-
display: block !important;
|
|
1577
|
-
}
|
|
1578
|
-
.SubNavigation-module__container___Wb5XN .SubNavigation-module__item___c32EK:not(:last-child) {
|
|
1579
|
-
padding-bottom: 28px;
|
|
1529
|
+
.SubNavigation-module__container___Wb5XN .SubNavigation-module__item___c32EK:not(:last-child) {
|
|
1530
|
+
padding-bottom: 28px;
|
|
1580
1531
|
}
|
|
1581
1532
|
.SubNavigation-module__container___Wb5XN .SubNavigation-module__title-item___Ly5e7 {
|
|
1582
1533
|
font-size: 14px;
|
|
@@ -1771,170 +1722,219 @@
|
|
|
1771
1722
|
outline-offset: 2px;
|
|
1772
1723
|
}
|
|
1773
1724
|
|
|
1774
|
-
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/
|
|
1725
|
+
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.module.scss */
|
|
1775
1726
|
/* center a block element */
|
|
1776
1727
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1777
1728
|
/* setting styles in separate formats for cross browser support */
|
|
1778
1729
|
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
1779
1730
|
/* vertically center alilgn any HTML element */
|
|
1780
1731
|
/* add basePath to assets */
|
|
1781
|
-
.
|
|
1782
|
-
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
.cart-overlay-panel .offcanvas-header {
|
|
1786
|
-
height: 96px;
|
|
1787
|
-
padding: 20px 16px;
|
|
1788
|
-
gap: 24px;
|
|
1732
|
+
.CartHeader-module__headerTitle___35F6g {
|
|
1733
|
+
display: flex;
|
|
1789
1734
|
align-items: center;
|
|
1790
|
-
|
|
1791
|
-
border-bottom: 1px solid #e6e3df;
|
|
1735
|
+
gap: 8px;
|
|
1792
1736
|
}
|
|
1793
1737
|
|
|
1794
|
-
.
|
|
1795
|
-
display: flex;
|
|
1796
|
-
flex-direction: column;
|
|
1797
|
-
align-items: flex-start;
|
|
1798
|
-
gap: 2px;
|
|
1738
|
+
.CartHeader-module__headerItemCount___g1Ynd {
|
|
1799
1739
|
font-size: 24px;
|
|
1800
1740
|
line-height: 32px;
|
|
1801
|
-
font-weight:
|
|
1741
|
+
font-weight: 400;
|
|
1802
1742
|
color: #3d3935;
|
|
1803
1743
|
}
|
|
1804
1744
|
@media (max-width: 1023px) {
|
|
1805
|
-
.
|
|
1745
|
+
.CartHeader-module__headerItemCount___g1Ynd {
|
|
1806
1746
|
font-size: 20px;
|
|
1807
1747
|
line-height: 28px;
|
|
1808
1748
|
}
|
|
1809
1749
|
}
|
|
1810
1750
|
|
|
1811
|
-
.
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1751
|
+
.CartHeader-module__clearAllButton___B3bNF {
|
|
1752
|
+
display: inline;
|
|
1753
|
+
background: none;
|
|
1754
|
+
border: none;
|
|
1755
|
+
padding: 0;
|
|
1756
|
+
cursor: pointer;
|
|
1757
|
+
font-size: 14px;
|
|
1758
|
+
line-height: 20px;
|
|
1759
|
+
font-weight: 400;
|
|
1760
|
+
color: #da291c;
|
|
1761
|
+
text-decoration: underline;
|
|
1762
|
+
text-underline-offset: 2px;
|
|
1815
1763
|
}
|
|
1816
|
-
.
|
|
1817
|
-
|
|
1764
|
+
.CartHeader-module__clearAllButton___B3bNF:hover {
|
|
1765
|
+
color: #961c13;
|
|
1766
|
+
}
|
|
1767
|
+
.CartHeader-module__clearAllButton___B3bNF:focus-visible {
|
|
1768
|
+
outline: 2px solid #da291c;
|
|
1769
|
+
outline-offset: 2px;
|
|
1770
|
+
border-radius: 2px;
|
|
1818
1771
|
}
|
|
1819
1772
|
|
|
1820
|
-
.
|
|
1821
|
-
|
|
1822
|
-
|
|
1773
|
+
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.module.scss */
|
|
1774
|
+
/* center a block element */
|
|
1775
|
+
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1776
|
+
/* setting styles in separate formats for cross browser support */
|
|
1777
|
+
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
1778
|
+
/* vertically center alilgn any HTML element */
|
|
1779
|
+
/* add basePath to assets */
|
|
1780
|
+
.EmptyCart-module__emptyState___HtCXJ {
|
|
1823
1781
|
display: flex;
|
|
1824
1782
|
flex-direction: column;
|
|
1825
|
-
|
|
1783
|
+
align-items: center;
|
|
1784
|
+
justify-content: center;
|
|
1785
|
+
flex: 1;
|
|
1786
|
+
padding: 32px 24px 24px;
|
|
1787
|
+
text-align: center;
|
|
1826
1788
|
}
|
|
1827
1789
|
|
|
1828
|
-
.
|
|
1829
|
-
|
|
1830
|
-
width: 100% !important;
|
|
1831
|
-
overflow: hidden;
|
|
1790
|
+
.EmptyCart-module__emptyIcon___A7F8f {
|
|
1791
|
+
margin-bottom: 8px;
|
|
1832
1792
|
}
|
|
1833
1793
|
|
|
1834
|
-
.
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1794
|
+
.EmptyCart-module__emptyText___aX6Nu {
|
|
1795
|
+
font-size: 16px;
|
|
1796
|
+
line-height: 24px;
|
|
1797
|
+
font-weight: 700;
|
|
1798
|
+
color: #3d3935;
|
|
1799
|
+
margin: 0 0 44px;
|
|
1840
1800
|
}
|
|
1841
1801
|
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
opacity: 1;
|
|
1848
|
-
}
|
|
1802
|
+
.EmptyCart-module__emptySubText___P504H {
|
|
1803
|
+
font-size: 14px;
|
|
1804
|
+
line-height: 20px;
|
|
1805
|
+
color: #787472;
|
|
1806
|
+
margin: 0 0 8px;
|
|
1849
1807
|
}
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1808
|
+
|
|
1809
|
+
.EmptyCart-module__categoryLinks___J9tic {
|
|
1810
|
+
display: flex;
|
|
1811
|
+
gap: 12px;
|
|
1812
|
+
width: 100%;
|
|
1813
|
+
justify-content: center;
|
|
1854
1814
|
}
|
|
1855
1815
|
|
|
1856
|
-
.
|
|
1816
|
+
.EmptyCart-module__categoryLink___YxsmA {
|
|
1857
1817
|
display: flex;
|
|
1818
|
+
flex-direction: column;
|
|
1858
1819
|
align-items: center;
|
|
1859
1820
|
justify-content: center;
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
padding:
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
border:
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1821
|
+
gap: 6px;
|
|
1822
|
+
flex: 1;
|
|
1823
|
+
padding: 12px 8px;
|
|
1824
|
+
background-color: #ffffff;
|
|
1825
|
+
border: none;
|
|
1826
|
+
border-radius: 8px;
|
|
1827
|
+
text-decoration: none;
|
|
1828
|
+
color: #3d3935;
|
|
1829
|
+
font-size: 12px;
|
|
1830
|
+
line-height: 16px;
|
|
1831
|
+
font-weight: 500;
|
|
1871
1832
|
text-align: center;
|
|
1872
|
-
cursor: pointer;
|
|
1873
1833
|
transition: background-color 0.15s ease;
|
|
1874
1834
|
}
|
|
1875
|
-
.
|
|
1876
|
-
background-color:
|
|
1835
|
+
.EmptyCart-module__categoryLink___YxsmA:hover {
|
|
1836
|
+
background-color: #f8f8f8;
|
|
1837
|
+
text-decoration: none;
|
|
1838
|
+
color: #3d3935;
|
|
1877
1839
|
}
|
|
1878
|
-
.
|
|
1879
|
-
outline: 2px solid #
|
|
1840
|
+
.EmptyCart-module__categoryLink___YxsmA:focus-visible {
|
|
1841
|
+
outline: 2px solid #e6003c;
|
|
1880
1842
|
outline-offset: 2px;
|
|
1881
1843
|
}
|
|
1882
1844
|
|
|
1883
|
-
.
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
line-height: 28px;
|
|
1888
|
-
color: #3d3935;
|
|
1889
|
-
text-align: center;
|
|
1845
|
+
.EmptyCart-module__categoryLinkIcon___HjhbO {
|
|
1846
|
+
display: flex;
|
|
1847
|
+
align-items: center;
|
|
1848
|
+
justify-content: center;
|
|
1890
1849
|
}
|
|
1891
1850
|
|
|
1892
|
-
|
|
1851
|
+
.EmptyCart-module__categoryLinkLabel___1dS9s {
|
|
1852
|
+
line-height: 1.3;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.module.scss */
|
|
1893
1856
|
/* center a block element */
|
|
1894
1857
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1895
1858
|
/* setting styles in separate formats for cross browser support */
|
|
1896
1859
|
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
1897
1860
|
/* vertically center alilgn any HTML element */
|
|
1898
1861
|
/* add basePath to assets */
|
|
1899
|
-
.
|
|
1862
|
+
.CartClearConfirm-module__overlay___sxCOO {
|
|
1863
|
+
position: absolute;
|
|
1864
|
+
inset: 0;
|
|
1865
|
+
z-index: 10;
|
|
1866
|
+
background: rgba(0, 0, 0, 0.5);
|
|
1900
1867
|
display: flex;
|
|
1901
1868
|
align-items: center;
|
|
1902
|
-
|
|
1869
|
+
justify-content: center;
|
|
1870
|
+
padding: 24px;
|
|
1903
1871
|
}
|
|
1904
1872
|
|
|
1905
|
-
.
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1873
|
+
.CartClearConfirm-module__dialog___UWokE {
|
|
1874
|
+
background: #ffffff;
|
|
1875
|
+
border-radius: 16px;
|
|
1876
|
+
padding: 24px;
|
|
1877
|
+
width: 100%;
|
|
1878
|
+
max-width: 320px;
|
|
1879
|
+
display: flex;
|
|
1880
|
+
flex-direction: column;
|
|
1881
|
+
gap: 24px;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
.CartClearConfirm-module__message___vd9VO {
|
|
1885
|
+
font-size: 18px;
|
|
1886
|
+
line-height: 26px;
|
|
1887
|
+
font-weight: 700;
|
|
1909
1888
|
color: #3d3935;
|
|
1889
|
+
text-align: center;
|
|
1910
1890
|
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
}
|
|
1891
|
+
|
|
1892
|
+
.CartClearConfirm-module__actions___X0-0w {
|
|
1893
|
+
display: flex;
|
|
1894
|
+
gap: 12px;
|
|
1916
1895
|
}
|
|
1917
1896
|
|
|
1918
|
-
.
|
|
1919
|
-
|
|
1897
|
+
.CartClearConfirm-module__cancelButton___LYopb {
|
|
1898
|
+
flex: 1;
|
|
1899
|
+
height: 48px;
|
|
1920
1900
|
background: none;
|
|
1921
|
-
border:
|
|
1922
|
-
|
|
1901
|
+
border: 2px solid #3d3935;
|
|
1902
|
+
border-radius: 28px;
|
|
1903
|
+
font-size: 16px;
|
|
1904
|
+
line-height: 24px;
|
|
1905
|
+
font-weight: 600;
|
|
1906
|
+
color: #3d3935;
|
|
1923
1907
|
cursor: pointer;
|
|
1924
|
-
|
|
1925
|
-
line-height: 20px;
|
|
1926
|
-
font-weight: 400;
|
|
1927
|
-
color: #da291c;
|
|
1928
|
-
text-decoration: underline;
|
|
1929
|
-
text-underline-offset: 2px;
|
|
1908
|
+
transition: background-color 0.15s ease;
|
|
1930
1909
|
}
|
|
1931
|
-
.
|
|
1932
|
-
color:
|
|
1910
|
+
.CartClearConfirm-module__cancelButton___LYopb:hover {
|
|
1911
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
1933
1912
|
}
|
|
1934
|
-
.
|
|
1935
|
-
outline: 2px solid #
|
|
1913
|
+
.CartClearConfirm-module__cancelButton___LYopb:focus-visible {
|
|
1914
|
+
outline: 2px solid #3d3935;
|
|
1915
|
+
outline-offset: 2px;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
.CartClearConfirm-module__confirmButton___KgPKy {
|
|
1919
|
+
flex: 1;
|
|
1920
|
+
height: 48px;
|
|
1921
|
+
background: #3d3935;
|
|
1922
|
+
border: 2px solid #3d3935;
|
|
1923
|
+
border-radius: 28px;
|
|
1924
|
+
font-size: 16px;
|
|
1925
|
+
line-height: 24px;
|
|
1926
|
+
font-weight: 600;
|
|
1927
|
+
color: #ffffff;
|
|
1928
|
+
cursor: pointer;
|
|
1929
|
+
transition: background-color 0.15s ease;
|
|
1930
|
+
}
|
|
1931
|
+
.CartClearConfirm-module__confirmButton___KgPKy:hover {
|
|
1932
|
+
background-color: #3d3935;
|
|
1933
|
+
border-color: #3d3935;
|
|
1934
|
+
}
|
|
1935
|
+
.CartClearConfirm-module__confirmButton___KgPKy:focus-visible {
|
|
1936
|
+
outline: 2px solid #3d3935;
|
|
1936
1937
|
outline-offset: 2px;
|
|
1937
|
-
border-radius: 2px;
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
1940
1940
|
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/MobileNavigation/MobileSubNavigation/MobileSubNavigation.module.scss */
|