@sunrise-upc/sales-static-components 4.2.0-beta.4 → 4.2.0-beta.6

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.
@@ -89,12 +89,21 @@
89
89
  }
90
90
 
91
91
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh {
92
+ box-sizing: border-box;
92
93
  display: inline-block;
94
+ flex: 0 1 auto;
93
95
  text-align: center;
94
96
  padding: 0 6px;
97
+ width: auto;
95
98
  min-width: 43px;
96
99
  }
97
100
 
101
+ .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh:first-child {
102
+ padding-left: 0;
103
+ padding-right: 0;
104
+ min-width: 36px;
105
+ }
106
+
98
107
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-value___0U5CT {
99
108
  font-size: 24px;
100
109
  font-weight: 700;
@@ -134,6 +143,8 @@
134
143
  }
135
144
 
136
145
  .RibbonTimerV2-module__slim-timer-element___pdiBB {
146
+ flex-basis: auto;
147
+ width: auto;
137
148
  min-width: 36px;
138
149
  }
139
150
 
@@ -20,12 +20,21 @@
20
20
  }
21
21
 
22
22
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh {
23
+ box-sizing: border-box;
23
24
  display: inline-block;
25
+ flex: 0 1 auto;
24
26
  text-align: center;
25
27
  padding: 0 6px;
28
+ width: auto;
26
29
  min-width: 43px;
27
30
  }
28
31
 
32
+ .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh:first-child {
33
+ padding-left: 0;
34
+ padding-right: 0;
35
+ min-width: 36px;
36
+ }
37
+
29
38
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-value___0U5CT {
30
39
  font-size: 24px;
31
40
  font-weight: 700;
@@ -65,6 +74,8 @@
65
74
  }
66
75
 
67
76
  .RibbonTimerV2-module__slim-timer-element___pdiBB {
77
+ flex-basis: auto;
78
+ width: auto;
68
79
  min-width: 36px;
69
80
  }
70
81
 
@@ -20,12 +20,21 @@
20
20
  }
21
21
 
22
22
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh {
23
+ box-sizing: border-box;
23
24
  display: inline-block;
25
+ flex: 0 1 auto;
24
26
  text-align: center;
25
27
  padding: 0 6px;
28
+ width: auto;
26
29
  min-width: 43px;
27
30
  }
28
31
 
32
+ .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh:first-child {
33
+ padding-left: 0;
34
+ padding-right: 0;
35
+ min-width: 36px;
36
+ }
37
+
29
38
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-value___0U5CT {
30
39
  font-size: 24px;
31
40
  font-weight: 700;
@@ -65,6 +74,8 @@
65
74
  }
66
75
 
67
76
  .RibbonTimerV2-module__slim-timer-element___pdiBB {
77
+ flex-basis: auto;
78
+ width: auto;
68
79
  min-width: 36px;
69
80
  }
