@sunrise-upc/sales-static-components 5.0.0 → 5.0.1

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.
@@ -53,6 +53,8 @@
53
53
  }
54
54
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
55
55
  margin-bottom: 20px;
56
+ padding-left: 10px;
57
+ padding-right: 10px;
56
58
  }
57
59
  @media (max-width: 767px) {
58
60
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
@@ -1,3 +1,3 @@
1
1
  require('./InternetAndTvCards.css');
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),l=require("swiper/react"),i=require("swiper/modules");require("swiper/css"),require("swiper/css/pagination");var t=require("./InternetAndTvCards.module.scss.js"),r=require("./InternetAndTvCardItem/InternetAndTvCardItem.js"),s=require("./InternetAndTvCardsArrows.js"),d=require("../ResponsiveRow/row.js"),a=require("../Spacer/spacer.js"),o=require("../FalconButton/falconButton.js"),c=require("../FalconDescription/FalconDescription.js"),u=require("../../utils/StyleUtils.js"),v=require("../Constants.js");const p=e=>"undefined"==typeof window?1:window.innerWidth>=1440?e:window.innerWidth>=1024?3:window.innerWidth>=768?2:1;exports.default=({content:h,metadata:j,renderPopupBlok:m})=>{var w,g,x,f,C,N,b,S,k,B;const q="2"===h.cardsInRow?2:"3"===h.cardsInRow?3:4,[P,O]=n.useState([]),[I,L]=n.useState(()=>p(q)),$=n.useRef(null),[E,R]=n.useState(!0),[T,y]=n.useState(!1);n.useEffect(()=>{const e=((null==h?void 0:h.Cards)||[]).filter(e=>!e.notToDisplay);O(e)},[null==h?void 0:h.Cards]);const A=P.length>I,F=A&&(!0===h.loopSlides||"true"===h.loopSlides);n.useEffect(()=>{const e=()=>L(p(q));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[q]);const G=e=>{R(e.isBeginning),y(e.isEnd)},V=()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.slidePrev()},_=()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.slideNext()},z="2"===h.cardsInRow&&2===h.Cards.length?v.COLLG4:"2"===h.cardsInRow&&h.Cards.length>2?v.COLLG6:"3"===h.cardsInRow?v.COLLG4:v.COLLG3,D=null===(g=null===(w=h.gradientBackgroundGlobal)||void 0===w?void 0:w.replace(/;\s*$/,""))||void 0===g?void 0:g.trim(),H=!!D&&D.toLowerCase()!==v.NONE,M=H?"":u.getFalconGradientClass(h.gradientBackground),W=!H&&h.gradientBackground!==v.NONE&&!!M,K=W?M:"",U=u.getFalconColorsClass(h.headlineColor),J=h.headlineColor&&h.headlineColor!==v.NONE?U:"",Q=h.headlineColor&&h.headlineColor===v.NONE?{color:null===(x=h.headlineColorPicker)||void 0===x?void 0:x.color}:{},X=n=>e.jsxs("div",{className:t.default["slider-wrapper"],children:[e.jsx(l.Swiper,{modules:[i.Pagination],className:`${t.default.swiper} ${A?t.default["has-controls"]:""}`.trim(),slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,centerInsufficientSlides:!0,loop:F,rewind:!1,allowTouchMove:A,grabCursor:!0,lazyPreload:!1,pagination:!!A&&{clickable:!0},breakpoints:{768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1440:{slidesPerView:q,spaceBetween:16}},onSwiper:e=>{$.current=e,G(e)},onSlideChange:G,onReachBeginning:G,onReachEnd:G,onFromEdge:G,children:n.map((n,i)=>e.jsx(l.SwiperSlide,{className:t.default.slide,children:e.jsx(r.default,{content:n,metadata:j,index:i,renderPopupBlok:m})},n._uid))}),A&&(F||!E)&&e.jsx(s.LeftArrow,{onClick:V}),A&&(F||!T)&&e.jsx(s.RightArrow,{onClick:_})]});return e.jsxs("div",{className:`${t.default.container} ${K}`,id:h.id||"",style:Object.assign({},H?{background:D}:W?{}:{backgroundColor:null===(f=h.backgroundColor)||void 0===f?void 0:f.color}),children:[(null===(C=null==h?void 0:h.topSpace)||void 0===C?void 0:C.length)>0&&e.jsx(a.default,{content:h.topSpace[0]}),e.jsx(d.default,{children:e.jsxs(e.Fragment,{children:[(h.overlineText||(null===(N=h.description)||void 0===N?void 0:N.length)>0||(null===(b=null==h?void 0:h.button)||void 0===b?void 0:b.length)>0||h.title)&&e.jsxs("div",{className:t.default["text-container"],children:[h.overlineText&&e.jsx("div",{className:t.default.overline,children:h.overlineText}),h.title&&h.headlineVariants===v.H1?e.jsxs("h1",{className:J,style:Object.assign({},Q),children:[h.title," "]}):h.headlineVariants===v.H2?e.jsx("h2",{className:J,style:Object.assign({},Q),children:h.title}):h.headlineVariants===v.H3?e.jsx("h3",{className:J,style:Object.assign({},Q),children:h.title}):e.jsx("h4",{className:J,style:Object.assign({},Q),children:h.title}),(null===(S=h.description)||void 0===S?void 0:S.length)>0&&e.jsx(c.default,{content:h.description[0]}),(null==h?void 0:h.button)&&(null===(k=null==h?void 0:h.button)||void 0===k?void 0:k.length)>0&&e.jsx("div",{className:t.default.btn,children:e.jsx(o.default,{content:h.button[0],eventAction:h.title,metadata:j,renderPopupBlok:m})})]}),h.isMobSlider&&h.variant===v.STACK?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`row ${t.default.cards} d-none d-sm-block`,children:P.map((n,l)=>e.jsx("div",{className:`${z} col-md-4 col-sm-6 ${t.default.card}`,children:e.jsx(r.default,{content:n,metadata:j,index:l,renderPopupBlok:m})},n._uid))}),e.jsx("div",{className:`d-block d-sm-none ${t.default.carousel}`,children:P.length>0&&X(P)})]}):h.variant===v.STACK?e.jsx("div",{className:`row ${t.default.cards}`,children:P.map((n,l)=>e.jsx("div",{className:`${z} col-md-4 col-sm-6 ${t.default.card}`,children:e.jsx(r.default,{content:n,metadata:j,index:l,renderPopupBlok:m})},n._uid))}):e.jsx("div",{className:t.default.carousel,children:P.length>0&&X(P)})]})}),(null===(B=null==h?void 0:h.bottomSpace)||void 0===B?void 0:B.length)>0&&e.jsx(a.default,{content:h.bottomSpace[0]})]})};
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),r=require("swiper/react"),t=require("swiper/modules");require("swiper/css"),require("swiper/css/pagination");var i=require("./InternetAndTvCards.module.scss.js"),l=require("./InternetAndTvCardItem/InternetAndTvCardItem.js"),s=require("./InternetAndTvCardsArrows.js"),d=require("../ResponsiveRow/row.js"),a=require("../Spacer/spacer.js"),o=require("../FalconButton/falconButton.js"),c=require("../FalconDescription/FalconDescription.js"),u=require("../../utils/StyleUtils.js"),v=require("../Constants.js");const p=e=>"undefined"==typeof window?1:window.innerWidth>=1440?e:window.innerWidth>=1024?3:window.innerWidth>=768?2:1;exports.default=({content:h,metadata:j,renderPopupBlok:m})=>{var w,g,x,f,C,N,b,S,k,B;const P="2"===h.cardsInRow?2:"3"===h.cardsInRow?3:4,[q,O]=n.useState([]),[$,I]=n.useState(()=>p(P)),L=n.useRef(null),[E,R]=n.useState(!0),[T,y]=n.useState(!1);n.useEffect(()=>{const e=((null==h?void 0:h.Cards)||[]).filter(e=>!e.notToDisplay);O(e)},[null==h?void 0:h.Cards]);const A=q.length>$,F=A&&(!0===h.loopSlides||"true"===h.loopSlides);n.useEffect(()=>{const e=()=>I(p(P));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[P]);const G=e=>{R(e.isBeginning),y(e.isEnd)},V=()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.slidePrev()},_=()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.slideNext()},z="2"===h.cardsInRow&&2===h.Cards.length?v.COLLG4:"2"===h.cardsInRow&&h.Cards.length>2?v.COLLG6:"3"===h.cardsInRow?v.COLLG4:v.COLLG3,D=null===(g=null===(w=h.gradientBackgroundGlobal)||void 0===w?void 0:w.replace(/;\s*$/,""))||void 0===g?void 0:g.trim(),H=!!D&&D.toLowerCase()!==v.NONE,M=H?"":u.getFalconGradientClass(h.gradientBackground),W=!H&&h.gradientBackground!==v.NONE&&!!M,K=W?M:"",U=u.getFalconColorsClass(h.headlineColor),J=h.headlineColor&&h.headlineColor!==v.NONE?U:"",Q=h.headlineColor&&h.headlineColor===v.NONE?{color:null===(x=h.headlineColorPicker)||void 0===x?void 0:x.color}:{},X=n=>e.jsxs("div",{className:i.default["slider-wrapper"],children:[e.jsx(r.Swiper,{modules:[t.Pagination],className:`${i.default.swiper} ${A?i.default["has-controls"]:""}`.trim(),slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,centerInsufficientSlides:!0,loop:F,rewind:!1,allowTouchMove:A,grabCursor:!0,lazyPreload:!1,observer:!0,observeParents:!0,pagination:!!A&&{clickable:!0},breakpoints:{768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1440:{slidesPerView:P,spaceBetween:16}},onSwiper:e=>{L.current=e,G(e)},onSlideChange:G,onReachBeginning:G,onReachEnd:G,onFromEdge:G,children:n.map((n,t)=>e.jsx(r.SwiperSlide,{className:i.default.slide,children:e.jsx(l.default,{content:n,metadata:j,index:t,renderPopupBlok:m})},n._uid))},`internet-tv-cards-${$}`),A&&(F||!E)&&e.jsx(s.LeftArrow,{onClick:V}),A&&(F||!T)&&e.jsx(s.RightArrow,{onClick:_})]});return e.jsxs("div",{className:`${i.default.container} ${K}`,id:h.id||"",style:Object.assign({},H?{background:D}:W?{}:{backgroundColor:null===(f=h.backgroundColor)||void 0===f?void 0:f.color}),children:[(null===(C=null==h?void 0:h.topSpace)||void 0===C?void 0:C.length)>0&&e.jsx(a.default,{content:h.topSpace[0]}),e.jsx(d.default,{children:e.jsxs(e.Fragment,{children:[(h.overlineText||(null===(N=h.description)||void 0===N?void 0:N.length)>0||(null===(b=null==h?void 0:h.button)||void 0===b?void 0:b.length)>0||h.title)&&e.jsxs("div",{className:i.default["text-container"],children:[h.overlineText&&e.jsx("div",{className:i.default.overline,children:h.overlineText}),h.title&&h.headlineVariants===v.H1?e.jsxs("h1",{className:J,style:Object.assign({},Q),children:[h.title," "]}):h.headlineVariants===v.H2?e.jsx("h2",{className:J,style:Object.assign({},Q),children:h.title}):h.headlineVariants===v.H3?e.jsx("h3",{className:J,style:Object.assign({},Q),children:h.title}):e.jsx("h4",{className:J,style:Object.assign({},Q),children:h.title}),(null===(S=h.description)||void 0===S?void 0:S.length)>0&&e.jsx(c.default,{content:h.description[0]}),(null==h?void 0:h.button)&&(null===(k=null==h?void 0:h.button)||void 0===k?void 0:k.length)>0&&e.jsx("div",{className:i.default.btn,children:e.jsx(o.default,{content:h.button[0],eventAction:h.title,metadata:j,renderPopupBlok:m})})]}),h.isMobSlider&&h.variant===v.STACK?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`row ${i.default.cards} d-none d-sm-block`,children:q.map((n,r)=>e.jsx("div",{className:`${z} col-md-4 col-sm-6 ${i.default.card}`,children:e.jsx(l.default,{content:n,metadata:j,index:r,renderPopupBlok:m})},n._uid))}),e.jsx("div",{className:`d-block d-sm-none ${i.default.carousel}`,children:q.length>0&&X(q)})]}):h.variant===v.STACK?e.jsx("div",{className:`row ${i.default.cards}`,children:q.map((n,r)=>e.jsx("div",{className:`${z} col-md-4 col-sm-6 ${i.default.card}`,children:e.jsx(l.default,{content:n,metadata:j,index:r,renderPopupBlok:m})},n._uid))}):e.jsx("div",{className:i.default.carousel,children:q.length>0&&X(q)})]})}),(null===(B=null==h?void 0:h.bottomSpace)||void 0===B?void 0:B.length)>0&&e.jsx(a.default,{content:h.bottomSpace[0]})]})};
3
3
  //# sourceMappingURL=InternetAndTvCards.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternetAndTvCards.js","sources":["../../../../../src/components/InternetAndTvCards/InternetAndTvCards.tsx"],"sourcesContent":[null],"names":["getSlidesPerView","largeDesktopSlides","window","innerWidth","content","metadata","renderPopupBlok","numberOfCardsInrow","cardsInRow","cardItems","setCardItems","useState","slidesPerView","setSlidesPerView","swiperRef","useRef","isBeginning","setIsBeginning","isEnd","setIsEnd","useEffect","visibleCards","Cards","filter","card","notToDisplay","hasOverflow","length","shouldLoop","loopSlides","handleResize","addEventListener","removeEventListener","updateNavigationState","swiper","slidePrevious","_a","current","slidePrev","slideNext","cols","COLLG4","COLLG6","COLLG3","normalizedGlobalGradient","_b","gradientBackgroundGlobal","replace","trim","hasGlobalGradient","toLowerCase","NONE","gradientStyle","getFalconGradientClass","gradientBackground","hasGradientStyle","backgroundClass","headlineStyle","getFalconColorsClass","headlineColor","titleClassname","titleColor","color","_c","headlineColorPicker","renderCarousel","items","_jsxs","className","Styles","children","_jsx","Swiper","modules","Pagination","slidesPerGroup","spaceBetween","centerInsufficientSlides","loop","rewind","allowTouchMove","grabCursor","lazyPreload","pagination","clickable","breakpoints","onSwiper","onSlideChange","onReachBeginning","onReachEnd","onFromEdge","map","index","SwiperSlide","InternetAndTvCardItem","_uid","LeftArrow","onClick","RightArrow","id","style","Object","assign","background","backgroundColor","_d","topSpace","Spacer","Row","overlineText","description","_f","_g","button","title","headlineVariants","H1","H2","H3","_h","FalconDescription","_j","FalconButton","eventAction","isMobSlider","variant","STACK","_k","bottomSpace"],"mappings":"mnBAuDA,MAAMA,EAAoBC,GACF,oBAAXC,OAA+B,EACtCA,OAAOC,YAAc,KAAaF,EAClCC,OAAOC,YAAc,KAAa,EAClCD,OAAOC,YAAc,IAAY,EAC9B,kBAGkB,EAAGC,UAASC,WAAUC,8CAC/C,MAAMC,EAA4C,MAAvBH,EAAQI,WAAqB,EAA2B,MAAvBJ,EAAQI,WAAqB,EAAI,GACtFC,EAAWC,GAAgBC,EAAAA,SAAwC,KACnEC,EAAeC,GAAoBF,EAAAA,SAAS,IAAMX,EAAiBO,IACpEO,EAAYC,EAAAA,OAAY,OACvBC,EAAaC,GAAkBN,EAAAA,UAAS,IACxCO,EAAOC,GAAYR,EAAAA,UAAS,GAEnCS,EAAAA,UAAU,KACR,MAAMC,IAAgBjB,aAAO,EAAPA,EAASkB,QAAS,IAAIC,OAAQC,IAAUA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G7D,EAAUkB,OAAS,GAAKsC,EAAexD,mBAIjFsH,EAAA3H,aAAO,EAAPA,EAAS4H,kCAAarG,QAAS,GAAK4C,EAAAA,IAACoC,EAAAA,SAAOvG,QAASA,EAAQ4H,YAAY"}
