@tet/tet-components 1.4.145-testing → 1.4.146-testing
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/tet-carousel.cjs.entry.js +10 -6
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +10 -6
- package/dist/components/tet-carousel.js +1 -1
- package/dist/esm/tet-carousel.entry.js +10 -6
- package/dist/tet-components/p-df0e988a.entry.js +1 -0
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/tet-components/p-9b13b128.entry.js +0 -1
|
@@ -392,6 +392,10 @@ const TetCarousel = class {
|
|
|
392
392
|
return;
|
|
393
393
|
const item = assigned[this.activeItem];
|
|
394
394
|
if (item) {
|
|
395
|
+
if (this.focusAlignment === 'center') {
|
|
396
|
+
this.moveToItemCentered(item, this.activeItem);
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
395
399
|
this.moveToItem(item);
|
|
396
400
|
}
|
|
397
401
|
};
|
|
@@ -1003,22 +1007,22 @@ const TetCarousel = class {
|
|
|
1003
1007
|
trackTransition = 'none';
|
|
1004
1008
|
}
|
|
1005
1009
|
}
|
|
1006
|
-
return (index.h(index.Host, { key: '
|
|
1010
|
+
return (index.h(index.Host, { key: 'd63e8407669c5a236d828c26961e9d6a0daaef03' }, index.h("div", { key: '10049cfd20315cfd92a0ce7df758367512793d35', class: { 'tet-carousel': true, [`${this.theme}`]: true, 'tet-carousel--unified-buttons': this.unifiedButtons }, ref: (el) => (this.container = el), part: "carousel" }, index.h("div", { key: '414d3dcbb340ef8db7c98bca00e243be0a836a00', class: "tet-carousel__container" }, index.h("div", { key: '52f74d39266ade3e5a77dd61f6b129425b22e8dd', class: "tet-carousel__gradient-left", ref: (el) => {
|
|
1007
1011
|
this.leftGradientRef = el;
|
|
1008
|
-
} }), index.h("div", { key: '
|
|
1012
|
+
} }), index.h("div", { key: '4569aed57e83195e95ac23061ad3445deb0278ef', class: "tet-carousel__gradient-right", ref: (el) => {
|
|
1009
1013
|
this.rightGradientRef = el;
|
|
1010
|
-
} }), index.h("div", { key: '
|
|
1014
|
+
} }), index.h("div", { key: '837920b3b973468a647fa537e5921f3c3de6531e', class: `tet-carousel__track ${showControls ? '' : 'tet-carousel__track--center'}`, ref: (el) => (this.trackElement = el), style: {
|
|
1011
1015
|
transform: `translate3d(${this.dragOffset}px, 0, 0)`,
|
|
1012
1016
|
transition: trackTransition,
|
|
1013
1017
|
willChange: 'transform'
|
|
1014
|
-
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, index.h("div", { key: '
|
|
1018
|
+
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, index.h("div", { key: '2514c62246458e3f8714337550e5b9a8ac03e853', class: {
|
|
1015
1019
|
'tet-carousel__track-content': true,
|
|
1016
1020
|
'tet-carousel__track-content--nudge': this.isNudgeAnimating
|
|
1017
1021
|
}, ref: (el) => (this.trackContentElement = el), style: {
|
|
1018
1022
|
'--tet-carousel-nudge-distance': `${TetCarousel.NUDGE_DISTANCE_PX}px`
|
|
1019
|
-
}, onAnimationEnd: this.onNudgeAnimationEnd }, index.h("slot", { key: '
|
|
1023
|
+
}, onAnimationEnd: this.onNudgeAnimationEnd }, index.h("slot", { key: '3ac381de9a532680e7c31482daff4a41f8ec3121' })))), !!this.label && index.h("div", { key: '76de289c6a57f876836504f8c22001d8e8570eb6', class: "tet-carousel__label" }, this.label), showControls && (index.h("div", { key: 'a10671cd99ba9e029210590549c4cebc2fd77da7', class: "tet-carousel__controls" }, showButtons && (index.h("div", { key: 'e90146bf4d5fb531a3ed052d875a646f7cf7f1f3', class: "tet-carousel__buttons tet-carousel__buttons--mobile", ref: (el) => (this.mobileBackButtonWrapper = el) }, index.h("tet-button", { key: '948c71518278b11425903e90bbe92c77ea9d4ecc', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: translations.translate('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }))), showDots && (index.h("div", { key: '366a0ee2f2cdb9e370f3766590effbf900fa1c1a', class: "tet-carousel__dots" }, Array.from({ length: this.dotCount }).map((_, idx) => (index.h("button", { type: "button", tabIndex: idx === this.activeDotIndex ? 0 : -1, class: `tet-carousel__dot${idx === this.activeDotIndex ? ' active' : ''}`, key: idx, "aria-label": `${idx === this.activeDotIndex
|
|
1020
1024
|
? translations.translate('components-carousel-indicator-button-active')
|
|
1021
|
-
: translations.translate('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (index.h("div", { key: '
|
|
1025
|
+
: translations.translate('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (index.h("div", { key: '7fe0f4d06caddc0686931fa574959533bac99184', class: "tet-carousel__buttons" }, index.h("tet-button", { key: 'aaf2286d9c2401988c55da843d76e4a682fec310', class: "tet-carousel__buttons--desktop", theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: translations.translate('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }), index.h("tet-button", { key: '1ffd6f09661af88a385842f5ce9afd08c648f52c', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconRight, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handleNext(), accessibilityLabel: translations.translate('components-carousel-next'), disabled: this.isRightNavigationDisabled() }))))))));
|
|
1022
1026
|
}
|
|
1023
1027
|
static get watchers() { return {
|
|
1024
1028
|
"language": [{
|
|
@@ -382,6 +382,10 @@ export class TetCarousel {
|
|
|
382
382
|
return;
|
|
383
383
|
const item = assigned[this.activeItem];
|
|
384
384
|
if (item) {
|
|
385
|
+
if (this.focusAlignment === 'center') {
|
|
386
|
+
this.moveToItemCentered(item, this.activeItem);
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
385
389
|
this.moveToItem(item);
|
|
386
390
|
}
|
|
387
391
|
};
|
|
@@ -993,22 +997,22 @@ export class TetCarousel {
|
|
|
993
997
|
trackTransition = 'none';
|
|
994
998
|
}
|
|
995
999
|
}
|
|
996
|
-
return (h(Host, { key: '
|
|
1000
|
+
return (h(Host, { key: 'd63e8407669c5a236d828c26961e9d6a0daaef03' }, h("div", { key: '10049cfd20315cfd92a0ce7df758367512793d35', class: { 'tet-carousel': true, [`${this.theme}`]: true, 'tet-carousel--unified-buttons': this.unifiedButtons }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: '414d3dcbb340ef8db7c98bca00e243be0a836a00', class: "tet-carousel__container" }, h("div", { key: '52f74d39266ade3e5a77dd61f6b129425b22e8dd', class: "tet-carousel__gradient-left", ref: (el) => {
|
|
997
1001
|
this.leftGradientRef = el;
|
|
998
|
-
} }), h("div", { key: '
|
|
1002
|
+
} }), h("div", { key: '4569aed57e83195e95ac23061ad3445deb0278ef', class: "tet-carousel__gradient-right", ref: (el) => {
|
|
999
1003
|
this.rightGradientRef = el;
|
|
1000
|
-
} }), h("div", { key: '
|
|
1004
|
+
} }), h("div", { key: '837920b3b973468a647fa537e5921f3c3de6531e', class: `tet-carousel__track ${showControls ? '' : 'tet-carousel__track--center'}`, ref: (el) => (this.trackElement = el), style: {
|
|
1001
1005
|
transform: `translate3d(${this.dragOffset}px, 0, 0)`,
|
|
1002
1006
|
transition: trackTransition,
|
|
1003
1007
|
willChange: 'transform'
|
|
1004
|
-
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, h("div", { key: '
|
|
1008
|
+
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, h("div", { key: '2514c62246458e3f8714337550e5b9a8ac03e853', class: {
|
|
1005
1009
|
'tet-carousel__track-content': true,
|
|
1006
1010
|
'tet-carousel__track-content--nudge': this.isNudgeAnimating
|
|
1007
1011
|
}, ref: (el) => (this.trackContentElement = el), style: {
|
|
1008
1012
|
'--tet-carousel-nudge-distance': `${TetCarousel.NUDGE_DISTANCE_PX}px`
|
|
1009
|
-
}, onAnimationEnd: this.onNudgeAnimationEnd }, h("slot", { key: '
|
|
1013
|
+
}, onAnimationEnd: this.onNudgeAnimationEnd }, h("slot", { key: '3ac381de9a532680e7c31482daff4a41f8ec3121' })))), !!this.label && h("div", { key: '76de289c6a57f876836504f8c22001d8e8570eb6', class: "tet-carousel__label" }, this.label), showControls && (h("div", { key: 'a10671cd99ba9e029210590549c4cebc2fd77da7', class: "tet-carousel__controls" }, showButtons && (h("div", { key: 'e90146bf4d5fb531a3ed052d875a646f7cf7f1f3', class: "tet-carousel__buttons tet-carousel__buttons--mobile", ref: (el) => (this.mobileBackButtonWrapper = el) }, h("tet-button", { key: '948c71518278b11425903e90bbe92c77ea9d4ecc', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: t('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }))), showDots && (h("div", { key: '366a0ee2f2cdb9e370f3766590effbf900fa1c1a', class: "tet-carousel__dots" }, Array.from({ length: this.dotCount }).map((_, idx) => (h("button", { type: "button", tabIndex: idx === this.activeDotIndex ? 0 : -1, class: `tet-carousel__dot${idx === this.activeDotIndex ? ' active' : ''}`, key: idx, "aria-label": `${idx === this.activeDotIndex
|
|
1010
1014
|
? t('components-carousel-indicator-button-active')
|
|
1011
|
-
: t('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (h("div", { key: '
|
|
1015
|
+
: t('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (h("div", { key: '7fe0f4d06caddc0686931fa574959533bac99184', class: "tet-carousel__buttons" }, h("tet-button", { key: 'aaf2286d9c2401988c55da843d76e4a682fec310', class: "tet-carousel__buttons--desktop", theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: t('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }), h("tet-button", { key: '1ffd6f09661af88a385842f5ce9afd08c648f52c', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconRight, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handleNext(), accessibilityLabel: t('components-carousel-next'), disabled: this.isRightNavigationDisabled() }))))))));
|
|
1012
1016
|
}
|
|
1013
1017
|
static get is() { return "tet-carousel"; }
|
|
1014
1018
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,f as o,h as i,c as n,t as s}from"./p-Cdi7KDBd.js";import{p as r,t as a}from"./p-B9bE6qY-.js";import{d as l}from"./p-BTSQyL7G.js";import{d as c}from"./p-CbqipjNj.js";const h=t(class t extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;focusAlignment="start";showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="arrow-left";buttonIconRight="arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{o(this)}catch{}}async onLanguageChange(t){await r("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const e=this.leftGradientRef,o=this.rightGradientRef;if(!e||!o)return;if(!this.showGradient||this.getFullyVisibleItemCount()>=this.totalItems)return e.style.opacity="0",void(o.style.opacity="0");const i=this.getViewportWidth(),n=this.getSlotClientWidth(),s=Math.max(0,n-i),r=-this.getRealDragOffset(),a=Math.max(0,Math.min(s,r)),l=s-a<t.GRADIENT_VISIBILITY_THRESHOLD_PX;a<t.GRADIENT_VISIBILITY_THRESHOLD_PX?(e.style.opacity="0",o.style.opacity="1"):l?(e.style.opacity="1",o.style.opacity="0"):(e.style.opacity="1",o.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await r("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth();return this.isLast(Math.max(e,o),t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(e,o){return e>0?Math.min(t.EDGE_DRAG_MAX_PX,e*t.EDGE_DRAG_RESISTANCE):e<o?o+Math.max(-t.EDGE_DRAG_MAX_PX,(e-o)*t.EDGE_DRAG_RESISTANCE):e}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const e=this.getSlotElements();if(!e)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=e.length;const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.ceil(i/Math.max(1,o)),s=Number.isFinite(this.maxDots)?this.maxDots:n;let r=s;this.unifiedButtons&&o<t.MOBILE_BREAKPOINT_PX&&(r=Math.min(s,t.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(r,n)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];e&&this.moveToItem(e)};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const e=this.leftGradientRef?.offsetWidth;return e&&e>0?e:t.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;if(!this.dragMoved&&Math.abs(t.screenX-this.dragPointerStartX)>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let e=this.dragOffset;e+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const o=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(e,o);const i=this.getFirstVisibleItemInViewport();i&&this.activeItem!==i.index&&(this.activeItem=i.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount(),this.activeItem=Math.max(0,Math.min(this.activeItem,Math.max(0,this.totalItems-1))),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{if(this.registerUserInteraction(),"center"===this.focusAlignment)return void this.moveToItemCentered(e,o);const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<t.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItemCentered(t,e){const o=this.trackElement.getBoundingClientRect(),i=t.getBoundingClientRect().left-o.left-this.getFirstItemOffset()+t.offsetWidth/2-this.getViewportWidth()/2,n=Math.max(0,Math.min(i,this.getMaxScrollableOffset()));this.activeItem=e,this.dragOffset=n>0?-n:0,this.setDotIndex(n,0)}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const e=this.getFullyVisibleItemCount(),o=this._showButtons(e),s=this._showDots(e),r=o||s;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${t.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),i(n,{key:"055d996e6c2c244bbd9182daddc8e3416b9b8064"},i("div",{key:"54b49c1011312a425ea16fe82ccf6ee41cb9cfed",class:{"tet-carousel":!0,[""+this.theme]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},i("div",{key:"e83003b54cff1ba91b1215c70a822875f77df91d",class:"tet-carousel__container"},i("div",{key:"02f50af37920ef551f3098798d795beaeadd2ee0",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),i("div",{key:"88419740d0604ae8e842f53f765a6285080bb1af",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),i("div",{key:"8da62deb8affa2fd56cb55bb1c526d1a9d35d7a1",class:"tet-carousel__track "+(r?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},i("div",{key:"e7fb0c70e6f41c0f5b37ce286ab78e7a3d3b07a1",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":t.NUDGE_DISTANCE_PX+"px"},onAnimationEnd:this.onNudgeAnimationEnd},i("slot",{key:"2fd6530a4abc2887f0055c7f760db6fa3b34cbfb"})))),!!this.label&&i("div",{key:"7e34d6adb671eb3cb4527910c7c0646858bfec49",class:"tet-carousel__label"},this.label),r&&i("div",{key:"e88a639dfa55bd25270152f3a8e4e5e6f343d422",class:"tet-carousel__controls"},o&&i("div",{key:"7bb54afb936bb647598ac8560b2697db168980c5",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},i("tet-button",{key:"e88c6fce42f2aa97c5336678190d7c195756bd3b",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:a("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),s&&i("div",{key:"96ae9c32ea9cdc116a3dda1be1dd27499edda1ba",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>i("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${a(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),o&&i("div",{key:"4f51d75a77c0a5fcb738d5394b66b6732bcad0fe",class:"tet-carousel__buttons"},i("tet-button",{key:"7eefda9f94ce0986a377377b37791a2104f6d13f",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:a("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),i("tet-button",{key:"ca407b0f61ca23cea6d41ac21cde95a9e0ba5b26",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:a("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}'}},[769,"tet-carousel",{theme:[1],showDots:[4,"show-dots"],showGradient:[4,"show-gradient"],focusAlignment:[1,"focus-alignment"],showButtons:[4,"show-buttons"],transitionDuration:[2,"transition-duration"],swipeThreshold:[2,"swipe-threshold"],transitionTiming:[1,"transition-timing"],buttonIconLeft:[1,"button-icon-left"],buttonIconRight:[1,"button-icon-right"],maxDots:[2,"max-dots"],label:[1],nudgeAnimationInterval:[2,"nudge-animation-interval"],unifiedButtons:[4,"unified-buttons"],language:[1],activeDotIndex:[32],dotCount:[32],totalItems:[32],activeItem:[32],isDragging:[32],dragOffset:[32],isNudgeAnimating:[32]},void 0,{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}]),f=h,d=function(){"undefined"!=typeof customElements&&["tet-carousel","tet-button","tet-icon"].forEach((t=>{switch(t){case"tet-carousel":customElements.get(s(t))||customElements.define(s(t),h);break;case"tet-button":customElements.get(s(t))||l();break;case"tet-icon":customElements.get(s(t))||c()}}))};export{f as TetCarousel,d as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,f as o,h as i,c as n,t as s}from"./p-Cdi7KDBd.js";import{p as r,t as a}from"./p-B9bE6qY-.js";import{d as l}from"./p-BTSQyL7G.js";import{d as c}from"./p-CbqipjNj.js";const h=t(class t extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;focusAlignment="start";showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="arrow-left";buttonIconRight="arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{o(this)}catch{}}async onLanguageChange(t){await r("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const e=this.leftGradientRef,o=this.rightGradientRef;if(!e||!o)return;if(!this.showGradient||this.getFullyVisibleItemCount()>=this.totalItems)return e.style.opacity="0",void(o.style.opacity="0");const i=this.getViewportWidth(),n=this.getSlotClientWidth(),s=Math.max(0,n-i),r=-this.getRealDragOffset(),a=Math.max(0,Math.min(s,r)),l=s-a<t.GRADIENT_VISIBILITY_THRESHOLD_PX;a<t.GRADIENT_VISIBILITY_THRESHOLD_PX?(e.style.opacity="0",o.style.opacity="1"):l?(e.style.opacity="1",o.style.opacity="0"):(e.style.opacity="1",o.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await r("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth();return this.isLast(Math.max(e,o),t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(e,o){return e>0?Math.min(t.EDGE_DRAG_MAX_PX,e*t.EDGE_DRAG_RESISTANCE):e<o?o+Math.max(-t.EDGE_DRAG_MAX_PX,(e-o)*t.EDGE_DRAG_RESISTANCE):e}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const e=this.getSlotElements();if(!e)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=e.length;const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.ceil(i/Math.max(1,o)),s=Number.isFinite(this.maxDots)?this.maxDots:n;let r=s;this.unifiedButtons&&o<t.MOBILE_BREAKPOINT_PX&&(r=Math.min(s,t.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(r,n)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];if(e){if("center"===this.focusAlignment)return void this.moveToItemCentered(e,this.activeItem);this.moveToItem(e)}};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const e=this.leftGradientRef?.offsetWidth;return e&&e>0?e:t.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;if(!this.dragMoved&&Math.abs(t.screenX-this.dragPointerStartX)>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let e=this.dragOffset;e+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const o=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(e,o);const i=this.getFirstVisibleItemInViewport();i&&this.activeItem!==i.index&&(this.activeItem=i.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount(),this.activeItem=Math.max(0,Math.min(this.activeItem,Math.max(0,this.totalItems-1))),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{if(this.registerUserInteraction(),"center"===this.focusAlignment)return void this.moveToItemCentered(e,o);const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<t.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItemCentered(t,e){const o=this.trackElement.getBoundingClientRect(),i=t.getBoundingClientRect().left-o.left-this.getFirstItemOffset()+t.offsetWidth/2-this.getViewportWidth()/2,n=Math.max(0,Math.min(i,this.getMaxScrollableOffset()));this.activeItem=e,this.dragOffset=n>0?-n:0,this.setDotIndex(n,0)}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const e=this.getFullyVisibleItemCount(),o=this._showButtons(e),s=this._showDots(e),r=o||s;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${t.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),i(n,{key:"d63e8407669c5a236d828c26961e9d6a0daaef03"},i("div",{key:"10049cfd20315cfd92a0ce7df758367512793d35",class:{"tet-carousel":!0,[""+this.theme]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},i("div",{key:"414d3dcbb340ef8db7c98bca00e243be0a836a00",class:"tet-carousel__container"},i("div",{key:"52f74d39266ade3e5a77dd61f6b129425b22e8dd",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),i("div",{key:"4569aed57e83195e95ac23061ad3445deb0278ef",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),i("div",{key:"837920b3b973468a647fa537e5921f3c3de6531e",class:"tet-carousel__track "+(r?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},i("div",{key:"2514c62246458e3f8714337550e5b9a8ac03e853",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":t.NUDGE_DISTANCE_PX+"px"},onAnimationEnd:this.onNudgeAnimationEnd},i("slot",{key:"3ac381de9a532680e7c31482daff4a41f8ec3121"})))),!!this.label&&i("div",{key:"76de289c6a57f876836504f8c22001d8e8570eb6",class:"tet-carousel__label"},this.label),r&&i("div",{key:"a10671cd99ba9e029210590549c4cebc2fd77da7",class:"tet-carousel__controls"},o&&i("div",{key:"e90146bf4d5fb531a3ed052d875a646f7cf7f1f3",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},i("tet-button",{key:"948c71518278b11425903e90bbe92c77ea9d4ecc",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:a("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),s&&i("div",{key:"366a0ee2f2cdb9e370f3766590effbf900fa1c1a",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>i("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${a(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),o&&i("div",{key:"7fe0f4d06caddc0686931fa574959533bac99184",class:"tet-carousel__buttons"},i("tet-button",{key:"aaf2286d9c2401988c55da843d76e4a682fec310",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:a("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),i("tet-button",{key:"1ffd6f09661af88a385842f5ce9afd08c648f52c",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:a("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}'}},[769,"tet-carousel",{theme:[1],showDots:[4,"show-dots"],showGradient:[4,"show-gradient"],focusAlignment:[1,"focus-alignment"],showButtons:[4,"show-buttons"],transitionDuration:[2,"transition-duration"],swipeThreshold:[2,"swipe-threshold"],transitionTiming:[1,"transition-timing"],buttonIconLeft:[1,"button-icon-left"],buttonIconRight:[1,"button-icon-right"],maxDots:[2,"max-dots"],label:[1],nudgeAnimationInterval:[2,"nudge-animation-interval"],unifiedButtons:[4,"unified-buttons"],language:[1],activeDotIndex:[32],dotCount:[32],totalItems:[32],activeItem:[32],isDragging:[32],dragOffset:[32],isNudgeAnimating:[32]},void 0,{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}]),f=h,d=function(){"undefined"!=typeof customElements&&["tet-carousel","tet-button","tet-icon"].forEach((t=>{switch(t){case"tet-carousel":customElements.get(s(t))||customElements.define(s(t),h);break;case"tet-button":customElements.get(s(t))||l();break;case"tet-icon":customElements.get(s(t))||c()}}))};export{f as TetCarousel,d as defineCustomElement}
|
|
@@ -390,6 +390,10 @@ const TetCarousel = class {
|
|
|
390
390
|
return;
|
|
391
391
|
const item = assigned[this.activeItem];
|
|
392
392
|
if (item) {
|
|
393
|
+
if (this.focusAlignment === 'center') {
|
|
394
|
+
this.moveToItemCentered(item, this.activeItem);
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
393
397
|
this.moveToItem(item);
|
|
394
398
|
}
|
|
395
399
|
};
|
|
@@ -1001,22 +1005,22 @@ const TetCarousel = class {
|
|
|
1001
1005
|
trackTransition = 'none';
|
|
1002
1006
|
}
|
|
1003
1007
|
}
|
|
1004
|
-
return (h(Host, { key: '
|
|
1008
|
+
return (h(Host, { key: 'd63e8407669c5a236d828c26961e9d6a0daaef03' }, h("div", { key: '10049cfd20315cfd92a0ce7df758367512793d35', class: { 'tet-carousel': true, [`${this.theme}`]: true, 'tet-carousel--unified-buttons': this.unifiedButtons }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: '414d3dcbb340ef8db7c98bca00e243be0a836a00', class: "tet-carousel__container" }, h("div", { key: '52f74d39266ade3e5a77dd61f6b129425b22e8dd', class: "tet-carousel__gradient-left", ref: (el) => {
|
|
1005
1009
|
this.leftGradientRef = el;
|
|
1006
|
-
} }), h("div", { key: '
|
|
1010
|
+
} }), h("div", { key: '4569aed57e83195e95ac23061ad3445deb0278ef', class: "tet-carousel__gradient-right", ref: (el) => {
|
|
1007
1011
|
this.rightGradientRef = el;
|
|
1008
|
-
} }), h("div", { key: '
|
|
1012
|
+
} }), h("div", { key: '837920b3b973468a647fa537e5921f3c3de6531e', class: `tet-carousel__track ${showControls ? '' : 'tet-carousel__track--center'}`, ref: (el) => (this.trackElement = el), style: {
|
|
1009
1013
|
transform: `translate3d(${this.dragOffset}px, 0, 0)`,
|
|
1010
1014
|
transition: trackTransition,
|
|
1011
1015
|
willChange: 'transform'
|
|
1012
|
-
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, h("div", { key: '
|
|
1016
|
+
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, h("div", { key: '2514c62246458e3f8714337550e5b9a8ac03e853', class: {
|
|
1013
1017
|
'tet-carousel__track-content': true,
|
|
1014
1018
|
'tet-carousel__track-content--nudge': this.isNudgeAnimating
|
|
1015
1019
|
}, ref: (el) => (this.trackContentElement = el), style: {
|
|
1016
1020
|
'--tet-carousel-nudge-distance': `${TetCarousel.NUDGE_DISTANCE_PX}px`
|
|
1017
|
-
}, onAnimationEnd: this.onNudgeAnimationEnd }, h("slot", { key: '
|
|
1021
|
+
}, onAnimationEnd: this.onNudgeAnimationEnd }, h("slot", { key: '3ac381de9a532680e7c31482daff4a41f8ec3121' })))), !!this.label && h("div", { key: '76de289c6a57f876836504f8c22001d8e8570eb6', class: "tet-carousel__label" }, this.label), showControls && (h("div", { key: 'a10671cd99ba9e029210590549c4cebc2fd77da7', class: "tet-carousel__controls" }, showButtons && (h("div", { key: 'e90146bf4d5fb531a3ed052d875a646f7cf7f1f3', class: "tet-carousel__buttons tet-carousel__buttons--mobile", ref: (el) => (this.mobileBackButtonWrapper = el) }, h("tet-button", { key: '948c71518278b11425903e90bbe92c77ea9d4ecc', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: translate('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }))), showDots && (h("div", { key: '366a0ee2f2cdb9e370f3766590effbf900fa1c1a', class: "tet-carousel__dots" }, Array.from({ length: this.dotCount }).map((_, idx) => (h("button", { type: "button", tabIndex: idx === this.activeDotIndex ? 0 : -1, class: `tet-carousel__dot${idx === this.activeDotIndex ? ' active' : ''}`, key: idx, "aria-label": `${idx === this.activeDotIndex
|
|
1018
1022
|
? translate('components-carousel-indicator-button-active')
|
|
1019
|
-
: translate('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (h("div", { key: '
|
|
1023
|
+
: translate('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (h("div", { key: '7fe0f4d06caddc0686931fa574959533bac99184', class: "tet-carousel__buttons" }, h("tet-button", { key: 'aaf2286d9c2401988c55da843d76e4a682fec310', class: "tet-carousel__buttons--desktop", theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: translate('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }), h("tet-button", { key: '1ffd6f09661af88a385842f5ce9afd08c648f52c', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconRight, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handleNext(), accessibilityLabel: translate('components-carousel-next'), disabled: this.isRightNavigationDisabled() }))))))));
|
|
1020
1024
|
}
|
|
1021
1025
|
static get watchers() { return {
|
|
1022
1026
|
"language": [{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,f as e,h as o,H as i}from"./p-BGB6gNkz.js";import{p as n,t as s}from"./p-BzLFf73g.js";import"./p-DbJll7nz.js";import"./p-Bvqcvhjw.js";const r=class{constructor(e){t(this,e)}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;focusAlignment="start";showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="arrow-left";buttonIconRight="arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{e(this)}catch{}}async onLanguageChange(t){await n("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const t=this.leftGradientRef,e=this.rightGradientRef;if(!t||!e)return;if(!this.showGradient||this.getFullyVisibleItemCount()>=this.totalItems)return t.style.opacity="0",void(e.style.opacity="0");const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.max(0,i-o),s=-this.getRealDragOffset(),a=Math.max(0,Math.min(n,s)),l=n-a<r.GRADIENT_VISIBILITY_THRESHOLD_PX;a<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(t.style.opacity="0",e.style.opacity="1"):l?(t.style.opacity="1",e.style.opacity="0"):(t.style.opacity="1",e.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await n("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;let s=n;this.unifiedButtons&&e<r.MOBILE_BREAKPOINT_PX&&(s=Math.min(n,r.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(s,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];if(e){if("center"===this.focusAlignment)return void this.moveToItemCentered(e,this.activeItem);this.moveToItem(e)}};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const t=this.leftGradientRef?.offsetWidth;return t&&t>0?t:r.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(o,i);const n=this.getFirstVisibleItemInViewport();n&&this.activeItem!==n.index&&(this.activeItem=n.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{if(this.registerUserInteraction(),"center"===this.focusAlignment)return void this.moveToItemCentered(e,o);const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItemCentered(t,e){const o=this.trackElement.getBoundingClientRect(),i=t.getBoundingClientRect().left-o.left-this.getFirstItemOffset()+t.offsetWidth/2-this.getViewportWidth()/2,n=Math.max(0,Math.min(i,this.getMaxScrollableOffset()));this.activeItem=e,this.dragOffset=n>0?-n:0,this.setDotIndex(n,0)}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"d63e8407669c5a236d828c26961e9d6a0daaef03"},o("div",{key:"10049cfd20315cfd92a0ce7df758367512793d35",class:{"tet-carousel":!0,[`${this.theme}`]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},o("div",{key:"414d3dcbb340ef8db7c98bca00e243be0a836a00",class:"tet-carousel__container"},o("div",{key:"52f74d39266ade3e5a77dd61f6b129425b22e8dd",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"4569aed57e83195e95ac23061ad3445deb0278ef",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"837920b3b973468a647fa537e5921f3c3de6531e",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"2514c62246458e3f8714337550e5b9a8ac03e853",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"3ac381de9a532680e7c31482daff4a41f8ec3121"})))),!!this.label&&o("div",{key:"76de289c6a57f876836504f8c22001d8e8570eb6",class:"tet-carousel__label"},this.label),a&&o("div",{key:"a10671cd99ba9e029210590549c4cebc2fd77da7",class:"tet-carousel__controls"},e&&o("div",{key:"e90146bf4d5fb531a3ed052d875a646f7cf7f1f3",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"948c71518278b11425903e90bbe92c77ea9d4ecc",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"366a0ee2f2cdb9e370f3766590effbf900fa1c1a",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"7fe0f4d06caddc0686931fa574959533bac99184",class:"tet-carousel__buttons"},o("tet-button",{key:"aaf2286d9c2401988c55da843d76e4a682fec310",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"1ffd6f09661af88a385842f5ce9afd08c648f52c",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,a as t,b as a}from"./p-BGB6gNkz.js";export{s as setNonce}from"./p-BGB6gNkz.js";import{g as o}from"./p-DQuL1Twl.js";var n=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const a=t.call(this,!1),o=this.childNodes;if(e)for(let e=0;e<o.length;e++)2!==o[e].nodeType&&a.appendChild(o[e].cloneNode(!0));return a}};(()=>{n(t.prototype);const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then((async e=>(await o(),a(JSON.parse('[["p-2cfcf7df",[[513,"tet-address-offers-view",{"language":[1],"addressKey":[1,"address-key"],"theme":[1],"userPersonalCode":[1,"user-personal-code"],"showAuthorizedAddresses":[4,"show-authorized-addresses"],"accessToken":[1,"access-token"],"noUserFound":[4,"no-user-found"],"callCenterTaskOptions":[16],"showContactForm":[1028,"show-contact-form"],"termText":[1,"term-text"],"formParameters":[1,"form-parameters"],"accessibilityLabel":[1,"accessibility-label"],"address":[32]},[[0,"assetAddressSelected","onAddressSelected"],[0,"customerNotFound","customerNotFound"],[0,"emptyCatalog","onEmptyCatalog"]],{"language":[{"onLanguageChange":0}]}]]],["p-4215dec8",[[513,"tet-b2b-configurator",{"theme":[1],"stickyRefEl":[1,"sticky-ref-el"],"referenceElement":[32],"isLoading":[32],"itemToRemove":[32],"checkoutAttempted":[32],"formState":[32],"activePrimaryCategoryId":[32],"activeSecondaryCategoryId":[32],"selectedPrimaryCards":[32],"selectedSecondaryCards":[32],"isDesktopResolution":[32],"setSubmitFormState":[64]},[[9,"resize","onResize"]],{"activePrimaryCategoryId":[{"resetSelectedPrimaryCards":0}],"activeSecondaryCategoryId":[{"resetSelectedSecondaryCards":0}]}]]],["p-c9f14568",[[513,"tet-compare-cards-tab",{"data":[16],"forceColumn":[4,"force-column"],"layout":[1],"theme":[1],"darkMode":[4,"dark-mode"],"isNetflixCard":[4,"is-netflix-card"],"darkHeader":[4,"dark-header"],"withProductFilters":[4,"with-product-filters"],"productDataLoaded":[32],"showLoader":[32],"productSACData":[32],"filteredProductCodes":[32]},[[0,"compareCardsDidRender","hideLoader"]],{"showLoader":[{"onDataChange":0}]}]]],["p-83be5dad",[[513,"tet-compare-card-v3",{"cardType":[1,"card-type"],"singleCardControlType":[1,"single-card-control-type"],"theme":[1],"language":[1],"options":[16],"toggles":[16],"contractTerm":[2,"contract-term"],"controlsTitle":[1,"controls-title"],"singleCardTabsTitle":[1,"single-card-tabs-title"],"bestChoiceText":[1,"best-choice-text"],"bestChoiceIconName":[1,"best-choice-icon-name"],"currency":[1],"secondaryLink":[1,"secondary-link"],"secondaryLinkText":[1,"secondary-link-text"],"secondaryLinkOpenBlank":[4,"secondary-link-open-blank"],"buttonTitle":[1,"button-title"],"linkOpenBlank":[4,"link-open-blank"],"showControlsFirst":[4,"show-controls-first"],"showLoader":[32],"selectedProductId":[32],"selectedDropdownOptionId":[32],"selectedSwitchKeys":[32],"preselectedKeys":[32],"preselectedProductId":[32],"allProductData":[32],"preselectedRemountId":[32],"buttonSize":[32],"isSingleCardDesktop":[32],"smallRadioBlocksPerRow":[32],"largeRadioBlocksPerRow":[32],"isLoaded":[64],"getProductByCode":[64]},[[0,"optionSelected","onOptionSelected"],[9,"resize","onResize"]],{"options":[{"onOptionsChange":0}]}]]],["p-3ce7cda9",[[769,"tet-snicker-card",{"theme":[1],"state":[1],"selected":[4],"selectionType":[1,"selection-type"],"isTabStop":[4,"is-tab-stop"],"subscriptionLabel":[1,"subscription-label"],"topBadge":[1,"top-badge"],"indicator":[16],"cardTitle":[1,"card-title"],"cardId":[1,"card-id"],"subtitle":[1],"description":[1],"price":[16],"inlineMessage":[16],"selectionConfig":[16],"segmentSwitch":[16],"count":[2],"primaryValue":[8,"primary-value"],"secondaryValue":[8,"secondary-value"],"isInCart":[4,"is-in-cart"],"benefits":[16],"benefitLink":[1,"benefit-link"],"packageItems":[16],"subscriptionItems":[16],"bottomLinkText":[1,"bottom-link-text"],"bottomRemark":[1,"bottom-remark"],"accordionConfig":[16],"isDesktopResolution":[32],"isAccordionOpen":[32],"focusSelectionTarget":[64]},[[9,"resize","onResize"]],{"accordionConfig":[{"onAccordionConfigChanged":0}],"selectionConfig":[{"onSelectionConfigChanged":0}]}]]],["p-24058988",[[513,"tet-cloud-configurator",{"language":[1],"containerSelector":[1,"container-selector"],"theme":[1],"selectOnFocus":[4,"select-on-focus"],"isLoading":[32],"headerRef":[32],"footerRef":[32],"formValues":[32],"selectedTab":[32],"selectedPeriod":[32],"isFloatingSummary":[32],"isListExpanded":[32],"parentElement":[32]},null,{"isLoading":[{"onisLoadingChange":0}],"headerRef":[{"onHeaderRefChange":0}],"footerRef":[{"onFooterRefChange":0}],"selectedTab":[{"onSelectedTabChange":0}],"language":[{"onLanguageChange":0}]}]]],["p-e7e18cc4",[[513,"tet-display",{"activeBreakpoint":[32],"exampleBaseDisplay":[32],"exampleBreakpoint":[32],"exampleBreakpointDisplay":[32],"exampleBreakpointEnabled":[32],"exampleJustify":[32],"exampleAlignItems":[32],"exampleFlexDirection":[32],"exampleFlexWrap":[32],"exampleOrderA":[32],"exampleOrderB":[32]}]]],["p-7bccaeee",[[769,"tet-cloud-application-form-dialog",{"privacyPolicyLinkUrl":[1,"privacy-policy-link-url"],"loading":[4],"showOverlay":[4,"show-overlay"],"language":[1],"theme":[1],"privacyPolicyError":[32],"open":[64],"close":[64]},null,{"language":[{"onLanguageChange":0}]}]]],["p-9ae4f442",[[513,"tet-compare-card-v2",{"clickCallback":[16],"cardType":[1,"card-type"],"theme":[1],"colorIcons":[4,"color-icons"],"bestChoice":[4,"best-choice"],"language":[1],"options":[16],"cardBackgroundColor":[1,"card-background-color"],"cardScript":[1,"card-script"],"bestChoiceTextPosition":[1,"best-choice-text-position"],"darkMode":[4,"dark-mode"],"bonuses":[16],"benefitTitle":[1,"benefit-title"],"benefits":[16],"contractTerm":[2,"contract-term"],"bestChoiceText":[1,"best-choice-text"],"currency":[1],"secondaryLink":[1,"secondary-link"],"secondaryLinkText":[1,"secondary-link-text"],"secondaryLinkOpenBlank":[4,"secondary-link-open-blank"],"buttonTitle":[1,"button-title"],"linkOpenBlank":[4,"link-open-blank"],"dropdownOptions":[16],"showLoader":[32],"selectedProductCode":[32],"selectedSwitchKeys":[32],"preselectedKeys":[32],"preselectedProductCode":[32],"allProductData":[32],"preselectedRemountId":[32]},[[0,"optionSelected","onOptionSelected"]]]]],["p-3af65955",[[513,"tet-divider",{"exampleDividerClass":[32],"exampleDarkSurface":[32]}]]],["p-e2d4e5c3",[[513,"tet-position",{"examplePositionClass":[32]}]]],["p-915b2507",[[513,"tet-support-search",{"theme":[1],"minSearchLength":[2,"min-search-length"],"showInputLabel":[4,"show-input-label"],"labels":[16],"disabled":[4],"searchApiUrl":[1,"search-api-url"],"maxSearchResults":[2,"max-search-results"],"preventDuplicateSubmit":[4,"prevent-duplicate-submit"],"submitCooldownMs":[2,"submit-cooldown-ms"],"searchQuery":[1,"search-query"],"inputIconRight":[32],"inputValueLength":[32],"inputValue":[32],"isLoading":[32],"resetInputState":[64]},null,{"disabled":[{"onDisabledStateChange":0}]}]]],["p-632d382c",[[513,"tet-text",{"exampleAlignClass":[32],"exampleTransformClass":[32],"exampleDecorationClass":[32],"exampleFontStyleClass":[32],"exampleWhiteSpaceClass":[32],"exampleWordBreakClass":[32]}]]],["p-35e3a3ec",[[513,"tet-datepicker",{"locale":[1],"overlayEffect":[4,"overlay-effect"],"rangePickerMode":[4,"range-picker-mode"],"isOpen":[1028,"is-open"],"date":[1040],"datepickerView":[1025,"datepicker-view"],"rangeDates":[32],"internalDate":[32],"toggleIsOpen":[64]},[[0,"dateChanged","handleDateChanged"],[0,"datepickerViewChanged","handleDatepickerViewChanged"],[0,"internalDateChanged","handleInternalDateChanged"],[0,"rangeDateSet","handleRangeDateSet"],[0,"datepickerClosed","handleDatepickerClosed"],[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]],{"date":[{"handleDateChange":0}],"rangeDates":[{"handleRangeDateChange":0}]}]]],["p-b4f3985e",[[513,"tet-feedback-form",{"theme":[1],"language":[1],"data":[16],"expanded":[32],"formError":[32],"characterCount":[32],"submissionData":[32],"submitted":[32]},null,{"language":[{"onLanguageChange":0}]}]]],["p-f5d610ea",[[513,"tet-assembler",{"scenario":[1],"language":[1],"theme":[1],"expanded":[1540],"selectedContractTermId":[32],"selectedSwitchKeys":[32],"selectedProductCode":[32],"currentSummary":[32],"backendData":[32],"lockedSwitchAttentionKey":[32],"lockedSwitchAttentionSectionId":[32],"lockedSwitchUnlockKey":[32],"lockedSwitchErrorSectionId":[32],"getSelection":[64]},null,{"scenario":[{"scenarioChanged":0}],"language":[{"onLanguageChange":0}]}]]],["p-01336e7a",[[513,"tet-autocomplete-dropdown",{"options":[16],"defaultOption":[16],"noOptionsMessage":[1,"no-options-message"],"placeholder":[1],"label":[1],"theme":[1],"hasError":[4,"has-error"],"errorMessage":[1,"error-message"],"inputValue":[32],"clearInput":[64],"focusOnNativeInput":[64]}]]],["p-6eb089d0",[[769,"tet-dynamic-card",{"theme":[1],"size":[1],"sizeChangeBreakpoint":[1,"size-change-breakpoint"],"isInCarousel":[4,"is-in-carousel"],"pictureLayoutShiftPosition":[1,"picture-layout-shift-position"],"cardTitle":[1,"card-title"],"subtitle":[1],"tags":[16],"dateTag":[1,"date-tag"],"dateTagColorLight":[1,"date-tag-color-light"],"dateTagColorDark":[1,"date-tag-color-dark"],"priceTagOptions":[16],"linkHref":[1,"link-href"],"linkText":[1,"link-text"],"linkNewTab":[4,"link-new-tab"],"index":[2],"buttonColorTheme":[1,"button-color-theme"],"buttonCustomColorCode":[1,"button-custom-color-code"],"buttonCustomColorContentTone":[1,"button-custom-color-content-tone"],"isFocused":[32],"originalSize":[32],"currentSize":[32]},null,{"theme":[{"onThemeChanged":0}],"size":[{"onSizeChange":0}]}]]],["p-e564d494",[[513,"tet-filter",{"theme":[1],"clearFilterButtonTitle":[1,"clear-filter-button-title"],"showClearFilterButton":[4,"show-clear-filter-button"],"tags":[16],"filterState":[32]},null,{"tags":[{"tagsWatchHandler":0}]}]]],["p-d8b4261d",[[512,"tet-multi-step-dialog",{"content":[1],"steps":[16],"isOpen":[4,"is-open"],"dialogDataScreenKey":[1,"dialog-data-screen-key"],"tetDialogClass":[1,"tet-dialog-class"],"language":[1],"theme":[1],"isKeydownFocus":[32]}]]],["p-304026be",[[513,"tet-news-card-list",{"items":[16],"withControls":[4,"with-controls"],"scrollFullWidth":[4,"scroll-full-width"],"controlScrollAmount":[2,"control-scroll-amount"],"initialScrollAmount":[2,"initial-scroll-amount"],"disableScroll":[4,"disable-scroll"],"withScrollbar":[4,"with-scrollbar"],"withMouseDrag":[4,"with-mouse-drag"],"withVirtualScroll":[4,"with-virtual-scroll"],"theme":[1],"enableImageLazyload":[4,"enable-image-lazyload"]},null,{"enableImageLazyload":[{"onEnableImageLazyloadChange":0}]}]]],["p-9761bc72",[[513,"tet-range-slider",{"parentContainer":[1040],"minValue":[2,"min-value"],"maxValue":[2,"max-value"],"inputMaxValue":[2,"input-max-value"],"defaultValue":[2,"default-value"],"step":[2],"dataPoints":[16],"displayDataPoints":[16],"lockToDataPoint":[4,"lock-to-data-point"],"type":[1],"withControls":[4,"with-controls"],"withInput":[4,"with-input"],"withCurrentStepCounter":[4,"with-current-step-counter"],"dataUnits":[1,"data-units"],"size":[1],"reduceButtonAccessibilityLabel":[1,"reduce-button-accessibility-label"],"addButtonAccessibilityLabel":[1,"add-button-accessibility-label"],"numberInputAccessibilityLabel":[1,"number-input-accessibility-label"],"sliderInputAccessibilityLabel":[1,"slider-input-accessibility-label"],"theme":[1],"currentValue":[32],"dataSet":[32],"containerSize":[32],"tooltipOffset":[32],"isSliding":[32],"isPointerDown":[32],"positions":[32]},[[9,"resize","onWindowResize"]],{"dataPoints":[{"onDataPointsChange":0}],"type":[{"onTypeChange":0}],"currentValue":[{"onCurrentValueChange":0}],"size":[{"onSizeChange":0}]}]]],["p-c9e434c1",[[769,"tet-thank-you-view-v3",{"stepperData":[16],"icon":[1],"mainBlockTitle":[1,"main-block-title"],"mainBlockDescription":[1,"main-block-description"],"ctaButtonLabel":[1,"cta-button-label"],"ctaButtonId":[1,"cta-button-id"],"ctaButtonSize":[1,"cta-button-size"],"ctaButtonType":[1,"cta-button-type"],"ctaButtonTheme":[1,"cta-button-theme"],"language":[1],"translationGroup":[1,"translation-group"],"theme":[1]},null,{"language":[{"onLanguageChange":0}]}]]],["p-cfdad238",[[769,"tet-business-compare-card",{"mainTitle":[1,"main-title"],"bulletPoints":[16],"pricePrefix":[1,"price-prefix"],"price":[1],"currency":[1],"theme":[1],"hasContentInFooter":[32]}]]],["p-9b13b128",[[769,"tet-carousel",{"theme":[1],"showDots":[4,"show-dots"],"showGradient":[4,"show-gradient"],"focusAlignment":[1,"focus-alignment"],"showButtons":[4,"show-buttons"],"transitionDuration":[2,"transition-duration"],"swipeThreshold":[2,"swipe-threshold"],"transitionTiming":[1,"transition-timing"],"buttonIconLeft":[1,"button-icon-left"],"buttonIconRight":[1,"button-icon-right"],"maxDots":[2,"max-dots"],"label":[1],"nudgeAnimationInterval":[2,"nudge-animation-interval"],"unifiedButtons":[4,"unified-buttons"],"language":[1],"activeDotIndex":[32],"dotCount":[32],"totalItems":[32],"activeItem":[32],"isDragging":[32],"dragOffset":[32],"isNudgeAnimating":[32]},null,{"language":[{"onLanguageChange":0}],"activeItem":[{"onActiveItemChange":0}],"showGradient":[{"checkGradient":0}],"dragOffset":[{"checkGradient":0}],"nudgeAnimationInterval":[{"onNudgeAnimIntervalChange":0}],"isNudgeAnimating":[{"onNudgeAnimationStateChange":0}]}]]],["p-d2bb410e",[[513,"tet-expandable-input",{"class":[1,"input-class"],"placeholder":[1,"input-placeholder"],"value":[1,"input-value"],"disabled":[4,"input-disabled"],"accessibilityLabel":[1,"accessibility-label"],"mode":[1],"closedWidth":[1,"closed-width"],"animationDuration":[2,"animation-duration"],"error":[4],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"iconRightClickCallback":[16],"validators":[16],"manualValidation":[4,"manual-validation"],"theme":[1],"size":[1],"closeInputText":[1,"close-input-text"],"darkMode":[4,"dark-mode"],"expanded":[32],"hasInputValue":[32],"getInputHtmlElement":[64],"getErrors":[64],"validateInput":[64],"setState":[64],"clear":[64]},[[0,"blur","onBlur"],[0,"focus","onFocus"]],{"mode":[{"onModeChange":0}],"size":[{"onSizeChange":0}]}]]],["p-b7263345",[[513,"tet-floating-block",{"theme":[1],"header":[1],"content":[16],"isOpen":[4,"is-open"]}]]],["p-37c83d33",[[513,"tet-link-card-list",{"theme":[1],"layout":[1],"placeholderCount":[2,"placeholder-count"],"items":[16],"isSearchResult":[4,"is-search-result"]}]]],["p-cdb8c877",[[513,"tet-mini-compare-card",{"benefits":[1],"productTitle":[1,"product-title"],"price":[2],"oldPrice":[2,"old-price"],"currency":[1],"buttonLabel":[1,"button-label"],"url":[1],"urlTarget":[1,"url-target"]},null,{"price":[{"onPriceChange":0}]}]]],["p-56f99297",[[513,"tet-sticky-offer",{"visible":[516],"offerName":[1,"offer-name"],"price":[1],"priceSuffix":[1,"price-suffix"],"actionLabel":[1,"action-label"],"actionUrl":[1,"action-url"],"actionTarget":[1,"action-target"],"triggerElement":[16],"topBoundaryElement":[16],"bottomBoundaryElement":[16],"boundaryVisible":[32],"boundaryBottom":[32]},[[11,"scroll","onScroll"],[9,"resize","onResize"]],{"bottomBoundaryElement":[{"setupDockingSpace":0}],"triggerElement":[{"observeBoundaries":0}],"topBoundaryElement":[{"observeBoundaries":0}],"visible":[{"updateBoundaries":0}]}]]],["p-20f6ad3e",[[514,"tet-table",{"caption":[1],"cellTextAlign":[1,"cell-text-align"],"tableHeader":[1,"table-header"],"tableHeaderTextAlign":[1,"table-header-text-align"],"tableHeaderColumnSpan":[2,"table-header-column-span"],"tableHeaderWidth":[1,"table-header-width"],"tableData":[1040],"gappedColumnLayout":[4,"gapped-column-layout"],"theme":[1],"colorTheme":[1,"color-theme"],"fixedFirstColumn":[4,"fixed-first-column"],"normalizedColumns":[32]},null,{"tableData":[{"onTableDataChange":0}]}]]],["p-49ba40a1",[[512,"tet-banner-nav",{"slides":[2],"duration":[2],"paused":[4],"mobileLayout":[4,"mobile-layout"],"theme":[1],"language":[1],"interactive":[4],"isPaused":[32],"currentSlide":[32],"firstLoad":[32],"pause":[64],"play":[64],"goTo":[64],"next":[64],"previous":[64],"getCurrentSlide":[64]},null,{"language":[{"onLanguageChange":0}],"paused":[{"onPausedStateChange":0}],"interactive":[{"onInteractiveChange":0}]}]]],["p-19525e17",[[512,"tet-business-round-stepper",{"stepperData":[16],"layout":[1],"theme":[1]}]]],["p-1be8a5bc",[[769,"tet-menu",{"type":[1],"active":[4],"clickable":[4],"closeOnLinkClick":[4,"close-on-link-click"],"firstLevelTitle":[1,"first-level-title"],"firstLevelId":[1,"first-level-id"],"firstLevelLink":[1,"first-level-link"],"firstLevelIcon":[1,"first-level-icon"],"menuItemTheme":[1,"menu-item-theme"],"showMenuItemAnimation":[4,"show-menu-item-animation"],"subLevels":[16],"darkMode":[4,"dark-mode"],"parentSelector":[1,"parent-selector"],"isMegaMenuLayout":[4,"is-mega-menu-layout"],"isSubmenuLeft":[32],"megaActiveSubLevelIndex":[32],"isMegaMenuOpen":[32],"isMegaMenuEscapeClosed":[32],"isLinkClickClosed":[32]},[[1,"mouseleave","onHostMouseLeave"],[0,"focusin","onHostFocusIn"],[0,"focusout","onHostFocusOut"]],{"subLevels":[{"onLayoutInputChange":0}],"type":[{"onLayoutInputChange":0}],"isMegaMenuLayout":[{"onLayoutInputChange":0}],"parentSelector":[{"onLayoutInputChange":0}]}]]],["p-67bb4d53",[[769,"tet-menu-mobile",{"isActive":[4,"active"],"firstLevelTitle":[1,"first-level-title"],"firstLevelLink":[1,"first-level-link"],"firstLevelId":[1,"first-level-id"],"subLevels":[16],"darkMode":[4,"dark-mode"],"highlightTheme":[1,"highlight-theme"],"showAnimation":[4,"show-animation"],"firstLevelIcon":[1,"first-level-icon"],"hideIcons":[4,"hide-icons"],"hideBottomBorder":[4,"hide-bottom-border"],"openActiveMenu":[4,"open-active-menu"],"isExpanded":[32],"hasDropdownContent":[32],"subMenuState":[32]},null,{"isActive":[{"onIsActiveChange":0}]}]]],["p-4e018c17",[[769,"tet-navigation-mobile",{"darkMode":[4,"dark-mode"],"language":[1],"isTogglerExpanded":[32],"isTogglerVisible":[32],"showToggler":[64],"hideToggler":[64],"open":[64],"close":[64]},null,{"isTogglerExpanded":[{"onMenuToggle":0}],"language":[{"onLanguageChange":0}]}]]],["p-973193d0",[[513,"tet-round-stepper",{"stepperData":[16],"forcedColumn":[4,"forced-column"],"hideIcons":[4,"hide-icons"],"theme":[1],"columnLayout":[4,"column-layout"],"layout":[1]},[[9,"resize","onResize"]]]]],["p-085ec974",[[513,"tet-bar-graph",{"parentContainer":[1040],"data":[16],"minValue":[2,"min-value"],"maxValue":[2,"max-value"],"valueUnit":[1,"value-unit"],"labelPosition":[1,"label-position"],"valuePosition":[1,"value-position"],"autoPositionValues":[4,"auto-position-values"],"dataOrder":[1,"data-order"],"withGrid":[4,"with-grid"],"showGridValues":[4,"show-grid-values"],"gridLineCount":[2,"grid-line-count"],"gridValueDecimals":[2,"grid-value-decimals"],"animationDuration":[2,"animation-duration"],"size":[1],"theme":[1],"orientation":[1],"displayData":[32],"componentSize":[32],"labelWidth":[32],"overflowingValueIds":[32]},[[9,"resize","onWindowResize"],[0,"transitionend","onBarTransitionEnd"]],{"size":[{"onSizeChange":0}],"dataOrder":[{"onDataOrderChange":0}],"data":[{"onDataChange":0}],"minValue":[{"onBarLayoutChange":0}],"maxValue":[{"onBarLayoutChange":0}],"orientation":[{"onBarLayoutChange":0}],"valuePosition":[{"onBarLayoutChange":0}],"autoPositionValues":[{"onAutoPositionValuesChange":0}]}]]],["p-c37ccaaa",[[1,"tet-border-radius"]]],["p-6c28d6ac",[[769,"tet-business-card",{"mainTitle":[1,"main-title"],"subTitle":[1,"sub-title"],"infoText":[1,"info-text"],"type":[1],"theme":[1],"size":[32]}]]],["p-9d7fbd42",[[513,"tet-colors",{"showVariables":[4,"show-variables"],"darkTheme":[4,"dark-theme"],"isTokensExample":[4,"is-tokens-example"],"tokenSections":[32],"copiedToken":[32]},null,{"isTokensExample":[{"handleTokenSectionStateChange":0}],"darkTheme":[{"handleTokenSectionStateChange":0}]}]]],["p-96438761",[[513,"tet-countdown",{"endDatetime":[1,"end-datetime"],"accessibilityLabel":[1,"accessibility-label"],"countdownTitle":[1,"countdown-title"],"staticTextColor":[1,"static-text-color"],"countdown":[32]},null,{"endDatetime":[{"onEndDatetimeChanged":0}]}]]],["p-06d237de",[[513,"tet-counter",{"startValue":[2,"start-value"],"endValue":[2,"end-value"],"duration":[2],"delay":[2],"valueSteps":[2,"value-steps"],"stepValues":[16],"loopInterval":[2,"loop-interval"],"easing":[1],"easingConfig":[16],"disableAnimation":[4,"disable-animation"],"thousandSeparator":[4,"thousand-separator"],"startOnViewport":[4,"start-on-viewport"],"currentValue":[32],"restartCounter":[64]},null,{"startValue":[{"onCounterConfigChanged":0}],"endValue":[{"onCounterConfigChanged":0}],"duration":[{"onCounterConfigChanged":0}],"delay":[{"onCounterConfigChanged":0}],"valueSteps":[{"onCounterConfigChanged":0}],"stepValues":[{"onCounterConfigChanged":0}],"loopInterval":[{"onCounterConfigChanged":0}],"easing":[{"onCounterConfigChanged":0}],"easingConfig":[{"onCounterConfigChanged":0}],"disableAnimation":[{"onCounterConfigChanged":0}],"startOnViewport":[{"onCounterConfigChanged":0}]}]]],["p-5bac849e",[[769,"tet-expansion-panel",{"toggleElement":[1025,"toggle-element"],"initialState":[1,"initial-state"],"state":[32],"open":[64],"close":[64],"toggle":[64],"getState":[64]}]]],["p-9183aa09",[[1,"tet-font-weight"]]],["p-c27be82c",[[1,"tet-fonts"]]],["p-ec4710dd",[[0,"tet-grid"]]],["p-97ce6978",[[1,"tet-layout"]]],["p-b5e665c7",[[1,"tet-link"]]],["p-df68eb4e",[[769,"tet-snicker-card-group",{"selectionType":[1,"selection-type"]},null,{"selectionType":[{"onSelectionTypeChanged":0}]}]]],["p-7e2fa50e",[[1,"tet-spacing"]]],["p-499bf719",[[769,"tet-card-list",{"theme":[1],"withControls":[4,"with-controls"],"controlScrollAmount":[2,"control-scroll-amount"],"scrollFullWidth":[4,"scroll-full-width"],"initialScrollAmount":[2,"initial-scroll-amount"],"disableScroll":[4,"disable-scroll"],"withScrollbar":[4,"with-scrollbar"],"withOverflowOpacity":[4,"with-overflow-opacity"],"overflowOpacityMinWidth":[1,"overflow-opacity-min-width"],"withMouseDrag":[4,"with-mouse-drag"],"withVirtualScroll":[4,"with-virtual-scroll"],"withActiveElement":[4,"with-active-element"],"activeElementClass":[1,"active-element-class"],"scrollAnimationSpeed":[2,"scroll-animation-speed"],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"],"controlVisibility":[32],"scrollThumbWidth":[32],"isSmallContainer":[32],"scrollListTo":[64],"scrollListBy":[64],"scrollListToElementCenter":[64]},[[9,"resize","onResize"]],{"withMouseDrag":[{"onWithMouseDragChange":0}],"disableScroll":[{"onDisableScrollChange":0}],"withControls":[{"onWithControlsChange":0}],"withOverflowOpacity":[{"onWithOverflowOpacityChange":0}],"withVirtualScroll":[{"onWithVirtualScrollChange":0}]}]]],["p-3996e0b7",[[513,"tet-number-input",{"label":[1],"theme":[1],"accessibilityLabel":[1,"accessibility-label"],"buttonAccessibilityLabel":[1,"button-accessibility-label"],"helperText":[1,"helper-text"],"suffixes":[16],"value":[1026],"min":[2],"max":[2],"disabled":[4],"error":[4],"completed":[4],"selectOnFocus":[4,"select-on-focus"],"suffix":[32],"isOpen":[32],"isValueHidden":[32],"isKeyboardFocus":[32],"getValue":[64],"resetSuffix":[64]},[[0,"keydown","onKeydown"],[8,"keydown","onTabKeydown"],[0,"focus","onFocus"],[8,"click","onClick"],[0,"input","inputChangeHandler"],[0,"blur","onBlur"]],{"suffix":[{"onSuffixChange":0}]}]]],["p-a74562c2",[[769,"tet-inline-message",{"variant":[1],"theme":[1]}]]],["p-c541b10f",[[513,"tet-radio-blocks",{"blocks":[16],"blocksPerRow":[2,"blocks-per-row"],"blockType":[1,"block-type"],"theme":[513],"accessibilityLabel":[1,"accessibility-label"],"checkedBlockId":[32],"setChecked":[64]},null,{"blocks":[{"syncCheckedBlock":0}]}]]],["p-f21e5e14",[[513,"tet-stepper-v3",{"stepperData":[16],"theme":[1]}]]],["p-b86022d7",[[513,"tet-price-view",{"theme":[1],"background":[1],"font":[1],"size":[1],"headingText":[1,"heading-text"],"priceType":[1,"price-type"],"euroPrice":[1,"euro-price"],"centsPrice":[1,"cents-price"],"footerText":[1,"footer-text"],"footerTextType":[1,"footer-text-type"],"staticColors":[4,"static-colors"]}]]],["p-6946ba58",[[513,"tet-textarea",{"value":[1],"label":[1],"placeholder":[1],"disabled":[4],"errorMessages":[16],"theme":[1],"maxLength":[8,"max-length"],"isKeyboardFocus":[32],"focusVisible":[32],"getValue":[64]},[[8,"keydown","onKeyDown"],[9,"mousedown","onMouseDown"]]]]],["p-3f533c77",[[513,"tet-compare-cards",{"data":[1040],"vatText":[1,"vat-text"],"forceColumn":[4,"force-column"],"theme":[1],"layout":[1],"cardScript":[1,"card-script"],"changedProductCode":[1,"changed-product-code"],"isNetflixCard":[4,"is-netflix-card"],"darkMode":[4,"dark-mode"],"initializedState":[32],"showLoader":[32]},[[0,"optionSelected","onOptionSelected"]],{"data":[{"onDataChange":0}]}],[769,"tet-tab-content",{"dataName":[1,"data-name"],"defaultTab":[8,"default-tab"],"parentContainer":[16],"useVisibility":[4,"use-visibility"],"selectedId":[32],"previousDataName":[32],"previousParentContainer":[32],"theme":[32],"init":[64],"selectTab":[64]},null,{"dataName":[{"onDataNameChange":0}],"parentContainer":[{"onParentContainerChange":0}]}]]],["p-aae1bc5a",[[769,"tet-notification",{"icon":[1],"headerTitle":[1,"header-title"],"content":[1],"type":[1],"allowClose":[4,"allow-close"],"theme":[1],"animationDuration":[2,"animation-duration"],"close":[64]}]]],["p-3698d8ff",[[513,"tet-text-list",{"listType":[1,"list-type"],"decimalStart":[2,"decimal-start"],"decimalPrefix":[1,"decimal-prefix"],"withIcon":[4,"with-icon"],"listIcon":[1,"list-icon"],"theme":[1]}]]],["p-1be85243",[[769,"tet-switch",{"theme":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"name":[1],"value":[8],"disabled":[4],"checked":[516],"labelFont":[1,"label-font"],"alignCenter":[4,"align-center"],"labelPosition":[1,"label-position"],"focusStyleOnContainer":[4,"focus-style-on-container"],"setChecked":[64]}]]],["p-597ccbc1",[[769,"tet-container",{"highlightable":[4],"selected":[4],"theme":[1]}],[513,"tet-selection-list",{"items":[16],"preSelectedItems":[16],"multipleSelections":[4,"multiple-selections"],"itemRenderFunction":[16],"identifier":[1],"selectedItems":[32],"unsetSelectedItems":[64],"getSelectedItems":[64]},null,{"preSelectedItems":[{"onPreselectedItemsChanged":0}]}]]],["p-138b551e",[[513,"tet-icon",{"name":[513],"theme":[1],"type":[1],"useDefaultColor":[4,"use-default-color"],"accessibilityLabel":[1,"accessibility-label"],"focusable":[4]},null,{"name":[{"onIconSourceChange":0}],"theme":[{"onIconSourceChange":0}]}]]],["p-c0c302fe",[[513,"tet-datepicker-header",{"locale":[1],"selectedDate":[16],"internalDate":[16],"datepickerView":[1,"datepicker-view"]}],[513,"tet-datepicker-month-view",{"rangeDates":[16],"selectedDate":[16],"internalDate":[16],"rangePickerMode":[4,"range-picker-mode"],"inRangeHoverDate":[32]},null,{"internalDate":[{"handleDateChange":0}]}],[513,"tet-datepicker-multi-year-view",{"selectedDate":[16],"internalDate":[16],"years":[32]},null,{"internalDate":[{"handleInternalDateChange":0}]}],[513,"tet-datepicker-year-view",{"selectedDate":[16],"internalDate":[16]}]]],["p-830d6a1b",[[774,"tet-radio",{"theme":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"name":[1],"value":[8],"disabled":[4],"unavailable":[4],"checked":[1540],"error":[1540],"inputAutofocus":[4,"input-autofocus"],"focusStyleOnContainer":[4,"focus-style-on-container"],"iconName":[1,"icon-name"],"labelFont":[1,"label-font"],"alignCenter":[4,"align-center"],"hasSlotIcon":[32],"setChecked":[64],"setError":[64]},[[0,"keydown","onKeydown"]]],[769,"tet-tab-header",{"theme":[1],"type":[1],"position":[1],"sizing":[1],"defaultTab":[8,"default-tab"],"segmented":[4],"disabled":[4],"mode":[1],"accessibilityLabel":[1,"accessibility-label"],"hideHeaderUnderline":[4,"hide-header-underline"],"hideActiveHeaderUnderline":[4,"hide-active-header-underline"],"autoplayDelay":[2,"autoplay-delay"],"stopAutoplayOnHeaderHover":[4,"stop-autoplay-on-header-hover"],"stopAutoplayOnContentHover":[4,"stop-autoplay-on-content-hover"],"showOverflowGradients":[4,"show-overflow-gradients"],"dataName":[1,"data-name"],"selectedId":[32],"positions":[32],"autoplay":[32],"effectivePosition":[32],"hasOverflowLeft":[32],"hasOverflowRight":[32],"idSuffix":[32],"segmentAnimation":[32],"toggleAutoplay":[64],"stopAutoplay":[64],"startAutoplay":[64],"selectTab":[64]},null,{"hideActiveHeaderUnderline":[{"showActiveHeaderUnderline":0}],"autoplayDelay":[{"onAutoplayDelayChange":0}],"segmented":[{"onSegmentedChange":0}],"disabled":[{"onDisabledChange":0}]}]]],["p-fcfc7424",[[769,"tet-autocomplete",{"showOptionsOnEscapeClear":[4,"show-options-on-escape-clear"],"defaultOptions":[16],"optionsFilterAction":[16],"noOptionsMessage":[1,"no-options-message"],"noOptionsRenderFunction":[16],"customOptionRenderFunction":[16],"clearCallback":[16],"finishedLoading":[16],"newStyle":[4,"new-style"],"highlightOptionsKeyword":[4,"highlight-options-keyword"],"darkTheme":[4,"dark-theme"],"optionsIcon":[1,"options-icon"],"redesignedStyle":[4,"redesigned-style"],"filteredOptions":[32],"activeOption":[32],"showOptions":[32],"showLoader":[32],"isKeyboardFocus":[32],"clear":[64],"focusOnNativeInput":[64],"selectOption":[64]},[[1,"pointerup","onPointerUp"],[9,"pointerup","onWindowPointerUp"],[9,"mousedown","onMouseDown"],[8,"activeComponentStateChanged","onComponentActiveStateChange"],[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]]],[1,"tet-loader"]]],["p-3d845492",[[513,"tet-tag-group",{"language":[1],"tags":[16],"theme":[1]}],[513,"tet-tag",{"tagTitle":[1,"tag-title"],"count":[2],"active":[4],"theme":[1],"showIcon":[4,"show-icon"],"disabled":[4],"language":[1]},null,{"language":[{"onLanguageChange":0}]}]]],["p-cd7efc99",[[774,"tet-input",{"isPhoneNumber":[4,"is-phone-number"],"class":[1,"input-class"],"placeholder":[1,"input-placeholder"],"type":[1,"input-type"],"value":[1,"input-value"],"disabled":[4,"input-disabled"],"readonly":[4,"input-readonly"],"error":[4],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"iconLeftAccessibilityLabel":[1,"icon-left-accessibility-label"],"iconRightAccessibilityLabel":[1,"icon-right-accessibility-label"],"iconLeftClickCallback":[16],"iconRightClickCallback":[16],"validators":[16],"manualValidation":[4,"manual-validation"],"theme":[1],"autocomplete":[1],"maxlength":[1],"inputTabindex":[2,"input-tabindex"],"errorMessages":[32],"isKeyboardFocus":[32],"focusVisible":[32],"getInputHtmlElement":[64],"getErrors":[64],"clearErrors":[64],"validateInput":[64]},[[8,"keydown","onKeyDown"],[9,"mousedown","onMouseDown"]]]]],["p-8eed24d3",[[785,"tet-button",{"clickCallback":[16],"size":[1],"type":[1],"theme":[1],"colorTheme":[1,"color-theme"],"customColorCode":[1,"custom-color-code"],"customColorContentTone":[1,"custom-color-content-tone"],"disabled":[4],"iconMode":[4,"icon-mode"],"iconPosition":[1,"icon-position"],"iconName":[1,"icon-name"],"elementId":[1,"element-id"],"accessibilityLabel":[1,"accessibility-label"],"url":[1],"urlTarget":[1,"url-target"],"breakpointConfig":[16],"responsiveBreakpointConfig":[32]},[[9,"resize","onWindowResize"]],{"breakpointConfig":[{"onBreakpointConfigChange":0}]}]]],["p-8ab2df2d",[[513,"tet-stepper-input",{"theme":[1],"value":[1026],"min":[2],"max":[2],"step":[2],"size":[1],"disabled":[4],"label":[1],"displayMode":[1,"display-mode"],"selectOnFocus":[4,"select-on-focus"],"accessibilityLabel":[1,"accessibility-label"],"language":[1],"getValue":[64]},[[0,"keydown","onKeydown"],[0,"focus","onFocus"],[0,"input","inputChangeHandler"]],{"language":[{"onLanguageChange":0}],"value":[{"onValueChange":0}]}]]],["p-be2a472c",[[513,"tet-spinner",{"theme":[1],"size":[1],"type":[1],"previousProgress":[32],"setProgress":[64]},null,{"type":[{"onTypeChange":0}]}]]],["p-5e458bfa",[[769,"tet-dialog",{"headerTitle":[1,"header-title"],"isOpen":[1540,"is-open"],"theme":[1],"closeOnOverlayClick":[4,"close-on-overlay-click"],"closeOnEscape":[4,"close-on-escape"],"preventDefaultClose":[4,"prevent-default-close"],"footerDisplay":[1,"footer-display"],"hideCloseButton":[4,"hide-close-button"],"showHeaderDivider":[4,"show-header-divider"],"hideHeader":[4,"hide-header"],"titleId":[1,"title-id"],"open":[64],"close":[64]},[[8,"keydown","handleKeyDown"]],{"isOpen":[{"onDialogOpenAction":0}]}]]],["p-c44052cb",[[769,"tet-accordion",{"isOpen":[1540,"is-open"],"theme":[1],"header":[1],"headerIconName":[1,"header-icon-name"],"headerImageSrc":[1,"header-image-src"],"headerImageAlt":[1,"header-image-alt"],"indicatorDirection":[1,"indicator-direction"],"withBorder":[4,"with-border"],"withAutoScroll":[4,"with-auto-scroll"],"breakpoint":[1],"headingTag":[1,"heading-tag"],"transparentBackground":[4,"transparent-background"],"isHeaderInteractive":[4,"is-header-interactive"],"open":[64],"close":[64],"toggle":[64],"getState":[64],"setState":[64]}]]],["p-27f233a6",[[513,"tet-placeholder",{"width":[1],"height":[1],"darkTheme":[4,"dark-theme"]}]]],["p-ee489b61",[[513,"tet-dropdown",{"label":[1],"labelLogo":[1,"label-logo"],"labelLogoGrayscale":[1,"label-logo-grayscale"],"labelRight":[1,"label-right"],"labelRightColor":[1,"label-right-color"],"labelSubText":[1,"label-sub-text"],"flexLayout":[4,"flex-layout"],"buttonLabel":[1,"button-label"],"allowMultiple":[4,"allow-multiple"],"closeOnSelection":[4,"close-on-selection"],"theme":[1],"options":[16],"disabled":[4],"selectedOptionIndexes":[32],"isOpen":[32],"isKeyboardFocus":[32],"getSelectedOptions":[64],"selectOption":[64]},[[8,"click","handleWindowClick"],[8,"focusout","handleFocusOut"]],{"options":[{"onOptionsChange":0}]}],[769,"tet-tooltip",{"theme":[1],"targetElementSelector":[1,"target-element-selector"],"hoverElement":[16],"doNotShowOnHover":[4,"do-not-show-on-hover"],"position":[1],"positionState":[32],"showTooltip":[32],"show":[64],"hide":[64],"toggle":[64]},[[16,"touchmove","handleTouchmove"],[16,"wheel","handleWheel"],[16,"keydown","onKeydown"],[9,"resize","handleResize"]],{"position":[{"handlePositionChange":0}],"showTooltip":[{"onShowTooltipChange":0}]}],[769,"tet-checkbox",{"theme":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"name":[1],"value":[8],"disabled":[4],"unavailable":[4],"checked":[1540],"error":[1540],"indeterminate":[1540],"focusStyleOnContainer":[4,"focus-style-on-container"],"iconName":[1,"icon-name"],"labelFont":[1,"label-font"],"alignCenter":[4,"align-center"],"hasSlotIcon":[32],"setChecked":[64],"setIndeterminate":[64],"setError":[64]},null,{"indeterminate":[{"updateIndeterminateState":0}]}]]],["p-3bf29f89",[[513,"tet-address-offers",{"addressKey":[8,"address-key"],"catalog":[16],"theme":[1],"darkMode":[4,"dark-mode"],"termText":[1,"term-text"],"formParameters":[1,"form-parameters"],"language":[1],"allowedTvProductCodes":[16],"showLoader":[32],"subcategoryProductFilters":[32]},null,{"addressKey":[{"onAddressKeyChange":0}],"language":[{"onLanguageChanged":0}]}],[513,"tet-address-search",{"language":[1],"minSearchKeywordLength":[2,"min-search-keyword-length"],"placeholder":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"addressKey":[1,"address-key"],"newStyle":[4,"new-style"],"newFormsStyle":[4,"new-forms-style"],"redesignedStyle":[4,"redesigned-style"],"alwaysExpanded":[4,"always-expanded"],"theme":[1],"manualAddressTriggers":[4,"manual-address-triggers"],"isInputInvalid":[4,"is-input-invalid"],"inputDisabled":[1028,"input-disabled"],"highlightOptionsKeyword":[4,"highlight-options-keyword"],"searchButtonText":[1,"search-button-text"],"closeButtonText":[1,"close-button-text"],"inputIconRight":[32],"inputValueLength":[32],"isLoading":[32],"isKeyboardFocus":[32],"focusVisible":[32],"elementActive":[32],"resetInputState":[64]},[[8,"keydown","onKeyDown"],[0,"focusout","onFocusOut"]],{"language":[{"onLanguageChanged":0}],"addressKey":[{"search":0}],"inputDisabled":[{"onInputDisabledStateChange":0}]}],[513,"tet-availability-contact-form",{"language":[1],"taskOptions":[16],"submitButtonProps":[16],"showTitle":[4,"show-title"],"showInputLabel":[4,"show-input-label"],"theme":[1],"darkTheme":[4,"dark-theme"],"success":[1028],"showAvailabilityContactForm":[4,"show-availability-contact-form"],"subtitle":[1],"showLoader":[32]},[[0,"taskCreationSuccess","onSuccess"],[4,"emptyCatalog","onEmptyCatalog"]],{"language":[{"onLanguageChange":0}]}],[513,"tet-address-offers-filters",{"language":[1],"clearFilterButton":[4,"clear-filter-button"],"theme":[1]},null,{"language":[{"onLanguageChange":0}]}],[513,"tet-asset-availability-addresses",{"accessToken":[1,"access-token"],"pid":[1],"salesforceAccountId":[1,"salesforce-account-id"],"theme":[1],"addressSearchLabel":[1,"address-search-label"],"addressSearchPlaceholder":[1,"address-search-placeholder"],"addresses":[32],"lastAddedKey":[32],"showLoader":[32],"unselectAssetAddresses":[64]},null,{"pid":[{"loadAddressesOnPidChange":0}],"salesforceAccountId":[{"loadAddressesOnAccountIdChange":0}],"addresses":[{"onAddressesChange":0}]}]]],["p-7ac2babd",[[769,"tet-b2b-check-out-form",{"language":[1],"theme":[1],"open":[64],"close":[64]},null,{"language":[{"onLanguageChange":0}]}],[513,"tet-b2b-compare-card",{"theme":[1],"options":[16],"count":[2],"isSelected":[4,"is-selected"],"localCount":[32],"localIsSelected":[32],"isTablet":[32]},null,{"count":[{"syncCount":0}],"isSelected":[{"syncSelected":0}]}],[513,"tet-business-summary-card",{"productName":[1,"product-name"],"price":[2],"productDescription":[1,"product-description"],"discountPrice":[2,"discount-price"],"currency":[1],"contractTerm":[2,"contract-term"],"theme":[1],"withStepper":[4,"with-stepper"],"value":[2],"minValue":[2,"min-value"],"maxValue":[2,"max-value"],"stepperLabel":[1,"stepper-label"],"context":[1],"language":[1]}],[769,"tet-b2b-configurator-cart",{"theme":[1],"data":[16],"isCartEmpty":[4,"is-cart-empty"],"context":[1],"isDesktopResolution":[4,"is-desktop-resolution"],"isAccordionOpen":[32],"isPrimaryBlockOpen":[32],"isSecondaryBlockOpen":[32],"primarySlotFilled":[32],"secondarySlotFilled":[32],"changeBlockState":[64]},null,{"isDesktopResolution":[{"openAccordionOnResolutionChange":0}],"isCartEmpty":[{"checkStickyClassOnCartEmptyChange":0}]}],[513,"tet-business-navigation",{"menuItems":[16],"theme":[1],"expandable":[4],"singleOpenMenu":[4,"single-open-menu"],"emitOnSelectedClick":[4,"emit-on-selected-click"],"language":[1],"selectedItemId":[32],"mainMenuItemId":[32],"positions":[32],"expanded":[32],"openedMenuIds":[32],"selectMenuItem":[64]}]]],["p-71fa80d7",[[513,"tet-address-offers-filters-products",{"language":[1],"clearFilterButton":[4,"clear-filter-button"],"theme":[1],"catalog":[16],"productCodes":[16],"category":[16],"subcategoryId":[1,"subcategory-id"],"availableTvProducts":[32],"activeTvFilters":[32]},null,{"language":[{"onLanguageChange":0}],"catalog":[{"onDataChange":0}],"category":[{"onDataChange":0}],"productCodes":[{"onProductCodesChanged":0}]}],[769,"tet-compare-card",{"clickCallback":[16],"index":[2],"cardType":[1,"card-type"],"theme":[1],"colorIcons":[4,"color-icons"],"fullHeight":[4,"full-height"],"bestChoice":[4,"best-choice"],"cardHeader":[1,"card-header"],"logo":[1],"image":[1],"thumbnail":[1],"thumbnailAlt":[1,"thumbnail-alt"],"language":[1],"options":[16],"minWideWidth":[2,"min-wide-width"],"cardList":[4,"card-list"],"cardBackgroundColor":[1,"card-background-color"],"cardScript":[1,"card-script"],"parentContainer":[16],"hideBestChoiceBorder":[4,"hide-best-choice-border"],"withBorder":[4,"with-border"],"priceShownVertically":[4,"price-shown-vertically"],"bestChoiceTextPosition":[1,"best-choice-text-position"],"bestChoiceTextFloating":[4,"best-choice-text-floating"],"secondaryLinkPosition":[1,"secondary-link-position"],"showBulletPoints":[4,"show-bullet-points"],"showSubTitle":[4,"show-sub-title"],"showHelper":[4,"show-helper"],"isNetflixCard":[4,"is-netflix-card"],"darkMode":[4,"dark-mode"],"currentCardType":[32]},[[0,"click","onClick"]]]]]]'),e))));
|
|
1
|
+
import{p as e,a as t,b as a}from"./p-BGB6gNkz.js";export{s as setNonce}from"./p-BGB6gNkz.js";import{g as o}from"./p-DQuL1Twl.js";var n=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const a=t.call(this,!1),o=this.childNodes;if(e)for(let e=0;e<o.length;e++)2!==o[e].nodeType&&a.appendChild(o[e].cloneNode(!0));return a}};(()=>{n(t.prototype);const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then((async e=>(await o(),a(JSON.parse('[["p-2cfcf7df",[[513,"tet-address-offers-view",{"language":[1],"addressKey":[1,"address-key"],"theme":[1],"userPersonalCode":[1,"user-personal-code"],"showAuthorizedAddresses":[4,"show-authorized-addresses"],"accessToken":[1,"access-token"],"noUserFound":[4,"no-user-found"],"callCenterTaskOptions":[16],"showContactForm":[1028,"show-contact-form"],"termText":[1,"term-text"],"formParameters":[1,"form-parameters"],"accessibilityLabel":[1,"accessibility-label"],"address":[32]},[[0,"assetAddressSelected","onAddressSelected"],[0,"customerNotFound","customerNotFound"],[0,"emptyCatalog","onEmptyCatalog"]],{"language":[{"onLanguageChange":0}]}]]],["p-4215dec8",[[513,"tet-b2b-configurator",{"theme":[1],"stickyRefEl":[1,"sticky-ref-el"],"referenceElement":[32],"isLoading":[32],"itemToRemove":[32],"checkoutAttempted":[32],"formState":[32],"activePrimaryCategoryId":[32],"activeSecondaryCategoryId":[32],"selectedPrimaryCards":[32],"selectedSecondaryCards":[32],"isDesktopResolution":[32],"setSubmitFormState":[64]},[[9,"resize","onResize"]],{"activePrimaryCategoryId":[{"resetSelectedPrimaryCards":0}],"activeSecondaryCategoryId":[{"resetSelectedSecondaryCards":0}]}]]],["p-c9f14568",[[513,"tet-compare-cards-tab",{"data":[16],"forceColumn":[4,"force-column"],"layout":[1],"theme":[1],"darkMode":[4,"dark-mode"],"isNetflixCard":[4,"is-netflix-card"],"darkHeader":[4,"dark-header"],"withProductFilters":[4,"with-product-filters"],"productDataLoaded":[32],"showLoader":[32],"productSACData":[32],"filteredProductCodes":[32]},[[0,"compareCardsDidRender","hideLoader"]],{"showLoader":[{"onDataChange":0}]}]]],["p-83be5dad",[[513,"tet-compare-card-v3",{"cardType":[1,"card-type"],"singleCardControlType":[1,"single-card-control-type"],"theme":[1],"language":[1],"options":[16],"toggles":[16],"contractTerm":[2,"contract-term"],"controlsTitle":[1,"controls-title"],"singleCardTabsTitle":[1,"single-card-tabs-title"],"bestChoiceText":[1,"best-choice-text"],"bestChoiceIconName":[1,"best-choice-icon-name"],"currency":[1],"secondaryLink":[1,"secondary-link"],"secondaryLinkText":[1,"secondary-link-text"],"secondaryLinkOpenBlank":[4,"secondary-link-open-blank"],"buttonTitle":[1,"button-title"],"linkOpenBlank":[4,"link-open-blank"],"showControlsFirst":[4,"show-controls-first"],"showLoader":[32],"selectedProductId":[32],"selectedDropdownOptionId":[32],"selectedSwitchKeys":[32],"preselectedKeys":[32],"preselectedProductId":[32],"allProductData":[32],"preselectedRemountId":[32],"buttonSize":[32],"isSingleCardDesktop":[32],"smallRadioBlocksPerRow":[32],"largeRadioBlocksPerRow":[32],"isLoaded":[64],"getProductByCode":[64]},[[0,"optionSelected","onOptionSelected"],[9,"resize","onResize"]],{"options":[{"onOptionsChange":0}]}]]],["p-3ce7cda9",[[769,"tet-snicker-card",{"theme":[1],"state":[1],"selected":[4],"selectionType":[1,"selection-type"],"isTabStop":[4,"is-tab-stop"],"subscriptionLabel":[1,"subscription-label"],"topBadge":[1,"top-badge"],"indicator":[16],"cardTitle":[1,"card-title"],"cardId":[1,"card-id"],"subtitle":[1],"description":[1],"price":[16],"inlineMessage":[16],"selectionConfig":[16],"segmentSwitch":[16],"count":[2],"primaryValue":[8,"primary-value"],"secondaryValue":[8,"secondary-value"],"isInCart":[4,"is-in-cart"],"benefits":[16],"benefitLink":[1,"benefit-link"],"packageItems":[16],"subscriptionItems":[16],"bottomLinkText":[1,"bottom-link-text"],"bottomRemark":[1,"bottom-remark"],"accordionConfig":[16],"isDesktopResolution":[32],"isAccordionOpen":[32],"focusSelectionTarget":[64]},[[9,"resize","onResize"]],{"accordionConfig":[{"onAccordionConfigChanged":0}],"selectionConfig":[{"onSelectionConfigChanged":0}]}]]],["p-24058988",[[513,"tet-cloud-configurator",{"language":[1],"containerSelector":[1,"container-selector"],"theme":[1],"selectOnFocus":[4,"select-on-focus"],"isLoading":[32],"headerRef":[32],"footerRef":[32],"formValues":[32],"selectedTab":[32],"selectedPeriod":[32],"isFloatingSummary":[32],"isListExpanded":[32],"parentElement":[32]},null,{"isLoading":[{"onisLoadingChange":0}],"headerRef":[{"onHeaderRefChange":0}],"footerRef":[{"onFooterRefChange":0}],"selectedTab":[{"onSelectedTabChange":0}],"language":[{"onLanguageChange":0}]}]]],["p-e7e18cc4",[[513,"tet-display",{"activeBreakpoint":[32],"exampleBaseDisplay":[32],"exampleBreakpoint":[32],"exampleBreakpointDisplay":[32],"exampleBreakpointEnabled":[32],"exampleJustify":[32],"exampleAlignItems":[32],"exampleFlexDirection":[32],"exampleFlexWrap":[32],"exampleOrderA":[32],"exampleOrderB":[32]}]]],["p-7bccaeee",[[769,"tet-cloud-application-form-dialog",{"privacyPolicyLinkUrl":[1,"privacy-policy-link-url"],"loading":[4],"showOverlay":[4,"show-overlay"],"language":[1],"theme":[1],"privacyPolicyError":[32],"open":[64],"close":[64]},null,{"language":[{"onLanguageChange":0}]}]]],["p-9ae4f442",[[513,"tet-compare-card-v2",{"clickCallback":[16],"cardType":[1,"card-type"],"theme":[1],"colorIcons":[4,"color-icons"],"bestChoice":[4,"best-choice"],"language":[1],"options":[16],"cardBackgroundColor":[1,"card-background-color"],"cardScript":[1,"card-script"],"bestChoiceTextPosition":[1,"best-choice-text-position"],"darkMode":[4,"dark-mode"],"bonuses":[16],"benefitTitle":[1,"benefit-title"],"benefits":[16],"contractTerm":[2,"contract-term"],"bestChoiceText":[1,"best-choice-text"],"currency":[1],"secondaryLink":[1,"secondary-link"],"secondaryLinkText":[1,"secondary-link-text"],"secondaryLinkOpenBlank":[4,"secondary-link-open-blank"],"buttonTitle":[1,"button-title"],"linkOpenBlank":[4,"link-open-blank"],"dropdownOptions":[16],"showLoader":[32],"selectedProductCode":[32],"selectedSwitchKeys":[32],"preselectedKeys":[32],"preselectedProductCode":[32],"allProductData":[32],"preselectedRemountId":[32]},[[0,"optionSelected","onOptionSelected"]]]]],["p-3af65955",[[513,"tet-divider",{"exampleDividerClass":[32],"exampleDarkSurface":[32]}]]],["p-e2d4e5c3",[[513,"tet-position",{"examplePositionClass":[32]}]]],["p-915b2507",[[513,"tet-support-search",{"theme":[1],"minSearchLength":[2,"min-search-length"],"showInputLabel":[4,"show-input-label"],"labels":[16],"disabled":[4],"searchApiUrl":[1,"search-api-url"],"maxSearchResults":[2,"max-search-results"],"preventDuplicateSubmit":[4,"prevent-duplicate-submit"],"submitCooldownMs":[2,"submit-cooldown-ms"],"searchQuery":[1,"search-query"],"inputIconRight":[32],"inputValueLength":[32],"inputValue":[32],"isLoading":[32],"resetInputState":[64]},null,{"disabled":[{"onDisabledStateChange":0}]}]]],["p-632d382c",[[513,"tet-text",{"exampleAlignClass":[32],"exampleTransformClass":[32],"exampleDecorationClass":[32],"exampleFontStyleClass":[32],"exampleWhiteSpaceClass":[32],"exampleWordBreakClass":[32]}]]],["p-35e3a3ec",[[513,"tet-datepicker",{"locale":[1],"overlayEffect":[4,"overlay-effect"],"rangePickerMode":[4,"range-picker-mode"],"isOpen":[1028,"is-open"],"date":[1040],"datepickerView":[1025,"datepicker-view"],"rangeDates":[32],"internalDate":[32],"toggleIsOpen":[64]},[[0,"dateChanged","handleDateChanged"],[0,"datepickerViewChanged","handleDatepickerViewChanged"],[0,"internalDateChanged","handleInternalDateChanged"],[0,"rangeDateSet","handleRangeDateSet"],[0,"datepickerClosed","handleDatepickerClosed"],[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]],{"date":[{"handleDateChange":0}],"rangeDates":[{"handleRangeDateChange":0}]}]]],["p-b4f3985e",[[513,"tet-feedback-form",{"theme":[1],"language":[1],"data":[16],"expanded":[32],"formError":[32],"characterCount":[32],"submissionData":[32],"submitted":[32]},null,{"language":[{"onLanguageChange":0}]}]]],["p-f5d610ea",[[513,"tet-assembler",{"scenario":[1],"language":[1],"theme":[1],"expanded":[1540],"selectedContractTermId":[32],"selectedSwitchKeys":[32],"selectedProductCode":[32],"currentSummary":[32],"backendData":[32],"lockedSwitchAttentionKey":[32],"lockedSwitchAttentionSectionId":[32],"lockedSwitchUnlockKey":[32],"lockedSwitchErrorSectionId":[32],"getSelection":[64]},null,{"scenario":[{"scenarioChanged":0}],"language":[{"onLanguageChange":0}]}]]],["p-01336e7a",[[513,"tet-autocomplete-dropdown",{"options":[16],"defaultOption":[16],"noOptionsMessage":[1,"no-options-message"],"placeholder":[1],"label":[1],"theme":[1],"hasError":[4,"has-error"],"errorMessage":[1,"error-message"],"inputValue":[32],"clearInput":[64],"focusOnNativeInput":[64]}]]],["p-6eb089d0",[[769,"tet-dynamic-card",{"theme":[1],"size":[1],"sizeChangeBreakpoint":[1,"size-change-breakpoint"],"isInCarousel":[4,"is-in-carousel"],"pictureLayoutShiftPosition":[1,"picture-layout-shift-position"],"cardTitle":[1,"card-title"],"subtitle":[1],"tags":[16],"dateTag":[1,"date-tag"],"dateTagColorLight":[1,"date-tag-color-light"],"dateTagColorDark":[1,"date-tag-color-dark"],"priceTagOptions":[16],"linkHref":[1,"link-href"],"linkText":[1,"link-text"],"linkNewTab":[4,"link-new-tab"],"index":[2],"buttonColorTheme":[1,"button-color-theme"],"buttonCustomColorCode":[1,"button-custom-color-code"],"buttonCustomColorContentTone":[1,"button-custom-color-content-tone"],"isFocused":[32],"originalSize":[32],"currentSize":[32]},null,{"theme":[{"onThemeChanged":0}],"size":[{"onSizeChange":0}]}]]],["p-e564d494",[[513,"tet-filter",{"theme":[1],"clearFilterButtonTitle":[1,"clear-filter-button-title"],"showClearFilterButton":[4,"show-clear-filter-button"],"tags":[16],"filterState":[32]},null,{"tags":[{"tagsWatchHandler":0}]}]]],["p-d8b4261d",[[512,"tet-multi-step-dialog",{"content":[1],"steps":[16],"isOpen":[4,"is-open"],"dialogDataScreenKey":[1,"dialog-data-screen-key"],"tetDialogClass":[1,"tet-dialog-class"],"language":[1],"theme":[1],"isKeydownFocus":[32]}]]],["p-304026be",[[513,"tet-news-card-list",{"items":[16],"withControls":[4,"with-controls"],"scrollFullWidth":[4,"scroll-full-width"],"controlScrollAmount":[2,"control-scroll-amount"],"initialScrollAmount":[2,"initial-scroll-amount"],"disableScroll":[4,"disable-scroll"],"withScrollbar":[4,"with-scrollbar"],"withMouseDrag":[4,"with-mouse-drag"],"withVirtualScroll":[4,"with-virtual-scroll"],"theme":[1],"enableImageLazyload":[4,"enable-image-lazyload"]},null,{"enableImageLazyload":[{"onEnableImageLazyloadChange":0}]}]]],["p-9761bc72",[[513,"tet-range-slider",{"parentContainer":[1040],"minValue":[2,"min-value"],"maxValue":[2,"max-value"],"inputMaxValue":[2,"input-max-value"],"defaultValue":[2,"default-value"],"step":[2],"dataPoints":[16],"displayDataPoints":[16],"lockToDataPoint":[4,"lock-to-data-point"],"type":[1],"withControls":[4,"with-controls"],"withInput":[4,"with-input"],"withCurrentStepCounter":[4,"with-current-step-counter"],"dataUnits":[1,"data-units"],"size":[1],"reduceButtonAccessibilityLabel":[1,"reduce-button-accessibility-label"],"addButtonAccessibilityLabel":[1,"add-button-accessibility-label"],"numberInputAccessibilityLabel":[1,"number-input-accessibility-label"],"sliderInputAccessibilityLabel":[1,"slider-input-accessibility-label"],"theme":[1],"currentValue":[32],"dataSet":[32],"containerSize":[32],"tooltipOffset":[32],"isSliding":[32],"isPointerDown":[32],"positions":[32]},[[9,"resize","onWindowResize"]],{"dataPoints":[{"onDataPointsChange":0}],"type":[{"onTypeChange":0}],"currentValue":[{"onCurrentValueChange":0}],"size":[{"onSizeChange":0}]}]]],["p-c9e434c1",[[769,"tet-thank-you-view-v3",{"stepperData":[16],"icon":[1],"mainBlockTitle":[1,"main-block-title"],"mainBlockDescription":[1,"main-block-description"],"ctaButtonLabel":[1,"cta-button-label"],"ctaButtonId":[1,"cta-button-id"],"ctaButtonSize":[1,"cta-button-size"],"ctaButtonType":[1,"cta-button-type"],"ctaButtonTheme":[1,"cta-button-theme"],"language":[1],"translationGroup":[1,"translation-group"],"theme":[1]},null,{"language":[{"onLanguageChange":0}]}]]],["p-cfdad238",[[769,"tet-business-compare-card",{"mainTitle":[1,"main-title"],"bulletPoints":[16],"pricePrefix":[1,"price-prefix"],"price":[1],"currency":[1],"theme":[1],"hasContentInFooter":[32]}]]],["p-df0e988a",[[769,"tet-carousel",{"theme":[1],"showDots":[4,"show-dots"],"showGradient":[4,"show-gradient"],"focusAlignment":[1,"focus-alignment"],"showButtons":[4,"show-buttons"],"transitionDuration":[2,"transition-duration"],"swipeThreshold":[2,"swipe-threshold"],"transitionTiming":[1,"transition-timing"],"buttonIconLeft":[1,"button-icon-left"],"buttonIconRight":[1,"button-icon-right"],"maxDots":[2,"max-dots"],"label":[1],"nudgeAnimationInterval":[2,"nudge-animation-interval"],"unifiedButtons":[4,"unified-buttons"],"language":[1],"activeDotIndex":[32],"dotCount":[32],"totalItems":[32],"activeItem":[32],"isDragging":[32],"dragOffset":[32],"isNudgeAnimating":[32]},null,{"language":[{"onLanguageChange":0}],"activeItem":[{"onActiveItemChange":0}],"showGradient":[{"checkGradient":0}],"dragOffset":[{"checkGradient":0}],"nudgeAnimationInterval":[{"onNudgeAnimIntervalChange":0}],"isNudgeAnimating":[{"onNudgeAnimationStateChange":0}]}]]],["p-d2bb410e",[[513,"tet-expandable-input",{"class":[1,"input-class"],"placeholder":[1,"input-placeholder"],"value":[1,"input-value"],"disabled":[4,"input-disabled"],"accessibilityLabel":[1,"accessibility-label"],"mode":[1],"closedWidth":[1,"closed-width"],"animationDuration":[2,"animation-duration"],"error":[4],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"iconRightClickCallback":[16],"validators":[16],"manualValidation":[4,"manual-validation"],"theme":[1],"size":[1],"closeInputText":[1,"close-input-text"],"darkMode":[4,"dark-mode"],"expanded":[32],"hasInputValue":[32],"getInputHtmlElement":[64],"getErrors":[64],"validateInput":[64],"setState":[64],"clear":[64]},[[0,"blur","onBlur"],[0,"focus","onFocus"]],{"mode":[{"onModeChange":0}],"size":[{"onSizeChange":0}]}]]],["p-b7263345",[[513,"tet-floating-block",{"theme":[1],"header":[1],"content":[16],"isOpen":[4,"is-open"]}]]],["p-37c83d33",[[513,"tet-link-card-list",{"theme":[1],"layout":[1],"placeholderCount":[2,"placeholder-count"],"items":[16],"isSearchResult":[4,"is-search-result"]}]]],["p-cdb8c877",[[513,"tet-mini-compare-card",{"benefits":[1],"productTitle":[1,"product-title"],"price":[2],"oldPrice":[2,"old-price"],"currency":[1],"buttonLabel":[1,"button-label"],"url":[1],"urlTarget":[1,"url-target"]},null,{"price":[{"onPriceChange":0}]}]]],["p-56f99297",[[513,"tet-sticky-offer",{"visible":[516],"offerName":[1,"offer-name"],"price":[1],"priceSuffix":[1,"price-suffix"],"actionLabel":[1,"action-label"],"actionUrl":[1,"action-url"],"actionTarget":[1,"action-target"],"triggerElement":[16],"topBoundaryElement":[16],"bottomBoundaryElement":[16],"boundaryVisible":[32],"boundaryBottom":[32]},[[11,"scroll","onScroll"],[9,"resize","onResize"]],{"bottomBoundaryElement":[{"setupDockingSpace":0}],"triggerElement":[{"observeBoundaries":0}],"topBoundaryElement":[{"observeBoundaries":0}],"visible":[{"updateBoundaries":0}]}]]],["p-20f6ad3e",[[514,"tet-table",{"caption":[1],"cellTextAlign":[1,"cell-text-align"],"tableHeader":[1,"table-header"],"tableHeaderTextAlign":[1,"table-header-text-align"],"tableHeaderColumnSpan":[2,"table-header-column-span"],"tableHeaderWidth":[1,"table-header-width"],"tableData":[1040],"gappedColumnLayout":[4,"gapped-column-layout"],"theme":[1],"colorTheme":[1,"color-theme"],"fixedFirstColumn":[4,"fixed-first-column"],"normalizedColumns":[32]},null,{"tableData":[{"onTableDataChange":0}]}]]],["p-49ba40a1",[[512,"tet-banner-nav",{"slides":[2],"duration":[2],"paused":[4],"mobileLayout":[4,"mobile-layout"],"theme":[1],"language":[1],"interactive":[4],"isPaused":[32],"currentSlide":[32],"firstLoad":[32],"pause":[64],"play":[64],"goTo":[64],"next":[64],"previous":[64],"getCurrentSlide":[64]},null,{"language":[{"onLanguageChange":0}],"paused":[{"onPausedStateChange":0}],"interactive":[{"onInteractiveChange":0}]}]]],["p-19525e17",[[512,"tet-business-round-stepper",{"stepperData":[16],"layout":[1],"theme":[1]}]]],["p-1be8a5bc",[[769,"tet-menu",{"type":[1],"active":[4],"clickable":[4],"closeOnLinkClick":[4,"close-on-link-click"],"firstLevelTitle":[1,"first-level-title"],"firstLevelId":[1,"first-level-id"],"firstLevelLink":[1,"first-level-link"],"firstLevelIcon":[1,"first-level-icon"],"menuItemTheme":[1,"menu-item-theme"],"showMenuItemAnimation":[4,"show-menu-item-animation"],"subLevels":[16],"darkMode":[4,"dark-mode"],"parentSelector":[1,"parent-selector"],"isMegaMenuLayout":[4,"is-mega-menu-layout"],"isSubmenuLeft":[32],"megaActiveSubLevelIndex":[32],"isMegaMenuOpen":[32],"isMegaMenuEscapeClosed":[32],"isLinkClickClosed":[32]},[[1,"mouseleave","onHostMouseLeave"],[0,"focusin","onHostFocusIn"],[0,"focusout","onHostFocusOut"]],{"subLevels":[{"onLayoutInputChange":0}],"type":[{"onLayoutInputChange":0}],"isMegaMenuLayout":[{"onLayoutInputChange":0}],"parentSelector":[{"onLayoutInputChange":0}]}]]],["p-67bb4d53",[[769,"tet-menu-mobile",{"isActive":[4,"active"],"firstLevelTitle":[1,"first-level-title"],"firstLevelLink":[1,"first-level-link"],"firstLevelId":[1,"first-level-id"],"subLevels":[16],"darkMode":[4,"dark-mode"],"highlightTheme":[1,"highlight-theme"],"showAnimation":[4,"show-animation"],"firstLevelIcon":[1,"first-level-icon"],"hideIcons":[4,"hide-icons"],"hideBottomBorder":[4,"hide-bottom-border"],"openActiveMenu":[4,"open-active-menu"],"isExpanded":[32],"hasDropdownContent":[32],"subMenuState":[32]},null,{"isActive":[{"onIsActiveChange":0}]}]]],["p-4e018c17",[[769,"tet-navigation-mobile",{"darkMode":[4,"dark-mode"],"language":[1],"isTogglerExpanded":[32],"isTogglerVisible":[32],"showToggler":[64],"hideToggler":[64],"open":[64],"close":[64]},null,{"isTogglerExpanded":[{"onMenuToggle":0}],"language":[{"onLanguageChange":0}]}]]],["p-973193d0",[[513,"tet-round-stepper",{"stepperData":[16],"forcedColumn":[4,"forced-column"],"hideIcons":[4,"hide-icons"],"theme":[1],"columnLayout":[4,"column-layout"],"layout":[1]},[[9,"resize","onResize"]]]]],["p-085ec974",[[513,"tet-bar-graph",{"parentContainer":[1040],"data":[16],"minValue":[2,"min-value"],"maxValue":[2,"max-value"],"valueUnit":[1,"value-unit"],"labelPosition":[1,"label-position"],"valuePosition":[1,"value-position"],"autoPositionValues":[4,"auto-position-values"],"dataOrder":[1,"data-order"],"withGrid":[4,"with-grid"],"showGridValues":[4,"show-grid-values"],"gridLineCount":[2,"grid-line-count"],"gridValueDecimals":[2,"grid-value-decimals"],"animationDuration":[2,"animation-duration"],"size":[1],"theme":[1],"orientation":[1],"displayData":[32],"componentSize":[32],"labelWidth":[32],"overflowingValueIds":[32]},[[9,"resize","onWindowResize"],[0,"transitionend","onBarTransitionEnd"]],{"size":[{"onSizeChange":0}],"dataOrder":[{"onDataOrderChange":0}],"data":[{"onDataChange":0}],"minValue":[{"onBarLayoutChange":0}],"maxValue":[{"onBarLayoutChange":0}],"orientation":[{"onBarLayoutChange":0}],"valuePosition":[{"onBarLayoutChange":0}],"autoPositionValues":[{"onAutoPositionValuesChange":0}]}]]],["p-c37ccaaa",[[1,"tet-border-radius"]]],["p-6c28d6ac",[[769,"tet-business-card",{"mainTitle":[1,"main-title"],"subTitle":[1,"sub-title"],"infoText":[1,"info-text"],"type":[1],"theme":[1],"size":[32]}]]],["p-9d7fbd42",[[513,"tet-colors",{"showVariables":[4,"show-variables"],"darkTheme":[4,"dark-theme"],"isTokensExample":[4,"is-tokens-example"],"tokenSections":[32],"copiedToken":[32]},null,{"isTokensExample":[{"handleTokenSectionStateChange":0}],"darkTheme":[{"handleTokenSectionStateChange":0}]}]]],["p-96438761",[[513,"tet-countdown",{"endDatetime":[1,"end-datetime"],"accessibilityLabel":[1,"accessibility-label"],"countdownTitle":[1,"countdown-title"],"staticTextColor":[1,"static-text-color"],"countdown":[32]},null,{"endDatetime":[{"onEndDatetimeChanged":0}]}]]],["p-06d237de",[[513,"tet-counter",{"startValue":[2,"start-value"],"endValue":[2,"end-value"],"duration":[2],"delay":[2],"valueSteps":[2,"value-steps"],"stepValues":[16],"loopInterval":[2,"loop-interval"],"easing":[1],"easingConfig":[16],"disableAnimation":[4,"disable-animation"],"thousandSeparator":[4,"thousand-separator"],"startOnViewport":[4,"start-on-viewport"],"currentValue":[32],"restartCounter":[64]},null,{"startValue":[{"onCounterConfigChanged":0}],"endValue":[{"onCounterConfigChanged":0}],"duration":[{"onCounterConfigChanged":0}],"delay":[{"onCounterConfigChanged":0}],"valueSteps":[{"onCounterConfigChanged":0}],"stepValues":[{"onCounterConfigChanged":0}],"loopInterval":[{"onCounterConfigChanged":0}],"easing":[{"onCounterConfigChanged":0}],"easingConfig":[{"onCounterConfigChanged":0}],"disableAnimation":[{"onCounterConfigChanged":0}],"startOnViewport":[{"onCounterConfigChanged":0}]}]]],["p-5bac849e",[[769,"tet-expansion-panel",{"toggleElement":[1025,"toggle-element"],"initialState":[1,"initial-state"],"state":[32],"open":[64],"close":[64],"toggle":[64],"getState":[64]}]]],["p-9183aa09",[[1,"tet-font-weight"]]],["p-c27be82c",[[1,"tet-fonts"]]],["p-ec4710dd",[[0,"tet-grid"]]],["p-97ce6978",[[1,"tet-layout"]]],["p-b5e665c7",[[1,"tet-link"]]],["p-df68eb4e",[[769,"tet-snicker-card-group",{"selectionType":[1,"selection-type"]},null,{"selectionType":[{"onSelectionTypeChanged":0}]}]]],["p-7e2fa50e",[[1,"tet-spacing"]]],["p-499bf719",[[769,"tet-card-list",{"theme":[1],"withControls":[4,"with-controls"],"controlScrollAmount":[2,"control-scroll-amount"],"scrollFullWidth":[4,"scroll-full-width"],"initialScrollAmount":[2,"initial-scroll-amount"],"disableScroll":[4,"disable-scroll"],"withScrollbar":[4,"with-scrollbar"],"withOverflowOpacity":[4,"with-overflow-opacity"],"overflowOpacityMinWidth":[1,"overflow-opacity-min-width"],"withMouseDrag":[4,"with-mouse-drag"],"withVirtualScroll":[4,"with-virtual-scroll"],"withActiveElement":[4,"with-active-element"],"activeElementClass":[1,"active-element-class"],"scrollAnimationSpeed":[2,"scroll-animation-speed"],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"],"controlVisibility":[32],"scrollThumbWidth":[32],"isSmallContainer":[32],"scrollListTo":[64],"scrollListBy":[64],"scrollListToElementCenter":[64]},[[9,"resize","onResize"]],{"withMouseDrag":[{"onWithMouseDragChange":0}],"disableScroll":[{"onDisableScrollChange":0}],"withControls":[{"onWithControlsChange":0}],"withOverflowOpacity":[{"onWithOverflowOpacityChange":0}],"withVirtualScroll":[{"onWithVirtualScrollChange":0}]}]]],["p-3996e0b7",[[513,"tet-number-input",{"label":[1],"theme":[1],"accessibilityLabel":[1,"accessibility-label"],"buttonAccessibilityLabel":[1,"button-accessibility-label"],"helperText":[1,"helper-text"],"suffixes":[16],"value":[1026],"min":[2],"max":[2],"disabled":[4],"error":[4],"completed":[4],"selectOnFocus":[4,"select-on-focus"],"suffix":[32],"isOpen":[32],"isValueHidden":[32],"isKeyboardFocus":[32],"getValue":[64],"resetSuffix":[64]},[[0,"keydown","onKeydown"],[8,"keydown","onTabKeydown"],[0,"focus","onFocus"],[8,"click","onClick"],[0,"input","inputChangeHandler"],[0,"blur","onBlur"]],{"suffix":[{"onSuffixChange":0}]}]]],["p-a74562c2",[[769,"tet-inline-message",{"variant":[1],"theme":[1]}]]],["p-c541b10f",[[513,"tet-radio-blocks",{"blocks":[16],"blocksPerRow":[2,"blocks-per-row"],"blockType":[1,"block-type"],"theme":[513],"accessibilityLabel":[1,"accessibility-label"],"checkedBlockId":[32],"setChecked":[64]},null,{"blocks":[{"syncCheckedBlock":0}]}]]],["p-f21e5e14",[[513,"tet-stepper-v3",{"stepperData":[16],"theme":[1]}]]],["p-b86022d7",[[513,"tet-price-view",{"theme":[1],"background":[1],"font":[1],"size":[1],"headingText":[1,"heading-text"],"priceType":[1,"price-type"],"euroPrice":[1,"euro-price"],"centsPrice":[1,"cents-price"],"footerText":[1,"footer-text"],"footerTextType":[1,"footer-text-type"],"staticColors":[4,"static-colors"]}]]],["p-6946ba58",[[513,"tet-textarea",{"value":[1],"label":[1],"placeholder":[1],"disabled":[4],"errorMessages":[16],"theme":[1],"maxLength":[8,"max-length"],"isKeyboardFocus":[32],"focusVisible":[32],"getValue":[64]},[[8,"keydown","onKeyDown"],[9,"mousedown","onMouseDown"]]]]],["p-3f533c77",[[513,"tet-compare-cards",{"data":[1040],"vatText":[1,"vat-text"],"forceColumn":[4,"force-column"],"theme":[1],"layout":[1],"cardScript":[1,"card-script"],"changedProductCode":[1,"changed-product-code"],"isNetflixCard":[4,"is-netflix-card"],"darkMode":[4,"dark-mode"],"initializedState":[32],"showLoader":[32]},[[0,"optionSelected","onOptionSelected"]],{"data":[{"onDataChange":0}]}],[769,"tet-tab-content",{"dataName":[1,"data-name"],"defaultTab":[8,"default-tab"],"parentContainer":[16],"useVisibility":[4,"use-visibility"],"selectedId":[32],"previousDataName":[32],"previousParentContainer":[32],"theme":[32],"init":[64],"selectTab":[64]},null,{"dataName":[{"onDataNameChange":0}],"parentContainer":[{"onParentContainerChange":0}]}]]],["p-aae1bc5a",[[769,"tet-notification",{"icon":[1],"headerTitle":[1,"header-title"],"content":[1],"type":[1],"allowClose":[4,"allow-close"],"theme":[1],"animationDuration":[2,"animation-duration"],"close":[64]}]]],["p-3698d8ff",[[513,"tet-text-list",{"listType":[1,"list-type"],"decimalStart":[2,"decimal-start"],"decimalPrefix":[1,"decimal-prefix"],"withIcon":[4,"with-icon"],"listIcon":[1,"list-icon"],"theme":[1]}]]],["p-1be85243",[[769,"tet-switch",{"theme":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"name":[1],"value":[8],"disabled":[4],"checked":[516],"labelFont":[1,"label-font"],"alignCenter":[4,"align-center"],"labelPosition":[1,"label-position"],"focusStyleOnContainer":[4,"focus-style-on-container"],"setChecked":[64]}]]],["p-597ccbc1",[[769,"tet-container",{"highlightable":[4],"selected":[4],"theme":[1]}],[513,"tet-selection-list",{"items":[16],"preSelectedItems":[16],"multipleSelections":[4,"multiple-selections"],"itemRenderFunction":[16],"identifier":[1],"selectedItems":[32],"unsetSelectedItems":[64],"getSelectedItems":[64]},null,{"preSelectedItems":[{"onPreselectedItemsChanged":0}]}]]],["p-138b551e",[[513,"tet-icon",{"name":[513],"theme":[1],"type":[1],"useDefaultColor":[4,"use-default-color"],"accessibilityLabel":[1,"accessibility-label"],"focusable":[4]},null,{"name":[{"onIconSourceChange":0}],"theme":[{"onIconSourceChange":0}]}]]],["p-c0c302fe",[[513,"tet-datepicker-header",{"locale":[1],"selectedDate":[16],"internalDate":[16],"datepickerView":[1,"datepicker-view"]}],[513,"tet-datepicker-month-view",{"rangeDates":[16],"selectedDate":[16],"internalDate":[16],"rangePickerMode":[4,"range-picker-mode"],"inRangeHoverDate":[32]},null,{"internalDate":[{"handleDateChange":0}]}],[513,"tet-datepicker-multi-year-view",{"selectedDate":[16],"internalDate":[16],"years":[32]},null,{"internalDate":[{"handleInternalDateChange":0}]}],[513,"tet-datepicker-year-view",{"selectedDate":[16],"internalDate":[16]}]]],["p-830d6a1b",[[774,"tet-radio",{"theme":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"name":[1],"value":[8],"disabled":[4],"unavailable":[4],"checked":[1540],"error":[1540],"inputAutofocus":[4,"input-autofocus"],"focusStyleOnContainer":[4,"focus-style-on-container"],"iconName":[1,"icon-name"],"labelFont":[1,"label-font"],"alignCenter":[4,"align-center"],"hasSlotIcon":[32],"setChecked":[64],"setError":[64]},[[0,"keydown","onKeydown"]]],[769,"tet-tab-header",{"theme":[1],"type":[1],"position":[1],"sizing":[1],"defaultTab":[8,"default-tab"],"segmented":[4],"disabled":[4],"mode":[1],"accessibilityLabel":[1,"accessibility-label"],"hideHeaderUnderline":[4,"hide-header-underline"],"hideActiveHeaderUnderline":[4,"hide-active-header-underline"],"autoplayDelay":[2,"autoplay-delay"],"stopAutoplayOnHeaderHover":[4,"stop-autoplay-on-header-hover"],"stopAutoplayOnContentHover":[4,"stop-autoplay-on-content-hover"],"showOverflowGradients":[4,"show-overflow-gradients"],"dataName":[1,"data-name"],"selectedId":[32],"positions":[32],"autoplay":[32],"effectivePosition":[32],"hasOverflowLeft":[32],"hasOverflowRight":[32],"idSuffix":[32],"segmentAnimation":[32],"toggleAutoplay":[64],"stopAutoplay":[64],"startAutoplay":[64],"selectTab":[64]},null,{"hideActiveHeaderUnderline":[{"showActiveHeaderUnderline":0}],"autoplayDelay":[{"onAutoplayDelayChange":0}],"segmented":[{"onSegmentedChange":0}],"disabled":[{"onDisabledChange":0}]}]]],["p-fcfc7424",[[769,"tet-autocomplete",{"showOptionsOnEscapeClear":[4,"show-options-on-escape-clear"],"defaultOptions":[16],"optionsFilterAction":[16],"noOptionsMessage":[1,"no-options-message"],"noOptionsRenderFunction":[16],"customOptionRenderFunction":[16],"clearCallback":[16],"finishedLoading":[16],"newStyle":[4,"new-style"],"highlightOptionsKeyword":[4,"highlight-options-keyword"],"darkTheme":[4,"dark-theme"],"optionsIcon":[1,"options-icon"],"redesignedStyle":[4,"redesigned-style"],"filteredOptions":[32],"activeOption":[32],"showOptions":[32],"showLoader":[32],"isKeyboardFocus":[32],"clear":[64],"focusOnNativeInput":[64],"selectOption":[64]},[[1,"pointerup","onPointerUp"],[9,"pointerup","onWindowPointerUp"],[9,"mousedown","onMouseDown"],[8,"activeComponentStateChanged","onComponentActiveStateChange"],[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]]],[1,"tet-loader"]]],["p-3d845492",[[513,"tet-tag-group",{"language":[1],"tags":[16],"theme":[1]}],[513,"tet-tag",{"tagTitle":[1,"tag-title"],"count":[2],"active":[4],"theme":[1],"showIcon":[4,"show-icon"],"disabled":[4],"language":[1]},null,{"language":[{"onLanguageChange":0}]}]]],["p-cd7efc99",[[774,"tet-input",{"isPhoneNumber":[4,"is-phone-number"],"class":[1,"input-class"],"placeholder":[1,"input-placeholder"],"type":[1,"input-type"],"value":[1,"input-value"],"disabled":[4,"input-disabled"],"readonly":[4,"input-readonly"],"error":[4],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"iconLeftAccessibilityLabel":[1,"icon-left-accessibility-label"],"iconRightAccessibilityLabel":[1,"icon-right-accessibility-label"],"iconLeftClickCallback":[16],"iconRightClickCallback":[16],"validators":[16],"manualValidation":[4,"manual-validation"],"theme":[1],"autocomplete":[1],"maxlength":[1],"inputTabindex":[2,"input-tabindex"],"errorMessages":[32],"isKeyboardFocus":[32],"focusVisible":[32],"getInputHtmlElement":[64],"getErrors":[64],"clearErrors":[64],"validateInput":[64]},[[8,"keydown","onKeyDown"],[9,"mousedown","onMouseDown"]]]]],["p-8eed24d3",[[785,"tet-button",{"clickCallback":[16],"size":[1],"type":[1],"theme":[1],"colorTheme":[1,"color-theme"],"customColorCode":[1,"custom-color-code"],"customColorContentTone":[1,"custom-color-content-tone"],"disabled":[4],"iconMode":[4,"icon-mode"],"iconPosition":[1,"icon-position"],"iconName":[1,"icon-name"],"elementId":[1,"element-id"],"accessibilityLabel":[1,"accessibility-label"],"url":[1],"urlTarget":[1,"url-target"],"breakpointConfig":[16],"responsiveBreakpointConfig":[32]},[[9,"resize","onWindowResize"]],{"breakpointConfig":[{"onBreakpointConfigChange":0}]}]]],["p-8ab2df2d",[[513,"tet-stepper-input",{"theme":[1],"value":[1026],"min":[2],"max":[2],"step":[2],"size":[1],"disabled":[4],"label":[1],"displayMode":[1,"display-mode"],"selectOnFocus":[4,"select-on-focus"],"accessibilityLabel":[1,"accessibility-label"],"language":[1],"getValue":[64]},[[0,"keydown","onKeydown"],[0,"focus","onFocus"],[0,"input","inputChangeHandler"]],{"language":[{"onLanguageChange":0}],"value":[{"onValueChange":0}]}]]],["p-be2a472c",[[513,"tet-spinner",{"theme":[1],"size":[1],"type":[1],"previousProgress":[32],"setProgress":[64]},null,{"type":[{"onTypeChange":0}]}]]],["p-5e458bfa",[[769,"tet-dialog",{"headerTitle":[1,"header-title"],"isOpen":[1540,"is-open"],"theme":[1],"closeOnOverlayClick":[4,"close-on-overlay-click"],"closeOnEscape":[4,"close-on-escape"],"preventDefaultClose":[4,"prevent-default-close"],"footerDisplay":[1,"footer-display"],"hideCloseButton":[4,"hide-close-button"],"showHeaderDivider":[4,"show-header-divider"],"hideHeader":[4,"hide-header"],"titleId":[1,"title-id"],"open":[64],"close":[64]},[[8,"keydown","handleKeyDown"]],{"isOpen":[{"onDialogOpenAction":0}]}]]],["p-c44052cb",[[769,"tet-accordion",{"isOpen":[1540,"is-open"],"theme":[1],"header":[1],"headerIconName":[1,"header-icon-name"],"headerImageSrc":[1,"header-image-src"],"headerImageAlt":[1,"header-image-alt"],"indicatorDirection":[1,"indicator-direction"],"withBorder":[4,"with-border"],"withAutoScroll":[4,"with-auto-scroll"],"breakpoint":[1],"headingTag":[1,"heading-tag"],"transparentBackground":[4,"transparent-background"],"isHeaderInteractive":[4,"is-header-interactive"],"open":[64],"close":[64],"toggle":[64],"getState":[64],"setState":[64]}]]],["p-27f233a6",[[513,"tet-placeholder",{"width":[1],"height":[1],"darkTheme":[4,"dark-theme"]}]]],["p-ee489b61",[[513,"tet-dropdown",{"label":[1],"labelLogo":[1,"label-logo"],"labelLogoGrayscale":[1,"label-logo-grayscale"],"labelRight":[1,"label-right"],"labelRightColor":[1,"label-right-color"],"labelSubText":[1,"label-sub-text"],"flexLayout":[4,"flex-layout"],"buttonLabel":[1,"button-label"],"allowMultiple":[4,"allow-multiple"],"closeOnSelection":[4,"close-on-selection"],"theme":[1],"options":[16],"disabled":[4],"selectedOptionIndexes":[32],"isOpen":[32],"isKeyboardFocus":[32],"getSelectedOptions":[64],"selectOption":[64]},[[8,"click","handleWindowClick"],[8,"focusout","handleFocusOut"]],{"options":[{"onOptionsChange":0}]}],[769,"tet-tooltip",{"theme":[1],"targetElementSelector":[1,"target-element-selector"],"hoverElement":[16],"doNotShowOnHover":[4,"do-not-show-on-hover"],"position":[1],"positionState":[32],"showTooltip":[32],"show":[64],"hide":[64],"toggle":[64]},[[16,"touchmove","handleTouchmove"],[16,"wheel","handleWheel"],[16,"keydown","onKeydown"],[9,"resize","handleResize"]],{"position":[{"handlePositionChange":0}],"showTooltip":[{"onShowTooltipChange":0}]}],[769,"tet-checkbox",{"theme":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"name":[1],"value":[8],"disabled":[4],"unavailable":[4],"checked":[1540],"error":[1540],"indeterminate":[1540],"focusStyleOnContainer":[4,"focus-style-on-container"],"iconName":[1,"icon-name"],"labelFont":[1,"label-font"],"alignCenter":[4,"align-center"],"hasSlotIcon":[32],"setChecked":[64],"setIndeterminate":[64],"setError":[64]},null,{"indeterminate":[{"updateIndeterminateState":0}]}]]],["p-3bf29f89",[[513,"tet-address-offers",{"addressKey":[8,"address-key"],"catalog":[16],"theme":[1],"darkMode":[4,"dark-mode"],"termText":[1,"term-text"],"formParameters":[1,"form-parameters"],"language":[1],"allowedTvProductCodes":[16],"showLoader":[32],"subcategoryProductFilters":[32]},null,{"addressKey":[{"onAddressKeyChange":0}],"language":[{"onLanguageChanged":0}]}],[513,"tet-address-search",{"language":[1],"minSearchKeywordLength":[2,"min-search-keyword-length"],"placeholder":[1],"label":[1],"accessibilityLabel":[1,"accessibility-label"],"addressKey":[1,"address-key"],"newStyle":[4,"new-style"],"newFormsStyle":[4,"new-forms-style"],"redesignedStyle":[4,"redesigned-style"],"alwaysExpanded":[4,"always-expanded"],"theme":[1],"manualAddressTriggers":[4,"manual-address-triggers"],"isInputInvalid":[4,"is-input-invalid"],"inputDisabled":[1028,"input-disabled"],"highlightOptionsKeyword":[4,"highlight-options-keyword"],"searchButtonText":[1,"search-button-text"],"closeButtonText":[1,"close-button-text"],"inputIconRight":[32],"inputValueLength":[32],"isLoading":[32],"isKeyboardFocus":[32],"focusVisible":[32],"elementActive":[32],"resetInputState":[64]},[[8,"keydown","onKeyDown"],[0,"focusout","onFocusOut"]],{"language":[{"onLanguageChanged":0}],"addressKey":[{"search":0}],"inputDisabled":[{"onInputDisabledStateChange":0}]}],[513,"tet-availability-contact-form",{"language":[1],"taskOptions":[16],"submitButtonProps":[16],"showTitle":[4,"show-title"],"showInputLabel":[4,"show-input-label"],"theme":[1],"darkTheme":[4,"dark-theme"],"success":[1028],"showAvailabilityContactForm":[4,"show-availability-contact-form"],"subtitle":[1],"showLoader":[32]},[[0,"taskCreationSuccess","onSuccess"],[4,"emptyCatalog","onEmptyCatalog"]],{"language":[{"onLanguageChange":0}]}],[513,"tet-address-offers-filters",{"language":[1],"clearFilterButton":[4,"clear-filter-button"],"theme":[1]},null,{"language":[{"onLanguageChange":0}]}],[513,"tet-asset-availability-addresses",{"accessToken":[1,"access-token"],"pid":[1],"salesforceAccountId":[1,"salesforce-account-id"],"theme":[1],"addressSearchLabel":[1,"address-search-label"],"addressSearchPlaceholder":[1,"address-search-placeholder"],"addresses":[32],"lastAddedKey":[32],"showLoader":[32],"unselectAssetAddresses":[64]},null,{"pid":[{"loadAddressesOnPidChange":0}],"salesforceAccountId":[{"loadAddressesOnAccountIdChange":0}],"addresses":[{"onAddressesChange":0}]}]]],["p-7ac2babd",[[769,"tet-b2b-check-out-form",{"language":[1],"theme":[1],"open":[64],"close":[64]},null,{"language":[{"onLanguageChange":0}]}],[513,"tet-b2b-compare-card",{"theme":[1],"options":[16],"count":[2],"isSelected":[4,"is-selected"],"localCount":[32],"localIsSelected":[32],"isTablet":[32]},null,{"count":[{"syncCount":0}],"isSelected":[{"syncSelected":0}]}],[513,"tet-business-summary-card",{"productName":[1,"product-name"],"price":[2],"productDescription":[1,"product-description"],"discountPrice":[2,"discount-price"],"currency":[1],"contractTerm":[2,"contract-term"],"theme":[1],"withStepper":[4,"with-stepper"],"value":[2],"minValue":[2,"min-value"],"maxValue":[2,"max-value"],"stepperLabel":[1,"stepper-label"],"context":[1],"language":[1]}],[769,"tet-b2b-configurator-cart",{"theme":[1],"data":[16],"isCartEmpty":[4,"is-cart-empty"],"context":[1],"isDesktopResolution":[4,"is-desktop-resolution"],"isAccordionOpen":[32],"isPrimaryBlockOpen":[32],"isSecondaryBlockOpen":[32],"primarySlotFilled":[32],"secondarySlotFilled":[32],"changeBlockState":[64]},null,{"isDesktopResolution":[{"openAccordionOnResolutionChange":0}],"isCartEmpty":[{"checkStickyClassOnCartEmptyChange":0}]}],[513,"tet-business-navigation",{"menuItems":[16],"theme":[1],"expandable":[4],"singleOpenMenu":[4,"single-open-menu"],"emitOnSelectedClick":[4,"emit-on-selected-click"],"language":[1],"selectedItemId":[32],"mainMenuItemId":[32],"positions":[32],"expanded":[32],"openedMenuIds":[32],"selectMenuItem":[64]}]]],["p-71fa80d7",[[513,"tet-address-offers-filters-products",{"language":[1],"clearFilterButton":[4,"clear-filter-button"],"theme":[1],"catalog":[16],"productCodes":[16],"category":[16],"subcategoryId":[1,"subcategory-id"],"availableTvProducts":[32],"activeTvFilters":[32]},null,{"language":[{"onLanguageChange":0}],"catalog":[{"onDataChange":0}],"category":[{"onDataChange":0}],"productCodes":[{"onProductCodesChanged":0}]}],[769,"tet-compare-card",{"clickCallback":[16],"index":[2],"cardType":[1,"card-type"],"theme":[1],"colorIcons":[4,"color-icons"],"fullHeight":[4,"full-height"],"bestChoice":[4,"best-choice"],"cardHeader":[1,"card-header"],"logo":[1],"image":[1],"thumbnail":[1],"thumbnailAlt":[1,"thumbnail-alt"],"language":[1],"options":[16],"minWideWidth":[2,"min-wide-width"],"cardList":[4,"card-list"],"cardBackgroundColor":[1,"card-background-color"],"cardScript":[1,"card-script"],"parentContainer":[16],"hideBestChoiceBorder":[4,"hide-best-choice-border"],"withBorder":[4,"with-border"],"priceShownVertically":[4,"price-shown-vertically"],"bestChoiceTextPosition":[1,"best-choice-text-position"],"bestChoiceTextFloating":[4,"best-choice-text-floating"],"secondaryLinkPosition":[1,"secondary-link-position"],"showBulletPoints":[4,"show-bullet-points"],"showSubTitle":[4,"show-sub-title"],"showHelper":[4,"show-helper"],"isNetflixCard":[4,"is-netflix-card"],"darkMode":[4,"dark-mode"],"currentCardType":[32]},[[0,"click","onClick"]]]]]]'),e))));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,f as e,h as o,H as i}from"./p-BGB6gNkz.js";import{p as n,t as s}from"./p-BzLFf73g.js";import"./p-DbJll7nz.js";import"./p-Bvqcvhjw.js";const r=class{constructor(e){t(this,e)}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;focusAlignment="start";showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="arrow-left";buttonIconRight="arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{e(this)}catch{}}async onLanguageChange(t){await n("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const t=this.leftGradientRef,e=this.rightGradientRef;if(!t||!e)return;if(!this.showGradient||this.getFullyVisibleItemCount()>=this.totalItems)return t.style.opacity="0",void(e.style.opacity="0");const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.max(0,i-o),s=-this.getRealDragOffset(),a=Math.max(0,Math.min(n,s)),l=n-a<r.GRADIENT_VISIBILITY_THRESHOLD_PX;a<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(t.style.opacity="0",e.style.opacity="1"):l?(t.style.opacity="1",e.style.opacity="0"):(t.style.opacity="1",e.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await n("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;let s=n;this.unifiedButtons&&e<r.MOBILE_BREAKPOINT_PX&&(s=Math.min(n,r.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(s,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];e&&this.moveToItem(e)};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const t=this.leftGradientRef?.offsetWidth;return t&&t>0?t:r.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(o,i);const n=this.getFirstVisibleItemInViewport();n&&this.activeItem!==n.index&&(this.activeItem=n.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{if(this.registerUserInteraction(),"center"===this.focusAlignment)return void this.moveToItemCentered(e,o);const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItemCentered(t,e){const o=this.trackElement.getBoundingClientRect(),i=t.getBoundingClientRect().left-o.left-this.getFirstItemOffset()+t.offsetWidth/2-this.getViewportWidth()/2,n=Math.max(0,Math.min(i,this.getMaxScrollableOffset()));this.activeItem=e,this.dragOffset=n>0?-n:0,this.setDotIndex(n,0)}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"055d996e6c2c244bbd9182daddc8e3416b9b8064"},o("div",{key:"54b49c1011312a425ea16fe82ccf6ee41cb9cfed",class:{"tet-carousel":!0,[`${this.theme}`]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},o("div",{key:"e83003b54cff1ba91b1215c70a822875f77df91d",class:"tet-carousel__container"},o("div",{key:"02f50af37920ef551f3098798d795beaeadd2ee0",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"88419740d0604ae8e842f53f765a6285080bb1af",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"8da62deb8affa2fd56cb55bb1c526d1a9d35d7a1",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"e7fb0c70e6f41c0f5b37ce286ab78e7a3d3b07a1",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"2fd6530a4abc2887f0055c7f760db6fa3b34cbfb"})))),!!this.label&&o("div",{key:"7e34d6adb671eb3cb4527910c7c0646858bfec49",class:"tet-carousel__label"},this.label),a&&o("div",{key:"e88a639dfa55bd25270152f3a8e4e5e6f343d422",class:"tet-carousel__controls"},e&&o("div",{key:"7bb54afb936bb647598ac8560b2697db168980c5",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"e88c6fce42f2aa97c5336678190d7c195756bd3b",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"96ae9c32ea9cdc116a3dda1be1dd27499edda1ba",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"4f51d75a77c0a5fcb738d5394b66b6732bcad0fe",class:"tet-carousel__buttons"},o("tet-button",{key:"7eefda9f94ce0986a377377b37791a2104f6d13f",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"ca407b0f61ca23cea6d41ac21cde95a9e0ba5b26",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}
|