70
81
 
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./components/RibbonComponent/RibbonComponent.js"),t=require("./components/RibbonRenderer/RibbonRenderer.js"),r=require("./components/GlobalPromoRibbon/GlobalPromoRibbon.js"),o=require("./components/FalconButtonV3/FalconButtonV3.js"),n=require("./components/StageTeaserComponent/StageTeaserComponent.js"),s=require("./components/ImageComponent/ImageComponent.js"),a=require("./components/TextComponent/TextComponent.js"),i=require("./components/ButtonGroup/ButtonGroup.js"),p=require("./components/ImageWithText/ImageWithText.js"),c=require("./components/ImageWithTextWrapper/ImageWithTextWrapper.js"),u=require("./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js"),m=require("./components/QuickLinks/QuickLinks.js"),l=require("./components/DeviceGallery/DeviceGalleryList.js"),C=require("./components/InternetAndTvCards/InternetAndTvCards.js"),x=require("./components/PromotionTeaser/PromotionTeaser.js"),g=require("./components/linecheck/LineCheckV2.js"),d=require("./components/StageTeaserV3/StageTeaserV3.js"),v=require("./components/StageTeaserV3/PromoBubble/PromoBubble.js"),f=require("./components/FalconMainNavigation/FalconMainNavigation.js"),b=require("./components/SearchWrapper/SearchWrapper.js"),S=require("./components/MinimizedHeader/MinimizedHeader.js"),j=require("./components/BadgeContainer/BadgeContainer.js"),k=require("./services/LinecheckBasicPropConfig.js"),q=require("./services/CustomerPropConfig.js"),h=require("./services/customerSegmentSync.js"),T=require("./services/CustomerService.js"),y=require("./services/CartPropConfig.js"),G=require("./utils/AnalyticUtils.js");exports.RibbonComponent=e.default,exports.RibbonRenderer=t.default,exports.GlobalPromoRibbon=r.default,exports.FalconButtonV3=o.default,exports.StageTeaserComponent=n.default,exports.ImageComponent=s.default,exports.TextComponent=a.default,exports.ButtonGroup=i.default,exports.ImageWithText=p.default,exports.ImageWithTextWrapper=c.default,exports.InternetAndTvCardsBenefits=u.default,exports.QuickLinks=m.default,exports.DeviceGalleryList=l.default,exports.InternetAndTvCards=C.default,exports.PromotionTeaser=x.default,exports.LineCheckV2=g.default,exports.StageTeaserV3=d.default,exports.PromoBubble=v.default,exports.FalconMainNavigation=f.default,exports.SearchWrapper=b.default,exports.MinimizedHeader=S.default,exports.BadgeContainer=j.default,exports.LinecheckBasicPropConfig=k.LinecheckBasicPropConfig,exports.CustomerPropConfig=q.CustomerPropConfig,exports.createCustomerGroupFetcher=h.createCustomerGroupFetcher,exports.createCustomerSegmentSync=h.createCustomerSegmentSync,exports.dispatchCustomerSegmentRefreshEvent=h.dispatchCustomerSegmentRefreshEvent,exports.extractCustomerGroupFromProfile=h.extractCustomerGroupFromProfile,exports.getCurrentCustomerSegment=h.getCurrentCustomerSegment,exports.hasCachedCustomerSegment=h.hasCachedCustomerSegment,exports.resolveCustomerGroup=h.resolveCustomerGroup,exports.setCustomerSegment=h.setCustomerSegment,exports.subscribeToCustomerSegmentRefresh=h.subscribeToCustomerSegmentRefresh,exports.syncCustomerSegment=h.syncCustomerSegment,exports.customerGroup=T.customerGroup,exports.CartPropConfig=y.CartPropConfig,exports.getDeviceGalleryAnalyticsItem=G.getDeviceGalleryAnalyticsItem,exports.getDeviceGallerySelectAnalyticsItem=G.getDeviceGallerySelectAnalyticsItem,exports.trackComponent=G.trackComponent,exports.trackDeviceGalleryEligibility=G.trackDeviceGalleryEligibility,exports.trackErrorEvent=G.trackErrorEvent,exports.trackEvent=G.trackEvent,exports.trackGADatalayerEvent=G.trackGADatalayerEvent,exports.trackLineEvent=G.trackLineEvent,exports.trackMessageEvent=G.trackMessageEvent,exports.trackNewDatalayerEvent=G.trackNewDatalayerEvent;
1
+ "use strict";var e=require("./components/RibbonComponent/RibbonComponent.js"),t=require("./components/RibbonRenderer/RibbonRenderer.js"),r=require("./components/GlobalPromoRibbon/GlobalPromoRibbon.js"),o=require("./components/FalconButtonV3/FalconButtonV3.js"),n=require("./components/StageTeaserComponent/StageTeaserComponent.js"),s=require("./components/ImageComponent/ImageComponent.js"),a=require("./components/TextComponent/TextComponent.js"),i=require("./components/ButtonGroup/ButtonGroup.js"),p=require("./components/ImageWithText/ImageWithText.js"),c=require("./components/ImageWithTextWrapper/ImageWithTextWrapper.js"),m=require("./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js"),u=require("./components/QuickLinks/QuickLinks.js"),l=require("./components/DeviceGallery/DeviceGalleryList.js"),C=require("./components/InternetAndTvCards/InternetAndTvCards.js"),d=require("./components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js"),x=require("./components/PromotionTeaser/PromotionTeaser.js"),g=require("./components/linecheck/LineCheckV2.js"),v=require("./components/StageTeaserV3/StageTeaserV3.js"),f=require("./components/StageTeaserV3/PromoBubble/PromoBubble.js"),b=require("./components/FalconMainNavigation/FalconMainNavigation.js"),S=require("./components/SearchWrapper/SearchWrapper.js"),T=require("./components/MinimizedHeader/MinimizedHeader.js"),j=require("./components/BadgeContainer/BadgeContainer.js"),q=require("./services/LinecheckBasicPropConfig.js"),k=require("./services/CustomerPropConfig.js"),h=require("./services/customerSegmentSync.js"),I=require("./services/CustomerService.js"),y=require("./services/CartPropConfig.js"),G=require("./utils/AnalyticUtils.js");exports.RibbonComponent=e.default,exports.RibbonRenderer=t.default,exports.GlobalPromoRibbon=r.default,exports.FalconButtonV3=o.default,exports.StageTeaserComponent=n.default,exports.ImageComponent=s.default,exports.TextComponent=a.default,exports.ButtonGroup=i.default,exports.ImageWithText=p.default,exports.ImageWithTextWrapper=c.default,exports.InternetAndTvCardsBenefits=m.default,exports.QuickLinks=u.default,exports.DeviceGalleryList=l.default,exports.InternetAndTvCards=C.default,exports.InternetAndTvCardItem=d.default,exports.PromotionTeaser=x.default,exports.LineCheckV2=g.default,exports.StageTeaserV3=v.default,exports.PromoBubble=f.default,exports.FalconMainNavigation=b.default,exports.SearchWrapper=S.default,exports.MinimizedHeader=T.default,exports.BadgeContainer=j.default,exports.LinecheckBasicPropConfig=q.LinecheckBasicPropConfig,exports.CustomerPropConfig=k.CustomerPropConfig,exports.createCustomerGroupFetcher=h.createCustomerGroupFetcher,exports.createCustomerSegmentSync=h.createCustomerSegmentSync,exports.dispatchCustomerSegmentRefreshEvent=h.dispatchCustomerSegmentRefreshEvent,exports.extractCustomerGroupFromProfile=h.extractCustomerGroupFromProfile,exports.getCurrentCustomerSegment=h.getCurrentCustomerSegment,exports.hasCachedCustomerSegment=h.hasCachedCustomerSegment,exports.resolveCustomerGroup=h.resolveCustomerGroup,exports.setCustomerSegment=h.setCustomerSegment,exports.subscribeToCustomerSegmentRefresh=h.subscribeToCustomerSegmentRefresh,exports.syncCustomerSegment=h.syncCustomerSegment,exports.customerGroup=I.customerGroup,exports.CartPropConfig=y.CartPropConfig,exports.getDeviceGalleryAnalyticsItem=G.getDeviceGalleryAnalyticsItem,exports.getDeviceGallerySelectAnalyticsItem=G.getDeviceGallerySelectAnalyticsItem,exports.trackComponent=G.trackComponent,exports.trackDeviceGalleryEligibility=G.trackDeviceGalleryEligibility,exports.trackErrorEvent=G.trackErrorEvent,exports.trackEvent=G.trackEvent,exports.trackGADatalayerEvent=G.trackGADatalayerEvent,exports.trackLineEvent=G.trackLineEvent,exports.trackMessageEvent=G.trackMessageEvent,exports.trackNewDatalayerEvent=G.trackNewDatalayerEvent;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import './InternetAndTvCardItem.css';
2
- import{jsx as n,Fragment as o,jsxs as t}from"react/jsx-runtime";import e,{useRef as i,useState as l,useEffect as r}from"react";import a from"./InternetAndTvCardItem.module.scss.js";import d from"../../FalconTitle/FalconTitle.js";import s from"../../FalconDescription/FalconDescription.js";import c from"../../FalconButton/falconButton.js";import{resolveStoryblokLink as u}from"../../FalconMainNavigation/shared.js";import{getFalconGradientClass as v,checkLinkWithLang as m}from"../../../utils/StyleUtils.js";import{NONE as b,SVG as f,ICON as g,IMG as p,CENTER as k,LEFT as h}from"../../Constants.js";import{trackComponent as _,trackNewDatalayerEvent as x}from"../../../utils/AnalyticUtils.js";import{LINK as y,CONTENT as j,INTERNETTVCARD as B,ALL as w,SUBTEASER as N,CMS as C,VIEWPROMOTION as $,SELECTPROMOTION as L}from"../../../utils/AnalyticsConstants.js";const I={falconTitle:d,falconDescription:s},A=()=>{if("undefined"==typeof window)return"";const n=window.innerWidth;return n>=1440?"large-desktop":n>=1024?"desktop":n>=768?"tablet":n>0?"mobile":""},F=({content:d,metadata:s,index:F})=>{var O,E,S,T,D,U,P,z,J,W,q,G,M,R,H,K;const Q=i(null),[V,X]=l("#"),[Y,Z]=l(A),nn="mobile"===Y?360:400,on=null===(O=d.asset)||void 0===O?void 0:O.filename,tn=v(d.gradient),en=null===(S=null===(E=d.gradientBackgroundGlobal)||void 0===E?void 0:E.replace(/;\s*$/,""))||void 0===S?void 0:S.trim(),ln=!!en&&en.toLowerCase()!==b,rn=d.gradient!==b&&!!tn,an=ln?"":rn?tn:"",dn=ln?{background:en}:void 0,sn=(null==on?void 0:on.endsWith(f))?g:p,cn=d.defaultBackgroundColor&&d.defaultBackgroundColor!==b?d.defaultBackgroundColor:null===(T=d.backgroundColorPicker)||void 0===T?void 0:T.color,un=n=>{var o,t,e,i;if(!n)return;const l=null!==(e=null===(t=null===(o=null==d?void 0:d.textBlok)||void 0===o?void 0:o[0])||void 0===t?void 0:t.text)&&void 0!==e?e:"";x(L,L,{banner_promotion_name:null!==(i=null==d?void 0:d.bannerPromotionName)&&void 0!==i?i:l,banner_source:C,banner_type:N,banner_location:null==d?void 0:d.bannerLocation,audience_name:w,promotion_objective:w,index:F?F+1:1})};if(r(()=>{const n=()=>Z(A());return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),r(()=>{var n,o,t;const e=null===(o=null===(n=null==d?void 0:d.textBlok)||void 0===n?void 0:n[0])||void 0===o?void 0:o.text;_(e||B,"",j,y),(null===(t=null==d?void 0:d.cardLink)||void 0===t?void 0:t.cached_url)?X(m(u(s,d.cardLink))):X("#")},[d,s]),r(()=>{const n=Q.current;if(!n||"undefined"==typeof IntersectionObserver)return;const o=new IntersectionObserver(n=>{var o,t,e;const i=n[0],l=localStorage.getItem("analyticsUids");if(i.isIntersecting&&i.intersectionRatio>=.5&&!(null==l?void 0:l.includes(d._uid))){const n=null===(t=null===(o=null==d?void 0:d.textBlok)||void 0===o?void 0:o[0])||void 0===t?void 0:t.text;x($,$,{banner_promotion_name:null!==(e=null==d?void 0:d.bannerPromotionName)&&void 0!==e?e:n,banner_source:C,banner_type:N,banner_location:null==d?void 0:d.bannerLocation,audience_name:w,promotion_objective:w,index:F?F+1:1}),localStorage.setItem("analyticsUids",JSON.stringify([...l?JSON.parse(l):[],d._uid]))}},{threshold:.5});return o.observe(n),()=>o.disconnect()},[d,F]),d.notToDisplay)return n(o,{});const vn=!!(null===(D=null==d?void 0:d.cardLink)||void 0===D?void 0:D.cached_url)&&("large-desktop"===Y||"desktop"===Y);return t("div",{className:`${a.container} ${an}`,style:Object.assign({},null!=dn?dn:cn?{backgroundColor:cn}:{}),ref:Q,children:[vn&&n("a",{href:V,className:a["card-link-overlay"],onClick:()=>un(!0),"aria-label":(null===(P=null===(U=null==d?void 0:d.textBlok)||void 0===U?void 0:U[0])||void 0===P?void 0:P.text)||B}),on&&sn===p&&n("div",{className:a.gradient,children:n("img",{src:(mn=on,bn=nn,mn&&bn&&mn.includes("/f/")?`${mn}/m/${bn}x0/filters:format(webp):quality(80)`:mn),alt:(null===(z=d.asset)||void 0===z?void 0:z.alt)||"",title:(null===(J=d.asset)||void 0===J?void 0:J.title)||""})}),((null===(W=d.textBlok)||void 0===W?void 0:W.length)>0||on||(null===(q=d.button)||void 0===q?void 0:q.length)>0)&&t("div",{className:d.subElementsAlignment===k?"align-center":d.subElementsAlignment===h?"align-left":"align-right",children:[on&&sn===g&&n("div",{className:a.icon,children:n("img",{src:on,title:null===(G=d.asset)||void 0===G?void 0:G.title,alt:null===(M=d.asset)||void 0===M?void 0:M.alt,height:"48",width:"48"})}),(null===(R=d.textBlok)||void 0===R?void 0:R.length)>0&&n("div",{className:`${a["content-container"]} ${(null===(H=d.button)||void 0===H?void 0:H.length)>0?a["content-button"]:""}`,children:d.textBlok.map(n=>e.createElement(I[n.component],{content:Object.assign({},n),key:n._uid}))}),(null===(K=null==d?void 0:d.button)||void 0===K?void 0:K.length)>0&&n("div",{className:`${a.butn} ${a["button-variant"]}`,children:n(c,{content:d.button[0],eventAction:B,metadata:s,setButtonClicked:un})})]})]});var mn,bn};export{F as default};
2
+ import{jsx as n,Fragment as o,jsxs as t}from"react/jsx-runtime";import e,{useRef as i,useState as l,useEffect as r}from"react";import a from"./InternetAndTvCardItem.module.scss.js";import d from"../../FalconTitle/FalconTitle.js";import s from"../../FalconDescription/FalconDescription.js";import c from"../../FalconButton/falconButton.js";import{resolveStoryblokLink as u}from"../../FalconMainNavigation/shared.js";import{getFalconGradientClass as v,checkLinkWithLang as m}from"../../../utils/StyleUtils.js";import{NONE as b,SVG as f,ICON as g,IMG as p,CENTER as k,LEFT as h}from"../../Constants.js";import{trackComponent as _,trackNewDatalayerEvent as x}from"../../../utils/AnalyticUtils.js";import{VIEWPROMOTION as y,INTERNETTVCARD as j,ALL as B,SUBTEASER as w,CMS as N,SELECTPROMOTION as C,LINK as $,CONTENT as L}from"../../../utils/AnalyticsConstants.js";const I={falconTitle:d,falconDescription:s},A=()=>{if("undefined"==typeof window)return"";const n=window.innerWidth;return n>=1440?"large-desktop":n>=1024?"desktop":n>=768?"tablet":n>0?"mobile":""},F=({content:d,metadata:s,index:F})=>{var O,E,S,T,D,U,P,z,J,W,q,G,M,R,H,K;const Q=i(null),[V,X]=l("#"),[Y,Z]=l(A),nn="mobile"===Y?360:400,on=null===(O=d.asset)||void 0===O?void 0:O.filename,tn=v(d.gradient),en=null===(S=null===(E=d.gradientBackgroundGlobal)||void 0===E?void 0:E.replace(/;\s*$/,""))||void 0===S?void 0:S.trim(),ln=!!en&&en.toLowerCase()!==b,rn=d.gradient!==b&&!!tn,an=ln?"":rn?tn:"",dn=ln?{background:en}:void 0,sn=(null==on?void 0:on.endsWith(f))?g:p,cn=d.defaultBackgroundColor&&d.defaultBackgroundColor!==b?d.defaultBackgroundColor:null===(T=d.backgroundColorPicker)||void 0===T?void 0:T.color,un=n=>{var o,t,e,i;if(!n)return;const l=null!==(e=null===(t=null===(o=null==d?void 0:d.textBlok)||void 0===o?void 0:o[0])||void 0===t?void 0:t.text)&&void 0!==e?e:"";x(C,C,{banner_promotion_name:null!==(i=null==d?void 0:d.bannerPromotionName)&&void 0!==i?i:l,banner_source:N,banner_type:w,banner_location:null==d?void 0:d.bannerLocation,audience_name:B,promotion_objective:B,index:F?F+1:1})};if(r(()=>{const n=()=>Z(A());return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),r(()=>{var n,o,t;const e=null===(o=null===(n=null==d?void 0:d.textBlok)||void 0===n?void 0:n[0])||void 0===o?void 0:o.text;_(e||j,"",L,$),(null===(t=null==d?void 0:d.cardLink)||void 0===t?void 0:t.cached_url)?X(m(u(s,d.cardLink))):X("#")},[d,s]),r(()=>{const n=Q.current;if(!n||"undefined"==typeof IntersectionObserver)return;const o=new IntersectionObserver(n=>{var o,t,e;const i=n[0],l=localStorage.getItem("analyticsUids");if(i.isIntersecting&&i.intersectionRatio>=.5&&!(null==l?void 0:l.includes(d._uid))){const n=null===(t=null===(o=null==d?void 0:d.textBlok)||void 0===o?void 0:o[0])||void 0===t?void 0:t.text;x(y,y,{banner_promotion_name:null!==(e=null==d?void 0:d.bannerPromotionName)&&void 0!==e?e:n,banner_source:N,banner_type:w,banner_location:null==d?void 0:d.bannerLocation,audience_name:B,promotion_objective:B,index:F?F+1:1}),localStorage.setItem("analyticsUids",JSON.stringify([...l?JSON.parse(l):[],d._uid]))}},{threshold:.5});return o.observe(n),()=>o.disconnect()},[d,F]),d.notToDisplay)return n(o,{});const vn=!!(null===(D=null==d?void 0:d.cardLink)||void 0===D?void 0:D.cached_url)&&("large-desktop"===Y||"desktop"===Y);return t("div",{className:`${a.container} ${an}`,style:Object.assign({},null!=dn?dn:cn?{backgroundColor:cn}:{}),ref:Q,children:[vn&&n("a",{href:V,className:a["card-link-overlay"],onClick:()=>un(!0),"aria-label":(null===(P=null===(U=null==d?void 0:d.textBlok)||void 0===U?void 0:U[0])||void 0===P?void 0:P.text)||j}),on&&sn===p&&n("div",{className:a.gradient,children:n("img",{src:(mn=on,bn=nn,mn&&bn&&mn.includes("/f/")?`${mn}/m/${bn}x0/filters:format(webp):quality(80)`:mn),alt:(null===(z=d.asset)||void 0===z?void 0:z.alt)||"",title:(null===(J=d.asset)||void 0===J?void 0:J.title)||""})}),((null===(W=d.textBlok)||void 0===W?void 0:W.length)>0||on||(null===(q=d.button)||void 0===q?void 0:q.length)>0)&&t("div",{className:d.subElementsAlignment===k?"align-center":d.subElementsAlignment===h?"align-left":"align-right",children:[on&&sn===g&&n("div",{className:a.icon,children:n("img",{src:on,title:null===(G=d.asset)||void 0===G?void 0:G.title,alt:null===(M=d.asset)||void 0===M?void 0:M.alt,height:"48",width:"48"})}),(null===(R=d.textBlok)||void 0===R?void 0:R.length)>0&&n("div",{className:`${a["content-container"]} ${(null===(H=d.button)||void 0===H?void 0:H.length)>0?a["content-button"]:""}`,children:d.textBlok.map(n=>e.createElement(I[n.component],{content:Object.assign({},n),key:n._uid}))}),(null===(K=null==d?void 0:d.button)||void 0===K?void 0:K.length)>0&&n("div",{className:`${a.butn} ${a["button-variant"]}`,children:n(c,{content:d.button[0],eventAction:j,metadata:s,setButtonClicked:un})})]})]});var mn,bn};export{F as default};
3
3
  //# sourceMappingURL=InternetAndTvCardItem.js.map
@@ -89,12 +89,21 @@
89
89
  }
90
90
 
91
91
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh {
92
+ box-sizing: border-box;
92
93
  display: inline-block;
94
+ flex: 0 1 auto;
93
95
  text-align: center;
94
96
  padding: 0 6px;
97
+ width: auto;
95
98
  min-width: 43px;
96
99
  }
97
100
 
101
+ .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh:first-child {
102
+ padding-left: 0;
103
+ padding-right: 0;
104
+ min-width: 36px;
105
+ }
106
+
98
107
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-value___0U5CT {
99
108
  font-size: 24px;
100
109
  font-weight: 700;
@@ -134,6 +143,8 @@
134
143
  }
135
144
 
136
145
  .RibbonTimerV2-module__slim-timer-element___pdiBB {
146
+ flex-basis: auto;
147
+ width: auto;
137
148
  min-width: 36px;
138
149
  }
139
150
 
@@ -20,12 +20,21 @@
20
20
  }