1
+ {"version":3,"file":"InternetAndTvCards.js","sources":["../../../../../src/components/InternetAndTvCards/InternetAndTvCards.tsx"],"sourcesContent":[null],"names":["getSlidesPerView","largeDesktopSlides","window","innerWidth","content","metadata","renderPopupBlok","numberOfCardsInrow","cardsInRow","cardItems","setCardItems","useState","slidesPerView","setSlidesPerView","swiperRef","useRef","isBeginning","setIsBeginning","isEnd","setIsEnd","useEffect","visibleCards","Cards","filter","card","notToDisplay","hasOverflow","length","shouldLoop","loopSlides","handleResize","addEventListener","removeEventListener","updateNavigationState","swiper","slidePrevious","_a","current","slidePrev","slideNext","cols","COLLG4","COLLG6","COLLG3","normalizedGlobalGradient","_b","gradientBackgroundGlobal","replace","trim","hasGlobalGradient","toLowerCase","NONE","gradientStyle","getFalconGradientClass","gradientBackground","hasGradientStyle","backgroundClass","headlineStyle","getFalconColorsClass","headlineColor","titleClassname","titleColor","color","_c","headlineColorPicker","renderCarousel","items","_jsxs","className","Styles","children","_jsx","Swiper","modules","Pagination","slidesPerGroup","spaceBetween","centerInsufficientSlides","loop","rewind","allowTouchMove","grabCursor","lazyPreload","observer","observeParents","pagination","clickable","breakpoints","onSwiper","onSlideChange","onReachBeginning","onReachEnd","onFromEdge","map","index","SwiperSlide","InternetAndTvCardItem","_uid","LeftArrow","onClick","RightArrow","id","style","Object","assign","background","backgroundColor","_d","topSpace","Spacer","Row","overlineText","description","_f","_g","button","title","headlineVariants","H1","H2","H3","_h","FalconDescription","_j","FalconButton","eventAction","isMobSlider","variant","STACK","_k","bottomSpace"],"mappings":"mnBAuDA,MAAMA,EAAoBC,GACF,oBAAXC,OAA+B,EACtCA,OAAOC,YAAc,KAAaF,EAClCC,OAAOC,YAAc,KAAa,EAClCD,OAAOC,YAAc,IAAY,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AKH,UAAW,qBAAqBC,EAAAA,QAAiB,WAAGC,SACtD7D,EAAUkB,OAAS,GAAKsC,EAAexD,QAG1CL,EAAQ2H,UAAYC,EAAAA,MACtBzD,EAAAA,WAAKH,UAAW,OAAOC,EAAAA,QAAc,QAAGC,SACrC7D,EAAUoF,IAAI,CAACrE,EAAmCsE,IACjDvB,EAAAA,IAAA,MAAA,CAAqBH,UAAW,GAAG5B,uBAA0B6B,EAAAA,QAAa,OAAGC,SAC3EC,MAACyB,EAAAA,QAAqB,CACpB5F,QAASoB,EACTnB,SAAUA,EACVyF,MAAOA,EACPxF,gBAAiBA,KALXkB,EAAKyE,SAWnB1B,EAAAA,IAAA,MAAA,CAAKH,UAAWC,EAAAA,QAAiB,SAACC,SAAG7D,EAAUkB,OAAS,GAAKsC,EAAexD,mBAIjFwH,EAAA7H,aAAO,EAAPA,EAAS8H,kCAAavG,QAAS,GAAK4C,EAAAA,IAACsC,EAAAA,SAAOzG,QAASA,EAAQ8H,YAAY"}
@@ -53,6 +53,8 @@
53
53
  }
