@sunrise-upc/sales-static-components 4.4.0-beta.7 → 4.4.0-beta.8
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/DeviceGallery/DeviceGalleryList.js +1 -1
- package/dist/cjs/components/DeviceGallery/DeviceGalleryList.js.map +1 -1
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js +1 -1
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js.map +1 -1
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.module.scss.js +1 -1
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCards.js +1 -1
- package/dist/cjs/components/InternetAndTvCards/InternetAndTvCards.js.map +1 -1
- package/dist/cjs/components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js +1 -1
- package/dist/cjs/components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js.map +1 -1
- package/dist/cjs/components/StageTeaserV3/StageTeaserSwiperV3.js +1 -1
- package/dist/cjs/components/StageTeaserV3/StageTeaserSwiperV3.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/DeviceGallery/DeviceGalleryList.js +1 -1
- package/dist/esm/components/DeviceGallery/DeviceGalleryList.js.map +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js.map +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.module.scss.js +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCards.js +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCards.js.map +1 -1
- package/dist/esm/components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js +1 -1
- package/dist/esm/components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js.map +1 -1
- package/dist/esm/components/StageTeaserV3/StageTeaserSwiperV3.js +1 -1
- package/dist/esm/components/StageTeaserV3/StageTeaserSwiperV3.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +39 -2
- package/dist/navigation.css +648 -648
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './InternetAndTvCards.css';
|
|
2
|
-
import{jsxs as e,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as o,useRef as
|
|
2
|
+
import{jsxs as e,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as o,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 v}from"./InternetAndTvCardsArrows.js";import u from"../ResponsiveRow/row.js";import p 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 N,NONE as j,H1 as k,H2 as I,H3 as S,STACK as $}from"../Constants.js";const B=e=>"undefined"==typeof window?1:window.innerWidth>=1440?e:window.innerWidth>=1024?3:window.innerWidth>=768?2:1,x=({content:x,metadata:y})=>{var R,T,P,V,A,E,O,F,z,D;const L="2"===x.cardsInRow?2:"3"===x.cardsInRow?3:4,[W,_]=o([]),[G,M]=o(()=>B(L)),U=r(null),[q,H]=o(!0),[J,K]=o(!1);t(()=>{const e=((null==x?void 0:x.Cards)||[]).filter(e=>!e.notToDisplay);_(e)},[null==x?void 0:x.Cards]);const Q=W.length>G,X=Q&&(!0===x.loopSlides||"true"===x.loopSlides);t(()=>{const e=()=>M(B(L));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[L]);const Y=e=>{H(e.isBeginning),K(e.isEnd)},Z=()=>{var e;return null===(e=U.current)||void 0===e?void 0:e.slidePrev()},ee=()=>{var e;return null===(e=U.current)||void 0===e?void 0:e.slideNext()},ne="2"===x.cardsInRow&&2===x.Cards.length?C:"2"===x.cardsInRow&&x.Cards.length>2?f:"3"===x.cardsInRow?C:N,ie=null===(T=null===(R=x.gradientBackgroundGlobal)||void 0===R?void 0:R.replace(/;\s*$/,""))||void 0===T?void 0:T.trim(),oe=!!ie&&ie.toLowerCase()!==j,re=oe?"":g(x.gradientBackground),te=!oe&&x.gradientBackground!==j&&!!re,le=te?re:"",de=b(x.headlineColor),se=x.headlineColor&&x.headlineColor!==j?de:"",ae=x.headlineColor&&x.headlineColor===j?{color:null===(P=x.headlineColorPicker)||void 0===P?void 0:P.color}:{},ce=i=>e("div",{className:a["slider-wrapper"],children:[n(l,{modules:[s],className:`${a.swiper} ${Q?a["has-controls"]:""}`.trim(),slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,centerInsufficientSlides:!0,loop:X,rewind:!1,allowTouchMove:Q,grabCursor:!0,lazyPreload:!1,pagination:!!Q&&{clickable:!0},breakpoints:{768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1440:{slidesPerView:L,spaceBetween:16}},onSwiper:e=>{U.current=e,Y(e)},onSlideChange:Y,onReachBeginning:Y,onReachEnd:Y,onFromEdge:Y,children:i.map((e,i)=>n(d,{className:a.slide,children:n(c,{content:e,metadata:y,index:i})},e._uid))}),Q&&(X||!q)&&n(m,{onClick:Z}),Q&&(X||!J)&&n(v,{onClick:ee})]});return e("div",{className:`${a.container} ${le}`,id:x.id||"",style:Object.assign({},oe?{background:ie}:te?{}:{backgroundColor:null===(V=x.backgroundColor)||void 0===V?void 0:V.color}),children:[(null===(A=null==x?void 0:x.topSpace)||void 0===A?void 0:A.length)>0&&n(p,{content:x.topSpace[0]}),n(u,{children:e(i,{children:[(x.overlineText||(null===(E=x.description)||void 0===E?void 0:E.length)>0||(null===(O=null==x?void 0:x.button)||void 0===O?void 0:O.length)>0||x.title)&&e("div",{className:a["text-container"],children:[x.overlineText&&n("div",{className:a.overline,children:x.overlineText}),x.title&&x.headlineVariants===k?e("h1",{className:se,style:Object.assign({},ae),children:[x.title," "]}):x.headlineVariants===I?n("h2",{className:se,style:Object.assign({},ae),children:x.title}):x.headlineVariants===S?n("h3",{className:se,style:Object.assign({},ae),children:x.title}):n("h4",{className:se,style:Object.assign({},ae),children:x.title}),(null===(F=x.description)||void 0===F?void 0:F.length)>0&&n(w,{content:x.description[0]}),(null==x?void 0:x.button)&&(null===(z=null==x?void 0:x.button)||void 0===z?void 0:z.length)>0&&n("div",{className:a.btn,children:n(h,{content:x.button[0],eventAction:x.title,metadata:y})})]}),x.isMobSlider&&x.variant===$?e(i,{children:[n("div",{className:`row ${a.cards} d-none d-sm-block`,children:W.map((e,i)=>n("div",{className:`${ne} col-md-4 col-sm-6 ${a.card}`,children:n(c,{content:e,metadata:y,index:i})},e._uid))}),n("div",{className:`d-block d-sm-none ${a.carousel}`,children:W.length>0&&ce(W)})]}):x.variant===$?n("div",{className:`row ${a.cards}`,children:W.map((e,i)=>n("div",{className:`${ne} col-md-4 col-sm-6 ${a.card}`,children:n(c,{content:e,metadata:y,index:i})},e._uid))}):n("div",{className:a.carousel,children:W.length>0&&ce(W)})]})}),(null===(D=null==x?void 0:x.bottomSpace)||void 0===D?void 0:D.length)>0&&n(p,{content:x.bottomSpace[0]})]})};export{x 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","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","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","_Fragment","_k","bottomSpace"],"mappings":"00BAsDA,MAAMA,EAAoBC,GACF,oBAAXC,OAA+B,EACtCA,OAAOC,YAAc,KAAaF,EAClCC,OAAOC,YAAc,KAAa,EAClCD,OAAOC,YAAc,IAAY,EAC9B,EAGHC,EAAqB,EAAGC,UAASC,uCACrC,MAAMC,EAA4C,MAAvBF,EAAQG,WAAqB,EAA2B,MAAvBH,EAAQG,WAAqB,EAAI,GACtFC,EAAWC,GAAgBC,EAAwC,KACnEC,EAAeC,GAAoBF,EAAS,IAAMX,EAAiBO,IACpEO,EAAYC,EAAY,OACvBC,EAAaC,GAAkBN,GAAS,IACxCO,EAAOC,GAAYR,GAAS,GAEnCS,EAAU,KACR,MAAMC,IAAgBhB,aAAO,EAAPA,EAASiB,QAAS,IAAIC,OAAQC,IAAUA,EAAKC,cACnEf,EAAaW,IACZ,CAAChB,aAAO,E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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","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","_Fragment","_k","bottomSpace"],"mappings":"00BAsDA,MAAMA,EAAoBC,GACF,oBAAXC,OAA+B,EACtCA,OAAOC,YAAc,KAAaF,EAClCC,OAAOC,YAAc,KAAa,EAClCD,OAAOC,YAAc,IAAY,EAC9B,EAGHC,EAAqB,EAAGC,UAASC,uCACrC,MAAMC,EAA4C,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 -1,3 +1,3 @@
|
|
|
1
1
|
import './InternetAndTvCardsBenefits.css';
|
|
2
|
-
import{jsxs as l,jsx as n,Fragment as e}from"react/jsx-runtime";import o from"./InternetAndTvCardItemBenefits.js";import i from"./InternetAndTvCardsBenefits.module.scss.js";import{useState as d,useRef as t,useEffect as r}from"react";import{Swiper as
|
|
2
|
+
import{jsxs as l,jsx as n,Fragment as e}from"react/jsx-runtime";import o from"./InternetAndTvCardItemBenefits.js";import i from"./InternetAndTvCardsBenefits.module.scss.js";import{useState as d,useRef as t,useEffect as r}from"react";import{Swiper as a,SwiperSlide as s}from"swiper/react";import{Pagination as c}from"swiper/modules";import"swiper/css";import"swiper/css/pagination";import v from"../ResponsiveRow/row.js";import{LeftArrow as u,RightArrow as m}from"../InternetAndTvCards/InternetAndTvCardsArrows.js";import p from"../FalconDescription/FalconDescription.js";import{getFalconColorsClass as h}from"../../utils/StyleUtils.js";import w from"../FalconButton/falconButton.js";import g from"../Spacer/spacer.js";import{COLLG4 as b,COLLG6 as C,COLLG3 as f,NONE as N,H1 as j,H2 as B,H3 as k,STACK as S}from"../Constants.js";const I=l=>"undefined"==typeof window?1:window.innerWidth>=1440?l:window.innerWidth>=1024?3:window.innerWidth>=768?2:1,$=({content:$,metadata:y})=>{var R,T,P,x,V,A,E,F;const G="2"===(null==$?void 0:$.cardsInRow)?2:"3"===(null==$?void 0:$.cardsInRow)?3:4,O="2"===(null==$?void 0:$.cardsInRow)&&2==(null==$?void 0:$.Cards.length)?b:"2"===(null==$?void 0:$.cardsInRow)&&(null==$?void 0:$.Cards.length)>2?C:"3"===(null==$?void 0:$.cardsInRow)?b:f,z=(null==$?void 0:$.gradientBackgroundGlobal)&&"none"!==(null==$?void 0:$.gradientBackgroundGlobal)?null==$?void 0:$.gradientBackgroundGlobal.replace(/;\s*$/,""):void 0,D=h(null==$?void 0:$.headlineColor),W=(null==$?void 0:$.headlineColor)&&(null==$?void 0:$.headlineColor)!==N?D:"",L=(null==$?void 0:$.headlineColor)&&(null==$?void 0:$.headlineColor)===N?{color:null===(R=null==$?void 0:$.headlineColorPicker)||void 0===R?void 0:R.color}:{},[M,U]=d([]),[q,H]=d(()=>I(G)),J=t(null),[K,Q]=d(!0),[X,Y]=d(!1);r(()=>{var l;const n=[];(null===(l=null==$?void 0:$.Cards)||void 0===l?void 0:l.length)>0&&(null==$||$.Cards.map(l=>{!l.notToDisplay&&n.push(l)})),U(n)},[]);const Z=M.length>q,_=Z&&(!0===(null==$?void 0:$.loopSlides)||"true"===(null==$?void 0:$.loopSlides));r(()=>{const l=()=>H(I(G));return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[G]);const ll=l=>{Q(l.isBeginning),Y(l.isEnd)},nl=()=>{var l;return null===(l=J.current)||void 0===l?void 0:l.slidePrev()},el=()=>{var l;return null===(l=J.current)||void 0===l?void 0:l.slideNext()},ol=e=>l("div",{className:i["slider-wrapper"],children:[n(a,{modules:[c],className:`${i.swiper} ${Z?i["has-controls"]:""}`.trim(),slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,loop:_,rewind:!1,allowTouchMove:Z,grabCursor:!0,lazyPreload:!1,pagination:!!Z&&{clickable:!0},breakpoints:{768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1440:{slidesPerView:G,spaceBetween:16}},onSwiper:l=>{J.current=l,ll(l)},onSlideChange:ll,onReachBeginning:ll,onReachEnd:ll,onFromEdge:ll,children:e.map((l,e)=>n(s,{className:i.slide,children:n(o,{content:l,metadata:y})},e))}),Z&&(_||!K)&&n(u,{onClick:nl}),Z&&(_||!X)&&n(m,{onClick:el})]});return l("div",{className:i.container,id:(null==$?void 0:$.id)||"",style:{background:z||(null===(T=null==$?void 0:$.backgroundColor)||void 0===T?void 0:T.color)},children:[(null===(P=null==$?void 0:$.topSpace)||void 0===P?void 0:P.length)>0&&n(g,{content:null==$?void 0:$.topSpace[0]}),n(v,{children:l(e,{children:[((null==$?void 0:$.overlineText)||(null===(x=null==$?void 0:$.description)||void 0===x?void 0:x.length)>0||(null===(V=null==$?void 0:$.button)||void 0===V?void 0:V.length)>0||(null==$?void 0:$.title))&&l("div",{className:i["text-container"],children:[(null==$?void 0:$.overlineText)&&n("div",{className:i.overline,children:null==$?void 0:$.overlineText}),(null==$?void 0:$.title)&&(null==$?void 0:$.headlineVariants)===j?l("h1",{className:W,style:Object.assign({},L),children:[null==$?void 0:$.title," "]}):(null==$?void 0:$.headlineVariants)===B?n("h2",{className:W,style:Object.assign({},L),children:null==$?void 0:$.title}):(null==$?void 0:$.headlineVariants)===k?n("h3",{className:W,style:Object.assign({},L),children:null==$?void 0:$.title}):n("h4",{className:W,style:Object.assign({},L),children:null==$?void 0:$.title}),(null===(A=null==$?void 0:$.description)||void 0===A?void 0:A.length)>0&&n(p,{content:null==$?void 0:$.description[0]}),(null==$?void 0:$.button)&&(null===(E=null==$?void 0:$.button)||void 0===E?void 0:E.length)>0&&n("div",{className:i.btn,children:n(w,{content:null==$?void 0:$.button[0],eventAction:null==$?void 0:$.title,metadata:y})})]}),(null==$?void 0:$.isMobSlider)&&(null==$?void 0:$.variant)===S?l(e,{children:[n("div",{className:`row ${i.cards} d-none d-sm-block`,children:(null==M?void 0:M.length)>0&&(null==M?void 0:M.map((l,e)=>n("div",{className:`${O} col-md-4 col-sm-6 ${i.card}`,children:n(o,{content:l,metadata:y})},e)))}),n("div",{className:`d-block d-sm-none ${i.carousel}`,children:(null==M?void 0:M.length)>0&&ol(M)})]}):(null==$?void 0:$.variant)===S?n("div",{className:`row ${i.cards}`,children:(null==M?void 0:M.length)>0&&(null==M?void 0:M.map((l,e)=>n("div",{className:`${O} col-md-4 col-sm-6 ${i.card}`,children:n(o,{content:l,metadata:y})},e)))}):n("div",{className:i.carousel,children:(null==M?void 0:M.length)>0&&ol(M)})]})}),(null===(F=null==$?void 0:$.bottomSpace)||void 0===F?void 0:F.length)>0&&n(g,{content:null==$?void 0:$.bottomSpace[0]})]})};export{$ as default};
|
|
3
3
|
//# sourceMappingURL=InternetAndTvCardsBenefits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternetAndTvCardsBenefits.js","sources":["../../../../../src/components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.tsx"],"sourcesContent":[null],"names":["getSlidesPerView","largeDesktopSlides","window","innerWidth","InternetAndTvCardsBenefits","content","metadata","numberOfCardsInrow","cardsInRow","cols","Cards","length","COLLG4","COLLG6","COLLG3","backgroundGradient","gradientBackgroundGlobal","replace","undefined","headlineStyle","getFalconColorsClass","headlineColor","titleClassname","NONE","titleColor","color","headlineColorPicker","_a","cardItems","setCardItems","useState","slidesPerView","setSlidesPerView","swiperRef","useRef","isBeginning","setIsBeginning","isEnd","setIsEnd","useEffect","arr","map","card","notToDisplay","push","hasOverflow","shouldLoop","loopSlides","handleResize","addEventListener","removeEventListener","updateNavigationState","swiper","slidePrevious","current","slidePrev","slideNext","renderCarousel","items","_jsxs","className","Styles","children","_jsx","Swiper","modules","Pagination","trim","slidesPerGroup","spaceBetween","loop","rewind","allowTouchMove","grabCursor","pagination","clickable","breakpoints","onSwiper","onSlideChange","onReachBeginning","onReachEnd","onFromEdge","index","SwiperSlide","InternetAndTvCardItemBenefits","LeftArrow","onClick","RightArrow","id","style","background","_b","backgroundColor","_c","topSpace","Spacer","Row","_Fragment","overlineText","_d","description","_e","button","title","headlineVariants","H1","Object","assign","H2","H3","_f","FalconDescription","_g","FalconButton","eventAction","isMobSlider","variant","STACK","_h","bottomSpace"],"mappings":"4zBA4CA,MAAMA,EAAoBC,GACF,oBAAXC,OAA+B,EACtCA,OAAOC,YAAc,KAAaF,EAClCC,OAAOC,YAAc,KAAa,EAClCD,OAAOC,YAAc,IAAY,EAC9B,EAGHC,EAAuC,EAC3CC,UACAC,mCAEA,MAAMC,EAA6C,OAAxBF,aAAO,EAAPA,EAASG,YAAqB,EAA4B,OAAxBH,aAAO,EAAPA,EAASG,YAAqB,EAAI,EACzFC,EACoB,OAAxBJ,aAA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AoB,SAAUF,IACjD,CAACzC,IAEJ,MAAM4C,GAAyBC,IAC7BhB,EAAegB,EAAOjB,aACtBG,EAASc,EAAOf,QAGZgB,GAAgB,WAAM,OAAiB,QAAjB1B,EAAAM,EAAUqB,eAAO,IAAA3B,OAAA,EAAAA,EAAE4B,aACzCC,GAAY,WAAM,OAAiB,QAAjB7B,EAAAM,EAAUqB,eAAO,IAAA3B,OAAA,EAAAA,EAAE6B,aAErCC,GAAkBC,GACtBC,EAAA,MAAA,CAAKC,UAAWC,EAAO,kBAAiBC,SAAA,CACtCC,EAACC,EAAM,
|
|
1
|
+
{"version":3,"file":"InternetAndTvCardsBenefits.js","sources":["../../../../../src/components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.tsx"],"sourcesContent":[null],"names":["getSlidesPerView","largeDesktopSlides","window","innerWidth","InternetAndTvCardsBenefits","content","metadata","numberOfCardsInrow","cardsInRow","cols","Cards","length","COLLG4","COLLG6","COLLG3","backgroundGradient","gradientBackgroundGlobal","replace","undefined","headlineStyle","getFalconColorsClass","headlineColor","titleClassname","NONE","titleColor","color","headlineColorPicker","_a","cardItems","setCardItems","useState","slidesPerView","setSlidesPerView","swiperRef","useRef","isBeginning","setIsBeginning","isEnd","setIsEnd","useEffect","arr","map","card","notToDisplay","push","hasOverflow","shouldLoop","loopSlides","handleResize","addEventListener","removeEventListener","updateNavigationState","swiper","slidePrevious","current","slidePrev","slideNext","renderCarousel","items","_jsxs","className","Styles","children","_jsx","Swiper","modules","Pagination","trim","slidesPerGroup","spaceBetween","loop","rewind","allowTouchMove","grabCursor","lazyPreload","pagination","clickable","breakpoints","onSwiper","onSlideChange","onReachBeginning","onReachEnd","onFromEdge","index","SwiperSlide","InternetAndTvCardItemBenefits","LeftArrow","onClick","RightArrow","id","style","background","_b","backgroundColor","_c","topSpace","Spacer","Row","_Fragment","overlineText","_d","description","_e","button","title","headlineVariants","H1","Object","assign","H2","H3","_f","FalconDescription","_g","FalconButton","eventAction","isMobSlider","variant","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,QAAS,IACnBiB,aAAS,EAATA,EAAWa,IAAI,CAACC,EAAsCyC,IACpDpB,EAAA,MAAA,CAAiBH,UAAW,GAAGnD,uBAA0BoD,EAAa,gBACpEE,EAACsB,EAA6B,CAAChF,QAASqC,EAAMpC,SAAUA,KADhD6E,OAOhBpB,EAAA,MAAA,CAAKH,UAAWC,EAAiB,SAACC,UAC/BlC,eAAAA,EAAWjB,QAAS,GAAK8C,GAAe7B,WAM5B,QAApB2F,EAAAlH,eAAAA,EAASmH,mBAAW,IAAAD,OAAA,EAAAA,EAAE5G,QAAS,GAAKoD,EAACiC,EAAM,CAAC3F,QAASA,aAAO,EAAPA,EAASmH,YAAY"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './StageTeaserSwiperV3.css';
|
|
2
|
-
import{jsxs as o,jsx as e}from"react/jsx-runtime";import i,{useState as t,useMemo as l}from"react";import{viewport as n}from"../../utils/formatField.js";import{Swiper as r,SwiperSlide as a}from"swiper/react";import{Autoplay as s,Navigation as d,Pagination as c}from"swiper/modules";import"swiper/css";import"swiper/css/navigation";import"swiper/css/pagination";import u from"./StageTeaserSwiperV3Style.module.scss.js";import{trackNewDatalayerEvent as m}from"../../utils/AnalyticUtils.js";import{ICONPOSITIONLEFT as v,COMPONENTLINK as p,CAROUSELICONCLICK as h,GAEVENT as g,ICONPOSITIONRIGHT as w}from"../../utils/AnalyticsConstants.js";const f=o=>{if(i.isValidElement(o))return o.props.content},y=({onClick:i,active:t,index:l,autoPlaySpeed:r,swiperItems:a,showProgress:s,loadingBarTextColor:d})=>{var c;const m=n(),v="string"==typeof(p=d)?p:null==p?void 0:p.color;var p;return o("div",{className:u.customDotWrapper,onClick:()=>i(),children:[e("div",{style:{width:"100%"},children:e("button",{className:u.customDot,"aria-label":`Go to slide ${l+1}`,children:e("span",{className:`${u.progress} ${s&&t?u.animate:""}`,style:s?{animationDuration:`${r}ms`}:{width:t?"100%":"0%"}})})}),"mobile"!==m?e("div",{className:`${u.dotText} ${t?u.dotTextActive:""}`,style:v?{color:v}:void 0,children:null===(c=f(null==a?void 0:a[l]))||void 0===c?void 0:c.loadingBarText}):null]})},x=n=>{var f,x,S,N,B,C,P;const[b,T]=t(null),[$,k]=t(0),I=l(()=>i.Children.toArray(n.children),[n.children]),j=l(()=>{if(I.length<5){const o=Math.ceil(5/Math.max(I.length,1));return Array.from({length:o},()=>I).flat()}return I},[I]),A=j.length>1,D=Number((null===(f=null==n?void 0:n.content)||void 0===f?void 0:f.autoPlaySpeed)||0),V=D>0,F=V?1e3*D:36e5,W=null===(S=null===(x=null==n?void 0:n.content)||void 0===x?void 0:x.solidBgColor)||void 0===S?void 0:S.color,L=!(null===(N=null==n?void 0:n.content)||void 0===N?void 0:N.showBottomNavigation)&&(null===(B=null==n?void 0:n.content)||void 0===B?void 0:B.showBottomDots);return o("div",{style:{backgroundColor:W},className:`${u.swiper} ${(null==n?void 0:n.isFullWidth)?u.fullWidth:""}`,children:[e(r,{modules:[s,d,c],onSwiper:o=>{T(o),k(0)},onSlideChange:o=>k(I.length?o.realIndex%I.length:o.realIndex),initialSlide:0,loop:A,centeredSlides:!0,centeredSlidesBounds:!1,centerInsufficientSlides:!0,slidesPerView:"auto",spaceBetween:16,grabCursor:!0,autoplay:!!(null===(C=null==n?void 0:n.content)||void 0===C?void 0:C.autoPlaySpeed)&&{delay:F,disableOnInteraction:!1,waitForTransition:!0},breakpoints:{1124:{slidesPerView:"auto",spaceBetween:48},768:{slidesPerView:"auto",spaceBetween:16}},navigation:!0,pagination:!!L&&{clickable:!0},onNavigationNext:()=>{m(g,h,{component:p,selection:w})},onNavigationPrev:()=>{m(g,h,{component:p,selection:v})},children:j.map((o,i)=>e(a,{className:u.slide,children:o},i))}),(null===(P=null==n?void 0:n.content)||void 0===P?void 0:P.showBottomNavigation)?e("div",{className:u.customDotListStyle,children:I.map((o,i)=>{var t;return e(y,{index:i,active:$===i,onClick:()=>null==b?void 0:b.slideToLoop(i),autoPlaySpeed:F,swiperItems:I,showProgress:V,loadingBarTextColor:null===(t=n.content)||void 0===t?void 0:t.loadingBarTextColor},i)})}):null]})};export{x as default};
|
|
2
|
+
import{jsxs as o,jsx as e}from"react/jsx-runtime";import i,{useState as t,useMemo as l}from"react";import{viewport as n}from"../../utils/formatField.js";import{Swiper as r,SwiperSlide as a}from"swiper/react";import{Autoplay as s,Navigation as d,Pagination as c}from"swiper/modules";import"swiper/css";import"swiper/css/navigation";import"swiper/css/pagination";import u from"./StageTeaserSwiperV3Style.module.scss.js";import{trackNewDatalayerEvent as m}from"../../utils/AnalyticUtils.js";import{ICONPOSITIONLEFT as v,COMPONENTLINK as p,CAROUSELICONCLICK as h,GAEVENT as g,ICONPOSITIONRIGHT as w}from"../../utils/AnalyticsConstants.js";const f=o=>{if(i.isValidElement(o))return o.props.content},y=({onClick:i,active:t,index:l,autoPlaySpeed:r,swiperItems:a,showProgress:s,loadingBarTextColor:d})=>{var c;const m=n(),v="string"==typeof(p=d)?p:null==p?void 0:p.color;var p;return o("div",{className:u.customDotWrapper,onClick:()=>i(),children:[e("div",{style:{width:"100%"},children:e("button",{className:u.customDot,"aria-label":`Go to slide ${l+1}`,children:e("span",{className:`${u.progress} ${s&&t?u.animate:""}`,style:s?{animationDuration:`${r}ms`}:{width:t?"100%":"0%"}})})}),"mobile"!==m?e("div",{className:`${u.dotText} ${t?u.dotTextActive:""}`,style:v?{color:v}:void 0,children:null===(c=f(null==a?void 0:a[l]))||void 0===c?void 0:c.loadingBarText}):null]})},x=n=>{var f,x,S,N,B,C,P;const[b,T]=t(null),[$,k]=t(0),I=l(()=>i.Children.toArray(n.children),[n.children]),j=l(()=>{if(I.length<5){const o=Math.ceil(5/Math.max(I.length,1));return Array.from({length:o},()=>I).flat()}return I},[I]),A=j.length>1,D=Number((null===(f=null==n?void 0:n.content)||void 0===f?void 0:f.autoPlaySpeed)||0),V=D>0,F=V?1e3*D:36e5,W=null===(S=null===(x=null==n?void 0:n.content)||void 0===x?void 0:x.solidBgColor)||void 0===S?void 0:S.color,L=!(null===(N=null==n?void 0:n.content)||void 0===N?void 0:N.showBottomNavigation)&&(null===(B=null==n?void 0:n.content)||void 0===B?void 0:B.showBottomDots);return o("div",{style:{backgroundColor:W},className:`${u.swiper} ${(null==n?void 0:n.isFullWidth)?u.fullWidth:""}`,children:[e(r,{modules:[s,d,c],onSwiper:o=>{T(o),k(0)},onSlideChange:o=>k(I.length?o.realIndex%I.length:o.realIndex),initialSlide:0,loop:A,centeredSlides:!0,centeredSlidesBounds:!1,centerInsufficientSlides:!0,slidesPerView:"auto",spaceBetween:16,grabCursor:!0,lazyPreload:!1,autoplay:!!(null===(C=null==n?void 0:n.content)||void 0===C?void 0:C.autoPlaySpeed)&&{delay:F,disableOnInteraction:!1,waitForTransition:!0},breakpoints:{1124:{slidesPerView:"auto",spaceBetween:48},768:{slidesPerView:"auto",spaceBetween:16}},navigation:!0,pagination:!!L&&{clickable:!0},onNavigationNext:()=>{m(g,h,{component:p,selection:w})},onNavigationPrev:()=>{m(g,h,{component:p,selection:v})},children:j.map((o,i)=>e(a,{className:u.slide,children:o},i))}),(null===(P=null==n?void 0:n.content)||void 0===P?void 0:P.showBottomNavigation)?e("div",{className:u.customDotListStyle,children:I.map((o,i)=>{var t;return e(y,{index:i,active:$===i,onClick:()=>null==b?void 0:b.slideToLoop(i),autoPlaySpeed:F,swiperItems:I,showProgress:V,loadingBarTextColor:null===(t=n.content)||void 0===t?void 0:t.loadingBarTextColor},i)})}):null]})};export{x as default};
|
|
3
3
|
//# sourceMappingURL=StageTeaserSwiperV3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageTeaserSwiperV3.js","sources":["../../../../../src/components/StageTeaserV3/StageTeaserSwiperV3.tsx"],"sourcesContent":[null],"names":["getSlideContent","slide","React","isValidElement","props","content","CustomDot","onClick","active","index","autoPlaySpeed","swiperItems","showProgress","loadingBarTextColor","viewPort","viewport","textColor","value","color","_jsxs","className","styles","customDotWrapper","children","_jsx","style","width","customDot","progress","animate","animationDuration","dotText","dotTextActive","undefined","_a","loadingBarText","StageTeaserSwiperV3","swiperRef","setSwiperRef","useState","activeIndex","setActiveIndex","slides","useMemo","Children","toArray","slidesForLoop","length","copies","Math","ceil","max","Array","from","flat","shouldLoop","autoPlaySpeedValue","Number","time","solidBackGroundColor","_c","_b","solidBgColor","showDefaultDots","_d","showBottomNavigation","_e","showBottomDots","backgroundColor","swiper","isFullWidth","fullWidth","Swiper","modules","Autoplay","Navigation","Pagination","onSwiper","onSlideChange","realIndex","initialSlide","loop","centeredSlides","centeredSlidesBounds","centerInsufficientSlides","slidesPerView","spaceBetween","grabCursor","autoplay","_f","delay","disableOnInteraction","waitForTransition","breakpoints","navigation","pagination","clickable","onNavigationNext","trackNewDatalayerEvent","GAEVENT","CAROUSELICONCLICK","component","COMPONENTLINK","selection","ICONPOSITIONRIGHT","onNavigationPrev","ICONPOSITIONLEFT","map","SwiperSlide","_g","customDotListStyle","_","slideToLoop"],"mappings":"2nBAyCA,MAGMA,EAAmBC,IACvB,GAAKC,EAAMC,eAAsDF,GACjE,OAAOA,EAAMG,MAAMC,SAGfC,EAAY,EAChBC,UACAC,SACAC,QACAC,gBACAC,cACAC,eACAC,gCAEA,MAAMC,EAAWC,IACXC,EAjBW,iBADGC,EAkBWJ,GAjBHI,EAAQA,aAAK,EAALA,EAAOC,MADxB,IAACD,EAoBpB,OACEE,EAAA,MAAA,CAAKC,UAAWC,EAAOC,iBAAkBf,QAAS,IAAMA,IAASgB,SAAA,CAC/DC,EAAA,MAAA,CAAKC,MAAO,CAAEC,MAAO,QAAQH,SAC3BC,EAAA,SAAA,CAAQJ,UAAWC,EAAOM,UAAS,aAAc,eAAelB,EAAQ,IAAGc,SACzEC,EAAA,OAAA,CACEJ,UAAW,GAAGC,EAAOO,YAAYhB,GAAgBJ,EAASa,EAAOQ,QAAU,KAC3EJ,MACEb,EACI,CAAEkB,kBAAmB,GAAGpB,OACxB,CAAEgB,MAAOlB,EAAS,OAAS,YAKz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AAA,CAE3EC,EAACgD,EAAM,CACLC,QAAS,CAACC,EAAUC,EAAYC,GAChCC,SAAWR,IACT/B,EAAa+B,GACb5B,EAAe,IAEjBqC,cAAgBT,GACd5B,EAAeC,EAAOK,OAASsB,EAAOU,UAAYrC,EAAOK,OAASsB,EAAOU,WAE3EC,aAAc,EACdC,KAAM1B,EACN2B,gBAAgB,EAChBC,sBAAsB,EACtBC,0BAA0B,EAC1BC,cAAe,OACfC,aAAc,GACdC,YAAY,EACZC,YAAwB,QAAdC,
|
|
1
|
+
{"version":3,"file":"StageTeaserSwiperV3.js","sources":["../../../../../src/components/StageTeaserV3/StageTeaserSwiperV3.tsx"],"sourcesContent":[null],"names":["getSlideContent","slide","React","isValidElement","props","content","CustomDot","onClick","active","index","autoPlaySpeed","swiperItems","showProgress","loadingBarTextColor","viewPort","viewport","textColor","value","color","_jsxs","className","styles","customDotWrapper","children","_jsx","style","width","customDot","progress","animate","animationDuration","dotText","dotTextActive","undefined","_a","loadingBarText","StageTeaserSwiperV3","swiperRef","setSwiperRef","useState","activeIndex","setActiveIndex","slides","useMemo","Children","toArray","slidesForLoop","length","copies","Math","ceil","max","Array","from","flat","shouldLoop","autoPlaySpeedValue","Number","time","solidBackGroundColor","_c","_b","solidBgColor","showDefaultDots","_d","showBottomNavigation","_e","showBottomDots","backgroundColor","swiper","isFullWidth","fullWidth","Swiper","modules","Autoplay","Navigation","Pagination","onSwiper","onSlideChange","realIndex","initialSlide","loop","centeredSlides","centeredSlidesBounds","centerInsufficientSlides","slidesPerView","spaceBetween","grabCursor","lazyPreload","autoplay","_f","delay","disableOnInteraction","waitForTransition","breakpoints","navigation","pagination","clickable","onNavigationNext","trackNewDatalayerEvent","GAEVENT","CAROUSELICONCLICK","component","COMPONENTLINK","selection","ICONPOSITIONRIGHT","onNavigationPrev","ICONPOSITIONLEFT","map","SwiperSlide","_g","customDotListStyle","_","slideToLoop"],"mappings":"2nBAyCA,MAGMA,EAAmBC,IACvB,GAAKC,EAAMC,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UAAWC,EACXC,UAAWC,KAGfC,iBAAkB,KAChBP,EAAuBC,EAAQC,EAAkB,CAC/CC,UAAWC,EACXC,UAAWG,KAEdpF,SAEAuB,EAAc8D,IAAI,CAAC3G,EAAOQ,IACzBe,EAACqF,EAAW,CAAazF,UAAWC,EAAOpB,MAAKsB,SAC7CtB,GADeQ,OAKP,QAAdqG,EAAA1G,aAAK,EAALA,EAAOC,eAAO,IAAAyG,OAAA,EAAAA,EAAE7C,sBACfzC,EAAA,MAAA,CAAKJ,UAAWC,EAAO0F,mBAAkBxF,SACtCmB,EAAOkE,IAAI,CAACI,EAAGvG,WAAU,OACxBe,EAAClB,EAAS,CAERG,MAAOA,EACPD,OAAQgC,IAAgB/B,EACxBF,QAAS,IAAM8B,aAAS,EAATA,EAAW4E,YAAYxG,GACtCC,cAAegD,EACf/C,YAAa+B,EACb9B,aAAcA,EACdC,oBAAkC,QAAbqB,EAAA9B,EAAMC,eAAO,IAAA6B,OAAA,EAAAA,EAAErB,qBAP/BJ,OAWT"}
|
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 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{buildCartAnalyticsData,buildCartAnalyticsItems,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 CartItems}from"./components/FalconMainNavigation/CartOverlay/CartItems/CartItems.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{buildCartAnalyticsData,buildCartAnalyticsItems,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
|
@@ -647,6 +647,43 @@ interface CategoryItem {
|
|
|
647
647
|
icon?: Asset;
|
|
648
648
|
text?: string;
|
|
649
649
|
}
|
|
650
|
+
interface CartItemPrice {
|
|
651
|
+
oneTime?: {
|
|
652
|
+
final?: string;
|
|
653
|
+
original?: string;
|
|
654
|
+
};
|
|
655
|
+
recurring?: {
|
|
656
|
+
final?: string;
|
|
657
|
+
original?: string;
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
interface CartItem {
|
|
661
|
+
id: string;
|
|
662
|
+
name: string;
|
|
663
|
+
category: string;
|
|
664
|
+
quantity?: number;
|
|
665
|
+
variant?: string;
|
|
666
|
+
badges?: string[];
|
|
667
|
+
price: CartItemPrice;
|
|
668
|
+
imageUrl?: string;
|
|
669
|
+
paymentTerm?: string;
|
|
670
|
+
simPrice?: string;
|
|
671
|
+
}
|
|
672
|
+
interface CartTotals {
|
|
673
|
+
oneTime?: {
|
|
674
|
+
final?: string;
|
|
675
|
+
original?: string;
|
|
676
|
+
};
|
|
677
|
+
recurring?: {
|
|
678
|
+
final?: string;
|
|
679
|
+
original?: string;
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
interface CartItemsProps {
|
|
683
|
+
cartItems: CartItem[];
|
|
684
|
+
content?: HeaderCartContent;
|
|
685
|
+
}
|
|
686
|
+
declare const CartItems: ({ cartItems, content }: CartItemsProps) => react_jsx_runtime.JSX.Element;
|
|
650
687
|
|
|
651
688
|
interface CartCtaCard extends GenericSBProps {
|
|
652
689
|
text?: string;
|
|
@@ -978,5 +1015,5 @@ interface CartAnalyticsGAItem {
|
|
|
978
1015
|
*/
|
|
979
1016
|
declare const buildCartAnalyticsItems: (items?: CartAnalyticsItem[]) => CartAnalyticsGAItem[];
|
|
980
1017
|
|
|
981
|
-
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, buildCartAnalyticsData, buildCartAnalyticsItems, createCustomerGroupFetcher, createCustomerSegmentSync, customerGroup, dispatchCustomerSegmentRefreshEvent, extractCustomerGroupFromProfile, getCurrentCustomerSegment, getDeviceGalleryAnalyticsItem, getDeviceGallerySelectAnalyticsItem, hasCachedCustomerSegment, resolveCustomerGroup, setCustomerSegment, subscribeToCustomerSegmentRefresh, syncCustomerSegment, trackComponent, trackDeviceGalleryEligibility, trackErrorEvent, trackEvent, trackGADatalayerEvent, trackLineEvent, trackMessageEvent, trackNewDatalayerEvent };
|
|
982
|
-
export type { CartAnalyticsData, CartAnalyticsGAItem, 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 };
|
|
1018
|
+
export { BadgeContainer, ButtonGroup, CartItems, CartPropConfig, CustomerPropConfig, DeviceGalleryList, FalconButtonV3, FalconMainNavigation, GlobalPromoRibbon, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCardItem, InternetAndTvCards, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, MinimizedHeader, PromoBubble, PromotionTeaser, QuickLinks, RibbonComponent, RibbonRenderer, SearchWrapper, StageTeaserComponent, StageTeaserV3, TextComponent, buildCartAnalyticsData, buildCartAnalyticsItems, createCustomerGroupFetcher, createCustomerSegmentSync, customerGroup, dispatchCustomerSegmentRefreshEvent, extractCustomerGroupFromProfile, getCurrentCustomerSegment, getDeviceGalleryAnalyticsItem, getDeviceGallerySelectAnalyticsItem, hasCachedCustomerSegment, resolveCustomerGroup, setCustomerSegment, subscribeToCustomerSegmentRefresh, syncCustomerSegment, trackComponent, trackDeviceGalleryEligibility, trackErrorEvent, trackEvent, trackGADatalayerEvent, trackLineEvent, trackMessageEvent, trackNewDatalayerEvent };
|
|
1019
|
+
export type { CartAnalyticsData, CartAnalyticsGAItem, CartItem, CartItemPrice, CartItemsProps, CartPropConfigSchema, CartTotals, CategoryItem, 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 };
|