1import{a as fe,b as ve,c as Se,d as Le}from"./chunk-ZAZWFZVV.js";import{a as T}from"./chunk-3OBTMFZF.js";import"./chunk-HCWDDWXJ.js";import{a as be,b as ye}from"./chunk-PSIST7NG.js";import{a as me}from"./chunk-2SEV3LLW.js";import"./chunk-NDQEIX5P.js";import{e as de,g as ue,h as j,i as U,j as he}from"./chunk-6MM7C3IU.js";import"./chunk-DV2LNDEP.js";import"./chunk-UMHGTHNS.js";import{c as se}from"./chunk-2OZK2ZJO.js";import"./chunk-DIS63NVT.js";import{a as ke}from"./chunk-3ELF3SSC.js";import"./chunk-UBK5EJB5.js";import"./chunk-IGCNABH2.js";import{a as Ce}from"./chunk-MAY5AB42.js";import"./chunk-3ZQSZSGT.js";import"./chunk-NXNHG37S.js";import{a as xe,b as _e}from"./chunk-MXFYLHN6.js";import{a as ce,j as we}from"./chunk-CYUJO24X.js";import"./chunk-YYL5A4OD.js";import{t as ge}from"./chunk-TRWSAKZG.js";import"./chunk-YKBOI4DJ.js";import"./chunk-K4CBSC3S.js";import"./chunk-BE3WIQZS.js";import"./chunk-GPVJVS5E.js";import"./chunk-OCHYF3YY.js";import"./chunk-TI4OVWIA.js";import"./chunk-27NFZ537.js";import{e as H}from"./chunk-SYHHOFAR.js";import"./chunk-YEXRG7QH.js";import"./chunk-5UQP6B7C.js";import"./chunk-N7DVPXIV.js";import"./chunk-Z43XWAKD.js";import"./chunk-R6KD76JQ.js";import"./chunk-DF2ISMSV.js";import"./chunk-7YCPHBSO.js";import"./chunk-JMJ4DCRA.js";import"./chunk-6GJACBY4.js";import"./chunk-XXVDI6K7.js";import{j as pe}from"./chunk-LNVSWGDM.js";import"./chunk-D3G2BOEA.js";import"./chunk-AAVZWHII.js";import{d as ae}from"./chunk-NV4J6U3U.js";import"./chunk-G3PK2VAS.js";import"./chunk-MLXLBN3R.js";import"./chunk-UXEHFVFV.js";import"./chunk-63QN5BD2.js";import"./chunk-BS4XPZFX.js";import"./chunk-ZUIYD5C7.js";import"./chunk-2QI5VJGV.js";import"./chunk-HVYS4KHQ.js";import"./chunk-2YCATYWA.js";import"./chunk-QVSDL3PP.js";import"./chunk-SN4UHUF5.js";import"./chunk-BNCQZJEG.js";import"./chunk-TXKU5TWF.js";import{b as le}from"./chunk-UYZOVPKD.js";import{a as h}from"./chunk-IFJLJRV3.js";import"./chunk-R3EIODFL.js";import{O as oe}from"./chunk-RNURQTMY.js";import"./chunk-6HAJLNKL.js";import{a as re}from"./chunk-FBES4QSW.js";import{i as ne,p as D}from"./chunk-A4UQ4CJS.js";import{d as k}from"./chunk-VZA46UU5.js";import{$b as M,$c as F,Ba as I,Ca as R,Fb as v,Fc as ee,Gc as te,I as K,Kc as C,Lc as b,Mc as g,Rc as L,Sc as A,T as Q,Tc as V,Uc as ie,Vb as y,W as X,Xb as S,Zc as l,_b as O,_c as m,a as W,ac as a,b as J,bc as s,cc as p,dc as c,jc as Y,ld as w,pb as o,pc as Z,rc as u,va as E,y as N,z as $}from"./chunk-XJVXNYH5.js";var Fe=()=>({}),P=class t{label=w(null);link=w(null);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=v({type:t,selectors:[["cgp-hero-title"]],inputs:{label:[1,"label"],link:[1,"link"]},decls:11,vars:14,consts:[[1,"tw:relative","tw:flex","tw:min-w-0","tw:items-center","tw:gap-3","tw:overflow-hidden"],[1,"tw:flex","tw:min-w-0","tw:flex-1","tw:flex-col","tw:gap-0.5","tw:overflow-hidden","tw:max-lg:gap-1"],[3,"label","link","surface"],[1,"tw:mb-0","tw:flex"],[1,"tw:group/link","tw:flex","tw:cursor-pointer","tw:items-center","tw:duration-300","tw:ease-out-quart","tw:text-title-sm","tw:text-neutral-secondary","tw:hover:text-neutral-primary","tw:max-lg:text-title-xs"]],template:function(e,i){if(e&1&&(s(0,"div",0)(1,"div",1),C(2),l(3,"translate"),c(4,"cgp-arrow-navigation-item",2),l(5,"translate"),s(6,"span",3)(7,"a",4)(8,"span"),ee(9),l(10,"translate"),p()()()()()),e&2){let r,d,x=i.link()?F(3,4,(r=i.link())==null||r.route==null?null:r.route.path,((r=i.link())==null||r.route==null?null:r.route.parameters)??L(12,Fe)):null;o(4),a("label",i.label()??"")("link",m(5,7,x??"Routes.Shows.Upcoming"))("surface","dark"),o(5),te(F(10,9,(d=i.link())==null||d.title==null?null:d.title.value,((d=i.link())==null||d.title==null?null:d.title.args)??L(13,Fe)))}},dependencies:[T,k],encapsulation:2,changeDetection:0})};var Pe=(t,n)=>n.slug;function Be(t,n){if(t&1&&(s(0,"div",2),c(1,"cgp-my-list-show-card",11),p()),t&2){let e=n.$implicit,i=u();o(),a("show",e)("addListOption",i.addListOption())("posterWidth",i.type()==="numbered"?"tw:shrink-0 tw:w-[calc(100%-4vw)]":"tw:w-full")("posterHeight","tw:h-auto")("whishlistMobile",i.whishlistMobile())("showContentRating",!0)}}var B=class t{shows=w([]);type=w("standard");surface=w("dark");pageVariant=w("default");addListOption=w(!1);whishlistMobile=w(!1);swiperOptions={wrapperClass:"tw\\:swiper-wrapper",containerModifierClass:"tw:swiper-",slideClass:"tw\\:swiper-slide",slideActiveClass:"tw:swiper-slide-active",slidesPerView:"auto",spaceBetween:6,preventClicksPropagation:!1,navigation:{nextEl:"#shows-navigation-next",prevEl:"#shows-navigation-prev",disabledClass:"tw:posters-swiper-button-disabled"},pagination:{el:"#shows-pagination",clickable:!0,type:"bullets",bulletClass:this.surface()==="light"?"tw:posters-swiper-pagination-bullet-light":"tw:posters-swiper-pagination-bullet-dark",bulletActiveClass:this.surface()==="light"?"tw:posters-swiper-pagination-bullet-light-active":"tw:posters-swiper-pagination-bullet-dark-active"},modules:[xe,_e]};static \u0275fac=function(e){return new(e||t)};static \u0275cmp=v({type:t,selectors:[["cgp-shows-slider"]],inputs:{shows:[1,"shows"],type:[1,"type"],surface:[1,"surface"],pageVariant:[1,"pageVariant"],addListOption:[1,"addListOption"],whishlistMobile:[1,"whishlistMobile"]},decls:13,vars:11,consts:[[1,"tw:contents"],[3,"config","subContainer1ClassModifier","subContainer2ClassModifier","swiperClassModifier","wrapperClassModifier"],[1,"tw:group/slide","t
1w:pointer-events-auto","tw:swiper-slide","tw:h-full","tw:w-[calc((100%-11*10px)/12)]","tw:max-[3400px]:w-[calc((100%-9*10px)/10)]","tw:max-[2800px]:w-[calc((100%-6*10px)/7)]","tw:max-[2200px]:w-[calc((100%-6*10px)/7)]","tw:max-xxl:w-[calc((100%-6*10px)/7)]","tw:max-xl:w-[calc((100%-6*10px)/7)]","tw:max-lg:w-[calc((100%-3.5*10px)/4.5)]","tw:max-md:w-[calc((100%-1*10px)/2)]","swiper-slide-next"],["ngProjectAs","navigation","id","shows-navigation",5,["navigation"],1,"tw:absolute","tw:top-0","tw:w-full","tw:pointer-events-none","tw:left-1/2","tw:-translate-x-1/2","tw:z-10","tw:max-lg:hidden",2,"height","255px"],[1,"tw:w-full","tw:h-full"],["data-theme","image",1,"tw:group","tw:absolute","tw:w-fit","tw:top-1/2","tw:-translate-x-1/2","tw:-translate-y-1/2","tw:left-0","tw:ml-1"],["role","button","data-disabled","false","aria-label","Previous slide",1,"tw:flex","tw:border","tw:border-transparent","tw:h-full","tw:w-full","tw:items-center","tw:justify-center","tw:rounded-md","tw:data-[disabled=true]:cursor-not-allowed","tw:transition-all","tw:duration-300","tw:ease-out-quart","tw:data-[disabled=false]:cursor-pointer","tw:bg-brand-base","tw:text-neutral-inverted-primary","tw:data-[disabled=true]:bg-neutral-inverted-higher-02","tw:data-[disabled=true]:text-neutral-inverted-muted-placeholders","tw:data-[disabled=false]:hover:bg-brand-higher-01","tw:group-data-[theme=image]:border","tw:group-data-[theme=image]:border-neutral-lower-01","tw:group-data-[theme=image]:bg-neutral-alpha-higher-02","tw:group-data-[theme=image]:text-neutral-primary","tw:group-data-[theme=image]:shadow-base","tw:group-data-[theme=image]:backdrop-blur-sm","tw:data-[disabled=true]:group-data-[theme=image]:text-neutral-muted-placeholders","tw:hover:data-[disabled=false]:group-data-[theme=image]:bg-neutral-alpha-higher-01","tw:p-2.75","tw:pointer-events-auto",3,"id"],[3,"id","modifier"],["data-theme","image",1,"tw:group","tw:absolute","tw:w-fit","tw:top-1/2","tw:translate-x-1/2","tw:-translate-y-1/2","tw:right-0","tw:mr-1"],["role","button","data-disabled","false","aria-label","Next slide",1,"tw:flex","tw:border","tw:border-transparent","tw:h-full","tw:w-full","tw:items-center","tw:justify-center","tw:rounded-md","tw:data-[disabled=true]:cursor-not-allowed","tw:transition-all","tw:duration-300","tw:ease-out-quart","tw:data-[disabled=false]:cursor-pointer","tw:bg-brand-base","tw:text-neutral-inverted-primary","tw:data-[disabled=true]:bg-neutral-inverted-higher-02","tw:data-[disabled=true]:text-neutral-inverted-muted-placeholders","tw:data-[disabled=false]:hover:bg-brand-higher-01","tw:group-data-[theme=image]:border","tw:group-data-[theme=image]:border-neutral-lower-01","tw:group-data-[theme=image]:bg-neutral-alpha-higher-02","tw:group-data-[theme=image]:text-neutral-primary","tw:group-data-[theme=image]:shadow-base","tw:group-data-[theme=image]:backdrop-blur-sm","tw:data-[disabled=true]:group-data-[theme=image]:text-neutral-muted-placeholders","tw:hover:data-[disabled=false]:group-data-[theme=image]:bg-neutral-alpha-higher-01","tw:p-2.75","tw:pointer-events-auto",3,"id"],["id","shows-pagination","ngProjectAs","pagination",5,["pagination"],1,"tw:cursor-pointer","tw:max-lg:hidden","tw:flex","tw:items-center","tw:gap-0.5","tw:absolute","tw:bottom-full","tw:mb-3.25","tw:right-0","tw:pointer-events-auto","swiper-pagination-clickable","swiper-pagination-bullets","swiper-pagination-horizontal"],[3,"show","addListOption","posterWidth","posterHeight","whishlistMobile","showContentRating"]],template:function(e,i){e&1&&(s(0,"div",0)(1,"cgp-swiper",1),O(2,Be,2,6,"div",2,Pe),s(4,"div",3)(5,"div",4)(6,"div",5)(7,"button",6),c(8,"cgp-icon",7),p()(),s(9,"div",8)(10,"button",9),c(11,"cgp-icon",7),p()(),c(12,"div",10),p()()()()),e&2&&(o(),a("config",i.swiperOptions)("subContainer1ClassModifier",i.pageVariant()==="home"?"tw:lg:w-[calc(100%+8rem)] tw:lg:-mx-16":"tw:lg:w-[calc(100%+20.5rem)] tw:lg:-mx-41")("subContainer2ClassModifier",i.pageVariant()==="home"?"tw:h-full tw:lg:px-16 tw:lg:mask-posters-slider-home":"tw:h-full tw:lg:px-41 tw:lg:mask-posters-slider")("swiperClassModifier","tw:h-full")("wrapperClassModifier",i.type()==="numbered"?"tw:items-stretch":""),o(),M(i.shows()),o(5),a("id","shows-navigation-prev"),o(),a("id","arrow-left")("modifier","tw:size-6"),o(2),a("id","shows-navigation-next"),o(),a("id","arrow-right")("modifier","tw:size-6"))},dependencies:[Ce,le,Se],encapsulation:2,changeDetection:0})};var G=class t{shows=w([]);addListOption=w(!1);label=w(null);locatorSideTitle$=h(ke);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=v({type:t,selectors:[["cgp-shows-row"]],inputs:{shows:[1,"shows"],addListOption:[1,"addListOption"],label:[1,"label"]},decls:5,vars:8,consts:[[1,"tw:flex","tw:flex-col","tw:gap-2.5"],[3,"label","link"],[3,"shows","addListOption"]],template:function(e,i){e&1&&(s(0,"div",0),c(1,"cgp-hero-title",1),l(2,"translate"),l(3,"async"),c(4,"cgp-shows-slider",2),p()),e&2&&(o(),a("label",m(2,4,i.label()))("link",m(3,6,i.locatorSideTitle$)??null),o(3),a("shows",i.shows())("addListOption",i.addListOption()))},dependencies:[P,B,D,k],encapsulation:2,changeDetection:0})};var De=()=>[],Oe=(t,n)=>({title:t,link:n}),Ge=t=>({title:t,link:null}),Ne=(t,n,e)=>[t,n,e],$e=t=>({slug:t}),Ee=(t,n)=>n.slug;function Ie(t,n){if(t&1&&(s(0,"li",13),c(1,"cgp-arrow-navigation-item",14),l(2,"translate"),p()),t&2){let e=n.$implicit;o(),a("link",F(2,5,"Routes.Genre.Single",A(8,$e,e.slug)))("label",e.title)("type","secondary")("modifier","tw:max-lg:justify-between tw:w-full tw:max-lg:font-medium")("isArrowRight",!1)}}function Re(t,n){if(t&1&&(s(0,"div",3)(1,"div",11)(2,"ul",12),O(3,Ie,3,10,"li",13,Ee),p()()()),t&2){u(2);let e=g(2);o(3),M(e)}}function Ae(t,n){if(t&1){let e=Y();s(0,"cgp-filters",16),l(1,"async"),Z("filterSelection",function(r){I(e);let d=u(3);return R(d.selectFilter(r))})("filtersReset",function(){I(e);let r=u(3);return R(r.resetFilters())}),p()}if(t&2){let e=u(3),i=g(12);a("theme",e.themes.SMALL_IMAGE)("filters",n)("filtersState",m(1,
16,e.selectedFilters$))("resultsCount",i.length)("right",!0)("searchFilters",!0)}}function Ve(t,n){if(t&1&&(s(0,"div",4),y(1,Ae,2,8,"cgp-filters",15),l(2,"async"),p()),t&2){let e,i=u(2);a("wrapperModifier","tw:group tw:relative tw:flex tw:items-stretch tw:lg:z-90")("hiddenLabel",!1),o(),S((e=m(2,3,i.availableFilters$))?1:-1,e)}}function He(t,n){if(t&1&&c(0,"cgp-rich-content",18),t&2){u(3);let e=g(0);a("content",e.description)}}function je(t,n){if(t&1&&(s(0,"section",10)(1,"div",17),y(2,He,1,1,"cgp-rich-content",18),p()()),t&2){u(2);let e=g(0);o(2),S(e.description?2:-1)}}function Ue(t,n){if(t&1&&(s(0,"div")(1,"section",0),c(2,"cgp-hero-cover",1),l(3,"translate"),l(4,"translate"),l(5,"translate"),l(6,"translate"),p(),s(7,"section",2),y(8,Re,5,0,"div",3),y(9,Ve,3,5,"div",4),p(),s(10,"section",5),c(11,"cgp-shows-grid",6),p(),s(12,"section",7)(13,"div",8),c(14,"cgp-shows-row",9),l(15,"async"),p()(),y(16,je,3,1,"section",10),p()),t&2){let e=u(),i=g(0),r=g(6),d=g(7),x=g(8),_=g(9),f=g(10),Te=g(12);o(),a("ngClass",r?"tw:pt-44 tw:lg:pt-40":"tw:pt-30 tw:lg:pt-28"),o(),a("showBackground",r)("mobileImage",(f==null||f.mobileBackdrop==null?null:f.mobileBackdrop.lg)??(f==null||f.backdrop==null?null:f.backdrop.lg)??"")("desktopImage",(f==null||f.backdrop==null?null:f.backdrop.lg)??"")("title",i.title)("description",i.teaser)("breadcrumbs",ie(33,Ne,V(25,Oe,m(3,15,"Genre.Breadcrumbs.Films"),m(4,17,"Routes.Shows.List")),V(28,Oe,m(5,19,"Genre.Breadcrumbs.Genres"),m(6,21,"Routes.Genre.List")||null),A(31,Ge,i.title))),o(6),S(d||x?8:-1),o(),S(_||r||x?9:-1),o(2),a("shows",Te)("addListOption",!0),o(3),a("shows",m(15,23,e.genreUpcomingShows$)??L(37,De))("addListOption",!0)("label","Homepage.Title.Upcoming"),o(2),S(_||r||x||_?16:-1)}}var Me=class t{store=E(oe);platform=E(re);themes=me;genre$=h(ue);option$=h(he);genres$=h(de);availableFilters$=h(fe).pipe(N(n=>J(W({},n),{genres:[]})));selectedFilters$=h(ge);genreShows$=h(j);genreUpcomingShows$=h(U);push$=h(we);constructor(){this.store.dispatch(ce.request({pushType:"home"}))}ngOnInit(){this.platform.isBrowser()&&$([this.store.select(pe),$([this.store.select(j),this.store.select(U)]).pipe(N(([n,e])=>[...n,...e]))]).pipe(K(([n,e])=>!!n&&e.length>0),Q(([n,e],[i,r])=>{let d=e.map(_=>_.slug).join(""),x=r.map(_=>_.slug).join("");return n===i&&d===x}),X()).subscribe(([n,e])=>{if(!n)return;let i=e.map(r=>r.slug);this.store.dispatch(ae.request({slugs:i,clientId:n}))})}selectFilter(n){this.store.dispatch(H.selectFilter({filter:n}))}resetFilters(){this.store.dispatch(H.resetFilters())}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=v({type:t,selectors:[["cgp-genre-page"]],decls:15,vars:20,consts:[[1,"tw:relative","tw:pb-8","tw:lg:pb-12",3,"ngClass"],[3,"showBackground","mobileImage","desktopImage","title","description","breadcrumbs"],[1,"tw:container","tw:flex","tw:flex-col","tw:gap-10"],[1,"tw:lg:grid","tw:lg:grid-cols-16"],["cgpLocatorBarContainer","",3,"wrapperModifier","hiddenLabel"],[1,"tw:container","tw:pt-10"],[3,"shows","addListOption"],[1,"tw:container","tw:lg:pt-14","tw:pt-12"],[1,"tw:group","tw:pb-12","tw:lg:pb-14"],[3,"shows","addListOption","label"],[1,"tw:lg:pb-14","tw:container"],[1,"tw:col-span-full","tw:lg:col-span-14","tw:lg:col-start-2"],[1,"tw:m-0","tw:list-none","tw:gap-12","tw:p-0","tw:lg:columns-4"],[1,"tw:align-center","tw:mb-2","tw:flex","tw:max-lg:h-10","tw:max-lg:border-b","tw:max-lg:border-neutral-base","tw:max-lg:pb-2","tw:max-lg:last:border-b-0"],[3,"link","label","type","modifier","isArrowRight"],[1,"ml-2",3,"theme","filters","filtersState","resultsCount","right","searchFilters"],[1,"ml-2",3,"filterSelection","filtersReset","theme","filters","filtersState","resultsCount","right","searchFilters"],[1,"tw:border-t","tw:border-neutral-base","tw:lg:grid","tw:lg:grid-cols-16","tw:pt-12","tw:lg:pt-14"],[1,"tw:rtf","tw:col-span-9","tw:col-start-2",3,"content"]],template:function(e,i){if(e&1&&(C(0),l(1,"async"),C(2),l(3,"async"),C(4),l(5,"async"),C(6)(7)(8)(9)(10),l(11,"async"),C(12),l(13,"async"),y(14,Ue,17,38,"div")),e&2){let r=b(m(1,1,i.genre$));o(2),b(m(3,4,i.genres$));let d=m(5,7,i.option$);o(4),b(d==="backdrop"),o(),b(d==="navigation-list"),o(),b(d==="default"||!d),o(),b(d==="store-locator"),o(),b(m(11,13,i.push$)),o(2),b(m(13,16,i.genreShows$)??L(19,De)),o(2),S(r?14:-1)}},dependencies:[ne,ve,T,ye,be,Le,G,se,D,k],encapsulation:2,changeDetection:0})};export{Me as GenrePageComponent};
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.