54
54
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
55
55
  margin-bottom: 20px;
56
+ padding-left: 10px;
57
+ padding-right: 10px;
56
58
  }
57
59
  @media (max-width: 767px) {
58
60
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
@@ -53,6 +53,8 @@
53
53
  }
54
54
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
55
55
  margin-bottom: 20px;
56
+ padding-left: 10px;
57
+ padding-right: 10px;
56
58
  }
57
59
  @media (max-width: 767px) {
58
60
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
@@ -53,6 +53,8 @@
53
53
  }
54
54
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
55
55
  margin-bottom: 20px;
56
+ padding-left: 10px;
57
+ padding-right: 10px;
56
58
  }
57
59
  @media (max-width: 767px) {
58
60
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
@@ -1,3 +1,3 @@
1
1
  import './InternetAndTvCards.css';
2
- import{jsxs as e,jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as r,useEffect as l}from"react";import{Swiper as t,SwiperSlide as d}from"swiper/react";import{Pagination as s}from"swiper/modules";import"swiper/css";import"swiper/css/pagination";import a from"./InternetAndTvCards.module.scss.js";import c from"./InternetAndTvCardItem/InternetAndTvCardItem.js";import{LeftArrow as m,RightArrow as p}from"./InternetAndTvCardsArrows.js";import u from"../ResponsiveRow/row.js";import v from"../Spacer/spacer.js";import h from"../FalconButton/falconButton.js";import w from"../FalconDescription/FalconDescription.js";import{getFalconGradientClass as g,getFalconColorsClass as b}from"../../utils/StyleUtils.js";import{COLLG4 as C,COLLG6 as f,COLLG3 as k,NONE as N,H1 as B,H2 as j,H3 as P,STACK as I}from"../Constants.js";const S=e=>"undefined"==typeof window?1:window.innerWidth>=1440?e:window.innerWidth>=1024?3:window.innerWidth>=768?2:1,$=({content:$,metadata:x,renderPopupBlok:y})=>{var R,T,V,A,E,O,F,z,D,L;const W="2"===$.cardsInRow?2:"3"===$.cardsInRow?3:4,[_,G]=i([]),[M,U]=i(()=>S(W)),q=r(null),[H,J]=i(!0),[K,Q]=i(!1);l(()=>{const e=((null==$?void 0:$.Cards)||[]).filter(e=>!e.notToDisplay);G(e)},[null==$?void 0:$.Cards]);const X=_.length>M,Y=X&&(!0===$.loopSlides||"true"===$.loopSlides);l(()=>{const e=()=>U(S(W));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[W]);const Z=e=>{J(e.isBeginning),Q(e.isEnd)},ee=()=>{var e;return null===(e=q.current)||void 0===e?void 0:e.slidePrev()},ne=()=>{var e;return null===(e=q.current)||void 0===e?void 0:e.slideNext()},oe="2"===$.cardsInRow&&2===$.Cards.length?C:"2"===$.cardsInRow&&$.Cards.length>2?f:"3"===$.cardsInRow?C:k,ie=null===(T=null===(R=$.gradientBackgroundGlobal)||void 0===R?void 0:R.replace(/;\s*$/,""))||void 0===T?void 0:T.trim(),re=!!ie&&ie.toLowerCase()!==N,le=re?"":g($.gradientBackground),te=!re&&$.gradientBackground!==N&&!!le,de=te?le:"",se=b($.headlineColor),ae=$.headlineColor&&$.headlineColor!==N?se:"",ce=$.headlineColor&&$.headlineColor===N?{color:null===(V=$.headlineColorPicker)||void 0===V?void 0:V.color}:{},me=o=>e("div",{className:a["slider-wrapper"],children:[n(t,{modules:[s],className:`${a.swiper} ${X?a["has-controls"]:""}`.trim(),slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,centerInsufficientSlides:!0,loop:Y,rewind:!1,allowTouchMove:X,grabCursor:!0,lazyPreload:!1,pagination:!!X&&{clickable:!0},breakpoints:{768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1440:{slidesPerView:W,spaceBetween:16}},onSwiper:e=>{q.current=e,Z(e)},onSlideChange:Z,onReachBeginning:Z,onReachEnd:Z,onFromEdge:Z,children:o.map((e,o)=>n(d,{className:a.slide,children:n(c,{content:e,metadata:x,index:o,renderPopupBlok:y})},e._uid))}),X&&(Y||!H)&&n(m,{onClick:ee}),X&&(Y||!K)&&n(p,{onClick:ne})]});return e("div",{className:`${a.container} ${de}`,id:$.id||"",style:Object.assign({},re?{background:ie}:te?{}:{backgroundColor:null===(A=$.backgroundColor)||void 0===A?void 0:A.color}),children:[(null===(E=null==$?void 0:$.topSpace)||void 0===E?void 0:E.length)>0&&n(v,{content:$.topSpace[0]}),n(u,{children:e(o,{children:[($.overlineText||(null===(O=$.description)||void 0===O?void 0:O.length)>0||(null===(F=null==$?void 0:$.button)||void 0===F?void 0:F.length)>0||$.title)&&e("div",{className:a["text-container"],children:[$.overlineText&&n("div",{className:a.overline,children:$.overlineText}),$.title&&$.headlineVariants===B?e("h1",{className:ae,style:Object.assign({},ce),children:[$.title," "]}):$.headlineVariants===j?n("h2",{className:ae,style:Object.assign({},ce),children:$.title}):$.headlineVariants===P?n("h3",{className:ae,style:Object.assign({},ce),children:$.title}):n("h4",{className:ae,style:Object.assign({},ce),children:$.title}),(null===(z=$.description)||void 0===z?void 0:z.length)>0&&n(w,{content:$.description[0]}),(null==$?void 0:$.button)&&(null===(D=null==$?void 0:$.button)||void 0===D?void 0:D.length)>0&&n("div",{className:a.btn,children:n(h,{content:$.button[0],eventAction:$.title,metadata:x,renderPopupBlok:y})})]}),$.isMobSlider&&$.variant===I?e(o,{children:[n("div",{className:`row ${a.cards} d-none d-sm-block`,children:_.map((e,o)=>n("div",{className:`${oe} col-md-4 col-sm-6 ${a.card}`,children:n(c,{content:e,metadata:x,index:o,renderPopupBlok:y})},e._uid))}),n("div",{className:`d-block d-sm-none ${a.carousel}`,children:_.length>0&&me(_)})]}):$.variant===I?n("div",{className:`row ${a.cards}`,children:_.map((e,o)=>n("div",{className:`${oe} col-md-4 col-sm-6 ${a.card}`,children:n(c,{content:e,metadata:x,index:o,renderPopupBlok:y})},e._uid))}):n("div",{className:a.carousel,children:_.length>0&&me(_)})]})}),(null===(L=null==$?void 0:$.bottomSpace)||void 0===L?void 0:L.length)>0&&n(v,{content:$.bottomSpace[0]})]})};export{$ as default};
2
+ import{jsxs as e,jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as r,useEffect as t}from"react";import{Swiper as l,SwiperSlide as d}from"swiper/react";import{Pagination as s}from"swiper/modules";import"swiper/css";import"swiper/css/pagination";import a from"./InternetAndTvCards.module.scss.js";import c from"./InternetAndTvCardItem/InternetAndTvCardItem.js";import{LeftArrow as m,RightArrow as p}from"./InternetAndTvCardsArrows.js";import v from"../ResponsiveRow/row.js";import u from"../Spacer/spacer.js";import h from"../FalconButton/falconButton.js";import w from"../FalconDescription/FalconDescription.js";import{getFalconGradientClass as g,getFalconColorsClass as b}from"../../utils/StyleUtils.js";import{COLLG4 as C,COLLG6 as f,COLLG3 as k,NONE as N,H1 as B,H2 as j,H3 as P,STACK as $}from"../Constants.js";const I=e=>"undefined"==typeof window?1:window.innerWidth>=1440?e:window.innerWidth>=1024?3:window.innerWidth>=768?2:1,S=({content:S,metadata:x,renderPopupBlok:y})=>{var R,T,V,A,E,O,F,z,D,L;const W="2"===S.cardsInRow?2:"3"===S.cardsInRow?3:4,[_,G]=i([]),[M,U]=i(()=>I(W)),q=r(null),[H,J]=i(!0),[K,Q]=i(!1);t(()=>{const e=((null==S?void 0:S.Cards)||[]).filter(e=>!e.notToDisplay);G(e)},[null==S?void 0:S.Cards]);const X=_.length>M,Y=X&&(!0===S.loopSlides||"true"===S.loopSlides);t(()=>{const e=()=>U(I(W));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[W]);const Z=e=>{J(e.isBeginning),Q(e.isEnd)},ee=()=>{var e;return null===(e=q.current)||void 0===e?void 0:e.slidePrev()},ne=()=>{var e;return null===(e=q.current)||void 0===e?void 0:e.slideNext()},oe="2"===S.cardsInRow&&2===S.Cards.length?C:"2"===S.cardsInRow&&S.Cards.length>2?f:"3"===S.cardsInRow?C:k,ie=null===(T=null===(R=S.gradientBackgroundGlobal)||void 0===R?void 0:R.replace(/;\s*$/,""))||void 0===T?void 0:T.trim(),re=!!ie&&ie.toLowerCase()!==N,te=re?"":g(S.gradientBackground),le=!re&&S.gradientBackground!==N&&!!te,de=le?te:"",se=b(S.headlineColor),ae=S.headlineColor&&S.headlineColor!==N?se:"",ce=S.headlineColor&&S.headlineColor===N?{color:null===(V=S.headlineColorPicker)||void 0===V?void 0:V.color}:{},me=o=>e("div",{className:a["slider-wrapper"],children:[n(l,{modules:[s],className:`${a.swiper} ${X?a["has-controls"]:""}`.trim(),slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,centerInsufficientSlides:!0,loop:Y,rewind:!1,allowTouchMove:X,grabCursor:!0,lazyPreload:!1,observer:!0,observeParents:!0,pagination:!!X&&{clickable:!0},breakpoints:{768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1440:{slidesPerView:W,spaceBetween:16}},onSwiper:e=>{q.current=e,Z(e)},onSlideChange:Z,onReachBeginning:Z,onReachEnd:Z,onFromEdge:Z,children:o.map((e,o)=>n(d,{className:a.slide,children:n(c,{content:e,metadata:x,index:o,renderPopupBlok:y})},e._uid))},`internet-tv-cards-${M}`),X&&(Y||!H)&&n(m,{onClick:ee}),X&&(Y||!K)&&n(p,{onClick:ne})]});return e("div",{className:`${a.container} ${de}`,id:S.id||"",style:Object.assign({},re?{background:ie}:le?{}:{backgroundColor:null===(A=S.backgroundColor)||void 0===A?void 0:A.color}),children:[(null===(E=null==S?void 0:S.topSpace)||void 0===E?void 0:E.length)>0&&n(u,{content:S.topSpace[0]}),n(v,{children:e(o,{children:[(S.overlineText||(null===(O=S.description)||void 0===O?void 0:O.length)>0||(null===(F=null==S?void 0:S.button)||void 0===F?void 0:F.length)>0||S.title)&&e("div",{className:a["text-container"],children:[S.overlineText&&n("div",{className:a.overline,children:S.overlineText}),S.title&&S.headlineVariants===B?e("h1",{className:ae,style:Object.assign({},ce),children:[S.title," "]}):S.headlineVariants===j?n("h2",{className:ae,style:Object.assign({},ce),children:S.title}):S.headlineVariants===P?n("h3",{className:ae,style:Object.assign({},ce),children:S.title}):n("h4",{className:ae,style:Object.assign({},ce),children:S.title}),(null===(z=S.description)||void 0===z?void 0:z.length)>0&&n(w,{content:S.description[0]}),(null==S?void 0:S.button)&&(null===(D=null==S?void 0:S.button)||void 0===D?void 0:D.length)>0&&n("div",{className:a.btn,children:n(h,{content:S.button[0],eventAction:S.title,metadata:x,renderPopupBlok:y})})]}),S.isMobSlider&&S.variant===$?e(o,{children:[n("div",{className:`row ${a.cards} d-none d-sm-block`,children:_.map((e,o)=>n("div",{className:`${oe} col-md-4 col-sm-6 ${a.card}`,children:n(c,{content:e,metadata:x,index:o,renderPopupBlok:y})},e._uid))}),n("div",{className:`d-block d-sm-none ${a.carousel}`,children:_.length>0&&me(_)})]}):S.variant===$?n("div",{className:`row ${a.cards}`,children:_.map((e,o)=>n("div",{className:`${oe} col-md-4 col-sm-6 ${a.card}`,children:n(c,{content:e,metadata:x,index:o,renderPopupBlok:y})},e._uid))}):n("div",{className:a.carousel,children:_.length>0&&me(_)})]})}),(null===(L=null==S?void 0:S.bottomSpace)||void 0===L?void 0:L.length)>0&&n(u,{content:S.bottomSpace[0]})]})};export{S as default};
3
3
  //# sourceMappingURL=InternetAndTvCards.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternetAndTvCards.js","sources":["../../../../../src/components/InternetAndTvCards/InternetAndTvCards.tsx"],"sourcesContent":[null],"names":["getSlidesPerView","largeDesktopSlides","window","innerWidth","InternetAndTvCards","content","metadata","renderPopupBlok","numberOfCardsInrow","cardsInRow","cardItems","setCardItems","useState","slidesPerView","setSlidesPerView","swiperRef","useRef","isBeginning","setIsBeginning","isEnd","setIsEnd","useEffect","visibleCards","Cards","filter","card","notToDisplay","hasOverflow","length","shouldLoop","loopSlides","handleResize","addEventListener","removeEventListener","updateNavigationState","swiper","slidePrevious","_a","current","slidePrev","slideNext","cols","COLLG4","COLLG6","COLLG3","normalizedGlobalGradient","_b","gradientBackgroundGlobal","replace","trim","hasGlobalGradient","toLowerCase","NONE","gradientStyle","getFalconGradientClass","gradientBackground","hasGradientStyle","backgroundClass","headlineStyle","getFalconColorsClass","headlineColor","titleClassname","titleColor","color","_c","headlineColorPicker","renderCarousel","items","_jsxs","className","Styles","children","_jsx","Swiper","modules","Pagination","slidesPerGroup","spaceBetween","centerInsufficientSlides","loop","rewind","allowTouchMove","grabCursor","lazyPreload","pagination","clickable","breakpoints","onSwiper","onSlideChange","onReachBeginning","onReachEnd","onFromEdge","map","index","SwiperSlide","InternetAndTvCardItem","_uid","LeftArrow","onClick","RightArrow","id","style","Object","assign","background","backgroundColor","_d","topSpace","Spacer","Row","overlineText","description","_f","_g","button","title","headlineVariants","H1","H2","H3","_h","FalconDescription","_j","FalconButton","eventAction","isMobSlider","variant","STACK","_k","bottomSpace"],"mappings":"00BAuDA,MAAMA,EAAoBC,GACF,oBAAXC,OAA+B,EACtCA,OAAOC,YAAc,KAAaF,EAClCC,OAAOC,YAAc,KAAa,EAClCD,OAAOC,YAAc,IAAY,EAC9B,EAGHC,EAAqB,EAAGC,UAASC,WAAUC,8CAC/C,MAAMC,EAA4C,MAAvBH,EAAQI,WAAqB,EAA2B,MAAvBJ,EAAQI,WAAqB,EAAI,GACtFC,EAAWC,GAAgBC,EAAwC,KACnEC,EAAeC,GAAoBF,EAAS,IAAMZ,EAAiBQ,IACpEO,EAAYC,EAAY,OACvBC,EAAaC,GAAkBN,GAAS,IACxCO,EAAOC,GAAYR,GAAS,GAEnCS,EAAU,KACR,MAAMC,IAAgBjB,aAAO,EAAPA,EAASkB,QAAS,IAAIC,OAAQC,IAAUA,EAAKC,cACnEf,EAAaW,IACZ,CAACjB,aAAO,EAAPA,EAASkB,QAEb,MAAMI,EAAcjB,EAAUkB,OAASf,EACjCgB,EAAaF,KAAuC,IAAvBtB,EAAQyB,YAA8C,SAAvBzB,EAAQyB,YAE1ET,EAAU,KACR,MAAMU,EAAe,IAAMjB,EAAiBd,EAAiBQ,IAE7D,OADAN,OAAO8B,iBAAiB,SAAUD,GAC3B,IAAM7B,OAAO+B,oBAAoB,SAAUF,IACjD,CAACvB,IAEJ,MAAM0B,EAAyBC,IAC7BjB,EAAeiB,EAAOlB,aACtBG,EAASe,EAAOhB,QAGZiB,GAAgB,WAAM,OAAiB,QAAjBC,EAAAtB,EAAUuB,eAAO,IAAAD,OAAA,EAAAA,EAAEE,aACzCC,GAAY,WAAM,OAAiB,QAAjBH,EAAAtB,EAAUuB,eAAO,IAAAD,OAAA,EAAAA,EAAEG,aAErCC,GACmB,MAAvBpC,EAAQI,YAA+C,IAAzBJ,EAA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GAAG5B,wBAA0B6B,EAAa,OAAGC,SAC3EC,EAACuB,EAAqB,CACpB1F,QAASoB,EACTnB,SAAUA,EACVuF,MAAOA,EACPtF,gBAAiBA,KALXkB,EAAKuE,SAWnBxB,EAAA,MAAA,CAAKH,UAAWC,EAAiB,SAACC,SAAG7D,EAAUkB,OAAS,GAAKsC,GAAexD,mBAIjFsH,EAAA3H,aAAO,EAAPA,EAAS4H,kCAAarG,QAAS,GAAK4C,EAACoC,GAAOvG,QAASA,EAAQ4H,YAAY"}
1
+ {"version":3,"file":"InternetAndTvCards.js","sources":["../../../../../src/components/InternetAndTvCards/InternetAndTvCards.tsx"],"sourcesContent":[null],"names":["getSlidesPerView","largeDesktopSlides","window","innerWidth","InternetAndTvCards","content","metadata","renderPopupBlok","numberOfCardsInrow","cardsInRow","cardItems","setCardItems","useState","slidesPerView","setSlidesPerView","swiperRef","useRef","isBeginning","setIsBeginning","isEnd","setIsEnd","useEffect","visibleCards","Cards","filter","card","notToDisplay","hasOverflow","length","shouldLoop","loopSlides","handleResize","addEventListener","removeEventListener","updateNavigationState","swiper","slidePrevious","_a","current","slidePrev","slideNext","cols","COLLG4","COLLG6","COLLG3","normalizedGlobalGradient","_b","gradientBackgroundGlobal","replace","trim","hasGlobalGradient","toLowerCase","NONE","gradientStyle","getFalconGradientClass","gradientBackground","hasGradientStyle","backgroundClass","headlineStyle","getFalconColorsClass","headlineColor","titleClassname","titleColor","color","_c","headlineColorPicker","renderCarousel","items","_jsxs","className","Styles","children","_jsx","Swiper","modules","Pagination","slidesPerGroup","spaceBetween","centerInsufficientSlides","loop","rewind","allowTouchMove","grabCursor","lazyPreload","observer","observeParents","pagination","clickable","breakpoints","onSwiper","onSlideChange","onReachBeginning","onReachEnd","onFromEdge","map","index","SwiperSlide","InternetAndTvCardItem","_uid","LeftArrow","onClick","RightArrow","id","style","Object","assign","background","backgroundColor","_d","topSpace","Spacer","Row","overlineText","description","_f","_g","button","title","headlineVariants","H1","H2","H3","_h","FalconDesc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C,SAC3EC,EAACyB,EAAqB,CACpB5F,QAASoB,EACTnB,SAAUA,EACVyF,MAAOA,EACPxF,gBAAiBA,KALXkB,EAAKyE,SAWnB1B,EAAA,MAAA,CAAKH,UAAWC,EAAiB,SAACC,SAAG7D,EAAUkB,OAAS,GAAKsC,GAAexD,mBAIjFwH,EAAA7H,aAAO,EAAPA,EAAS8H,kCAAavG,QAAS,GAAK4C,EAACsC,GAAOzG,QAASA,EAAQ8H,YAAY"}
@@ -53,6 +53,8 @@
53
53
  }
54
54
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
55
55
  margin-bottom: 20px;
56
+ padding-left: 10px;
57
+ padding-right: 10px;
56
58
  }
57
59
  @media (max-width: 767px) {
58
60
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
@@ -53,6 +53,8 @@
53
53
  }
54
54
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
55
55
  margin-bottom: 20px;
56
+ padding-left: 10px;
57
+ padding-right: 10px;
56
58
  }
57
59
  @media (max-width: 767px) {
58
60
  .InternetAndTvCards-module__container___yFefT .InternetAndTvCards-module__cards___GoKeY .InternetAndTvCards-module__card___MMVzF {
@@ -1548,54 +1548,6 @@
1548
1548
  text-align: center;
1549
1549
  }
1550
1550
 
1551
- /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.module.scss */
1552
- /* center a block element */
1553
- /* use this to any of the pseudo elements as these are the mandatory properties */
1554
- /* setting styles in separate formats for cross browser support */
1555
- /* specify the max width for an element and apply ellipses and truncate the overflow */
1556
- /* vertically center alilgn any HTML element */
1557
- /* add basePath to assets */
1558
- .CartHeader-module__headerTitle___35F6g {
1559
- display: flex;
1560
- align-items: center;
1561
- gap: 8px;
1562
- }
1563
-
1564
- .CartHeader-module__headerItemCount___g1Ynd {
1565
- font-size: 24px;
1566
- line-height: 32px;
1567
- font-weight: 400;
1568
- color: #3d3935;
1569
- }
1570
- @media (max-width: 1023px) {
1571
- .CartHeader-module__headerItemCount___g1Ynd {
1572
- font-size: 20px;
1573
- line-height: 28px;
1574
- }
1575
- }
1576
-
1577
- .CartHeader-module__clearAllButton___B3bNF {
1578
- display: inline;
1579
- background: none;
1580
- border: none;
1581
- padding: 0;
1582
- cursor: pointer;
1583
- font-size: 14px;
1584
- line-height: 20px;
1585
- font-weight: 400;
1586
- color: #da291c;
1587
- text-decoration: underline;
1588
- text-underline-offset: 2px;
1589
- }
1590
- .CartHeader-module__clearAllButton___B3bNF:hover {
1591
- color: #961c13;
1592
- }
1593
- .CartHeader-module__clearAllButton___B3bNF:focus-visible {
1594
- outline: 2px solid #da291c;
1595
- outline-offset: 2px;
1596
- border-radius: 2px;
1597
- }
1598
-
1599
1551
  /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/MobileNavigation/MobileMenuItem/MobileMenuItem.module.scss */
1600
1552
  /* center a block element */
1601
1553
  /* use this to any of the pseudo elements as these are the mandatory properties */
@@ -1725,88 +1677,6 @@
1725
1677
  text-decoration: none;
1726
1678
  }
1727
1679
 
1728
- /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.module.scss */
1729
- /* center a block element */
1730
- /* use this to any of the pseudo elements as these are the mandatory properties */
1731
- /* setting styles in separate formats for cross browser support */
1732
- /* specify the max width for an element and apply ellipses and truncate the overflow */
1733
- /* vertically center alilgn any HTML element */
1734
- /* add basePath to assets */
1735
- .EmptyCart-module__emptyState___HtCXJ {
1736
- display: flex;
1737
- flex-direction: column;
1738
- align-items: center;
1739
- justify-content: center;
1740
- flex: 1;
1741
- padding: 32px 24px 24px;
1742
- text-align: center;
1743
- }
1744
-
1745
- .EmptyCart-module__emptyIcon___A7F8f {
1746
- margin-bottom: 8px;
1747
- }
1748
-
1749
- .EmptyCart-module__emptyText___aX6Nu {
1750
- font-size: 16px;
1751
- line-height: 24px;
1752
- font-weight: 700;
1753
- color: #3d3935;
1754
- margin: 0 0 44px;
1755
- }
1756
-
1757
- .EmptyCart-module__emptySubText___P504H {
1758
- font-size: 14px;
1759
- line-height: 20px;
1760
- color: #787472;
1761
- margin: 0 0 8px;
1762
- }
1763
-
1764
- .EmptyCart-module__categoryLinks___J9tic {
1765
- display: flex;
1766
- gap: 12px;
1767
- width: 100%;
1768
- justify-content: center;
1769
- }
1770
-
1771
- .EmptyCart-module__categoryLink___YxsmA {
1772
- display: flex;
1773
- flex-direction: column;
1774
- align-items: center;
1775
- justify-content: center;
1776
- gap: 6px;
1777
- flex: 1;
1778
- padding: 12px 8px;
1779
- background-color: #ffffff;
1780
- border: none;
1781
- border-radius: 8px;
1782
- text-decoration: none;
1783
- color: #3d3935;
1784
- font-size: 12px;
1785
- line-height: 16px;
1786
- font-weight: 500;
1787
- text-align: center;
1788
- transition: background-color 0.15s ease;
1789
- }
1790
- .EmptyCart-module__categoryLink___YxsmA:hover {
1791
- background-color: #f8f8f8;
1792
- text-decoration: none;
1793
- color: #3d3935;
1794
- }
1795
- .EmptyCart-module__categoryLink___YxsmA:focus-visible {
1796
- outline: 2px solid #e6003c;
1797
- outline-offset: 2px;
1798
- }
1799
-
1800
- .EmptyCart-module__categoryLinkIcon___HjhbO {
1801
- display: flex;
1802
- align-items: center;
1803
- justify-content: center;
1804
- }
1805
-
1806
- .EmptyCart-module__categoryLinkLabel___1dS9s {
1807
- line-height: 1.3;
1808
- }
1809
-
1810
1680
  /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/FalconHeader/BusinessCustomerLinkOut/BusinessCustomerLinkOut.module.scss */
1811
1681
  /* center a block element */
1812
1682
  /* use this to any of the pseudo elements as these are the mandatory properties */
@@ -2004,6 +1874,136 @@
2004
1874
  border: none;
2005
1875
  }
