PageSourceSearch

https://www.theoriginals.es/436.1b0cb8629cd53b50.js

js theoriginals.es collected 2026-10-08 10:56:53 UTC 33,036 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklcv_frontend=self.webpackChunklcv_frontend||[]).push([[436],{1436:(gn,p,r)=>{r.r(p),r.d(p,{MonthlyVanModule:()=>pn});var l=r(6895),_=r(4006),d=r(1603),g=r(8729),n=r(4650),f=r(3026),C=r(5038),v=r(8929),x=r(7625),c=r(2475),h=r(6793),M=r(7297),y=r(7361),U=r(9095),Z=r(13),m=r(8455),I=r(9203),T=r(6289),A=r(4363);function b(i,a){if(1&i){const s=n.EpF();n.TgZ(0,"mat-form-field",12),n._uU(1,"\n      "),n.TgZ(2,"mat-label"),n._uU(3,"Mes"),n.qZA(),n._uU(4,"\n      "),n.TgZ(5,"mat-select",4),n.NdJ("selectionChange",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.onMonthChange(e.value))}),n._uU(6,"\n        "),n.TgZ(7,"mat-option",13),n._uU(8,"Mes en curso"),n.qZA(),n._uU(9,"\n        "),n.TgZ(10,"mat-option",14),n._uU(11,"Mes anterior"),n.qZA(),n._uU(12,"\n      "),n.qZA(),n._uU(13,"\n    "),n.qZA()}if(2&i){const s=n.oxw();n.xp6(5),n.Q6J("value",s.selectedMonth)}}function O(i,a){if(1&i){const s=n.EpF();n.TgZ(0,"mat-form-field",15),n._uU(1,"\n      "),n._UZ(2,"mat-label"),n._uU(3,"\n      "),n.TgZ(4,"mat-select",16),n.NdJ("valueChange",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.selected=e)})("selectionChange",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.onSortChange(e.value))}),n._uU(5,"\n        "),n.TgZ(6,"mat-option",17),n._uU(7,"m\xe1s antiguas"),n.qZA(),n._uU(8,"\n        "),n.TgZ(9,"mat-option",18),n._uU(10,"m\xe1s recientes"),n.qZA(),n._uU(11,"\n      "),n.qZA(),n._uU(12,"\n    "),n.qZA()}if(2&i){const s=n.oxw();n.xp6(4),n.Q6J("value",s.selected)}}let w=(()=>{const a=class{constructor(t){this.fb=t,this.isVanSection=!1,this.selectedMonth="current",this.searchValue="",this.isHistoric=!1,this.selected="option2",this.orderByLikes=!1,this.order=new n.vpe,this.search=new n.vpe,this.monthFilter=new n.vpe,this.likesFilter=new n.vpe,this.destroy$=new v.xQ,this.sort=c.fO}
1ngOnInit(){this.searchOptions=this.fb.group({options:this.searchValue??""}),this.searchOptions.get("options").valueChanges.pipe((0,x.R)(this.destroy$),(0,Z.b)(600)).subscribe(t=>{"string"==typeof t&&this.search.emit(t)})}ngOnChanges(t){if(t.searchValue&&this.searchOptions){const e=this.searchValue??"";this.searchOptions.get("options").value!==e&&this.searchOptions.get("options").setValue(e,{emitEvent:!1})}t.orderByLikes&&!t.orderByLikes.firstChange&&this.orderByLikes&&(this.selected="option2")}onLikesChange(t){const e="LIKES"===t;e!==this.orderByLikes&&(e&&(this.selected="option2"),this.likesFilter.emit(e))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSortChange(t){this.order.emit("option1"===t?this.sort.OLDEST:this.sort.NEWEST)}onMonthChange(t){t!==this.selectedMonth&&this.monthFilter.emit(t)}};let i=a;return a.\u0275fac=function(e){return new(e||a)(n.Y36(_.qu))},a.\u0275cmp=n.Xpm({type:a,selectors:[["vged-monthly-van-filter"]],inputs:{isVanSection:"isVanSection",selectedMonth:"selectedMonth",title:"title",orderBy:"orderBy",searchValue:"searchValue",isHistoric:"isHistoric",selected:"selected",orderByLikes:"orderByLikes"},outputs:{order:"order",search:"search",monthFilter:"monthFilter",likesFilter:"likesFilter"},features:[n.TTD],decls:40,vars:6,consts:[[1,"d-flex","justify-content-end","align-items-baseline","mt-5"],[1,"d-flex","justify-content-start","align-items-baseline"],["class","mr-3",4,"ngIf"],[1,"ml-3"],[3,"value","selectionChange"],[3,"value"],["class","mr-3 ml-3",4,"ngIf"],[3,"formGroup"],[1,"ml-5","form-style"],["matInput","","placeholder","Buscar por autor, localizaci\xf3n o t\xedtulo","formControlName","options",1,"input-style"],["matPrefix","",1,"svg","mr-2"],[0,"xlink","href","/assets/icons/sprite.svg#search-icon-small"],[1,"mr-3"],["value","current"],["value","previous"],[1,"mr-3","ml-3"],[3,"value","valueChange","selectionChange"],["value","option1",1,"font-color"],["value","option2",1,"font-color"]],template:function(e,o){1&e&&(n.TgZ(0,"div",0),n._uU(1,"\n  "),n.TgZ(2,"div",1),n._uU(3,"\n    "),n.YNc(4,b,14,1,"mat-form-field",2),n._uU(5,"\n\n    "),n.TgZ(6,"mat-form-field",3),n._uU(7,"\n      "),n.TgZ(8,"mat-label"),n._uU(9,"Ordenar"),n.qZA(),n._uU(10,"\n      "),n.TgZ(11,"mat-select",4),n.NdJ("selectionChange",function(dn){return o.onLikesChange(dn.value)}),n._uU(12,"\n        "),n.TgZ(13,"mat-option",5),n._uU(14,"Ordenar por fecha"),n.qZA(),n._uU(15,"\n        "),n.TgZ(16,"mat-option",5),n._uU(17,"Ordenar por likes"),n.qZA(),n._uU(18,"\n      "),n.qZA(),n._uU(19,"\n    "),n.qZA(),n._uU(20,"\n\n    "),n.YNc(21,O,13,1,"mat-form-field",6),n._uU(22,"\n\n    "),n.TgZ(23,"form",7),n._uU(24,"\n      "),n.TgZ(25,"mat-form-field",8),n._uU(26,"\n        "),n._UZ(27,"mat-label"),n._uU(28,"\n        "),n._UZ(29,"input",9),n._uU(30,"\n        "),n.O4$(),n.TgZ(31,"svg",10),n._uU(32,"\n          "),n._UZ(33,"use",11),n._uU(34,"\n        "),n.qZA(),n._uU(35,"\n      "),n.qZA(),n._uU(36,"\n    "),n.qZA(),n._uU(37,"\n  "),n.qZA(),n._uU(38,"\n"),n.qZA(),n._uU(39,"\n")),2&e&&(n.xp6(4),n.Q6J("ngIf",o.isVanSection),n.xp6(7),n.Q6J("value",o.orderByLikes?"LIKES":""),n.xp6(2),n.Q6J("value",""),n.xp6(3),n.Q6J("value","LIKES"),n.xp6(5),n.Q6J("ngIf",!o.orderByLikes),n.xp6(2),n.Q6J("formGroup",o.searchOptions))},dependencies:[l.O5,_._Y,_.Fj,_.JJ,_.JL,_.sg,_.u,m.v_,m.$V,m.g4,I.k0,T.x8,A.CK],styles:[".search_icon_container[_ngcontent-%COMP%]{position:relative;width:200px}.font-color[_ngcontent-%COMP%]{color:#001e50!important}.form-style[_ngcontent-%COMP%]{width:285px;cursor:pointer}.input-style[_ngcontent-%COMP%]{font-size:15px}.icon-style[_ngcontent-%COMP%]{width:16px}.mat-input-element[_ngcontent-%COMP%]::placeholder{color:gray!important;-webkit-text-fill-color:gray!important}.svg[_ngcontent-%COMP%]{width:18px;height:18px}"]}),i})();var F=r(1920),S=r(9818),V=r(7392);function E(i,a){if(1&i){const s=n.EpF();n.ynx(0),n._uU(1,"\n      "),n.TgZ(2,"video",21),n.NdJ("click",function(){n.CHM(s);const e=n.oxw();return n.KtG(e.openInstantDetail(e.instant))}),n.qZA(),n._uU(3,"\n    "),n.BQk()}if(2&i){const s=n.oxw();n.xp6(2),n.Q6J("src",s.instant.urlImg,n.LSH)}}const P=function(i){return{"background-image":i,"background-size":"cover","background-position":"center","background-repeat":"no-repeat",width:"100%",height:"100%"}};function k(i,a){if(1&i){const s=n.EpF();n._uU(0,"\n      "),n.TgZ(1,"div",22),n._uU(2,"\n        "),n.TgZ(3,"div",23),n.NdJ("
1click",function(){n.CHM(s);const e=n.oxw();return n.KtG(e.openInstantDetail(e.instant))}),n.qZA(),n._uU(4,"\n\n        "),n.TgZ(5,"a",24),n.NdJ("click",function(e){return e.stopPropagation()}),n._uU(6,"\n          \u2b07\n        "),n.qZA(),n._uU(7,"\n      "),n.qZA(),n._uU(8,"\n    ")}if(2&i){const s=n.oxw();n.xp6(3),n.Q6J("ngStyle",n.VKq(2,P,"url("+s.instant.urlImg+")")),n.xp6(2),n.Q6J("href",s.instant.urlImg,n.LSH)}}function H(i,a){if(1&i&&(n.TgZ(0,"div",26),n._uU(1),n.qZA()),2&i){const s=n.oxw(2);n.xp6(1),n.hij("\n      ",s.instant.author,"\n    ")}}function J(i,a){if(1&i&&(n.ynx(0),n._uU(1,"\n    "),n.YNc(2,H,2,1,"div",25),n._uU(3,"\n  "),n.BQk()),2&i){const s=n.oxw();n.xp6(2),n.Q6J("ngIf",s.mode!==s.modes.VOLKSWAGEN)}}const q=function(i){return{location:i}};function N(i,a){if(1&i&&(n.TgZ(0,"div",27),n._uU(1),n.qZA()),2&i){const s=n.oxw();n.Q6J("ngClass",n.VKq(2,q,s.isUser)),n.xp6(1),n.hij("\n    ",null==s.instant.location?null:s.instant.location.description,"\n  ")}}function L(i,a){if(1&i&&(n.TgZ(0,"p",30),n._uU(1),n.qZA()),2&i){const s=a.$implicit;n.xp6(1),n.hij("\n      ",s.name,"\n    ")}}const Q=function(i){return{category:i}};function B(i,a){if(1&i&&(n.TgZ(0,"div",28),n._uU(1,"\n    "),n.YNc(2,L,2,1,"p",29),n._uU(3,"\n  "),n.qZA()),2&i){const s=n.oxw();n.Q6J("ngClass",n.VKq(2,Q,s.isUser)),n.xp6(2),n.Q6J("ngForOf",s.instant.categories)}}function D(i,a){if(1&i){const s=n.EpF();n.TgZ(0,"button",33),n.NdJ("click",function(){n.CHM(s);const e=n.oxw(2);return n.KtG(e.sendWinnerAlerts())}),n._uU(1,"\n          "),n.TgZ(2,"mat-icon",39),n._uU(3,"notifications"),n.qZA(),n._uU(4,"\n          "),n.TgZ(5,"div",36),n._uU(6,"Enviar alertas"),n.qZA(),n._uU(7,"\n        "),n.qZA()}}function W(i,a){1&i&&n._UZ(0,"div",40)}function K(i,a){if(1&i){const s=n.EpF();n.TgZ(0,"div",31),n._uU(1,"\n      "),n.TgZ(2,"div",32),n._uU(3,"\n        "),n.TgZ(4,"button",33),n.NdJ("click",function(){n.CHM(s);const e=n.oxw();return n.KtG(e.selectWinningVan())}),n._uU(5,"\n          "),n.O4$(),n.TgZ(6,"svg",34),n._uU(7,"\n            "),n._UZ(8,"use",35),n._uU(9,"\n          "),n.qZA(),n._uU(10,"\n          "),n.kcU(),n.TgZ(11,"div",36),n._uU(12,"Seleccionar Furgo del Mes"),n.qZA(),n._uU(13,"\n        "),n.qZA(),n._uU(14,"\n\n        "),n.YNc(15,D,8,0,"button",37),n._uU(16,"\n      "),n.qZA(),n._uU(17,"\n\n      "),n.YNc(18,W,1,0,"div",38),n._uU(19,"\n    "),n.qZA()}if(2&i){const s=n.oxw();n.xp6(15),n.Q6J("ngIf",s.isWinner),n.xp6(3),n.Q6J("ngIf",s.isWinner)}}const G=function(i){return{image:i}},Y=function(i){return{title:i}},$=function(i,a){return{"communication-section__consent__value--yes":i,"communication-section__consent__value--no":a}},j=function(i){return{date:i}},z=function(i){return{likes:i}};let R=(()=>{const a=class{constructor(){this.mode=c.EH.PENDING,this.instantActionEvent=new n.vpe,this.openInstantDetailEvent=new n.vpe,this.sendAlertsEvent=new n.vpe,this.hasWinner=!1,this.winnerId=null,this.modes=c.EH,this.isVideo=F.W.isVideo}openInstantDetail(t){this.openInstantDetailEvent.emit(t)}selectWinningVan(){this.instantActionEvent.emit({action:c.aO.MONTHTLY_VAN,data:this.instant})}sendWinnerAlerts(){this.sendAlertsEvent.emit(this.instant)}get isWinner(){return Number(this.instant?.id)===Number(this.winnerId)}};let i=a;return a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["vged-monthly-van-instant-item"]],inputs:{mode:"mode",instant:"instant",isUser:"isUser",hasWinner:"hasWinner",winnerId:"winnerId"},outputs:{instantActionEvent:"instantActionEvent",openInstantDetailEvent:"openInstantDetailEvent",sendAlertsEvent:"sendAlertsEvent"},decls:80,vars:32,consts:[[1,"communication-section"],[1,"communication-section__photo",3,"ngClass"],[4,"ngIf","ngIfElse"],["showImage",""],[1,"communication-section__description",3,"ngClass"],[4,"ngIf"],[1,"communication-section__contact"],[1,"communication-section__contact__list"],[1,"communication-section__contact__item"],[1,"communication-section__contact__label"],[1,"communication-section__contact__value"],[1,"communication-section__consent"],[1,"communication-section__consent__label"],[1,"communication-section__consent__value",3,"ngClass"],["class","communication-section__location",3,"ngClass",4,"ngIf"],["class","communication-section__categories",3,"ngClass",4,"ngIf"],[1,"communication-section__date",3,"ngClass"],[1,"communication-section__likes",3,"ngClass"],[1,"communication-section__likes__icon"],[1,"communication-section__likes__count"],["class","communication-section__button__pending",4,"ngIf"],["controls","","width","100%","height","100%",1,"communication-section__photo__url","pointer",3,"src","click"],[1,"communication-section__photo__url-wrapper"],[1,"communication-section__photo__url","pointer",3,"ngStyle","click"],["target","_blank","rel","noopener",1,"download-btn",3,"href","click"],["class","communication-section__author",4,"ngIf"],[1,"communication-section__author"],[1,"communication-section__location",3,"ngClass"],[1,"communication-section__categories",3,"ngClass"],["class","mb-0",4,"ngFor","ngForOf"],[1,"mb-0"],[1,"communication-section__button__pending"],[1,"communication-section__button__pending__actions"],["mat-raised-button","","color","primary",1,"approved-button",3,"click"],[1,"mr-1","accept-icon"],[0,"xlink","href","/assets/icons/sprite.svg#accept-icon-small"],[1,"button_text"],["class","approved-button","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["class","winner-icon",4,"ngIf"],[1,"mr-1",2,"width","35px","height","25px","font-size","25px","line-height","25px"],[1,"winner-icon"]],template:function(e,o){if(1&e&&(n.TgZ(0,"div",0),n._uU(1,"\n  "),n.TgZ(2,"div",1),n._uU(3,"\n    "),n.YNc(4,E,4,1,"ng-container",2),n._uU(5,"\n\n    "),n.YNc(6,k,9,4,"ng-template",null,3,n.W1O),n._uU(8,"\n  "),n.qZA(),n._uU(9,"\n\n  "),n.TgZ(10,"div",4),n._uU(11),n.qZA(),n._uU(12,"\n  "),n.YNc(13,J,4,1,"ng-container",5),n._uU(14,"\n  "),n.TgZ(15,"div",6),n._uU(16,"\n    "),n.TgZ(17,"ul",7),n._uU(18,"\n      "),n.TgZ(19,"li",8),n._uU(20,"\n        "),n.TgZ(21,"span",9),n._uU(22,"Email"),n.qZA(),n._uU(23,"\n        "),n.TgZ(24,"span",10),n._uU(25),n.qZA(),n._uU(26,"\n      "),n.qZA(),n._uU(27,"\n\n      "),n.TgZ(28,"li",8),n._uU(29,"\n        "),n.TgZ(30,"span",9),n._uU(31,"Tel\xe9fono"),n.qZA(),n._uU(32,"\n        "),n.TgZ(33,"span",10),n._uU(34),n.qZA(),n._uU(35,"\n      "),n.qZA(),n._uU(36,"\n\n      "),n.TgZ(37,"li",8),n._uU(38,"\n        "),n.TgZ(39,"span",9),n._uU(40,"Municipio"),n.qZA(),n._uU(41,"\n        "),n.TgZ(42,"span",10),n._uU(43),n.qZA(),n._uU(44,"\n      "),n.qZA(),n._uU(45,"\n    "),n.qZA(),n._uU(46,"\n  "),n.qZA(),n._uU(47,"\n\n  "),n.TgZ(48,"div",11),n._uU(49,"\n    "),n.TgZ(50,"span",12),n._uU(51,"\n      Consentimiento de imagen:\n    "),n.qZA(),n._uU(52,"\n\n    "),n.TgZ(53,"span",13),n._uU(54),n.qZA(),n._uU(55,"\n  "),n.qZA(),n._uU(56,"\n  "),n.YNc(57,N,2,4,"div",14),n._uU(58,"\n  "),n.YNc(59,B,4,4,"div",15),n._uU(60,"\n\n  "),n.TgZ(61,"div",16),n._uU(62),n.ALo(63,"date"),n.qZA(),n._uU(64,"\n\n  "),n.TgZ(65,"div",17),n._uU(66,"\n    "),n.TgZ(67,"mat-icon",18),n._uU(68,"\n      favorite_border\n    "),n.qZA(),n._uU(69,"\n    "),n.TgZ(70,"span",19),n._uU(71),n.qZA(),n._uU(72,"\n  "),n.qZA(),n._uU(73,"\n\n  "),n.TgZ(74,"div"),n._uU(75,"\n    "),n.YNc(76,K,20,2,"div",20),n._uU(77,"\n  "),n.qZA(),n._uU(78,"\n"),n.qZA(),n._uU(79,"\n")),2&e){const u=n.MAs(7);n.xp6(2),n.Q6J("ngClass",n.VKq(21,G,o.isUser)),n.xp6(2),n.Q6J("ngIf",o.instant.urlImg&&o.isVideo(o.instant.urlImg))("ngIfElse",u),n.xp6(6),n.Q6J("ngClass",n.VKq(23,Y,o.isUser)),n.xp6(1),n.hij("\
1n    ",o.instant.description,"\n  "),n.xp6(2),n.Q6J("ngIf",!o.isUser),n.xp6(12),n.Oqu(o.instant.email||"-"),n.xp6(9),n.Oqu(o.instant.mobilePhone||"-"),n.xp6(9),n.Oqu(o.instant.location.description),n.xp6(10),n.Q6J("ngClass",n.WLB(25,$,"PERMITE"===o.instant.lopdConsentImage,"PERMITE"!==o.instant.lopdConsentImage)),n.xp6(1),n.hij("\n      ",o.instant.lopdConsentImage||"NO INFORMADO","\n    "),n.xp6(3),n.Q6J("ngIf",o.mode===o.modes.VOLKSWAGEN||o.mode===o.modes.USERS),n.xp6(2),n.Q6J("ngIf",o.mode===o.modes.VOLKSWAGEN||o.mode===o.modes.USERS),n.xp6(2),n.Q6J("ngClass",n.VKq(28,j,o.isUser)),n.xp6(1),n.hij("\n    ",n.xi3(63,18,o.instant.updateDatetime,"mediumDate"),"\n  "),n.xp6(3),n.Q6J("ngClass",n.VKq(30,z,o.isUser)),n.xp6(6),n.hij("\n      ",o.instant.likes||0,"\n    "),n.xp6(5),n.Q6J("ngIf","PENDING"===o.mode)}},dependencies:[l.mk,l.sg,l.O5,l.PC,S.eB,V.Hw,l.uU],styles:[".communication-section[_ngcontent-%COMP%]{display:flex;align-items:flex-end;margin-bottom:20px;margin-right:2rem;position:relative}.communication-section__pendings[_ngcontent-%COMP%]{flex:1;border-bottom:1px solid rgba(0,0,0,.2);display:flex;flex-direction:column;align-items:center;margin:0 12px}.communication-section__pendings__icon[_ngcontent-%COMP%]{width:48px;height:48px;margin-bottom:12px}.communication-section__photo[_ngcontent-%COMP%]{flex:2;height:160px;border-bottom:1px solid rgba(0,0,0,.2);margin:0 12px;padding-bottom:12px}.communication-section__photo__url[_ngcontent-%COMP%]{width:98%;height:100%;object-fit:cover}.communication-section__description[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.2);flex:3;margin:0 12px;padding-bottom:12px}.communication-section__author[_ngcontent-%COMP%], .communication-section__categories[_ngcontent-%COMP%], .communication-section__date[_ngcontent-%COMP%], .communication-section__location[_ngcontent-%COMP%]{flex:1;border-bottom:1px solid rgba(0,0,0,.2);margin:0 12px;padding-bottom:12px}.communication-section__button__historic[_ngcontent-%COMP%]{margin:0 12px;flex:2;min-width:277px;border-bottom:1px solid rgba(0,0,0,.2);font-weight:700;justify-content:center}.communication-section__button__historic[_ngcontent-%COMP%]   .accept-icon[_ngcontent-%COMP%]{width:24px;height:24px;position:absolute;bottom:0;right:-12px}.communication-section__button__historic[_ngcontent-%COMP%]   .cancel-icon[_ngcontent-%COMP%]{width:36px;height:36px;position:absolute;bottom:-14px;right:-22px}.communication-section__button__pending[_ngcontent-%COMP%]{margin:0 12px;flex:2;min-width:277px;border-bottom:1px solid rgba(0,0,0,.2)}.communication-section__button__pending[_ngcontent-%COMP%]   .accept-icon[_ngcontent-%COMP%]{width:24px;height:24px;position:absolute;bottom:2px;left:15px}.communication-section__button__pending[_ngcontent-%COMP%]   .cancel-icon[_ngcontent-%COMP%]{width:36px;height:36px;position:absolute;bottom:-9px;left:13px}.communication-section__button__volkswagen[_ngcontent-%COMP%]{flex:2;min-width:277px;border-bottom:1px solid rgba(0,0,0,.2);margin:0 12px}.communication-section__button__volkswagen[_ngcontent-%COMP%]   .edit-icon[_ngcontent-%COMP%], .communication-section__button__volkswagen[_ngcontent-%COMP%]   .erase-icon[_ngcontent-%COMP%]{width:24px;height:24px;color:#001e50}.button_text[_ngcontent-%COMP%]{margin-left:24px;position:relative;width:100%;cursor:pointer}.approved-button[_ngcontent-%COMP%]{margin-bottom:7px}.status[_ngcontent-%COMP%]{min-width:10%}.image[_ngcontent-%COMP%]{min-width:14%}.title[_ngcontent-%COMP%]{max-width:17%}.location[_ngcontent-%COMP%]{min-width:14%}.category[_ngcontent-%COMP%]{min-width:12%;width:14%}.date[_ngcontent-%COMP%]{min-width:10%}.none[_ngcontent-%COMP%]{min-width:12%}.communication-section__photo[_ngcontent-%COMP%]{position:relative}.communication-section__button__pending[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px}.communication-section__button__pending__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.winner-icon[_ngcontent-%COMP%]{width:42px;height:42px;flex:0 0 42px;background-image:url(award.32c81092ec17c2d8.png);background-size:70%;background-position:center;background-repeat:no-repeat;border-radius:50%;background-color:#ffffffd9;box-shadow:0 2px 6px #00000040;z-index:10}.communication-section__likes[_ngcontent-%COMP%]{flex:1;border-bottom:1px solid rgba(0,0,0,.2);margin:0 12px;padding-bottom:12px;display:flex;align-items:center;justify-content:center;gap:6px}.communication-section__likes__icon[_ngcontent-%COMP%]{width:25px!important;height:25px!important}.communication-section__likes__count[_ngcontent-%COMP%]{font-weight:700;line-height:1}.communication-section__author[_ngcontent-%COMP%]{flex:2}.likes[_ngcontent-%COMP%]{min-width:8%}.communication-section__contact[_ngcontent-%COMP%], .communication-section__consent[_ng
1content-%COMP%]{flex:2;border-bottom:1px solid rgba(0,0,0,.2);margin:0 12px;padding-bottom:12px}.communication-section__contact[_ngcontent-%COMP%]{display:flex;align-items:center}.communication-section__contact__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;width:100%;display:flex;flex-direction:column;gap:6px}.communication-section__contact__item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;padding:6px 10px;border-radius:8px;background:rgba(0,0,0,.04)}.communication-section__contact__label[_ngcontent-%COMP%]{font-weight:600;font-size:12px;opacity:.75;white-space:nowrap}.communication-section__contact__value[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}.communication-section__consent[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;gap:12px}.communication-section__consent__label[_ngcontent-%COMP%]{font-weight:600;font-size:12px;opacity:.75}.communication-section__consent__value[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px;line-height:1}.communication-section__consent__value--yes[_ngcontent-%COMP%]{background:#d4edda}.communication-section__consent__value--no[_ngcontent-%COMP%]{background:rgba(220,0,0,.12)}.contact[_ngcontent-%COMP%]{min-width:16%}.consent[_ngcontent-%COMP%]{min-width:10%}.communication-section__photo__url-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}.download-btn[_ngcontent-%COMP%]{position:absolute;right:8px;bottom:8px;z-index:2;text-decoration:none;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:14px;line-height:14px}"]}),i})();function X(i,a){if(1&i){const s=n.EpF();n.TgZ(0,"vged-monthly-van-instant-item",4),n.NdJ("instantActionEvent",function(e){n.CHM(s);const o=n.oxw(2);return n.KtG(o.instantAction(e))})("openInstantDetailEvent",function(e){n.CHM(s);const o=n.oxw(2);return n.KtG(o.openInstantDetail(e))})("sendAlertsEvent",function(e){n.CHM(s);const o=n.oxw(2);return n.KtG(o.sendWinnerAlerts(e))}),n.qZA()}if(2&i){const s=a.$implicit,t=n.oxw(2);n.Q6J("instant",s)("mode",t.mode.PENDING)("winnerId",t.winnerInstantId)("hasWinner",t.hasWinnerThisMonth)}}function nn(i,a){1&i&&(n.TgZ(0,"h4"),n._uU(1,"\n    No hay Instantes pendientes de revisi\xf3n\n  "),n.qZA())}function tn(i,a){if(1&i){const s=n.EpF();n.ynx(0),n._uU(1,"\n  "),n.TgZ(2,"vged-monthly-van-filter",1),n.NdJ("order",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.sortPendingsBy(e))})("search",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.searchResult(e,o.mode.PENDING))})("monthFilter",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.onMonthFilterChange(e))})("likesFilter",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.onLikesFilterChangePending(e))}),n.qZA(),n._uU(3,"\n\n  "),n.TgZ(4,"div",2),n.NdJ("scrolled",function(){n.CHM(s);const e=n.oxw();return n.KtG(e.onScrollPending())}),n._uU(5,"\n    "),n.YNc(6,X,1,4,"vged-monthly-van-instant-item",3),n.ALo(7,"async"),n._uU(8,"\n  "),n.qZA(),n._uU(9,"\n\n  "),n.YNc(10,nn,2,0,"h4",0),n.ALo(11,"async"),n._uU(12,"\n"),n.BQk()}if(2&i){const s=n.oxw();let t;n.xp6(2),n.Q6J("selected",s.pendingInput)("orderBy","Ordenar por")("title","Vigentes")("isVanSection",!0)("searchValue",s.approvedSearch)("selectedMonth",s.selectedMonthFilter)("orderByLikes",s.orderByLikes),n.xp6(2),n.Q6J("scrollWindow",!0)("infiniteScrollDisabled",!s.active)("infiniteScrollThrottle",150)("immediateCheck",!1),n.xp6(2),n.Q6J("ngForOf",n.lcZ(7,13,s.monthlyVanService.approvedInstants$)),n.xp6(4),n.Q6J("ngIf",!(null!=(t=n.lcZ(11,15,s.monthlyVanService.approvedInstants$))&&t.length))}}function en(i,a){if(1&i){const s=n.EpF();n.TgZ(0,"vged-monthly-van-instant-item",7),n.NdJ("instantActionEvent",function(e){n.CHM(s);const o=n.oxw(2);return n.KtG(o.instantAction(e))})("openInstantDetailEvent",function(e){n.CHM(s);const o=n.oxw(2);return n.KtG(o.openInstantDetail(e))}),n.qZA()}if(2&i){const s=a.$implicit,t=n.oxw(2);n.Q6J("instant",s)("mode",t.mode.HISTORIC)}}function on(i,a){1&i&&(n.TgZ(0,"h4"),n._uU(1,"\n    No hay Instantes pendientes de revisi\xf3n\n  "),n.qZA())}function sn(i,a){if(1&i){const s=n.EpF();n.ynx(0),n._uU(1,"\n  "),n.TgZ(2,"vged-monthly-van-filter",5),n.NdJ("order",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.sortHistoricsBy(e))})("search",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.searchResult(e,o.mode.HISTORIC))}
1)("likesFilter",function(e){n.CHM(s);const o=n.oxw();return n.KtG(o.onLikesFilterChangeHistoric(e))}),n.qZA(),n._uU(3,"\n\n  "),n.TgZ(4,"div",2),n.NdJ("scrolled",function(){n.CHM(s);const e=n.oxw();return n.KtG(e.onScrollHistoric())}),n._uU(5,"\n    "),n.YNc(6,en,1,2,"vged-monthly-van-instant-item",6),n.ALo(7,"async"),n._uU(8,"\n  "),n.qZA(),n._uU(9,"\n\n  "),n.YNc(10,on,2,0,"h4",0),n.ALo(11,"async"),n._uU(12,"\n"),n.BQk()}if(2&i){const s=n.oxw();let t;n.xp6(2),n.Q6J("isHistoric",!0)("selected",s.historicInput)("orderBy","Ordenar por")("title","Hist\xf3rico")("searchValue",s.historicSearch)("orderByLikes",s.orderByLikes),n.xp6(2),n.Q6J("scrollWindow",!0)("infiniteScrollDisabled",s.active)("infiniteScrollThrottle",150)("immediateCheck",!1),n.xp6(2),n.Q6J("ngForOf",n.lcZ(7,12,s.monthlyVanService.historicInstants$)),n.xp6(4),n.Q6J("ngIf",!(null!=(t=n.lcZ(11,14,s.monthlyVanService.historicInstants$))&&t.length))}}let an=(()=>{const a=class{constructor(t,e){this.monthlyVanService=t,this.dialog=e,this.active=!1,this.pendingInput="option2",this.historicInput="option2",this.mode=c.EH,this.orderApprovedFilter=c.fO.NEWEST,this.orderHistoricFilter=c.fO.NEWEST,this.approvedSearch="",this.historicSearch="",this.approvedFilter={page:0,size:20},this.historicFilter={page:0,size:20},this.hasMoreapproved=!0,this.hasMoreHistoric=!0,this.hasWinnerThisMonth=!1,this.winnerInstantId=null,this.selectedMonthFilter="current",this.destroy$=new v.xQ,this.winnerLoaded=!1,this.orderByLikes=!1}changeView(){this.isMobile=window.innerWidth<768}ngOnInit(){this.monthlyVanService.getWinner$().pipe((0,x.R)(this.destroy$)).subscribe(t=>{const e=t?.instantId??t?.instant?.id??t?.idInstant??null;this.winnerInstantId=null!=e?Number(e):null,this.hasWinnerThisMonth=null!=this.winnerInstantId})}ngOnChanges(){if(this.active){if(this.approvedSearch="",this.approvedFilter.page=0,this.hasMoreapproved=!0,this.loadApproved(!0),!this.winnerLoaded){const{month:t,year:e}=this.getMonthYearFromFilter(this.selectedMonthFilter);this.monthlyVanService.loadWinner(t,e),this.winnerLoaded=!0}}else this.historicFilter.page=0,this.hasMoreHistoric=!0,this.historicSearch="",this.loadHistoric(!0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onScrollHistoric(){if(this.active||!this.hasMoreHistoric)return;if(this.monthlyVanService.historicInstantsPagination$.value?.last)return void(this.hasMoreHistoric=!1);this.historicFilter.page++;const t=this.monthlyVanService.historicInstants$.value.length,e=this.loadHistoric(!1);e?e.add(()=>{(this.monthlyVanService.historicInstantsPagination$.value?.last||this.monthlyVanService.historicInstants$.value.length===t)&&(this.hasMoreHistoric=!1)}):this.historicFilter.page--}onScrollPending(){this.active&&this.hasMoreapproved&&(this.monthlyVanService.approvedInstantsPagination$.value?.last?this.hasMoreapproved=!1:(this.approvedFilter.page++,this.loadApproved(!1,this.monthlyVanService.approvedInstants$.value.length)||this.approvedFilter.page--))}instantAction(t){t.action===c.aO.MONTHTLY_VAN&&this.dialog.open(h.r,{width:"380px",data:{title:"Confirmar acci\xf3n",description:"\xbfDeseas asignar esta furgo como Furgo del Mes?",matIcon:"emoji_events",cancelButton:{text:"Cancelar"},button:{text:"Aceptar"}}}).afterClosed().subscribe(o=>{!0===o&&this.assignWinner(t.data)})}openInstantDetail(t){this.dialog.open(M.c,{width:"900px",data:{instant:t,showActions:!1}})}sortPendingsBy(t){this.orderByLikes||(this.orderApprovedFilter=t,this.pendingInput=t===c.fO.OLDEST?"option1":"option2",this.approvedFilter.page=0,this.hasMoreapproved=!0,this.loadApproved(!0))}sortHistoricsBy(t){this.orderByLikes||(this.orderHistoricFilter=t,this.historicInput=t===c.fO.OLDEST?"option1":"option2",this.historicFilter.page=0,this.hasMoreHistoric=!0,this.loadHistoric(!0))}searchResult(t,e){e===this.mode.HISTORIC?(this.historicSearch=t,this.historicFilter.page=0,this.hasMoreHistoric=!0,this.loadHistoric(!0)):(this.approvedSearch=t,this.approvedFilter.page=0,this.hasMoreapproved=!0,this.loadApproved(!0))}assignWinner(t){this.monthlyVanService.assignWinner(t.id).subscribe({next:()=>{this.dialog.open(h.r,{width:"350px",data:{title:"Furgo del Mes asignada correctamente",matIcon:"done"}});const e=new Date;e.setMonth(e.getMonth()-1);const o=e.getMonth()+1,u=e.getFullYear();this.monthlyVanService.refreshWinner(o,u),setTimeout(()=>{this.monthlyVanService.refreshWinner(o,u)},400),this.approvedFilter.page=0,this.historicFilter.page=0,this.hasMoreapproved=!0,this.hasMoreHistoric=!0,this.loadApproved(!0),this.loadHistoric(!0)},error:()=>{this.dialog.open(h.r,{width:"350px",data:{title:"Error asignando ganador",matIcon:"error"}})}})}sendWinnerAlerts(t){this.dialog.open(h.r,{width:"380px",data:{title:"Confirmar acci\xf3n",description:"\xbfDeseas reenviar las alertas de Furgo del Mes?",matIcon:"notifications",cancelButton:{text:"Cancelar"},button:{text:"Aceptar"}}}).afterClosed().subscribe(o=>{!0===o&&this.monthlyVanService.sendWinnerAlerts(t.id).subscribe({next:()=>{this.dialog.open(h.r,{width:"350px",data:{title:"Alertas reenviadas correctamente",matIcon:"done"}})},error:()=>{this.dialog.open(h.r,{width:"350px",data:{title:"Error reenviando alertas",matIcon:"error"}})}})})}onMonthFilterChange(t){t!==this.selectedMonthFilter&&(this.selectedMonthFilter=t,this.approvedFilter.page=0,this.hasMoreapproved=!0,this.loadApproved(!0))}onLikesFilterChangePending(t){this.orderByLikes=t,t&&(this.orderApprovedFilter=c.fO.NEWEST,this.pendingInput="option2"),this.approvedFilter.page=0,this.hasMoreapproved=!0,this.loadApproved(!0)}onLikesFilterChangeHistoric(t){this.orderByLikes=t,t&&(this.orderHistoricFilter=c.fO.NEWEST,this.historicInput="option2"),this.historicFilter.page=0,this.hasMoreHistoric=!0,this.loadHistoric(!0)}loadApproved(t,e){return this.monthlyVanService.getApprovedInstants(this.approvedFilter,this.orderApprovedFilter,t,this.approvedSearch,this.selectedMonthFilter,this.orderByLikes)?.add(()=>{(this.monthlyVanService.approvedInstantsPagination$.value?.last||null!=e&&this.monthlyVanService.approvedInstants$.value.length===e)&&(this.hasMoreapproved=!1)})}loadHistoric(t){return this.monthlyVanService.getHistoricInstants(this.historicFilter,this.orderHistoricFilter,t,this.historicSearch,this.orderByLikes)}getMonthYearFromFilter(t){const e=new Date,o="current"===t?1:2;return e.setMonth(e.getMonth()-o),{month:e.getMonth()+1,year:e.getFullYear()}}};let i=a;return a.\u0275fac=function(e){return new(e||a)(n.Y36(y.j),n.Y36(U.on))}
1,a.\u0275cmp=n.Xpm({type:a,selectors:[["vged-monthly-van-section"]],hostBindings:function(e,o){1&e&&n.NdJ("resize",function(){return o.changeView()},!1,n.Jf7)},inputs:{active:"active"},features:[n.TTD],decls:4,vars:2,consts:[[4,"ngIf"],[3,"selected","orderBy","title","isVanSection","searchValue","selectedMonth","orderByLikes","order","search","monthFilter","likesFilter"],["infiniteScroll","",3,"scrollWindow","infiniteScrollDisabled","infiniteScrollThrottle","immediateCheck","scrolled"],[3,"instant","mode","winnerId","hasWinner","instantActionEvent","openInstantDetailEvent","sendAlertsEvent",4,"ngFor","ngForOf"],[3,"instant","mode","winnerId","hasWinner","instantActionEvent","openInstantDetailEvent","sendAlertsEvent"],[3,"isHistoric","selected","orderBy","title","searchValue","orderByLikes","order","search","likesFilter"],["class","mt-3",3,"instant","mode","instantActionEvent","openInstantDetailEvent",4,"ngFor","ngForOf"],[1,"mt-3",3,"instant","mode","instantActionEvent","openInstantDetailEvent"]],template:function(e,o){1&e&&(n.YNc(0,tn,13,17,"ng-container",0),n._uU(1,"\n\n"),n.YNc(2,sn,13,16,"ng-container",0),n._uU(3,"\n")),2&e&&(n.Q6J("ngIf",o.active),n.xp6(2),n.Q6J("ngIf",!o.active))},dependencies:[l.sg,l.O5,d.R,w,R,l.Ov],encapsulation:2}),i})();const rn=function(){return{y:"50px",duration:"400ms"}},cn=function(i){return{value:"*",params:i}},ln=[{path:"",component:(()=>{const a=class{constructor(){}ngOnInit(){}};let i=a;return a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["vged-monthly-van"]],decls:34,vars:6,consts:[[1,"page_container"],[1,"page_padding"],[1,"d-flex","justify-content-between"],[3,"secondTitle"],[1,"d-flex","align-items-center"],[1,"confidential_information"],[1,"w-50","description"],["tabGroup",""],["label","Ganadores Furgo del mes"],["label","Gesti\xf3n Furgo del mes"],[3,"active"]],template:function(e,o){if(1&e&&(n.TgZ(0,"div",0),n._uU(1,"\n  "),n.TgZ(2,"div",1),n._uU(3,"\n    "),n.TgZ(4,"div",2),n._uU(5,"\n      "),n._UZ(6,"vged-title",3),n._uU(7,"\n      "),n.TgZ(8,"div",4),n._uU(9,"\n        "),n.TgZ(10,"span",5),n._uU(11,"Informaci\xf3n confidencial"),n.qZA(),n._uU(12,"\n      "),n.qZA(),n._uU(13,"\n    "),n.qZA(),n._uU(14,"\n    "),n.TgZ(15,"p",6),n._uU(16,"\n      Desde aqu\xed podr\xe1s gestionar las publicaciones Furgo\n    "),n.qZA(),n._uU(17,"\n    "),n.TgZ(18,"mat-tab-group",null,7),n._uU(20,"\n      "),n.TgZ(21,"mat-tab",8),n._uU(22,"\n        "),n._UZ(23,"vged-monthly-van-section"),n._uU(24,"\n      "),n.qZA(),n._uU(25,"\n      "),n.TgZ(26,"mat-tab",9),n._uU(27,"\n        "),n._UZ(28,"vged-monthly-van-section",10),n._uU(29,"\n      "),n.qZA(),n._uU(30,"\n    "),n.qZA(),n._uU(31,"\n  "),n.qZA(),n._uU(32,"\n"),n.qZA(),n._uU(33,"\n")),2&e){const u=n.MAs(19);n.Q6J("@animate",n.VKq(4,cn,n.DdM(3,rn))),n.xp6(6),n.Q6J("secondTitle","Furgo del Mes"),n.xp6(22),n.Q6J("active",1===u.selectedIndex)}},dependencies:[f.SK,f.R7,C.r,an]}),i})()}];let _n=(()=>{const a=class{};let i=a;return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[g.Bz.forChild(ln),g.Bz]}),i})();var un=r(2271),hn=r(8616),mn=r(7632);let pn=(()=>{const a=class{};let i=a;return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({providers:[y.j],imports:[l.ez,_n,_.UX,_.u5,d.X,hn.q,un.m,mn.CommunicationsManagerModule]}),i})()}}]);

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.