PageSourceSearch

https://www.belron.com/chunk-FLE3V22W.js

js belron.com collected 2026-10-02 16:43:08 UTC 26,119 bytes, 3 lines download raw bytes

1import{a as Ce}from"./chunk-CQLAGQNM.js";import{a as we}from"./chunk-Q5LJUV3L.js";import"./chunk-3O4NXPYV.js";import{a as be}from"./chunk-6LEZHGLX.js";import"./chunk-SOWNSDVS.js";import{j as fe}from"./chunk-K4O73SKT.js";import"./chunk-D3ED5CAA.js";import"./chunk-ASZKVKS2.js";import"./chunk-FE4OSO6A.js";import{a as _e}from"./chunk-PLY5JERT.js";import"./chunk-W4TN3D7V.js";import"./chunk-SGFDMKOB.js";import{Y as M}from"./chunk-FBKQDMH7.js";import{a as H}from"./chunk-UYAJYTOD.js";import"./chunk-GM3TIB7Z.js";import"./chunk-QL6YS5OU.js";import"./chunk-FZ7WUL3C.js";import{a as Ve}from"./chunk-RCUPQHA7.js";import{h as O,s as ge}from"./chunk-YJOMLR5S.js";import{Ad as B,B as ee,Cc as v,Cd as ye,Db as w,Dc as d,Dd as me,Ea as ae,Fa as f,Ga as _,Ha as re,Jc as P,Kc as x,Lc as S,Oa as se,Ob as b,Pa as le,Pb as ue,Sa as R,Ta as de,Ub as C,_a as he,ab as ce,ad as E,bd as U,c as G,cd as j,f as X,fd as q,g as Z,ga as te,gc as F,ha as ie,hc as h,ic as Y,jc as pe,m as J,nc as m,oc as Q,pa as ne,qc as N,ra as oe,rc as z,sc as l,sd as A,tc as c,ua as g,uc as u,xb as s,yc as V,z as K,zd as L}from"./chunk-P3WUMIUN.js";import"./chunk-2OY4FR2S.js";import{a as T,b as k,e as ke,j as W}from"./chunk-P7UHXAQQ.js";var D=ke(Ve(),1);var Ae=["youtubeContainer"];function Le(n,a){if(n&1){let t=V();l(0,"youtube-player-placeholder",2),v("click",function(){f(t);let i=d();return _(i._load(!0))}),c()}if(n&2){let t=d();h("videoId",t.videoId)("width",t.width)("height",t.height)("isLoading",t._isLoading)("buttonLabel",t.placeholderButtonLabel)("quality",t.placeholderImageQuality)}}var Me=(()=>{class n{videoId;width;height;isLoading;buttonLabel;quality;_getBackgroundImage(){let t;return this.quality==="low"?t=`https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg`:this.quality==="high"?t=`https://i.ytimg.com/vi/${this.videoId}/maxresdefault.jpg`:t=`https://i.ytimg.com/vi_webp/${this.videoId}/sddefault.webp`,`url(${t})`}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["youtube-player-placeholder"]],hostAttrs:[1,"youtube-player-placeholder"],hostVars:8,hostBindings:function(e,i){e&2&&(Y("background-image",i._getBackgroundImage())("width",i.width,"px")("height",i.height,"px"),pe("youtube-player-placeholder-loading",i.isLoading))},inputs:{videoId:"videoId",width:"width",height:"height",isLoading:"isLoading",buttonLabel:"buttonLabel",quality:"quality"},decls:4,vars:1,consts:[["type","button",1,"youtube-player-placeholder-button"],["height","100%","version","1.1","viewBox","0 0 68 48","focusable","false","aria-hidden","true"],["d","M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z","fill","#f00"],["d","M 45,24 27,14 27,34","fill","#fff"]],template:function(e,i){e&1&&(l(0,"button",0),re(),l(1,"svg",1),u(2,"path",2)(3,"path",3),c()()),e&2&&F("aria-label",i.buttonLabel)},styles:[`.youtube-player-placeholder{display:flex;align-items:center;justify-content:center;width:100%;overflow:hidden;cursor:pointer;background-color:#000;background-position:center center;background-size:cover;transition:box-shadow 300ms ease;box-shadow:inset 0 120px 90px -90px rgba(0,0,0,.8)}:fullscreen .youtube-player-placeholder{min-width:100vw;min-height:100vh}.youtube-player-placeholder-button{transition:opacity 300ms ease;-moz-appearance:none;-webkit-appearance:none;background:none;border:none;padding:0;display:flex}.youtube-player-placeholder-button svg{width:68px;height:48px}.youtube-player-placeholder-loading{box-shadow:none}.youtube-player-placeholder-loading .youtube-player-placeholder-button{opacity:0}
2`],encapsulation:2,changeDetection:0})}return n})(),De=new oe("YOUTUBE_PLAYER_CONFIG"),ve=640,Pe=390;function xe(n){return n==null?n:B(n,0)}var p=(function(n){return n[n.UNSTARTED=-1]="UNSTARTED",n[n.ENDED=0]="ENDED",n[n.PLAYING=1]="PLAYING",n[n.PAUSED=2]="PAUSED",n[n.BUFFERING=3]="BUFFERING",n[n.CUED=5]="CUED",n})(p||{}),Se=(()=>{class n{_ngZone=g(le);_nonce=g(ce,{optional:!0});_changeDetectorRef=g(A);_elementRef=g(de);_player;_pendingPlayer;_existingApiReadyCallback;_pendingPlayerState;_destroyed=new X;_playerChanges=new Z(void 0);_isLoading=!1;_hasPlaceholder=!0;_isBrowser;videoId;get height(){return this._height}set height(t){this._height=t==null||isNaN(t)?Pe:t}_height=Pe;get width(){return this._width}set width(t){this._width=t==null||isNaN(t)?ve:t}_width=ve;startSeconds;endSeconds;suggestedQuality;playerVars;disableCookies=!1;loadApi;disablePlaceholder=!1;showBeforeIframeApiLoads=!1;placeholderButtonLabel;placeholderImageQuality;ready=new se;stateChange=this._getLazyEmitter("onStateChange");error=this._getLazyEmitter("onError");apiChange=this._getLazyEmitter("onApiChange");playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange");playbackRateChange=this._getLazyEmitter("onPlaybackRateChange");youtubeContainer;constructor(){let t=g(he),e=g(De,{optional:!0});this.loadApi=e?.loadApi??!0,this.disablePlaceholder=!!e?.disablePlaceholder,this.placeholderButtonLabel=e?.placeholderButtonLabel||"Play video",this.placeholderImageQuality=e?.placeholderImageQuality||"standard",this._isBrowser=ge(t)}ngAfterViewInit(){this._conditionallyLoad()}ngOnChanges(t){this._shouldRecreatePlayer(t)?this._conditionallyLoad():this._player&&((t.width||t.height)&&this._setSize(),t.suggestedQuality&&this._setQuality(),(t.startSeconds||t.endSeconds||t.suggestedQuality)&&this._cuePlayer())}ngOnDestroy(){this._pendingPlayer?.destroy(),this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():(this._getPendingState().playbackState=p.PLAYING,this._load(!0))}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=p.PAUSED}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=p.
2CUED}seekTo(t,e){this._player?this._player.seekTo(t,e):this._getPendingState().seek={seconds:t,allowSeekAhead:e}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():this._pendingPlayerState?!!this._pendingPlayerState.muted:!1}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&this._pendingPlayerState.volume!=null?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&this._pendingPlayerState.playbackRate!=null?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(!(!this._isBrowser||!window.YT))return this._player?this._player.getPlayerState():this._pendingPlayerState&&this._pendingPlayerState.playbackState!=null?this._pendingPlayerState.playbackState:p.UNSTARTED}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}requestFullscreen(t){return W(this,null,function*(){let e=this._elementRef.nativeElement;return e.requestFullscreen?e.requestFullscreen(t):Promise.reject(new Error("Fullscreen API not supported by browser."))})}_load(t){this._isBrowser&&(!window.YT||!window.YT.Player?(this.loadApi?(this._isLoading=!0,Re(this._nonce)):this.showBeforeIframeApiLoads,this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback?.(),this._ngZone.run(()=>this._createPlayer(t))}):this._createPlayer(t))}_conditionallyLoad(){this._shouldShowPlaceholder()?this.playerVars?.autoplay===1&&this._load(!0):this._load(!1)}_shouldShowPlaceholder(){return this.disablePlaceholder?!1:this._isBrowser?this._hasPlaceholder&&!!this.videoId&&!this._player:!0}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_shouldRecreatePlayer(t){let e=t.videoId||t.playerVars||t.disableCookies||t.disablePlaceholder;return!!e&&!e.isFirstChange()}_createPlayer(t){if(this._player?.destroy(),this._pendingPlayer?.destroy(),typeof YT>"u"||!this.videoId&&!this.playerVars?.list)return;let e=this._ngZone.runOutsideAngular(()=>new YT.Player(this.youtubeContainer.nativeElement,{videoId:this.videoId,host:this.disableCookies?"https://www.youtube-nocookie.com":void 0,width:this.width,height:this.height,playerVars:t?k(T({},this.playerVars||{}),{autoplay:1}):this.playerVars})),i=o=>{this._ngZone.run(()=>{this._isLoading=!1,this._hasPlaceholder=!1,this._player=e,this._pendingPlayer=void 0,e.removeEventListener("onReady",i),this._playerChanges.next(e),this.ready.emit(o),this._setSize(),this._setQuality(),this._pendingPlayerState&&(this._applyPendingPlayerState(e,this._pendingPlayerState),this._pendingPlayerState=void 0);let r=e.getPlayerState();r===p.UNSTARTED||r===p.CUED||r==null?this._cuePlayer():t&&this.startSeconds&&this.startSeconds>0&&e.seekTo(this.startSeconds,!0),this._changeDetectorRef.markForCheck()})};this._pendingPlayer=e,e.addEventListener("onReady",i)}_applyPendingPlayerState(t,e){let{playbackState:i,playbackRate:o,volume:r,muted:y,seek:I}=e;switch(i){case p.PLAYING:t.playVideo();break;case p.PAUSED:t.pauseVideo();break;case p.CUED:t.stopVideo();break}o!=null&&t.setPlaybackRate(o),r!=null&&t.setVolume(r),y!=null&&(y?t.mute():t.unMute
2()),I!=null&&t.seekTo(I.seconds,I.allowSeekAhead)}_cuePlayer(){this._player&&this.videoId&&this._player.cueVideoById({videoId:this.videoId,startSeconds:this.startSeconds,endSeconds:this.endSeconds,suggestedQuality:this.suggestedQuality})}_setSize(){this._player?.setSize(this.width,this.height)}_setQuality(){this._player&&this.suggestedQuality&&this._player.setPlaybackQuality(this.suggestedQuality)}_getLazyEmitter(t){return this._playerChanges.pipe(te(e=>e?K(i=>{e.addEventListener(t,i)},i=>{try{e?.removeEventListener?.(t,i)}catch{}}):J()),e=>new G(i=>e.subscribe({next:o=>this._ngZone.run(()=>i.next(o)),error:o=>i.error(o),complete:()=>i.complete()})),ie(this._destroyed))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["youtube-player"]],viewQuery:function(e,i){if(e&1&&P(Ae,7),e&2){let o;x(o=S())&&(i.youtubeContainer=o.first)}},inputs:{videoId:"videoId",height:[2,"height","height",B],width:[2,"width","width",B],startSeconds:[2,"startSeconds","startSeconds",xe],endSeconds:[2,"endSeconds","endSeconds",xe],suggestedQuality:"suggestedQuality",playerVars:"playerVars",disableCookies:[2,"disableCookies","disableCookies",L],loadApi:[2,"loadApi","loadApi",L],disablePlaceholder:[2,"disablePlaceholder","disablePlaceholder",L],showBeforeIframeApiLoads:[2,"showBeforeIframeApiLoads","showBeforeIframeApiLoads",L],placeholderButtonLabel:"placeholderButtonLabel",placeholderImageQuality:"placeholderImageQuality"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},features:[ae],decls:4,vars:3,consts:[["youtubeContainer",""],[3,"videoId","width","height","isLoading","buttonLabel","quality"],[3,"click","videoId","width","height","isLoading","buttonLabel","quality"]],template:function(e,i){e&1&&(C(0,Le,1,6,"youtube-player-placeholder",1),l(1,"div"),u(2,"div",null,0),c()),e&2&&(m(i._shouldShowPlaceholder()?0:-1),s(),Y("display",i._shouldShowPlaceholder()?"none":""))},dependencies:[Me],styles:[`youtube-player:fullscreen,youtube-player:fullscreen iframe{min-width:100vw;min-height:100vh}
3`],encapsulation:2,changeDetection:0})}return n})(),$=!1;function Re(n){if($)return;let a="https://www.youtube.com/iframe_api",t=document.createElement("script"),e=i=>{t.removeEventListener("load",e),t.removeEventListener("error",e),i.type==="error"&&($=!1)};t.addEventListener("load",e),t.addEventListener("error",e),t.src=a,t.async=!0,n&&t.setAttribute("nonce",n),$=!0,document.body.appendChild(t)}var Ie=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=ue({type:n});static \u0275inj=ne({})}return n})();var Be=["playerContainer"],Oe=(n,a)=>({"opacity-0":n,"opacity-100":a}),Ye=(n,a,t)=>({hidden:n,"pb-[56.25%]":a,"h-full":t});function Qe(n,a){if(n&1){let t=V();l(0,"youtube-player",6,1),v("ready",function(i){f(t);let o=d();return _(o.ready(i))})("stateChange",function(i){f(t);let o=d();return _(o.statusChanged(i))})("error",function(){f(t);let i=d();return _(i.handleError())}),c()}if(n&2){let t=d();h("ngClass",j(6,Ye,!t.isVideoReady,t.isDesktop||!t.content().showVideoOnMobile,!t.isDesktop&&t.content().showVideoOnMobile))("videoId",t.content().videoId)("width",t.width)("height",t.height)("playerVars",t.options)("disableCookies",!0)}}var Ne=(n,a,t)=>({"h-[320px] xs:h-[328px] s:h-[528px] m:h-[335px]":n,"aspect-[16/9]":a,"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:right-0 after:top-0 after:bg-black/20":t}),ze=(n,a,t,e,i,o)=>({videoId:n,thumbnail:a,mute:t,focused:e,loop:!0,captions:i,showVideoOnMobile:o}),Te=n=>({"text-center":n}),Ue=n=>({center:n});function je(n,a){if(n&1&&u(0,"ewp-headline",5),n&2){let t=d(2);h("content",t.content().item.headline)}}function qe(n,a){if(n&1&&u(0,"ewp-richtext",6),n&2){let t=d(2);h("ngClass",E(2,Te,t.content().mobileAlignment===t.Alignment.Center))("content",t.content().item.richtext)}}function He(n,a){if(n&1&&u(0,"ewp-cta",7),n&2){let t,e=d(2);h("content",e.content().item.cta)("ngClass",E(2,Ue,e.content().mobileAlignment===e.Alignment.Center&&(!((t=e.content().item.cta)!=null&&t.showIcon)||((t=e.content().item.cta)==null?null:t.ctaVariation)===e.CtaVariation.Text)))}}function $e(n,a){if(n&1&&(l(0,"div",4),C(1,je,1,1,"ewp-headline",5)(2,qe,1,4,"ewp-richtext",6)(3,He,1,4,"ewp-cta",7),c()),n&2){let t=d();h("ngClass",E(4,Te,t.content().mobileAlignment===t.Alignment.Center)),s(),m(t.content().item.headline?1:-1),s(),m(t.content().item.ric
3htext?2:-1),s(),m(t.content().item.cta?3:-1)}}var We=["carouselContainer"],Ge=["carouselItem"],Xe=n=>({hidden:n}),Ze=(n,a,t,e,i,o)=>({item:n,mobileAlignment:a,sound:t,focused:e,darkeningOverlay:i,showVideoOnMobile:o}),Je=(n,a)=>({"w-5 bg-ewp-ui-bg-select-selected transition-width ease-in-out":n,"w-3 cursor-pointer bg-ewp-ui-bg-select-default":a});function Ke(n,a){if(n&1&&(l(0,"div",4,1),u(2,"ewp-stage-video-item",8),c()),n&2){let t=a.$implicit,e=a.$index,i=d();F("data-index",e),s(2),h("content",q(2,Ze,t,i.content().mobileAlignment||i.Alignment.Left,i.content().sound||!1,e===i.currentItem,i.content().darkeningOverlay||!1,i.content().showVideoOnMobile||!1))}}function et(n,a){if(n&1){let t=V();l(0,"li",9),v("click",function(){let i=f(t).$index,o=d();return _(i!==o.currentItem&&o.scrollCarouselTo(i,!0))}),c()}if(n&2){let t=a.$index,e=d();h("ngClass",U(1,Je,t===e.currentItem,t!==e.currentItem))}}var tt=(()=>{let a=class a{get isDesktop(){return this.isBrowser?window.matchMedia(`(min-width: ${M.M})`).matches:!0}constructor(e,i,o){this.ytIframeApiLoaderService=e,this.cdr=i,this.isBrowser=o,this.content=R.required(),this.options={controls:0,modestbranding:1,fs:0,rel:0,showinfo:0,disablekb:1,playsinline:0,iv_load_policy:3},this.showThumb=!0,this.isVideoReady=!1,this.player=null,this.VideoHeight={XXS:296,XS:328,S:528,M:395,L:494,XL:602,XXL:728},this.byHeightRatio=16/9,this.byWidthRatio=9/16,me(()=>{let r=this.content();!this.player||!this.isVideoReady||(r.focused?this.player.playVideo():this.player.stopVideo())})}ngOnInit(){this.ytIframeApiLoaderService.addYtIframeApiScriptTag();let e=this.content();this.options=k(T({},this.options),{autoplay:e.focused?1:0,mute:e.mute?1:0,loop:e.loop?1:0,cc_load_policy:e.captions?1:0,playlist:e.loop?e.videoId:[]})}ngAfterViewInit(){this.isBrowser&&setTimeout(()=>{this.onResize(),window.addEventListener("resize",()=>{this.onResize(),this.cdr.detectChanges()})})}statusChanged(e){this.showThumb=e.data===YT.PlayerState.UNSTARTED||e.data===YT.PlayerState.CUED||e.data===YT.PlayerState.BUFFERING}handleError(){this.showThumb=!0}ready(e){this.player=e.target,this.isVideoReady=!0}getVideoSizesByBreakpoint(e){let i=Object.keys(M).filter(I=>e>=Number(M[I].replace("px",""))),o=i[i.length-1],r=this.VideoHeight[o];return{width:Number.parseInt((r*this.byHeightRatio).toString()),height:r}}onResize(){let{width:e,height:i}=this.getVideoSizesByBreakpoint(window.innerWidth),o=this.playerContainer.nativeElement.clientWidth;this.width=e<o?o:e,this.height=e<o?Number.parseInt((o*this.byWidthRatio).toString()):i,this.cdr.detectChanges()}};a.\u0275fac=function(i){return new(i||a)(w(fe),w(A),w(H))},a.\u0275cmp=b({type:a,selectors:[["ewp-youtube-player"]],viewQuery:function(i,o){if(i&1&&P(Be,5),i&2){let r;x(r=S())&&(o.playerContainer=r.first)}},inputs:{content:[1,"content"]},decls:5,vars:6,consts:[["playerContainer",""],["player",""],[1,"pointer-events-none","relative","h-full","w-full","overflow-hidden","rounded-lg","l:rounded-none"],[1,"absolute","bottom-0","left-0","right-0","top-0","transition-opacity",3,"content","ngClass"],[1,"h-full","max-w-[1296px]"],[1,"relative","-left-[100%]","block","w-[300%]",3,"ngClass","videoId","width","height","playerVars","disableCookies"],[1,"relative","-left-[100%]","block","w-[300%]",3,"ready","stateChange","error","ngClass","videoId","width","height","playerVars","disableCookies"]],template:function(i,o){i&1&&(l(0,"div",2),u(1,"ewp-picture",3),l(2,"div",4,0),C(4,Qe,2,10,"youtube-player",5),c()()),i&2&&(s(),h("content",o.content().thumbnail)("ngClass",U(3,Oe,o.isDesktop&&!o.showThumb&&o.isVideoReady,!o.isDesktop||o.showThumb||!o.isVideoReady)),s(3),m(o.isDesktop||o.content().showVideoOnMobile?4:-1))},dependencies:[Ce,Ie,Se,O],styles:["[_nghost-%COMP%]     iframe{position:absolute;left:0;top:0;height:100%;width:100%}@media(min-width:992px){[_nghost-%COMP%]     iframe{min-height:494px}}@media(min-width:1200px){[_nghost-%COMP%]     iframe{min-height:602px}}@media(min-width:1296px){[_nghost-%COMP%]     iframe{min-height:728px}}"]});let n=a;return n})(),it=(()=>{let a=class a{constructor(){this.videoPlayed=!1,this.content=R.required(),this.Alignment=D.Alignment,this.CtaVariation=D.CtaVariation}get showContent(){let e=this.content();
3return!!(e.item.headline||e.item.richtext||e.item.cta)}};a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=b({type:a,selectors:[["ewp-stage-video-item"]],inputs:{content:[1,"content"]},decls:5,vars:14,consts:[[1,"relative","l:h-[494px]","l:max-w-max-container","xl:h-[602px]","xxl:h-[728px]"],[1,"l:absolute","l:bottom-0","l:left-0","l:right-0","l:top-0"],[1,"relative","l:h-full",3,"ngClass"],[3,"content"],[1,"relative","h-full","w-full","l:flex","l:w-1/2","l:flex-col","l:items-start","l:justify-center","l:pl-12","l:text-left",3,"ngClass"],[1,"mt-[60px]","inline-block","l:mt-0","l:text-left",3,"content"],[1,"mt-4","block","font-ewp-primary","text-ewp-copy-l","leading-ewp-copy-l","text-ewp-ui-copy-dark","s:mt-6","l:text-left",3,"ngClass","content"],[1,"mt-6","block","s:inline-block","xl:mt-12",3,"content","ngClass"]],template:function(i,o){i&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),u(3,"ewp-youtube-player",3),c()(),C(4,$e,4,6,"div",4),c()),i&2&&(s(2),h("ngClass",j(3,Ne,!o.content().showVideoOnMobile,o.content().showVideoOnMobile,o.content().darkeningOverlay)),s(),h("content",q(7,ze,o.content().item.video.youtubeId,o.content().item.picture,!o.content().sound,o.content().focused,o.content().item.video.captions||!1,o.content().showVideoOnMobile)),s(),m(o.showContent?4:-1))},dependencies:[O,tt,be,we,_e],styles:["[_nghost-%COMP%]     ewp-headline h1, [_nghost-%COMP%]     ewp-headline h2, [_nghost-%COMP%]     ewp-headline h3, [_nghost-%COMP%]     ewp-headline h4{font-size:var(--ewp-stage-video-title-l-size, 32px)!important;line-height:var(--ewp-stage-video-title-l-line-height, normal)!important}@media(min-width:576px){[_nghost-%COMP%]     ewp-headline h1, [_nghost-%COMP%]     ewp-headline h2, [_nghost-%COMP%]     ewp-headline h3, [_nghost-%COMP%]     ewp-headline h4{font-size:var(--ewp-stage-video-title-xl-size, 48px)!important;line-height:var(--ewp-stage-video-title-xl-line-height, normal)!important}}@media(min-width:992px){[_nghost-%COMP%]     ewp-headline h1, [_nghost-%COMP%]     ewp-headline h2, [_nghost-%COMP%]     ewp-headline h3, [_nghost-%COMP%]     ewp-headline h4{color:var(--ewp-ui-headline-light, #FFFFFF)!important}}@media(min-width:1200px){[_nghost-%COMP%]     ewp-headline h1, [_nghost-%COMP%]     ewp-headline h2, [_nghost-%COMP%]     ewp-headline h3, [_nghost-%COMP%]     ewp-headline h4{font-size:var(--ewp-stage-video-title-xxl-size, 72px)!important;line-height:var(--ewp-stage-video-title-xxl-line-height, normal)!important}}@media(min-width:992px){[_nghost-%COMP%]     ewp-headline>div{margin-left:0;margin-right:0;justify-content:flex-start}[_nghost-%COMP%]     ewp-richtext   ewp-plain-richtext{color:var(--ewp-ui-copy-light, #FFFFFF)}}[_nghost-%COMP%]     ewp-cta a{width:auto;font-size:var(--ewp-stage-video-cta-size, 16px);line-height:var(--ewp-stage-video-cta-line-height, 24px)}[_nghost-%COMP%]     ewp-cta.center a{display:inline-flex;text-align:center}"],changeDetection:0});let n=a;return n})(),Lt=(()=>{let a=class a{get isDesktop(){return this.isBrowser?window.matchMedia(`(min-width: ${M.M})`).matches:!0}handleTouch(e){let i=e.touches[0]||e.changedTouches[0];if(!(this.isDesktop&&this.content().items.length<=1)){if(e.type==="touchstart")this.defaultTouch.x=i.pageX,this.defaultTouch.y=i.pageY,this.defaultTouch.time=e.timeStamp;else if(e.type==="touchend"){let o=i.pageX-this.defaultTouch.x;e.timeStamp-this.defaultTouch.time<this.swipeMaxDelay&&Math.abs(o)>this.swipeMinRange&&(o>0&&this.currentItem>0?this.scrollCarouselTo(this.currentItem-1,!0):o<0&&this.currentItem+1<this.content().items.length&&this.scrollCarouselTo(this.currentItem+1,!0))}}}constructor(e,i){this.cdr=e,this.isBrowser=i,this.content=R.required(),this.contentTimer=ye(()=>k(T({},this.content()),{timer:(this.content().timer??0)*1e3})),this.carouselDots=[],this.currentItem=0,this.swipeMaxDelay=500,this.swipeMinRange=60,this.defaultTouch={x:0,y:0,time:0},this.Alignment=D.Alignment}ngAfterViewInit(){if(!this.isBrowser)return;let e=this.carouselContainer.nativeElement;setTimeout(()=>{this.initDots(e),this.initAutoscroll(),this.cdr.detectChanges()},100),window.addEventListener("resize",()=>{this.initDots(e),this.scrollFunction(e),this.cdr.detectChanges()})}initAutoscroll(){!this.isBrowser||this.autoScrollTimerSubscribe||!this.contentTimer().timer||(this.contentTimer().timer??0)<1||(this.autoScrollTimerSubscribe=ee(this.contentTimer().timer??0,this.contentTimer().timer??0).subscribe(()=>{let e=this.currentItem+1<this.carouselDots.length?this.currentItem+1:0;this.scrollCarouselTo(e,!1)}))}initDots(e){this.isBrowser&&e.clientWidth!==0&&(setTimeout(()=>{let i=Math.ceil(e.scrollWidth/e.clientWidth);this.carouselDots=[...Array(i).keys()],this.cdr.detectChanges()}),e.removeEventListener("scroll",this.scrollFunction(e)),e.addEventListener("scroll",this.scrollFunction(e)),this.observeCurrentDot())}scrollCarouselTo(e,i=!1){if(!this.isBrowser)return;this.autoScrollTimerSubscribe&&i&&this.autoScrollTimerSubscribe.unsubscribe();let o=this.carouselContainer.nativeElement,r=e-this.currentItem;o.scrollBy({left:o.clientWidth*r,behavior:"smooth"})}scrollFunction(e){let i;return()=>{this.isBrowser&&(i&&clearTimeout(i),i=setTimeout(()=>{this.currentItem=Math.ceil(e.scrollLeft/e.clientWidth),this.cdr.detectChanges()},100))}}observeCurrentDot(){if(!this.isBrowser)return;let e=new IntersectionObserver(i=>{if(i[0].isIntersecting===!0){let o=Number.parseInt(i[0].target.dataset.index??"0",10);this.currentItem=o,this.cdr.detectChanges()}},{threshold:[1]});
3this.carouselItems.forEach(i=>{e.observe(i.nativeElement)})}};a.\u0275fac=function(i){return new(i||a)(w(A),w(H))},a.\u0275cmp=b({type:a,selectors:[["ewp-stage-video"]],viewQuery:function(i,o){if(i&1&&(P(We,5),P(Ge,5)),i&2){let r;x(r=S())&&(o.carouselContainer=r.first),x(r=S())&&(o.carouselItems=r)}},hostBindings:function(i,o){i&1&&v("touchstart",function(y){return o.handleTouch(y)})("touchend",function(y){return o.handleTouch(y)})("touchcancel",function(y){return o.handleTouch(y)})},inputs:{content:[1,"content"]},decls:9,vars:3,consts:[["carouselContainer",""],["carouselItem",""],[1,"relative"],["id","carousel-container",1,"flex","snap-x","snap-mandatory","snap-start","flex-row","flex-nowrap","overflow-hidden","l:rounded-2xl"],[1,"w-full","shrink-0","snap-start"],[1,"absolute","left-0","right-0","top-[344px]","mx-auto","my-1","flex","justify-center","xs:top-[352px]","s:top-[552px]","m:top-[359px]","l:top-[459px]","xl:top-[542px]","xxl:top-[669px]",3,"ngClass"],[1,"flex","justify-center"],[1,"mx-1","h-3","rounded-full","shadow-ewp-stage-video-dots","duration-300",3,"ngClass"],[3,"content"],[1,"mx-1","h-3","rounded-full","shadow-ewp-stage-video-dots","duration-300",3,"click","ngClass"]],template:function(i,o){i&1&&(l(0,"div",2)(1,"div",3,0),N(3,Ke,3,9,"div",4,Q),c(),l(5,"div",5)(6,"ul",6),N(7,et,1,4,"li",7,Q),c()()()),i&2&&(s(3),z(o.content().items),s(2),h("ngClass",E(1,Xe,o.carouselDots.length<=1)),s(2),z(o.carouselDots))},dependencies:[it,O],encapsulation:2,changeDetection:0});let n=a;return n})();export{Lt as StageVideoComponent};

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.