2006
1876
 
1877
+ /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.module.scss */
1878
+ /* center a block element */
1879
+ /* use this to any of the pseudo elements as these are the mandatory properties */
1880
+ /* setting styles in separate formats for cross browser support */
1881
+ /* specify the max width for an element and apply ellipses and truncate the overflow */
1882
+ /* vertically center alilgn any HTML element */
1883
+ /* add basePath to assets */
1884
+ .CartHeader-module__headerTitle___35F6g {
1885
+ display: flex;
1886
+ align-items: center;
1887
+ gap: 8px;
1888
+ }
1889
+
1890
+ .CartHeader-module__headerItemCount___g1Ynd {
1891
+ font-size: 24px;
1892
+ line-height: 32px;
1893
+ font-weight: 400;
1894
+ color: #3d3935;
1895
+ }
1896
+ @media (max-width: 1023px) {
1897
+ .CartHeader-module__headerItemCount___g1Ynd {
1898
+ font-size: 20px;
1899
+ line-height: 28px;
1900
+ }
1901
+ }
1902
+
1903
+ .CartHeader-module__clearAllButton___B3bNF {
1904
+ display: inline;
1905
+ background: none;
1906
+ border: none;
1907
+ padding: 0;
1908
+ cursor: pointer;
1909
+ font-size: 14px;
1910
+ line-height: 20px;
1911
+ font-weight: 400;
1912
+ color: #da291c;
1913
+ text-decoration: underline;
1914
+ text-underline-offset: 2px;
1915
+ }
1916
+ .CartHeader-module__clearAllButton___B3bNF:hover {
1917
+ color: #961c13;
1918
+ }
1919
+ .CartHeader-module__clearAllButton___B3bNF:focus-visible {
1920
+ outline: 2px solid #da291c;
1921
+ outline-offset: 2px;
1922
+ border-radius: 2px;
1923
+ }
1924
+
1925
+ /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.module.scss */
1926
+ /* center a block element */
1927
+ /* use this to any of the pseudo elements as these are the mandatory properties */
1928
+ /* setting styles in separate formats for cross browser support */
1929
+ /* specify the max width for an element and apply ellipses and truncate the overflow */
1930
+ /* vertically center alilgn any HTML element */
1931
+ /* add basePath to assets */
1932
+ .EmptyCart-module__emptyState___HtCXJ {
1933
+ display: flex;
1934
+ flex-direction: column;
1935
+ align-items: center;
1936
+ justify-content: center;
1937
+ flex: 1;
1938
+ padding: 32px 24px 24px;
1939
+ text-align: center;
1940
+ }
1941
+
1942
+ .EmptyCart-module__emptyIcon___A7F8f {
1943
+ margin-bottom: 8px;
1944
+ }
1945
+
1946
+ .EmptyCart-module__emptyText___aX6Nu {
1947
+ font-size: 16px;
1948
+ line-height: 24px;
1949
+ font-weight: 700;
1950
+ color: #3d3935;
1951
+ margin: 0 0 44px;
1952
+ }
1953
+
1954
+ .EmptyCart-module__emptySubText___P504H {
1955
+ font-size: 14px;
1956
+ line-height: 20px;
1957
+ color: #787472;
1958
+ margin: 0 0 8px;
1959
+ }
1960
+
1961
+ .EmptyCart-module__categoryLinks___J9tic {
1962
+ display: flex;
1963
+ gap: 12px;
1964
+ width: 100%;
1965
+ justify-content: center;
1966
+ }
1967
+
1968
+ .EmptyCart-module__categoryLink___YxsmA {
1969
+ display: flex;
1970
+ flex-direction: column;
1971
+ align-items: center;
1972
+ justify-content: center;
1973
+ gap: 6px;
1974
+ flex: 1;
1975
+ padding: 12px 8px;
1976
+ background-color: #ffffff;
1977
+ border: none;
1978
+ border-radius: 8px;
1979
+ text-decoration: none;
1980
+ color: #3d3935;
1981
+ font-size: 12px;
1982
+ line-height: 16px;
1983
+ font-weight: 500;
1984
+ text-align: center;
1985
+ transition: background-color 0.15s ease;
1986
+ }
1987
+ .EmptyCart-module__categoryLink___YxsmA:hover {
1988
+ background-color: #f8f8f8;
1989
+ text-decoration: none;
1990
+ color: #3d3935;
1991
+ }
1992
+ .EmptyCart-module__categoryLink___YxsmA:focus-visible {
1993
+ outline: 2px solid #e6003c;
1994
+ outline-offset: 2px;
1995
+ }
1996
+
1997
+ .EmptyCart-module__categoryLinkIcon___HjhbO {
1998
+ display: flex;
1999
+ align-items: center;
2000
+ justify-content: center;
2001
+ }
2002
+
2003
+ .EmptyCart-module__categoryLinkLabel___1dS9s {
2004
+ line-height: 1.3;
2005
+ }
2006
+
2007
2007
  /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.module.scss */
2008
2008
  /* center a block element */
2009
2009
  /* use this to any of the pseudo elements as these are the mandatory properties */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunrise-upc/sales-static-components",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Static Reusable Components Library",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",