21
21
 
22
22
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh {
23
+ box-sizing: border-box;
23
24
  display: inline-block;
25
+ flex: 0 1 auto;
24
26
  text-align: center;
25
27
  padding: 0 6px;
28
+ width: auto;
26
29
  min-width: 43px;
27
30
  }
28
31
 
32
+ .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh:first-child {
33
+ padding-left: 0;
34
+ padding-right: 0;
35
+ min-width: 36px;
36
+ }
37
+
29
38
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-value___0U5CT {
30
39
  font-size: 24px;
31
40
  font-weight: 700;
@@ -65,6 +74,8 @@
65
74
  }
66
75
 
67
76
  .RibbonTimerV2-module__slim-timer-element___pdiBB {
77
+ flex-basis: auto;
78
+ width: auto;
68
79
  min-width: 36px;
69
80
  }
70
81
 
@@ -20,12 +20,21 @@
20
20
  }
21
21
 
22
22
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh {
23
+ box-sizing: border-box;
23
24
  display: inline-block;
25
+ flex: 0 1 auto;
24
26
  text-align: center;
25
27
  padding: 0 6px;
28
+ width: auto;
26
29
  min-width: 43px;
27
30
  }
28
31
 
32
+ .RibbonTimerV2-module__stage-teaser-ribbon-timer-element___35yCh:first-child {
33
+ padding-left: 0;
34
+ padding-right: 0;
35
+ min-width: 36px;
36
+ }
37
+
29
38
  .RibbonTimerV2-module__stage-teaser-ribbon-timer-value___0U5CT {
30
39
  font-size: 24px;
31
40
  font-weight: 700;
@@ -65,6 +74,8 @@
65
74
  }
