1import{a as oe}from"./chunk-IVY7HEKA.js";import{a as ie}from"./chunk-BYEVCCB7.js";import{a as ne}from"./chunk-3WNYCBGX.js";import"./chunk-DKIWUYJ7.js";import"./chunk-EFEUVRTQ.js";import{c as te}from"./chunk-B5OQ4TG6.js";import"./chunk-OAZGZXRV.js";import"./chunk-EYO2CZAY.js";import"./chunk-OVIZCESH.js";import"./chunk-XEPBFDJF.js";import"./chunk-RVTWJWWP.js";import"./chunk-ZDMOPF7F.js";import{f as ee}from"./chunk-UAJ7EIFU.js";import"./chunk-2S4X4ESB.js";import{d as K}from"./chunk-RUM2CN4R.js";import"./chunk-DITSVDGA.js";import"./chunk-GCXUXNHA.js";import"./chunk-3NROQSIY.js";import"./chunk-5SKMEDWG.js";import"./chunk-2NWLW3HP.js";import"./chunk-IVMPXJWF.js";import"./chunk-JIV275PZ.js";import{a as Y}from"./chunk-2OWZ2TBH.js";import{d as Q,g as U}from"./chunk-3ZPVRMNG.js";import{e as J}from"./chunk-G7RXX7IH.js";import"./chunk-MYLYOYCM.js";import"./chunk-75IHVGZD.js";import"./chunk-U5RLQRDB.js";import"./chunk-IDUMNO4Z.js";import{h as X}from"./chunk-FNP2BI74.js";import"./chunk-KWMJG4OT.js";import"./chunk-ONMXOEH4.js";import"./chunk-7ANDE2UA.js";import"./chunk-GUSEJUI7.js";import"./chunk-4FQ3FVOY.js";import"./chunk-XJUSSLXV.js";import"./chunk-ZPWEOMQQ.js";import"./chunk-P5RAGEQI.js";import"./chunk-T7ZARZZ5.js";import{c as Z,d as W}from"./chunk-3QRWVSTW.js";import"./chunk-TDULDTP2.js";import{c as G}from"./chunk-PNGJYQBO.js";import"./chunk-XID2BBVI.js";import{u as v}from"./chunk-YMO67BIY.js";import"./chunk-UVKJXXAK.js";import"./chunk-SZJWJXKL.js";import{Fb as R,Fc as $,Gc as A,Gd as N,Hc as B,J as E,Lc as o,Mc as M,Nc as d,Oc as H,Ta as T,Yc as h,_b as c,ac as p,cc as C,da as I,dc as y,ec as w,fc as s,gc as t,hc as n,ic as u,kb as b,ma as m,mc as q,nc as F,pb as r,pc as L,rd as j,ua as k,va as D,vc as V,wa as x,xa as _,xb as z,xc as g,z as S}from"./chunk-S25MYU5S.js";import"./chunk-ODN5LVDJ.js";N();I();I();N();var re=["heroImg"],O=a=>["/medias",a];function le(a,l){if(a&1&&(t(0,"p",12),o(1),n()),a&2){let i=g();r(),d(" ",i.movie==null?null:i.movie.descripcion," ")}}function me(a,l){if(a&1){let i=L();t(0,"button",35,1),V("click",function(){k(i);let f=B(1),P=g();return D(P.loggedIn?P.openDownload():f.toggle())}),t(2,"mat-icon"),o(3,"get_app"),n(),o(4," Descargar "),n()}if(a&2){let i=g();s("matTooltip",i.loggedIn?"Descargar video":"Debes estar autenticado para descargar")}}function de(a,l){a&1&&(t(0,"span"),o(1,", "),n())}function se(a,l){if(a&1&&(t(0,"span"),o(1),c(2,de,2,0,"span"),n()),a&2){let i=l.$implicit,e=l.$index,f=l.$count;r(),d(" ",i," "),r(),p(e!==f-1?2:-1)}}function ce(a,l){if(a&1&&y(0,se,3,2,"span",null,C),a&2){let i=g();w(i.movie==null?null:i.movie.palabraClave)}}function pe(a,l){a&1&&o(0," Sin etiquetas. ")}function ue(a,l){a&1&&(t(0,"div",39),u(1,"img",44),n())}function ge(a,l){if(a&1&&(t(0,"div",34)(1,"div",36)(2,"div",37),u(3,"img",38),c(4,ue,2,0,"div",39),t(5,"div",40),x(),t(6,"svg",41),u(7,"path",42),n()()(),_(),t(8,"a",43),o(9),n()()()),a&2){let i=l.$implicit;s("title",i.nombre),r(3),s("src",i.url_imagen+"_350x200",b),r(),p(i.precios!=null&&i.precios.length?4:-1),r(2),s("routerLink",h(6,O,i.slug_url)),r(2),s("routerLink",h(8,O,i.slug_url)),r(),d(" ",i.nombre," ")}}var ae=class a{route=m(Q);breakpointObserver=m(G);bottomSheet=m(te);listaReproduccionCanalService=m(oe);authService=m(K);positionService=m(ne);renderer=m(z);title=m(W);platformId=m(T);meta=m(Z);movie;videosRecomendados;loggedIn;heroImg=j("heroImg");coords;innerWidth;innerHeigth;resizeObs;constructor(){let l=this.platformId;v(l)&&(this.innerWidth=window.innerWidth+200,this.innerHeigth=window.innerHeight),this.movie=this.route.snapshot.data.movie[0],this.title.setTitle(this.movie.nombre),this.meta.updateTag({name:"description",content:this.movie.descripcion}),this.meta.addTags([{name:"twitter:card",content:this.movie.nombre},{name:"og:url",content:`https://www.picta.cu/movie/${this.movie.slug_url}`},{name:"og:image",content:`${this.movie.url_imagen}_1200x600`},{name:"og:title",content:this.movie.nombre},{name:"og:description",content:this.movie.descripcion},{name:"og:image:width",content:"1200"},{name:"og:image:height",content:"630"}]),this.authService.user$.pipe(Y()).subscribe(i=>{i?this.loggedIn=!0:this.loggedIn=!1})}ngOnInit(){this.loadRecomendaciones(),v(this.platformId)&&(this.resizeObs=S(window,"resize").pipe(E(1e3)).subscribe(l=>{this.innerWidth=window.innerWidth+200,this.innerHeigth=window.innerHeight}))}openDownload(){let l=this.bottomSheet.open(ie,{data:{video:this.movie},panelClass:"bottomSheet"})}ngAfterViewInit(){this.positionService.position.subscribe(l=>{if(l){this.coords=l;let i=this.heroImg();this.renderer.setStyle(i.nativeElement,"transform",`translate3d(${this.coords.x}px,${this.coords.y}px, 0)`),this.renderer.setStyle(i.nativeElement,"margin-top","0"),this.renderer.setStyle(i.nativeElement,"z-index","2000"),setTimeout(()=>{let e=this.heroImg();this.renderer.setStyle(e.nativeElement,"transition",".5s ease-in-out"),this.renderer.removeStyle(e.nativeElement,"transform"),this.renderer.setStyle(e.nativeElement,"z-index","0"),this.renderer.setStyle(e.nativeElement,"margin-top","3rem")},350)}})}ngOnDestroy(){v(this.platformId)&&this.resizeObs.unsubscribe()}goBack(){v(this.platformId)&&window.history.back()}loadRecomendaciones(){this.listaReproduccionCanalService.getVideosRecomendados(this.movie.id).subscribe(l=>{this.videosRecomendados=l.results})}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=R({type:a,selectors:[["app-documental"]],viewQuery:function(i,e){i&1&&$(e.heroImg,re,5),i&2&&A()},decls:97,vars:19,consts:[["heroImg",""],["tooltip","matTooltip"],[1,"serie-container","flex","flex-col"],["id","section-hero",1,"nmtitle-section","section-hero","w-full"],[1,"hero-banner","overflow-hidden","!rounded-lg"],[1,"w-full","h-[42vh]","md:h-[50vh]","object-cover",3,"src","alt"],[1,"hero-overlay"],[1,"hero-detail
1s","flex","flex-col","resumen","px-1","sm:px-2"],[1,"title-info","sm:ml-4"],[1,"font-extrabold","mb-4","text-2xl","line-clamp-1"],[1,"title-info-metadata-wrapper"],[1,"text-sm","text-gray-400"],[1,"mb-4","mt-3","max-w-lg","line-clamp-2","text-sm","text-left"],[1,"title-info-synopsis-talent"],[1,"play-download","flex","mt-3"],["color","accent","mat-raised-button","",1,"!rounded-full",3,"routerLink"],["mat-stroked-button","",1,"ml-3","!rounded-full",3,"matTooltip"],["id","section-more-details",1,"nmtitle-section"],[1,"text-white"],[1,"max-w-screen-xl","py-4","sm:pb-6","lg:pb-8"],[1,"max-w-xl"],[1,"text-xl","font-bold"],[1,"mt-4","text-gray-300"],[1,"mt-8","grid","grid-cols-1","gap-8","md:mt-16","md:grid-cols-2","md:gap-12","lg:grid-cols-3"],[1,"flex","items-start","gap-4"],[1,"shrink-0","!rounded-full","bg-gray-800","p-4"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 -960 960 960","width","24px","fill","#e8eaed"],["d","M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"],[1,"text-lg","font-bold"],[1,"mt-1","text-sm","text-gray-300"],[1,"relative","pb-8","nmtitle-section","mt-8"],[1,"w-screen-xl","sm:py-6","lg:py-8"],[1,"text-xl","font-bold","mb-6"],[1,"grid","grid-cols-2","gap-4","lg:grid-cols-5","lg:gap-8"],[1,"flex","flex-col",3,"title"],["mat-stroked-button","",1,"ml-3","!rounded-full",3,"click","matTooltip"],[1,"flex-1","mb-2"],[1,"group","relative","h-40","!rounded-md","overflow-hidden","hover:transition-transform","duration-200","ease-in-out","hover:scale-105"],["alt","recomendado imagen","onerror","this.src = '/img/default.webp'","loading","lazy",1,"w-full","h-full","object-cover","absolute","inset-0","opacity-90",3,"src"],[1,"absolute","top-2","left-2","!rounded-md","px-1","my-1"],[1,"absolute","inset-0","flex","items-center","justify-center"],["xmlns","http://www.w3.org/2000/svg","height","40px","viewBox","0 -960 960 960","width","40px","fill","#e8eaed",1,"focus:outline-none","cursor-pointer","group-hover:transition-transform","duration-200","ease-in-out","group-hover:scale-150","hover:fill-yellow-500",3,"routerLink"],["d","m380-300 280-180-280-180v360ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"],[1,"flex-1","mt-2","line-clamp-1",3,"routerLink"],["src","favicon.ico","alt","Icono",1,"w-6","h-6"]],template:function(i,e){i&1&&(q(0),t(1,"div",2)(2,"div",3)(3,"div",4),u(4,"img",5,0),t(6,"div",6)(7,"div",7)(8,"div",8)(9,"p",9),o(10),n(),t(11,"div",10)(12,"span",11),o(13),n(),t(14,"span",11),o(15," | "),n(),t(16,"span",11),o(17),n(),c(18,le,2,1,"p",12),n(),t(19,"div",13)(20,"div",14)(21,"a",15)(22,"mat-icon"),o(23,"play_arrow"),n(),o(24," Reproducir "),n(),c(25,me,5,1,"button",16),n()()()()()()(),t(26,"div",17)(27,"div",18)(28,"div",19)(29,"div",20)(30,"h2",21),o(31,"M\xE1s Detalles"),n(),t(32,"p",22),o(33),n()(),t(34,"div",23)(35,"div",24)(36,"span",25),x(),t(37,"svg",26),u(38,"path",27),n()(),_(),t(39,"div")(40,"h2",28),o(41,"Ver Offline"),n(),t(42,"p",29),o(43),n()()(),t(44,"div",24)(45,"span",25)(46,"mat-icon"),o(47,"public"),n()(),t(48,"div")(49,"h2",28),o(50,"Pa\xEDs y Duraci\xF3n"),n(),t(51,"p",29),o(52),n()()(),t(53,"div",24)(54,"span",25)(55,"mat-icon"),o(56,"sell"),n()(),t(57,"div")(58,"h2",28),o(59,"Este t\xEDtulo es..."),n(),t(60,"p",29),c(61,ce,2,0)(62,pe,1,0),n()()(),t(63,"div",24)(64,"span",25)(65,"mat-icon"),o(66,"volume_up"),n()(),t(67,"div")(68,"h2",28),o(69,"Audio"),n(),t(70,"p",29),o(71),n()()(),t(72,"div",24)(73,"span",25)(74,"mat-icon"),o(75,"subtitles"),n()(),t(76,"div")(77,"h2",28),o(78,"Subt\xEDtulos"),n(),t(79,"p",29),o(80),n()()(),t(81,"div",24)(82,"span",25)(83,"mat-icon"),o(84,"info"),n()(),t(85,"div")(86,"h2",28),o(87),n(),t(88,"p",29),o(89),n()()()()()()(),t(90,"section",30)(91,"div",31)(92,"h2",32),o(93,"M\xE1s t\xEDtulos similares a este"),n(),t(94,"div",33),y(95,ge,10,10,"div",34,C),n()()()(),F()),i&2&&(r(4),s("src",(e.movie==null?null:e.movie.url_imagen)+"_1280x720",b)("alt",e.movie==null?null:e.movie.nombre),r(6),d(" ",e.movie==null?null:e.movie.nombre," "),r(3),M(e.movie==null||e.movie.categoria==null||e.movie.categoria.documental==null?null:e.movie.categoria.documental.pais),r(4),M(e.movie==null?null:e.movie.duracion),r(),p(e.movie!=null&&e.movie.descripcion?18:-1),r(3),s("routerLink",h(17,O,e.movie==null?null:e.movie.slug_url)),r(4),p(e.movie!=null&&e.movie.descargable&&(e.movie!=null&&e.movie.descarga)&&(e.movie!=null&&e.movie.url_manifiesto)?25:-1),r(8),d(" ",e.movie==null?null:e.movie.descripcion," "),r(10),d(" ",e.movie!=null&&e.movie.descargable?"Disponible para descarga. Lleva y ve Picta donde vayas.":"No est\xE1 disponible para descargar."," "),r(9),H(" ",(e.movie==null||e.movie.categoria==null||e.movie.categoria.documental==null?null:e.movie.categoria.documental.pais)||"N/D"," \xB7 ",(e.movie==null?null:e.movie.duracion)||"N/D"," "),r(9),p(!(e.movie==null||e.movie.palabraClave==null)&&e.movie.palabraClave.length?61:62),r(10),d(" ",e.movie!=null&&e.movie.url_subtitulo?"Ingl\xE9s y Espa\xF1ol":"Espa\xF1ol"," "),r(9),d(" ",e.movie!=null&&e.movie.url_subtitulo?"Subt\xEDtulo disponible para descarga.":"Subt\xEDtulo no dis
1ponible para descarga."," "),r(7),d("Acerca de ",e.movie==null?null:e.movie.nombre),r(2),d(" ",e.movie==null?null:e.movie.descripcion," "),r(6),w(e.videosRecomendados))},dependencies:[U,X,J,ee],styles:['.img-holder[_ngcontent-%COMP%]{border-radius:10px!important}.link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:20% 20% 20% 20% 20%}.title-link[_ngcontent-%COMP%]{margin:6px;max-width:100%}.nmtitle-section[_ngcontent-%COMP%]{margin:0 auto;max-width:1600px;position:relative}.hero-banner[_ngcontent-%COMP%]{position:relative}.hero-banner[_ngcontent-%COMP%]:after{background:linear-gradient(90deg,#000000f2 8%,#000000d9 24%,#0000009e,#0000004d 60%,#00000014 76%,#0000);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.hero-overlay[_ngcontent-%COMP%]{align-items:center;display:flex;inset:0;padding:0 1.25rem;position:absolute;z-index:2}.hero-details[_ngcontent-%COMP%]{margin-top:0!important;max-width:680px}#section-more-details[_ngcontent-%COMP%] .more-details-container[_ngcontent-%COMP%], #section-more-details[_ngcontent-%COMP%] .more-details-container-cast[_ngcontent-%COMP%] .more-details-item-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:20% 20% 20% 20% 20%;justify-content:space-evenly;margin:-6px}#section-more-details[_ngcontent-%COMP%] .more-details-container-cast[_ngcontent-%COMP%]{margin-top:10px}#section-more-details[_ngcontent-%COMP%] .more-details-item[_ngcontent-%COMP%]{color:#fff;display:inline-block;font-size:16px;font-weight:400;line-height:22px;white-space:pre-wrap}#section-more-details[_ngcontent-%COMP%] .more-details-label[_ngcontent-%COMP%]{color:#a3a3a3;font-size:16px;font-weight:400;line-height:22px;margin-bottom:5px}#section-more-details[_ngcontent-%COMP%] .more-details-cell[_ngcontent-%COMP%]{margin:6px;max-width:100%}#section-more-details[_ngcontent-%COMP%]{margin-top:2rem}#section-more-details[_ngcontent-%COMP%] .more-details-container-cast[_ngcontent-%COMP%] .more-details-cell[_ngcontent-%COMP%]{margin:0}#section-more-details[_ngcontent-%COMP%] .more-details-container-cast[_ngcontent-%COMP%] .more-details-item[_ngcontent-%COMP%]{margin:1px 6px;max-width:100%}.video-title[_ngcontent-%COMP%]{font-family:Roboto,sans-serif!important;font-weight:600;font-size:.85rem;width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.play-img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;opacity:0;-webkit-transition:opacity .3s;-moz-transition:opacity .3s;-ms-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s;height:72%;width:100%;border-radius:3px;text-decoration:none}.play-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:scale(.5)}.play-img[_ngcontent-%COMP%]:hover{opacity:1;background-color:#00000080}mat-card[_ngcontent-%COMP%]{border-radius:0!important;padding:0!important;transition:all .1s ease-in;background:none}.mat-card-actions[_ngcontent-%COMP%]{margin-bottom:0!important;padding-top:0!important;padding:15px}.info-row[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center;color:#ccc}.mat-card-image[_ngcontent-%COMP%]{width:calc(100% + 32px)!important;margin:0!important}.mat-card-image[_ngcontent-%COMP%]:hover{box-shadow:0 0 15px #1565c0,0 0 10px #2d8cf0,0 0 5px #40c4ff}mat-card-title[_ngcontent-%COMP%]{display:inline-block;font-size:16px!important;font-weight:700!important;padding:5px!important;margin:0!important}mat-card-title[_ngcontent-%COMP%]:hover{color:#2196f3}.serie-container[_ngcontent-%COMP%]{height:auto;min-height:auto;background-repeat:no-repeat;background-size:cover;padding:18px}mat-expansion-panel[_ngcontent-%COMP%]{background:#1b2f48cc}mat-expansion-panel[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background:#1b2f48!important}.serie-title[_ngcontent-%COMP%]{font-size:18px;font-family:Roboto,serif;line-height:46px;font-weight:700;text-transform:uppercase;text-shadow:0 0 10px black}.text-shadow[_ngcontent-%COMP%]{text-shadow:0 0 10px black}.serie-description[_ngcontent-%COMP%]{text-shadow:0 0 10px black;font-size:18px}.resumen[_ngcontent-%COMP%]{width:100%;max-width:1000px}.title-info-metadata-wrapper[_ngcontent-%COMP%]{margin-top:16px}#section-hero[_ngcontent-%COMP%] .title-info-synopsis-talent[_ngcontent-%COMP%]{align-items:flex-start;display:flex;flex-flow:row wrap;flex-direction:column;justify-content:space-evenly;margin-bottom:5px;margin-top:5px;max-width:100%}.play-download[_ngcontent-%COMP%]{align-items:center}mat-chip[_ngcontent-%COMP%]{background-color:#0000004d!important;cursor:pointer}.info-card[_ngcontent-%COMP%]{text-align:center;border-radius:8px;background-color:#0003!important;padding:1rem}.info-card[_ngcontent-%COMP%] .info-header[_ngcontent-%COMP%]{font-size:20px;line-height:normal}.info-card[_ngcontent-%COMP%] .info-data[_ngcontent-%COMP%]{margin-top:8px;font-size:18px;line-height:normal}@media(min-width:767.98px){.hero-overlay[_ngcontent-%COMP%]{padding:0 3rem}.serie-title[_ngcontent-%COMP%]{font-size:1.9vw}.serie-container[_ngcontent-%COMP%]{padding:0 60px}}.back-button[_ngcontent-%COMP%]{position:absolute;top:65px;background-color:#0000004d;z-index:100}@media only screen and (max-width:1919px){.link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:25% 25% 25% 25%}}@media only screen and (max-width:1280px){.link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:33.333% 33.333% 33.333%}}@media only screen and (max-width:1023px){.link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%}}@media only screen and (max-width:600px){.link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}}@media only screen and (max-width:599px){.nmtitle-section[_ngcontent-%COMP%]{padding:5px 5vw 20px}}@media only screen and (max-width:1439px){#section-more-details[_ngcontent-%COMP%] .more-details-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:33.333% 33.333% 33.333%}}@media only screen and (max-width:1023px){#section-more-details[_ngcontent-%COMP%] .more-details-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%}}@media only screen and (max-width:700px){#section-more-details[_ngcontent-%COMP%] .more-details-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}}']})};export{ae as DocumentalComponent};
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.