PageSourceSearch

https://www.acontracorrientefilms.com/chunk-PACSLOKY.js

js acontracorrientefilms.com collected 2026-09-24 23:37:56 UTC 10,424 bytes, 2 lines download raw bytes

1import{a as X,c as Z,d as N}from"./chunk-U7XQ454T.js";import{e as L,f as U}from"./chunk-U4E52ZKJ.js";import{a as q,b as J}from"./chunk-S5LTWVEG.js";import{d as ee,k as te}from"./chunk-7ND72G7J.js";import{b as ie}from"./chunk-F5QL4JCS.js";import{a as Q}from"./chunk-IZ22VLOB.js";import{g as Y}from"./chunk-QYCP3C4Q.js";import{a as O,b as H}from"./chunk-45Y65VVW.js";import{i as E,k as B,ka as j}from"./chunk-I5GKCKTD.js";import{Ca as M,I as P,Y as G,hb as g,jb as K,lb as V}from"./chunk-VJJ7UZ4P.js";import{Y as A,aa as D}from"./chunk-X4VW2CZW.js";import{Cb as k,Fb as a,Pe as $,Rc as z,Uc as f,Vb as o,Zb as W,da as _,ed as T,fc as c,gc as l,hc as m,ib as u,jb as s,lc as S,ne as x,ra as F,re as R,sa as b,tc as h,uc as r,yb as w,zb as I}from"./chunk-WL6DODUI.js";var y=e=>({active:e});function re(e,p){if(e&1&&m(0,"fa-icon",6),e&2){let t=r();o("icon",t.bookmarkIcon)("size","lg");}}function ae(e,p){if(e&1&&m(0,"fa-icon",6),e&2){let t=r();o("icon",t.watchedIcon)("size","lg");}}function ce(e,p){if(e&1&&m(0,"fa-icon",6),e&2){let t=r(2);o("icon",t.hearthIcon)("size","lg");}}function le(e,p){if(e&1){let t=S();c(0,"p-button",7),h("authorizedClick",function(){F(t);let i=r();return b(i.onRateMovie());}),a(1,ce,1,2,"ng-template",1),l();}if(e&2){let t=r();o("pTooltip",t.rateHint)("tooltipOptions",t.hintOptions)("ngClass",f(3,y,t.movie.myRank));}}function me(e,p){if(e&1&&m(0,"fa-icon",6),e&2){let t=r();o("icon",t.listIcon)("size","lg");}}function he(e,p){if(e&1&&m(0,"fa-icon",6),e&2){let t=r();o("icon",t.shareIcon)("size","lg");}}var v=function(e){return e.addMovieToWishList="AddToWishlist",e.removeMovieFromWishlist="RemoveFromWishlist",e.addToWatched="AddToWatched",e.removeFromWatched="RemoveFromWatched",e.addMovieToList="AddMovieToList",e;}(v||{}),pe=(()=>{class e extends M{constructor(t,n,i,d,C,oe,ne){super(),this.userInteractionService=t,this.messageService=n,this.authService=i,this.cd=d,this.env=C,this.communityElementsService=oe,this.trackingService=ne,this.classBinding="",this.orientation="horizontal",this.TRACKING_CATEGORY="Community",this.waitingForWatchedMovieResponse=!1,this.waitingForWishlistResponse=!1,this.isMovieInMyWishList=g,this.bookmarkIcon=X,this.eyeIcon=N,this.checkIcon=j,this.hearthIcon=Z,this.listIcon=E,this.shareIcon=B,this.hintOptions={tooltipPosition:"left",tooltipStyleClass:"film-interactions-tooltip",showDelay:500},this.userSig=G(this.authService.$userStatus);}ngOnInit(){this.setUpHints();}setUpHints(){this.wishlistHint=g(this.movie)?"Quitar pel\xEDcula de tu lista de deseos":"Guardar pel\xEDcula en tu lista de deseos",this.watchedHint=this.movie.inMyWatched?"Quitar pel\xEDcula de tu lista de vistas":"Marcar pel\xEDcula como vista",this.rateHint=this.movie.myRank?"Quitar calificaci\xF3n":"Calificar pel\xEDcula",this.shareHint="Compartir pel\xEDcula",this.addToListHint="Agregar a lista";}onRateMovie(){this.userInteractionService.getMovieRating(this.movie);}onMarkMovieAsWatched(){this.waitingForWatchedMovieResponse=!0,this.movie.inMyWatched?this.removeWatchedMovie():this.userInteractionService.addMovieToWatched({idMovie:this.movie.id}).subscribe({next:()=>{this.trackFilmInteractionEvent(v.addToWatched),this.messageService.add({severity:"success",summary:"\xC9xito",detail:"Pel\xEDcula marcada como vista"}),this.waitingForWatchedMovieResponse=!1,this.movie.inMyWatched=!0,this.cd.markForCheck(),this.processChange();},error:()=>{this.waitingForWatchedMovieResponse=!1,this.messageService.add({severity:"error",summary:"Error",detail:"No se pudo a\xF1adir la pel\xEDcula a vistos"}),this.processChange();}});}removeWatchedMovie(){this.waitingForWatchedMovieResponse=!0,this.userInteractionService.removeMovieFromWatched(this.movie.id).subscribe({next:()=>{this.trackFilmInteractionEvent(v.removeFromWatched),this.messageService.add({severity:"success",summary:"\xC9xito",detail:"Pel\xEDcula eliminada de vistos"}),this.waitingForWatchedMovieResponse=!1,this.movie.inMyWatched=!1,this.processChange();},error:()=>{this.waitingForWatchedMovieResponse=!1,this.messageService.add({severity:"error",summary:"Error",detail:"No se pudo eliminar la pel\xEDcula de vistos"}),this.processChange();}});}processChange(){this.cd.markForCheck(),this.setUpHints();}addMovieToList(t){this.userInteractionService.searchMyLists(this.movie,t||this.userSig());}
1onSharing(){this.trackingService.trackEvent({action:"ShareMovie",properties:{category:"MovieDetail",label:this.movie.title}}),this.userInteractionService.shareMovieDetail(this.movie);}onAddMovieToWishlist(){if(this.waitingForWishlistResponse=!0,g(this.movie)){this.removeMovieFromWishlist();return;}else this.userInteractionService.addMovieToWishList(this.movie?.id).subscribe({next:()=>{this.trackFilmInteractionEvent(v.addMovieToWishList),this.messageService.add({severity:"success",summary:"\xC9xito",detail:"Pel\xEDcula a\xF1adida a la lista de deseos"}),this.waitingForWishlistResponse=!1,this.movie.inMyWhislist=!0,this.movie.inMyWishlist=!0,this.processChange();},error:()=>{this.waitingForWishlistResponse=!1,this.messageService.add({severity:"error",summary:"Error",detail:"No se pudo a\xF1adir la pel\xEDcula a la lista de deseos"}),this.processChange();}});}removeMovieFromWishlist(){this.userInteractionService.removeMovieFromWishList(this.movie?.id).subscribe({next:()=>{this.trackFilmInteractionEvent(v.removeMovieFromWishlist),this.messageService.add({severity:"success",summary:"\xC9xito",detail:"Pel\xEDcula eliminada de la lista de deseos"}),this.waitingForWishlistResponse=!1,this.movie.inMyWhislist=!1,this.movie.inMyWishlist=!1,this.processChange();},error:()=>{this.waitingForWishlistResponse=!1,this.messageService.add({severity:"error",summary:"Error",detail:"No se pudo eliminar la pel\xEDcula de la lista de deseos"}),this.processChange();}});}trackFilmInteractionEvent(t){this.trackingService.trackEvent({action:t,properties:{category:this.TRACKING_CATEGORY,movie:this.movie.title||"",idMovie:this.movie.id,imdb:this.movie?.imdb,tagsMovie:K(this.movie),genresMovie:V(this.movie),user:this.username}});}get watchedIcon(){return(this.env.communityConfig?.filmInteractionsConfig?.watchedIcon||"check")==="check"?this.checkIcon:this.eyeIcon;}get ratingEnabled(){return this.communityElementsService.isFeatureEnabled("rating");}get username(){return this.authService.getUserUsername();}static{this.ɵfac=function(n){return new(n||e)(s(ee),s(A),s(Q),s(T),s(P),s(te),s(Y));};}static{this.ɵcmp=w({type:e,selectors:[["feature-film-interactions"]],hostVars:2,hostBindings:function(n,i){n&2&&W(i.classBinding);},inputs:{classBinding:"classBinding",movie:"movie",orientation:"orientation"},standalone:!1,features:[z([{provide:M,useExisting:e}]),k],decls:9,vars:17,consts:[["userCta","","styleClass","p-button-rounded",1,"add-to-wishlist",3,"authorizedClick","loading","pTooltip","tooltipOptions","ngClass"],["pTemplate","icon"],["userCta","","styleClass","p-button-rounded",1,"watch-movie",3,"authorizedClick","loading","pTooltip","tooltipOptions","ngClass"],["userCta","","class","rate-movie","styleClass","p-button-rounded",3,"pTooltip","tooltipOptions","ngClass","authorizedClick",4,"ngIf"],["userCta","","styleClass","p-button-rounded",1,"add-to-list",3,"authorizedClick","pTooltip","tooltipOptions"],["styleClass","p-button-rounded",1,"share-movie",3,"onClick","pTooltip","tooltipOptions"],[3,"icon","size"],["userCta","","styleClass","p-button-rounded",1,"rate-movie",3,"authorizedClick","pTooltip","tooltipOptions","ngClass"]],template:function(n,i){n&1&&(c(0,"p-button",0),h("authorizedClick",function(){return i.onAddMovieToWishlist();}),a(1,re,1,2,"ng-template",1),l(),c(2,"p-button",2),h("authorizedClick",function(){return i.onMarkMovieAsWatched();}),a(3,ae,1,2,"ng-template",1),l(),a(4,le,2,5,"p-button",3),c(5,"p-button",4),h("authorizedClick",function(C){return i.addMovieToList(C);}),a(6,me,1,2,"ng-template",1),l(),c(7,"p-button",5),h("onClick",function(){return i.onSharing();}),a(8,he,1,2,"ng-template",1),l()),n&2&&(o("loading",i.waitingForWishlistResponse)("pTooltip",i.wishlistHint)("tooltipOptions",i.hintOptions)("ngClass",f(13,y,i.isMovieInMyWishList(i.movie))),u(2),o("loading",i.waitingForWatchedMovieResponse)("pTooltip",i.watchedHint)("tooltipOptions",i.hintOptions)("ngClass",f(15,y,i.movie.inMyWatched)),u(2),o("ngIf",i.ratingEnabled),u(),o("pTooltip",i.addToListHint)("tooltipOptions",i.hintOptions),u(2),o("pTooltip",i.shareHint)("tooltipOptions",i.hintOptions));},dependencies:[x,R,L,D,q,O,ie],styles:[`[_nghost-%COMP%]{display:var(--film-interactions-display, flex);position:var(--film-interactions-position);top:var(--film-interactions-top);right:var(--film-interactions-right);bottom:var(--film-interactions-bottom);left:var(--film-interactions-left);column-gap:var(--spacing-md);row-gap:var(--spacing-md);flex-direction:var(--film-interactions-flex-direction);justify-content:var(--film-interactions-justify-content);align-items:var(--film-interactions-align-items);z-index:var(--film-interactions-z-index);margin:var(--film-interactions-margin);width:min-content;height:100%}[_nghost-%COMP%]     p-button{--buttonBorderHover: var(--film-interactions__border--hover, 2px solid var(--brandColor));
1--buttonBackgroundHover: var(--film-interactions__bg-color--hover, transparent);--buttonColorHover: var(--film-interactions__color--hover, var(--brandColor))}[_nghost-%COMP%]     p-button button.p-button{box-shadow:var(--film-interactions-box-shadow, none)!important;border:none;background:var(--film-interactions-bg-color, var(--brandColor));color:var(--film-interactions-color, white)}[_nghost-%COMP%]     p-button.active .p-button{border:var(--buttonBorderHover);background:var(--buttonBackgroundHover);color:var(--buttonColorHover)}[_nghost-%COMP%]     p-button .pi-share-alt{--p-icon-size: 19px}[_nghost-%COMP%]     p-button fa-icon{display:flex}  .film-interactions-tooltip{--tooltip-text-color: var(--film-interactions--tooltip-text-color, var(--brandColor));--tooltip-background-color: var(--film-interactions--tooltip-bg-color, var(--color-text))}
2/*# sourceMappingURL=feature-film-interactions.component-MW235WV6.css.map */`],changeDetection:0});}}return e;})();var Ge=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)();};}static{this.ɵmod=I({type:e});}static{this.ɵinj=_({imports:[$,U,J,H]});}}return e;})();export{pe as a,Ge as b};/**i18n:da9b1564e327b39980cfb99ec70a709fbff4da55069c1bbb037069cac2269a95*///# sourceMappingURL=chunk-PACSLOKY.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.