66
75
 
67
76
  .RibbonTimerV2-module__slim-timer-element___pdiBB {
77
+ flex-basis: auto;
78
+ width: auto;
68
79
  min-width: 36px;
69
80
  }
70
81
 
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as RibbonComponent}from"./components/RibbonComponent/RibbonComponent.js";export{default as RibbonRenderer}from"./components/RibbonRenderer/RibbonRenderer.js";export{default as GlobalPromoRibbon}from"./components/GlobalPromoRibbon/GlobalPromoRibbon.js";export{default as FalconButtonV3}from"./components/FalconButtonV3/FalconButtonV3.js";export{default as StageTeaserComponent}from"./components/StageTeaserComponent/StageTeaserComponent.js";export{default as ImageComponent}from"./components/ImageComponent/ImageComponent.js";export{default as TextComponent}from"./components/TextComponent/TextComponent.js";export{default as ButtonGroup}from"./components/ButtonGroup/ButtonGroup.js";export{default as ImageWithText}from"./components/ImageWithText/ImageWithText.js";export{default as ImageWithTextWrapper}from"./components/ImageWithTextWrapper/ImageWithTextWrapper.js";export{default as InternetAndTvCardsBenefits}from"./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js";export{default as QuickLinks}from"./components/QuickLinks/QuickLinks.js";export{default as DeviceGalleryList}from"./components/DeviceGallery/DeviceGalleryList.js";export{default as InternetAndTvCards}from"./components/InternetAndTvCards/InternetAndTvCards.js";export{default as PromotionTeaser}from"./components/PromotionTeaser/PromotionTeaser.js";export{default as LineCheckV2}from"./components/linecheck/LineCheckV2.js";export{default as StageTeaserV3}from"./components/StageTeaserV3/StageTeaserV3.js";export{default as PromoBubble}from"./components/StageTeaserV3/PromoBubble/PromoBubble.js";export{default as FalconMainNavigation}from"./components/FalconMainNavigation/FalconMainNavigation.js";export{default as SearchWrapper}from"./components/SearchWrapper/SearchWrapper.js";export{default as MinimizedHeader}from"./components/MinimizedHeader/MinimizedHeader.js";export{default as BadgeContainer}from"./components/BadgeContainer/BadgeContainer.js";export{LinecheckBasicPropConfig}from"./services/LinecheckBasicPropConfig.js";export{CustomerPropConfig}from"./services/CustomerPropConfig.js";export{createCustomerGroupFetcher,createCustomerSegmentSync,dispatchCustomerSegmentRefreshEvent,extractCustomerGroupFromProfile,getCurrentCustomerSegment,hasCachedCustomerSegment,resolveCustomerGroup,setCustomerSegment,subscribeToCustomerSegmentRefresh,syncCustomerSegment}from"./services/customerSegmentSync.js";export{customerGroup}from"./services/CustomerService.js";export{CartPropConfig}from"./services/CartPropConfig.js";export{getDeviceGalleryAnalyticsItem,getDeviceGallerySelectAnalyticsItem,trackComponent,trackDeviceGalleryEligibility,trackErrorEvent,trackEvent,trackGADatalayerEvent,trackLineEvent,trackMessageEvent,trackNewDatalayerEvent}from"./utils/AnalyticUtils.js";
1
+ export{default as RibbonComponent}from"./components/RibbonComponent/RibbonComponent.js";export{default as RibbonRenderer}from"./components/RibbonRenderer/RibbonRenderer.js";export{default as GlobalPromoRibbon}from"./components/GlobalPromoRibbon/GlobalPromoRibbon.js";export{default as FalconButtonV3}from"./components/FalconButtonV3/FalconButtonV3.js";export{default as StageTeaserComponent}from"./components/StageTeaserComponent/StageTeaserComponent.js";export{default as ImageComponent}from"./components/ImageComponent/ImageComponent.js";export{default as TextComponent}from"./components/TextComponent/TextComponent.js";export{default as ButtonGroup}from"./components/ButtonGroup/ButtonGroup.js";export{default as ImageWithText}from"./components/ImageWithText/ImageWithText.js";export{default as ImageWithTextWrapper}from"./components/ImageWithTextWrapper/ImageWithTextWrapper.js";export{default as InternetAndTvCardsBenefits}from"./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js";export{default as QuickLinks}from"./components/QuickLinks/QuickLinks.js";export{default as DeviceGalleryList}from"./components/DeviceGallery/DeviceGalleryList.js";export{default as InternetAndTvCards}from"./components/InternetAndTvCards/InternetAndTvCards.js";export{default as InternetAndTvCardItem}from"./components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js";export{default as PromotionTeaser}from"./components/PromotionTeaser/PromotionTeaser.js";export{default as LineCheckV2}from"./components/linecheck/LineCheckV2.js";export{default as StageTeaserV3}from"./components/StageTeaserV3/StageTeaserV3.js";export{default as PromoBubble}from"./components/StageTeaserV3/PromoBubble/PromoBubble.js";export{default as FalconMainNavigation}from"./components/FalconMainNavigation/FalconMainNavigation.js";export{default as SearchWrapper}from"./components/SearchWrapper/SearchWrapper.js";export{default as MinimizedHeader}from"./components/MinimizedHeader/MinimizedHeader.js";export{default as BadgeContainer}from"./components/BadgeContainer/BadgeContainer.js";export{LinecheckBasicPropConfig}from"./services/LinecheckBasicPropConfig.js";export{CustomerPropConfig}from"./services/CustomerPropConfig.js";export{createCustomerGroupFetcher,createCustomerSegmentSync,dispatchCustomerSegmentRefreshEvent,extractCustomerGroupFromProfile,getCurrentCustomerSegment,hasCachedCustomerSegment,resolveCustomerGroup,setCustomerSegment,subscribeToCustomerSegmentRefresh,syncCustomerSegment}from"./services/customerSegmentSync.js";export{customerGroup}from"./services/CustomerService.js";export{CartPropConfig}from"./services/CartPropConfig.js";export{getDeviceGalleryAnalyticsItem,getDeviceGallerySelectAnalyticsItem,trackComponent,trackDeviceGalleryEligibility,trackErrorEvent,trackEvent,trackGADatalayerEvent,trackLineEvent,trackMessageEvent,trackNewDatalayerEvent}from"./utils/AnalyticUtils.js";
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -405,6 +405,12 @@ interface InternetAndTvCardItemSchema {
405
405
  notToDisplay?: boolean;
406
406
  [key: string]: any;
407
407
  }
