PageSourceSearch

https://familio.org/_next/static/chunks/9112-14c59cb1350325ba.js

js familio.org collected 2026-10-02 10:43:09 UTC 74,881 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9112],{21688:(e,t,r)=>{r.d(t,{A:()=>d});var n,l,a,i,o=r(96540);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let d=function(e){return o.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),n||(n=o.createElement("rect",{width:7,height:7,x:4,y:4,fill:"currentColor",rx:2})),l||(l=o.createElement("rect",{width:7,height:7,x:4,y:13,fill:"currentColor",rx:2})),a||(a=o.createElement("rect",{width:7,height:7,x:13,y:4,fill:"currentColor",rx:2})),i||(i=o.createElement("rect",{width:7,height:7,x:13,y:13,fill:"currentColor",rx:2})))}},70280:(e,t,r)=>{r.d(t,{A:()=>p});var n,l,a,i,o,s,d=r(96540);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let p=function(e){return d.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),n||(n=d.createElement("rect",{width:10,height:4,x:10,y:4,fill:"currentColor",rx:2})),l||(l=d.createElement("rect",{width:4,height:4,x:4,y:4,fill:"currentColor",rx:2})),a||(a=d.createElement("rect",{width:10,height:4,x:10,y:10,fill:"currentColor",rx:2})),i||(i=d.createElement("rect",{width:4,height:4,x:4,y:10,fill:"currentColor",rx:2})),o||(o=d.createElement("rect",{width:10,height:4,x:10,y:16,fill:"currentColor",rx:2})),s||(s=d.createElement("rect",{width:4,height:4,x:4,y:16,fill:"currentColor",rx:2})))}},2158:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".addPersonButtonStyle{width:185px;height:36px;border-radius:30px;padding:0;white-space:nowrap;background-color:var(--colorButtonDarkBackground);color:var(--colorButtonDarkText);transition:.25s;cursor:pointer;border:none}.addPersonButtonStyle:hover{background-color:var(--colorButtonDarkBackgroundHover)}",""]);let a=l},14943:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".filter-block-lifecycleDate{max-width:420px}@media screen and (width <= 744px){.filter-block-lifecycleDate{max-width:370px}}@media screen and (width <= 375px){.filter-block-lifecycleDate{max-width:320px}}.filter-block-lifecycleDate .eventDateWidget-dateWrap{margin:16px 0 0}.filter-block-lifecycleDate .eventDateWidget-dateWrap .eventDateWidget-date{display:flex;gap:12px}.filter-block-lifecycleDate .eventDateWidget-dateWrap .eventDateWidget-date .input-wrapper{margin:0}.filter-block-lifecycleDate .eventDateWidget-dateWrap.error .error-message{bottom:-22px}.filter-block-lifecycleDate .eventDateWidget-select .selectPopup-content .table-row{height:48px}.filter-block-lifecycleDate input{border:1px solid #dbe3f6;border-radius:4px}.filter-block-lifecycleDate input:focus{border-color:#1a56f1}.filter-block-lifecycleDate .checkbox-option .checkbox-label{font-size:14px}.filter-block-lifecycleDate .filter-block-apply-clear{margin-top:16px}.filter-block-lifecycleDate .eventDateWidget-calendarType{margin-bottom:32px}.filter-block-lifecycleDate .eventDateWidget-calendarType-tooltip{color:#333}.filter-block-lifecycleDate .filter-block-settlement .button-text{max-width:350px}",""]);let a=l},9118:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".filter-block-deathDate .eventDateWidget-calendarType{margin-bottom:0}",""]);let a=l},71290:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".filter-block-recordType-option-count{color:#909090;margin-left:.5ch}.filter-block-recordType .checkbox-option:first-child{margin-top:0}.filter-block-recordType .checkbox-n:last-child{margin-bottom:0}",""]);let a=l},61482:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".filter-block-settlement-picker-trigger{margin-top:16px}.filter-block-settlement-picker-trigger .filter-item-trigger-idle{filter:none}.filter-block-settlement-picker-trigger .filter-item-trigger{border:1px solid #dbe3f6}.filter-block-settlement-picker-trigger .filter-item-trigger:hover,.filter-block-settlement-picker-trigger .filter-item-trigger-count,.f
1ilter-block-settlement-picker-trigger .filter-item-trigger-open{background-color:var(--colorSecondaryLightBackground);color:var(--colorText)}.filter-block-settlement-picker-dropdown-content{max-width:350px}.filter-block-settlement-picker-dropdown-input{display:flex;gap:0}.filter-block-settlement-picker-dropdown-input>.input-wrapper{min-width:248px}.filter-block-settlement-picker-dropdown-input input.input{padding:7px 28px 8px 12px;height:36px;width:100%;font-size:14px}.filter-block-settlement-picker-dropdown-input .icon.__clear svg{margin-top:-1px}.filter-block-settlement-picker-dropdown-input .input-wrapper .input-label.__labeled{display:none}.filter-block-settlement-picker-dropdown-input .button{padding:0 0 0 12px;height:36px}.filter-block-settlement-picker-dropdown-note{display:block;clear:both;font-size:12px;line-height:20px;color:#676565;margin-top:8px}.universal-person-filter .filter-block-settlement-picker-trigger .filter-item-trigger:hover,.universal-person-filter .filter-block-settlement-picker-trigger .filter-item-trigger-count,.universal-person-filter .filter-block-settlement-picker-trigger .filter-item-trigger-open{border:1px solid var(--colorButtonText)}",""]);let a=l},80314:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".filter-block-tags .filter-item-trigger .button-text{display:inline-flex;align-items:center;gap:4px}.filter-block-tags-content{min-width:280px;max-width:320px}",""]);let a=l},3783:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".universal-person-filter{display:flex;flex-direction:column;max-width:50vw;gap:24px;position:relative;z-index:5;margin-bottom:24px;isolation:isolate}@media screen and (width <= 1280px){.universal-person-filter{max-width:70vw}}@media screen and (width <= 1024px){.universal-person-filter{max-width:100%;width:100%}}.universal-person-filter>*{flex-direction:row}.universal-person-filter-fio{gap:24px;display:flex;position:relative;z-index:auto}@media screen and (width <= 1024px){.universal-person-filter-fio{width:100%}}@media screen and (width <= 744px){.universal-person-filter-fio{flex-wrap:wrap}}.universal-person-filter-fio>div{width:calc(50% - 12px)}@media screen and (width <= 744px){.universal-person-filter-fio>div{width:100%}}.universal-person-filter-fio input{border:1px solid #dbe3f6;border-radius:4px}.universal-person-filter-fio input:focus{border-color:#1a56f1}.universal-person-filter-blocks{gap:12px;display:flex;position:relative;z-index:auto}.universal-person-filter-blocks .filter-block-item-popup{z-index:100}.universal-person-filter-blocks .filter-item-trigger{position:relative;z-index:auto}.universal-person-filter-blocks .filter-item-trigger.button{border-color:#b7b8bb}.universal-person-filter-blocks .filter-item-trigger.filter-item-trigger-count{border-color:#1a56f1}@media screen and (width <= 1024px){.universal-person-filter-blocks{flex-wrap:wrap}}.universal-person-filter-input{position:relative;overflow:visible;z-index:auto}@media screen and (width <= 1024px){.universal-person-filter-input:nth-child(1){z-index:auto}.universal-person-filter-input:nth-child(2){z-index:auto}.universal-person-filter-input:nth-child(3){z-index:auto}.universal-person-filter-input:nth-child(4){z-index:auto}.universal-person-filter-input:nth-child(5){z-index:auto}}.universal-person-filter-input-extra{position:absolute;top:100%;left:0;padding:16px;box-shadow:0 1px 30px 0 rgba(0,0,0,.1);background:#fff;right:0;z-index:110;isolation:isolate}.universal-person-filter-input-extra .checkbox-option label{margin-left:8px}.universal-person-filter-actions{display:flex;gap:24px}@media screen and (width <= 744px){.universal-person-filter-actions{flex-direction:column;gap:12px}}.universal-person-filter-actions button{height:56px;white-space:nowrap;font-size:18px}@media screen and (width <= 375px){.universal-person-filter-actions button{padding-left:0;padding-right:0;width:100%}}@media screen and (width <= 744px){.universal-person-filter-actions button{padding-left:0;padding-right:0;width:100%}}.universal-person-filter-actions button.__dark{padding-left:64px;padding-right:64px}.universal-person-filter-reload{text-decoration:underline;cursor:pointer;margin-left:20px;
1display:inline-flex;height:100%;align-items:center;justify-content:flex-start;gap:4px;white-space:nowrap}.universal-person-filter-reload .icon{margin:0;padding:0;display:inline-block;transition:transform 500ms;transform-origin:center;min-width:16px}.universal-person-filter-error{margin-bottom:32px}.universal-person-filter-error .fm-button-base:hover{opacity:.8}.universal-person-filter-error .fm-button-base:hover .icon{transform:rotate(360deg)}",""]);let a=l},89872:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,'.personCard{padding:10px 0;text-align:center;position:relative;align-items:center;width:100%;display:flex;flex-direction:column;cursor:pointer}.personCard-hoverMenu{z-index:1;position:absolute;display:flex;visibility:visible;top:10px;align-items:center;justify-content:center;min-width:180px;min-height:180px;border-radius:50%;background-color:var(--colorTransparentBackground)}@media screen and (width <= 744px){.personCard-hoverMenu{min-width:140px;min-height:140px}}.personCard-hoverMenu-icon{z-index:4;position:relative;cursor:pointer;margin:8px}.personCard-hoverMenu-icon svg{width:28px;height:28px}.personCard-hoverMenu-icon rect{stroke:#fff}.personCard-hoverMenu-icon path{fill:#fff}.personCard-hoverMenu-icon:hover{opacity:.6}.personCard-hoverDeletingMenu{position:absolute;display:flex;flex-direction:column;color:#fff;top:10px;align-items:center;justify-content:center;min-width:180px;min-height:180px;border-radius:50%;background-color:var(--colorTransparentBackground);overflow:hidden;z-index:1}@media screen and (width <= 744px){.personCard-hoverDeletingMenu{min-width:140px;min-height:140px}}.personCard-hoverDeletingMenu .button{color:#fff;width:89px;height:36px;padding:0}.personCard-hoverDeletingMenu .button.__delete{background-color:var(--colorDarkerRed);border:none;color:#fff;margin-top:20px}@media screen and (width <= 744px){.personCard-hoverDeletingMenu .button.__delete{margin-top:8px}}.personCard-hoverDeletingMenu .button.__filled{margin-top:7px;border-color:#fff;background-color:rgba(0,0,0,0)}.personCard-hoverDeletingMenu .button:hover{opacity:.8}.personCard-content{display:grid;grid-area:content;width:100%;grid-template-areas:"privacy" "labels" "info" "tags"}.personCard-isMe{position:absolute;left:50%;right:50%;transform:translate(-50%, -50%);z-index:2}.personCard-isMe-mobile{display:none}.personCard-avatar{height:180px;width:180px;margin:0;border-radius:50%;background-size:cover}.personCard-avatarLink{grid-area:avatar;border-radius:50%;overflow:inherit}.personCard-avatarLink:hover{pointer-events:auto;cursor:default}.personCard-privacy{grid-area:privacy;width:max-content}.personCard-labels{grid-area:labels;width:70px}.personCard-labels.withFromCatalog{width:105px}.personCard-labels.withShared{width:90px}.personCard-labels.isMe{width:42px}.personCard span.personCard-icon{cursor:pointer;position:absolute;margin:0;top:10px;left:50%;right:auto;transform:translateX(68px)}.personCard span.personCard-icon .loader{margin:10px 10px 0 0;cursor:default}.personCard-icon:hover,.personCard-icon--left:hover{opacity:.6}.personCard-labelAccepted{margin-left:5px}.personCard-labelAccepted svg{margin-bottom:-2px}.personCard-name{margin-bottom:0;margin-top:14px}.personCard-info{color:var(--colorPlaceholder);line-height:1.5;margin:0}.personCard-linkwrap{padding-bottom:0;grid-area:info}.personCard-linkwrap:hover{color:var(--colorLink)}.personCard-linkwrap:hover .personCard-info{color:var(--colorLink);opacity:.5}.personCard-tags{grid-area:tags;margin-top:4px;width:100%;cursor:default}.personCard:hover a.personCard-linkwrap{color:var(--colorLink)}.personCard:hover a.personCard-linkwrap .personCard-info{color:var(--colorLink);opacity:.5}.personCard-labelMine{position:absolute;top:180px;left:50%;transform:translateX(-50%);width:70px}@media screen and (width <= 744px){.personCard-labelMine{top:140px}}.personCard-labelCatalog{position:absolute;top:180px;left:50%;transform:translateX(-50%);width:100px}@media screen and (width <= 744px){.personCard-labelCatalog{top:140px}}.personCard-labelShared{position:absolute;top:180px;left:50%;transform:translateX(-50%);width:85px}@media screen and (width <= 744px){.personCard-labelShared{top:140px}}.personCard-treeButtonLabel{grid-area:treeButton;width:40px;height:24px;background-color:#fff;border-radius:78px;
1cursor:pointer;position:absolute;top:177px;left:50%;transform:translateX(-50%);color:#676565}.personCard-treeButtonLabel:hover svg{opacity:.6}.personCard-treeButtonLabel.with-isMe-label{transform:translateX(25px)}.personCard-treeButtonLabel.with-isMine-label{transform:translateX(35px)}.personCard-treeButtonLabel.with-isShared-label{transform:translateX(43px)}.personCard .modal-contentWrapper{display:flex;flex-direction:column;align-items:center;width:100%}.personCard .modal-contentWrapper .button{height:55px;width:100%;font-size:18px;margin-bottom:16px}.personCard .modal-contentWrapper .button.__filled{background-color:var(--colorLink);color:#fff}.personCard .modal-contentWrapper .button.__delete{border-color:var(--colorRed);color:var(--colorRed)}@media screen and (width <= 744px){.personsView-cardsContainer div.personCard{margin:0 auto}.personsView-cardsContainer div.personCard span.personCard-icon{transform:translateX(50px)}.personsView-cardsContainer div.personCard-avatar{height:140px;width:140px}.personsView-cardsContainer div.personCard-labelMine{top:140px}.personsView-cardsContainer div.personCard-labelCatalog{top:140px}.personsView-cardsContainer div.personCard-labelShared{top:140px}.personsView-cardsContainer div.personCard-treeButtonLabel{top:137px}}',""]);let a=l},36210:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".personsView{margin-top:20px}.personsView .personsView-wrapper{display:flex;flex-direction:column}.personsView-data{width:100%}.personsView-content{position:relative;min-height:240px}.personsView-content-pending .personsView-data{opacity:.6;pointer-events:none}.personsView-content-pending>.fm-spinner-base{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}.personsView-initial-loader.fm-spinner-base{width:100%;margin:64px auto}.personsView em{font-style:normal;background-color:var(--colorEmBackground)}.personsView .page-heading{margin-bottom:20px;display:flex;flex-direction:row;align-items:center}.personsView .page-heading h1{margin:3px 0 12px;flex-grow:1}.personsView .page-heading>div{margin-right:12px}.personsView .page-heading button{padding:0;height:36px;width:181px}.personsView .page-heading-title{flex:1}.personsView .page-heading-block{display:flex;flex-direction:row;justify-content:space-between;flex-shrink:0;width:auto}.personsView-cardsContainer{display:grid;grid-template-columns:repeat(4, 1fr);gap:24px}.personsView-cardsContainer .personCard .mobile-only{display:none}.personsView-cardsContainer .personCard-labelMine{bottom:0}.personsView-cardsContainer .personCard-labelCatalog{bottom:0}.personsView-empty-result-note{margin:24px 0;max-width:50vw}@media screen and (width <= 1280px){.personsView-empty-result-note{max-width:70vw}}@media screen and (width <= 1024px){.personsView-empty-result-note{max-width:100%;width:100%}}.personsView-empty-result-note h3{font-weight:bold;font-size:22px;line-height:28px;margin:0 0 24px}.personsView-empty-result-note p{margin-bottom:24px;font-size:16px;line-height:24px}.personsView-empty-result-note .addPersonButtonStyle{margin-top:-8px}.personsView-limit-warning-alert{box-sizing:content-box;padding:4px 0}.personsView .PrivacyButton .loader.__small{margin:0}.disabled-icon path{fill:#b7b8bb}@media screen and (width <= 1280px){.personsView-cardsContainer{display:grid;grid-template-columns:repeat(auto-fit, minmax(max(25%, 180px), 1fr))}}@media screen and (width <= 890px){.personsView-cardsContainer{gap:24px}}@media screen and (width <= 744px){.personsView-cardsContainer{grid-template-columns:repeat(2, 1fr)}.personsView-cardsContainer .personCard-avatar{width:140px;height:140px}.personsView-cardsContainer .personCard-avatar svg{width:140px;height:140px}.personsView-content{display:flex;flex-direction:column}.personsView-content .pagination{display:flex;justify-content:space-between;margin:24px 0 0 0}.personsView-personsFilters{min-width:100% !important;width:100% !important;min-height:max-content;height:max-content}.personsView-personsFilters .filtersNew{margin-top:0}.personsView-personsFilters .filtersNew-cardStyle{max-width:100%;margin-bottom:48px}.personsView .page-heading{align-items:flex-start;margin-top:10px}.personsView .page-heading .page-heading-title h1{font-size:30px}.personsView .page-heading .page-heading-block{margin-bottom:10px}.personsView-data{margin-top:24px}.personsView-wrapper{flex-direction:column !important}}@media screen and (width <= 375px){.personsView-cardsContainer{grid-template-columns:repeat(1, 1fr)}}",""]);let a=l},84802:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});
1l.push([e.id,".persons-table-view{margin-top:8px}.persons-table-view-nameCell{display:flex;flex-direction:column;gap:4px}.persons-table-view-nameCell--noHeader{justify-content:center}.persons-table-view-nameCell-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:24px}.persons-table-view-nameCell-header .personsView-isMe{min-width:32px;box-sizing:border-box;text-align:center}.persons-table-view-nameCell-treeIcon{cursor:pointer;display:flex;align-items:center;color:#676565}.persons-table-view-nameCell-treeIcon:hover{opacity:.7}.persons-table-view-nameCell .PrivacyButton{margin:0}.persons-table-view-nameCell .PrivacyButton:hover{opacity:.7}.persons-table-view-dateCell{max-width:none}.persons-table-view-deathDate,.persons-table-view-eventDate,.persons-table-view-birthDate{font-style:italic}.persons-table-view-eventLines{display:block}.persons-table-view-eventLine{display:block}.persons-table-view-settlementCell{overflow-wrap:anywhere}.persons-table-view-biographyCell{position:relative}.persons-table-view-biographyCell span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;z-index:1;position:inherit}.persons-table-view-biographyCell div{z-index:2;min-height:min-content;max-width:400px}.persons-table-view-actionsCell{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:28px}@media screen and (width <= 1024px){.persons-table-view-actionsCell{position:absolute;top:0;right:0}}.persons-table-view-icon{cursor:pointer;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background-color:#edf1fe;border-radius:4px}.persons-table-view-icon svg{width:16px;height:16px}.persons-table-view-icon:hover{background-color:#dbe3f6}.persons-table-view-icon.disabled-icon{opacity:.5;cursor:not-allowed}.persons-table-view-deleteRow{display:flex;align-items:center;gap:12px;padding:12px 0}.persons-table-view-row--deleting{background-color:var(--colorBgWarning, #fff3cd)}.persons-table-view-row--deleting td:not(:first-child){display:none}.persons-table-view-deleteCell{grid-column:1/-1}.persons-table-view-deleteAcceptance{display:flex;align-items:center;gap:12px}.persons-table-view-deleteAcceptance span{white-space:nowrap}.persons-table-view .fm-table-tbody .fm-table-td{position:initial}.persons-table-view .fm-table-tbody .fm-table-td>span:first-child,.persons-table-view .fm-table-tbody .fm-table-td .persons-table-view-settlementCell{display:block;margin-top:28px}@media screen and (width <= 1024px){.persons-table-view .fm-table-tbody .fm-table-td>span:first-child,.persons-table-view .fm-table-tbody .fm-table-td .persons-table-view-settlementCell{margin-top:0}.persons-table-view .fm-table-tbody .actions-cell{padding:0}}.persons-table-view .fm-table-tbody .fm-table-td.persons-table-view-cell--noHeader>span:first-child,.persons-table-view .fm-table-tbody .fm-table-td.persons-table-view-cell--noHeader .persons-table-view-settlementCell{margin-top:0 !important}.persons-table-view .fm-table-adaptive-view .fm-table-tbody .fm-table-td:first-child{display:flex;flex-direction:column}.persons-table-view .fm-table-adaptive-view .fm-table-tbody .fm-table-td:first-child .persons-table-view-nameCell{display:contents}.persons-table-view .fm-table-adaptive-view .fm-table-tbody .fm-table-td:first-child::after{order:-3}.persons-table-view .fm-table-adaptive-view .fm-table-tbody .fm-table-td:first-child .persons-table-view-nameCell-header{order:-2;margin-top:4px;margin-bottom:4px}.persons-table-view .fm-table-adaptive-view .fm-table-tbody .fm-table-td:first-child .link{order:-1}.persons-table-view .fm-table-adaptive-view .fm-table-tbody .fm-table-td.persons-table-view-cell--noHeader.noHeader-myPersonsPage{padding:0;display:none}.persons-table-view .fm-table-adaptive-view .fm-table-tbody .fm-table-td.persons-table-view-cell--noHeader.noHeader-myPersonsPage::after{display:none}.persons-table-view-biographyCell-portal{z-index:10;font-size:16px;line-height:24px}.persons-table-view-biographyCell-portal div{max-width:340px;max-height:420px;width:100%;overflow:auto}@media screen and (width <= 744px){.persons-table-view-biographyCell-portal div{max-width:90dvw}}.persons-table-view-biographyCell-portal button{position:absolute;width:24px;height:24px;border-radius:50%;background-color:#f4f4f4;top:8px;right:8px;display:flex;align-items:center;justify-content:center;cursor:pointer}",""]);let a=l},92186:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});
1l.push([e.id,".table-toolbar{width:100%;display:flex;flex-wrap:wrap;min-height:36px;align-items:center;justify-content:space-between;gap:20px}.table-toolbar-content{display:flex;flex-grow:1;min-width:0}.table-toolbar-content h2{margin:0;font-size:22px;line-height:28px}.table-toolbar-note{font-weight:normal;font-size:18px;color:var(--colorScrollThumb)}.table-toolbar-view{display:grid;grid-template-columns:1fr 1fr;gap:6px;background-color:#fff;border-radius:50px;padding:5px;cursor:pointer;max-width:max-content;flex-shrink:0}.table-toolbar-view-icon{cursor:pointer;width:36px;height:36px;color:var(--colorPlaceholder);display:flex;align-items:center;justify-content:center}.table-toolbar-view-icon-active{color:var(--colorText)}.table-toolbar-view-icon:hover{opacity:.6}.table-toolbar-page-size{display:inline-flex;align-items:center;color:var(--colorScrollThumb);max-width:max-content;flex-shrink:0}.table-toolbar-page-size:hover{color:var(--colorText)}.table-toolbar-page-size .inline-dropdown-trigger{z-index:auto}.table-toolbar-page-size svg{fill:currentcolor}.table-toolbar-simplified-addon{background-color:var(--colorMainLightBackgroun
1d);padding:12px 16px;border-radius:4px;display:grid;grid-template-columns:minmax(0, 1fr) auto;align-items:center;gap:12px}.table-toolbar-simplified-addon .sort-button-dropdown{min-width:0;overflow:hidden;display:block}.table-toolbar-simplified-addon .sort-button-dropdown.inline-dropdown{display:block}.table-toolbar-simplified-addon .sort-button-dropdown .inline-dropdown-trigger{min-width:0;max-width:100%;overflow:hidden;display:flex;align-items:center}.table-toolbar-simplified-addon .sort-button-dropdown .sort-button{min-width:0;max-width:100%;overflow:hidden;display:flex;align-items:center}.table-toolbar-simplified-addon .sort-button-dropdown .sort-button-label{display:block;overflow:visible;overflow-x:clip;text-overflow:ellipsis;white-space:nowrap;min-width:0}.table-toolbar-simplified-addon .table-toolbar-page-size{flex-shrink:0;min-width:max-content}.table-toolbar-simplified-addon:empty{height:1px;overflow:hidden;padding:0}.table-toolbar.table-toolbar-simplified{display:grid;grid-template-columns:minmax(0, 1fr) auto;grid-template-rows:auto auto;gap:12px;align-items:center}.table-toolbar.table-toolbar-simplified .table-toolbar-content{grid-column:1;grid-row:1;min-width:0;overflow:hidden}.table-toolbar.table-toolbar-simplified .table-toolbar-content h2{white-space:normal;overflow:visible;text-overflow:unset}.table-toolbar.table-toolbar-simplified .table-toolbar-view{grid-column:2;grid-row:1;flex-shrink:0}.table-toolbar.table-toolbar-simplified .table-toolbar-simplified-addon{grid-column:1/-1;grid-row:2}",""]);let a=l},21940:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(76314),l=r.n(n)()(function(e){return e[1]});l.push([e.id,".TreeButton{cursor:pointer;max-width:max-content;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--colorButtonText);border:1px solid var(--colorButtonDarkBackground);padding:0 20px;height:34px;transition:.25s;min-height:34px;border-radius:17px}.TreeButton.main{color:var(--colorButtonDarkText);background-color:var(--colorButtonDarkBackground)}.TreeButton.main:hover{background-color:var(--colorButtonDarkBackgroundHover)}.TreeButton .button-text{display:flex;align-items:center}.TreeButton .TreeButton-label{margin-left:4px;min-width:max-content}.TreeButton.__disabled{border:1px solid #676565;background-color:#fff;color:#676565;opacity:1}.TreeButton.light{background-color:#edf1fe;border:none;border-radius:4px}.TreeButton.light:hover{background-color:#dbe3f6}.TreeIcon{width:40px;height:24px}.TreeIcon svg{width:22px;height:11px}",""]);let a=l},81857:(e,t,r)=>{r.d(t,{Z:()=>x});var n=r(74848),l=r(1882),a=r.n(l),i=r(96540),o=r(75960),s=r(8236),d=r(2031),c=r(8587),p=r(2181),u=r(8853),h=r(85072),m=r.n(h),b=r(2158),v={};v.insert="head",v.singleton=!1,m()(b.A,v),b.A.locals;let x=e=>{let{url:t,query:r={},isNoRedirect:l,children:h,buttonText:m,personOwner:b}=e,{openLoginModal:v}=(0,i.useContext)(o.a),x=(0,s.d4)(d.tC),g=t||p.G.persons.newPerson.url,f=(0,s.d4)(d.ak),w=()=>{let e={pathname:g,query:r};l&&(e.query={...e.query,isNoRedirect:l}),e.query={...e.query,personOwner:b||f},x?(0,u.as)(e):(localStorage.setItem("auth-event-content","add-person"),v({onSuccess:()=>{(0,u.as)(e)}}))};return a()(h)?(0,n.jsx)(n.Fragment,{children:h(w)}):(0,n.jsx)("button",{id:c.A.persons[0].id,className:"addPersonButtonStyle",onClick:w,children:m||"+ Добавить человека"})}},70493:(e,t,r)=>{r.d(t,{N:()=>ei,Pg:()=>ea,i2:()=>el});var n=r(74848),l=r(43122),a=r(96540),i=r(85072),o=r.n(i),s=r(3783),d={};d.insert="head",d.singleton=!1,o()(s.A,d),s.A.locals;var c=r(20053);let p=e=>{let{checkboxLabel:t,placeholder:r,onFocus:i,onChange:o,name:s,flagName:d,flagValue:p,onBlur:u,value:h,onEnterPress:m,...b}=e,[v,x]=(0,a.useState)(!1),g="filter-input-".concat(s,"-").concat(d);return(0,n.jsxs)("div",{className:(0,c.A)("universal-person-filter-input"),children:[(0,n.jsx)(l.pd,{...b,id:g,value:null!=h?h:"",name:s,clearValue:()=>()=>o(s,null),placeholder:r,onFocus:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];x(!0),i&&i(...t)},onBlur:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];x(!1),u&&u(...t)},onChange:e=>{o(s,e.target.value)},onKeyPress:e=>{"Enter"===e.key&&m&&m()}}),v&&(0,n.jsx)("div",{className:"universal-person-filter-input-extra",onMouseDown:e=>{e.preventDefault()},onTouchStart:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation()},children:(0,n.jsx)(l.Sc,{onChange:e=>{o(d,e.target.checked)},options:[{checked:!!p,id:"".concat(d),name:"".concat(d),label:t}],mini:!0})})]})};var u=r(71290),h={};h.insert="head",h.singleton=!1,o()(u.A,h),u.A.locals;var m=r(67800),b=r(56661),v=r(46735);let x=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.aY;if(!Array.isArray(e)||1!==e.length)return t;let n=e[0],l=r.find(e=>{let{value:t}=e;return t===n});return l?"".concat(t,": ").concat(l.displayValue):t},g=(0,a.forwardRef)((e,t)=>{let{value:r,onChange:i,disabled:o,name:s,title:d="Тип записи",isAuthed:c}=e,p=(0,a.useRef)(null),[u,h]=(0,a.useState)(r),g=(0,a.useMemo)(()=>{let e=!1===c;return v.aY.map(t=>{let{value:r,displayValue:l}=t;return{id:"filter-block-record-type-".concat(r),name:"match_status-".concat(r),disabled:e&&"my_persons"===r,checked:null==u?void 0:u.includes(r),label:(0,n.jsx)(n.Fragment,{children:l})}})},[u,c]),f=r.length===u.length&&r.every(e=>u.includes(e)),w=()=>{var e;i(s,[]),null===(e=p.current)||void 0===e||e.setOpen(!1)};(0,a.useImperativeHandle)(t,()=>({clear:w}));let y=r.length,C=(0,a.useMemo)(()=>x(r,d),[r,d]);return(0,n.jsx)(m.k,{ref:p,disabled:o&&!y,title:C,onClear:w,name:s,value:y,hideCount:1===y,onPopupStateChange:e=>{e&&h(r)},children:(0,n.jsxs)("div",{className:"filter-block-recordType",children:[(0,n.jsx)(l.Sc,{mini:!0,options:g,onChange:(e,t)=>
1{var r;let{checked:n}=e.target,l=null===(r=v.aY[t])||void 0===r?void 0:r.value;l&&h(e=>n?[...e,l]:e.filter(e=>e!==l))}}),(0,n.jsx)(b.$,{clearDisabled:!u.length&&!(null==r?void 0:r.length),onClear:w,applyDisabled:f,onApply:()=>{var e;f||(i(s,u),null===(e=p.current)||void 0===e||e.setOpen(!1))}})]})})});g.displayName="RecordType";var f=r(14943),w={};w.insert="head",w.singleton=!1,o()(f.A,w),f.A.locals;var y=r(89430),C=r(61482),k={};k.insert="head",k.singleton=!1,o()(C.A,k),C.A.locals;var j=r(18816),N=r(59500);let A=e=>{let{region:t,setRegion:r,settlement:i,setSettlement:o}=e,[s,d]=(0,a.useState)(t),[c,p]=(0,a.useState)(!1),u=(0,a.useRef)(null),h=(0,a.useCallback)((e,t)=>{let r=t.currentTarget.value;"r"===e?d(r):o(r)},[o]);(0,a.useEffect)(()=>{(0,j.it)(()=>{d(c?t:"")},c?50:150)},[c,t]);let b=()=>{var e;r(s),null===(e=u.current)||void 0===e||e.setOpen(!1)};return(0,N._)("Enter",()=>{c&&b()}),(0,n.jsxs)("div",{className:"filter-block-settlement-picker",children:[(0,n.jsx)(l.pd,{name:"settlement-picker",placeholder:"Населенный пункт",value:null!=i?i:"",clearValue:()=>()=>o(""),onChange:h.bind(null,"s")}),(0,n.jsx)(m.k,{ref:u,title:"".concat("Где искать").concat(t?": ".concat(t):""),forceActive:!c&&!!t,onClear:()=>{d(""),r("")},onPopupStateChange:p,name:"settlement",className:"filter-block-settlement-picker-trigger",children:(0,n.jsxs)("div",{className:"filter-block-settlement-picker-dropdown-content",children:[(0,n.jsxs)("div",{className:"filter-block-settlement-picker-dropdown-input",children:[(0,n.jsx)(l.pd,{placeholder:"Область, район, уезд, волость",value:null!=s?s:"",clearValue:()=>()=>d(""),onChange:h.bind(null,"r")}),(0,n.jsx)(l.$n,{style:"borderless",onClick:b,children:t&&!s?"Применить":"Добавить"})]}),(0,n.jsx)("div",{className:"filter-block-settlement-picker-dropdown-note",children:"Вы можете указать область, район, уезд, волость или другую административную единицу"})]})})]})};var M=r(23125),V=r(53539),D=r(49903),S=r(55759),L=r(2404),T=r.n(L);let B=["equal","interval"],_=(0,a.forwardRef)((e,t)=>{let{name:r,value:l,nameSettlement:i,valueSettlement:o,nameRegion:s,valueRegion:d,onChange:c,disabled:p,title:u="Рождение"}=e,[h,v]=(0,a.useState)(null!=o?o:""),[x,g]=(0,a.useState)(null!=d?d:""),[f,w]=(0,a.useState)(!1),C=(0,a.useRef)(null),{date:k,clearDate:j,setDate:N,...L}=(0,y.HJ)(l),_=(0,a.useCallback)((e,t,n)=>{c(r,e),c(i,t),c(s,n)},[r,s,i,c]),{errors:P,validateDate:H,resetErrors:E}=(0,D.$)(),{contentRef:z,getPlaceholder:R,fillPlaceholder:F}=(0,V.k)(f),O=(0,D.C)(P);(0,a.useEffect)(()=>{O&&k.type&&E()},[k.type]),(0,a.useEffect)(()=>{f&&(l?N(l):j(),v(null!=o?o:""),g(null!=d?d:""))},[f]);let I=(0,a.useRef)(()=>{F(),j(),v(""),g(""),E()}),[W,q]=(0,M.Y)(I.current),Z=(0,a.useCallback)(e=>{w(e),e||I.current()},[]),G=(0,a.useCallback)(()=>{var e;I.current(),_(null,null,null),null===(e=C.current)||void 0===e||e.setOpen(!1)},[_]);(0,a.useImperativeHandle)(t,()=>({clear:G,clearForm:I.current}));let $=(0,y.W1)(k)?(0,y.sD)():k,Y=T()($,l||(0,y.sD)())&&h===(null!=o?o:"")&&x===(null!=d?d:""),K=!(0,y.W1)(k)||!!h||!!x,X=(0,S.F)(l,o,d);return(0,n.jsx)(m.k,{ref:C,disabled:p,title:X?"".concat(u,": ").concat(X):u,forceActive:!!X,onClear:G,name:r,onPopupStateChange:Z,children:(0,n.jsx)("div",{className:"filter-block-lifecycleDate",ref:z,children:W?R():(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.NN,{allowedOptions:B,isShowHelp:!1,id:"filter-block-lifecycleDate",...(0,y.L5)(k),...L,errors:P}),(0,n.jsx)(A,{setSettlement:v,setRegion:g,settlement:h,region:x}),(0,n.jsx)(b.$,{clearDisabled:!K,onClear:q,applyDisabled:Y,onApply:()=>{var e;H(k)&&(_(k,h,x),null===(e=C.current)||void 0===e||e.setOpen(!1))}})]})})})});_.displayName="Birth";var P=r(9118),H={};H.insert="head",H.singleton=!1,o()(P.A,H),P.A.locals;let E=["equal","interval"],z=(0,a.forwardRef)((e,t)=>{let{name:r,value:l,onChange:i,disabled:o,title:s="Смерть"}=e,[d,c]=(0,a.useState)(!1),p=(0,a.useRef)(null),{date:u,clearDate:h,setDate:v,...x}=(0,y.HJ)(l),{errors:g,validateDate:f,resetErrors:w}=(0,D.$)(),{contentRef:C,getPlaceholder:k,fillPlaceholder:j}=(0,V.k)(d),N=(0,D.C)(g);(0,a.useEffect)(()=>{N&&u.type&&w()},[u.type]),(0,a.useEffect)(()=>{d&&(l?v(l):h())},[d]);let A=(0,a.useRef)(()=>{j(),h(),w()}),[L,B]=(0,M.Y)(A.current),_=(0,a.useCallback)(e=>{c(e),e||A.current()},[]),P=(0,a.useCallback)(()=>{var e;A.current(),i(r,null),null===(e=p.current)||void 0===e||e.setOpen(!1)},[r,i]);(0,a.useImperativeHandle)(t,()=>({clear:P,clearForm:A.current}));let H=(0,y.W1)(u)?(0,y.sD)():u,z=T()(H,l||(0,y.sD)()),R=!(0,y.W1)(u),F=(0,S.F)(l);return(0,n.jsx)(m.k,{ref:p,disabled:o,title:F?"".concat(s,": ").concat(F):s,forceActive:!!F,onClear:P,name:r,onPopupStateChange:_,children:(0,n.jsx)("div",{className:"filter-block-lifecycleDate",ref:C,children:L?k():(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.NN,{allowedOptions:E,isShowHelp:!1,id:"filter-block-lifecycleDate",...(0,y.L5)(u),...x,errors:g}),(0,n.jsx)(b.$,{clearDisabled:!R,onClear:B,applyDisabled:z,onApply:()=>{var e;f(u)&&(i(r,u),null===(e=p.current)||void 0===e||e.setOpen(!1))}})]})})})});z.displayName="Death";var R=r(88585);let F=(0,a.forwardRef)((e,t)=>{let{value:r,onChange:i,name:o,title:s="Приватность"}=e,d=Array.isArray(r)?r:[r],c=(0,a.useRef)(null),[p,u]=(0,a.useState)(d),h=(0,a.useMemo)(()=>[{value:"invisible",label:"Скрытые",displayValue:"Скрытые",id:"filter-block-privacy-invisible",name:"filter-block-privacy-invisible",checked:p.includes("invisible")},{value:"visible_for_all",label:"Публичные",displayValue:"Публичные",id:"filter-block-privacy-visible_for_all",name:"filter-block-privacy-visible_for_all",checked:p.includes("visible_for_all")}],[p]),v=()=>{var e;u([]),i(o,[]),null===(e=c.current)||void 0===e||e.setOpen(!1)},g=(0,a.useMemo)(()=>JSON.stringify(p)===JSON.stringify(d),[p,d]),f=d.length,w=(0,a.useMemo)(()=>x(d,s,h),[d,s,h]);return(0,a.useImperativeHandle)(t,()=>({clear:v})),(0,n.jsx)(m.k,{ref:c,title:w,onClear:v,name:o,value:f,hideCount:1===f,onPopupStateChange:e=>{e&&u(d)},children:(0,n.jsxs)("div",{className:"filter-block-privacy",children:[(0,n.jsx)(l.Sc,{mini:!0,options:h,onChange:(e,t)=>
1{var r;let{checked:n}=e.target,l=null===(r=h[t])||void 0===r?void 0:r.value;l&&u(e=>n?[...e,l]:e.filter(e=>e!==l))}}),(0,n.jsx)(b.$,{clearDisabled:!p.length&&!(null==d?void 0:d.length),onClear:v,applyDisabled:g,onApply:()=>{var e;i(o,p),null===(e=c.current)||void 0===e||e.setOpen(!1)}})]})})});F.displayName="Privacy";var O=r(12256),I=r(73293),W=r(7681),q=r(19713),Z=r(20266),G=r(33564),$=r(36280),Y=r(8236),K=r(2031),X=r(51854),J=r(83876);let U=e=>{let[t,r]=(0,a.useState)([]),[n,l]=(0,a.useState)(!1),i=(0,Y.d4)(K.ak),{isPlus:o}=(0,J.G2)([]),s=null!=e?e:i,d=!!e&&e!==i;return(0,a.useEffect)(()=>{s&&(l(!0),(0,X.to)(s).then(e=>{r((Array.isArray(e)?e:[]).map(e=>({...e,id:null!=e.id?String(e.id):e.id})))}).catch(console.error).finally(()=>l(!1)))},[s]),{tags:t,isLoading:n,isPlus:o||d}};var Q=r(80314),ee={};ee.insert="head",ee.singleton=!1,o()(Q.A,ee),Q.A.locals;let et=O.AMh,er=new Set,en=(0,a.forwardRef)((e,t)=>{let{value:r,onChange:l,name:i,tagsUserId:o}=e,s=(0,a.useRef)(null),{tags:d,isPlus:c}=U(o),p=(0,$.g)({mode:"hover"}),u=()=>{var e;l(i,[]),null===(e=s.current)||void 0===e||e.setOpen(!1)};(0,a.useImperativeHandle)(t,()=>({clear:u}));let h=(0,a.useMemo)(()=>r.length<=1?[]:r.slice(1).map(e=>d.find(t=>t.id===e)).filter(Boolean),[r,d]),b=(0,a.useMemo)(()=>{if(!r.length)return"Метки";let e=d.find(e=>e.id===r[0]);if(!e)return"Метки";let t=r.length-1;return(0,n.jsxs)(n.Fragment,{children:["Метки:\xa0",(0,n.jsx)(O.abF,{...(0,Z.Vj)(e.color),disableHoverEffect:!0,children:e.tag}),t>0&&(0,n.jsxs)(et,{placement:"bottom",radius:"lg",size:"sm",spacing:"none",...p.popoverProps,children:[(0,n.jsx)(I.T,{children:(0,n.jsx)("div",{...p.triggerHandlers,children:(0,n.jsx)(O.kIZ,{children:t})})}),(0,n.jsx)(W.C,{children:(0,n.jsx)("div",{...p.contentHandlers,children:(0,n.jsx)(G.F,{tags:h,isRemovable:!1,removingTagIds:er,isPlus:c})})})]})]})},[r,d,h,c,p]),v=r.length,x=0===v||d.some(e=>e.id===r[0]);return(0,n.jsx)(m.k,{ref:s,title:b,onClear:u,name:i,value:v,hideCount:x,forceActive:v>0,className:"filter-block-tags",children:(0,n.jsx)("div",{className:"filter-block-tags-content",children:(0,n.jsx)(q.v,{tags:d,selected:r,hideManagement:!0,silent:!0,isPlus:c,clearLabel:"Очистить",assignLabel:"Применить",onAssign:e=>{var t;l(i,e.length>0?e:[]),null===(t=s.current)||void 0===t||t.setOpen(!1)},maxRows:5})})})});en.displayName="Tags";let el=e=>(0,R.m)(e,ea()),ea=()=>({lastName:null,lastNameExactMatch:null,firstAndMiddleName:null,firstAndMiddleNameExactMatch:null,type:null,birthDate:null,birthSettlementName:null,birthSettlementGeorequisites:null,deathDate:null,hasAllTags:null}),ei=e=>{var t,r,i;let{className:o,onSubmit:s,onClear:d,initialFilterData:u,submitDisabled:h,clearDisabled:m,withoutType:b=!1,withPrivacy:v=!1,isAuthed:x,enableTags:f=!1,tagsUserId:w}=e,y=(0,a.useRef)(null),C=(0,a.useRef)(null),k=(0,a.useRef)(null),j=(0,a.useRef)(null),N=(0,a.useRef)(null),A=null!=u?u:ea(),[M,V]=(0,a.useState)(A);(0,a.useEffect)(()=>{if(u&&(0,R.m)(u,ea())){var e,t,r,n;null===(e=C.current)||void 0===e||e.clear(),null===(t=k.current)||void 0===t||t.clear(),null===(r=j.current)||void 0===r||r.clear(),null===(n=N.current)||void 0===n||n.clear(),V(ea())}},[u]),(0,a.useEffect)(()=>{u&&!(0,R.m)(u,ea())&&V(u)},[u]);let D=(0,a.useCallback)((e,t)=>V(r=>({...r,[e]:t})),[]),S=el(null!=u?u:ea()),L=el(M)&&S,T=(0,a.useCallback)(()=>{L||s(M)},[M,L,s]);return(0,n.jsxs)("div",{className:(0,c.A)(o,"universal-person-filter"),children:[(0,n.jsxs)("div",{className:"universal-person-filter-fio",children:[(0,n.jsx)(p,{checkboxLabel:"Точное совпадение фамилии",name:"lastName",flagName:"lastNameExactMatch",placeholder:"Фамилия",onChange:D,value:M.lastName,flagValue:M.lastNameExactMatch,onEnterPress:T}),(0,n.jsx)(p,{checkboxLabel:"Точное совпадение имени и отчества",name:"firstAndMiddleName",flagName:"firstAndMiddleNameExactMatch",placeholder:"Имя и отчество",onChange:D,value:M.firstAndMiddleName,flagValue:M.firstAndMiddleNameExactMatch,onEnterPress:T})]}),(0,n.jsxs)("div",{className:"universal-person-filter-blocks",children:[v&&(0,n.jsx)(F,{ref:y,value:null!==(t=M.privacy)&&void 0!==t?t:[],onChange:D,name:"privacy"}),!b&&(0,n.jsx)(g,{ref:j,value:null!==(r=M.type)&&void 0!==r?r:[],onChange:D,name:"type",isAuthed:x}),f&&(0,n.jsx)(en,{ref:N,value:null!==(i=M.hasAllTags)&&void 0!==i?i:[],onChange:D,name:"hasAllTags",tagsUserId:w}),(0,n.jsx)(_,{ref:C,name:"birthDate",value:M.birthDate,nameSettlement:"birthSettlementName",valueSettlement:M.birthSettlementName,nameRegion:"birthSettlementGeorequisites",valueRegion:M.birthSettlementGeorequisites,onChange:D}),(0,n.jsx)(z,{ref:k,name:"deathDate",value:M.deathDate,onChange:D})]}),(0,n.jsxs)("div",{className:"universal-person-filter-actions",children:[(0,n.jsx)(l.$n,{disabled:L||h,style:"dark",onClick:T,children:"Найти"}),!S&&(0,n.jsx)(l.$n,{disabled:m,style:"borderless",onClick:()=>{d(ea())},children:"Очистить поиск"})]})]})}},46735:(e,t,r)=>{r.d(t,{TE:()=>a,aY:()=>s,bh:()=>l,hH:()=>o,o8:()=>i,qv:()=>n});let n="f",l={lastName:"string",lastNameExactMatch:"boolean",firstAndMiddleName:"string",firstAndMiddleNameExactMatch:"boolean",type:"array",birthDate:"date",birthSettlementName:"string",birthSettlementGeorequisites:"string",deathDate:"date",hasAllTags:"array",privacy:"string"},a={gregorian:"g",julian:"j"},i={equal:"eq",interval:"int"},o="to",s=[{value:"my_persons",displayValue:"Мои персоны"},{value:"catalog_persons",displayValue:"Справочные персоны"},{value:"other_users_persons",displayValue:"Чужие персоны"}]},17207:(e,t,r)=>{r.d(t,{f:()=>s});var n=r(96540),l=r(86715),a=r(8853),i=r(42545),o=r(46735);let s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{prefix:t=o.qv,shallow:r=!0,debounce:s=!0}=e,d=(0,l.useRouter)();return{parseFromUrl:(0,n.useCallback)(()=>(0,i.mi)(d.query,t),[d.query,t]),syncToUrl:(0,n.useCallback)(e=>{let n={...Object.keys(o.bh).reduce((e,r)=>(e["".concat(t,"_").concat(r)]=null,e),{}),...(0,i.eK)(e,t)},l={shallow:r,scroll:!1};if(s)(0,a.FT)(n,void 0,l);else{let r={...d.query};
1Object.keys(o.bh).forEach(e=>{delete r["".concat(t,"_").concat(e)]}),d.replace({pathname:d.pathname,query:{...r,...(0,i.eK)(e,t)}},void 0,l)}},[d,t,r,s]),clearFromUrl:(0,n.useCallback)(()=>{let e=Object.keys(o.bh).reduce((e,r)=>(e["".concat(t,"_").concat(r)]=null,e),{});(0,a.FT)(e,void 0,{shallow:r,scroll:!1})},[t,r])}}},88585:(e,t,r)=>{r.d(t,{m:()=>o});var n=r(2404),l=r.n(n);let a=e=>!e||Array.isArray(e)&&0===e.length,i=(e,t)=>!!(a(e)&&a(t))||!(a(e)||a(t))&&("object"==typeof e||"object"==typeof t?l()(e,t):e===t),o=(e,t)=>{let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!(n in t)||!i(e[n],t[n]))return!1;return!0}},42545:(e,t,r)=>{r.d(t,{eK:()=>o,mi:()=>s});var n=r(46735),l=r(70493);let a=e=>{if(!e||!e.type)return null;let{calendar:t="gregorian",type:r,first:l,second:a}=e,i="julian"===t?n.TE.julian:n.TE.gregorian,o=e=>e?String(e):"",s=e=>!!e&&[e.year,e.month,e.day].some(e=>null!=e&&""!==e);return"equal"===r&&l&&s(l)?[i,n.o8.equal,o(l.year),o(l.month),o(l.day)].join("-"):"interval"===r&&l&&a&&s(l)&&s(a)?[i,n.o8.interval,o(l.year),o(l.month),o(l.day),n.hH,o(a.year),o(a.month),o(a.day)].join("-"):null},i=e=>{if(!e)return null;let t=e.split("-");if(t.length<2)return null;let r=t[0]===n.TE.julian?"julian":"gregorian",l=t[1]===n.o8.equal?"equal":t[1]===n.o8.interval?"interval":null;if(!l)return null;if("equal"===l){let e=t.slice(2);return{calendar:r,type:"equal",first:{year:e[0]||null,month:e[1]||null,day:e[2]||null}}}if("interval"===l){let e=t.indexOf(n.hH);if(-1===e)return null;let l=t.slice(2,e),a=t.slice(e+1);return{calendar:r,type:"interval",first:{year:l[0]||null,month:l[1]||null,day:l[2]||null},second:{year:a[0]||null,month:a[1]||null,day:a[2]||null}}}return null},o=(e,t)=>{let r={};return Object.entries(n.bh).forEach(n=>{let[l,i]=n,o=e[l];if(!o)return;let s="".concat(t,"_").concat(l);switch(i){case"string":r[s]=o;break;case"boolean":r[s]="1";break;case"array":Array.isArray(o)&&o.length>0&&(r[s]=o.join(","));break;case"date":{let e=a(o);e&&(r[s]=e)}}}),r},s=(e,t)=>{let r=(0,l.Pg)();return Object.entries(n.bh).forEach(n=>{let[l,a]=n,o=e["".concat(t,"_").concat(l)];if(!(!o||Array.isArray(o)))switch(a){case"string":r[l]=o;break;case"boolean":"1"===o&&(r[l]=!0);break;case"array":r[l]=o.split(",").filter(Boolean);break;case"date":{let e=i(o);e&&(r[l]=e)}}}),r}},59071:(e,t,r)=>{r.d(t,{w:()=>L});var n=r(74848),l=r(14538),a=r(8360),i=r(2107),o=r(96540),s=r(91106),d=r.n(s),c=r(86715),p=r(20053),u=r(43122),h=r(33173),m=r(85072),b=r.n(m),v=r(89872),x={};x.insert="head",x.singleton=!1,b()(v.A,x),v.A.locals;var g=r(96196),f=r(92245),w=r(44826),y=r.n(w),C=r(16967),k=r(52395),j=r(24508),N=r(57186),A=r(44044),M=r(93803),V=r(53461);let D=e=>{let{settlementText:t,settlement:r}=e;return r?y()("".concat(r.type," ").concat(r.name))||"":t||""},S=e=>{let{deathSettlementText:t,deathPlace:r}=e;return r&&y()("".concat(r.type," ").concat(r.name))||t},L=e=>{let{person:t,isEditable:r,isTreeLinkVisible:s,splitInfo:m=!1,brief:b=!1,style:v,isManualRender:x=!1,isMyPersonsPage:w=!1,showTags:y=!1,onReload:L}=e,{id:T,thumbnail:B,birthDate:_,isMine:P,isMe:H,canBuildTree:E,privacyType:z,deathDate:R,sex:F=""}=t,O=(0,c.useRouter)(),I=!b,W="".concat(_||"неизвестно"),q=D(t),Z=S(t),G=(0,f.sb)(t,w),$=I&&!!G,[Y,K]=(0,o.useState)(!1),[X,J]=(0,o.useState)(!1),[U,Q]=(0,o.useState)(!1),{isMobile:ee}=(0,M.al)(),{openModal:et}=(0,k.h)(),er=P||r||!!t.isGrantedToMe,en=e=>{et({type:j.B.editPerson,data:{personId:e,onSave:L}})},el=ee?{onClick:e=>{e.stopPropagation(),e.preventDefault(),!e.target.closest(".personCard-hoverMenu-icon")&&(Q(!U),X&&J(!1))}}:{onMouseEnter:()=>{Q(!0)},onMouseLeave:e=>{var t;let r=e.currentTarget,n=e.relatedTarget;n&&(null==r?void 0:null===(t=r.contains)||void 0===t?void 0:t.call(r,n))||Q(!1)}};return(0,n.jsxs)("div",{className:"personCard",style:v,children:[(0,n.jsxs)("div",{className:(0,p.A)({"personCard-avatarLink":r}),onClick:()=>{U||O.push((0,a.GP)(t))},...el,children:[r&&U&&(X?(0,n.jsxs)("div",{className:"personCard-hoverDeletingMenu",children:[Y&&(0,n.jsx)(u.aH,{isFormLoader:!0}),(0,n.jsx)("span",{className:"personCard-hoverDeletingMenu-title",children:"Удалить?"}
1),(0,n.jsx)(u.$n,{onClick:()=>{K(!0),(0,N.o8)(T).then(e=>{if(null==e?void 0:e.errors)throw e;L&&L(T)}).catch(e=>{console.error(e)}).finally(()=>{K(!1),J(!1)})},className:"__delete",text:"Удалить",style:"round"}),(0,n.jsx)(u.$n,{onClick:()=>J(!1),className:"__filled",text:"Отмена",style:"round"})]}):(0,n.jsxs)("div",{className:"personCard-hoverMenu",children:[(0,n.jsx)("span",{className:"personCard-hoverMenu-icon",onClick:()=>{en(t.id)},children:(0,n.jsx)(V.q,{fill:"#1A56F1"})}),(0,n.jsx)(A.e,{isMe:H,action:()=>J(!0),iconClassName:"personCard-hoverMenu-icon"})]})),(0,n.jsxs)("div",{children:[B?(0,n.jsx)("div",{className:"personCard-avatar",style:{backgroundImage:'url("'.concat(B,'")'),backgroundSize:"cover",backgroundPosition:"center"}}):(0,n.jsx)("div",{className:"personCard-avatar",children:(0,n.jsx)(l.fC,{gender:F})}),H&&I&&(0,n.jsx)(u.JU,{type:"isMe",cName:"personCard-isMe"})]})]}),(0,n.jsxs)("div",{className:"personCard-content",children:[$&&(0,n.jsx)("div",{className:(0,p.A)("personCard-labels",{withFromCatalog:"isFromCatalog"===G,withShared:"isShared"===G,isMe:"isMe"===G}),children:(0,n.jsx)(u.JU,{type:G,cName:(0,p.A)({"personCard-isMe-mobile":"isMe"===G,"personCard-labelMine":"isMine"===G,"personCard-labelCatalog":"isFromCatalog"===G,"personCard-labelShared":"isShared"===G})})}),s&&E&&(0,n.jsx)(g.Y,{personId:T,className:(0,p.A)("personCard-treeButtonLabel",{"with-isMe-label":"isMe"===G,"with-isMine-label":"isMine"===G,"with-isShared-label":"isShared"===G})}),I&&z&&er&&(0,n.jsx)("div",{className:"personCard-privacy",children:(0,n.jsx)(h.V,{mobileBp:744,personId:T,type:z,iconSize:"normal",readOnly:!P&&!r&&!t.isGrantedToMe,cName:(0,p.A)("personCard-icon",{closed:"invisible"===z})})}),(0,n.jsxs)(d(),{href:(0,a.GP)(t),className:"personCard-linkwrap",children:[(0,n.jsx)("div",{className:"personCard-name",children:x?(0,n.jsx)("span",{className:"text-hypenation",children:(0,a.L2)(t)}):(0,n.jsx)("span",{className:"text-hypenation",dangerouslySetInnerHTML:{__html:(0,i.a)((0,a.L2)(t),"search")}})}),(0,n.jsx)("p",{className:"personCard-info",children:m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"personCard-info-birthDate",children:[W,q?", ":""]}),(0,n.jsx)("span",{className:"personCard-info-settlement",children:q})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"род."})," ".concat(W.toLowerCase()).concat(q?", "+q:"")]})}),(!!R||!!Z)&&(0,n.jsx)("p",{className:"personCard-info",children:m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"personCard-info-date",children:[R,Z?", ":""]}),(0,n.jsx)("span",{className:"personCard-info-settlement",children:Z})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"ум."})," ".concat(R.toLowerCase()).concat(Z?", "+Z:"")]})})]}),y&&(0,a.V9)(t)&&(0,n.jsx)("div",{className:"personCard-tags",children:(0,n.jsx)(C.J0,{personId:T,centered:!0})})]})]})}},44044:(e,t,r)=>{r.d(t,{e:()=>o});var n=r(74848),l=r(96540),a=r(62232),i=r(53461);let o=e=>{let{isMe:t,action:r,popupText:o="Нельзя удалить самого себя",iconClassName:s,isForceClose:d}=e,[c,p]=(0,l.useState)(null),[u,h]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{d&&h(!1)},[d]),t)?(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{ref:p,className:"".concat(s," disabled-icon"),onClick:()=>!u&&h(!0),children:(0,n.jsx)(i.Y,{})}),(0,n.jsx)(a.tF,{popupTarget:c,isOpened:u,handleClose:()=>h(!1),text:o})]}):(0,n.jsx)("span",{className:s,onClick:()=>r(),children:(0,n.jsx)(i.Y,{})})}},92245:(e,t,r)=>{r.d(t,{$S:()=>h,CQ:()=>u,sb:()=>p});var n=r(74848);r(96540);var l=r(20053),a=r(43122),i=r(33173),o=r(96196),s=r(8360),d=r(2107),c=r(16967);let p=(e,t)=>{let r=e.isMine&&!e.isMe,n=e.isMe,l=(0,s.bj)(e),a=!!e.isGrantedToMe;switch(!0){case t&&r:return;case r:return"isMine";case n:return"isMe";case l:return"isFromCatalog";case a:return"isShared";default:return}},u=(e,t)=>{let r=p(e,t),n=!(0,s.bj)(e)&&e.canBuildTree,l=e.isMine||!!e.isGrantedToMe;return!!(r||n||l)},h=e=>{let{person:t,isMyPersonsPage:r,isManualRender:h,onPageLeave:m}=e,b=t.isMe,v=(0,s.bj)(t),x=p(t,r),g=u(t,r),f=t.isMine||r,w=!!t.isGrantedToMe;return(0,n.jsxs)("div",{className:(0,l.A)("persons-table-view-nameCell",{"persons-table-view-nameCell--noHeader":!g}),children:[g&&(0,n.jsxs)("div",{className:"persons-table-view-nameCell-header",children:[x&&(0,n.jsx)(a.JU,{type:x,cName:b?"personsView-isMe":""}),!v&&t.canBuildTree&&(0,n.jsx)(o.Y,{personId:t.id,className:"persons-table-view-nameCell-treeIcon"}),(f||w)&&(0,n.jsx)(i.V,{personId:t.id,type:t.privacyType,readOnly:!f&&!w})]}),(0,n.jsx)(a.N_,{className:"link",href:t&&(0,s.GP)(t),onClick:e=>{e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==e.button||null==m||m()},children:h?(0,n.jsx)("span",{children:(0,s.L2)(t)}):(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,d.a)((0,s.L2)(t),"search")}})}),(0,s.V9)(t)&&(0,n.jsx)(c.J0,{personId:t.id})]})}},92340:(e,t,r)=>{r.d(t,{Dw:()=>o,Ic:()=>i,Tb:()=>l,a7:()=>a});let n=[{key:"name",label:"ФИО",width:"20%",sortable:!0},{key:"birthDate",label:"Дата рождения",width:"8%",sortable:!0},{key:"settlement",label:"Место рождения",width:"25%",sortable:!0},{key:"deathDate",label:"Дата смерти",width:"8%",sortable:!0}],l=[...n,{key:"recordType",label:"Тип записи",width:"25%",sortable:!1},{key:"updatedAt",label:"Обновлено",width:"8%",sortable:!0}],a=[...n,{key:"deathPlace",label:"Место смерти",width:"25%",sortable:!0},{key:"biography",label:"Биография",width:"25%",sortable:!1}],i=[{key:"name",label:"ФИО",width:"20%",sortable:!0},{key:"birthDate",label:"Дата рождения",width:"8%",sortable:!0},{key:"deathDate",label:"Дата смерти",width:"8%",sortable:!0},{key:"event",label:"Событие",width:"12%",sortable:!1},{key:"eventDate",label:"Дата события",width:"8%",sortable:!1},{key:"recordType",label:"Тип записи",width:"24%",sortable:!1},{key:"updatedAt",label:"Обновлено",width:"8%",sortable:!0}];[...l,...i];let o={key:"actions",label:"",sortable:!1,width:"6%"}},22593:(e,t,r)=>{r.d(t,{Dw:()=>M.Dw,Ic:()=>M.Ic,Qg:()=>ee});var n=r(74848),l=r(96540),a=r(15445),i=r(33016),o=r(12256),s=r(69231),d=r(23825),c=r(22424),p=r(77048),u=r(52395),h=r(24508),m=r(92245),b=r(20053),v=r(18816);let x=e=>{let{className:t,children:r,na:l=v.SZ}=e;return(0,n.jsx)("span",{suppressHydrationWarning:!0,className:(0,b.A)("persons-table-view-dateCell",t),children:r||l})};var g=r(56376);let f=e=>{let{settlement:t,settlementText:r,hasEvent:l}=e;return l?t&&t.id?(0,n.jsx)("div",{className:"persons-table-view-settlementCell",children:(0,n.jsx)(g.K1,{settlement:t,linkProps:{newPage:!0}})}):(0,n.jsx)("div",{className:"persons-table-view-settlementCell",children:r||"—"}):(0,n.jsx)("span",{className:"persons-table-view-settlementCell"})};var w=r(44044),y=r(53461);let C=e=>{let{person:t,onEdit:r,onDelete:l}=e;return(0,n.jsxs)("div",{className:"persons-table-view-actionsCell",children:[(0,n.jsx)("span",{className:"persons-table-view-icon",onClick:()=>r(t.id),children:(0,n.jsx)(y.q,{fill:"#1A56F1"})}),(0,n.jsx)(w.e,{isMe:t.isMe,action:()=>l(t.id),iconClassName:"persons-table-view-icon"})]})};var k=r(93803),j=r(37675);let N=e=>{let{biography:t}=e,[r,a]=(0,l.useState)(!1),{isMobile:i}=(0,k.al)(),o=(0,l.useRef)(null);return(0,k.Ls)(o,()=>{a(!1)}),(0,n.jsxs)("div",{className:"persons-table-view-biographyCell",ref:o,children:[r&&(0,n.jsx)(j.l,{disableArrow:!0,options:{placement:i?"bottom":"left"}
1,targetRef:o.current,className:"persons-table-view-biographyCell-portal",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:()=>a(!1),children:(0,n.jsx)(A,{})}),t]})}),(0,n.jsx)("span",{onClick:()=>a(!r),children:t})]})},A=()=>(0,n.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M0.411316 0.412109L12.4117 12.4125",stroke:"black",strokeWidth:"1.1633"}),(0,n.jsx)("path",{d:"M0.411316 12.4121L12.4117 0.411751",stroke:"black",strokeWidth:"1.1633"})]});r(43122);var M=r(92340);let V={kind:"data-settlement-sync-kind",personId:"data-settlement-sync-person",index:"data-settlement-sync-index",count:"data-settlement-sync-count"},D={event:"event",eventDate:"eventDate"},S={event:"[".concat(V.kind,'="').concat(D.event,'"]'),eventDate:"[".concat(V.kind,'="').concat(D.eventDate,'"]')},L={lines:"persons-table-view-eventLines",line:"persons-table-view-eventLine"},T=e=>{let t=e.getAttribute(V.personId),r=e.getAttribute(V.index);return t&&null!==r?"".concat(t,"::").concat(r):null},B=e=>{let t=e.getAttribute(V.count);if(!t)return null;let r=Number(t);return Number.isFinite(r)?r:null},_=e=>{let t=new Map;return e.forEach(e=>{let r=B(e);if(null!==r&&r<=1)return;let n=T(e);n&&t.set(n,e)}),t},P=(e,t)=>({eventMap:_(e),dateMap:_(t)}),H=e=>{e.forEach(e=>{e.style.height=""})},E=(e,t)=>{e.forEach((e,r)=>{let n=t.get(r);if(!n)return;let l=Math.max(e.getBoundingClientRect().height,n.getBoundingClientRect().height);e.style.height="".concat(l,"px"),n.style.height="".concat(l,"px")})},z=e=>{let{rootRef:t,enabled:r=!1,throttleMs:n=500,deps:a=[]}=e;(0,l.useEffect)(()=>{let e;if(!r)return;let l=t.current;if(!l)return;let a=()=>{let e=t.current;if(!e)return;let r=Array.from(e.querySelectorAll(S.event)),n=Array.from(e.querySelectorAll(S.eventDate));if(!r.length&&!n.length)return;H([...r,...n]);let{eventMap:l,dateMap:a}=P(r,n);l.size&&a.size&&E(l,a)},i=()=>{void 0===e&&(e=window.setTimeout(()=>{e=void 0,a()},n))},o=new ResizeObserver(()=>{i()});return o.observe(l),i(),()=>{o.disconnect(),void 0!==e&&window.clearTimeout(e),H(Array.from(l.querySelectorAll("".concat(S.event,", ").concat(S.eventDate))))}},[r,t,n,...a])};var R=r(16967),F=r(85072),O=r.n(F),I=r(84802),W={};W.insert="head",W.singleton=!1,O()(I.A,W),I.A.locals;let q=e=>{let{children:t}=e;return(0,n.jsx)("span",{className:"persons-table-view-typeCell",children:t})};var Z=r(76449),G=r(68055),$=r(98003),Y=r(15843),K=r(19267);let X=e=>{var t;return null!==(t=null==e?void 0:e.events)&&void 0!==t?t:[]},J=(e,t,r,l)=>e.length?(0,n.jsx)("span",{className:L.lines,children:e.map((a,i)=>{var o,s;return(0,n.jsx)("span",{className:L.line,[V.kind]:r,[V.personId]:t,[V.index]:i,[V.count]:e.length,children:null!==(o=l(a))&&void 0!==o?o:""},null!==(s=null==a?void 0:a.uuid)&&void 0!==s?s:"event-".concat(i))})}):null,U=e=>{let{onPageLeave:t}=e;return{name:(e,r)=>{let{isMyPersonsPage:l,isManualRender:a}=r;return(0,n.jsx)(m.$S,{person:e,isMyPersonsPage:l,isManualRender:a,onPageLeave:t})},birthDate:e=>{let{birthDate:t}=e;return(0,n.jsx)(x,{className:"persons-table-view-birthDate",children:t})},settlement:e=>{let{settlement:t,settlementText:r}=e;return(0,n.jsx)(f,{settlement:t,settlementText:r,hasEvent:!0})},deathDate:e=>{let{hasDeathEvent:t,deathDate:r}=e;return(0,n.jsx)(x,{className:"persons-table-view-deathDate",na:"",children:t?r:""})},deathPlace:e=>{let{hasDeathEvent:t,deathPlace:r,deathSettlementText:l}=e;return(0,n.jsx)(f,{settlement:t?r:null,settlementText:t?l:null,hasEvent:t})},biography:e=>{let{biography:t}=e;return(0,n.jsx)(N,{biography:t})},event:e=>{let t=X(e);return(0,n.jsx)("span",{className:"persons-table-view-eventCell",children:J(t,e.id,D.event,e=>{var t;return(null==e?void 0:e.type)?null!==(t=Y.mu[e.type])&&void 0!==t?t:e.type:null})})},eventDate:e=>{let t=X(e);return(0,n.jsx)(x,{className:"persons-table-view-eventDate",children:J(t,e.id,D.eventDate,e=>(null==e?void 0:e.date)?(0,K.yW)(e.date,K.SZ):null)})},recordType:e=>{var t;let{catalogName:r,owner:l}=e;return(0,n.jsx)(q,{children:null!==(t=r||l)&&void 0!==t?t:null})},updatedAt:e=>{let{updatedAt:t}=e;return(0,n.jsx)(x,{children:t?(0,Z.A)((0,G.A)(t),"dd.MM.yyyy",{locale:$.A}):null})}}};var Q=r(53441);let ee=e=>{let{data:t,isEditable:r=!1,onReload:v,onSortChange:x,sortDescriptor:g,columns:f,classNames:w,isAdaptiveActive:y=!1,onPageLeave:k,tableVariant:j,activeBreakpoint:N,isMyPersonsPage:A,onPersonEdit:V}
1=e,D=(0,l.useRef)(null),{openModal:S}=(0,u.h)(),L=(0,l.useCallback)(e=>{S({type:h.B.editPerson,data:{personId:e,onSave:e=>null==V?void 0:V(e)}})},[S,V]),T=(0,l.useCallback)(e=>{x&&x({column:e.column,direction:e.direction})},[x]);(0,R.W7)(D);let B=(0,l.useCallback)(e=>{S({type:h.B.prompt,data:{title:"Удалить персону?",contentClassName:"delete-person",onAcceptAsync:()=>(0,p.o8)(e).then(Q.L).catch(Q.h).then(()=>{null==v||v(e)})}})},[v]),_=(null==g?void 0:g.column)?{column:g.column,direction:g.direction}:void 0;return z({rootRef:D,enabled:"settlement"===j&&"xs"!==N,deps:[t,f,y]}),(0,n.jsxs)("div",{className:"persons-table-view",ref:D,children:[(0,n.jsx)("div",{id:"table-view-portal"}),(0,n.jsxs)(o.XIK,{hideHeader:y,isRowEdgeless:!0,rowDivider:"after",classNames:w,sortDescriptor:_,onSortChange:T,children:[(0,n.jsx)(s.X,{columns:f,children:e=>(0,n.jsx)(d.e,{minWidth:e.minWidth,maxWidth:e.maxWidth,defaultWidth:e.defaultWidth,width:e.width,allowsSorting:e.sortable,children:e.label},e.key)}),(0,n.jsx)(c.E,{items:t,children:t=>{let l=(0,m.CQ)(t,e.isMyPersonsPage),o=U({onPageLeave:k}),s=f.filter(e=>"actions"!==e.key).map(r=>{let i=o[r.key],s="name"===r.key,d="biography"===r.key&&!t.biography.length,c=[];return(!l&&!s||d)&&(c.push("persons-table-view-cell--noHeader"),A&&c.push("noHeader-myPersonsPage")),(0,n.jsx)(a.w,{className:(0,b.A)(c),children:i?i(t,e):null},"".concat(r.key,"-").concat(t.id))});return r&&s.push((0,n.jsx)(a.w,{className:"actions-cell",children:(0,n.jsx)(C,{person:t,onEdit:L,onDelete:B})},"".concat(M.Dw.key,"-").concat(t.id))),(0,n.jsx)(i.s,{children:s},t.id)}})]})]})}},96196:(e,t,r)=>{r.d(t,{Y:()=>i});var n=r(74848);r(96540);var l=r(5035),a=r(20053);let i=e=>{let{personId:t,className:r="",fill:i="currentcolor"}=e,{handleTreeRedirect:o}=(0,l.a)({personId:t});return(0,n.jsx)("div",{className:(0,a.A)("build-tree-trigger",r),onClick:e=>{e.preventDefault(),o()},children:(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4C8.44772 4 8 4.44772 8 5V9C8 9.55228 8.44772 10 9 10H11.25V11.25H10.5C9.31851 11.25 8.47933 11.6518 7.94253 12.2483C7.42734 12.8207 7.25 13.5072 7.25 14V15H6.5C5.94772 15 5.5 15.4477 5.5 16V19C5.5 19.5523 5.94772 20 6.5 20H9.5C10.0523 20 10.5 19.5523 10.5 19V16C10.5 15.4477 10.0523 15 9.5 15H8.75V14C8.75 13.8261 8.82266 13.5126 9.05747 13.2517C9.27067 13.0148 9.68149 12.75 10.5 12.75H13.5C14.3243 12.75 14.7344 13.0111 14.9448 13.2428C15.1752 13.4963 15.25 13.807 15.25 14V15H14.5C13.9477 15 13.5 15.4477 13.5 16V19C13.5 19.5523 13.9477 20 14.5 20H17.5C18.0523 20 18.5 19.5523 18.5 19V16C18.5 15.4477 18.0523 15 17.5 15H16.75V14C16.75 13.4957 16.5748 12.8063 16.0552 12.2342C15.5156 11.6403 14.6757 11.25 13.5 11.25H12.75V10H15C15.5523 10 16 9.55228 16 9V5C16 4.44772 15.5523 4 15 4H9Z",fill:i})})})}},53461:(e,t,r)=>{r.d(t,{Y:()=>l,q:()=>a});var n=r(74848);let l=e=>{let{color:t="#1A56F1"}=e;return(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.25879 2L9.88867 2.59961L13.0664 2.59961C13.3978 2.59961 13.667 2.86882 13.667 3.2002C13.6669 3.53148 13.3977 3.7998 13.0664 3.7998H12.9678L11.8389 12.9404C11.7651 13.5401 11.2226 13.9999 10.5889 14L5.41113 14C4.77741 13.9999 4.23495 13.5401 4.16113 12.9404L3.03223 3.7998H2.93359C2.60229 3.7998 2.33311 3.53148 2.33301 3.2002C2.33301 2.86882 2.60222 2.59961 2.93359 2.59961L6.11133 2.59961L6.74121 2L9.25879 2ZM6.74023 5C6.39272 5.00026 6.11133 5.28231 6.11133 5.62988L6.11133 11C6.11133 11.331 6.3929 11.5994 6.74023 11.5996C7.08786 11.5996 7.36994 11.3183 7.37012 10.9707L7.37012 5.62988C7.37012 5.28215 7.08797 5 6.74023 5ZM9.25879 5C8.91126 5.00024 8.62988 5.2823 8.62988 5.62988L8.62988 10.9707C8.63006 11.3181 8.91137 11.5994 9.25879 11.5996C9.60634 11.5996 9.88867 11.3312 9.88867 11L9.88867 5.62988C9.88867 5.28215 9.60652 5 9.25879 5Z",fill:t})})},a=e=>{let{color:t="#1A56F1"}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M10.5296 2.60154C10.9306 2.20051 11.4473 2 11.964 2C12.4807 2 12.9974 2.20051 13.3985 2.60154C14.2005 3.4036 14.2005 4.66838 13.3985 5.47044L13.0761 5.79277L10.2072 2.92388L10.5296 2.60154Z",fill:t}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.50012 3.63098L2.72494 10.4062L2.69409 10.5604L2.15424 13.2751L2 14L2.72494 13.8458L5.43959 13.3059L5.59383 13.2751L12.369 6.49988L9.50012 3.63098ZM4.88432 12.4113C4.64524 11.8194 4.18059 11.3548 3.58869 11.1157L3.26478 12.7352L4.88432 12.4113Z",fill:t})]})}},63151:(e,t,r)=>{r.d(t,{K:()=>T});var n=r(74848),l=r(12256),a=r(20053),i=r(62621),o=r(96540),s=r(59071),d=r(81857);let c=()=>(0,n.jsx)("svg",{width:"29",height:"28",viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M13.084 15.1663H7.25065C6.9201 15.1663 6.64301 15.0545 6.4194 14.8309C6.19579 14.6073 6.08398 14.3302 6.08398 13.9997C6.08398 13.6691 6.19579 13.392 6.4194 13.1684C6.64301 12.9448 6.9201 12.833 7.25065 12.833H13.084V6.99967C13.084 6.66912 13.1958 6.39204 13.4194 6.16842C13.643 5.94481 13.9201 5.83301 14.2507 5.83301C14.5812 5.83301 14.8583 5.94481 15.0819 6.16842C15.3055 6.39204 15.4173 6.66912 15.4173 6.99967V12.833H21.2507C21.5812 12.833 21.8583 12.9448 22.0819 13.1684C22.3055 13.392 22.4173 13.6691 22.4173 13.9997C22.4173 14.3302 22.3055 14.6073 22.0819 14.8309C21.8583 15.0545 21.5812 15.1663 21.2507 15.1663H15.4173V20.9997C15.4173 21.3302 15.3055 21.6073 15.0819 21.8309C14.8583 22.0545 14.5812 22.1663 14.2507 22.1663C13.9201 22.1663 13.643 22.0545 13.4194 21.8309C13.1958 21.6073 13.084 21.3302 13.084 20.9997V15.1663Z",fill:"black"})}),p=e=>{var t;let{data:r,isEditable:l,isTreeLinkVisible:a,isManualRender:i=!1,isMyPersonsPage:o=!1,showTags:p=!0,creatorName:u="",onReload:h}=e;return(0,n.jsxs)("div",{className:"personsView-cardsContainer",children:[o&&(0,n.jsx)(d.Z,{personOwner:null===(t=r[0])||void 0===t?void 0:t.ownerId,children:e=>(0,n.jsxs)("div",{className:"AddPersonCard",onClick:e,children:[(0,n.jsx)("div",{className:"AddPersonCard__icon",children:(0,n.jsx)(c,{})}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:u?"Добавить человека пользователю <b>".concat(u,"</b>"):"Добавить человека в <b>Мои люди</b>"}})]})}),r.map(e=>(0,n.jsx)(s.w,{isManualRender:i,person:e,isEditable:l,isTreeLinkVisible:a,isMyPersonsPage:o,showTags:p,onReload:h},e.id))]})};var u=r(22593),h=r(93803),m=r(85072),b=r.n(m),v=r(36210),x={};x.insert="head",x.singleton=!1,b()(v.A,x),v.A.locals;var g=r(8587),f=r(4080),w=r(92340),y=r(86715);let C={default:[100,100,100,100,100,100],md:[100,100,100,100,100,100],sm:[
1100,100,100,100,100,100]},k={default:C.default,md:[100,25,75,100,100,100],sm:[100,35,65,100,100,100]},j={default:C.default,md:[100,25,75,100,100],sm:[100,35,65,100,100]},N={default:[...C.default,100],md:[100,25,75,25,75,100,100],sm:[100,35,65,35,65,100,100]},A={default:[100,100,100,100,100,100,100],md:[100,50,50,50,50,100,100],sm:[100,50,50,50,50,100,100]},M={default:[100,100,100,100,100,100]},V={isRowEdgeless:!0,align:"start",valign:"top"},D={name_ascending:"От А до Я по ФИО",name_descending:"От Я до А по ФИО",birthDate_ascending:"Дата рождения по возрастанию",birthDate_descending:"Дата рождения по убыванию",deathDate_ascending:"Дата смерти по возрастанию",deathDate_descending:"Дата смерти по убыванию",settlement_ascending:"От А до Я по месту рождения",settlement_descending:"От Я до А по месту рождения",updatedAt_ascending:"От старых к новым",updatedAt_descending:"От новых к старым"},S=(0,n.jsxs)("div",{className:"personsView-empty-result-note",children:[(0,n.jsx)("h3",{children:"Пока пусто, но это тоже результат"}),(0,n.jsx)("p",{children:"Мы не нашли совпадений среди персон пользователей. Попробуйте изменить параметры или проверить написание."}),(0,n.jsx)("p",{children:"Добавьте нужного человека и пополните своё семейное древо."}),(0,n.jsx)(d.Z,{})]}),L=e=>{switch(e){case"settlement":return A;case"surname":return M;case"my-persons":return N;case"persons":return k;case"persons-reduced":return j;default:return C}},T=e=>{let{data:t,title:r,subtitle:s,filters:c,search:m,pagination:b,isLoading:v=!1,isEditable:x=!1,isError:C=!1,isTreeLinkVisible:k=!0,onReload:j=()=>null,onViewChange:N,isMyPersonsPage:A=!1,isManualRender:M=!1,pageSize:T=null,onPageSizeChange:B,isPending:_=!1,onSortChange:P,sortDescriptor:H,columns:E,viewMode:z="auto",showHeader:R=!0,showAddButton:F=!0,showViewSwitcher:O=!0,emptyStateContent:I,hideResultsTollbar:W,afterToolbarContent:q,tableVariant:Z="common",adaptiveOptions:G,creatorName:$,tabs:Y,onPersonEdit:K}=e,[X,J]=(0,o.useState)(!1),[U,Q]=(0,h.Ul)("cards",i.z),[ee,et]=(0,h.Ul)("cards",i.M),{query:er}=(0,y.useRouter)(),{owner:en}=er,el=(0,o.useCallback)(e=>{"auto"===z&&((x?et:Q)(e),N&&N(e))},[x,N,et,Q,z]),ea="auto"===z?x?ee:U:z,ei="table"===ea,eo=null!=E?E:w.Tb,es=(0,o.useMemo)(()=>x?[...eo,u.Dw]:eo,[x,eo]),ed=L(Z),ec=(0,o.useMemo)(()=>({...V,...null!=G?G:{}}),[G]),{classNames:ep,isActive:eu,activeBreakpoint:eh,AdaptiveStyles:em}=(0,l.oIo)({columns:es.map(e=>e.label),layout:ed,...ec}),eb=X&&!v||_,ev=e=>{j&&j(e)},ex=(0,o.useCallback)(()=>{J(!0)},[]);return(0,n.jsxs)("div",{className:"personsView",children:[R&&(0,n.jsxs)("div",{className:"page-heading",children:[(0,n.jsx)("div",{className:"page-heading-title",children:r&&(0,n.jsx)("h1",{children:r})}),F&&(0,n.jsx)("div",{className:"page-heading-block",children:(0,n.jsx)(d.Z,{personOwner:en})})]}),!!Y&&Y,!!m&&m,(0,n.jsxs)("div",{className:"personsView-wrapper",children:[c&&(0,n.jsx)("div",{id:g.A.persons[1].id,className:"personsView-personsFilters",children:c}),(0,n.jsxs)("div",{className:(0,a.A)("personsView-content",eb&&"personsView-content-pending"),children:[(0,n.jsxs)("div",{className:"personsView-data",children:[!W&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.e,{view:ea,onViewChange:O&&"auto"===z?el:void 0,onPageSizeChange:B,pageSize:T,viewSwitcherId:g.A.persons[2].id,isAdaptiveActive:eu,columns:es,sortDescriptor:H,onSortChange:P,breakpoint:eh,sortLabels:D,children:!!s&&(0,n.jsx)("h2",{children:s})}),q]}),v?(0,n.jsx)(l.y$y,{size:"lg",className:"personsView-initial-loader"}):(0,n.jsx)(n.Fragment,{children:!C&&(t&&0!==t.length?ei?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(em,{}),(0,n.jsx)(u.Qg,{data:t,isEditable:x,onReload:ev,isMyPersonsPage:A,isManualRender:M,columns:es,classNames:ep,isAdaptiveActive:eu,activeBreakpoint:eh,onSortChange:P,sortDescriptor:H,onPageLeave:ex,tableVariant:Z,onPersonEdit:K}),b&&b]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{data:t,isEditable:x,isTreeLinkVisible:k,isManualRender:M,isMyPersonsPage:A,creatorName:$,onReload:ev}),b&&b]}):v||_||X?null:void 0!==I?I:S)})]}),eb&&(0,n.jsx)(l.y$y,{size:"lg"})]})]})]})}},4080:(e,t,r)=>{r.d(t,{e:()=>b});var n=r(74848),l=r(7982),a=r(61486),i=r(96540),o=r(20053),s=r(21688),d=r(70280),c=r(85072),p=r.n(c),u=r(92186),h={};h.insert="head",h.singleton=!1,p()(u.A,h),u.A.locals;var m=r(18971);let b=e=>{let{children:t,view:r,onViewChange:c,viewSwitcherId:p,onPageSizeChange:u,pageSize:h=m.yQ,pageSizeOptions:b=m.O9,isAdaptiveActive:v,columns:x,sortDescriptor:g,onSortChange:f,sortLabels:w,breakpoint:y}=e,C="table"===r,k=(0,i.useMemo)(()=>b.map(e=>({label:(0,n.jsxs)(n.Fragment,{children:["Показывать по ",(0,n.jsx)("strong",{children:e})]}),value:e})),[b]),j=u&&!!h,N=x&&x.length>0&&f&&(null==x?void 0:x.some(e=>e.sortable)),A=j&&C&&(0,n.jsxs)(l.$,{className:"table-toolbar-page-size",items:k,onAction:e=>{u(parseInt(e))},disableTriggerShrink:!0,placement:"bottom-end",spacing:"none",itemSize:"lg",radiu
1s:"sm",hoverOpenBreakpoints:["lg","xl"],children:["Показывать по ",(0,n.jsx)("strong",{children:h})]}),M=N?(0,n.jsx)(a.n,{columns:x,sortDescriptor:g,onSortChange:f,sortLabels:w,breakpoint:y}):A?(0,n.jsx)("div",{}):null;return(0,n.jsxs)("div",{className:(0,o.A)("table-toolbar",v&&"table-toolbar-simplified"),children:[(0,n.jsx)("div",{className:"table-toolbar-content",children:t}),c&&(0,n.jsxs)("div",{id:p,className:"table-toolbar-view",children:[(0,n.jsx)("div",{className:(0,o.A)("table-toolbar-view-icon",{"table-toolbar-view-icon-active":C}),onClick:()=>c("table"),children:(0,n.jsx)(d.A,{})}),(0,n.jsx)("div",{className:(0,o.A)("table-toolbar-view-icon",{"table-toolbar-view-icon-active":!C}),onClick:()=>c("cards"),children:(0,n.jsx)(s.A,{})})]}),v&&C&&(0,n.jsxs)("div",{className:"table-toolbar-simplified-addon",children:[M,A]}),!v&&A]})}},5035:(e,t,r)=>{r.d(t,{x:()=>g,a:()=>x});var n=r(74848),l=r(20053),a=r(86715);r(96540);var i=r(8236),o=r(2181),s=r(93803),d=r(2031),c=r(43122),p=r(85072),u=r.n(p),h=r(21940),m={};m.insert="head",m.singleton=!1,u()(h.A,m),h.A.locals;let b=e=>{let{disabled:t=!1}=e;return(0,n.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M14.0001 14.2188C15.7433 14.2188 17.2833 14.6358 18.5345 15.1813C19.6895 15.6946 20.4167 16.8496 20.4167 18.1008V19.8333H7.58342V18.1115C7.58342 16.8496 8.31064 15.6946 9.46564 15.1919C10.7169 14.6358 12.2569 14.2188 14.0001 14.2188ZM5.44453 14.4861C6.62092 14.4861 7.58342 13.5236 7.58342 12.3472C7.58342 11.1708 6.62092 10.2083 5.44453 10.2083C4.26814 10.2083 3.30564 11.1708 3.30564 12.3472C3.30564 13.5236 4.26814 14.4861 5.44453 14.4861ZM6.653 15.6625C6.2573 15.5983 5.86161 15.5556 5.44453 15.5556C4.38578 15.5556 3.3805 15.7801 2.47147 16.1758C1.68008 16.5181 1.16675 17.2881 1.16675 18.1543V19.8333H5.97925V18.1115C5.97925 17.2239 6.22522 16.3897 6.653 15.6625ZM22.5556 14.4861C23.732 14.4861 24.6945 13.5236 24.6945 12.3472C24.6945 11.1708 23.732 10.2083 22.5556 10.2083C21.3792 10.2083 20.4167 11.1708 20.4167 12.3472C20.4167 13.5236 21.3792 14.4861 22.5556 14.4861ZM26.8334 18.1543C26.8334 17.2881 26.3201 16.5181 25.5287 16.1758C24.6197 15.7801 23.6144 15.5556 22.5556 15.5556C22.1386 15.5556 21.7429 15.5983 21.3472 15.6625C21.7749 16.3897 22.0209 17.2239 22.0209 18.1115V19.8333H26.8334V18.1543ZM14.0001 7C15.7754 7 17.2084 8.43306 17.2084 10.2083C17.2084 11.9836 15.7754 13.4167 14.0001 13.4167C12.2248 13.4167 10.7917 11.9836 10.7917 10.2083C10.7917 8.43306 12.2248 7 14.0001 7Z",fill:t?"#676565":"white"})})},v=e=>{let{disabled:t=!1}=e;return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 0C4.44772 0 4 0.447715 4 1L4 5C4 5.55228 4.44772 6 5 6H7.25V7.25H6.5C5.31851 7.25 4.47933 7.65183 3.94253 8.24828C3.42734 8.82071 3.25 9.50719 3.25 10V11H2.5C1.94772 11 1.5 11.4477 1.5 12L1.5 15C1.5 15.5523 1.94772 16 2.5 16H5.5C6.05228 16 6.5 15.5523 6.5 15L6.5 12C6.5 11.4477 6.05228 11 5.5 11H4.75V10C4.75 9.82614 4.82266 9.51262 5.05747 9.25172C5.27067 9.01484 5.68149 8.75 6.5 8.75L9.5 8.75C10.3243 8.75 10.7344 9.01105 10.9448 9.24277C11.1752 9.49634 11.25 9.80697 11.25 10V11H10.5C9.94771 11 9.5 11.4477 9.5 12L9.5 15C9.5 15.5523 9.94771 16 10.5 16L13.5 16C14.0523 16 14.5 15.5523 14.5 15V12C14.5 11.4477 14.0523 11 13.5 11H12.75V10C12.75 9.49567 12.5748 8.80629 12.0552 8.2342C11.5156 7.64026 10.6757 7.25 9.5 7.25H8.75V6L11 6C11.5523 6 12 5.55228 12 5V1C12 0.447715 11.5523 0 11 0L5 0Z",fill:t?"#676565":"#1A56F1"})})},x=e=>{let{personId:t}=e,r=(0,a.useRouter)(),n=(0,i.d4)(d.tC),{openLoginModal:l}=(0,s.vz)();return{handleTreeRedirect:()=>{if(!t)return;let e=()=>{r.push({pathname:o.G.tree.url,query:{person:t}})};if(!n)return l({onSuccess:()=>{e()}});e()}}},g=e=>{let{text:t="Древо",personId:r,className:p="",disabled:u=!1,withoutIcon:h=!1,style:m}=e,g=(0,a.useRouter)(),f=(0,i.d4)(d.tC),{handleTreeRedirect:w}=x({personId:r}),{openLoginModal:y}=(0,s.vz)(),C="light"===m?v:b;return f?(0,n.jsx)(c.N_,{href:{pathname:o.G.tree.url,query:{person:r}},className:(0,l.A)("TreeButton",{[p]:!!p,main:!m,[m]:!!m,__disabled:!!u}),onClick:w,disabled:u,children:(0,n.jsxs)("span",{className:"button-text",children:[!h&&(0,n.jsx)(C,{disabled:u}),(0,n.jsx)("span",{className:"TreeButton-label",children:t})]})}):(0,n.jsx)(c.$n,{style:(0,l.A)({style:m||"main"}),className:(0,l.A)("TreeButton",p,m||"main"),onClick:()=>y({onSuccess:()=>{g.push({pathname:o.G.tree.url,query:{person:r}})}}),disabled:u,text:(0,n.jsxs)(n.Fragment,{children:[!h&&(0,n.jsx)(C,{disabled:u}),(0,n.jsx)("span",{className:"TreeButton-label",children:t})]})})}},62621:(e,t,r)=>{r.d(t,{M:()=>l,z:()=>n});let n="personsView",l="editablePersonsView"},78973:(e,t,r)=>{r.d(t,{O:()=>a});var n=r(74848);r(96540);var l=r(18816);let a=(e,t)=>e?(0,n.jsxs)(n.Fragment,{children:[e,null!=t&&(0,n.jsxs)(n.Fragment,{children:["\xa0",(0,n.jsx)("span",{className:"table-toolbar-note",children:(0,l.B4)(t)})]})]}):null},99732:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(15349),l=r(2031);let a=(0,n.Mz)(l.wF,e=>{var t;return null!==(t=e.personsFilterValues)&&void 0!==t?t:null})}}]);

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.