1"use strict";(self.webpackChunkDfsCard=self.webpackChunkDfsCard||[]).push([[4987],{9552:(S,C,u)=>{u.d(C,{x:()=>p});var v=u(7320),t=u(3370);function n(d,g){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275domElementStart(0,"button",5),t.\u0275\u0275domListener("click",function(){t.\u0275\u0275restoreView(a);const l=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(l.previous.emit())}),t.\u0275\u0275domElement(1,"img",6),t.\u0275\u0275domElementEnd()}if(2&d){const a=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("width",a.arrowSize())("height",a.arrowSize()),t.\u0275\u0275attribute("aria-disabled",0===a.activeIndex())("tabindex",0===a.activeIndex()?-1:0),t.\u0275\u0275advance(),t.\u0275\u0275styleProp("width",a.dotSize())("height",a.dotSize()),t.\u0275\u0275domProperty("src",0===a.activeIndex()?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAyNCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTE5LjQ3MiAzNy42NTA4TDI0IDMzLjI1MzhMOS4wNTc2IDE4Ljk5MzRMMjQgNC43NDU0MUwxOS40NzIgMC4zNDgzODlMMCAxOC45OTM0TDE5LjQ3MiAzNy42NTA4WiIgZmlsbD0iI0FEQURBRCIvPgo8L3N2Zz4K":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAyNCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTE5LjQ3MiAzNy42NTA4TDI0IDMzLjI1MzhMOS4wNTc2IDE4Ljk5MzRMMjQgNC43NDU0MUwxOS40NzIgMC4zNDgzODlMMCAxOC45OTM0TDE5LjQ3MiAzNy42NTA4WiIgZmlsbD0iI0VBNkEyOCIvPgo8L3N2Zz4K",t.\u0275\u0275sanitizeUrl)}}function I(d,g){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275domElementStart(0,"button",7),t.\u0275\u0275domListener("click",function(){const l=t.\u0275\u0275restoreView(a).$index,e=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(e.goToSlide.emit(l))}),t.\u0275\u0275domElementEnd()}if(2&d){const a=g.$index,o=t.\u0275\u0275nextContext();t.\u0275\u0275classMap(a===o.activeIndex()?o.activeDotColor():o.inactiveDotColor()),t.\u0275\u0275styleProp("width",o.dotSize())("height",o.dotSize()),t.\u0275\u0275attribute("aria-label",t.\u0275\u0275interpolate1("Go to slide ",a+1))("aria-current",a===o.activeIndex()?"true":null)}}function D(d,g){if(1&d){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275domElementStart(0,"button",8),t.\u0275\u0275domListener("click",function(){t.\u0275\u0275restoreView(e);const s=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(s.next.emit())}),t.\u0275\u0275domElement(1,"img",6),t.\u0275\u0275domElementEnd()}if(2&d){var a,o,l;const e=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("width",e.arrowSize())("height",e.arrowSize()),t.\u0275\u0275attribute("aria-disabled",e.activeIndex()===(null!==(a=e.content().length)&&void 0!==a?a:0)-1)("tabindex",e.activeIndex()===(null!==(o=e.content().length)&&void 0!==o?o:0)-1?-1:0),t.\u0275\u0275advance(),t.\u0275\u0275styleProp("width",e.dotSize())("height",e.dotSize()),t.\u0275\u0275domProperty("src",e.activeIndex()===(null!==(l=e.content().length)&&void 0!==l?l:0)-1?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAyNCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTI4IDM3LjY1MDhMMCAzMy4yNTM4TDE0Ljk0MjQgMTguOTkzNEwwIDQuNzQ1NDFMNC41MjggMC4zNDgzODlMMjQgMTguOTkzNEw0LjUyOCAzNy42NTA4WiIgZmlsbD0iI0FEQURBRCIvPgo8L3N2Zz4K":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAyNCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTI4IDM3LjY1MDhMMCAzMy4yNTM4TDE0Ljk0MjQgMTguOTkzNEwwIDQuNzQ1NDFMNC41MjggMC4zNDgzODlMMjQgMTguOTkzNEw0LjUyOCAzNy42NTA4WiIgZmlsbD0iI0VBNkEyOCIvPgo8L3N2Zz4K",t.\u0275\u0275sanitizeUrl)}}let p=(()=>{var d;class g{constructor(){this.content=t.input.required(),this.activeIndex=(0,t.input)(0),this.arrowSize=(0,t.input)("48px"),this.dotSize=(0,t.input)("14px"),this.gap=(0,t.input)("10px"),this.activeDotColor=(0,t.input)("dfs-tw-bg-interactive-emphasis-high"),this.inactiveDotColor=(0,t.input)("dfs-tw-bg-neutral-inverse-emphasis-high"),this.next=(0,t.output)(),this.previous=(0,t.output)(),this.goToSlide=(0,t.output)()}}return(d=g).\u0275fac=function(o){return new(o||d)},d.\u0275cmp=t.\u0275\u0275defineComponent({type:d,selectors:[["shared-element-carou
1sel-pagination"]],inputs:{content:[1,"content"],activeIndex:[1,"activeIndex"],arrowSize:[1,"arrowSize"],dotSize:[1,"dotSize"],gap:[1,"gap"],activeDotColor:[1,"activeDotColor"],inactiveDotColor:[1,"inactiveDotColor"]},outputs:{next:"next",previous:"previous",goToSlide:"goToSlide"},decls:6,vars:4,consts:[[1,"dfs-tw-relative"],[1,"dfs-tw-my-[10px]","dfs-tw-flex","dfs-tw-justify-center","dfs-tw-items-center"],["type","button","aria-label","Previous slide",1,"dfs-tw-flex","dfs-tw-items-center","dfs-tw-justify-center",3,"width","height"],["type","button",1,"dfs-tw-inline-block","dfs-tw-rounded-large","dfs-tw-border-none","dfs-tw-cursor-pointer",3,"width","height","class","aria-label"],["type","button","aria-label","Next slide",1,"dfs-tw-flex","dfs-tw-items-center","dfs-tw-justify-center",3,"width","height"],["type","button","aria-label","Previous slide",1,"dfs-tw-flex","dfs-tw-items-center","dfs-tw-justify-center",3,"click"],["alt","","aria-hidden","true","sharedLazyLoad","",3,"src"],["type","button",1,"dfs-tw-inline-block","dfs-tw-rounded-large","dfs-tw-border-none","dfs-tw-cursor-pointer",3,"click"],["type","button","aria-label","Next slide",1,"dfs-tw-flex","dfs-tw-items-center","dfs-tw-justify-center",3,"click"]],template:function(o,l){1&o&&(t.\u0275\u0275domElementStart(0,"div",0)(1,"div",1),t.\u0275\u0275conditionalCreate(2,n,2,11,"button",2),t.\u0275\u0275repeaterCreate(3,I,1,9,"button",3,t.\u0275\u0275repeaterTrackByIndex),t.\u0275\u0275conditionalCreate(5,D,2,11,"button",4),t.\u0275\u0275domElementEnd()()),2&o&&(t.\u0275\u0275advance(),t.\u0275\u0275styleProp("gap",l.gap()),t.\u0275\u0275advance(),t.\u0275\u0275conditional("0px"!==l.arrowSize()?2:-1),t.\u0275\u0275advance(),t.\u0275\u0275repeater(l.content()),t.\u0275\u0275advance(2),t.\u0275\u0275conditional("0px"!==l.arrowSize()?5:-1))},dependencies:[v.CommonModule],encapsulation:2}),g})()},9678:(S,C,u)=>{u.d(C,{a:()=>g});var v=u(7320),n=u(3370),D=u(9403);const m=["carouselTrack"],p=["*"];let g=(()=>{var a;class o{constructor(){this.platformId=(0,n.inject)(n.PLATFORM_ID),this.hostRef=(0,n.inject)(n.ElementRef),this.resizeObserver=null,this.activeIndex=(0,n.input)(0),this.slideWidth=(0,n.input)(296),this.totalSlides=(0,n.input)(0),this.dragThreshold=(0,n.input)(50),this.trackClass=(0,n.input)("dfs-tw-gap-16 lg:dfs-tw-gap-[7%] dfs-tw-px-16"),this.ariaLabel=(0,n.input)("Carousel"),this.activeIndexChange=(0,n.output)(),this.liveAnnouncement=(0,n.signal)(""),this.isDragging=(0,n.signal)(!1),this.hasDragged=!1,this.cachedSlideOffset=0,this.carouselTrack=(0,n.viewChild)("carouselTrack"),this.startX=0,this.startY=0,this.dragDistance=0,this.initialTransform=0,this.previousIndex=-1,this.boundTouchMove=e=>this.onDragMove(e),(0,n.effect)(()=>{const e=this.activeIndex();this.applyTransform(e*this.getSlideOffset(),!0),-1!==this.previousIndex&&this.previousIndex!==e&&this.announceSlideChange(e),this.previousIndex=e})}ngAfterViewInit(){(0,v.isPlatformBrowser)(this.platformId)&&(this.setupResizeObserver(),this.hostRef.nativeElement.addEventListener("touchmove",this.boundTouchMove,{passive:!1}))}ngOnDestroy(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.hostRef.nativeElement.removeEventListener("touchmove",this.boundTouchMove)}onDragStart(e){this.isDragging.set(!0),this.hasDragged=!1,this.startX=this.getClientX(e),this.startY=this.getClientY(e),this.dragDistance=0,this.initialTransform=this.activeIndex()*this.getSlideOffset(),this.applyTransform(this.initialTransform,!1)}onDragMove(e){if(!this.isDragging())return;const i=this.getClientX(e)-this.startX,s=this.getClientY(e)-this.startY;if(!this.hasDragged){const r=(0,D.RI)(i,s);if("undecided"===r)return;if("vertical"===r)return void this.isDragging.set(!1);this.hasDragged=!0}e.preventDefault(),this.dragDistance=this.startX-this.getClientX(e),this.applyTransform(this.initialTransform+this.dragDistance,!1)}onDragEnd(){if(!this.isDragging())return;this.isDragging.set(!1);const e=this.activeIndex();let i=e;this.hasDragged&&(this.dragDistance>this.dragThreshold()?i=Math.min(e+1,this.totalSlides()-1):this.dragDistance<-this.dragThreshold()&&(i=Math.max(e-1,0))),this.applyTransform(i*this.getSlideOffset(),!0),i!==e&&(this.previousIndex=i,this.activeIndexChange.emit(i),this.announceSlideChange(i)),this.dragDistance=0,setTimeout(()=>{this.hasDragged=!1},0)}onDocumentTouchCancel(){this.isDragging()&&(this.isDragging.set(!1),this.hasDragged=!1,this.dragDistance=0,this.applyTransform(this.activeIndex()*this.getSlideOffset(),!0))}onDocumentTouchEnd(){this.isDragging()&&this.onDragEnd()}onDocumentMouseUp(){this.isDragging()&&this.onDragEnd()}onDocumentMouseMove(e){this.isDragging()&&this.onDragMove(e)}onKeyDown(e){const i=this.activeIndex(),s=this.totalSlides();switch(e.key){case"ArrowLeft":case"ArrowUp":e.preventDefault(),i>
10&&this.navigateToSlide(i-1);break;case"ArrowRight":case"ArrowDown":e.preventDefault(),i<s-1&&this.navigateToSlide(i+1);break;case"Home":e.preventDefault(),this.navigateToSlide(0);break;case"End":e.preventDefault(),this.navigateToSlide(s-1)}}navigateToSlide(e){this.previousIndex=e,this.applyTransform(e*this.getSlideOffset(),!0),this.activeIndexChange.emit(e),this.announceSlideChange(e),this.focusSlide(e)}focusSlide(e){var i;const s=null===(i=this.carouselTrack())||void 0===i?void 0:i.nativeElement;if(!s)return;const c=s.querySelectorAll(":scope > *")[e];if(c){const f=c.querySelector('article[tabindex="-1"]');f&&setTimeout(()=>f.focus(),100)}}announceSlideChange(e){var i,s,r,c;const f=null===(i=this.carouselTrack())||void 0===i?void 0:i.nativeElement;if(!f)return void this.liveAnnouncement.set("Slide ".concat(e+1," of ").concat(this.totalSlides()));const M=f.querySelectorAll(":scope > *")[e],h=null==M?void 0:M.querySelector("article"),_=[(null==h||null===(s=h.querySelector("img"))||void 0===s?void 0:s.getAttribute("alt"))||"",(null==h||null===(r=h.querySelector("h3"))||void 0===r?void 0:r.textContent)||"",(null==h||null===(c=h.querySelector("div"))||void 0===c?void 0:c.textContent)||""].filter(Boolean).join(". ");this.liveAnnouncement.set("Slide ".concat(e+1," of ").concat(this.totalSlides(),". ").concat(_))}applyTransform(e,i){var s;const r=null===(s=this.carouselTrack())||void 0===s?void 0:s.nativeElement;r&&(r.style.transition=i?"transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1)":"none",r.style.transform="translate3d(-".concat(e,"px, 0, 0)"))}getClientX(e){return e instanceof MouseEvent?e.clientX:e.touches[0].clientX}getClientY(e){return e instanceof MouseEvent?e.clientY:e.touches[0].clientY}getSlideOffset(){return this.cachedSlideOffset>0?this.cachedSlideOffset:this.calculateSlideOffset()}calculateSlideOffset(){var e;const i=null===(e=this.carouselTrack())||void 0===e?void 0:e.nativeElement;if(!i)return this.slideWidth();const s=i.querySelectorAll(":scope > *");if(s.length<2)return this.slideWidth();const f=s[1].offsetLeft-s[0].offsetLeft;return f>0?f:this.slideWidth()}setupResizeObserver(){var e;const i=null===(e=this.carouselTrack())||void 0===e?void 0:e.nativeElement;i&&(this.resizeObserver=new ResizeObserver(()=>{const s=this.calculateSlideOffset();this.cachedSlideOffset=s,this.isDragging()||this.applyTransform(this.activeIndex()*s,!1)}),this.resizeObserver.observe(i),this.cachedSlideOffset=this.calculateSlideOffset(),this.applyTransform(this.activeIndex()*this.cachedSlideOffset,!1))}}return(a=o).\u0275fac=function(e){return new(e||a)},a.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["shared-carousel-container"]],viewQuery:function(e,i){1&e&&n.\u0275\u0275viewQuerySignal(i.carouselTrack,m,5),2&e&&n.\u0275\u0275queryAdvance()},hostBindings:function(e,i){1&e&&n.\u0275\u0275listener("touchcancel",function(){return i.onDocumentTouchCancel()},n.\u0275\u0275resolveDocument)("touchend",function(){return i.onDocumentTouchEnd()},n.\u0275\u0275resolveDocument)("mouseup",function(){return i.onDocumentMouseUp()},n.\u0275\u0275resolveDocument)("mousemove",function(r){return i.onDocumentMouseMove(r)},n.\u0275\u0275resolveDocument)("keydown",function(r){return i.onKeyDown(r)})},inputs:{activeIndex:[1,"activeIndex"],slideWidth:[1,"slideWidth"],totalSlides:[1,"totalSlides"],dragThreshold:[1,"dragThreshold"],trackClass:[1,"trackClass"],ariaLabel:[1,"ariaLabel"]},outputs:{activeIndexChange:"activeIndexChange"},ngContentSelectors:p,decls:6,vars:8,consts:[["carouselTrack",""],["role","group","aria-roledescription","carousel","tabindex","0","data-testid","draggable-carousel-wrapper",1,"dfs-tw-relative","dfs-tw-overflow-x-clip","dfs-tw-outline-none"],["role","presentation","data-testid","draggable-carousel-track",3,"mousedown","touchstart"],["aria-live","polite","aria-atomic","true","data-testid","carousel-live-region",1,"dfs-tw-sr-only"]],template:function(e,i){if(1&e){const s=n.\u0275\u0275getCurrentView();n.\u0275\u0275projectionDef(),n.\u0275\u0275domElementStart(0,"section",1)(1,"div",2,0),n.\u0275\u0275domListener("mousedown",function(c){return n.\u0275\u0275restoreView(s),n.\u0275\u0275resetVie
1w(i.onDragStart(c))})("touchstart",function(c){return n.\u0275\u0275restoreView(s),n.\u0275\u0275resetView(i.onDragStart(c))}),n.\u0275\u0275projection(3),n.\u0275\u0275domElementEnd(),n.\u0275\u0275domElementStart(4,"div",3),n.\u0275\u0275text(5),n.\u0275\u0275domElementEnd()()}2&e&&(n.\u0275\u0275attribute("aria-label",i.ariaLabel()),n.\u0275\u0275advance(),n.\u0275\u0275classMap("dfs-tw-flex dfs-tw-items-stretch dfs-tw-select-none "+i.trackClass()+" dfs-tw-transition-transform dfs-tw-duration-500 dfs-tw-ease-out"),n.\u0275\u0275classProp("dfs-tw-cursor-grabbing",i.isDragging())("dfs-tw-cursor-grab",!i.isDragging()),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate1(" ",i.liveAnnouncement()," "))},encapsulation:2,changeDetection:0}),o})()}}]); 2//# sourceMappingURL=4987.47c906093868da99.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.