408
+ interface InternetAndTvCardItemProps {
409
+ content: InternetAndTvCardItemSchema;
410
+ metadata?: any;
411
+ index?: number;
412
+ }
413
+ declare const InternetAndTvCardItem: ({ content, metadata, index, }: InternetAndTvCardItemProps) => React.JSX.Element;
408
414
 
409
415
  interface InternetAndTvCardsContent {
410
416
  _uid: string;
@@ -890,5 +896,5 @@ interface ErrorEventInfoInterface {
890
896
  }
891
897
  declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string) => void;
892
898
 
893
- export { BadgeContainer, ButtonGroup, CartPropConfig, CustomerPropConfig, DeviceGalleryList, FalconButtonV3, FalconMainNavigation, GlobalPromoRibbon, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCards, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, MinimizedHeader, PromoBubble, PromotionTeaser, QuickLinks, RibbonComponent, RibbonRenderer, SearchWrapper, StageTeaserComponent, StageTeaserV3, TextComponent, createCustomerGroupFetcher, createCustomerSegmentSync, customerGroup, dispatchCustomerSegmentRefreshEvent, extractCustomerGroupFromProfile, getCurrentCustomerSegment, getDeviceGalleryAnalyticsItem, getDeviceGallerySelectAnalyticsItem, hasCachedCustomerSegment, resolveCustomerGroup, setCustomerSegment, subscribeToCustomerSegmentRefresh, syncCustomerSegment, trackComponent, trackDeviceGalleryEligibility, trackErrorEvent, trackEvent, trackGADatalayerEvent, trackLineEvent, trackMessageEvent, trackNewDatalayerEvent };
899
+ export { BadgeContainer, ButtonGroup, CartPropConfig, CustomerPropConfig, DeviceGalleryList, FalconButtonV3, FalconMainNavigation, GlobalPromoRibbon, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCardItem, InternetAndTvCards, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, MinimizedHeader, PromoBubble, PromotionTeaser, QuickLinks, RibbonComponent, RibbonRenderer, SearchWrapper, StageTeaserComponent, StageTeaserV3, TextComponent, createCustomerGroupFetcher, createCustomerSegmentSync, customerGroup, dispatchCustomerSegmentRefreshEvent, extractCustomerGroupFromProfile, getCurrentCustomerSegment, getDeviceGalleryAnalyticsItem, getDeviceGallerySelectAnalyticsItem, hasCachedCustomerSegment, resolveCustomerGroup, setCustomerSegment, subscribeToCustomerSegmentRefresh, syncCustomerSegment, trackComponent, trackDeviceGalleryEligibility, trackErrorEvent, trackEvent, trackGADatalayerEvent, trackLineEvent, trackMessageEvent, trackNewDatalayerEvent };
894
900
  export type { CartPropConfigSchema, CreateCustomerGroupFetcherOptions, CustomerProfileResponse, CustomerPropConfigSchema, CustomerSegmentRefreshDetail, CustomerSegmentSyncApi, CustomerSegmentSyncOptions, DeviceGalleryAnalyticsItem, DeviceGalleryItemSchema, DeviceGalleryListContent, DeviceGalleryListProps, ErrorEventInfoInterface, InternetAndTvCardItemSchema, InternetAndTvCardsContent, InternetAndTvCardsProps, LinecheckBasicPropConfigSchema, PromotionTeaserProps, PromotionTeaserSchema, QuickLinkItemSchema, QuickLinksContent, QuickLinksProps, ResolveCustomerGroupOptions, RibbonComponentSchema, RibbonRendererProps, StageTeaserSlideContent, StageTeaserSwiperContent, StageTeaserSwiperProps, StageTeaserV3Content, StageTeaserV3Props };
