PageSourceSearch

https://www.elysianfilmgroup.com/chunk-TQWDU4NY.js

js elysianfilmgroup.com collected 2026-10-07 22:07:19 UTC 7,730 bytes, 2 lines download raw bytes

1import{c as H,f as Y}from"./chunk-QBQJVRAU.js";import{a as G,b as X}from"./chunk-ETUW5ALZ.js";import{F as $,Z as j,ca as B,y as V}from"./chunk-IZMTCGNN.js";import{I as D,Ka as N,T as A,la as U,na as z}from"./chunk-OJZCGLP6.js";import"./chunk-RIF2TWKS.js";import{$b as m,Ca as f,Ib as M,Ic as E,Ke as k,L as T,Nb as h,Ob as r,Vb as g,Z as y,_b as s,ac as c,cf as R,ec as P,ga as b,gc as S,hb as l,hc as F,ie as L,ka as p,la as u,lc as C,mc as a,rb as w,yb as I}from"./chunk-UBTWKBAQ.js";import"./chunk-NUWJNK56.js";import"./chunk-CJHKALUQ.js";function W(i,d){if(i&1&&c(0,"img",9),i&2){let t=a(3),n,e,o;r("ngSrc",t.image().src)("alt",(n=t.image())==null?null:n.alt),h("data-image-type",(e=t.image())==null?null:e.type)("data-type",(o=t.image())==null?null:o.type);}}function q(i,d){if(i&1&&c(0,"img",11),i&2){let t=a(3),n,e,o;r("ngSrc",t.image().src)("alt",(n=t.image())==null?null:n.alt),h("data-image-type",(e=t.image())==null?null:e.type)("data-type",(o=t.image())==null?null:o.type);}}function J(i,d){if(i&1&&(M(0,W,1,4,"img",9)(1,q,1,4),s(2,"div",10),c(3,"fa-icon",2),m()),i&2){let t=a(2);g(0,t.image().imgType=="poster-img"||t.image().type=="portrait"?0:t.image().imgType=="wallpaper-img"||t.image().imgType=="tile-img"||t.image().type=="landscape"?1:-1),l(3),r("icon",t.faSpinner);}}function Q(i,d){if(i&1){let t=P();s(0,"a",12),C("click",function(){p(t);let e=a(2),o;return u(e.changeImage((o=e.image())==null?null:o.next));}),c(1,"fa-icon",2),m();}if(i&2){let t=a(2);l(),r("icon",t.faArrowLeft);}}function Z(i,d){if(i&1){let t=P();s(0,"a",13),C("click",function(){p(t);let e=a(2),o;return u(e.changeImage((o=e.image())==null?null:o.previous));}),c(1,"fa-icon",2),m();}if(i&2){let t=a(2);l(),r("icon",t.faArrowRight);}}function tt(i,d){if(i&1){let t=P();s(0,"div",0)(1,"a",1),C("click",function(){p(t);let e=a();return u(e.clearModal());}),c(2,"fa-icon",2),m(),s(3,"a",3),C("click",function(){p(t);let e=a();return u(e.downloadImage());}),S(4,4),c(5,"i",5),F(),m(),M(6,J,4,2,"div",6)(7,Q,2,1,"a",7)(8,Z,2,1,"a",8),m();}if(i&2){let t=a(),n,e,o;r("ngClass",((n=t.image())==null?null:n.imgType)||((n=t.image())==null?null:n.type)),l(2),r("icon",t.faClose),l(),h("data-translate","public.commons.download"),l(3),g(6,t.loading()?-1:6),l(),g(7,(e=t.image())!=null&&e.next?7:-1),l(),g(8,(o=t.image())!=null&&o.previous?8:-1);}}var Ct=(()=>{class i{constructor(){this.modalPictureService=f(A),this.imageService=f(H),this.trackingService=f(N),this.image=w(null),this.loading=w(!1),this.faClose=j,this.faArrowLeft=$,this.faArrowRight=V,this.faSpinner=B,I(()=>{document.addEventListener("keydown",t=>{(t.code=="27"||t.code==="Escape")&&this.clearModal();});}),this.modalPictureService.image.pipe(D(),y(()=>this.loading.set(!0)),T(100)).subscribe(t=>{this.image.set(t),this.loading.set(!1);});}clearModal(){this.modalPictureService.cleanImage();}getSourceImg(t,n){let e;return typeof t=="string"?e=t:n=="landscape"||n=="tile"?e=t.tilePhotoUrl:e=t.portraitPhotoUrl,e;}downloadImage(){let{src:t,type:n,movie:e,imgType:o}=this.image(),O=this.getLastChunkOfString(t),K=this.getActionType(o);fetch(t).then(_=>_.blob()).then(_=>{let v=URL.createObjectURL(_),x=document.createElement("a");x.href=v,x.download=O,x.click(),this.trackingService.trackEvent({action:K,properties:{category:"MovieDetail",label:O,orientation:n,movie:e?.title,idMovie:e?.id,imdb:e?.imdb,tagsMovie:U(e),genresMovie:z(e)}}),URL.revokeObjectURL(v);}).catch(_=>{console.error("Error downloading image:",_);});}getActionType(t){if(t=="wallpaper-img")return"WallpaperDownloaded";if(t=="tile-img")return"LandscapeImageDownloaded";if(t=="poster-img")return"PosterImageDownloaded";}changeImage(t){this.modalPictureService.setImage(t);}getLastChunkOfString(t){return t.split("/").pop();}static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵcmp=b({type:i,selectors:[["ush-modal-picture"]],standalone:!0,features:[E],decls:1,vars:1,consts:()=>{let t;return t="Download",[["id","modal-image-container",3,"ngClass"],[1,"btn-close",3,"click"],[3,"icon"],[1,"btn-download",3,"click"],t,[1,"pi","pi-download"],["class","loading-spinner"],["class","arrow-left"],["class","arrow-right"],["sizes","(max-width: 650px) 90vw, (max-width: 1500px) 50vw, 25vw","width","523","height","780",3,"ngSrc","alt"],[1,"loading-spinner"],["sizes","(max-width: 650px) 100v
1w, (max-width: 1380px) 70vw, 55vw","width","1600","height","900",3,"ngSrc","alt"],[1,"arrow-left",3,"click"],[1,"arrow-right",3,"click"]];},template:function(n,e){n&1&&M(0,tt,9,6,"div",0),n&2&&g(0,e.image()!==null?0:-1);},dependencies:[k,L,Y,R,X,G],styles:[`#modal-image-container[_ngcontent-%COMP%]{display:flex;position:fixed;top:0;left:0;justify-content:center;align-items:center;z-index:1000;background-color:#000c;padding:5%;width:100vw;height:100vh}#modal-image-container[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%], #modal-image-container[_ngcontent-%COMP%]   .btn-download[_ngcontent-%COMP%]{position:absolute;top:15px;right:35px;transition:.3s;color:#f1f1f1;font-weight:700;font-size:40px}#modal-image-container[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%]:hover, #modal-image-container[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%]:focus, #modal-image-container[_ngcontent-%COMP%]   .btn-download[_ngcontent-%COMP%]:hover, #modal-image-container[_ngcontent-%COMP%]   .btn-download[_ngcontent-%COMP%]:focus{cursor:pointer;color:#bbb;text-decoration:none}#modal-image-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:30px}#modal-image-container[_ngcontent-%COMP%]   .btn-download[_ngcontent-%COMP%]{top:initial;bottom:15px;font-weight:400;font-size:16px}#modal-image-container[_ngcontent-%COMP%]   picture[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}#modal-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;margin:0 auto;width:auto;height:100%}#modal-image-container[_ngcontent-%COMP%]:is(.portrait, .poster-img)[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:auto}@media screen and (min-aspect-ratio: 2/3){#modal-image-container[_ngcontent-%COMP%]:is(.portrait, .poster-img)[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto;height:100%}}#modal-image-container[_ngcontent-%COMP%]:is(.landscape, .wallpaper-img[_ngcontent-%COMP%], .tile-img)[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:fit-content}@media screen and (min-aspect-ratio: 16/9){#modal-image-container[_ngcontent-%COMP%]:is(.landscape, .wallpaper-img[_ngcontent-%COMP%], .tile-img)[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto;height:100%}}#modal-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:relative;z-index:2}#modal-image-container[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{display:flex;position:absolute;top:50%;left:50%;justify-content:center;align-items:center;translate:-50% -50%;z-index:1;animation:_ngcontent-%COMP%_spin 1s linear infinite;width:100%;color:#fff;font-size:24px}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#modal-image-container[_ngcontent-%COMP%]   .arrow-left[_ngcontent-%COMP%], #modal-image-container[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);z-index:10;cursor:pointer;color:#fff;font-size:24px;text-decoration:none}#modal-image-container[_ngcontent-%COMP%]   .arrow-left[_ngcontent-%COMP%]{left:20px}#modal-image-container[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{right:20px}
2/*# sourceMappingURL=modal-picture.component-P6REV3FY.css.map */`],changeDetection:0});}}return i;})();export{Ct as ModalPictureComponent};/**i18n:59457ef38c4899527739585529b1f9e728cb2921196deb27ca390201e871d618*///# sourceMappingURL=chunk-TQWDU4NY.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.