@sunrise-upc/sales-static-components 3.8.7-beta.1 → 3.8.7-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/README.md +8 -8
- package/dist/cjs/components/ButtonGroup/ButtonGroup.css +95 -95
- package/dist/cjs/components/Constants.js +1 -1
- package/dist/cjs/components/Constants.js.map +1 -1
- package/dist/cjs/components/FalconButton/falconButton.js.map +1 -1
- package/dist/cjs/components/FalconMainNavigation/FalconHeader/BusinessCustomerLinkOut/BusinessCustomerLinkOut.js.map +1 -1
- package/dist/cjs/components/FalconMainNavigation/MobileNavigation/MobileMenuItem/MobileMenuItem.js.map +1 -1
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.css +217 -230
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.js +1 -1
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.js.map +1 -1
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.css +218 -0
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.js +3 -0
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.js.map +1 -0
- package/dist/cjs/components/InternetAndTvCardsBenefits/InternetAndTvCardItemBenefits.js.map +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponent.css +389 -389
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.css +68 -68
- package/dist/cjs/components/RibbonRenderer/RibbonRenderer.js +1 -1
- package/dist/cjs/components/RibbonRenderer/RibbonRenderer.js.map +1 -1
- package/dist/cjs/components/StageTeaserComponent/DoubleGrid/DoubleGridComponent.css +937 -937
- package/dist/cjs/components/StageTeaserComponent/SingleGrid/SingleGridRedefined.js.map +1 -1
- package/dist/cjs/components/StageTeaserV3/DoubleGrid/DoubleGridComponent.css +87 -87
- package/dist/cjs/components/StageTeaserV3/SingleGrid/SingleGridComponent.css +87 -87
- package/dist/cjs/components/StageTeaserV3/StageTeaserV3.js +1 -1
- package/dist/cjs/components/StageTeaserV3/StageTeaserV3.js.map +1 -1
- package/dist/cjs/components/linecheck/AutoComplete.css +484 -484
- package/dist/cjs/components/linecheck/LineCheckV2.css +484 -484
- package/dist/cjs/components/linecheck/Success.css +484 -484
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/algoliasearch/dist/lite/builds/browser.js +1 -1
- package/dist/cjs/node_modules/algoliasearch/dist/lite/builds/browser.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/version.js +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/version.js.map +1 -1
- package/dist/cjs/node_modules/immer/dist/immer.js +1 -1
- package/dist/cjs/node_modules/immer/dist/immer.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/helpers/insights.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/helpers/insights.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/InstantSearch.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/InstantSearch.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/version.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/version.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/widgets/index/index.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/widgets/index/index.js.map +1 -1
- package/dist/cjs/node_modules/react-instantsearch/dist/es/ui/SearchBox.js +1 -1
- package/dist/cjs/node_modules/react-instantsearch/dist/es/ui/SearchBox.js.map +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/version.js +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/version.js.map +1 -1
- package/dist/cjs/services/customerSegmentSync.js +2 -0
- package/dist/cjs/services/customerSegmentSync.js.map +1 -0
- package/dist/esm/components/ButtonGroup/ButtonGroup.css +95 -95
- package/dist/esm/components/Constants.js +1 -1
- package/dist/esm/components/Constants.js.map +1 -1
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.css +217 -230
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.js +1 -1
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.js.map +1 -1
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.css +218 -0
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.js +3 -0
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.js.map +1 -0
- package/dist/esm/components/RibbonComponent/RibbonComponent.css +389 -389
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.css +68 -68
- package/dist/esm/components/RibbonRenderer/RibbonRenderer.js +1 -1
- package/dist/esm/components/RibbonRenderer/RibbonRenderer.js.map +1 -1
- package/dist/esm/components/StageTeaserComponent/DoubleGrid/DoubleGridComponent.css +937 -937
- package/dist/esm/components/StageTeaserV3/DoubleGrid/DoubleGridComponent.css +87 -87
- package/dist/esm/components/StageTeaserV3/SingleGrid/SingleGridComponent.css +87 -87
- package/dist/esm/components/StageTeaserV3/StageTeaserV3.js +1 -1
- package/dist/esm/components/StageTeaserV3/StageTeaserV3.js.map +1 -1
- package/dist/esm/components/linecheck/AutoComplete.css +484 -484
- package/dist/esm/components/linecheck/LineCheckV2.css +484 -484
- package/dist/esm/components/linecheck/Success.css +484 -484
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/algoliasearch/dist/lite/builds/browser.js +1 -1
- package/dist/esm/node_modules/algoliasearch/dist/lite/builds/browser.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/version.js +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/version.js.map +1 -1
- package/dist/esm/node_modules/immer/dist/immer.js +1 -1
- package/dist/esm/node_modules/immer/dist/immer.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/helpers/insights.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/helpers/insights.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/InstantSearch.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/InstantSearch.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/version.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/version.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/widgets/index/index.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/widgets/index/index.js.map +1 -1
- package/dist/esm/node_modules/react-instantsearch/dist/es/ui/SearchBox.js +1 -1
- package/dist/esm/node_modules/react-instantsearch/dist/es/ui/SearchBox.js.map +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/version.js +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/version.js.map +1 -1
- package/dist/esm/services/customerSegmentSync.js +2 -0
- package/dist/esm/services/customerSegmentSync.js.map +1 -0
- package/dist/index.d.ts +22 -2
- package/dist/navigation.css +463 -463
- package/package.json +114 -114
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js +0 -2
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js.map +0 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js +0 -2
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js.map +0 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/now.js +0 -2
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/now.js.map +0 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/omit.js +0 -2
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/omit.js.map +0 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js +0 -2
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js.map +0 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js +0 -2
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js.map +0 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/now.js +0 -2
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/now.js.map +0 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/omit.js +0 -2
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/omit.js.map +0 -1
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
/* Mobile only viewport */
|
|
2
|
-
@media all and (max-width: 768px) {
|
|
3
|
-
.timer-wrap {
|
|
4
|
-
text-align: center !important;
|
|
5
|
-
margin-left: -4px !important;
|
|
6
|
-
margin-right: 0 !important;
|
|
7
|
-
}
|
|
8
|
-
.timer-container {
|
|
9
|
-
min-width: fit-content;
|
|
10
|
-
}
|
|
11
|
-
.timer-message {
|
|
12
|
-
margin-bottom: 10px;
|
|
13
|
-
}
|
|
14
|
-
.timer-section {
|
|
15
|
-
justify-content: center;
|
|
16
|
-
margin-top: 4px;
|
|
17
|
-
margin-left: unset !important;
|
|
18
|
-
margin-right: unset !important;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/* Mobile and tablet viewport */
|
|
22
|
-
@media all and (max-width: 1023px) {
|
|
23
|
-
.timer-message {
|
|
24
|
-
margin-top: unset;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Tablet only viewport */
|
|
29
|
-
@media all and (min-width: 768px) and (max-width: 1023px) {
|
|
30
|
-
.timer-section {
|
|
31
|
-
margin-top: unset;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.timer-container {
|
|
36
|
-
color: black;
|
|
37
|
-
display: inline-block;
|
|
38
|
-
max-width: 100%;
|
|
39
|
-
min-width: fit-content;
|
|
40
|
-
}
|
|
41
|
-
.colon {
|
|
42
|
-
font-weight: 700;
|
|
43
|
-
font-size: 28px;
|
|
44
|
-
line-height: 36px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.timer-section {
|
|
48
|
-
display: flex;
|
|
49
|
-
padding: 8px 18px 8px 24px;
|
|
50
|
-
}
|
|
51
|
-
.timer-element {
|
|
52
|
-
display: inline-block;
|
|
53
|
-
min-width: 42px;
|
|
54
|
-
padding: 0 6px;
|
|
55
|
-
text-align: center;
|
|
56
|
-
}
|
|
57
|
-
.timer-value {
|
|
58
|
-
font-weight: 700;
|
|
59
|
-
font-size: 32px;
|
|
60
|
-
line-height: 36px;
|
|
61
|
-
}
|
|
62
|
-
.timer-label {
|
|
63
|
-
font-weight: 400;
|
|
64
|
-
font-size: 12px;
|
|
65
|
-
line-height: 16px;
|
|
66
|
-
}
|
|
67
|
-
.transparent-element:first-child {
|
|
68
|
-
padding-left: 0;
|
|
1
|
+
/* Mobile only viewport */
|
|
2
|
+
@media all and (max-width: 768px) {
|
|
3
|
+
.timer-wrap {
|
|
4
|
+
text-align: center !important;
|
|
5
|
+
margin-left: -4px !important;
|
|
6
|
+
margin-right: 0 !important;
|
|
7
|
+
}
|
|
8
|
+
.timer-container {
|
|
9
|
+
min-width: fit-content;
|
|
10
|
+
}
|
|
11
|
+
.timer-message {
|
|
12
|
+
margin-bottom: 10px;
|
|
13
|
+
}
|
|
14
|
+
.timer-section {
|
|
15
|
+
justify-content: center;
|
|
16
|
+
margin-top: 4px;
|
|
17
|
+
margin-left: unset !important;
|
|
18
|
+
margin-right: unset !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/* Mobile and tablet viewport */
|
|
22
|
+
@media all and (max-width: 1023px) {
|
|
23
|
+
.timer-message {
|
|
24
|
+
margin-top: unset;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Tablet only viewport */
|
|
29
|
+
@media all and (min-width: 768px) and (max-width: 1023px) {
|
|
30
|
+
.timer-section {
|
|
31
|
+
margin-top: unset;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.timer-container {
|
|
36
|
+
color: black;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
min-width: fit-content;
|
|
40
|
+
}
|
|
41
|
+
.colon {
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
font-size: 28px;
|
|
44
|
+
line-height: 36px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.timer-section {
|
|
48
|
+
display: flex;
|
|
49
|
+
padding: 8px 18px 8px 24px;
|
|
50
|
+
}
|
|
51
|
+
.timer-element {
|
|
52
|
+
display: inline-block;
|
|
53
|
+
min-width: 42px;
|
|
54
|
+
padding: 0 6px;
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
.timer-value {
|
|
58
|
+
font-weight: 700;
|
|
59
|
+
font-size: 32px;
|
|
60
|
+
line-height: 36px;
|
|
61
|
+
}
|
|
62
|
+
.timer-label {
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
line-height: 16px;
|
|
66
|
+
}
|
|
67
|
+
.transparent-element:first-child {
|
|
68
|
+
padding-left: 0;
|
|
69
69
|
}
|
|
70
70
|
/* center a block element */
|
|
71
71
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import{calculateDateTime as r}from"../RibbonComponent/utils.js";import{CUSTOMER_GROUP_STORAGE_KEY as i,RIBBON_DISMISS_UPDATED_EVENT as o,DISMISSED_RIBBONS_STORAGE_KEY as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import{calculateDateTime as r}from"../RibbonComponent/utils.js";import{CUSTOMER_GROUP_STORAGE_KEY as i,RIBBON_DISMISS_UPDATED_EVENT as o,CUSTOMER_SEGMENT_REFRESH_EVENT as s,DISMISSED_RIBBONS_STORAGE_KEY as u}from"../Constants.js";const l=e=>e.trim().toLowerCase(),a=()=>{if("undefined"==typeof window)return new Set;const e=window.localStorage.getItem("tealium_va");if(!e)return new Set;try{const t=JSON.parse(e),n=null==t?void 0:t.audiences;return n&&"object"==typeof n?new Set(Object.keys(n).filter(Boolean).map(e=>String(e).trim().toLowerCase())):new Set}catch(e){return new Set}},c=e=>e?Array.isArray(e)?e:[e]:[],m=e=>e?r(new Date(e.trim().replace(/-/g,"/"))):null,d=()=>{if("undefined"==typeof window)return{};const e=window.localStorage.getItem(u);if(!e)return{};try{const t=JSON.parse(e);return t&&"object"==typeof t?Object.entries(t).reduce((e,[t,n])=>("string"==typeof t&&Number.isFinite(n)&&(e[t]=Number(n)),e),{}):{}}catch(e){return{}}},w=(e,t)=>{const n=Object.entries(e).filter(([,e])=>Number.isFinite(e)&&Number(e)>t),r=Object.fromEntries(n);return"undefined"!=typeof window&&(0===n.length?window.localStorage.removeItem(u):n.length!==Object.keys(e).length&&window.localStorage.setItem(u,JSON.stringify(r))),r},f=({ribbonConfig:r,metadata:u,channel:f,renderRibbon:b})=>{const[g,p]=t(null),[h,y]=t(new Set),[v,S]=t(!1),[T,j]=t(new Date),[L,N]=t(0);n(()=>{if("undefined"==typeof window)return;const e=window.localStorage.getItem(i);p(e),y(a()),S(!0)},[]),n(()=>{if("undefined"==typeof window)return;const e=()=>{N(e=>e+1),j(new Date)};return window.addEventListener(o,e),()=>{window.removeEventListener(o,e)}},[]),n(()=>{if("undefined"==typeof window)return;const e=()=>{p(window.localStorage.getItem(i)),y(a()),j(new Date)};return window.addEventListener(s,e),()=>{window.removeEventListener(s,e)}},[]);const C=r||(null==u?void 0:u.ribbonConfig),O=f||process.env.NEXT_PUBLIC_CHANNEL||"";if(n(()=>{var e;if(!(null===(e=null==C?void 0:C.ribbons)||void 0===e?void 0:e.length))return;const t=T.getTime(),n=w(d(),t),r=C.ribbons.flatMap(e=>{const n=[],r=m(e.scheduleStartTime),i=m(e.scheduleEndTime);if(r){const e=r.getTime();e>t&&n.push(e)}if(i){const e=i.getTime();e>t&&n.push(e)}return n}).concat(Object.values(n).filter(e=>e>t)).sort((e,t)=>e-t)[0];if(!r)return;const i=r-t,o=window.setTimeout(()=>{j(new Date)},Math.max(i,0));return()=>{window.clearTimeout(o)}},[null==C?void 0:C.ribbons,T,L]),!v)return null;if(!(null==C?void 0:C.ribbons)||!Array.isArray(C.ribbons)||0===C.ribbons.length)return null;const A=w(d(),T.getTime()),E=C.ribbons.filter(e=>{if(!e.component)return!1;if(e._uid&&A[e._uid]&&A[e._uid]>T.getTime())return!1;if(!((e,t)=>{const n=m(e.scheduleStartTime),r=m(e.scheduleEndTime),i=!n||t.getTime()>=n.getTime(),o=!r||r.getTime()>t.getTime();return i&&o})(e,T))return!1;if((null==e?void 0:e.microsites)&&!((e,t)=>{if(!Array.isArray(e.microsites)||0===e.microsites.length)return!1;const n=l(t);return e.microsites.some(e=>"string"==typeof e&&l(e)===n)})(e,O))return!1;if("globalPromoRibbon"!==e.component)return!0;return c(e.tealiumAudiences).length>0?((e,t)=>{const n=c(e).map(e=>String(e).trim().toLowerCase());return!n.length||!!t.size&&n.some(e=>t.has(e))})(e.tealiumAudiences,h):((e,t)=>{const n=c(e).map(e=>String(e).trim().toLowerCase());return!n.length||!!n.includes("all")||!!t&&n.includes(t.toLowerCase())})(e.customerType,g)}),_=E.find(e=>"heroLogin"===e.component),I=E.find(e=>"heroLogin"!==e.component),D=[];return I&&D.push(I),_&&D.push(_),0===D.length?null:e("div",{className:"ribbons-wrapper",children:D.map((t,n)=>e("div",{className:"ribbon-item",children:b(Object.assign(Object.assign({},t),{_uid:t._uid||`ribbon-${n}`,component:t.component}),n)},t._uid||n))})};export{f as default};
|
|
2
2
|
//# sourceMappingURL=RibbonRenderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RibbonRenderer.js","sources":["../../../../../src/components/RibbonRenderer/RibbonRenderer.tsx"],"sourcesContent":[null],"names":["normalizeMicrositeValue","value","trim","toLowerCase","
|
|
1
|
+
{"version":3,"file":"RibbonRenderer.js","sources":["../../../../../src/components/RibbonRenderer/RibbonRenderer.tsx"],"sourcesContent":[null],"names":["normalizeMicrositeValue","value","trim","toLowerCase","getTealiumAudienceKeys","window","Set","rawValue","localStorage","getItem","parsed","JSON","parse","audiences","Object","keys","filter","Boolean","map","audience","String","_a","normalizeStringArray","Array","isArray","getScheduleDateTime","calculateDateTime","Date","replace","getDismissedRibbonsMap","DISMISSED_RIBBONS_STORAGE_KEY","entries","reduce","acc","uid","expiresAt","Number","isFinite","pruneExpiredDismissedRibbons","dismissedRibbonsMap","nowMs","activeEntries","cleanedMap","fromEntries","length","removeItem","setItem","stringify","RibbonRenderer","ribbonConfig","metadata","channel","renderRibbon","userCustomerGroup","setUserCustomerGroup","useState","tealiumAudiences","setTealiumAudiences","isHydrated","setIsHydrated","currentTime","setCurrentTime","dismissedRibbonVersion","setDismissedRibbonVersion","useEffect","customerGroup","CUSTOMER_GROUP_STORAGE_KEY","onDismissedRibbonUpdated","previousVersion","addEventListener","RIBBON_DISMISS_UPDATED_EVENT","removeEventListener","onCustomerSegmentRefresh","CUSTOMER_SEGMENT_REFRESH_EVENT","resolvedRibbonConfig","currentChannel","process","env","NEXT_PUBLIC_CHANNEL","ribbons","presentTimeMs","getTime","nextRecalculationTimeMs","flatMap","ribbon","times","startTime","scheduleStartTime","endTime","scheduleEndTime","startTimeMs","push","endTimeMs","concat","values","timeMs","sort","a","b","delay","timer","setTimeout","Math","max","clearTimeout","eligibleRibbons","component","_uid","hasStarted","notExpired","isRibbonWithinScheduleWindow","microsites","normalizedChannel","some","microsite","isRibbonAllowedForChannel","ribbonAudiences","availableAudiences","normalizedRibbonAudiences","size","has","matchesTealiumAudiences","ribbonCustomerGroup","customerGroups","group","includes","matchesCustomerGroup","customerType","heroLoginRibbon","find","nonHeroLoginRibbon","ribbonsToRender","_jsx","className","children","index","assign"],"mappings":"8TA0CA,MAAMA,EAA2BC,GAA0BA,EAAMC,OAAOC,cAelEC,EAAyB,KAC7B,GAAsB,oBAAXC,OACT,OAAO,IAAIC,IAGb,MAAMC,EAAWF,OAAOG,aAAaC,QAAQ,cAC7C,IAAKF,EACH,OAAO,IAAID,IAGb,IACE,MAAMI,EAASC,KAAKC,MAAML,GACpBM,EAAYH,aAAM,EAANA,EAAQG,UAE1B,OAAKA,GAAkC,iBAAdA,EAIlB,IAAIP,IACTQ,OAAOC,KAAKF,GACTG,OAAOC,SACPC,IAAKC,GAAaC,OAAOD,GAAUjB,OAAOC,gBANtC,IAAIG,GAQf,CAAE,MAAAe,GACA,OAAO,IAAIf,GACb,GAGIgB,EAAwBrB,GACvBA,EACEsB,MAAMC,QAAQvB,GAASA,EAAQ,CAACA,GADpB,GA8CfwB,EAAuBxB,GACtBA,EAIEyB,EAAkB,IAAIC,KAAK1B,EAAMC,OAAO0B,QAAQ,KAAM,OAHpD,KAgBLC,EAAyB,KAC7B,GAAsB,oBAAXxB,OACT,MAAO,CAAA,EAGT,MAAME,EAAWF,OAAOG,aAAaC,QAAQqB,GAC7C,IAAKvB,EACH,MAAO,CAAA,EAGT,IACE,MAAMG,EAASC,KAAKC,MAAML,GAC1B,OAAKG,GAA4B,iBAAXA,EAIfI,OAAOiB,QAAQrB,GA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