@@ -1722,6 +1722,92 @@
1722
1722
  background-color: #1f1f1f;
1723
1723
  }
1724
1724
 
1725
+ /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.module.scss */
1726
+ /* center a block element */
1727
+ /* use this to any of the pseudo elements as these are the mandatory properties */
1728
+ /* setting styles in separate formats for cross browser support */
1729
+ /* specify the max width for an element and apply ellipses and truncate the overflow */
1730
+ /* vertically center alilgn any HTML element */
1731
+ /* add basePath to assets */
1732
+ .CartClearConfirm-module__overlay___sxCOO {
1733
+ position: absolute;
1734
+ inset: 0;
1735
+ z-index: 10;
1736
+ background: rgba(42, 42, 42, 0.8);
1737
+ display: flex;
1738
+ align-items: center;
1739
+ justify-content: center;
1740
+ padding: 24px;
1741
+ }
1742
+
1743
+ .CartClearConfirm-module__dialog___UWokE {
1744
+ background: transparent;
1745
+ border-radius: 16px;
1746
+ padding: 24px;
1747
+ width: 100%;
1748
+ max-width: 320px;
1749
+ display: flex;
1750
+ flex-direction: column;
1751
+ gap: 24px;
1752
+ }
1753
+
1754
+ .CartClearConfirm-module__message___vd9VO {
1755
+ font-size: 18px;
1756
+ line-height: 26px;
1757
+ font-weight: 700;
1758
+ color: #ffffff;
1759
+ text-align: center;
1760
+ }
1761
+
1762
+ .CartClearConfirm-module__actions___X0-0w {
1763
+ display: flex;
1764
+ gap: 12px;
1765
+ }
1766
+ .CartClearConfirm-module__actions___X0-0w button {
1767
+ padding: 10px 24px;
1768
+ }
1769
+
1770
+ .CartClearConfirm-module__cancelButton___LYopb {
1771
+ flex: 1;
1772
+ background: none;
1773
+ border: 2px solid #ffffff;
1774
+ border-radius: 28px;
1775
+ font-size: 16px;
1776
+ line-height: 24px;
1777
+ font-weight: 600;
1778
+ color: #ffffff;
1779
+ cursor: pointer;
1780
+ transition: background-color 0.15s ease;
1781
+ }
1782
+ .CartClearConfirm-module__cancelButton___LYopb:hover {
1783
+ background-color: rgba(255, 255, 255, 0.1);
1784
+ }
1785
+ .CartClearConfirm-module__cancelButton___LYopb:focus-visible {
1786
+ outline: 2px solid #ffffff;
1787
+ outline-offset: 2px;
1788
+ }
1789
+
1790
+ .CartClearConfirm-module__confirmButton___KgPKy {
1791
+ flex: 1;
1792
+ background: #ffffff;
1793
+ border: 2px solid #ffffff;
1794
+ border-radius: 28px;
1795
+ font-size: 16px;
1796
+ line-height: 24px;
1797
+ font-weight: 600;
1798
+ color: #3d3935;
1799
+ cursor: pointer;
1800
+ transition: background-color 0.15s ease;
1801
+ }
1802
+ .CartClearConfirm-module__confirmButton___KgPKy:hover {
1803
+ background-color: #e6e3df;
1804
+ border-color: #e6e3df;
1805
+ }
1806
+ .CartClearConfirm-module__confirmButton___KgPKy:focus-visible {
1807
+ outline: 2px solid #ffffff;
1808
+ outline-offset: 2px;
1809
+ }
1810
+
1725
1811
  /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/SubNavigation/SubNavigation.module.scss */
