1"use strict";(self.webpackChunkfamily_legends=self.webpackChunkfamily_legends||[]).push([[6999],{76999:(It,I,_)=>{_.d(I,{o:()=>Tt});var l=_(65256),x=_(89653),w=_(39646),m=_(63900),p=_(18505),g=_(70262),E=_(66660),P=_(91595),A=_(95888),D=_(66167),h=_(15439),e=_(94650),T=_(88651),M=_(42410),F=_(27339),O=_(73792),R=_(65938),B=_(15372),G=_(51042),Z=_(28009),N=_(46980),k=_(19426),f=_(36895),S=_(51572),J=_(48689),Q=_(80148),K=_(28755),U=_(14393),Y=_(55943),W=_(68900),L=_(74455),$=_(56931),H=_(98238),q=_(4778),V=_(8442),j=_(68218),z=_(78042),X=_(45455),ee=_(92080);function te(i,s){if(1&i&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij("(",null==t?null:t.count,")")}}function ne(i,s){1&i&&(e.TgZ(0,"span",9),e._uU(1,"(9+)"),e.qZA())}function ie(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw();return e.KtG(r.activeTab===a?null:r.changeFilters(a))}),e._uU(1),e.YNc(2,te,2,1,"span",8),e.YNc(3,ne,2,0,"span",8),e.qZA()}if(2&i){const t=s.$implicit;e.ekj("tabs-content__list-el--active",null==t?null:t.active),e.xp6(1),e.hij(" ",t.name," "),e.xp6(1),e.Q6J("ngIf",(null==t?null:t.count)&&(null==t?null:t.count)<=9),e.xp6(1),e.Q6J("ngIf",(null==t?null:t.count)&&(null==t?null:t.count)>9)}}function oe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-empty-state-page",13),e.NdJ("buttonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.goRoute())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("smallContainer",!0)("title",t.getCurrentTextCap("title"))("description",t.getCurrentTextCap("description"))("buttonText",null==t.emptyScreenContent?null:t.emptyScreenContent.buttonText)}}function ae(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-feed-item",16),e.NdJ("photoClick",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.showGallery(o,a,"note"))})("actionChange",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.updateFeedItem(o,a,"storyItems"))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("dataFeed",t)("publicGroupId",n.publicGroupId)("showGeneralAccessBtn",(null==t?null:t.is_shared)&&!n.isPublicView&&!n.isGuestVisit)("showMoreActionsBtn",!0)}}function se(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-feed-item-interview-answer",17),e.NdJ("actionChange",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.updateFeedItem(o,a,"storyItems"))})("photoClick",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.showGallery(o,a,"interview"))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("data",t)("publicGroupId",n.publicGroupId)("showGeneralAccessBtn",(null==t?null:t.is_shared)&&!n.isPublicView&&!n.isGuestVisit)("showMoreActionsBtn",!0)}}function re(i,s){if(1&i&&(e.TgZ(0,"div",10),e.YNc(1,ae,1,4,"app-feed-item",14),e.YNc(2,se,1,4,"app-feed-item-interview-answer",15),e.qZA()),2&i){const t=s.$implicit;e.xp6(1),e.Q6J("ngIf","note"===t.type),e.xp6(1),e.Q6J("ngIf","interview"===t.type)}}function _e(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",10),e.YNc(2,oe,1,4,"app-empty-state-page",11),e.ALo(3,"async"),e.qZA(),e.YNc(4,re,3,2,"div",12),e.BQk()),2&i){const t=e.oxw();let n;e.xp6(2),e.Q6J("ngIf",(null==t.itemDetail?null:t.itemDetail.can_extend)&&t.isGetFilters&&!(null!=(n=e.lcZ(3,2,t.app$))&&n.isLoader)),e.xp6(2),e.Q6J("ngForOf",t.storyItems)}}function le(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-comment-create-container",24),e.NdJ("triggerShowGallery",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.showGallery(o.evt,o.item,o.type))})("createOrUpdateActionTrigger",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.getAllComments())})("cancelEditActionTrigger",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.updateCommentToInitialValue())}),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("instanceId",t.idItem)("commentValue",t.editingComment)("editCommentValue",t.editCommentValue)("updatedImageList",t.updatedCommentImageList)}}function ce(i,s){if(1&i&&(e.TgZ(0,"div",22),e.YNc(1,le,1,4,"app-comment-create-container",23),e.qZA()),2&i){const t=e.oxw(2);e.ekj("comments-area__create--edit",t.editCommentValue),e.xp6(1),e.Q6J("ngIf",t.editingComment)}}
1function pe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",27)(1,"app-comment",28),e.NdJ("triggerShowGallery",function(o){const r=e.CHM(t).$implicit,c=e.oxw(3);return e.KtG(c.showGallery(o,r,"comment"))})("deleteTriggerState",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.deleteComment(o))})("editTriggerState",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.editComment(o))}),e.qZA()()}if(2&i){const t=s.$implicit;e.xp6(1),e.Q6J("data",t)}}function ue(i,s){1&i&&(e.TgZ(0,"p",29),e._uU(1,"\u041f\u043e\u043a\u0430 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f"),e.qZA())}function de(i,s){if(1&i&&(e.ynx(0),e.YNc(1,pe,2,1,"div",25),e.YNc(2,ue,2,0,"p",26),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.relatedComments),e.xp6(1),e.Q6J("ngIf",t.relatedComments&&!(null!=t.relatedComments&&t.relatedComments.length))}}function me(i,s){1&i&&(e.TgZ(0,"div",30),e._UZ(1,"mat-spinner",31),e.qZA()),2&i&&(e.xp6(1),e.Q6J("diameter",30)("strokeWidth",2))}function ge(i,s){if(1&i&&(e.TgZ(0,"div",18),e.YNc(1,ce,2,3,"div",19),e.TgZ(2,"div",20),e.YNc(3,de,3,2,"ng-container",4),e.YNc(4,me,2,2,"div",21),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.publicGroupId),e.xp6(2),e.Q6J("ngIf",!t.getCommentsLoading),e.xp6(1),e.Q6J("ngIf",t.getCommentsLoading)}}function he(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"p",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onBackRelated())}),e._UZ(1,"span",40),e._uU(2," \u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0443 "),e.qZA()}}function fe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-button-flat",43),e.NdJ("clickTrigger",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.setRelationsStatus(!0,"person"))}),e.qZA()}2&i&&e.Q6J("text","\u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0443")}function Ce(i,s){if(1&i&&(e.TgZ(0,"p",41),e._uU(1,"\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u044b"),e.qZA(),e.YNc(2,fe,1,1,"app-button-flat",42)),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",null==t.itemDetail?null:t.itemDetail.can_extend)}}function ve(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-person-row",54),e.NdJ("changePersonRelation",function(o){e.CHM(t);const a=e.oxw(6);return e.KtG(a.onChangePersonRelation(o))}),e.qZA()}if(2&i){const t=e.oxw(2),n=t.$implicit,o=t.last,a=e.oxw(4);e.Q6J("person",n)("isNotRead",!0)("isRelation",!0)("keyRelation",a.dictionaryRelativeM)("publicGroupId",a.publicGroupId)("elWithoutBorder",o)("toPersonId",a.idItem)}}function xe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-person-row",55),e.NdJ("changePersonRelation",function(o){e.CHM(t);const a=e.oxw(6);return e.KtG(a.onChangePersonRelation(o))}),e.qZA()}if(2&i){const t=e.oxw(2),n=t.$implicit,o=t.last,a=e.oxw(4);e.Q6J("person",n)("isNotRead",!0)("isRelation",!0)("keyRelation",a.dictionaryRelativeW)("publicGroupId",a.publicGroupId)("isAppDelete",!a.publicGroupId&&!a.isGuestVisit)("elWithoutBorder",o)("toPersonId",a.idItem)}}function Te(i,s){if(1&i&&(e.ynx(0),e.YNc(1,ve,1,7,"app-person-row",52),e.YNc(2,xe,1,8,"app-person-row",53),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",1===t.sex),e.xp6(1),e.Q6J("ngIf",0===t.sex)}}function be(i,s){if(1&i&&(e.ynx(0),e.YNc(1,Te,3,2,"ng-container",4),e.BQk()),2&i){const t=s.$implicit;e.xp6(1),e.Q6J("ngIf",t.sex||0===t.sex)}}const b=function(){return["first_name","surname","patronymic"]};function ye(i,s){if(1&i){const t=e.EpF();e.ynx(0),e._UZ(1,"div",48),e.TgZ(2,"div",49)(3,"app-search",50),e.NdJ("searchQueryState",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.setSearchQuery(o))}),e.qZA()(),e.YNc(4,be,2,1,"ng-container",51),e.ALo(5,"search"),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("placeholder","\u041f\u043e\u0438\u0441\u043a"),e.xp6(1),e.Q6J("ngForOf",e.Dn7(5,3,t.relatedAllPersons,t.queryTab,e.DdM(7,b)))("ngForTrackBy",t.trackByPerson)}}function Ie(i,s){1&i&&(e._UZ(0,"div",48),e.TgZ(1,"p",56),e._uU(2,"\u041d\u0435\u0442 \u043f\u0435\u0440\u0441\u043e\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438"),e.qZA())}
1function we(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.YNc(1,ye,6,8,"ng-container",37),e.YNc(2,Ie,3,0,"ng-template",null,44,e.W1O),e.TgZ(4,"div",45),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.addNewRelationElement("person"))}),e._UZ(5,"div",46),e.TgZ(6,"p",47),e._uU(7,"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"),e.qZA()(),e.BQk()}if(2&i){const t=e.MAs(3),n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",null==n.relatedAllPersons?null:n.relatedAllPersons.length)("ngIfElse",t)}}function Ee(i,s){1&i&&e._UZ(0,"div",48)}function Pe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-person-row",59),e.NdJ("appDelete",function(){const a=e.CHM(t).$implicit,r=e.oxw(3);return e.KtG(r.deleteTaxonomyPerson(a.id))}),e.qZA()}if(2&i){const t=s.$implicit,n=s.last,o=e.oxw(3);e.Q6J("person",t)("publicGroupId",o.publicGroupId)("isAppDelete",!o.publicGroupId&&!o.isGuestVisit)("elWithoutBorder",n)}}function Ae(i,s){if(1&i&&(e.YNc(0,Ee,1,0,"div",57),e.YNc(1,Pe,1,4,"app-person-row",58)),2&i){const t=e.oxw(2);e.Q6J("ngIf",null==t.relatedPersons?null:t.relatedPersons.length),e.xp6(1),e.Q6J("ngForOf",t.relatedPersons)("ngForTrackBy",t.trackByPerson)}}function De(i,s){if(1&i&&(e.TgZ(0,"div",32)(1,"div",33),e.YNc(2,he,3,0,"p",34),e.YNc(3,Ce,3,1,"ng-template",null,35,e.W1O),e.qZA(),e.TgZ(5,"div",36),e.YNc(6,we,8,2,"ng-container",37),e.YNc(7,Ae,2,3,"ng-template",null,38,e.W1O),e.qZA()()),2&i){const t=e.MAs(4),n=e.MAs(8),o=e.oxw();e.xp6(2),e.Q6J("ngIf",o.isRelationItem&&(null==o.itemDetail?null:o.itemDetail.can_extend))("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",o.isRelationItem)("ngIfElse",n)}}function Me(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"p",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onBackRelated())}),e._UZ(1,"span",40),e._uU(2," \u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0443 "),e.qZA()}}function Fe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-button-flat",43),e.NdJ("clickTrigger",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.setRelationsStatus(!0))}),e.qZA()}2&i&&e.Q6J("text","\u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0443")}function Oe(i,s){if(1&i&&(e.TgZ(0,"p",41),e._uU(1,"\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u044b"),e.qZA(),e.YNc(2,Fe,1,1,"app-button-flat",42)),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",null==t.itemDetail?null:t.itemDetail.can_extend)}}function Re(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-person-row",63),e.NdJ("setRelationItem",function(o){e.CHM(t);const a=e.oxw(4);return e.KtG(a.setRelationItem(o))}),e.qZA(),e.BQk()}if(2&i){const t=s.$implicit,n=s.last,o=e.oxw(4);e.xp6(1),e.Q6J("person",t)("isNotRead",!0)("relationsItems",o.relationsData)("publicGroupId",o.publicGroupId)("isAppDelete",!o.publicGroupId&&!o.isGuestVisit)("elWithoutBorder",n)}}function Be(i,s){if(1&i){const t=e.EpF();e.ynx(0),e._UZ(1,"div",48),e.TgZ(2,"div",49)(3,"app-search",50),e.NdJ("searchQueryState",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.setSearchQuery(o))}),e.qZA()(),e.YNc(4,Re,2,6,"ng-container",51),e.ALo(5,"search"),e.ALo(6,"filterArrayByKey"),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("placeholder","\u041f\u043e\u0438\u0441\u043a"),e.xp6(1),e.Q6J("ngForOf",e.Dn7(5,3,e.xi3(6,7,t.relatedAllPersons,"is_related"),t.queryTab,e.DdM(10,b)))("ngForTrackBy",t.trackByPerson)}}function Ge(i,s){1&i&&(e._UZ(0,"div",48),e.TgZ(1,"p",56),e._uU(2,"\u041d\u0435\u0442 \u043f\u0435\u0440\u0441\u043e\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438"),e.qZA())}function Ze(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",61),e.YNc(1,Be,7,11,"ng-container",37),e.YNc(2,Ge,3,0,"ng-template",null,62,e.W1O),e.TgZ(4,"div",45),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.addNewRelationElement("person"))}),e._UZ(5,"div",46),e.TgZ(6,"p",47),e._uU(7,"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"),e.qZA()()()}if(2&i){const t=e.MAs(3),n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(null==n.relatedPersons?null:n.relatedPersons.length)<(null==n.relatedAllPersons?null:n.relatedAllPersons.length))("ngIfElse",t)}}function Ne(i,s){1&i&&e._UZ(0,"div",48)}
1function ke(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-person-row",65),e.NdJ("appDelete",function(){const a=e.CHM(t).$implicit,r=e.oxw(3);return e.KtG(r.onAppDelete("person",a.id))}),e.qZA()}if(2&i){const t=s.$implicit,n=s.last,o=e.oxw(3);e.Q6J("person",t)("isAppDelete",!o.publicGroupId&&!o.isGuestVisit)("publicGroupId",o.publicGroupId)("elWithoutBorder",n)}}function Se(i,s){if(1&i&&(e.YNc(0,Ne,1,0,"div",57),e.YNc(1,ke,1,4,"app-person-row",64)),2&i){const t=e.oxw(2);e.Q6J("ngIf",null==t.relatedPersons?null:t.relatedPersons.length),e.xp6(1),e.Q6J("ngForOf",t.relatedPersons)("ngForTrackBy",t.trackByPerson)}}function Je(i,s){if(1&i&&(e.TgZ(0,"div",32)(1,"div",33),e.YNc(2,Me,3,0,"p",34),e.YNc(3,Oe,3,1,"ng-template",null,35,e.W1O),e.qZA(),e.TgZ(5,"div",36),e.YNc(6,Ze,8,2,"div",60),e.YNc(7,Se,2,3,"ng-template",null,38,e.W1O),e.qZA()()),2&i){const t=e.MAs(4),n=e.MAs(8),o=e.oxw();e.xp6(2),e.Q6J("ngIf",o.isRelationItem&&(null==o.itemDetail?null:o.itemDetail.can_extend))("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",o.isRelationItem)("ngIfElse",n)}}function Qe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"p",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onBackRelated("event"))}),e._UZ(1,"span",40),e._uU(2," \u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f "),e.qZA()}}function Ke(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-button-flat",43),e.NdJ("clickTrigger",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.setRelationsStatus(!0))}),e.qZA()}2&i&&e.Q6J("text","\u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435")}function Ue(i,s){if(1&i&&(e.TgZ(0,"p",41),e._uU(1,"\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f"),e.qZA(),e.YNc(2,Ke,1,1,"app-button-flat",42)),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",null==t.itemDetail?null:t.itemDetail.can_extend)}}function Ye(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-place-event-row",68),e.NdJ("relationItemEmit",function(o){e.CHM(t);const a=e.oxw(4);return e.KtG(a.setRelationItem(o))}),e.qZA(),e.BQk()}if(2&i){const t=s.$implicit,n=s.last,o=e.oxw(4);e.xp6(1),e.Q6J("itemTemplate",t)("itemType","event")("isRead",!0)("relationsItems",o.relationsData)("publicGroupId",o.publicGroupId)("elWithoutBorder",n)}}const y=function(){return["name"]};function We(i,s){if(1&i){const t=e.EpF();e.ynx(0),e._UZ(1,"div",48),e.TgZ(2,"div",49)(3,"app-search",50),e.NdJ("searchQueryState",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.setSearchQuery(o))}),e.qZA()(),e.YNc(4,Ye,2,6,"ng-container",51),e.ALo(5,"search"),e.ALo(6,"filterArrayByKey"),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("placeholder","\u041f\u043e\u0438\u0441\u043a"),e.xp6(1),e.Q6J("ngForOf",e.Dn7(5,3,e.xi3(6,7,t.relatedAllEvents,"is_related"),t.queryTab,e.DdM(10,y)))("ngForTrackBy",t.trackByEvents)}}function Le(i,s){1&i&&(e._UZ(0,"div",48),e.TgZ(1,"p",56),e._uU(2,"\u041d\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438"),e.qZA())}function $e(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.YNc(1,We,7,11,"ng-container",37),e.YNc(2,Le,3,0,"ng-template",null,67,e.W1O),e.TgZ(4,"div",45),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.addNewRelationElement("event"))}),e._UZ(5,"div",46),e.TgZ(6,"p",47),e._uU(7,"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"),e.qZA()(),e.BQk()}if(2&i){const t=e.MAs(3),n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(null==n.relatedEvents?null:n.relatedEvents.length)<(null==n.relatedAllEvents?null:n.relatedAllEvents.length))("ngIfElse",t)}}function He(i,s){1&i&&e._UZ(0,"div",48)}
1function qe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-place-event-row",70),e.NdJ("relationItemDeleteEmit",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onDeleteRelation(o))}),e.qZA()}if(2&i){const t=s.$implicit,n=s.last,o=e.oxw(3);e.Q6J("itemTemplate",t)("itemType","event")("disableDelete",!(null!=o.itemDetail&&o.itemDetail.can_extend))("publicGroupId",o.publicGroupId)("elWithoutBorder",n)}}function Ve(i,s){if(1&i&&(e.YNc(0,He,1,0,"div",57),e.YNc(1,qe,1,5,"app-place-event-row",69)),2&i){const t=e.oxw(2);e.Q6J("ngIf",null==t.relatedEvents?null:t.relatedEvents.length),e.xp6(1),e.Q6J("ngForOf",t.relatedEvents)("ngForTrackBy",t.trackByEvents)}}function je(i,s){if(1&i&&(e.TgZ(0,"div",32)(1,"div",33),e.YNc(2,Qe,3,0,"p",34),e.YNc(3,Ue,3,1,"ng-template",null,35,e.W1O),e.qZA(),e.TgZ(5,"div",36),e.YNc(6,$e,8,2,"ng-container",37),e.YNc(7,Ve,2,3,"ng-template",null,66,e.W1O),e.qZA()()),2&i){const t=e.MAs(4),n=e.MAs(8),o=e.oxw();e.xp6(2),e.Q6J("ngIf",o.isRelationItem&&(null==o.itemDetail?null:o.itemDetail.can_extend))("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",o.isRelationItem)("ngIfElse",n)}}function ze(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"p",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onBackRelated("place"))}),e._UZ(1,"span",40),e._uU(2," \u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u0430 "),e.qZA()}}function Xe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-button-flat",43),e.NdJ("clickTrigger",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.setRelationsStatus(!0))}),e.qZA()}2&i&&e.Q6J("text","\u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e")}function et(i,s){if(1&i&&(e.TgZ(0,"p",41),e._uU(1,"\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430"),e.qZA(),e.YNc(2,Xe,1,1,"app-button-flat",42)),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",null==t.itemDetail?null:t.itemDetail.can_extend)}}function tt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-place-event-row",68),e.NdJ("relationItemEmit",function(o){e.CHM(t);const a=e.oxw(5);return e.KtG(a.setRelationItem(o))}),e.qZA()}if(2&i){const t=e.oxw(),n=t.$implicit,o=t.last,a=e.oxw(4);e.Q6J("itemTemplate",n)("itemType","place")("isRead",!0)("relationsItems",a.relationsData)("publicGroupId",a.publicGroupId)("elWithoutBorder",o)}}function nt(i,s){if(1&i&&(e.ynx(0),e.YNc(1,tt,1,6,"app-place-event-row",73),e.BQk()),2&i){const t=s.$implicit;e.xp6(1),e.Q6J("ngIf",(null==t?null:t.person_creater)||(null==t?null:t.person_updater))}}function it(i,s){if(1&i){const t=e.EpF();e.ynx(0),e._UZ(1,"div",48),e.TgZ(2,"div",49)(3,"app-search",50),e.NdJ("searchQueryState",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.setSearchQuery(o))}),e.qZA()(),e.YNc(4,nt,2,1,"ng-container",51),e.ALo(5,"search"),e.ALo(6,"filterArrayByKey"),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("placeholder","\u041f\u043e\u0438\u0441\u043a"),e.xp6(1),e.Q6J("ngForOf",e.Dn7(5,3,e.xi3(6,7,t.relatedAllPlaces,"is_related"),t.queryTab,e.DdM(10,y)))("ngForTrackBy",t.trackByPlace)}}function ot(i,s){1&i&&(e._UZ(0,"div",48),e.TgZ(1,"p",56),e._uU(2,"\u041d\u0435\u0442 \u043c\u0435\u0441\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438"),e.qZA())}function at(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.YNc(1,it,7,11,"ng-container",37),e.YNc(2,ot,3,0,"ng-template",null,72,e.W1O),e.TgZ(4,"div",45),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.addNewRelationElement("place"))}),e._UZ(5,"div",46),e.TgZ(6,"p",47),e._uU(7,"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"),e.qZA()(),e.BQk()}if(2&i){const t=e.MAs(3),n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(null==n.relatedPlaces?null:n.relatedPlaces.length)<(null==n.relatedAllPlaces?null:n.relatedAllPlaces.length))("ngIfElse",t)}}function st(i,s){1&i&&e._UZ(0,"div",48)}function rt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-place-event-row",70),e.NdJ("relationItemDeleteEmit",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onDeleteRelation(o))}),e.qZA()}if(2&i){const t=s.$implicit,n=s.last,o=e.oxw(3);e.Q6J("itemTemplate",t)("itemType","place")("disableDelete",!(null!=o.itemDetail&&o.itemDetail.can_extend))("publicGroupId",o.publicGroupId)("elWithoutBorder",n)}}
1function _t(i,s){if(1&i&&(e.YNc(0,st,1,0,"div",57),e.YNc(1,rt,1,5,"app-place-event-row",69)),2&i){const t=e.oxw(2);e.Q6J("ngIf",null==t.relatedPlaces?null:t.relatedPlaces.length),e.xp6(1),e.Q6J("ngForOf",t.relatedPlaces)("ngForTrackBy",t.trackByPlace)}}function lt(i,s){if(1&i&&(e.TgZ(0,"div",32)(1,"div",33),e.YNc(2,ze,3,0,"p",34),e.YNc(3,et,3,1,"ng-template",null,35,e.W1O),e.qZA(),e.TgZ(5,"div",36),e.YNc(6,at,8,2,"ng-container",37),e.YNc(7,_t,2,3,"ng-template",null,71,e.W1O),e.qZA()()),2&i){const t=e.MAs(4),n=e.MAs(8),o=e.oxw();e.xp6(2),e.Q6J("ngIf",o.isRelationItem&&(null==o.itemDetail?null:o.itemDetail.can_extend))("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",o.isRelationItem)("ngIfElse",n)}}function ct(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-empty-state-page",13),e.NdJ("buttonClick",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.goRoute())}),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("smallContainer",!0)("title",t.getCurrentTextCap("title"))("description",t.getCurrentTextCap("description"))("buttonText",null==t.emptyScreenContent?null:t.emptyScreenContent.buttonText)}}function pt(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",10),e.YNc(2,ct,1,4,"app-empty-state-page",11),e.ALo(3,"async"),e.qZA(),e.BQk()),2&i){const t=e.oxw(2);let n;e.xp6(2),e.Q6J("ngIf",(null==t.itemDetail?null:t.itemDetail.can_extend)&&t.isGetFilters&&!(null!=(n=e.lcZ(3,1,t.app$))&&n.isLoader))}}function ut(i,s){if(1&i&&e._UZ(0,"app-empty-state-page",76),2&i){const t=e.oxw(3);e.Q6J("smallContainer",!0)("title",t.getCurrentTextCap("title"))("description",t.getCurrentTextCap("description"))("buttonText",null==t.emptyScreenContent?null:t.emptyScreenContent.buttonText)("isNotButton",!0)}}function dt(i,s){if(1&i&&(e.TgZ(0,"div",10),e.YNc(1,ut,1,5,"app-empty-state-page",75),e.ALo(2,"async"),e.qZA()),2&i){const t=e.oxw(2);let n;e.xp6(1),e.Q6J("ngIf",t.isGetFilters&&!(null!=(n=e.lcZ(2,1,t.app$))&&n.isLoader))}}function mt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-feed-item",16),e.NdJ("photoClick",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.showGallery(o,a,"note"))})("actionChange",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.updateFeedItem(o,a,"activityItems"))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("dataFeed",t)("publicGroupId",n.publicGroupId)("showGeneralAccessBtn",(null==t?null:t.is_shared)&&!n.isPublicView&&!n.isGuestVisit)("showMoreActionsBtn",!0)}}function gt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-feed-item-interview-answer",17),e.NdJ("actionChange",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.updateFeedItem(o,a,"activityItems"))})("photoClick",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.showGallery(o,a,"interview"))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("data",t)("publicGroupId",n.publicGroupId)("showGeneralAccessBtn",(null==t?null:t.is_shared)&&!n.isPublicView&&!n.isGuestVisit)("showMoreActionsBtn",!0)}}function ht(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-feed-item-person",80),e.NdJ("actionChange",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.updateFeedItem(o,a,"activityItems"))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("dataFeedPerson",t)("publicGroupId",n.publicGroupId)("showGeneralAccessBtn",(null==t?null:t.is_shared)&&!n.isPublicView&&!n.isGuestVisit)("showMoreActionsBtn",!0)}}function ft(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-feed-item-place",81),e.NdJ("actionChange",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.updateFeedItem(o,a,"activityItems"))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("dataFeedPlace",t)("publicGroupId",n.publicGroupId)("showGeneralAccessBtn",(null==t?null:t.is_shared)&&!n.isPublicView&&!n.isGuestVisit)("showMoreActionsBtn",!0)}}function Ct(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-feed-item-event",82),e.NdJ("actionChange",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.updateFeedItem(o,a,"activityItems"))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("dataFeedEvent",t)("publicGroupId",n.publicGroupId)("showGeneralAccessBtn",(null==t?null:t.is_shared)&&!n.isPublicView&&!n.isGuestVisit)("showMoreActionsBtn",!0)}}
1function vt(i,s){if(1&i&&(e.TgZ(0,"div",10),e.YNc(1,mt,1,4,"app-feed-item",14),e.YNc(2,gt,1,4,"app-feed-item-interview-answer",15),e.YNc(3,ht,1,4,"app-feed-item-person",77),e.YNc(4,ft,1,4,"app-feed-item-place",78),e.YNc(5,Ct,1,4,"app-feed-item-event",79),e.qZA()),2&i){const t=s.$implicit;e.xp6(1),e.Q6J("ngIf","note"===t.type),e.xp6(1),e.Q6J("ngIf","interview"===t.type),e.xp6(1),e.Q6J("ngIf","person"===t.type),e.xp6(1),e.Q6J("ngIf","place"===t.type),e.xp6(1),e.Q6J("ngIf","event"===t.type)}}function xt(i,s){if(1&i&&(e.ynx(0),e.YNc(1,pt,4,3,"ng-container",37),e.YNc(2,dt,3,3,"ng-template",null,74,e.W1O),e.YNc(4,vt,6,5,"div",12),e.BQk()),2&i){const t=e.MAs(3),n=e.oxw();e.xp6(1),e.Q6J("ngIf","profile"==n.type)("ngIfElse",t),e.xp6(3),e.Q6J("ngForOf",n.activityItems)}}let Tt=(()=>{class i{constructor(t,n,o,a,r,c,u,C,d,v,bt,yt){this.router=t,this.route=n,this.store=o,this.appService=a,this.errorsService=r,this.commentService=c,this.dialog=u,this.feedService=C,this.interviewService=d,this.personService=v,this.placeService=bt,this.eventService=yt,this.tabs=[{name:"\u0418\u0441\u0442\u043e\u0440\u0438\u0438",count:null,active:!1,type:"story"},{name:"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438",count:null,active:!1,type:"comments"},{name:"\u041f\u0435\u0440\u0441\u043e\u043d\u044b",count:null,active:!1,type:"person"},{name:"\u0421\u043e\u0431\u044b\u0442\u0438\u044f",count:null,active:!1,type:"event"},{name:"\u041c\u0435\u0441\u0442\u0430",count:null,active:!1,type:"place"},{name:"\u0410\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c",count:null,active:!1,type:"activity"}],this.initialPaginationScroll={limit:30,offset:0},this.storyFilter={services:["note","interview_answer"]},this.activityFilter={services:["note","place","person","event","interview_answer"]},this.storyItems=[],this.activityItems=[],this.editingComment={attachments:[],text:null,rich_text:null,invalid:!0},this.relationsData=[],this.isGuestVisit=a.isGuestVisit(),this.isPublicView=a.checkPublicView()}ngOnInit(){}ngOnChanges(t){t&&t.itemDetail&&(this.tabs=[{name:"\u0418\u0441\u0442\u043e\u0440\u0438\u0438",count:null,active:!1,type:"story"},{name:"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438",count:null,active:!1,type:"comments"},{name:"\u041f\u0435\u0440\u0441\u043e\u043d\u044b",count:null,active:!1,type:"person"},{name:"\u0421\u043e\u0431\u044b\u0442\u0438\u044f",count:null,active:!1,type:"event"},{name:"\u041c\u0435\u0441\u0442\u0430",count:null,active:!1,type:"place"},{name:"\u0410\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c",count:null,active:!1,type:"activity"}],this.initTabs())}initTabs(){this.app$=this.store.pipe((0,x.Ys)("app")),("note"===this.type||"interview"===this.type)&&(this.tabs=this.tabs.filter(t=>"story"!==t.type)),this.route.queryParams.subscribe(t=>{this.changeFilters(t&&t.params&&"from-media-map"!==t.params?this.tabs.find(n=>n.type===t.params):this.tabs[0])}),"person"===this.pageType&&this.getDictionaryRelatives()}changeFilters(t){this.clearRelated(),this.isGetFilters=!1,this.relationsData=[],this.queryTab="",this.tabs.map(n=>n.active=!1),t.active=!0,this.activeTab=t,this.storyItems=[],this.activityItems=[],this.store.dispatch({type:l.se,payload:!0}),"note"!==this.type&&"interview"!==this.type&&(this.storyFilter.limit=this.initialPaginationScroll.limit,this.storyFilter.offset=this.initialPaginationScroll.offset,this.getStoryOrActivityData("story")),"place"!==this.type&&"event"!==this.type&&this.itemDetail.real_user?(this.activityFilter.limit=this.initialPaginationScroll.limit,this.activityFilter.offset=this.initialPaginationScroll.offset,this.getStoryOrActivityData("activity")):this.tabs=this.tabs.filter(n=>"activity"!==n.type),this.getAllComments(),this.getEventsOrPlaces("place"),this.getEventsOrPlaces("event"),this.getPersons()}getPersons(){"event"===this.type||"place"===this.type||"note"===this.type||"interview"===this.type?this.getEventsOrPlaces("person"):this.getRelatedPersonData()}getStoryOrActivityData(t,n){"story"===t?this[`${t}Filter`].related_to_id=[[this.idItem]]:this[`${t}Filter`].filter=[{field:"created_by",operator:"eq",value:this.idItem}],this[`${t}Filter`].session_id=n||null,this.appService.getFilterDataFeed(this[`${t}Filter`]).subscribe(o=>{this.activeTab.type===t&&(this.dataCount=o.count,this.sessionId=o.session_id),this[`${t}Items`]=this[`${t}Items`].concat(o.results||[]),this.tabs.find(a=>a.type===t).count=this[`${t}Items`].length,t===this.activeTab.type&&(this.isGetFilters=!0),this.store.dispatch({type:l.se,payload:!1})},()=>{this.appService.pushError("errorGroupBack"),this.store.dispatch({type:l.se,payload:!1}),this.isGetFilters=!0})}getEventsOrPlaces(t){this.appService.getRelationModel(t,this.idItem).subscribe(n=>{if(n.count>0&&n.results){if("event"===t){const o=n.results.filter(a=>a.is_related);this.relatedAllEvents=n.results.sort((a,r)=>h(r?.date_event?.date).diff(h(a?.date_event?.date))),this.relatedEvents=Object.assign([],o).sort((a,r)=>h(r?.date_event?.date).diff(h(a?.date_event?.date))),this.tabs.find(a=>"event"===a.type).count=this.relatedEvents.length}if("place"===t){const o=n.results.filter(a=>a.is_related);this.relatedAllPlaces=n.results,this.relatedPlaces=Object.assign([],o),this.tabs.find(a=>"place"===a.type).count=this.relatedPlaces.length}if("person"===t){const o=n.results.filter(a=>a.is_related);this.relatedAllPersons=n.results,this.relatedPersons=Object.assign([],o),this.tabs.find(a=>"person"===a.type).count=this.relatedPersons.length}}this.store.dispatch({type:l.se,payload:!1})},()=>{this.appService.pushError("errorGroupBack")})}getAllComments(){this.updateCommentToInitialValue(),this.getCommentsLoading=!0,this.commentService.getComments(this.idItem).subscribe(t=>{this.getCommentsLoading=!1,this.relatedComments=t||[],this.tabs.find(n=>"comments"===n.type).count=this.relatedComments.length,this.store.dispatch({type:l.se,payload:!1})},()=>{this.getCommentsLoading=!1,this.appService.pushError("errorGroupBack"),this.store.dispatch({type:l.se,payload:!1})})}getRelatedPersonData(){this.appService.getFilterDataPerson(this.idItem).subscribe(t=>{this.relatedPersons=t.result||[],this.tabs.find(n=>"person"===n.type).count=this.relatedPersons.length,this.store.dispatch({type:l.se,payload:!1})},()=>{this.appService.pushError("errorGroupBack"),this.store.dispatch({type:l.se,payload:!1})})}showMoreElements(t){this.dataCount>this[`${t}Filter`].offset+this[`${t}
1Filter`].limit&&this.isGetFilters&&(this[`${t}Filter`].offset+=this[`${t}Filter`].limit,this.getStoryOrActivityData(t,this.sessionId))}showGallery(t,n,o){this.galleryItem=n,this.galleryItemTypeForShare=o;const a={panelClass:["dialog-box-gallery"],backdropClass:"backdrop-dialog-default",disableClose:!0,data:{slideId:t.id,imageList:t.attachments,type:o,item:{...n,...n[o]}},autoFocus:!1};this.dialog.open(D.S,a).componentInstance.updateStateTrigger.subscribe(c=>this.updateInstance(c))}updateInstance(t){if(this.appService.checkBrowser())if(t.needToUpdateEntity&&t.updatedImages)if(this.store.dispatch({type:l.se,payload:!0}),"note"===this.galleryItemTypeForShare||"interview"===this.galleryItemTypeForShare){const n={title:this.galleryItem.title||null,text:this.galleryItem.text||null,rich_text:this.galleryItem.rich_text||null,person:this.galleryItem.persons?this.galleryItem.persons.map(o=>o.id):null,place:this.galleryItem.places?this.galleryItem.places.map(o=>o.id):null,event:this.galleryItem.events?this.galleryItem.events.map(o=>o.id):null,attachments:t.updatedImages.map(o=>o.id)||null};"note"===this.galleryItemTypeForShare?(n.id=this.galleryItem.id,n.date_note=this.galleryItem.date_note||null,n.date_note_end=this.galleryItem.date_note_end||null,this.feedService.updateNote(n).pipe((0,m.w)(()=>this.getFeedItemByIdAndReplace(this.galleryItem.id)),(0,p.b)(o=>{this[`${this.activeTab.type}Items`]=this[`${this.activeTab.type}Items`].map(a=>a.id===this.galleryItem.id?o.results[0]:a)}),(0,p.b)(()=>this.galleryItem=null),(0,p.b)(()=>this.store.dispatch({type:l.se,payload:!1})),(0,g.K)(o=>(this.store.dispatch({type:l.se,payload:!1}),this.galleryItem=null,this.appService.pushError("back"),o))).subscribe()):"interview"===this.galleryItemTypeForShare&&(n.type_content=this.galleryItem.type_content||3,n.show_in_feed=this.galleryItem.show_in_feed||!0,n.template_type=this.galleryItem.template_type||1,n.parent_id=this.galleryItem.interview.parent_id||null,this.interviewService.updateAnswer(n,this.galleryItem.id).pipe((0,m.w)(()=>this.getFeedItemByIdAndReplace(this.galleryItem.id)),(0,p.b)(o=>{this[`${this.activeTab.type}Items`]=this[`${this.activeTab.type}Items`].map(a=>a.id===this.galleryItem.id?o.results[0]:a)}),(0,p.b)(()=>this.galleryItem=null),(0,p.b)(()=>this.store.dispatch({type:l.se,payload:!1})),(0,g.K)(o=>(this.store.dispatch({type:l.se,payload:!1}),this.galleryItem=null,this.appService.pushError("back"),o))).subscribe())}else if("comment"===this.galleryItemTypeForShare){const n={text:this.galleryItem.text||null,rich_text:this.galleryItem.rich_text||null,attachments:this.galleryItem?.attachments?.some(o=>"audio"===o.meta.type)?t.updatedImages.map(o=>o.id).concat(this.galleryItem?.attachments?.find(o=>"audio"===o.meta.type).id):t.updatedImages.map(o=>o.id)};this.commentService.updateComment(this.galleryItem.id,n).pipe((0,m.w)(()=>this.commentService.getComments(this.idItem)),(0,p.b)(o=>{this.relatedComments=this.relatedComments.map(a=>a.id===this.galleryItem.id?o.find(r=>r.id===this.galleryItem.id):a)}),(0,p.b)(()=>this.galleryItem=null),(0,p.b)(()=>this.store.dispatch({type:l.se,payload:!1})),(0,g.K)(o=>(this.store.dispatch({type:l.se,payload:!1}),this.galleryItem=null,this.appService.pushError("back"),o))).subscribe()}else"comment_temp"===this.galleryItemTypeForShare&&(this.updatedCommentImageList=t.updatedImages||[],this.galleryItem=null,this.store.dispatch({type:l.se,payload:!1}));else this.galleryItem=null}getFeedItemByIdAndReplace(t){return this.appService.getFilterDataFeed({services:["note","interview_answer"],filter:[{field:"id",operator:"eq",value:t}],limit:1})}getCurrentTextCap(t){if(!this.isGetFilters)return null;switch(this.type){case"place":case"event":if("title"===t)return this.emptyScreenContent.title;if("description"===t)return this.emptyScreenContent.description;break;case"profile":case"person":if("activity"===this.activeTab.type){if("profile"===this.type){if("title"===t)return this.emptyScreenContent.title;if("description"===t)return this.emptyScreenContent.description}else if("person"===this.type){if("title"===t)return this.emptyScreenContent.titleActivity;if("description"===t)return this.emptyScreenContent.descriptionActivity}}else if("story"===this.activeTab.type)if("profile"===this.type){if("title"===t)return this.emptyScreenContent.titleProfile;if("description"===t)return this.emptyScreenContent.descriptionProfile}else if("person"===this.type){if("title"===t)return this.emptyScreenContent.titlePerson;if("description"===t)return this.emptyScreenContent.descriptionPerson}}}goRoute(){"activity"!==this.activeTab.type||"profile"!==this.type?"person"===this.type||"profile"===this.type?(this.appService.setDataFromRoute({type:"person",data:this.itemDetail}),this.router.navigate(["feed","new"],{queryParams:{isDataRelated:!0}}
1)):(this.appService.setDataFromRoute({type:this.type,data:this.itemDetail}),this.router.navigate(["feed","new"],{queryParams:{isDataRelated:!0}})):this.router.navigate(["feed","new"])}trackByEvents(t,n){return n.id}trackByPerson(t,n){return n.id}trackByPlace(t,n){return n.id}clearRelated(t){("event"===t||"place"===t)&&(this.relationsData=[]),this.isRelationItem=!1}onBackRelated(t){this.clearRelated(t),this.changeFilters(this.activeTab)}setRelationsStatus(t,n){this.queryTab="",n?t&&"person"===n&&this.getAllRelatedPersons(!0):t&&(this.isRelationItem=t)}getAllRelatedPersons(t){this.store.dispatch({type:l.se,payload:!0}),this.appService.getFilterDataAllRelationPerson(this.idItem).subscribe(n=>{n&&(this.relatedAllPersons=n.result||[],t&&(this.isRelationItem=!0)),this.store.dispatch({type:l.se,payload:!1})},()=>{this.appService.pushError("errorGroupBack"),this.store.dispatch({type:l.se,payload:!1})})}getDictionaryRelatives(){this.appService.getDictionaryRelatives().subscribe(t=>{t&&(this.dictionaryRelatives=t.result||[],this.dictionaryRelativeM=this.dictionaryRelatives.filter(n=>1===n.sex),this.dictionaryRelativeW=this.dictionaryRelatives.filter(n=>1!==n.sex))},()=>{this.appService.pushError("errorGroupBack"),this.store.dispatch({type:l.se,payload:!1})})}onChangePersonRelation(t){if("OK"===t?.status)this.appService.pushDone("relationPerson");else if("ERROR"===t?.status)switch(t.err.error.code){case 105:this.openDoubleRelationDialog(t.err.error.detail[0],t);break;case 100:this.openIncorrectRelationInfoDialog("\u0412\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0443\u044e \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c! \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u043b \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u0438, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438.");break;case 4:this.openIncorrectRelationInfoDialog("\u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d.");break;default:this.appService.pushError("impossibleToCreateRelation")}}onSaveRelations(t,n){if(t&&this.relationsData.length){const o={typeName:t,fields:{main_object:this.idItem}};"event"===n&&(o.fields.event=this.relationsData),"place"===n&&(o.fields.place=this.relationsData),"person"===n&&("event"===this.type||"place"===this.type)&&(o.fields.person=this.relationsData),this.appService.setRelationModel(o,t).subscribe(()=>{this.relationsData=[],this.isRelationItem=!1,this.store.dispatch({type:l.se,payload:!1}),this.changeFilters(this.activeTab)},()=>{this.appService.pushError("errorGroupBack"),this.store.dispatch({type:l.se,payload:!1})})}}setRelations(t){("event"===t.typeName||"place"===t.typeName||"person"===t.typeName)&&(this.relationsData.filter(n=>n===t.item).length?this.relationsData=this.relationsData.filter(n=>n!==t.item):this.relationsData.push(t.item))}onDeleteRelation(t,n){t.typeName&&t.item?this.onAppDelete(t.typeName,t.item,n):(this.appService.pushError("relationDelete"),this.store.dispatch({type:l.se,payload:!1}))}deleteTaxonomyPerson(t){this.store.dispatch({type:l.se,payload:!0}),this.appService.deleteTaxonomyPerson({person_id:this.idItem,to_person_id:t}).subscribe(()=>{this.store.dispatch({type:l.se,payload:!1}),this.changeFilters(this.activeTab),this.appService.pushDone("relationDelete")},()=>{this.appService.pushError("relationDelete"),this.store.dispatch({type:l.se,payload:!1})})}onAppDelete(t,n,o){("event"===t||"place"===t||"person"===t)&&this.appService.deleteRelation(n,this.idItem).subscribe(()=>{this.store.dispatch({type:l.se,payload:!1}),o?this.relationsData=this.relationsData.filter(a=>a!==n):(this.changeFilters(this.activeTab),this.isRelationItem=!1),this.appService.pushDone("relationDelete")},()=>{this.appService.pushError("relationDelete"),this.store.dispatch({type:l.se,payload:!1})})}setSearchQuery(t){this.queryTab=t}setRelationItem(t){this.store.dispatch({type:l.se,payload:!0});let n="relationOther";const o={typeName:t.typeName,fields:{main_object:this.idItem}};if("event"===t.typeName||"place"===t.typeName||"person"===t.typeName)if(this.onCheckItemStringInArray(t.item))this.onDeleteRelation({typeName:t.typeName,item:t.item},!0);else{switch(t.typeName){case"event":o.fields.event=[t.item],n="relationEvent";break;case"place":o.fields.place=[t.item],n="relationPlace";break;case"person":o.typeName="event",o.fields.person=[t.item],n="relationPerson"}this.appService.setRelationModel(o,this.pageType).subscribe(()=>{this.relationsData.push(t.item),this.store.dispatch({type:l.se,payload:!1}),this.appService.pushDone(n)},()=>{this.appService.pushError("errorGroupBack"),this.store.dispatch({type:l.se,payload:!1})})}else this.appService.pushError("errorGroupBack")}onCheckItemStringInArray(t){return this.appService.checkItemStringInArray(t,this.relationsData)}deleteComment(t){this.getCommentsLoading=!0,this.commentService.deleteComment(t).subscribe(()=>{this.appService.pushDone("commentSuccessfullyDeleted"),this.getAllComments()},n=>{this.getCommentsLoading=!1,this.errResponseTrigger(n)})}editComment(t){const n={id:t.id,attachments:t?.attachments||[],text:t.text||null,rich_text:t.rich_text||null,invali
1d:!0};this.editCommentValue=n,this.editingComment=n}updateCommentToInitialValue(){this.editCommentValue=null,this.editingComment=null,this.editingComment={attachments:[],text:null,rich_text:null,invalid:!0}}errResponseTrigger(t){this.store.dispatch({type:l.se,payload:!1}),this.appService.pushError(0===t.status?"errorInternet":"errorGroupBack")}addNewRelationElement(t){this.dialog.open(E.t,{panelClass:["dialog-box","dialog-box-create-instance"],backdropClass:"backdrop-dialog-default",data:{type:t},autoFocus:!1}).afterClosed().subscribe(a=>{if("create"===a.action)switch(a.type){case"event":this.getEventsOrPlaces("event");break;case"place":this.getEventsOrPlaces("place");break;case"person":"event"===this.type||"place"===this.type||"note"===this.type||"interview"===this.type?this.getEventsOrPlaces("person"):(this.getAllRelatedPersons(!0),this.getRelatedPersonData())}})}openIncorrectRelationInfoDialog(t){this.dialog.open(P.W,{panelClass:["dialog-box"],backdropClass:"backdrop-dialog-default",data:{title:"\u0420\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c",description:t},autoFocus:!1}).afterClosed().subscribe(()=>{this.appService.getFilterDataAllRelationPerson(this.itemDetail.id).pipe((0,p.b)(a=>this.relatedAllPersons=a.result||[])).subscribe()})}openDoubleRelationDialog(t,n){const o=this.dictionaryRelatives.find(c=>c.key===n.relative_key),a={panelClass:["dialog-box"],backdropClass:"backdrop-dialog-default",data:{title:"\u0420\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c",description:`\u041f\u0435\u0440\u0441\u043e\u043d\u0430 "${this.getCurrentName(t)}" \u0443\u0436\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u043f\u0435\u0440\u0441\u043e\u043d\u0435 "${this.getCurrentName(t?.to_person)}" \u0441\u043e \u0441\u0432\u044f\u0437\u044c\u044e "${t?.relative_str}". \u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0441\u043e\u043d\u0443 \u0441\u043e \u0441\u0432\u044f\u0437\u044c\u044e "${o.title}"? \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0432\u044f\u0437\u044c \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u0430.`},autoFocus:!1};this.dialog.open(A.c,a).afterClosed().subscribe(c=>{if("yes"===c){const C={person_id:n.to_person_id,relative_key:n.relative_key,to_person_id:this.itemDetail.id};this.appService.deleteTaxonomyPerson({person_id:this.itemDetail.id,to_person_id:t.id}).pipe((0,m.w)(()=>this.appService.setTaxonomyPerson(C)),(0,p.b)(()=>this.appService.pushDone("relationPerson")),(0,g.K)(d=>{switch(d.error.code){case 105:this.openIncorrectRelationInfoDialog("\u041d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432\u0430\u043c\u0438 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0432\u044b\u0435 \u0441\u0432\u044f\u0437\u0438. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u043d\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u0432\u044f\u0437\u0435\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0435\u0440\u0441\u043e\u043d.");break;case 100:this.openIncorrectRelationInfoDialog("\u0412\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0443\u044e \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c! \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u043b \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u0438, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438.");break;
1case 4:this.openIncorrectRelationInfoDialog("\u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d.");break;default:this.appService.pushError("impossibleToCreateRelation")}return(0,w.of)(d)}),(0,m.w)(()=>this.appService.getFilterDataAllRelationPerson(this.itemDetail.id)),(0,p.b)(d=>this.relatedAllPersons=d.result||[])).subscribe()}else this.appService.getFilterDataAllRelationPerson(this.itemDetail.id).pipe((0,p.b)(()=>this.relatedAllPersons=[]),(0,p.b)(u=>this.relatedAllPersons=u.result||[])).subscribe()})}getCurrentName(t){return(t.first_name||t.name)+(t.patronymic?" "+t.patronymic:"")+(t.surname?" "+t.surname:"")+(t.maiden_name?" ("+t.maiden_name+")":"")}updateFeedItem(t,n,o){if("rejectPublicAccess"===t.type&&(n.is_shared=!1),"allowPublicAccess"===t.type&&(n.is_shared=!0),"deleteItem"===t.type){this.store.dispatch({type:l.se,payload:!0});let a=null,r=null,c=null;switch(n.type){case"note":a="feedService",r="deleteNote",c="deleteNoteBack";break;case"interview":a="interviewService",r="deleteAnswer",c="deleteInterviewAnswerBack";break;case"person":a="personService",r="deletePerson",c="deletePersonBack";break;case"place":a="placeService",r="deletePlace",c="deletePlaceBack";break;case"event":a="eventService",r="deleteEvent",c="deleteEventBack"}a&&r&&c&&this[a][r](n.id).pipe((0,p.b)(()=>{this.appService.pushDone(c),this[o]=this[o].filter(u=>u.id!==n.id),this.store.dispatch({type:l.se,payload:!1})}),(0,g.K)(u=>(this.store.dispatch({type:l.se,payload:!1}),this.appService.pushError("person"===n.type&&99===u.error.code?"impossibleDeletePersonWithRelatives":"errorGroupBack"),u))).subscribe()}}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(T.F0),e.Y36(T.gz),e.Y36(x.yh),e.Y36(M.z),e.Y36(F.r),e.Y36(O.O),e.Y36(R.uw),e.Y36(B.q),e.Y36(G.n),e.Y36(Z.L),e.Y36(N.E),e.Y36(k.P))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-tabs-content"]],inputs:{idItem:"idItem",itemDetail:"itemDetail",type:"type",pageType:"pageType",emptyScreenContent:"emptyScreenContent",publicGroupId:"publicGroupId"},features:[e.TTD],decls:11,vars:13,consts:[["infinite-scroll","",3,"infiniteScrollDistance","infiniteScrollThrottle","scrolled"],[1,"tabs-content__list"],["class","tabs-content__list-el",3,"tabs-content__list-el--active","click",4,"ngFor","ngForOf"],[1,"tabs-content__wrapper"],[4,"ngIf"],["class","tabs-content__part-area comments-area",4,"ngIf"],["class","tabs-content__part-area",4,"ngIf"],[1,"tabs-content__list-el",3,"click"],["class","tabs-content__list-el-count",4,"ngIf"],[1,"tabs-content__list-el-count"],[1,"tabs-content__el"],[3,"smallContainer","title","description","buttonText","buttonClick",4,"ngIf"],["class","tabs-content__el",4,"ngFor","ngForOf"],[3,"smallContainer","title","description","buttonText","buttonClick"],[3,"dataFeed","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","photoClick","actionChange",4,"ngIf"],[3,"data","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange","photoClick",4,"ngIf"],[3,"dataFeed","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","photoClick","actionChange"],[3,"data","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange","photoClick"],[1,"tabs-content__part-area","comments-area"],["class","comments-area__create",3,"comments-area__create--edit",4,"ngIf"],[1,"comments-area__wrapper"],["class","comments-area__wrapper-spinner",4,"ngIf"],[1,"comments-area__create"],[3,"instanceId","commentValue","editCommentValue","updatedImageList","triggerShowGallery","createOrUpdateActionTrigger","cancelEditActionTrigger",4,"ngIf"],[3,"instanceId","commentValue","editCommentValue","updatedImageList","triggerShowGallery","createOrUpdateActionTrigger","cancelEditActionTrigger"],["class","comments-area__element",4,"ngFor","ngForOf"],["class","comments-area__empty-text",4,"ngIf"],[1,"comments-area__element"],[3,"data","triggerShowGallery","deleteTriggerState","editTriggerState"],[1,"comments-area__empty-text"],[1,"comments-area__wrapper-spinner"],[3,"diameter","strokeWidth"],[1,"tabs-content__part-area"],[1,"tabs-content__part-head","part-head"],["class","part-head__title",3,"click",4,"ngIf","ngIfElse"],["elseNeedSave",""],[1,"tabs-content__part-list","part-list"],[4,"ngIf","ngIfElse"],["elseChoosePerson",""],[1,"part-head__title",3,"click"],[1,"part-head__title-icon",2,"background-image","url(/assets/img/about_new/>_black.svg)"],[1,"part-head__title"],[3,"text","clickTrigger",4,"ngIf"],[3,"text","clickTrigger"],["notPersonRelated",""],[1,"part-list__add-new",3,"click"],[1,"part-list__add-new-icon"],[1,"part-list__add-new-text"],[1,"part-list__separator"],[1,"part-list__search"],[3,"placeholder","searchQueryState"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"person","isNotRead","isRelation","keyRelation","publicGroupId","elWithoutBorder","toPersonId","changePersonRelation",4,"ngIf"],[3,"person","isNotRead","isRelation","keyRelation","publicGroupId","isAppDelete","elWithoutBorder","toPersonId","changePersonRelation",4,"ngIf"],[3,"person","isNotRead","isRelation","keyRelation","publicGroupId","elWithoutBorder","toPersonId","changePersonRelation"],[3,"person","isNotRead","isRelation","keyRelation","publicGroupId","isAppDelete","elWithoutBorder","toPersonId","changePersonRelation"],[1,"part-list__not-found"],["class","part-list__separator",4,"ngIf"],[3,"person","publicGroupId","isAppDelete","elWithoutBorder","appDelete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"person","publicGroupId","isAppDelete","elWithoutBorder","appDelete"],["class","part-list__person-relation",4,"ngIf","ngIfElse"],[1,"part-list__person-relation"],["notPersonsRelated",""],[3,"person","isNotRead","relationsItems","publicGroupId","isAppDelete","elWithoutBorder","setRelationItem"],[3,"person","isAppDelete","publicGroupId","elWithoutBorder","appDelete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"person","isAppDelete","publicGroupId","elWithoutBorder","appDelete"],["elseChooseEvent",""],["notEventRelated",""],[3,"itemTemplate","itemType","isRead","relationsItems","publicGroupId","elWithoutBorder","relationItemEmit"],[3,"itemTemplate","itemType","disableDelete","publicGroupId","elWithoutBorder","relationItemDeleteEmit",4,"ngFor","ngForOf","ngForTrackBy"],[3,"itemTemplate","itemType","disableDelete","publicGroupId","elWithoutBorder","relationItemDeleteEmit"],["elseChoosePlace",""],["notPlaceRelated",""],[3,"itemTemplate","itemType","isRead","relationsItems","publicGroupId","elWithoutBorder","relationItemEmit",4,"ngIf"],["notProfileEmptyFilter",""],[3,"smallContainer","title","description","buttonText","isNotButton",4,"ngIf"],[3,"smallContainer","title","description","buttonText","isNotButton"],[3,"dataFeedPerson","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange",4,"ngIf"],[3,"dataFeedPlace","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange",4,"ngIf"],[3,"dataFeedEvent","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange",4,"ngIf"],[3,"dataFeedPerson","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange"],[3,"dataFeedPlace","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange"],[3,"dataFeedEvent","publicGroupId","showGeneralAccessBtn","showMoreActionsBtn","actionChange"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.NdJ("scrolled",function(){return n.showMoreElements(n.activeTab.type)}),e.TgZ(1,"div",1),e.YNc(2,ie,4,5,"button",2),e.qZA(),e.TgZ(3,"div",3),e.YNc(4,_e,5,4,"ng-container",4),e.YNc(5,ge,5,3,"div",5),e.YNc(6,De,9,4,"div",6),e.YNc(7,Je,9,4,"div",6),e.YNc(8,je,9,4,"div",6),e.YNc(9,lt,9,4,"div",6),e.YNc(10,xt,5,3,"ng-container",4),e.qZA()()),2&t&&(e.Gre("tabs-content tabs-content--",n.pageType,""),e.Q6J("infiniteScrollDistance",2)("infiniteScrollThrottle",10),e.xp6(2),e.Q6J("ngForOf",n.tabs),e.xp6(2),e.Q6J("ngIf","story"===n.activeTab.type),e.xp6(1),e.Q6J("ngIf","comments"===n.activeTab.type),e.xp6(1),e.Q6J("ngIf","person"===n.activeTab.type&&("person"===n.type||"profile"===n.type)),e.xp6(1),e.Q6J("ngIf","person"===n.activeTab.type&&("event"===n.type||"place"===n.type||"note"===n.type||"interview"===n.type)),e.xp6(1),e.Q6J("ngIf","event"===n.activeTab.type),e.xp6(1),e.Q6J("ngIf","place"===n.activeTab.type),e.xp6(1),e.Q6J("ngIf","activity"===n.activeTab.type))},dependencies:[f.sg,f.O5,S.Ou,J.R,Q.d,K.V,U.g,Y.N,W.W,L.x,$.E,H.n,q.L,V.g,j.o,z.h,f.Ov,X.K,ee.C],styles:['.tabs-content--note[_ngcontent-%COMP%], .tabs-content--interview[_ngcontent-%COMP%]{border:1px solid #D4D4D4;border-radius:10px}.tabs-content--note[_ngcontent-%COMP%] .tabs-content__list[_ngcontent-%COMP%], .tabs-content--interview[_ngcontent-%COMP%] .tabs-content__list[_ngcontent-%COMP%]{padding:20px 20px 0;margin-bottom:0;border-bottom:1px solid #D4D4D4;border-top-right-radius:10px;border-top-left-radius:10px}.tabs-content--note[_ngcontent-%COMP%] .tabs-content__list-el[_ngcontent-%COMP%], .tabs-content--interview[_ngcontent-%COMP%] .tabs-content__list-el[_ngcontent-%COMP%]{padding-bottom:20px}.tabs-content--note[_ngcontent-%COMP%] .tabs-content__part-area[_ngcontent-%COMP%], .tabs-content--interview[_ngcontent-%COMP%] .tabs-content__part-area[_ngcontent-%COMP%]{border:none;border-radius:0 0 10px 10px}.tabs-content__list[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background-color:#fff;white-space:nowrap;margin-bottom:30px}.tabs-content__list-el[_ngcontent-%COMP%]{cursor:pointer;padding-bottom:12px;text-align:center;border-bottom:1px solid transparent;transition:all .2s ease-out;color:#000;font-weight:400;font-size:16px;line-height:20px;font-family:PT-Root-UI-Regular,Helvetica,Arial,sans-serif;font-style:normal}@media only screen and (max-width: 1300px){.tabs-content__list-el[_ngcontent-%COMP%]{font-size:16px;line-height:20px}}@media only screen and (max-width: 1000px){.tabs-content__list-el[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.tabs-content__list-el[_ngcontent-%COMP%]:hover{color:#3a0ca3;border-color:#3a0ca3}.tabs-content__list-el--active[_ngcontent-%COMP%]{cursor:default;color:#3a0ca3;border-color:#3a0ca3}.tabs-content__list-el-count[_ngcontent-%COMP%]{color:#3a0ca3}.tabs-content__el[_ngcontent-%COMP%]{margin-bottom:20px}.tabs-content__part-area[_ngcontent-%COMP%]{padding:20px;background-color:#fff;border-radius:10px;border:1px solid #D4D4D4}.part-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.part-head__title[_ngcontent-%COMP%]{display:flex;align-items:center;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){.part-head__title[_ngcontent-%COMP%]{font-size:18px;line-height:23px}}@media only screen and (max-width: 1000px){.part-head__title[_ngcontent-%COMP%]{font-size:16px;line-height:20px}}.part-head__title-icon[_ngcontent-%COMP%]{cursor:pointer;background-repeat:no-repeat;background-position:center;background-size:contain;width:10px;height:10px;margin-right:10px;transform:rotate(180deg)}.comments-area__create[_ngcontent-%COMP%]{z-index:11;position:relative;background-color:#fff;width:calc(100% + 40px);margin-left:-20px;margin-top:-20px;padding:20px;border-radius:10px 10px 0 0}.comments-area__create--edit[_ngcontent-%COMP%]{background-color:#eaecee}.comments-area__create[_ngcontent-%COMP%]:before{position:absolute;content:"";width:100%;height:1px;left:0;bottom:0;background-color:#d4d4d4}.comments-area__wrapper[_ngcontent-%COMP%]{width:calc(100% + 40px);padding:20px;margin-bottom:-20px;margin-left:-20px}.comments-area__wrapper-spinner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.comments-area__wrapper-spinner[_ngcontent-%COMP%] .mat-progress-spinner circle, .comments-area__wrapper-spinner[_ngcontent-%COMP%] .mat-spinner circle{stroke:#d4d4d4}.comments-area__element[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}.comments-area__element[_ngcontent-%COMP%]:before{content:"";position:absolute;
1left:-20px;bottom:0;width:calc(100% + 40px);height:1px;background-color:#d4d4d4}.comments-area__element[_ngcontent-%COMP%]:last-child{padding-bottom:0;margin-bottom:0}.comments-area__element[_ngcontent-%COMP%]:last-child:before{display:none}.comments-area__empty-text[_ngcontent-%COMP%]{margin:0;text-align:center;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){.comments-area__empty-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.comments-area__empty-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.part-list__separator[_ngcontent-%COMP%]{width:calc(100% + 40px);height:1px;background-color:#d4d4d4;margin-top:20px;margin-left:-20px}.part-list__add-new[_ngcontent-%COMP%]{cursor:pointer;position:relative;display:flex;align-items:center;padding-top:20px}.part-list__add-new[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-20px;width:calc(100% + 40px);height:1px;background-color:#d4d4d4}.part-list__add-new-icon[_ngcontent-%COMP%]{position:relative;width:40px;height:40px;border-radius:50%;background-color:#3a0ca31a;margin-right:20px}.part-list__add-new-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;left:calc(50% - 8px);top:calc(50% - 1px);background:#3A0CA3;width:16px;height:2px}.part-list__add-new-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;left:calc(50% - 1px);top:calc(50% - 8px);background:#3A0CA3;width:2px;height:16px}.part-list__add-new-text[_ngcontent-%COMP%]{margin:0;color:#3a0ca3;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){.part-list__add-new-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.part-list__add-new-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.part-list__not-found[_ngcontent-%COMP%]{margin:24px 0;text-align:center;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){.part-list__not-found[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.part-list__not-found[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.part-list__search[_ngcontent-%COMP%]{margin:20px 0}@media only screen and (max-width: 1000px){.tabs-content__list[_ngcontent-%COMP%]{overflow:auto}.tabs-content__list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.tabs-content__list-el[_ngcontent-%COMP%]{margin-right:16px;padding:12px 0 10px}.tabs-content__list-el[_ngcontent-%COMP%]:last-child{margin-right:0}.part-list__person-relation[_ngcontent-%COMP%] .person-row{flex-wrap:nowrap}.part-list__person-relation[_ngcontent-%COMP%] .person-row__info{width:calc(100% - 76px);margin-bottom:0}.part-list__person-relation[_ngcontent-%COMP%] .person-row__right{margin-left:0}}']}),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.