1"use strict";(self.webpackChunkfamily_legends=self.webpackChunkfamily_legends||[]).push([[2504],{58345:(ct,A,a)=>{a.d(A,{c:()=>_});var g=a(88651),D=a(89653),m=a(65256),F=a(4707),h=a(49236),C=a(60186),f=a(18505),e=a(82722),I=a(70262),B=a(66167),t=a(94650),w=a(19426),y=a(42410),O=a(27339),T=a(65938),Z=a(33823),E=a(36895),S=a(10266),k=a(76999),Q=a(5088),U=a(59137),G=a(20724),J=a(55856),L=a(74824),N=a(57225),Y=a(90750),W=a(49495),R=a(10823);const b=function(i){return{"background-image":i}};function V(i,r){if(1&i&&t._UZ(0,"div",11),2&i){const n=t.oxw();t.Q6J("ngStyle",t.VKq(1,b,"url("+n.getCurrentImageUrl(null==n.itemDetail?null:n.itemDetail.attachments[0])+")"))}}function K(i,r){if(1&i&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij(" +",(null==n.itemDetail||null==n.itemDetail.attachments?null:n.itemDetail.attachments.length)-1," ")}}function H(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",13)(1,"app-button-basic",14),t.NdJ("clickTrigger",function(c){t.CHM(n);const p=t.oxw();return t.KtG(p.showGeneralAccessDialog(c))}),t.qZA()()}2&i&&(t.xp6(1),t.Q6J("text","\u041e\u0431\u0449\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f")("icon","visibility_gray.svg")("mode","before"))}function z(i,r){if(1&i&&t._UZ(0,"div",19),2&i){const n=t.oxw(2);t.Q6J("ngStyle",t.VKq(1,b,"url("+n.getCurrentImageUrl(n.itemDetail.person_creater.attachment)+")"))}}function $(i,r){1&i&&t._UZ(0,"div",20)}function j(i,r){if(1&i&&(t.TgZ(0,"div",15),t.YNc(1,z,1,3,"div",16),t.YNc(2,$,1,0,"div",17),t.TgZ(3,"p",18),t._uU(4),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"date"),t.qZA()()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",null==n.itemDetail||null==n.itemDetail.person_creater?null:n.itemDetail.person_creater.attachment),t.xp6(1),t.Q6J("ngIf",!(null!=n.itemDetail&&null!=n.itemDetail.person_creater&&n.itemDetail.person_creater.attachment)),t.xp6(2),t.hij(" \u0410\u0432\u0442\u043e\u0440: ",n.getCurrentName(n.itemDetail.person_creater,null==n.itemDetail?null:n.itemDetail.created_by)," "),t.xp6(2),t.Oqu("\xa0\u2022\xa0"+t.xi3(7,4,n.itemDetail.created_at,"dd.MM.yyyy"))}}function X(i,r){if(1&i&&(t.TgZ(0,"div",21),t._UZ(1,"div",22),t.TgZ(2,"p",23),t._uU(3),t.qZA()()),2&i){const n=t.oxw();t.xp6(3),t.Oqu(n.getCurrentDatePeriodText(n.itemDetail))}}function q(i,r){if(1&i&&(t.TgZ(0,"div",24),t._UZ(1,"app-toggle-text-container",25),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("text",n.itemDetail.text)("richText",null==n.itemDetail?null:n.itemDetail.rich_text)}}let tt=(()=>{class i{constructor(n,u){this.dialog=n,this.appService=u,this.triggerShowGallery=new t.vpe,this.triggerUpdateAction=new t.vpe,this.isPublicView=u.checkPublicView(),this.isGuestVisit=u.isGuestVisit()}ngOnInit(){}getCurrentDatePeriodText(n){return(0,N.kn)(n.date_event,n.date_event_end)}showGallery(n){this.triggerShowGallery.emit(n)}getCurrentImageUrl(n){return n.content_type.includes("video")?n.meta.thumbnail_url:n.url}preventDefaultEl(n){n.preventDefault(),n.stopPropagation()}showGeneralAccessDialog(n){this.preventDefaultEl(n),this.dialog.open(Y.T,{panelClass:["dialog-box"],backdropClass:"backdrop-dialog-default",data:{item:this.itemDetail,type:"event"},autoFocus:!1}).afterClosed().subscribe(p=>{p&&"rejected"===p.type&&this.triggerUpdateAction.emit()})}getCurrentName(n,u){return(n.first_name?n.first_name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c")+(n.patronymic?" "+n.patronymic:"")+(n.surname?" "+n.surname:"")+(n.maiden_name?" ("+n.maiden_name+")":"")+(this.isProfilePerson(u)?" (\u0412\u044b)":"")}isProfilePerson(n){return this.appService.isProfilePerson(n)}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(T.uw),t.Y36(y.z))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-item-headline-event"]],inputs:{itemDetail:"itemDetail",parentType:"parentType"},outputs:{triggerShowGallery:"triggerShowGallery",triggerUpdateAction:"triggerUpdateAction"},decls:12,vars:12,consts:[[1,"event-info"],[1,"event-info__cover",3,"click"],["class","event-info__cover-blur",3,"ngStyle",4,"ngIf"],[1,"event-info__cover-photo",3,"ngStyle"],["class","event-info__cover-count",4,"ngIf"],[1,"event-info__content"],[1,"event-info__content-name"],["class","event-info__btn",4,"ngIf"],["class","event-info__author",4,"ngIf"],["class","event-info__time",4,"ngIf"],["class","event-info__description",4,"ngIf"],[1,"event-info__cover-blur",3,"ngStyle"],[1,"event-info__cover-count"],[1,"event-info__btn"],[3,"text","icon","mode","clickTrigger"],[1,"event-info__author"],["class","event-info__author-image",3,"ngStyle",4,"ngIf"],["class","event-info__author-image event-info__author-image--default","style","background-image: url(/assets/img/about_new/ico_face_white_gradient.svg)",4,"ngIf"],[1,"event-info__author-text"],[1,"event-info__author-image",3,"ngStyle"],[1,"event-info__author-image","event-info__author-image--default",2,"background-image","url(/assets/img/about_new/ico_face_white_gradient.svg)"],[1,"event-info__time"],[1,"event-info__time-image",2,"background-image","url(/assets/img/about_new/new_event.svg)"],[1,"event-info__time-date"],[1,"event-info__description"],[3,"text","richText"]],template:function(n,u){1&n&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return u.showGallery({id:0,attachments:null==u.itemDetail?null:u.itemDetail.attachments})}),t.YNc(2,V,1,3,"div",2),t._UZ(3,"div",3),t.YNc(4,K,2,1,"span",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7),t.qZA(),t.YNc(8,H,2,3,"div",7),t.YNc(9,j,8,7,"div",8),t.YNc(10,X,4,1,"div",9),t.qZA(),t.YNc(11,q,2,2,"div",10),t.qZA()),2&n&&(t.xp6(2),t.Q6J("ngIf",null==u.itemDetail||null==u.itemDetail.attachments?null:u.itemDetail.attachments.length),t.xp6(1),t.ekj("event-info__cover-photo--default",!(null!=u.itemDetail&&null!=u.itemDetail.attachments&&u.itemDetail.attachments.length)),t.Q6J("ngStyle",t.VKq(10,b,"url("+(null!=u.itemDetail&&null!=u.itemDetail.attachments&&u.itemDetail.attachments.length?u.getCurrentImageUrl(null==u.itemDetail?null:u.itemDetail.attachments[0]):"/assets/img/about_new/camera_gray.svg")+")")),t.xp6(1),t.Q6J("ngIf",(null==u.itemDetail||null==u.itemDetail.attachments?null:u.itemDetail.attachments.length)>1),t.xp6(3),t.Oqu(u.itemDetail.name||"\u0421\u043e\u0431\u044b\u0442\u0438\u0435"),t.xp6(1),t.Q6J("ngIf",(null==u.itemDetail?null:u.itemDetail.is_shared)&&!u.isPublicView&&!u.isGuestVisit),t.xp6(1),t.Q6J("ngIf",null==u.itemDetail?null:u.itemDetail.person_creater),t.xp6(1),t.Q6J("ngIf",null==u.itemDetail?null:u.itemDetail.date_event),t.xp6(1),t.Q6J("ngIf",null==u.itemDetail?null:u.itemDetail.text))},dependencies:[E.O5,E.PC,W._,R.U,E.uU],styles:[".event-info[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:30px}.event-info__cover[_ngcontent-%COMP%]{cursor:pointer;position:relative;width:150px;height:100px;border-radius:5px;background-color:#fff;margin-right:20px;overflow:hidden}.event-info__cover-photo[_ngcontent-%COMP%]{z-index:2;position:relative;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid transparent;border-radius:5px}.event-info__cover-photo--default[_ngcontent-%COMP%]{cursor:default;border-color:#d4d4d4;
1background-size:26px}.event-info__cover-blur[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;filter:blur(44px);backdrop-filter:blur(0);z-index:1}.event-info__cover-count[_ngcontent-%COMP%]{z-index:3;position:absolute;width:100%;height:50%;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:20px;text-align:center;letter-spacing:.25px;background-color:#0009;color:#ffffffde}.event-info__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 170px)}.event-info__content-name[_ngcontent-%COMP%]{word-break:break-word;margin-bottom:10px;color:#000;font-weight:400;font-size:18px;line-height:23px;font-family:PT-Root-UI-Medium,Helvetica,Arial,sans-serif;font-style:normal}@media only screen and (max-width: 1300px){.event-info__content-name[_ngcontent-%COMP%]{font-size:18px;line-height:23px}}@media only screen and (max-width: 1000px){.event-info__content-name[_ngcontent-%COMP%]{font-size:16px;line-height:20px}}.event-info__time[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px}.event-info__time-image[_ngcontent-%COMP%]{width:16px;height:16px;background-position:center;background-size:contain;background-repeat:no-repeat;margin-right:5px}.event-info__time-date[_ngcontent-%COMP%]{color:#1d2b4f;font-weight:400;font-size:14px;line-height:18px;font-family:PT-Root-UI-Regular,Helvetica,Arial,sans-serif;font-style:normal}@media only screen and (max-width: 1300px){.event-info__time-date[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.event-info__time-date[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.event-info__btn[_ngcontent-%COMP%], .event-info__author[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px}.event-info__author-image[_ngcontent-%COMP%]{width:24px;height:24px;background-repeat:no-repeat;background-size:cover;background-position:center;border-radius:50%;background-color:#d4d4d4;margin-right:10px}.event-info__author-image--default[_ngcontent-%COMP%]{background-size:70%;background-position:bottom}.event-info__author-text[_ngcontent-%COMP%]{word-break:break-word;width:calc(100% - 34px);color:#1d2b4f;font-weight:400;font-size:14px;line-height:18px;font-family:PT-Root-UI-Regular,Helvetica,Arial,sans-serif;font-style:normal}@media only screen and (max-width: 1300px){.event-info__author-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.event-info__author-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.event-info__description[_ngcontent-%COMP%]{margin-top:30px}@media only screen and (max-width: 1000px){.event-info__cover[_ngcontent-%COMP%]{width:64px;height:64px}.event-info__content[_ngcontent-%COMP%]{width:calc(100% - 84px)}.event-info__author[_ngcontent-%COMP%]{align-items:flex-start}.event-info__description[_ngcontent-%COMP%]{margin-top:10px}}"]}),i})();function et(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"app-button-back",13),t.NdJ("click",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.navigateTo(c.fromMediaMap?"media-map":"event"))}),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("text",n.fromMediaMap?"\u041c\u0435\u0434\u0438\u0430-\u043a\u0430\u0440\u0442\u0430":"\u0421\u043e\u0431\u044b\u0442\u0438\u044f")}}function nt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"app-button-back",13),t.NdJ("click",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.navigateTo("feed"))}),t.qZA()}2&i&&t.Q6J("text","\u0410\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c")}const P=function(i){return["/event",i]};function it(i,r){if(1&i&&t._UZ(0,"app-button-back",14),2&i){const n=t.oxw();t.Q6J("text","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c")("routerLink",t.VKq(2,P,n.idItem))}}function ut(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"app-item-headline-event",15),t.NdJ("triggerShowGallery",function(c){t.CHM(n);const p=t.oxw();return t.KtG(p.showGallery(c))})("triggerUpdateAction",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.getItemEventInfo(c.idItem))}),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("itemDetail",n.itemDetail)}}function ot(i,r){1&i&&t._UZ(0,"app-item-not-found",16),2&i&&t.Q6J("buttonLink","event")("buttonText","\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0421\u043e\u0431\u044b\u0442\u0438\u0439")("boxSh
1adowOff",!0)}function lt(i,r){if(1&i&&t._UZ(0,"app-tabs-content",17),2&i){const n=t.oxw();t.Q6J("idItem",n.idItem)("itemDetail",n.itemDetail)("type","event")("pageType","event")("emptyScreenContent",n.emptyScreenContent)("publicGroupId",n.publicGroupId)}}const at=function(){return["/login"]},M=function(){return["/register"]};function st(i,r){1&i&&(t.ynx(0),t.TgZ(1,"div",18),t._UZ(2,"app-button-primary",19),t.qZA(),t.TgZ(3,"div",18),t._UZ(4,"app-button-primary",20),t.TgZ(5,"span",21),t._uU(6,"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e"),t.qZA()(),t.BQk()),2&i&&(t.xp6(2),t.Q6J("text","\u0412\u043e\u0439\u0442\u0438")("sizeMode","medium")("fullWidth",!0)("matTooltip","\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u044d\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u043c\u044c\u0438")("matTooltipClass","reset-material-tooltip")("matTooltipPosition","below")("matTooltipTouchGestures","off")("routerLink",t.DdM(17,at)),t.xp6(2),t.Q6J("text","\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f")("mode","blue")("sizeMode","medium")("fullWidth",!0)("matTooltip","\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f. \u0412\u0441\u0435\u0433\u043e \u043c\u0438\u043d\u0443\u0442\u0430, \u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u0441\u0430\u0439\u0442\u043e\u043c \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438")("matTooltipClass","reset-material-tooltip")("matTooltipPosition","below")("matTooltipTouchGestures","off")("routerLink",t.DdM(18,M)))}function s(i,r){1&i&&(t.TgZ(0,"div",22),t._UZ(1,"app-button-primary",20),t.TgZ(2,"span",21),t._uU(3,"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e"),t.qZA()()),2&i&&(t.xp6(1),t.Q6J("text","\u0412\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0432 \u0441\u0435\u043c\u044c\u044e")("mode","blue")("sizeMode","medium")("fullWidth",!0)("matTooltip","\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u0441\u044c \u043a \u0442\u043e\u0439 \u0441\u0435\u043c\u044c\u0435, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0435. \u042d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e")("matTooltipClass","reset-material-tooltip")("matTooltipPosition","below")("matTooltipTouchGestures","off")("routerLink",t.DdM(9,M)))}function d(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",18)(1,"app-button-with-icon",23),t.NdJ("buttonActionTrigger",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.onGoEdit(c.itemDetail.id))}),t.qZA()()}2&i&&(t.xp6(1),t.Q6J("text","\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c")("icon","edit_white.svg"))}function o(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",18)(1,"app-button-with-icon",24),t.NdJ("buttonActionTrigger",function(c){t.CHM(n);const p=t.oxw();return t.KtG(p.onDeleteEvent(p.itemDetail,c))}),t.qZA()()}2&i&&(t.xp6(1),t.Q6J("text","\u0423\u0434\u0430\u043b\u0438\u0442\u044c")("icon","trash_white.svg")("mode","red"))}function l(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",18)(1,"app-share-buttons",25),t.NdJ("actionUpdate",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.getItemEventInfo(c.idItem))}),t.qZA()()}if(2&i){const n=t.oxw();t.xp6(1),t.Q6J("itemId",n.itemDetail.id)("isShared",null==n.itemDetail?null:n.itemDetail.is_shared)("type","event")("fileIdForShare",n.getFileIdForPreset())}}let _=(()=>{class i{constructor(n,u,c,p,rt,x,_t,pt,dt){this.router=n,this.store=u,this.eventService=c,this.appService=p,this.errorsService=rt,this.route=x,this.dialog=_t,this.contentService=pt,this.location=dt,this.idItem="",this.emptyScreenContent={title:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044e, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0443\u044e \u0441 \u044d\u0442\u0438\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c",description:"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u0438\u0434\u0435\u043e \u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441 \u0441\u0435\u043c\u0435\u0439\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u0410 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0438\u043b\u0438 \u0430\u0443\u0434\u0438\u043e-\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b \u0447\u043b\u0435\u043d\u043e\u0432 \u0441\u0435\u043c\u044c\u0438 \u043e\u0431 \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0438, \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d\u0438 \u0431\u044b\u043b\u0438",buttonText:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"},this.destroyed$=new F.t(1),p.checkPublicView()&&x.params.subscribe(v=>{this.publicGroupId=v.group_id}),x.queryParams.subscribe(v=>{this.fromMediaMap="from-media-map"===v.params,this.fromPublicPost=!(!v||!v.fromPublicPost)}),n.events.pipe((0,f.b)(v=>{v instanceof g.OD&&"/feed"!==v.url&&"/event"!==v.url&&this.store.dispatch({type:m.Zc,payload:null})}),(0,e.R)(this.destroyed$)).subscribe(),this.isPublicView=p.checkPublicView(),this.isGuestVisit=p.isGuestVisit(),p.checkBrowser()&&(this.userIsAuth=!!p.getToken()?.length)}ngOnInit(){this.eventEditStore$=this.store.pipe((0,D.Ys)("eventEdit")),this.eventEditStore$.subscribe(n=>{this.eventService.eventData=n}),this.store.dispatch({type:m.se,payload:!0}),this.subsRouterEventParam$=this.route.params.subscribe(n=>{this.idItem=n.id,this.getItemEventInfo(this.idItem)}),this.subsRouterEvent$=this.router.events.subscribe(n=>{n instanceof g.m2&&(n.url.includes("/edit")?this.store.dispatch({type:h.p9,payload:2}):this.store.dispatch({type:h.p9,payload:1}),this.eventService.eventData.isNeedUpdateDetail&&this.getItemEventInfo(this.idItem))})}ngOnDestroy(){this.subsRouterEventParam$.unsubscribe(),this.subsRouterEvent$.unsubscribe(),this.destroyed$.next(!0),this.destroyed$.complete()}getItemEventInfo(n){this.eventService.getEvent(n).subscribe(u=>{if(!u||!u.id||"00000000-0000-0000-0000-000000000000"===u.id)return this.appService.n
1otFoundReaction(),void setTimeout(()=>{this.router.navigate(["event"])},1e3);this.store.dispatch({type:m.se,payload:!1}),u.person_creater?(this.itemDetail=u,this.store.dispatch({type:h.X5}),this.store.dispatch({type:h.p9,payload:1}),this.store.dispatch({type:h.$0,payload:u})):this.router.navigate(["event"])},u=>{4===u.error.code?(this.store.dispatch({type:m.se,payload:!1}),this.itemNotFound=!0):this.router.navigate(["**"])})}onGoEdit(n){clearTimeout(this.timerIsGoEditEvent),this.timerIsGoEditEvent=setTimeout(()=>{this.router.navigate(["event",n,"edit"])},100)}onDeleteEvent(n,u){u.target.blur(),n.can_edit&&n.can_delete?this.dialog.open(C.T,{panelClass:["dialog-box"],backdropClass:"backdrop-dialog-default",data:{name:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435?"},autoFocus:!1}).afterClosed().subscribe(rt=>{"delete"===rt&&(this.store.dispatch({type:m.se,payload:!0}),this.eventService.deleteEvent(n.id).pipe((0,f.b)(()=>this.appService.pushDone("deleteEventBack")),(0,f.b)(()=>this.store.dispatch({type:m.se,payload:!1})),(0,f.b)(()=>this.location.back()),(0,I.K)(x=>(this.appService.pushError("errorGroupBack"),this.store.dispatch({type:m.se,payload:!1}),x))).subscribe())}):this.appService.pushError("errorGroupBack")}showGallery(n){const u={panelClass:["dialog-box-gallery"],backdropClass:"backdrop-dialog-default",disableClose:!0,data:{slideId:n.id,imageList:Array.from(n.attachments),type:"event",item:{...this.itemDetail,title:this.itemDetail?.name||null}},autoFocus:!1};this.dialog.open(B.S,u).componentInstance.updateStateTrigger.subscribe(p=>this.updateInstance(p))}updateInstance(n){if(n.needToUpdateEntity&&n.updatedImages){this.store.dispatch({type:m.se,payload:!0});const u={id:this.itemDetail.id,name:this.itemDetail.name||null,text:this.itemDetail.text||null,rich_text:this.itemDetail.rich_text||null,attachments:n.updatedImages.map(c=>c.id)||null,date_event:this.itemDetail.date_event||null,date_event_end:this.itemDetail.date_event_end||null};this.eventService.updateEvent(u).pipe((0,f.b)(()=>this.getItemEventInfo(this.idItem)),(0,I.K)(c=>(this.store.dispatch({type:m.se,payload:!1}),this.appService.pushError("back"),c))).subscribe()}}navigateTo(n){this.appService.navigateToCurrentPage(n,this.publicGroupId)}getFileIdForPreset(){return this.contentService.getFileIdForPreset(this.itemDetail)}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(g.F0),t.Y36(D.yh),t.Y36(w.P),t.Y36(y.z),t.Y36(O.r),t.Y36(g.gz),t.Y36(T.uw),t.Y36(Z._),t.Y36(E.Ye))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-item-detail-event"]],decls:23,vars:23,consts:[[1,"event-detail"],[1,"l-container"],[1,"l-left"],[3,"text","click",4,"ngIf"],[3,"text","routerLink",4,"ngIf"],[1,"l-center"],[3,"itemDetail","triggerShowGallery","triggerUpdateAction",4,"ngIf"],[3,"buttonLink","buttonText","boxShadowOff",4,"ngIf"],[3,"idItem","itemDetail","type","pageType","emptyScreenContent","publicGroupId",4,"ngIf"],[1,"l-right"],[4,"ngIf"],["class","l-right__item l-right__item--demo-btn",4,"ngIf"],["class","l-right__item",4,"ngIf"],[3,"text","click"],[3,"text","routerLink"],[3,"itemDetail","triggerShowGallery","triggerUpdateAction"],[3,"buttonLink","buttonText","boxShadowOff"],[3,"idItem","itemDetail","type","pageType","emptyScreenContent","publicGroupId"],[1,"l-right__item"],[3,"text","sizeMode","fullWidth","matTooltip","matTooltipClass","matTooltipPosition","matTooltipTouchGestures","routerLink"],[3,"text","mode","sizeMode","fullWidth","matTooltip","matTooltipClass","matTooltipPosition","matTooltipTouchGestures","routerLink"],[1,"l-right__item-label"],[1,"l-right__item","l-right__item--demo-btn"],[3,"text","icon","buttonActionTrigger"],[3,"text","icon","mode","buttonActionTrigger"],[3,"itemId","isShared","type","fileIdForShare","actionUpdate"]],template:function(n,u){if(1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.YNc(3,et,1,1,"app-button-back",3),t.ALo(4,"async"),t.YNc(5,nt,1,1,"app-button-back",3),t.ALo(6,"async"),t.YNc(7,it,1,4,"app-button-back",4),t.ALo(8,"async"),t.qZA(),t.TgZ(9,"div",5),t.YNc(10,ut,1,1,"app-item-headline-event",6),t.YNc(11,ot,1,3,"app-item-not-found",7),t.YNc(12,lt,1,6,"app-tabs-content",8),t.ALo(13,"async"),t.qZA(),t.TgZ(14,"div",9),t.YNc(15,st,7,19,"ng-container",10),t.YNc(16,s,4,10,"div",11),t.YNc(17,d,2,2,"div",12),t.ALo(18,"async"),t.YNc(19,o,2,3,"div",12),t.ALo(20,"async"),t.YNc(21,l,2,4,"div",12),t.qZA()()(),t._UZ(22,"router-outlet")),2&n){let c,p;t.xp6(3),t.Q6J("ngIf",!u.fromPublicPost&&1===t.lcZ(4,11,u.eventEditStore$).status),t.xp6(2),t.Q6J("ngIf",u.fromPublicPost&&1===t.lcZ(6,13,u.eventEditStore$).status),t.xp6(2),t.Q6J("ngIf",2===t.lcZ(8,15,u.eventEditStore$).status),t.xp6(3),t.Q6J("ngIf",u.itemDetail),t.xp6(1),t.Q6J("ngIf",u.itemNotFound),t.xp6(1),t.Q6J("ngIf",u.itemDetail&&1===t.lcZ(13,17,u.eventEditStore$).status),t.xp6(3),t.Q6J("ngIf",u.isPublicView&&!u.userIsAuth),t.xp6(1),t.Q6J("ngIf",u.isGuestVisit&&!u.isPublicView),t.xp6(1),t.Q6J("ngIf",(null==u.itemDetail?null:u.itemDetail.can_edit)&&1===(null==(c=t.lcZ(18,19,u.eventEditStore$))?null:c.status)),t.xp6(2),t.Q6J("ngIf",(null==u.itemDetail?null:u.itemDetail.can_delete)&&1===(null==(p=t.lcZ(20,21,u.eventEditStore$))?null:p.status)),t.xp6(2),t.Q6J("ngIf",u.itemDetail&&!u.isGuestVisit)}},dependencies:[E.O5,g.lC,g.rH,S.gM,k.o,Q.Z,U.u,G.X,J.S,L.b,tt,E.Ov],styles:["@media only screen and (max-width: 1000px){.event-detail[_ngcontent-%COMP%] .l-left[_ngcontent-%COMP%]{display:none}.event-detail[_ngcontent-%COMP%] .l-center[_ngcontent-%COMP%]{order:2}.event-detail[_ngcontent-%COMP%] .l-right[_ngcontent-%COMP%]{order:1}}"]}),i})()},32438:(ct,A,a)=>{a.d(A,{B:()=>st});var g=a(89653),D=a(65256),m=a(4707),F=a(54968),h=a(18505),C=a(82722),f=a(70262),e=a(94650),I=a(12983),B=a(19426),t=a(88651),w=a(42410),y=a(65938),O=a(84112),T=a(36895),Z=a(56709),E=a(51572),S=a(10266),k=a(87616),Q=a(68900),U=a(79910),G=a(75932),J=a(5088),L=a(9617),N=a(91987),Y=a(7050),W=a(74824),R=a(48689);function b(s,d){1&s&&e._UZ(0,"app-inside-menu",16),2&s&&e.Q6J("activeMenu","event")}function V(s,d){if(1&s){const o=e.EpF();e.TgZ(0,"app-list-item-place-event",19),e.NdJ("actionChange",function(){e.CHM(o);const _=e.oxw(3);return e.KtG(_.updateEventList())})("clickToNavigateTrigger",function(){const i=e.CHM(o).$implicit,r=e.oxw(3);return e.KtG(r.changeScrollPos(i.id))}),e.qZA()}if(2&s){const o=d.$implicit,l=d.last,_=e.oxw(3);e.Q6J("itemTemplate",o)("publicGroupId",_.publicGroupId)("itemType","event")("showGeneralAccessBtn",(null==o?null:o.is_shared)&&!_.isPublicView&&!_.isGuestVisit)("elWithoutBorder",l),e.uIk("id",o.id
1)}}function K(s,d){if(1&s&&(e.ynx(0),e.YNc(1,V,1,6,"app-list-item-place-event",18),e.BQk()),2&s){const o=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",o.eventSearchData)}}function H(s,d){1&s&&e._UZ(0,"app-empty-state-page",20),2&s&&e.Q6J("title","\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e")("description","\u0412\u0430\u0448 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0435 \u0434\u0430\u043b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u0430\u043c")("isNotButton",!0)("largeContainer",!0)("borderOff",!0)}function z(s,d){if(1&s&&(e.ynx(0),e.YNc(1,K,2,1,"ng-container",7),e.YNc(2,H,1,5,"ng-template",null,17,e.W1O),e.BQk()),2&s){const o=e.MAs(3),l=e.oxw();e.xp6(1),e.Q6J("ngIf",null==l.eventSearchData?null:l.eventSearchData.length)("ngIfElse",o)}}function $(s,d){1&s&&(e.TgZ(0,"div",21),e._UZ(1,"mat-spinner",22),e.qZA()),2&s&&(e.xp6(1),e.Q6J("diameter",30)("strokeWidth",2))}function j(s,d){if(1&s){const o=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(){e.CHM(o);const _=e.oxw().$implicit,i=e.oxw(2);return e.KtG(i.setSelectedEventList(_.id))}),e.qZA()}if(2&s){const o=e.oxw().$implicit,l=e.oxw(2);e.Q6J("checked",l.checkSelectedEvent(o.id))("value",o.id)}}function X(s,d){if(1&s){const o=e.EpF();e.TgZ(0,"div",24),e.YNc(1,j,1,2,"mat-checkbox",25),e.TgZ(2,"app-list-item-place-event",19),e.NdJ("actionChange",function(){e.CHM(o);const _=e.oxw(2);return e.KtG(_.updateEventList())})("clickToNavigateTrigger",function(){const i=e.CHM(o).$implicit,r=e.oxw(2);return e.KtG(r.changeScrollPos(i.id))}),e.qZA()()}if(2&s){const o=d.$implicit,l=d.last,_=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o.can_delete&&_.editModeValue),e.xp6(1),e.Q6J("itemTemplate",o)("publicGroupId",_.publicGroupId)("itemType","event")("showGeneralAccessBtn",(null==o?null:o.is_shared)&&!_.isPublicView&&!_.isGuestVisit)("elWithoutBorder",l),e.uIk("id",o.id)}}function q(s,d){if(1&s&&e.YNc(0,X,3,7,"div",23),2&s){const o=e.oxw();e.Q6J("ngForOf",o.eventsAll)("ngForTrackBy",o.trackByEvents)}}function tt(s,d){if(1&s){const o=e.EpF();e.TgZ(0,"div",27)(1,"app-empty-state-page",28),e.NdJ("buttonClick",function(){e.CHM(o);const _=e.oxw();return e.KtG(_.createNewEvent())}),e.qZA()()}if(2&s){const o=e.oxw();e.xp6(1),e.Q6J("title",null==o.emptyScreenContent?null:o.emptyScreenContent.title)("description",null==o.emptyScreenContent?null:o.emptyScreenContent.description)("buttonText",null==o.emptyScreenContent?null:o.emptyScreenContent.buttonText)}}function et(s,d){1&s&&(e.TgZ(0,"div",27),e._UZ(1,"app-empty-filter-result"),e.qZA())}const nt=function(){return["/login"]},P=function(){return["/register"]};function it(s,d){1&s&&(e.ynx(0),e.TgZ(1,"div",29),e._UZ(2,"app-button-primary",30),e.qZA(),e.TgZ(3,"div",29),e._UZ(4,"app-button-primary",31),e.TgZ(5,"span",32),e._uU(6,"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e"),e.qZA()(),e.BQk()),2&s&&(e.xp6(2),e.Q6J("text","\u0412\u043e\u0439\u0442\u0438")("sizeMode","medium")("fullWidth",!0)("matTooltip","\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u044d\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u043c\u044c\u0438")("matTooltipClass","reset-material-tooltip")("matTooltipPosition","below")("matTooltipTouchGestures","off")("routerLink",e.DdM(17,nt)),e.xp6(2),e.Q6J("text","\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f")("mode","blue")("sizeMode","medium")("fullWidth",!0)("matTooltip","\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f. \u0412\u0441\u0435\u0433\u043e \u043c\u0438\u043d\u0443\u0442\u0430, \u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u0441\u0430\u0439\u0442\u043e\u043c \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438")("matTooltipClass","reset-material-tooltip")("matTooltipPosition","below")("matTooltipTouchGestures","off")("routerLink",e.DdM(18,P)))}function ut(s,d){1&s&&(e.TgZ(0,"div",33),e._UZ(1,"app-button-primary",31),e.TgZ(2,"span",32),e._uU(3,"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e"),e.qZA()()),2&s&&(e.xp6(1),e.Q6J("text","\u0412\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0432 \u0441\u0435\u043c\u044c\u044e")("mode","blue")("sizeMode","medium")("fullWidth",!0)("matTooltip","\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u0441\u044c \u043a \u0442\u043e\u0439 \u0441\u0435\u043c\u044c\u0435, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0435. \u042d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e")("matTooltipClass","reset-material-tooltip")("matTooltipPosition","below")("matTooltipTouchGestures","off")("routerLink",e.DdM(9,P)))}const ot=function(){return["/event","new"]};function lt(s,d){1&s&&(e.TgZ(0,"div",29),e._UZ(1,"app-button-with-icon",34),e.qZA()),2&s&&(e.xp6(1),e.Q6J("icon","plus_white.svg")("text","\u041d\u043e\u0432\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435")("router",e.DdM(3,ot)))}function at(s,d){1&s&&(e.TgZ(0,"div",29),e._UZ(1,"app-tasks-widget"),e.qZA())}function M(s,d){if(1&s){const o=e.EpF();e.TgZ(0,"div",35)(1,"app-button-top",36),e.NdJ("buttonClick",function(){e.CHM(o);const _=e.oxw();return e.KtG(_.scrollTop())}),e.qZA()()}}let st=(()=>{class s{constructor(o,l,_,i,r,n,u,c){this.store=o,this.filterService=l,this.eventService=_,this.router=i,this.route=r,this.appService=n,this.dialog=u,this.searchService=c,this.eventsAll=[],this.initialPaginationScroll={limit:100,offset:0},this.emptyScreenContent={title:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435",description:'\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0435 \u0432 \u0436\u0438\u0437\u043d\u0438 \u0447\u043b\u0435\u043d\u043e\u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u043c\u044c\u0438. \u
1041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, "\u041f\u043e\u0435\u0437\u0434\u043a\u0430 \u043d\u0430 \u043c\u043e\u0440\u0435 \u0432 1975-\u043c"',buttonText:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"},this.destroyed$=new m.t(1),this.listToDelete=[],this.servicesForFilters=["event"],this.cFilter={session_id:null,related_to_id:[],search_query:"",filter:[],sort:null},n.checkPublicView()?r.params.subscribe(p=>{this.publicGroupId=p.group_id,this.currentGroupId=p.group_id}):(this.publicGroupId=void 0,this.currentGroupId=n.getXID()),this.isPublicView=n.checkPublicView(),this.isGuestVisit=n.isGuestVisit(),n.checkBrowser()&&((0,F.R)(window,"scroll").pipe((0,h.b)(()=>this.changeStateButton()),(0,C.R)(this.destroyed$)).subscribe(),this.userIsAuth=!!n.getToken()?.length,this.isMobileView=window.innerWidth<=1e3)}ngOnInit(){this.filtersLoading=!0,this.app$=this.store.pipe((0,g.Ys)("app")),this.eventSearchQuerySubscribe$=this.searchService.dataSearchEmit,this.eventSearchQuerySubscribe$.pipe((0,C.R)(this.destroyed$)).subscribe(o=>{this.eventSearchData=Object.assign([],o.data)||[],this.searchQueryValue=o.query,this.eventSearchData=this.eventSearchData.map(l=>({...l.event,is_shared:l.is_shared,attachments:l.attachments||null})),this.filtersLoading=!1})}ngAfterViewInit(){this.appService.checkBrowser()&&(this.filter$=this.store.pipe((0,g.Ys)("filter")),this.filter$.pipe((0,C.R)(this.destroyed$)).subscribe(o=>{this.filtersLoading=!0,window.scrollTo(0,0);const l=o?.pageSortList?.find(i=>"event"===i.pageName&&i.groupId===this.currentGroupId),_=o?.pageFilterList?.find(i=>"event"===i.pageName&&i.groupId===this.currentGroupId);this.hasFilters=!!_,this.cFilter.sort=this.filterService.setSort(l),this.cFilter=this.filterService.setFilters(this.cFilter,_,this.servicesForFilters),this.cFilter.limit=this.initialPaginationScroll.limit,this.cFilter.offset=this.initialPaginationScroll.offset,this.scrollWindowPosition=this.appService.getAppData().windowScrollPos,this.scrollWindowPosition?(this.cFilter.limit+=this.scrollWindowPosition.offset,this.cFilter.offset=this.initialPaginationScroll.offset,this.scrollWindowPosition?.searchQuery?(this.searchService.scrollSearchEmit.emit(this.scrollWindowPosition.searchQuery),setTimeout(()=>{this.scrollWindowPosition=null,this.getAllFeed("replace",null,!1,!0)},1e3)):this.getAllFeed("replace",null,!0,!0)):this.getAllFeed("replace")}))}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}getAllFeed(o,l,_,i){this.cFilter.session_id=l||null,this.appService.getFilterDataFeed(this.cFilter).pipe((0,h.b)(r=>{this.dataCount=r.count,this.sessionId=r.session_id,this.eventsAll="unite"===o?this.eventsAll.concat(r.results?.length?r.results.map(n=>({...n.event,attachments:n.attachments,is_shared:n.is_shared})):[]):r.results?.length?r.results.map(n=>({...n.event,attachments:n.attachments,is_shared:n.is_shared})):[],this.store.dispatch({type:D.Zc,payload:null}),this.filtersLoading=!1,_&&setTimeout(()=>{if(this.appService.checkBrowser()){const n=window.outerHeight;document.getElementById(this.scrollWindowPosition.elId).getBoundingClientRect().top>n&&document.getElementById(this.scrollWindowPosition.elId).scrollIntoView({block:"center"})}this.scrollWindowPosition=null,this.store.dispatch({type:D.Zc,payload:null})},0),i&&(this.cFilter.offset=this.cFilter.limit-this.initialPaginationScroll.limit,this.cFilter.limit=this.initialPaginationScroll.limit)}),(0,C.R)(this.destroyed$),(0,f.K)(r=>(this.appService.pushError("backBase"),this.filtersLoading=!1,r))).subscribe()}updateEventList(){this.filtersLoading=!0,this.cFilter.limit=this.cFilter.limit+this.cFilter.offset,this.cFilter.offset=0,this.getAllFeed("replace",null,!1,!0)}deleteSelectedList(o){this.filtersLoading=!0,this.eventService.deleteEventList(o?null:this.listToDelete).pipe((0,h.b)(()=>{this.cFilter.limit=this.cFilter.limit+this.cFilter.offset,this.cFilter.offset=0,this.getAllFeed("replace",null,!1,!0)}),(0,C.R)(this.destroyed$),(0,f.K)(l=>(this.filtersLoading=!1,this.appService.pushError("back"),l))).subscribe()}showMoreElements(){this.dataCount>this.cFilter.offset+this.cFilter.limit&&(!this.searchQueryValue||!this.searchQueryValue.length)&&(this.cFilter.offset+=this.cFilter.limit,this.getAllFeed("unite",this.sessionId))}trackByEvents(o,l){return l.id}createNewEvent(){this.router.navigate(this.isGuestVisit?["/register"]:["/event","new"])}preventDefaultEl(o){o.preventDefault(),o.stopPropagation()}changeStateButton(){this.showTopButton=window.scrollY>=window.innerHeight}scrollTop(){window.scrollTo({top:0,behavior:"smooth"})}changeEditMode(o){o&&(this.listToDelete=[]),this.editModeValue=o}checkSelectedEvent(o){return this.listToDelete.some(l=>l===o)}setSelectedEventList(o){this.listToDelete.some(l=>l===o)?this.listToDelete=this.listToDelete.filter(l=>l!==o):this.listToDelete.push(o)}changeScrollPos(o){this.store.dispatch({type:D.Zc,payload:{elId:o,limit:this.cFilter.limit,offset:this.cFilter.offset,searchQuery:this.searchQueryValue||null}})}}return s.\u0275fac=function(o){return new(o||s)(e.Y36(g.yh),e.Y36(I.i),e.Y36(B.P),e.Y36(t.F0),e.Y36(t.gz),e.Y36(w.z),e.Y36(y.uw),e.Y36(O.o))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-event"]],decls:19,vars:23,consts:[["infinite-scroll","",1,"l-container","events",3,"infiniteScrollDistance","infiniteScrollThrottle","scrolled"],[1,"l-left"],[3,"activeMenu",4,"ngIf"],[1,"l-center"],[1,"events__chapter"],[3,"name","tooltipTitle","tooltipDesc","editMode","editModeIconText","editModePopupDesc","editModePopupDescAll","editModeDelCount","pageType","filtersNeeded","editModeStateTrigger","editModeDeleteTrigger"],[1,"events__card"],[4,"ngIf","ngIfElse"],["class","events__filters-loading",4,"ngIf"],["fullList",""],["class","events__empty",4,"ngIf"],[1,"l-right"],[4,"ngIf"],["class","l-right__item l-right__item--demo-btn",4,"ngIf"],["class","l-right__item",4,"ngIf"],["class","l-container button-top-container",4,"ngIf"],[3,"activeMenu"],["emptyResult",""],["class","events__item-card",3,"itemTemplate","publicGroupId","itemType","showGeneralAccessBtn","elWithoutBorder","actionChange","clickToNavigateTrigger",4,"ngFor","ngForOf"],[1,"events__item-card",3,"itemTemplate","publicGroupId","itemType","showGeneralAccessBtn","elWithoutBorder","actionChange","clickToNavigateTrigger"],[3,"title","description","isNotButton","largeContainer","borderOff"],[1,"events__filters-loading"],[3,"diameter","strokeWidth"],["class","events__item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"events__item"],["class","events__item-checkbox",3,"checked","value","change",4,"ngIf"],[1,"events__item-checkbox",3,"checked","value","change"],[1,"events__empty"],[3,"title","description","buttonText","buttonClick"],[1,"l-right__item"],[3,"text","sizeMode","fullWidth","matTooltip","matTooltipClass","matTooltipPosition","matTooltipTouchGestures","routerLink"],[3,"text","mode","sizeMode","fullWidth","matTooltip","matTooltipClass","matTooltipPosition","matTooltipTouchGestures","routerLink"],[1,"l-right__item-label"],[1,"l-right__item","l-right__item--demo-btn"],[3,"icon","text","router"],[1,"l-container","button-top-container"],[3,"buttonClick"]],template:function(o,l){if(1&o&&(e.TgZ(0,"div",0),e.NdJ("scrolled",function(){return l.showMoreElements()}),e.TgZ(1,"div",1),e.YNc(2,b,1,1,"app-inside-menu",2),e.qZA(),e.TgZ(3,"div",3)(4,"div",4)(5,"app-ch
1apter-page-name",5),e.NdJ("editModeStateTrigger",function(i){return l.changeEditMode(i)})("editModeDeleteTrigger",function(i){return l.deleteSelectedList(i)}),e.qZA()(),e.TgZ(6,"div",6),e.YNc(7,z,4,2,"ng-container",7),e.YNc(8,$,2,2,"div",8),e.YNc(9,q,1,2,"ng-template",null,9,e.W1O),e.qZA(),e.YNc(11,tt,2,3,"div",10),e.YNc(12,et,2,0,"div",10),e.qZA(),e.TgZ(13,"div",11),e.YNc(14,it,7,19,"ng-container",12),e.YNc(15,ut,4,10,"div",13),e.YNc(16,lt,2,4,"div",14),e.YNc(17,at,2,0,"div",14),e.qZA(),e.YNc(18,M,2,0,"div",15),e.qZA()),2&o){const _=e.MAs(10);e.Q6J("infiniteScrollDistance",2)("infiniteScrollThrottle",10),e.xp6(2),e.Q6J("ngIf",!l.isMobileView),e.xp6(3),e.Q6J("name","\u0421\u043e\u0431\u044b\u0442\u0438\u044f")("tooltipTitle","\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439")("tooltipDesc","\u0421\u043e\u0431\u044b\u0442\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u201c\u041b\u0435\u0442\u043e \u0432 \u0434\u0435\u0440\u0435\u0432\u043d\u0435 \u0432 1980-\u043c\u201d) \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u201c\u044f\u0449\u0438\u0447\u043a\u0438 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435\u201d, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0436\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u0442\u0451\u0440\u043b\u0438\u0441\u044c \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438")("editMode",!(null!=l.searchQueryValue&&l.searchQueryValue.length||null==l.eventsAll||!l.eventsAll.length))("editModeIconText","\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439")("editModePopupDesc","\u0411\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0439: "+(null==l.listToDelete?null:l.listToDelete.length)+". \u042d\u0442\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0432\u0430\u0441, \u043d\u043e \u0438 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u043c\u044c\u0438.")("editModePopupDescAll","\u0411\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u044b \u0432\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u041e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0432\u0430\u0441, \u043d\u043e \u0438 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u043c\u044c\u0438.")("editModeDelCount",null==l.listToDelete?null:l.listToDelete.length)("pageType","event")("filtersNeeded",!0),e.xp6(2),e.Q6J("ngIf",null==l.searchQueryValue?null:l.searchQueryValue.length)("ngIfElse",_),e.xp6(1),e.Q6J("ngIf",l.filtersLoading),e.xp6(3),e.Q6J("ngIf",!(l.filtersLoading||null!=l.eventsAll&&l.eventsAll.length||null!=l.searchQueryValue&&l.searchQueryValue.length||l.hasFilters)),e.xp6(1),e.Q6J("ngIf",!l.filtersLoading&&!(null!=l.eventsAll&&l.eventsAll.length)&&!(null!=l.searchQueryValue&&l.searchQueryValue.length)&&l.hasFilters),e.xp6(2),e.Q6J("ngIf",l.isPublicView&&!l.userIsAuth),e.xp6(1),e.Q6J("ngIf",l.isGuestVisit&&!l.isPublicView),e.xp6(1),e.Q6J("ngIf",!l.isPublicView),e.xp6(1),e.Q6J("ngIf",!l.isPublicView),e.xp6(1),e.Q6J("ngIf",!l.filtersLoading&&l.showTopButton)}},dependencies:[T.sg,T.O5,t.rH,Z.oG,E.Ou,S.gM,k.D,Q.W,U.D,G.Z,J.Z,L.M,N.P,Y.S,W.b,R.R],styles:[".events__card[_ngcontent-%COMP%]{position:relative;background-color:#fff}.events__filters-loading[_ngcontent-%COMP%]{z-index:9;position:absolute;top:0;left:0;display:flex;justify-content:center;width:100%;height:100%;background-color:#ffffffb3}.events__filters-loading[_ngcontent-%COMP%] .mat-spinner{position:fixed;margin:80px 0}.events__filters-loading[_ngcontent-%COMP%] .mat-progress-spinner circle, .events__filters-loading[_ngcontent-%COMP%] .mat-spinner circle{stroke:#1d2b4f}.events__item[_ngcontent-%COMP%]{display:flex;align-items:center}.events__item-checkbox[_ngcontent-%COMP%]{margin-right:20px}.events__chapter[_ngcontent-%COMP%]{z-index:99;position:sticky;top:110px;margin-bottom:20px;background-color:#fff;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.events__item-card[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 1000px){.events[_ngcontent-%COMP%] .l-left[_ngcontent-%COMP%]{display:none}.events[_ngcontent-%COMP%] .l-right[_ngcontent-%COMP%]{order:1}.events[_ngcontent-%COMP%] .l-center[_ngcontent-%COMP%]{order:2}.events__chapter[_ngcontent-%COMP%]{position:relative;top:0}.events__filters-loading[_ngcontent-%COMP%]{min-height:200px}.events__filters-loading[_ngcontent-%COMP%] .mat-spinner{position:relative}}"]}),s})()}}]);
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.