1726
1812
  /* center a block element */
1727
1813
  /* use this to any of the pseudo elements as these are the mandatory properties */
@@ -1991,92 +2077,6 @@
1991
2077
  }
1992
2078
  }
1993
2079
 
1994
- /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.module.scss */
1995
- /* center a block element */
1996
- /* use this to any of the pseudo elements as these are the mandatory properties */
1997
- /* setting styles in separate formats for cross browser support */
1998
- /* specify the max width for an element and apply ellipses and truncate the overflow */
1999
- /* vertically center alilgn any HTML element */
2000
- /* add basePath to assets */
2001
- .CartClearConfirm-module__overlay___sxCOO {
2002
- position: absolute;
2003
- inset: 0;
2004
- z-index: 10;
2005
- background: rgba(42, 42, 42, 0.8);
2006
- display: flex;
2007
- align-items: center;
2008
- justify-content: center;
2009
- padding: 24px;
2010
- }
2011
-
2012
- .CartClearConfirm-module__dialog___UWokE {
2013
- background: transparent;
2014
- border-radius: 16px;
2015
- padding: 24px;
2016
- width: 100%;
2017
- max-width: 320px;
2018
- display: flex;
2019
- flex-direction: column;
2020
- gap: 24px;
2021
- }
2022
-
2023
- .CartClearConfirm-module__message___vd9VO {
2024
- font-size: 18px;
2025
- line-height: 26px;
2026
- font-weight: 700;
2027
- color: #ffffff;
2028
- text-align: center;
2029
- }
2030
-
2031
- .CartClearConfirm-module__actions___X0-0w {
2032
- display: flex;
2033
- gap: 12px;
2034
- }
2035
- .CartClearConfirm-module__actions___X0-0w button {
2036
- padding: 10px 24px;
2037
- }
2038
-
2039
- .CartClearConfirm-module__cancelButton___LYopb {
2040
- flex: 1;
2041
- background: none;
2042
- border: 2px solid #ffffff;
2043
- border-radius: 28px;
2044
- font-size: 16px;
2045
- line-height: 24px;
2046
- font-weight: 600;
2047
- color: #ffffff;
2048
- cursor: pointer;
2049
- transition: background-color 0.15s ease;
2050
- }
2051
- .CartClearConfirm-module__cancelButton___LYopb:hover {
2052
- background-color: rgba(255, 255, 255, 0.1);
2053
- }
2054
- .CartClearConfirm-module__cancelButton___LYopb:focus-visible {
2055
- outline: 2px solid #ffffff;
2056
- outline-offset: 2px;
2057
- }
2058
-
2059
- .CartClearConfirm-module__confirmButton___KgPKy {
2060
- flex: 1;
2061
- background: #ffffff;
2062
- border: 2px solid #ffffff;
2063
- border-radius: 28px;
2064
- font-size: 16px;
2065
- line-height: 24px;
2066
- font-weight: 600;
2067
- color: #3d3935;
2068
- cursor: pointer;
2069
- transition: background-color 0.15s ease;
2070
- }
2071
- .CartClearConfirm-module__confirmButton___KgPKy:hover {
2072
- background-color: #e6e3df;
2073
- border-color: #e6e3df;
2074
- }
2075
- .CartClearConfirm-module__confirmButton___KgPKy:focus-visible {
2076
- outline: 2px solid #ffffff;
2077
- outline-offset: 2px;
2078
- }
2079
-
2080
2080
  /* /Users/filipe.cruz2/Projects/sunrise-ch-b2c-sales-static-components/src/components/FalconMainNavigation/MobileNavigation/MobileSubNavigation/MobileSubNavigation.module.scss */
2081
2081
  /* center a block element */
2082
2082
  /* 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": "4.2.0-beta.4",
3
+ "version": "4.2.0-beta.6",
4
4
  "description": "Static Reusable Components Library",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",