1import{a as de,b as ge}from"./chunk-TW47PWRY.js";import{a as me,b as he}from"./chunk-RLSYZP7Y.js";import{f as ce}from"./chunk-CPMGT55V.js";import{f as pe}from"./chunk-HDLUITCL.js";import{I as h,Ja as se,N as oe,ma as ae,nb as le}from"./chunk-RPS7GFAT.js";import{$b as j,Ca as L,Da as F,Eb as v,Ec as k,Fc as J,Ic as K,Jc as X,Me as re,Sc as Y,Tb as f,Ub as l,Uc as Z,Vb as U,Wb as $,Zb as M,af as ne,bc as W,cc as Q,dc as q,ec as g,fc as c,gc as C,ha as y,hb as s,kc as z,ld as ee,ne as ie,oe as te,qa as b,qb as B,ra as D,rb as H,sc as E,tc as m,wc as _,xa as V,xb as N}from"./chunk-FOCQ3AQ3.js";import{a as d,b as x,j as R}from"./chunk-SD6HWGQY.js";var ue=["swiperContainer"],ye=()=>[1,2,3],we=(a,p)=>({src:a,type:"landscape",movie:void 0,imgType:p});function ve(a,p){if(a&1&&C(0,"ush-movie-detail-skeleton",7),a&2){let e=m(2);l("height",e.imageOrientation==="portrait"?"16rem":"10rem");}}function fe(a,p){a&1&&(g(0,"div",1)(1,"div",3)(2,"div",4),C(3,"ush-movie-detail-skeleton",5),c()(),g(4,"div",6),Q(5,ve,1,1,"ush-movie-detail-skeleton",7,W),c()()),a&2&&(s(5),q(Y(0,ye)));}function Ce(a,p){if(a&1&&(g(0,"div",14),C(1,"ush-arrow",15)(2,"ush-arrow",15),c()),a&2){let e=m(2);s(),M("gallery-",e.imageOrientation,"-left arrow"),l("template",e.arrowTemplate)("orientation","left"),s(),M("gallery-",e.imageOrientation,"-right arrow"),l("template",e.arrowTemplate)("orientation","right");}}function _e(a,p){if(a&1){let e=z();g(0,"swiper-slide")(1,"img",16),E("error",function(){let t=b(e).index,r=m(2);return D(r.onGalleryImageError(t));}),c()();}if(a&2){let e=p.$implicit,i=m(2);f("lazy",i.scrollDrivenHorizontal?null:"true"),s(),U("aspect-ratio",i.resolvedAspectRatio)("object-position",i.position||null),_("width",i.imgWidth),_("height",i.imgHeight),_("sizes",i.swiperBasedSizes),l("ngSrc",e)("modal",Z(10,we,e,i.imageOrientation==="landscape"?"tile-img":"poster-img"));}}function Se(a,p){if(a&1){let e=z();g(0,"div",8)(1,"div",3)(2,"div",4)(3,"h2",9),K(4),c()(),v(5,Ce,3,10,"div",10),c(),g(6,"div",11)(7,"swiper-container",12,0),E("swiperInitialized",function(){b(e);let t=m();return D(t.onSwiperInitialized());}),v(9,_e,2,13,"swiper-slide",13),c()()();}if(a&2){let e=m();$("gallery-carousel--scroll-driven",e.scrollDrivenHorizontal),f("data-scroll-driven-horizontal-gallery",e.scrollDrivenHorizontal?"":null),s(3),f("data-translate",e.title),s(),X(e.title),s(),l("ngIf",!e.hideArrows),s(2),l("config",e.swiperConfig),s(2),l("ngForOf",e.imgUrlsList)("ngForTrackBy",e.trackByGalleryImage);}}var Ne=(()=>{class a{constructor(){this.imageOrientation="landscape",this.title="gallery",this.isLoadingData=L(!1),this.swiperContainer=B("swiperContainer"),this.modalDirective=H(h,{read:h}),this.imgWidth=200,this.arrowTemplateDefault=5,this.env=y(oe),this.channelService=y(le),this.gsapAnimationService=y(de),this.destroyRef=y(V),this.elementRef=y(F),this.scrollDrivenHorizontalInitialized=!1,this.scrollDrivenGalleryRetryScheduled=!1,ee(()=>{let e=this.modalDirective();e.forEach((i,t)=>{let r=(t===e.length-1?e[0]:e[t+1]).modal,n=(t===0?e[e.length-1]:e[t-1]).modal;i.modal.next=r,i.modal.previous=n;});});}ngOnInit(){let e=this.images??[],i=this.getCarouselParams(),t=i?.swiperConfig,r=this.getLegacyBreakpoints(i);this.title=this.imageOrientation==="portrait"?"Poster":"Galerie";let n=e[0]?.imageUrl?e.map(o=>o.imageUrl):e;this.imgUrlsList=n.filter(o=>typeof o=="string"&&o.trim().length>0),this.resolvedAspectRatio=this.aspectRatio||(this.imageOrientation==="portrait"?"var(--aspect-ratio-portrait, 2/3)":"var(--aspect-ratio-landscape, 16/9)"),this.imgWidth=this.imageOrientation==="portrait"?200:160,this.imgHeight=this.imageOrientation==="portrait"?300:90,this.hideArrows=this.hideArrows??i?.hideArrows,this.setUpArrowTemplate(i),this.swiperConfig={slidesPerView:this.slidesPerView?.["0"]??t?.slidesPerView??this.getLegacyBaseSlidesPerView(i)??(this.imageOrientation==="landscape"?1.4:2.4),spaceBetween:t?.spaceBetween??10,scrollbar:t?.scrollbar??!0,breakpoints:{480:{slidesPerView:this.slidesPerView?.["480"]??(this.imageOrientation==="landscape"?2.4:3.4),spaceBetween:20},1024:{slidesPerView:this.slidesPerView?.["1024"]??(this.imageOrientation==="landscape"?3:5),spaceBetween:30},1400:{slidesPerView:this.slidesPerView?.["1400"]??(this.imageOrientation==="landscape"?4:6),spaceBetween:30}},navigation:{nextEl:".gallery-"+this.imageOrientation+"-right",prevEl:".gallery-"+this.imageOrientation+"-left"},autoplay:this.autoplay&&!this.scrollDrivenHorizontal?{delay:3e3,pauseOnMouseEnter:!0}:!1},this.swiperConfig=x(d(d({},this.swiperConfig),t),{slidesPerView:this.swiperConfig.slidesPerView,navigation:this.swiperConfig.navigation,autoplay:this.swiperConfig.auto
1play,breakpoints:this.mergeBreakpoints(this.swiperConfig.breakpoints,t?.breakpoints??r)}),this.scrollDrivenGalleryLayoutConfig=this.swiperConfig,this.swiperBasedSizes=this.getResponsiveSizesString(this.swiperConfig.breakpoints,"slidesPerView"),this.scrollDrivenHorizontal&&(this.swiperConfig=x(d({},this.swiperConfig),{slidesPerView:"auto",breakpoints:void 0,autoplay:!1}));}onSwiperInitialized(){this.initScrollDrivenHorizontalGallery();}trackByGalleryImage(e,i){return`${e}:${i}`;}onGalleryImageError(e){let i=this.channelService.getDefaultImg(this.imageOrientation);!i?.trim()||this.imgUrlsList[e]===i||(this.imgUrlsList=this.imgUrlsList.map((t,r)=>r===e?i:t));}initScrollDrivenHorizontalGallery(){return R(this,null,function*(){if(this.scrollDrivenHorizontalInitialized||!this.shouldRunScrollDrivenHorizontalGallery())return;let e=this.elementRef.nativeElement.ownerDocument.defaultView,i=this.swiperContainer()?.nativeElement;if(!e||!i||(this.imgUrlsList?.length??0)<2)return;yield this.gsapAnimationService.waitForNextAnimationFrame(e),yield this.gsapAnimationService.waitForNextAnimationFrame(e);let t=i.shadowRoot?.querySelector(".swiper-wrapper");if(!t)return;let r=()=>{this.applyScrollDrivenGallerySlideSizing(i,e.innerWidth);};r(),yield this.gsapAnimationService.waitForNextAnimationFrame(e),i.swiper?.autoplay?.stop?.(),i.swiper?.params&&(i.swiper.params.allowTouchMove=!1);let{gsap:n,ScrollTrigger:o}=yield this.gsapAnimationService.loadScrollTrigger(),w=this.elementRef.nativeElement.closest("section")||this.elementRef.nativeElement,S=this.gsapAnimationService.getVerticalScroller(this.elementRef.nativeElement.parentElement);if(!S)return;let P=()=>{let O=Array.from(i.querySelectorAll("swiper-slide")),T=O[0],A=O[O.length-1];return!T||!A?0:Math.max(0,A.getBoundingClientRect().right-T.getBoundingClientRect().left-i.clientWidth);};if(P()<=8){this.scheduleScrollDrivenGalleryRetry(e);return;}this.scrollDrivenHorizontalInitialized=!0;let I=n.to(t,{x:()=>-P(),ease:"none",scrollTrigger:{trigger:w,scroller:this.gsapAnimationService.isWindowScroller(S)?void 0:S,start:"top top",end:()=>`+=${Math.max(P(),w.clientHeight||e.innerHeight)}`,scrub:1,pin:w,pinSpacing:"margin",anticipatePin:1,invalidateOnRefresh:!0}}),G=()=>{r(),o.refresh();};e.addEventListener("resize",G),this.destroyRef.onDestroy(()=>{e.removeEventListener("resize",G),I.scrollTrigger?.kill(),I.kill();}),o.refresh();});}shouldRunScrollDrivenHorizontalGallery(){return!!this.scrollDrivenHorizontal&&this.gsapAnimationService.canAnimate();}scheduleScrollDrivenGalleryRetry(e){if(this.scrollDrivenGalleryRetryScheduled)return;this.scrollDrivenGalleryRetryScheduled=!0;let i=()=>{this.scrollDrivenGalleryRetryScheduled=!1,e.removeEventListener("load",i),e.removeEventListener("resize",i),this.initScrollDrivenHorizontalGallery();};e.addEventListener("load",i),e.addEventListener("resize",i,{passive:!0}),this.destroyRef.onDestroy(()=>{e.removeEventListener("load",i),e.removeEventListener("resize",i);});}applyScrollDrivenGallerySlideSizing(e,i){let{slidesPerView:t,spaceBetween:r}=this.getActiveScrollDrivenGalleryLayout(i),n=Math.max(1,(e.clientWidth-r*Math.max(0,t-1))/t);this.elementRef.nativeElement.style.setProperty("--scroll-driven-gallery-slide-width",`${n}px`),this.elementRef.nativeElement.style.setProperty("--scroll-driven-gallery-slide-gap",`${r}px`);}getActiveScrollDrivenGalleryLayout(e){let i=this.scrollDrivenGalleryLayoutConfig??this.swiperConfig,t=i.breakpoints??{},r=this.toPositiveNumber(i.slidesPerView)??(this.imageOrientation==="landscape"?1.4:2.4),n=this.toPositiveNumber(i.spaceBetween)??10;return Object.keys(t).map(o=>Number.parseInt(o,10)).filter(Number.isFinite).sort((o,u)=>o-u).forEach(o=>{if(o>e)return;let u=t[o];r=this.toPositiveNumber(u.slidesPerView)??r,n=this.toPositiveNumber(u.spaceBetween)??n;}),{slidesPerView:Math.max(1,r),spaceBetween:Math.max(0,n)};}toPositiveNumber(e){let i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):void 0;return i&&Number.isFinite(i)&&i>0?i:void 0;}setUpArrowTemplate(e){if(this.arrowTemplate)return;let i=e?.arrowLayoutDesing;this.arrowTemplate=i?.top||i?.down||i?.side||i?.inside||this.arrowTemplateDefault;}getCarouselParams(){return this.imageOrientation==="portrait"?this.env.carouselTypeParams?.posters:this.env.carouselTypeParams?.gallery;}getLegacyBaseSlidesPerView(e){return e?.options?.length?[...e.options].sort((t,r)=>t.breakpoint-r.breakpoint)[0]?.byPage??e.default?.byPage:e?.default?.byPage;}getLegacyBreakpoints(e){if(!e?.options?.length||!e.default?.byPage)return;let i=[...e.options].sort((r,n)=>r.breakpoint-n.breakpoint),t={};
1return i.forEach((r,n)=>{let o=i[n+1]?.byPage??e.default?.byPage;o&&(t[r.breakpoint]={slidesPerView:o});}),Object.keys(t).length?t:void 0;}mergeBreakpoints(e,i){if(!i)return e;let t=d({},e||{});return Object.entries(i).forEach(([r,n])=>{t[Number(r)]=d(d({},t[Number(r)]||{}),n);}),t;}getResponsiveSizesString(e,i){let t="",r=Object.keys(e).sort((n,o)=>parseInt(n,10)-parseInt(o,10));for(let n of r){let o=parseInt(n,10),w=e[n][i];o>0&&(t+=`(max-width: ${o-1}px) ${Math.round(100/w)}vw, `);}return t.slice(0,-2);}static{this.ɵfac=function(i){return new(i||a)();};}static{this.ɵcmp=N({type:a,selectors:[["feature-gallery-carousel"]],viewQuery:function(i,t){i&1&&(k(t.swiperContainer,ue,5),k(t.modalDirective,h,5,h)),i&2&&J(2);},inputs:{imageOrientation:"imageOrientation",images:"images",title:"title",aspectRatio:"aspectRatio",position:"position",slidesPerView:"slidesPerView",autoplay:"autoplay",arrowTemplate:"arrowTemplate",hideArrows:"hideArrows",scrollDrivenHorizontal:"scrollDrivenHorizontal",isLoadingData:[1,"isLoadingData"]},decls:2,vars:1,consts:[["swiperContainer",""],[1,"gallery-carousel","carousel","gallery-carousel--skeleton"],[1,"gallery-carousel","carousel",3,"gallery-carousel--scroll-driven"],[1,"carousel-header"],[1,"carousel-header__content"],["width","10rem","height","1.5rem"],[1,"gallery-carousel__skeleton-grid"],["width","100%","radius","18px",3,"height"],[1,"gallery-carousel","carousel"],[1,"carousel-title"],["class","arrows",4,"ngIf"],[1,"gallery-carousel__images"],["ushSwi
1perElement","","init","false",3,"swiperInitialized","config"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"arrows"],[3,"template","orientation"],["alt","movie gallery carousel",3,"error","ngSrc","width","height","sizes","modal"]],template:function(i,t){i&1&&v(0,fe,7,1,"div",1)(1,Se,10,9,"div",2),i&2&&j(t.isLoadingData()?0:1);},dependencies:[re,ie,te,se,he,me,ae,h,ce,pe,ne,ge],styles:["[_nghost-%COMP%]{display:block;--swiper-preloader-color: var(--ush--swiper-preloader-color, var(--brandColor))}img[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:cover}swiper-container[_ngcontent-%COMP%]{width:100%;height:auto}.carousel-header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.arrows[_ngcontent-%COMP%]{display:none;column-gap:var(--spacing-lg, 10px)}@media all and (min-width: 768px){.arrows[_ngcontent-%COMP%]{display:flex}}.gallery-carousel--skeleton[_ngcontent-%COMP%]{display:grid;gap:1rem}.gallery-carousel__skeleton-grid[_ngcontent-%COMP%]{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}@media all and (min-width: 768px){.gallery-carousel__skeleton-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}swiper-container[_ngcontent-%COMP%]::part(scrollbar){position:relative;margin-top:10px}@media all and (min-width: 768px){swiper-container[_ngcontent-%COMP%]::part(scrollbar){display:none}}.gallery-carousel--scroll-driven[_ngcontent-%COMP%] .arrows[_ngcontent-%COMP%]{display:none}.gallery-carousel--scroll-driven[_ngcontent-%COMP%] swiper-container[_ngcontent-%COMP%]{cursor:ns-resize}.gallery-carousel--scroll-driven[_ngcontent-%COMP%] swiper-slide[_ngcontent-%COMP%]{flex:0 0 var(--scroll-driven-gallery-slide-width)!important;width:var(--scroll-driven-gallery-slide-width)!important;margin-right:var(--scroll-driven-gallery-slide-gap)!important}.gallery-carousel--scroll-driven[_ngcontent-%COMP%] swiper-slide[_ngcontent-%COMP%]:last-child{margin-right:0!important}.gallery-carousel--scroll-driven[_ngcontent-%COMP%] swiper-slide[_ngcontent-%COMP%]::part(preloader){display:none}.gallery-carousel--scroll-driven[_ngcontent-%COMP%] swiper-container[_ngcontent-%COMP%]::part(scrollbar){display:none}"],changeDetection:0});}}return a;})();export{Ne as a};/**i18n:397530c6bdaa5815f1e1c7eb89f4d40635b0f3237ca88ec0eae805aa34154981*/
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.