PageSourceSearch

https://family-universe.ru/7898.da792172e9242c5b.js

js family-universe.ru collected 2026-09-24 11:58:09 UTC 35,644 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfamily_legends=self.webpackChunkfamily_legends||[]).push([[7898],{77898:(at,x,r)=>{r.r(x),r.d(x,{FamilyModule:()=>it});var p=r(36895),M=r(32250),l=r(24006),u=r(88651),f=r(4707),s=r(65256),g=r(82722),t=r(94650),O=r(37556),m=r(89653);let F=(()=>{class n{constructor(e,o,a){this.router=e,this.authService=o,this.store=a,this.destroyed$=new f.t(1)}ngOnInit(){this.authStore$=this.authService.authStore$,this.authStore$.pipe((0,g.R)(this.destroyed$)).subscribe(e=>{this.authData=e}),this.routerEvents$=this.router.events.pipe((0,g.R)(this.destroyed$)).subscribe(e=>{e instanceof u.m2&&this.checkNavigateRoute(e)}),this.checkRoute()}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}routeGroup(){this.router.navigate(this.authData.userLoginData.groups_invited&&this.authData.userLoginData.groups_invited.length?["family","choose"]:["family","name"])}checkNavigateRoute(e){this.authData.userLoginData&&this.authData.userLoginData.is_new&&!e.url.match(/new/g)&&this.routeGroup()}checkRoute(){this.authData.userLoginData?this.authData.userLoginData.is_new?this.routeGroup():this.authData.userLoginData.groups_invited&&this.authData.userLoginData.groups_invited.length?this.router.navigate(["family","choose"]):this.store.dispatch({type:s.mM}):this.router.navigate(["feed"])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.F0),t.Y36(O.e),t.Y36(m.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-family"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},dependencies:[u.lC],styles:['[_nghost-%COMP%]     .ft-upblock-header{text-align:center;padding:40px 0 70px;font-size:0}[_nghost-%COMP%]     .ft-upblock--family__image{display:inline-block}[_nghost-%COMP%]     .ft-upblock--family .ft-upblock__title{padding:22px 0 18px;border-bottom:none}[_nghost-%COMP%]     .ft-upblock--family .ft-upblock__wrapper{display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%]     .ft-upblock--family .ft-upblock__controls{padding:30px 0}[_nghost-%COMP%]     .ft-upblock__wrapper{background:#FFFFFF;border:1px solid #D4D4D4;border-radius:10px;width:497px;margin:0 auto;box-sizing:border-box}[_nghost-%COMP%]     .ft-upblock__content{display:flex;justify-content:space-between;padding:24px 24px 0}[_nghost-%COMP%]     .ft-upblock__content._family-rows{flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline:none}[_nghost-%COMP%]     .ft-upblock__title{padding:26px 0;text-align:center;border-bottom:1px solid #D4D4D4;color:#000;font-weight:400;font-size:22px;line-height:28px;font-family:PT-Root-UI-Medium,Helvetica,Arial,sans-serif;font-style:normal}@media only screen and (max-width: 1300px){[_nghost-%COMP%]     .ft-upblock__title{font-size:20px;line-height:28px}}@media only screen and (max-width: 1000px){[_nghost-%COMP%]     .ft-upblock__title{font-size:18px;line-height:23px}}[_nghost-%COMP%]     .ft-upblock__desc{padding-bottom:9px;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){[_nghost-%COMP%]     .ft-upblock__desc{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){[_nghost-%COMP%]     .ft-upblock__desc{font-size:14px;line-height:18px}}[_nghost-%COMP%]     .ft-upblock__subtitle{padding:16px 0 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){[_nghost-%COMP%]     .ft-upblock__subtitle{font-size:18px;line-height:23px}}@media only screen and (max-width: 1000px){[_nghost-%COMP%]     .ft-upblock__subtitle{font-size:16px;line-height:20px}}[_nghost-%COMP%]     .ft-upblock__add{border-top:1px solid #D4D4D4;text-align:center;padding:17px 0}[_nghost-%COMP%]     .ft-upblock__add .ft-upblock__add-inner{display:flex;justify-content:space-between;align-items:center;align-content:center;padding-left:24px;padding-right:24px}[_nghost-%COMP%]     .ft-upblock__form{max-width:352px;padding:12px;margin:0 auto}[_nghost-%COMP%]     .ft-upblock__button:hover{opacity:.9}[_nghost-%COMP%]     .ft-upblock__legend{font-size:12px;line-height:16px;color:#0009}[_nghost-%COMP%]     .ft-upblock--family-final .ft-upblock__title{padding-bottom:21px;border-bottom:none}[_nghost-%COMP%]     .ft-upblock--family-final .ft-upblock__wrapper{padding:0 44px 30px}[_nghost-%COMP%]     .ft-upblock--family-final .ft-upblock__button{min-width:248px}[_nghost-%COMP%]     .ft-upblock--family-final .ft-upblock__controls{padding:30px 0}[_nghost-%COMP%]     .ft-family-tab{cursor:pointer;max-width:50%;margin-bottom:24px}[_nghost-%COMP%]     .ft-family-tab__wrapper{padding-bottom:15px;position:relative;border-radius:10px;border:1px solid #D4D4D4;overflow:hidden}[_nghost-%COMP%]     .ft-family-tab__image-container{position:relative;width:100%;height:144px;overflow:hidden}
1[_nghost-%COMP%]     .ft-family-tab__image{z-index:2;position:relative;width:100%;height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;border-radius:0}[_nghost-%COMP%]     .ft-family-tab__image--default{position:relative;width:100%;height:144px;overflow:hidden;background-size:30%;background-color:#0000000d}[_nghost-%COMP%]     .ft-family-tab__blur{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}[_nghost-%COMP%]     .ft-family-tab__title{padding:10px 10px 0;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){[_nghost-%COMP%]     .ft-family-tab__title{font-size:18px;line-height:23px}}@media only screen and (max-width: 1000px){[_nghost-%COMP%]     .ft-family-tab__title{font-size:16px;line-height:20px}}[_nghost-%COMP%]     .ft-family-tab:hover .ft-family-tab__title{text-decoration:underline}[_nghost-%COMP%]     .ft-family-tab__desc{padding:0 10px;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){[_nghost-%COMP%]     .ft-family-tab__desc{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){[_nghost-%COMP%]     .ft-family-tab__desc{font-size:14px;line-height:18px}}[_nghost-%COMP%]     .ft-family-tab__count{display:flex;align-items:center;padding:0 10px}[_nghost-%COMP%]     .ft-family-tab__count-icon{width:16px;height:16px;margin-right:5px;background-position:center;background-size:contain;background-repeat:no-repeat}[_nghost-%COMP%]     .ft-family-tab__count-text{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){[_nghost-%COMP%]     .ft-family-tab__count-text{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){[_nghost-%COMP%]     .ft-family-tab__count-text{font-size:14px;line-height:18px}}[_nghost-%COMP%]     .family-check-choosed{display:block;position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:3;transition:background-color .2s}[_nghost-%COMP%]     .family-check-choosed .family-check-choosed__i{display:none}[_nghost-%COMP%]     .family-check-choosed._active{background-color:#ffffff40}[_nghost-%COMP%]     .family-check-choosed._active .family-check-choosed__i{display:block;width:20px;height:20px;background-color:#3a0ca3;position:absolute;right:10px;top:10px;border-radius:50%}[_nghost-%COMP%]     .family-check-choosed._active .family-check-choosed__i:before{content:"";position:absolute;right:5px;top:6px;display:block;width:8px;height:4px;border-left:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;transform:rotate(-45deg);box-sizing:content-box}@media only screen and (max-width: 1000px){[_nghost-%COMP%]     .ft-upblock--family__image{width:81px}[_nghost-%COMP%]     .ft-upblock-header{padding:0 0 24px}[_nghost-%COMP%]     .ft-upblock__wrapper{width:100%}[_nghost-%COMP%]     .ft-upblock__content{padding:16px 16px 0}[_nghost-%COMP%]     .ft-upblock__title{padding:16px 0}[_nghost-%COMP%]     .ft-upblock__add{padding:16px}[_nghost-%COMP%]     .ft-upblock__add .ft-upblock__add-inner{padding:0}[_nghost-%COMP%]     .ft-family-tab{max-width:100%;width:100%}}']}),n})();var d=r(60779),k=r(28193);let T=(()=>{class n{constructor(e){this.store=e}ngOnInit(){this.store.dispatch({type:d.uQ}),this.store.dispatch({type:d.TG})}onSubmit(e){this.store.dispatch({type:s.Tl,payload:{group_name:e.group_name,group_attachment:e.attachment}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-family-new"]],decls:10,vars:0,consts:[[1,"l-container"],[1,"l-left"],[1,"l-center"],[1,"ft-upblock-header"],[1,"ft-upblock--family__image"],["src","/assets/img/about_new/logo.svg","width","162","height","60","alt","\u0421\u0435\u043c\u0435\u0439\u043d\u044b\u0435 \u043b\u0435\u0433\u0435\u043d\u0434\u044b"],[1,"ft-upblock","ft-upblock--family"],[1,"ft-upblock__wrapper"],[3,"submitForm"],[1,"l-right"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"img",5),t.qZA()(),t.TgZ(6,"div",6)(7,"div",7)(8,"app-group-new-form",8),t.NdJ("submitForm",function(c){return o.onSubmit(c)}),t.qZA()()()(),t._UZ(9,"div",9),t.qZA())},dependencies:[k.k]}),n})();var y=r(93479),b=r(74824),Z=r(13829);const C=function(n){return{"background-image":n}};function A(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",29),t._UZ(2,"div",30)(3,"div",31),t.qZA(),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(2),t.Q6J("ngStyle",t.VKq(2,C,"url("+e.attachment.url+")")),t.xp6(1),t.Q6J("ngStyle",t.VKq(4,C,"url("+e.attachment.url+")"))}}function z(n,i){if(1&n&&(t.ynx(0),t.YNc(1,A,4,6,"ng-container",21),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngIf",e.attachment.url)}}function D(n,i){1&n&&t._UZ(0,"div",32)}
1function S(n,i){if(1&n&&(t.ynx(0),t.YNc(1,z,2,1,"ng-container",27),t.ALo(2,"attachImage"),t.YNc(3,D,1,0,"ng-template",null,28,t.W1O),t.BQk()),2&n){const e=t.MAs(4),o=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,o.attachment))("ngIfElse",e)}}function U(n,i){if(1&n&&(t.TgZ(0,"p",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.group_name)}}function I(n,i){if(1&n&&(t.TgZ(0,"p",34),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",(0===(null==e||null==e.person_owner?null:e.person_owner.sex)?"\u0412\u0430\u0441 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b\u0430: ":"\u0412\u0430\u0441 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b: ")+(null==e?null:e.sender_name)," ")}}function N(n,i){if(1&n&&(t.TgZ(0,"div",35),t._UZ(1,"div",36),t.TgZ(2,"p",37),t._uU(3),t.qZA()()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(e.count_users)}}const R=function(n){return{_active:n}};function $(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",19)(2,"div",20),t.YNc(3,S,5,4,"ng-container",21),t.YNc(4,U,2,1,"p",22),t.YNc(5,I,2,1,"p",23),t.YNc(6,N,4,1,"div",24),t.TgZ(7,"div",25),t.NdJ("click",function(){const c=t.CHM(e).$implicit,_=t.oxw(3);return t.KtG(_.onChooseFamily(c.id))}),t._UZ(8,"div",26),t.qZA()()(),t.BQk()}if(2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(3),t.Q6J("ngIf",e),t.xp6(1),t.Q6J("ngIf",e.group_name),t.xp6(1),t.Q6J("ngIf",null==e?null:e.sender_name),t.xp6(1),t.Q6J("ngIf",(null==e?null:e.count_users)||0===(null==e?null:e.count_users)),t.xp6(1),t.Q6J("ngClass",t.VKq(5,R,o.onIsChoose(e.id)))}}const E=function(){return["/family","new"]};function J(n,i){1&n&&t._UZ(0,"app-button-primary",38),2&n&&t.Q6J("text","\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0441\u0435\u043c\u044c\u044e")("mode","blue")("routerLink",t.DdM(3,E))}function L(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"div",12),t._uU(2,"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0435\u043c\u044c\u044e"),t.qZA(),t.TgZ(3,"div",13),t.YNc(4,$,9,7,"ng-container",14),t.qZA(),t.TgZ(5,"div",15)(6,"div",16)(7,"app-button-primary",17),t.NdJ("clickTrigger",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(null!=a.aGroupsAccepted&&a.aGroupsAccepted.length?a.onSaveChoose():a.onGoEmpty())}),t.ALo(8,"async"),t.ALo(9,"async"),t.qZA(),t.YNc(10,J,1,4,"app-button-primary",18),t.qZA()()()}if(2&n){const e=t.oxw().ngIf,o=t.oxw();let a,c;t.xp6(4),t.Q6J("ngForOf",null==e.userLoginData?null:e.userLoginData.groups_invited),t.xp6(3),t.Q6J("text",null!=o.aGroupsAccepted&&o.aGroupsAccepted.length?"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c":"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c")("disabled",null==(a=t.lcZ(8,5,o.appStore$))?null:a.isProfileUpdateLoader)("showSpinner",null==(c=t.lcZ(9,7,o.appStore$))?null:c.isProfileUpdateLoader),t.xp6(3),t.Q6J("ngIf",null==e||null==e.userLoginData?null:e.userLoginData.is_new)}}function G(n,i){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"div",2),t.TgZ(2,"div",3)(3,"div",4)(4,"div",5),t._UZ(5,"img",6),t.qZA()(),t.TgZ(6,"div",7)(7,"div",8),t.YNc(8,L,11,9,"div",9),t.qZA()()(),t._UZ(9,"div",10),t.qZA()),2&n){const e=i.ngIf;t.xp6(8),t.Q6J("ngIf",null==e.userLoginData?null:e.userLoginData.groups_invited)}}let Q=(()=>{class n{constructor(e,o){this.store=e,this.analyticsService=o,this.aGroupsAccepted=[],this.aGroupsDismissed=[],this.destroyed$=new f.t(1)}ngOnInit(){this.auth$=this.store.pipe((0,m.Ys)("auth")),this.appStore$=this.store.pipe((0,m.Ys)("app"),(0,g.R)(this.destroyed$)),this.store.dispatch({type:d.uQ,payload:null}),this.store.dispatch({type:d.TG,payload:null})}ngOnDestroy(){this.store.dispatch({type:s.$W,payload:!1}),this.destroyed$.next(!0),this.destroyed$.complete()}onChooseFamily(e){let o=JSON.parse(JSON.stringify(this.aGroupsAccepted));this.onIsChoose(e)?o=this.aGroupsAccepted.filter(a=>a!==e):o.push(e),this.aGroupsAccepted=o,this.store.dispatch({type:d.uQ,payload:this.aGroupsAccepted.length?this.aGroupsAccepted:null})}onIsChoose(e){return!(!e||!this.aGroupsAccepted.filter(o=>o===e).length)}onGoEmpty(){this.store.dispatch({type:s.$W,payload:!0}),this.store.dispatch({type:s.R_})}
1onSaveChoose(){this.store.dispatch({type:s.$W,payload:!0}),this.aGroupsAccepted&&this.aGroupsAccepted.length&&this.aGroupsAccepted.forEach(()=>{this.firebaseSendEvents()}),this.store.dispatch({type:s.R_})}firebaseSendEvents(){this.analyticsService.logEvent("fbs_invite_accepted")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.yh),t.Y36(y.y))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-family-set"]],decls:2,vars:3,consts:[["class"," l-container",4,"ngIf"],[1,"l-container"],[1,"l-left"],[1,"l-center"],[1,"ft-upblock-header"],[1,"ft-upblock--family__image"],["src","/assets/img/about_new/logo.svg","width","162","height","60","alt","\u0421\u0435\u043c\u0435\u0439\u043d\u044b\u0435 \u043b\u0435\u0433\u0435\u043d\u0434\u044b"],[1,"ft-page-content__body"],[1,"ft-upblock"],["class","ft-upblock__wrapper",4,"ngIf"],[1,"l-right"],[1,"ft-upblock__wrapper"],[1,"ft-upblock__title"],[1,"ft-upblock__content","_family-rows"],[4,"ngFor","ngForOf"],[1,"ft-upblock__add"],[1,"ft-upblock__add-inner"],[3,"text","disabled","showSpinner","clickTrigger"],[3,"text","mode","routerLink",4,"ngIf"],[1,"ft-family-tab"],[1,"ft-family-tab__wrapper"],[4,"ngIf"],["class","ft-family-tab__title",4,"ngIf"],["class","ft-family-tab__desc",4,"ngIf"],["class","ft-family-tab__count",4,"ngIf"],[1,"family-check-choosed",3,"ngClass","click"],[1,"family-check-choosed__i"],[4,"ngIf","ngIfElse"],["elseNotImagePersonDetailMain",""],[1,"ft-family-tab__image-container"],[1,"ft-family-tab__blur",3,"ngStyle"],[1,"ft-family-tab__image",3,"ngStyle"],[1,"ft-family-tab__image","ft-family-tab__image--default",2,"background-image","url(/assets/img/about_new/capability_group.svg)"],[1,"ft-family-tab__title"],[1,"ft-family-tab__desc"],[1,"ft-family-tab__count"],[1,"ft-family-tab__count-icon",2,"background-image","url(/assets/img/about_new/persons_purple.svg)"],[1,"ft-family-tab__count-text"],[3,"text","mode","routerLink"]],template:function(e,o){1&e&&(t.YNc(0,G,10,1,"div",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.auth$))},dependencies:[p.mk,p.sg,p.O5,p.PC,u.rH,b.b,p.Ov,Z.o]}),n})();var Y=r(63900),B=r(86757),H=r(42410),q=r(36705),h=r(59549),j=r(284);const v=function(n){return{"background-image":n}};
1function K(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",19),t._UZ(1,"div",20)(2,"div",21),t.TgZ(3,"div",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.clearFile())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,v,"url("+e.imageUrl+")")),t.xp6(1),t.Q6J("ngStyle",t.VKq(4,v,"url("+e.imageUrl+")"))}}function V(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",23),t._UZ(1,"div",24),t.TgZ(2,"p",25),t._uU(3,"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0444\u043e\u0442\u043e"),t.qZA(),t.TgZ(4,"p",26),t._uU(5,"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f"),t.qZA(),t._UZ(6,"label",27),t.TgZ(7,"input",28),t.NdJ("change",function(a){t.CHM(e);const c=t.oxw();return t.KtG(c.onFileChange(a))})("click",function(a){t.CHM(e);const c=t.oxw();return t.KtG(c.onInputClick(a))}),t.qZA()()}if(2&n){const e=t.oxw();t.ekj("form-container__attach-image--error",e.checkFieldInvalidText("file"))}}function W(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();
1t.xp6(1),t.hij(" ",e.checkFieldInvalidText("name")," ")}}const X=[{path:"",component:F,children:[{path:"new",component:T},{path:"name",component:(()=>{class n{constructor(e,o,a,c,_){this.store=e,this.validatorsService=o,this.appService=a,this.uploadService=c,this.analyticsService=_,this.destroyed$=new f.t(1),this.imageUrl=""}ngOnInit(){this.appStore$=this.store.pipe((0,m.Ys)("app"),(0,g.R)(this.destroyed$)),this.newFamilyForm=new l.nJ({name:new l.p4("",[l.kI.required,l.kI.maxLength(50)]),attachment:new l.p4("",[]),file:new l.p4("",[])}),this.clearFile(),this.newFamilyForm.reset()}ngOnDestroy(){this.store.dispatch({type:s.$W,payload:!1}),this.destroyed$.next(!0),this.destroyed$.complete()}ngSubmit(){this.store.dispatch({type:s.$W,payload:!0});const e={group_name:this.newFamilyForm.get("name").value};this.newFamilyForm.get("file").value?this.appService.saveNewFile(this.fileUpload).pipe((0,Y.w)(o=>this.uploadService.getUnboundAttachments({id:[o.id]}))).subscribe(o=>{o[0]&&o[0].id&&(e.group_attachment=o[0].id),this.store.dispatch({type:s.Tl,payload:e})},o=>{this.appService.pushError(0===o.status?"errorPhotoUpload":"errorFile")}):this.store.dispatch({type:s.Tl,payload:e}),this.analyticsService.logEvent("fbs_registration_familyname_added")}checkFieldInvalidText(e){return this.validatorsService.checkFieldInvalidText(this.newFamilyForm,e)}checkValidFormDisable(){return!(this.newFamilyForm.get("name").valid&&!this.newFamilyForm.pristine)}trimField(e,o){this.newFamilyForm.get(o).setValue(e.target.value.trim())}onInputClick(e){e.target.value=""}onFileChange(e){const o=e.target.files[0];if(o){if(this.fileUpload=o,!(o.type.match("image.png")||o.type.match("image.jpeg")||o.type.match("image.x-png")||o.type.match("image.webp")))return void this.newFamilyForm.get("file").setErrors({back:!0});const a=new FileReader;a.onload=()=>{this.imageUrl=a.result},a.readAsDataURL(o),this.newFamilyForm.get("file").patchValue(o)}}clearFile(){this.newFamilyForm.get("file").value&&(this.imageUrl="",this.fileUpload=null,this.newFamilyForm.get("file").reset())}skipStep(){this.store.dispatch({type:s.$W,payload:!0}),this.store.dispatch({type:s.Tl,payload:{group_name:"\u041c\u043e\u044f \u0441\u0435\u043c\u044c\u044f"}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.yh),t.Y36(B.S),t.Y36(H.z),t.Y36(q.C),t.Y36(y.y))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-family-default-name"]],decls:29,vars:20,consts:[[1,"l-container"],[1,"l-left"],[1,"l-center"],[1,"family-default-name__logo-container"],["src","/assets/img/about_new/logo.svg","width","162","height","60","alt","\u0421\u0435\u043c\u0435\u0439\u043d\u044b\u0435 \u043b\u0435\u0433\u0435\u043d\u0434\u044b"],[1,"family-default-name__form-container"],["autocomplete","off",1,"form-container",3,"formGroup","ngSubmit"],[1,"form-container__title","form-container__title--center"],[1,"form-container__row"],["class","form-container__main-image",4,"ngIf","ngIfElse"],["imageFamily",""],[1,"input-primary"],["autocomplete","off","matInput","","required","","formControlName","name","type","text","minlength","1","maxlength","50","aria-label","name","placeholder","",3,"blur"],[4,"ngIf"],[1,"form-container__button-area","form-container__button-area--flex"],[1,"form-container__button-area-item"],[3,"text","type","disabled","showSpinner"],[3,"text","mode","disabled","showSpinner","clickTrigger"],[1,"l-right"],[1,"form-container__main-image"],[1,"form-container__main-image-blur",3,"ngStyle"],[1,"form-container__main-image-photo",3,"ngStyle"],[1,"form-container__main-image-del",3,"click"],[1,"form-container__attach-image"],[1,"form-container__attach-image-icon",2,"background-image","url(/assets/img/about_new/camera_purple.svg)"],[1,"form-container__attach-image-text"],[1,"form-container__attach-image-error"],["for","photoPersonUpload",1,"form-container__attach-image-label"],["id","photoPersonUpload","type","file","name","attachment","multiple","false","accept","image/jpeg,image/png,image/webp",1,"form-container__attach-image-input",3,"change","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2)(3,"div",3),t._UZ(4,"img",4),t.qZA(),t.TgZ(5,"div",5)(6,"form",6),t.NdJ("ngSubmit",function(){return o.ngSubmit()}),t.TgZ(7,"p",7),t._uU(8,"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0441\u0435\u043c\u044c\u044e"),t.qZA(),t.TgZ(9,"div",8),t.YNc(10,K,4,6,"div",9),t.YNc(11,V,8,2,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(13,"div",8)(14,"mat-form-field",11)(15,"mat-label"),t._uU(16,"\u0418\u043c\u044f \u0441\u0435\u043c\u044c\u0438"),t.qZA(),t.TgZ(17,"input",12),t.
1NdJ("blur",function(c){return o.trimField(c,"name")}),t.qZA(),t.YNc(18,W,2,1,"mat-error",13),t.qZA()(),t.TgZ(19,"div",14)(20,"div",15),t._UZ(21,"app-button-primary",16),t.ALo(22,"async"),t.ALo(23,"async"),t.qZA(),t.TgZ(24,"div",15)(25,"app-button-primary",17),t.NdJ("clickTrigger",function(){return o.skipStep()}),t.ALo(26,"async"),t.ALo(27,"async"),t.qZA()()()()()(),t._UZ(28,"div",18),t.qZA()),2&e){const a=t.MAs(12);let c,_,w,P;t.xp6(6),t.Q6J("formGroup",o.newFamilyForm),t.xp6(4),t.Q6J("ngIf",o.imageUrl)("ngIfElse",a),t.xp6(8),t.Q6J("ngIf",o.checkFieldInvalidText("name")),t.xp6(3),t.Q6J("text","\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c")("type","submit")("disabled",o.checkValidFormDisable()||(null==(c=t.lcZ(22,12,o.appStore$))?null:c.isProfileUpdateLoader))("showSpinner",null==(_=t.lcZ(23,14,o.appStore$))?null:_.isProfileUpdateLoader),t.xp6(4),t.Q6J("text","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c")("mode","blue")("disabled",null==(w=t.lcZ(26,16,o.appStore$))?null:w.isProfileUpdateLoader)("showSpinner",null==(P=t.lcZ(27,18,o.appStore$))?null:P.isProfileUpdateLoader)}},dependencies:[p.O5,p.PC,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.wO,l.nD,l.sg,l.u,h.TO,h.KE,h.hX,j.Nt,b.b,p.Ov],styles:[".family-default-name__logo-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:40px auto 70px}.family-default-name__form-container[_ngcontent-%COMP%]{width:497px;margin:0 auto;padding:20px;border:1px solid #D4D4D4;border-radius:10px}@media only screen and (max-width: 1000px){.family-default-name__logo-container[_ngcontent-%COMP%]{margin:0 auto 24px;width:80px}.family-default-name__form-container[_ngcontent-%COMP%]{width:100%}}",'.form-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.form-container__title[_ngcontent-%COMP%]{margin-bottom:20px;color:#000;font-weight:400;font-size:22px;line-height:28px;font-family:PT-Root-UI-Medium,Helvetica,Arial,sans-serif;font-style:normal}@media only screen and (max-width: 1300px){.form-container__title[_ngcontent-%COMP%]{font-size:20px;line-height:28px}}@media only screen and (max-width: 1000px){.form-container__title[_ngcontent-%COMP%]{font-size:18px;line-height:23px}}.form-container__title--center[_ngcontent-%COMP%]{margin:0 auto 20px}.form-container__desc[_ngcontent-%COMP%]{margin-bottom:20px;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){.form-container__desc[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__desc[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__desc--center[_ngcontent-%COMP%]{margin:0 auto 20px}.form-container__link[_ngcontent-%COMP%]{cursor:pointer;color:#000;font-weight:400;font-size:14px;line-height:18px;font-family:PT-Root-UI-Medium,Helvetica,Arial,sans-serif;font-style:normal}@media only screen and (max-width: 1300px){.form-container__link[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__link[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__row[_ngcontent-%COMP%]{position:relative;width:100%}.form-container__row--gender-select[_ngcontent-%COMP%], .form-container__row--margin-bottom[_ngcontent-%COMP%]{margin-bottom:20px}.form-container__rich-text-area[_ngcontent-%COMP%]{box-sizing:border-box;height:auto;padding:0;margin-bottom:10px;border-bottom:1px solid #3A0CA3}.form-container__rich-text-area--error[_ngcontent-%COMP%]{border-color:#fa574b}.form-container__rich-text-error[_ngcontent-%COMP%]{color:#fa574b;margin-bottom:8px;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){.form-container__rich-text-error[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__rich-text-error[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__rich-text-info[_ngcontent-%COMP%]{margin-bottom:24px}.form-container__rich-text-info-text[_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){.form-container__rich-text-info-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__rich-text-info-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__button-area[_ngcontent-%COMP%]{position:relative;width:100%;padding:0}.form-container__button-area--flex[_ngcontent-%COMP%]{display:flex;align-items:center}.form-container__button-area--center[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.form-container__button-area--space-between[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.form-container__button-area-item[_ngcontent-%COMP%]{margin-right:20px}.form-container__row-gender-error[_ngcontent-%COMP%]{position:absolute;top:100%;margin-left:0;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){.form-container__row-gender-error[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__row-gender-error[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__col[_ngcontent-%COMP%]{position:relative;width:calc(50% - 8px)}.form-container__col--phone[_ngcontent-%COMP%]{width:calc(55% - 8px);display:flex;align-items:center;margin-bottom:32px}.form-container__col--gender-select[_ngcontent-%COMP%]{width:calc(45% - 8px);display:flex;align-items:center;height:56px;margin-bottom:32px}.form-container__radio-button[_ngcontent-%COMP%]{margin-left:16px}.form-container__row-tooltip[_ngcontent-%COMP%]{position:absolute;right:0;top:18px}.form-container__files-area[_ngcontent-%COMP%]{margin-bottom:24px}.form-container__related-list[_ngcontent-%COMP%]{margin-bottom:16px}.form-container__files-item[_ngcontent-%COMP%]{margin-bottom:10px}.form-container__sort-files-info[_ngcontent-%COMP%]{padding:20px;border-radius:5px;margin-bottom:20px;border:1px solid #D4D4D4;background-color:#fff;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){.form-container__sort-files-info[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__sort-files-info[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__sort-files[_ngcontent-%COMP%]{margin-bottom:20px}.form-container__file-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:20px 0 16px}.form-container__file-action-btn[_ngcontent-%COMP%]{cursor:pointer;height:18px;padding-left:33px;position:relative;text-transform:none;text-decoration:none;color:#000;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){.form-container__file-action-btn[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__file-action-btn[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__file-action-btn[_ngcontent-%COMP%]:hover{color:#000;color:initial;text-decoration:none!important}.form-container__file-action-btn--download[_ngcontent-%COMP%]:before{content:"";position:absolute;top:1px;left:4px;width:16px;height:16px;background:url(/assets/img/about_new/upload_purple.svg) no-repeat center;background-size:contain}.form-container__file-action-btn--del[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-2px;left:0;width:23px;height:23px;background:url(/assets/img/about_new/trash_red_outline.svg) no-repeat center;background-size:contain}.form-container__relation-area[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:30px}.relations__left-btn[_ngcontent-%COMP%]{cursor:pointer;position:relative;display:inline-block;vertical-align:top;background-size:contain;background-position:center;width:20px;height:20px;margin-right:10px}.relations__left-btn[_ngcontent-%COMP%]:last-child{margin-right:0}.time-period-optional[_ngcontent-%COMP%]{cursor:pointer;display:inline-flex;align-items:center;width:100%;margin-bottom:25px}.time-period-optional__text[_ngcontent-%COMP%]{margin-right:10px;color:#1d2b4f;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){.time-period-optional__text[_ngcontent-%COMP%]{font-size:16px;line-height:20px}}@media only screen and (max-width: 1000px){.time-period-optional__text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.time-period-optional__icon[_ngcontent-%COMP%]{background-position:center;background-size:contain;background-repeat:no-repeat;width:16px;height:16px;transform:rotate(90deg)}.time-period-optional__icon--active[_ngcontent-%COMP%]{transform:rotate(-90deg)}.form-container__main-image[_ngcontent-%COMP%]{position:relative;height:318px;overflow:hidden;margin-bottom:32px;border-radius:10px;background-color:#0000001f}.form-container__main-image-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);z-index:1;backdrop-filter:blur(0);border-radius:10px}.form-container__main-image-photo[_ngcontent-%COMP%]{z-index:2;position:relative;width:100%;height:100%;background-size:contain;background-position:center;background-repeat:no-repeat}
1.form-container__main-image-del[_ngcontent-%COMP%]{z-index:3;cursor:pointer;position:absolute;top:5px;right:5px;display:block;background:#FFFFFF;border-radius:50%;width:20px;height:20px;transition:transform .2s}.form-container__main-image-del[_ngcontent-%COMP%]:before, .form-container__main-image-del[_ngcontent-%COMP%]:after{content:"";display:block;width:50%;height:1px;background-color:#000;position:absolute;top:50%;left:25%}.form-container__main-image-del[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.form-container__main-image-del[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.form-container__attach-image[_ngcontent-%COMP%]{z-index:2;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #3A0CA3;border-radius:10px;height:318px;margin-bottom:32px}.form-container__attach-image--error[_ngcontent-%COMP%]{border-color:#fa574b;background-color:#f443361a}.form-container__attach-image--error[_ngcontent-%COMP%]   .form-container__attach-image-error[_ngcontent-%COMP%]{display:block}.form-container__attach-image-icon[_ngcontent-%COMP%]{width:27px;height:22px;background-position:center;background-repeat:no-repeat;background-size:contain;margin-bottom:8px}.form-container__attach-image-text[_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){.form-container__attach-image-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}@media only screen and (max-width: 1000px){.form-container__attach-image-text[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.form-container__attach-image-error[_ngcontent-%COMP%]{display:none;position:absolute;top:calc(100% + 8px);left:0;font-size:12px;line-height:1.2;color:#fa574b}.form-container__attach-image-label[_ngcontent-%COMP%]{z-index:2;cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%}.form-container__attach-image-input[_ngcontent-%COMP%]{display:none}@media only screen and (max-width: 1000px){.form-container__col[_ngcontent-%COMP%]{width:100%}.form-container__col--gender-select[_ngcontent-%COMP%], .form-container__col--phone[_ngcontent-%COMP%]{margin-bottom:24px}.form-container__relation-area[_ngcontent-%COMP%]{flex-wrap:wrap}.relations__left[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;margin-bottom:16px}.form-container__main-image[_ngcontent-%COMP%]{height:150px;margin-bottom:20px}.form-container__attach-image[_ngcontent-%COMP%]{height:150px}.form-container__rich-text-area[_ngcontent-%COMP%]{position:relative;padding-top:40px}.form-container__rich-text-area[_ngcontent-%COMP%]     .quill-comment-editor .ql-toolbar.ql-snow{position:relative;top:0;left:0;width:100%;margin-top:-40px;margin-left:-8px}.form-container__rich-text-area[_ngcontent-%COMP%]     .ql-toolbar.ql-snow .ql-formats{margin:0}.form-container__rich-text-area[_ngcontent-%COMP%]     .ql-snow.ql-toolbar button{margin-right:8px}}']}),n})()},{path:"choose",component:Q}]},{path:"**",redirectTo:""}];let tt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[u.Bz.forChild(X),u.Bz]}),n})();var et=r(66578),nt=r(13798),ot=r(35503);let it=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,tt,l.u5,l.UX,M.M,et.m,nt.GroupModule,ot.D]}),n})()}}]);

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.