@sunrise-upc/sales-static-components 5.1.0-beta.1 → 5.1.0-beta.3
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/InternetAndTvCards/InternetAndTvCards.css +2 -0
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCards.js +1 -1
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCards.js.map +1 -1
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCards.module.scss.css +2 -0
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCardsArrows.css +2 -0
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js.map +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCards.css +2 -0
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCards.js +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCards.js.map +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCards.module.scss.css +2 -0
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCardsArrows.css +2 -0
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js +1 -1
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js.map +1 -1
- package/dist/navigation.css +134 -134
- package/package.json +1 -1
|
@@ -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"),
|
|
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,UA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,EAAiBxD,EAAQuD,eAAiBvD,EAAQuD,gBAAkBR,EAAAA,KAAOM,EAAgB,GAC3FI,EACJzD,EAAQuD,eAAiBvD,EAAQuD,gBAAkBR,EAAAA,KAC/C,CAAEW,MAAkC,QAA3BC,EAAA3D,EAAQ4D,2BAAmB,IAAAD,OAAA,EAAAA,EAAED,OACtC,CAAA,EAEAG,EAAkBC,GACtBC,EAAAA,KAAA,MAAA,CAAKC,UAAWC,EAAAA,QAAO,kBAAiBC,SAAA,CACtCC,EAAAA,IAACC,EAAAA,OAAM,
|
|
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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AAA,IAAA,MAAA,CAAqBH,UAAW,GAAG5B,uBAA0B6B,UAAa,OAAGC,SAC3EC,EAAAA,IAACyB,EAAAA,QAAqB,CACpB5F,QAASoB,EACTnB,SAAUA,EACVyF,MAAOA,EACPxF,gBAAiBA,KALXkB,EAAKyE,SAUnB1B,EAAAA,WAAKH,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 {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
require('./RibbonComponentTimer.css');
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),r=require("../utils.js"),i=require("../../Constants.js"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),r=require("../utils.js"),i=require("../../Constants.js"),t=require("./RibbonExpiredTimerRedefined.js"),a=require("./RibbonTimerV2.module.scss.js");var n=l.memo(({content:n,setTimerExpired:s,isSlimVersion:o=!1,className:u,useLegacyTimerClass:d=!0})=>{var m;const c=e=>{"function"==typeof s&&s(e)},v=l.useMemo(()=>{var e;return r.calculateDateTime(new Date(null===(e=null==n?void 0:n.endTime)||void 0===e?void 0:e.replace(/-/g,"/")))},[null==n?void 0:n.endTime]),b=l.useMemo(()=>{var e;return r.calculateDateTime(new Date(null===(e=null==n?void 0:n.startTime)||void 0===e?void 0:e.replace(/-/g,"/")))},[null==n?void 0:n.startTime]),g=l.useMemo(()=>(null==n?void 0:n.colorChangeTime)&&r.calculateDateTime(new Date(n.colorChangeTime.replace(/-/g,"/"))),[null==n?void 0:n.colorChangeTime]),[f,h]=l.useState(!1),p=!1!==(null==n?void 0:n.enableCounter),[T,$]=l.useState(null!==(m=null==n?void 0:n.timerColor)&&void 0!==m?m:""),[x,L]=l.useState(!1),N=()=>{if(!p)return c(!0),null;const e=new Date;g&&!x&&e.getTime()>g.getTime()&&($(i.PRIMARYCOLORS),L(!0));const l=e.getTime()>=b.getTime();l&&!f&&h(!0);const r=v.getTime()-e.getTime();if(r>0&&l){const e=("0"+Math.floor(r/864e5)).slice(-2),l=("0"+Math.floor(r/36e5%24)).slice(-2),i=("0"+Math.floor(r/1e3/60%60)).slice(-2),t=("0"+Math.floor(r/1e3%60)).slice(-2);return c(!1),{days:e,hours:l,mins:i,sec:t}}return c(!0),null},C=(null==n?void 0:n.backgroundColor)&&(null==n?void 0:n.backgroundColorTransparency)&&Number(n.backgroundColorTransparency)>0?Number(n.backgroundColorTransparency)/100:0,j=C?(e=>{if(!e||"transparent"===e)return"transparent";const l=C,r=e.match(/rgba\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9.]+)\)/i);if(r){const[,e,i,t]=r;return`rgba(${e}, ${i}, ${t}, ${l})`}const i=e.match(/rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\)/i);if(i){const[,e,r,t]=i;return`rgba(${e}, ${r}, ${t}, ${l})`}if(e.startsWith("#")){const r=e.replace("#",""),i=3===r.length,t=parseInt(i?r[0]+r[0]:r.slice(0,2),16),a=parseInt(i?r[1]+r[1]:r.slice(2,4),16),n=parseInt(i?r[2]+r[2]:r.slice(4,6),16);if(!Number.isNaN(t)&&!Number.isNaN(a)&&!Number.isNaN(n))return`rgba(${t}, ${a}, ${n}, ${l})`}return e})(null==n?void 0:n.backgroundColor):(null==n?void 0:n.backgroundColor)||"transparent",y={timerColor:T,backgroundColor:j,expiryLabel:null==n?void 0:n.expiryLabel,timerAlignment:null==n?void 0:n.timerAlignment,dayLabel:null==n?void 0:n.dayLabel,hourLabel:null==n?void 0:n.hourLabel,minuteLabel:null==n?void 0:n.minuteLabel,secondLabel:null==n?void 0:n.secondLabel,expiryLabelColor:null==n?void 0:n.expiryLabelColor},[M,k]=l.useState(null);l.useEffect(()=>{k(N());const e=setInterval(()=>{k(N())},1e3);return()=>{clearInterval(e)}},[]);const D=l.useMemo(()=>{var e,l,r;return[{label:null!==(e=null==n?void 0:n.hourLabel)&&void 0!==e?e:"",value:null==M?void 0:M.hours},{label:null!==(l=null==n?void 0:n.minuteLabel)&&void 0!==l?l:"",value:null==M?void 0:M.mins},{label:null!==(r=null==n?void 0:n.secondLabel)&&void 0!==r?r:"",value:null==M?void 0:M.sec}]},[null==n?void 0:n.hourLabel,null==n?void 0:n.minuteLabel,null==n?void 0:n.secondLabel,M]);return e.jsx("div",{className:"timer-wrap",style:{textAlign:n.timerAlignment===i.CENTER?"center":n.timerAlignment===i.LEFT?"left":"right"},children:f&&e.jsx("div",{className:"timer-container",children:M?e.jsxs("div",{className:`${d?"timer-section":""} ${null!=u?u:""} ${o?a.default["slim-timer-section"]:""}`.trim(),style:{color:(null==n?void 0:n.isDarkMode)?i.COLORWHITE:T,backgroundColor:j},children:[e.jsxs("div",{className:` ${a.default["stage-teaser-ribbon-timer-element"]} transparent-element`,children:[e.jsxs("div",{className:`${a.default["stage-teaser-ribbon-timer-value"]} ${o?a.default["slim-timer-value"]:""}`.trim(),children:[" ",null==M?void 0:M.days]}),e.jsx("div",{className:`${a.default["stage-teaser-ribbon-timer-label"]}`,children:null==n?void 0:n.dayLabel})]}),D.map((r,i)=>e.jsxs(l.Fragment,{children:[e.jsx("div",{className:`${a.default["stage-teaser-ribbon-timer-colon"]} ${o?a.default["slim-timer-colon"]:""}`.trim(),children:":"}),e.jsxs("div",{className:`${a.default["stage-teaser-ribbon-timer-element"]} ${o?a.default["slim-timer-element"]:""}`.trim(),children:[e.jsxs("div",{className:`${a.default["stage-teaser-ribbon-timer-value"]} ${o?a.default["slim-timer-value"]:""}`.trim(),children:[" ",null==r?void 0:r.value]}),e.jsx("div",{className:`${a.default["stage-teaser-ribbon-timer-label"]}`,children:null==r?void 0:r.label})]})]},i))]}):e.jsx("div",{children:e.jsx(t.default,{content:y})})})})});exports.default=n;
|
|
3
3
|
//# sourceMappingURL=RibbonComponentTimer.js.map
|
package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RibbonComponentTimer.js","sources":["../../../../../../src/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.tsx"],"sourcesContent":[null],"names":["RibbonComponentTimer$1","React","memo","content","setTimerExpired","isSlimVersion","className","useLegacyTimerClass","notifyTimerExpired","expired","expiry","useMemo","calculateDateTime","Date","_a","endTime","replace","start","startTime","changeColor","colorChangeTime","startTimer","setStartTimer","useState","isCounterEnabled","enableCounter","timerContentColor","setTimerContentColor","timerColor","colorChanged","setColorChanged","calculateTime","today","getTime","PRIMARYCOLORS","difference","days","Math","floor","slice","hours","mins","sec","normalizedBackgroundTransparency","backgroundColor","backgroundColorTransparency","Number","rgbaBackgroundColor","color","alpha","rgbaMatch","match","r","g","b","rgbMatch","startsWith","hex","isShort","length","parseInt","isNaN","applyBackgroundTransparency","expiredTimer","expiryLabel","timerAlignment","dayLabel","hourLabel","minuteLabel","secondLabel","expiryLabelColor","timeLeft","setTimeLeft","useEffect","timer","setInterval","clearInterval","timeLeftArray","label","value","_b","_c","_jsx","style","textAlign","CENTER","LEFT","children","_jsxs","Styles","trim","isDarkMode","COLORWHITE","map","element","index","Fragment","RibbonExpiredTimerRedefined"],"mappings":"
|
|
1
|
+
{"version":3,"file":"RibbonComponentTimer.js","sources":["../../../../../../src/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.tsx"],"sourcesContent":[null],"names":["RibbonComponentTimer$1","React","memo","content","setTimerExpired","isSlimVersion","className","useLegacyTimerClass","notifyTimerExpired","expired","expiry","useMemo","calculateDateTime","Date","_a","endTime","replace","start","startTime","changeColor","colorChangeTime","startTimer","setStartTimer","useState","isCounterEnabled","enableCounter","timerContentColor","setTimerContentColor","timerColor","colorChanged","setColorChanged","calculateTime","today","getTime","PRIMARYCOLORS","hasStarted","difference","days","Math","floor","slice","hours","mins","sec","normalizedBackgroundTransparency","backgroundColor","backgroundColorTransparency","Number","rgbaBackgroundColor","color","alpha","rgbaMatch","match","r","g","b","rgbMatch","startsWith","hex","isShort","length","parseInt","isNaN","applyBackgroundTransparency","expiredTimer","expiryLabel","timerAlignment","dayLabel","hourLabel","minuteLabel","secondLabel","expiryLabelColor","timeLeft","setTimeLeft","useEffect","timer","setInterval","clearInterval","timeLeftArray","label","value","_b","_c","_jsx","style","textAlign","CENTER","LEFT","children","_jsxs","Styles","trim","isDarkMode","COLORWHITE","map","element","index","Fragment","RibbonExpiredTimerRedefined"],"mappings":"6QA2PA,IAAAA,EAAeC,EAAMC,KAhNQ,EAAGC,UAASC,kBAAiBC,iBAAgB,EAAOC,YAAWC,uBAAsB,YAChH,MAAMC,EAAsBC,IACK,mBAApBL,GACTA,EAAgBK,IAIdC,EAASC,EAAAA,QACb,WAAM,OAAAC,EAAAA,kBAAkB,IAAIC,aAAKC,EAAAX,aAAO,EAAPA,EAASY,8BAASC,QAAQ,KAAM,QACjE,CAACb,aAAO,EAAPA,EAASY,UAENE,EAAQN,EAAAA,QACZ,WAAM,OAAAC,EAAAA,kBAAkB,IAAIC,aAAKC,EAAAX,aAAO,EAAPA,EAASe,gCAAWF,QAAQ,KAAM,QACnE,CAACb,aAAO,EAAPA,EAASe,YAENC,EAAcR,EAAAA,QAClB,KAAMR,aAAO,EAAPA,EAASiB,kBAAmBR,EAAAA,kBAChC,IAAIC,KAAKV,EAAQiB,gBAAgBJ,QAAQ,KAAM,OAEjD,CAACb,aAAO,EAAPA,EAASiB,mBAELC,EAAYC,GAAiBC,EAAAA,UAAS,GACvCC,GAA8C,KAA3BrB,aAAO,EAAPA,EAASsB,gBAC3BC,EAAmBC,GAAwBJ,EAAAA,SAC7B,QAAnBT,EAAAX,eAAAA,EAASyB,kBAAU,IAAAd,EAAAA,EAAI,KAElBe,EAAcC,GAAmBP,EAAAA,UAAS,GAC3CQ,EAAgB,KACpB,IAAKP,EAEH,OADAhB,GAAmB,GACZ,KAET,MAAMwB,EAAQ,IAAInB,KACdM,IAAgBU,GACdG,EAAMC,UAAYd,EAAYc,YAChCN,EAAqBO,EAAA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,oBAAsB,KAC5CC,OAAMH,SAAA,CAER,IACAO,aAAO,EAAPA,EAASf,SAEZG,EAAAA,IAAA,MAAA,CACE7E,UAAW,GAAGoF,EAAAA,QAAO,qCAAoCF,SAExDO,aAAO,EAAPA,EAAShB,aAxBKiB,OA+BzBb,EAAAA,IAAA,MAAA,CAAAK,SAEAL,MAACe,EAAAA,QAA2B,CAAC/F,QAAS6D"}
|
|
@@ -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
|
|
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,EAAo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C,EAAQ0C,gCAAwB,IAAAV,OAAA,EAAAA,EAAEW,QAAQ,QAAS,WAAG,IAAAF,OAAA,EAAAA,EAAEG,OACnFC,KACFL,IAA4BA,GAAyBM,gBAAkBC,EACrEC,GAAiBH,GAAyE,GAArDI,EAAuBjD,EAAQkD,oBACpEC,IAAoBN,IAAqB7C,EAAQkD,qBAAuBH,KAAUC,GAClFI,GAAkBD,GAAmBH,GAAgB,GAErDK,GAAgBC,EAAqBtD,EAAQuD,eAC7CC,GAAiBxD,EAAQuD,eAAiBvD,EAAQuD,gBAAkBR,EAAOM,GAAgB,GAC3FI,GACJzD,EAAQuD,eAAiBvD,EAAQuD,gBAAkBR,EAC/C,CAAEW,MAAkC,QAA3BC,EAAA3D,EAAQ4D,2BAAmB,IAAAD,OAAA,EAAAA,EAAED,OACtC,CAAA,EAEAG,GAAkBC,GACtBC,EAAA,MAAA,CAAKC,UAAWC,EAAO,kBAAiBC,SAAA,CACtCC,EAACC,EAAM,
|
|
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","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,WA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EACPxF,gBAAiBA,KALXkB,EAAKyE,SAUnB1B,SAAKH,UAAW,qBAAqBC,EAAiB,WAAGC,SACtD7D,EAAUkB,OAAS,GAAKsC,GAAexD,QAG1CL,EAAQ2H,UAAYC,EACtBzD,SAAKH,UAAW,OAAOC,EAAc,QAAGC,SACrC7D,EAAUoF,IAAI,CAACrE,EAAmCsE,IACjDvB,EAAA,MAAA,CAAqBH,UAAW,GAAG5B,wBAA0B6B,EAAa,OAAGC,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 {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './RibbonComponentTimer.css';
|
|
2
|
-
import{jsx as e,jsxs as l}from"react/jsx-runtime";import r,{useMemo as i,useState as n,useEffect as o}from"react";import{calculateDateTime as
|
|
2
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import r,{useMemo as i,useState as n,useEffect as o}from"react";import{calculateDateTime as t}from"../utils.js";import{COLORWHITE as a,CENTER as s,LEFT as m,PRIMARYCOLORS as d}from"../../Constants.js";import u from"./RibbonExpiredTimerRedefined.js";import c from"./RibbonTimerV2.module.scss.js";var v=r.memo(({content:v,setTimerExpired:b,isSlimVersion:g=!1,className:h,useLegacyTimerClass:p=!0})=>{var $;const f=e=>{"function"==typeof b&&b(e)},N=i(()=>{var e;return t(new Date(null===(e=null==v?void 0:v.endTime)||void 0===e?void 0:e.replace(/-/g,"/")))},[null==v?void 0:v.endTime]),L=i(()=>{var e;return t(new Date(null===(e=null==v?void 0:v.startTime)||void 0===e?void 0:e.replace(/-/g,"/")))},[null==v?void 0:v.startTime]),T=i(()=>(null==v?void 0:v.colorChangeTime)&&t(new Date(v.colorChangeTime.replace(/-/g,"/"))),[null==v?void 0:v.colorChangeTime]),[C,y]=n(!1),k=!1!==(null==v?void 0:v.enableCounter),[x,j]=n(null!==($=null==v?void 0:v.timerColor)&&void 0!==$?$:""),[w,A]=n(!1),D=()=>{if(!k)return f(!0),null;const e=new Date;T&&!w&&e.getTime()>T.getTime()&&(j(d),A(!0));const l=e.getTime()>=L.getTime();l&&!C&&y(!0);const r=N.getTime()-e.getTime();if(r>0&&l){const e=("0"+Math.floor(r/864e5)).slice(-2),l=("0"+Math.floor(r/36e5%24)).slice(-2),i=("0"+Math.floor(r/1e3/60%60)).slice(-2),n=("0"+Math.floor(r/1e3%60)).slice(-2);return f(!1),{days:e,hours:l,mins:i,sec:n}}return f(!0),null},I=(null==v?void 0:v.backgroundColor)&&(null==v?void 0:v.backgroundColorTransparency)&&Number(v.backgroundColorTransparency)>0?Number(v.backgroundColorTransparency)/100:0,M=I?(e=>{if(!e||"transparent"===e)return"transparent";const l=I,r=e.match(/rgba\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9.]+)\)/i);if(r){const[,e,i,n]=r;return`rgba(${e}, ${i}, ${n}, ${l})`}const i=e.match(/rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\)/i);if(i){const[,e,r,n]=i;return`rgba(${e}, ${r}, ${n}, ${l})`}if(e.startsWith("#")){const r=e.replace("#",""),i=3===r.length,n=parseInt(i?r[0]+r[0]:r.slice(0,2),16),o=parseInt(i?r[1]+r[1]:r.slice(2,4),16),t=parseInt(i?r[2]+r[2]:r.slice(4,6),16);if(!Number.isNaN(n)&&!Number.isNaN(o)&&!Number.isNaN(t))return`rgba(${n}, ${o}, ${t}, ${l})`}return e})(null==v?void 0:v.backgroundColor):(null==v?void 0:v.backgroundColor)||"transparent",R={timerColor:x,backgroundColor:M,expiryLabel:null==v?void 0:v.expiryLabel,timerAlignment:null==v?void 0:v.timerAlignment,dayLabel:null==v?void 0:v.dayLabel,hourLabel:null==v?void 0:v.hourLabel,minuteLabel:null==v?void 0:v.minuteLabel,secondLabel:null==v?void 0:v.secondLabel,expiryLabelColor:null==v?void 0:v.expiryLabelColor},[E,V]=n(null);o(()=>{V(D());const e=setInterval(()=>{V(D())},1e3);return()=>{clearInterval(e)}},[]);const F=i(()=>{var e,l,r;return[{label:null!==(e=null==v?void 0:v.hourLabel)&&void 0!==e?e:"",value:null==E?void 0:E.hours},{label:null!==(l=null==v?void 0:v.minuteLabel)&&void 0!==l?l:"",value:null==E?void 0:E.mins},{label:null!==(r=null==v?void 0:v.secondLabel)&&void 0!==r?r:"",value:null==E?void 0:E.sec}]},[null==v?void 0:v.hourLabel,null==v?void 0:v.minuteLabel,null==v?void 0:v.secondLabel,E]);return e("div",{className:"timer-wrap",style:{textAlign:v.timerAlignment===s?"center":v.timerAlignment===m?"left":"right"},children:C&&e("div",{className:"timer-container",children:E?l("div",{className:`${p?"timer-section":""} ${null!=h?h:""} ${g?c["slim-timer-section"]:""}`.trim(),style:{color:(null==v?void 0:v.isDarkMode)?a:x,backgroundColor:M},children:[l("div",{className:` ${c["stage-teaser-ribbon-timer-element"]} transparent-element`,children:[l("div",{className:`${c["stage-teaser-ribbon-timer-value"]} ${g?c["slim-timer-value"]:""}`.trim(),children:[" ",null==E?void 0:E.days]}),e("div",{className:`${c["stage-teaser-ribbon-timer-label"]}`,children:null==v?void 0:v.dayLabel})]}),F.map((i,n)=>l(r.Fragment,{children:[e("div",{className:`${c["stage-teaser-ribbon-timer-colon"]} ${g?c["slim-timer-colon"]:""}`.trim(),children:":"}),l("div",{className:`${c["stage-teaser-ribbon-timer-element"]} ${g?c["slim-timer-element"]:""}`.trim(),children:[l("div",{className:`${c["stage-teaser-ribbon-timer-value"]} ${g?c["slim-timer-value"]:""}`.trim(),children:[" ",null==i?void 0:i.value]}),e("div",{className:`${c["stage-teaser-ribbon-timer-label"]}`,children:null==i?void 0:i.label})]})]},n))]}):e("div",{children:e(u,{content:R})})})})});export{v as default};
|
|
3
3
|
//# sourceMappingURL=RibbonComponentTimer.js.map
|
package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RibbonComponentTimer.js","sources":["../../../../../../src/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.tsx"],"sourcesContent":[null],"names":["RibbonComponentTimer$1","React","memo","content","setTimerExpired","isSlimVersion","className","useLegacyTimerClass","notifyTimerExpired","expired","expiry","useMemo","calculateDateTime","Date","_a","endTime","replace","start","startTime","changeColor","colorChangeTime","startTimer","setStartTimer","useState","isCounterEnabled","enableCounter","timerContentColor","setTimerContentColor","timerColor","colorChanged","setColorChanged","calculateTime","today","getTime","PRIMARYCOLORS","difference","days","Math","floor","slice","hours","mins","sec","normalizedBackgroundTransparency","backgroundColor","backgroundColorTransparency","Number","rgbaBackgroundColor","color","alpha","rgbaMatch","match","r","g","b","rgbMatch","startsWith","hex","isShort","length","parseInt","isNaN","applyBackgroundTransparency","expiredTimer","expiryLabel","timerAlignment","dayLabel","hourLabel","minuteLabel","secondLabel","expiryLabelColor","timeLeft","setTimeLeft","useEffect","timer","setInterval","clearInterval","timeLeftArray","label","value","_b","_c","_jsx","style","textAlign","CENTER","LEFT","children","_jsxs","Styles","trim","isDarkMode","COLORWHITE","map","element","index","Fragment","RibbonExpiredTimerRedefined"],"mappings":"
|
|
1
|
+
{"version":3,"file":"RibbonComponentTimer.js","sources":["../../../../../../src/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.tsx"],"sourcesContent":[null],"names":["RibbonComponentTimer$1","React","memo","content","setTimerExpired","isSlimVersion","className","useLegacyTimerClass","notifyTimerExpired","expired","expiry","useMemo","calculateDateTime","Date","_a","endTime","replace","start","startTime","changeColor","colorChangeTime","startTimer","setStartTimer","useState","isCounterEnabled","enableCounter","timerContentColor","setTimerContentColor","timerColor","colorChanged","setColorChanged","calculateTime","today","getTime","PRIMARYCOLORS","hasStarted","difference","days","Math","floor","slice","hours","mins","sec","normalizedBackgroundTransparency","backgroundColor","backgroundColorTransparency","Number","rgbaBackgroundColor","color","alpha","rgbaMatch","match","r","g","b","rgbMatch","startsWith","hex","isShort","length","parseInt","isNaN","applyBackgroundTransparency","expiredTimer","expiryLabel","timerAlignment","dayLabel","hourLabel","minuteLabel","secondLabel","expiryLabelColor","timeLeft","setTimeLeft","useEffect","timer","setInterval","clearInterval","timeLeftArray","label","value","_b","_c","_jsx","style","textAlign","CENTER","LEFT","children","_jsxs","Styles","trim","isDarkMode","COLORWHITE","map","element","index","Fragment","RibbonExpiredTimerRedefined"],"mappings":"yVA2PA,IAAAA,EAAeC,EAAMC,KAhNQ,EAAGC,UAASC,kBAAiBC,iBAAgB,EAAOC,YAAWC,uBAAsB,YAChH,MAAMC,EAAsBC,IACK,mBAApBL,GACTA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AAW,IACToF,EAAO,2DACkBF,SAAA,CAE3BC,SACEnF,UAAW,GAAGoF,EAAO,sCACnBrF,EAAgBqF,EAAO,oBAAsB,KAC5CC,OAAMH,SAAA,CAER,IACAhB,aAAQ,EAARA,EAAUnC,QAEb8C,EAAA,MAAA,CAAK7E,UAAW,GAAGoF,EAAO,qCAAoCF,SAC3DrF,aAAO,EAAPA,EAASgE,cAGbW,EAAcgB,IAAI,CAACC,EAAcC,IAChCP,EAACxF,EAAMgG,SAAQ,CAAAT,SAAA,CACbL,EAAA,MAAA,CACE7E,UAAW,GAAGoF,EAAO,sCACnBrF,EAAgBqF,EAAO,oBAAsB,KAC5CC,OAAMH,SAAA,MAIXC,EAAA,MAAA,CACEnF,UAAW,GAAGoF,EAAO,wCACnBrF,EAAgBqF,EAAO,sBAAwB,KAC9CC,iBAEHF,EAAA,MAAA,CACEnF,UAAW,GAAGoF,EAAO,sCACnBrF,EAAgBqF,EAAO,oBAAsB,KAC5CC,OAAMH,SAAA,CAER,IACAO,aAAO,EAAPA,EAASf,SAEZG,EAAA,MAAA,CACE7E,UAAW,GAAGoF,EAAO,qCAAoCF,SAExDO,aAAO,EAAPA,EAAShB,aAxBKiB,OA+BzBb,EAAA,MAAA,CAAAK,SAEAL,EAACe,EAA2B,CAAC/F,QAAS6D"}
|
package/dist/navigation.css
CHANGED
|
@@ -157,140 +157,6 @@
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/MinimizedHeader/MinimizedHeader.module.scss */
|
|
161
|
-
/* center a block element */
|
|
162
|
-
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
163
|
-
/* setting styles in separate formats for cross browser support */
|
|
164
|
-
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
165
|
-
/* vertically center alilgn any HTML element */
|
|
166
|
-
/* add basePath to assets */
|
|
167
|
-
@media (min-width: 768px) {
|
|
168
|
-
.MinimizedHeader-module__outer___JOzJC {
|
|
169
|
-
background-color: #ffffff;
|
|
170
|
-
border-top: 4px solid #da291c;
|
|
171
|
-
box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);
|
|
172
|
-
height: 72px;
|
|
173
|
-
}
|
|
174
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
175
|
-
position: fixed;
|
|
176
|
-
top: 0;
|
|
177
|
-
left: 0;
|
|
178
|
-
padding: 4px 8px;
|
|
179
|
-
font-size: 14px;
|
|
180
|
-
z-index: 10000;
|
|
181
|
-
color: #5f5955;
|
|
182
|
-
background: #ffffff;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
@media (min-width: 768px) and (max-width: 850px) {
|
|
186
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
187
|
-
padding: 0 4px;
|
|
188
|
-
font-size: 8px;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
@media (min-width: 768px) {
|
|
192
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X {
|
|
193
|
-
width: 100%;
|
|
194
|
-
display: inline-block;
|
|
195
|
-
}
|
|
196
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO {
|
|
197
|
-
display: flex;
|
|
198
|
-
float: left;
|
|
199
|
-
align-items: center;
|
|
200
|
-
margin: 10px 0;
|
|
201
|
-
}
|
|
202
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__title___4dK49 {
|
|
203
|
-
padding-left: 10px;
|
|
204
|
-
}
|
|
205
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- {
|
|
206
|
-
float: right;
|
|
207
|
-
display: flex;
|
|
208
|
-
margin: 24px 0 24px 0;
|
|
209
|
-
}
|
|
210
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-icon___LlK8O {
|
|
211
|
-
background-image: url("/ecom-int/HeaderIcons/new_profile_icon1.svg");
|
|
212
|
-
background-repeat: no-repeat;
|
|
213
|
-
background-size: contain;
|
|
214
|
-
display: block;
|
|
215
|
-
height: 24px;
|
|
216
|
-
margin-right: 6px;
|
|
217
|
-
width: 24px;
|
|
218
|
-
}
|
|
219
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-name___Kh-fd {
|
|
220
|
-
color: #da291c;
|
|
221
|
-
font-weight: 700;
|
|
222
|
-
font-size: 18px;
|
|
223
|
-
line-height: 24px;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
@media (max-width: 767px) {
|
|
227
|
-
.MinimizedHeader-module__outer___JOzJC {
|
|
228
|
-
background-color: #ffffff;
|
|
229
|
-
border-top: 4px solid #da291c;
|
|
230
|
-
box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);
|
|
231
|
-
height: 48px;
|
|
232
|
-
}
|
|
233
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X {
|
|
234
|
-
width: 100%;
|
|
235
|
-
display: inline-block;
|
|
236
|
-
}
|
|
237
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO {
|
|
238
|
-
display: flex;
|
|
239
|
-
float: left;
|
|
240
|
-
}
|
|
241
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__icon___wYr8J {
|
|
242
|
-
margin-top: 12px;
|
|
243
|
-
}
|
|
244
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__icon___wYr8J > img {
|
|
245
|
-
height: 24px;
|
|
246
|
-
width: 24px;
|
|
247
|
-
float: left;
|
|
248
|
-
}
|
|
249
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__title___4dK49 {
|
|
250
|
-
margin-top: 8px;
|
|
251
|
-
padding-left: 6px;
|
|
252
|
-
}
|
|
253
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__title___4dK49 > img {
|
|
254
|
-
height: 20px;
|
|
255
|
-
}
|
|
256
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- {
|
|
257
|
-
float: right;
|
|
258
|
-
display: flex;
|
|
259
|
-
margin: 12px 0 12px 0;
|
|
260
|
-
}
|
|
261
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-icon___LlK8O {
|
|
262
|
-
background-image: url("/ecom-int/HeaderIcons/new_profile_icon1.svg");
|
|
263
|
-
background-repeat: no-repeat;
|
|
264
|
-
background-size: contain;
|
|
265
|
-
display: block;
|
|
266
|
-
height: 20px;
|
|
267
|
-
margin-right: 6px;
|
|
268
|
-
width: 20px;
|
|
269
|
-
}
|
|
270
|
-
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-name___Kh-fd {
|
|
271
|
-
color: #da291c;
|
|
272
|
-
font-weight: 700;
|
|
273
|
-
font-size: 18px;
|
|
274
|
-
line-height: 24px;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
.MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
278
|
-
position: fixed;
|
|
279
|
-
top: 0;
|
|
280
|
-
left: 0;
|
|
281
|
-
padding: 4px 8px;
|
|
282
|
-
font-size: 14px;
|
|
283
|
-
z-index: 10000;
|
|
284
|
-
color: #5f5955;
|
|
285
|
-
background: #ffffff;
|
|
286
|
-
}
|
|
287
|
-
@media (max-width: 850px) {
|
|
288
|
-
.MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
289
|
-
padding: 0 4px;
|
|
290
|
-
font-size: 8px;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
160
|
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/FalconMainNavigation.module.scss */
|
|
295
161
|
/* center a block element */
|
|
296
162
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
@@ -1098,6 +964,140 @@
|
|
|
1098
964
|
text-align: center;
|
|
1099
965
|
}
|
|
1100
966
|
|
|
967
|
+
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/MinimizedHeader/MinimizedHeader.module.scss */
|
|
968
|
+
/* center a block element */
|
|
969
|
+
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
970
|
+
/* setting styles in separate formats for cross browser support */
|
|
971
|
+
/* specify the max width for an element and apply ellipses and truncate the overflow */
|
|
972
|
+
/* vertically center alilgn any HTML element */
|
|
973
|
+
/* add basePath to assets */
|
|
974
|
+
@media (min-width: 768px) {
|
|
975
|
+
.MinimizedHeader-module__outer___JOzJC {
|
|
976
|
+
background-color: #ffffff;
|
|
977
|
+
border-top: 4px solid #da291c;
|
|
978
|
+
box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);
|
|
979
|
+
height: 72px;
|
|
980
|
+
}
|
|
981
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
982
|
+
position: fixed;
|
|
983
|
+
top: 0;
|
|
984
|
+
left: 0;
|
|
985
|
+
padding: 4px 8px;
|
|
986
|
+
font-size: 14px;
|
|
987
|
+
z-index: 10000;
|
|
988
|
+
color: #5f5955;
|
|
989
|
+
background: #ffffff;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
@media (min-width: 768px) and (max-width: 850px) {
|
|
993
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
994
|
+
padding: 0 4px;
|
|
995
|
+
font-size: 8px;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
@media (min-width: 768px) {
|
|
999
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X {
|
|
1000
|
+
width: 100%;
|
|
1001
|
+
display: inline-block;
|
|
1002
|
+
}
|
|
1003
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO {
|
|
1004
|
+
display: flex;
|
|
1005
|
+
float: left;
|
|
1006
|
+
align-items: center;
|
|
1007
|
+
margin: 10px 0;
|
|
1008
|
+
}
|
|
1009
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__title___4dK49 {
|
|
1010
|
+
padding-left: 10px;
|
|
1011
|
+
}
|
|
1012
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- {
|
|
1013
|
+
float: right;
|
|
1014
|
+
display: flex;
|
|
1015
|
+
margin: 24px 0 24px 0;
|
|
1016
|
+
}
|
|
1017
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-icon___LlK8O {
|
|
1018
|
+
background-image: url("/ecom-int/HeaderIcons/new_profile_icon1.svg");
|
|
1019
|
+
background-repeat: no-repeat;
|
|
1020
|
+
background-size: contain;
|
|
1021
|
+
display: block;
|
|
1022
|
+
height: 24px;
|
|
1023
|
+
margin-right: 6px;
|
|
1024
|
+
width: 24px;
|
|
1025
|
+
}
|
|
1026
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-name___Kh-fd {
|
|
1027
|
+
color: #da291c;
|
|
1028
|
+
font-weight: 700;
|
|
1029
|
+
font-size: 18px;
|
|
1030
|
+
line-height: 24px;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
@media (max-width: 767px) {
|
|
1034
|
+
.MinimizedHeader-module__outer___JOzJC {
|
|
1035
|
+
background-color: #ffffff;
|
|
1036
|
+
border-top: 4px solid #da291c;
|
|
1037
|
+
box-shadow: 0px 2px 4px rgba(87, 84, 82, 0.2);
|
|
1038
|
+
height: 48px;
|
|
1039
|
+
}
|
|
1040
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X {
|
|
1041
|
+
width: 100%;
|
|
1042
|
+
display: inline-block;
|
|
1043
|
+
}
|
|
1044
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO {
|
|
1045
|
+
display: flex;
|
|
1046
|
+
float: left;
|
|
1047
|
+
}
|
|
1048
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__icon___wYr8J {
|
|
1049
|
+
margin-top: 12px;
|
|
1050
|
+
}
|
|
1051
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__icon___wYr8J > img {
|
|
1052
|
+
height: 24px;
|
|
1053
|
+
width: 24px;
|
|
1054
|
+
float: left;
|
|
1055
|
+
}
|
|
1056
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__title___4dK49 {
|
|
1057
|
+
margin-top: 8px;
|
|
1058
|
+
padding-left: 6px;
|
|
1059
|
+
}
|
|
1060
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__wrap___rUhGO .MinimizedHeader-module__title___4dK49 > img {
|
|
1061
|
+
height: 20px;
|
|
1062
|
+
}
|
|
1063
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- {
|
|
1064
|
+
float: right;
|
|
1065
|
+
display: flex;
|
|
1066
|
+
margin: 12px 0 12px 0;
|
|
1067
|
+
}
|
|
1068
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-icon___LlK8O {
|
|
1069
|
+
background-image: url("/ecom-int/HeaderIcons/new_profile_icon1.svg");
|
|
1070
|
+
background-repeat: no-repeat;
|
|
1071
|
+
background-size: contain;
|
|
1072
|
+
display: block;
|
|
1073
|
+
height: 20px;
|
|
1074
|
+
margin-right: 6px;
|
|
1075
|
+
width: 20px;
|
|
1076
|
+
}
|
|
1077
|
+
.MinimizedHeader-module__outer___JOzJC .MinimizedHeader-module__align___yv11X .MinimizedHeader-module__after-login___-BGe- .MinimizedHeader-module__profile-name___Kh-fd {
|
|
1078
|
+
color: #da291c;
|
|
1079
|
+
font-weight: 700;
|
|
1080
|
+
font-size: 18px;
|
|
1081
|
+
line-height: 24px;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
.MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
1085
|
+
position: fixed;
|
|
1086
|
+
top: 0;
|
|
1087
|
+
left: 0;
|
|
1088
|
+
padding: 4px 8px;
|
|
1089
|
+
font-size: 14px;
|
|
1090
|
+
z-index: 10000;
|
|
1091
|
+
color: #5f5955;
|
|
1092
|
+
background: #ffffff;
|
|
1093
|
+
}
|
|
1094
|
+
@media (max-width: 850px) {
|
|
1095
|
+
.MinimizedHeader-module__s20-header__version-number___vI9Rr {
|
|
1096
|
+
padding: 0 4px;
|
|
1097
|
+
font-size: 8px;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
1101
|
/* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/FalconHeader/LocaleSelector/LocaleSelector.module.scss */
|
|
1102
1102
|
/* center a block element */
|
|
1103
1103
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|