1(self.webpackChunk=self.webpackChunk||[]).push([[494],{6965:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var l=n(63696),i=n(55660),r=function(e){var t=e.children,n=document.getElementById("page-container").offsetHeight,r=document.getElementById("content-wrapper").offsetHeight;return l.createElement(i.HD,{height:n-r+56},t)}},12463:(e,t,n)=>{"use strict";n.d(t,{DV:()=>u,MJ:()=>a,b1:()=>c,cF:()=>E,iF:()=>d,m7:()=>s,tg:()=>m});var l=n(9655),i=n(90673),r=n(91345),a=l.Ay.div.withConfig({componentId:"sc-1azapve-0"})(["display:flex;flex-direction:column;align-items:flex-start;width:400px;max-height:calc(100vh - 120px);border-radius:8px;background-color:",";border:1px solid ",";"],(0,i.hm)("white"),(0,i.hm)("gray",3)),o=l.Ay.div.withConfig({componentId:"sc-1azapve-1"})(["width:100%;"]),c=l.Ay.div.withConfig({componentId:"sc-1azapve-2"})(["overflow-y:auto;max-height:70vh;position:relative;width:100%;padding-top:0;&::after{content:'';position:-webkit-sticky;position:sticky;bottom:0;display:block;height:10px;margin-top:-10px;background:linear-gradient(rgba(0,0,0,0) 0%,rgba(0,0,0,0.09) 100%);}&::-webkit-scrollbar{width:1px;}&::-webkit-scrollbar-thumb{background-color:",";}&::-webkit-scrollbar-track{background-color:",";}"],(0,i.hm)("white"),(0,i.hm)("white")),d=l.Ay.div.withConfig({componentId:"sc-1azapve-3"})(["&:after{background:linear-gradient(rgba(255,255,255,0),white 70%) center bottom;content:'';background:white;display:block;position:sticky;height:10px;z-index:1;}"]),u=(0,l.Ay)(o).withConfig({componentId:"sc-1azapve-4"})(["padding:24px 24px 0 24px;margin-bottom:16px;"]),s=(0,l.Ay)(o).withConfig({componentId:"sc-1azapve-5"})(["margin-bottom:8px;"]),E=(0,l.Ay)(o).withConfig({componentId:"sc-1azapve-6"})(["padding:0 24px;"]),m=(0,l.Ay)(o).withConfig({componentId:"sc-1azapve-7"})(["padding:16px 24px 24px 24px;","{&:not(:nth-of-type(1)){margin-top:12px;}}"],r.$n)},13361:(e,t,n)=>{"use strict";n.d(t,{V:()=>d});var l=n(63696),i=n(9655),r=n(90673),a=n(93221),o=i.Ay.div.withConfig({componentId:"sc-1tkvrbi-0"})(["position:fixed;left:0;top:0;z-index:2147483647;visibility:hidden;background-color:rgba(29,44,61,0.6);transition:visibility 0s linear;display:flex;width:0;height:0;color:",";font-size:90px;",""],(0,r.hm)("emerald",8),(function(e){return e.visible&&(0,i.AH)(["align-items:center;justify-content:center;bottom:0;right:0;visibility:visible;transition-delay:0.3s;width:auto;height:auto;"])})),c=(0,i.Ay)(a.R).withConfig({componentId:"sc-1tkvrbi-1"})(["svg{width:120px;height:120px;}"]),d=function(e){var t=e.isVisible;return l.createElement(o,{visible:t},l.createElement(c,{name:"eclipse-loader"}))}},22018:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var l=n(9655),i=n(70754),r=(0,l.Ay)(i.P).withConfig({componentId:"sc-pphaum-0"})(["min-height:unset;"])},24565:(e,t,n)=>{"use strict";n.d(t,{_:()=>c});var l=n(63696),i=n(37899),r=n(79241);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var c=function(e){var t;return l.createElement(i.w,o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){a(e,t,n[t])}))}return e}({},e),{keySelect:r.Rk.CITY_ID,label:null!==(t=null==e?void 0:e.label)&&void 0!==t?t:"common.city"}))}},26374:(e,t,n)=>{"use strict";n.d(t,{ae:()=>o,bC:()=>c,gP:()=>d});n(83810),n(43617),n(29217),n(78557);var l=n(48836),i=n(86304),r=n(54068),a=n(32449),o=function(e){switch(e){case l.rv.EMAIL:return"envelope";case l.rv.PAPER:return"paper";default:return"slash"}},c=function(e){switch(e){case l.$K.COMPLETED:return{name:"check-circle",type:r.aq.PRIMARY};case l.$K.DELETED:case l.$K.ARCHIVE:case l.$K.NOT_ACTUAL:case l.$K.COMPLETED_NOT_ACTUAL:return{name:"alert-circle",type:r.aq.DANGER};default:return{name:"clock",type:r.aq.WARNING}}},d=function(e,t){var n=a.sy.Completed;return!function(e,t){var n=null==e?void 0:e.getFieldsError(i.D5[t]);return Object.keys(n).some((function(e){return Boolean(n[e])}))}(e,t)?function(e,t){var n=null==e?void 0:e.getFieldsValue(i.D5[t]);return Object.keys(n).some((function(e){return void 0!==n[e]&&""!==n[e]&&null!==n[e]}))}(e,t)||(n=a.sy.Default):n=a.sy.Error,n}},30494:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>We});n(64771),n(25352),n(86584),n(43617),n(93991),n(78557);
1var l=n(63696),i=n(51816),r=n(84535),a=n(74145),o=n(86304),c=n(26374),d=n(70112),u=n(28892),s=n(83127),E=n(20609),m=n(78080),f=n(42009),p=n(13361),_=n(30790),b=n(55660),v=n(6965),A=n(25897),R=n(25415),O=(n(76281),n(99425),n(90371)),N=n(32449),g=n(65678),y=n(95964),I=n(11629),h=n(54068),S=n(61208),D=n(31132),L=n(91920),T=n(99808),w=n(49364),M=n(10947),P=n(96414),x=n(92628),C=n(22018),Y=(n(24776),n(50792)),k=n(93221),G=n(9655),K=n(14025),V=n.n(K),j=n(90673),U=G.Ay.div.withConfig({componentId:"sc-kgwq5x-0"})(["display:flex;flex-direction:row;gap:40px;"]),B=(0,G.Ay)(V()).withConfig({componentId:"sc-kgwq5x-1"})(["height:240px;width:240px;border-radius:12px;overflow:hidden;cursor:pointer;position:relative;"]),H=G.Ay.div.withConfig({componentId:"sc-kgwq5x-2"})(["display:flex;flex-direction:column;gap:24px;"]),F=G.Ay.div.withConfig({componentId:"sc-kgwq5x-3"})(["height:120px;width:120px;border-radius:120px;overflow:hidden;background:",";"],(0,j.hm)("gray",2)),W=G.Ay.div.withConfig({componentId:"sc-kgwq5x-4"})(["height:48px;width:48px;border-radius:48px;overflow:hidden;background:",";"],(0,j.hm)("gray",2)),z=G.Ay.img.withConfig({componentId:"sc-kgwq5x-5"})(["display:block;width:100%;height:100%;"]),q=G.Ay.div.withConfig({componentId:"sc-kgwq5x-6"})(["position:absolute;top:0;bottom:0;left:0;right:0;height:inherit;width:inherit;opacity:0;border-radius:8px;transition:0.3s ease;background-color:rgba(55,58,68,0.8);&:hover{opacity:1;}"]),J=G.Ay.div.withConfig({componentId:"sc-kgwq5x-7"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;"]),$=G.Ay.img.withConfig({componentId:"sc-kgwq5x-8"})(["margin-left:12px;cursor:pointer;"]),X=G.Ay.div.withConfig({componentId:"sc-kgwq5x-9"})(["display:flex;border:1px dashed ",";gap:12px;flex-direction:column;height:100%;width:100%;justify-content:center;align-items:center;"],(0,j.hm)("gray",3));function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var l,i,r=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(l=n.next()).done)&&(r.push(l.value),!t||r.length!==t);a=!0);}catch(e){o=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var te=function(e){var t,n=e.user,i=e.form,r=ee((0,l.useState)((null==n?void 0:n.avatar)?"".concat((0,Y.$_)(!0),"/").concat(null==n||null===(t=n.avatar)||void 0===t?void 0:t.file):null),2),a=r[0],o=r[1];return l.createElement(U,null,l.createElement(B,{onDrop:function(e){return t=e[0],null==i||i.setFieldsValue(Q({},T.L.AVATAR,t)),void o(null==t?void 0:t.preview);var t}},a?l.createElement(l.Fragment,null,l.createElement(z,{src:a}),l.createElement(q,null,l.createElement(J,null,l.createElement($,{src:"/img/trash.png",alt:"trash",onClick:function(e){e.preventDefault(),e.stopPropagation(),null==i||i.setFieldsValue(Q({},T.L.AVATAR,null)),o(null)}})))):l.createElement(X,null,l.createElement(k.R,{type:h.aq.GREY,name:"plus"}),l.createElement(L.EY,{type:L.M2.CAPTION},"ÐагÑÑзиÑÑ"))),l.createElement(H,null,l.createElement(F,null,a&&l.createElement(z,{src:a})),l.createElement(W,null,a&&l.createElement(z,{src:a}))),l.createElement(I.S,{form:i,fieldName:T.L.AVATAR,fieldOptions:{initialValue:null==n?void 0:n.avatar},type:"hidden"}))},ne=n(1331),le=(0,G.Ay)(ne.A).withConfig({componentId:"sc-u4j4bh-0"})(["gap:52px;display:flex;flex-direction:column;"]);function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re={toggleDisabledPassword:r.o.actions.toggleDisabledPassword},ae=function(e){var t,n=e.setNavElement,i=e.completeType,r=e.blockName,a=e.form,c=e.user,d=e.editFields,s=e.isEdit,E=(0,u.j)(re).toggleDisabledPassword,m=(0,R.d4)(x.o.getAuth),f=(0,w.q)(),p=(0,l.useRef)(!1),_=null==m?void 0:m.is_admin,b=a.setFieldsValue,v=a.getFieldValue,Y=(c||{}).permissions,k=void 0===Y?{}:Y;return l.createElement("div",{ref:n(r)},l.createElement(le,{withoutHeader:!0,withoutShadow:!0}
1,l.createElement(O.M,{id:"data_user_personal_data",iconsBlock:N.S2[i],titleText:o.N2[r],noExpand:!0}),l.createElement("div",null,l.createElement(g.Y,{label:"ФамилиÑ"},l.createElement(y.Ly,null,l.createElement(I.S,{fieldName:T.L.LAST_NAME,form:a,fieldOptions:{initialValue:null==c?void 0:c.last_name},disabled:!d.includes(T.L.LAST_NAME)&&s}))),l.createElement(g.Y,{label:"ÐмÑ"},l.createElement(y.Ly,null,l.createElement(I.S,{fieldName:T.L.FIRST_NAME,form:a,fieldOptions:{initialValue:null==c?void 0:c.first_name},disabled:!d.includes(T.L.FIRST_NAME)&&s}))),l.createElement(g.Y,{label:"ÐÑÑеÑÑво"},l.createElement(y.Ly,null,l.createElement(I.S,{fieldName:T.L.MIDDLE_NAME,form:a,fieldOptions:{initialValue:null==c?void 0:c.middle_name},disabled:!d.includes(T.L.MIDDLE_NAME)&&s||p.current}),l.createElement(A.T,{top:6},l.createElement(C.x,{title:"ÐÐµÑ Ð¾ÑÑеÑÑва",checked:p.current,onChange:function(){p.current?(p.current=!1,b(ie({},T.L.MIDDLE_NAME,null==c?void 0:c.middle_name))):(p.current=!0,b(ie({},T.L.MIDDLE_NAME,"")))},disabled:!d.includes(T.L.MIDDLE_NAME)&&s})))),l.createElement(g.Y,{label:"ТелеÑон"},l.createElement(y.Ly,{size:h.J9.SMALL,fixWidth:!0},l.createElement(S.L,{form:a,hiddenLabel:!0,initialValue:null==c?void 0:c.phone,disabled:!d.includes(T.L.PHONE)&&s}))),l.createElement(g.Y,{label:"Email"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(D.j,{form:a,hiddenLabel:!0,initialValue:null!==(t=null==c?void 0:c.email)&&void 0!==t?t:void 0,disabled:!d.includes(T.L.EMAIL)&&s}),l.createElement(A.T,{top:6},l.createElement(L.EY,{type:L.M2.CAPTION},"УказаннÑй адÑÐµÑ Ð±ÑÐ´ÐµÑ Ð¸ÑполÑзоваÑÑÑÑ Ð¿Ñи оÑпÑавке Ñведомлений, а Ñакже пÑи воÑÑÑановлении доÑÑÑпа в ÑиÑÑемÑ."))))),l.createElement("div",null,l.createElement(A.T,{bottom:16},l.createElement(O.M,{id:"data_user_personal_data_login",titleText:"ÐÑ
од в ÑиÑÑемÑ",noExpand:!0})),l.createElement(g.Y,{label:"Ðогин"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(I.S,{fieldName:T.L.USERNAME,form:a,fieldOptions:{initialValue:null==c?void 0:c.username,rules:[{validator:null}]},disabled:!d.includes(T.L.USERNAME)&&s}))),s&&(null==k?void 0:k.update_password)&&!f([M.YK.RUKOVODITEL,M.YK.SENIOR_MANAGER,M.YK.MANAGER])&&l.createElement(l.Fragment,null,l.createElement(g.Y,{label:"ÐаÑолÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(I.S,{password:!0,form:a,fieldName:T.L.PASSWORD,label:"",fieldOptions:{initialValue:void 0}}))),l.createElement(g.Y,{label:"ÐодÑвеÑждение паÑолÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(I.S,{password:!0,form:a,fieldName:T.L.CONFIRM_PASSWORD,label:"",fieldOptions:{initialValue:void 0}}),l.createElement(A.T,{top:6},l.createElement(P.q,{form:a,password:v(T.L.PASSWORD),confirmPassword:v(T.L.CONFIRM_PASSWORD),setIsDisabled:E})))))),(_||f([M.YK.SUPER_ADMIN]))&&l.createElement("div",null,l.createElement(A.T,{bottom:16},l.createElement(O.M,{id:"data_user_personal_data_login",titleText:"ФоÑо пÑоÑилÑ",noExpand:!0,description:"ÐÑполÑзÑеÑÑÑ Ð² каÑеÑÑве миниаÑÑÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ"})),l.createElement(te,{form:a,user:c}))))},oe=(n(15724),n(91789)),ce=n(27254),de=n(79115),ue=n(12463),se=n(84306),Ee=G.Ay.div.withConfig({componentId:"sc-1o0nsjh-0"})(["width:100%;display:flex;gap:12px;flex-direction:column;padding:16px 24px 24px 24px;"]),me=G.Ay.div.withConfig({componentId:"sc-1o0nsjh-1"})(["padding:24px 24px 16px 24px;gap:12px;"]);function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){pe(e,t,n[t])}))}return e}function be(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}
1(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var l,i,r=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(l=n.next()).done)&&(r.push(l.value),!t||r.length!==t);a=!0);}catch(e){o=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ae={updateOne:r.o.actions.updateOne,createOne:r.o.actions.createOne},Re=function(e){var t=e.navItems,n=e.user,r=e.isEdit,o=(0,R.d4)(se.i.getGlobalForm),c=(0,R.d4)(a.d.selectLeadType),d=ve((0,l.useState)(!1),2),s=d[0],E=d[1],f=(0,u.j)(Ae),p=f.updateOne,_=f.createOne,b=(0,i.W6)(),v=o(m.z.USERS.MAIN),A=function(){return b.push(de.ki.user.index)},g=function(e){e.stopPropagation(),e.preventDefault(),null==v||v.validateFields((function(e,t){if(!e){E(!0);var l=function(){E(!1)};r?p({id:null==n?void 0:n.id,data:t,callback:A,errorCallback:l}):_({data:be(_e({},t),{lead_type:c}),callback:A,errorCallback:l})}}))};return l.createElement(oe.f,{buttonsBlock:function(){return l.createElement(Ee,null,l.createElement(ce.M,{disabled:s,title:r?"СоÑ
ÑаниÑÑ":"ÐобавиÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ",onClick:g}),l.createElement(ce.M,{title:"ÐÑмена",outline:!0,onClick:A}))}},l.createElement(me,null,l.createElement(O.M,{id:"data_user_1",titleText:"ÐÑоÑилÑ",noExpand:!0})),l.createElement(ue.m7,null,l.createElement(N.J8,{items:t})))},Oe=(n(44962),n(82367),n(54430)),Ne=n(77923),ge=n(83572),ye=(n(14382),n(81975),n(34960)),Ie=n(79241),he=function(e){var t=(0,R.d4)((function(e){return ye.X.getDataByKey(e,Ie.Rk.ROLE_IDS)}));return(0,l.useCallback)((function(n){var l,i,r=null!==(l=null==e?void 0:e.getFieldValue(T.L.ROLE_IDS))&&void 0!==l?l:[];return(null!==(i=null==t?void 0:t.entries)&&void 0!==i?i:[]).filter((function(e){return r.includes(e.id)}
1)).filter((function(e){return n.includes(e.slug)})).length>0}),[t])},Se=n(97903),De=(0,G.Ay)(ne.A).withConfig({componentId:"sc-1vz3xv1-0"})(["gap:52px;display:flex;flex-direction:column;"]),Le=n(60188),Te=n(27908);function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me={getPartner:r.o.actions.getPartner},Pe=function(e){var t=e.setNavElement,n=e.completeType,i=e.blockName,r=e.form,a=e.user,c=e.editFields,d=e.isEdit,E=(0,u.j)(Me).getPartner,m=(0,R.d4)(x.o.getAuth),f=(0,R.d4)((function(e){return ye.X.getDataByKey(e,Ie.Rk.PERMITTED_PARTNER_IDS)})),p=(0,w.q)(),_=he(r),b=(a||{}).permissions,v=void 0===b?{}:b,A=r.setFieldsValue,h=r.getFieldValue,S=h(T.L.PARTNER_ID),D=null==m?void 0:m.partner_id,L=null==m?void 0:m.is_admin,P=!L&&!p([M.YK.BIZNES_ADMINISTRATOR,M.YK.MANAGER_DS]);(0,s.S)((function(){D&&!d&&P&&E(D)}));var C,Y,k,G,K,V;return l.createElement("div",{ref:t(i)},l.createElement(De,{withoutHeader:!0,withoutShadow:!0},l.createElement(O.M,{id:"data_user_personal_data",iconsBlock:N.S2[n],titleText:o.N2[i],noExpand:!0}),l.createElement("div",null,l.createElement(g.Y,{label:"ÐаÑÑнеÑ"},l.createElement(y.Ly,null,l.createElement(Oe.P,{label:"",form:r,fieldOptions:{initialValue:d?null==a?void 0:a.partner_id:P?D:void 0},disabled:!c.includes(T.L.PARTNER_ID)&&d||!(L||p([M.YK.BIZNES_ADMINISTRATOR,M.YK.MANAGER_DS,M.YK.TECH_SUPPORT,M.YK.HR_MANAGER]))||p([M.YK.HR_MANAGER])&&!((null!==(C=null==f?void 0:f.entries)&&void 0!==C?C:[]).length+(null!==(Y=m.permitted_partners)&&void 0!==Y?Y:[]).length),onChange:function(e){var t;A((we(t={},T.L.ROLE_IDS,void 0),we(t,T.L.WORK_PLACE_IDS,void 0),we(t,T.L.CHANNEL_ID,void 0),t)),e&&E(e)}}))),l.createElement(g.Y,{label:"Роли"},l.createElement(y.Ly,null,l.createElement(Ne.V,{label:"",form:r,fieldOptions:{initialValue:null==a?void 0:a.role_ids},paramsData:{for_partner_id:S},mode:"multiple",disabled:!c.includes(T.L.ROLE_IDS)&&d||!L&&(null==m?void 0:m.id)===(null==a?void 0:a.id),onChange:function(){var e,t,n;_(Se.D4)||A((we(e={},T.L.GOSB_ID,null),we(e,T.L.GOSB,null),we(e,T.L.SECTOR_ID,null),we(e,T.L.TERR_MANAGER_ID,null),we(e,T.L.SENIOR_MANAGER_ID,null),we(e,T.L.HEAD_GOVERNANCE_ID,null),e));_(Se.O4)||A((we(t={},T.L.SECTOR_ID,null),we(t,T.L.TERR_MANAGER_ID,null),we(t,T.L.SENIOR_MANAGER_ID,null),we(t,T.L.HEAD_GOVERNANCE_ID,null),t));_(Se.Rl)||A((we(n={},T.L.TERRITORIAL_BANK_ID,null),we(n,T.L.GOSB_ID,null),we(n,T.L.TERR_MANAGER_ID,null),we(n,T.L.SECTOR_ID,null),we(n,T.L.SENIOR_MANAGER_ID,null),we(n,T.L.HEAD_GOVERNANCE_ID,null),n));if(_([M.YK.TERMEN])){var l,i;if(_([M.YK.REGMEN]))A((we(l={},T.L.GOSB_ID,null),we(l,T.L.TERR_MANAGER_ID,null),we(l,T.L.SECTOR_ID,null),we(l,T.L.SENIOR_MANAGER_ID,null),we(l,T.L.HEAD_GOVERNANCE_ID,null),l));if(_([M.YK.SENIOR_MANAGER]))A((we(i={},T.L.SECTOR_ID,null),we(i,T.L.SENIOR_MANAGER_ID,null),we(i,T.L.HEAD_GOVERNANCE_ID,null),i))}}}))),l.createElement(g.Y,{label:"ÐодпиÑанÑ",tooltip:Le.k[T.L.SIGNER]},l.createElement(y.Ly,null,l.createElement(ge.c,{form:r,fieldName:T.L.SIGNER,fieldOptions:{initialValue:null==a?void 0:a.signer},disabled:!c.includes(T.L.SIGNER)&&d,title:(0,Te.e4)(Boolean(null!==(k=h(T.L.SIGNER))&&void 0!==k?k:null==a?void 0:a.signer))}))),l.createElement(g.Y,{label:"ÐкÑивен"},l.createElement(y.Ly,null,l.createElement(ge.c,{form:r,fieldName:T.L.IS_ACTIVE,fieldOptions:{initialValue:null==a?void 0:a.is_active},disabled:!c.includes(T.L.IS_ACTIVE)&&d,title:(0,Te.e4)(Boolean(null!==(G=h(T.L.IS_ACTIVE))&&void 0!==G?G:null==a?void 0:a.is_active))}))),(L||p([M.YK.SUPER_ADMIN]))&&l.createElement(g.Y,{label:"ÐоÑÑÑп по api"},l.createElement(y.Ly,null,l.createElement(ge.c,{form:r,fieldName:T.L.USE_API,fieldOptions:{initialValue:null==a?void 0:a.use_api},disabled:!c.includes(T.L.USE_API)&&d,title:(0,Te.e4)(Boolean(null!==(K=h(T.L.USE_API))&&void 0!==K?K:null==a?void 0:a.use_api))}))),(L||p([M.YK.BIZNES_ADMINISTRATOR,M.YK.MANAGER_DS]))&&l.createElement(g.Y,{label:"ТеÑ
ниÑеÑÐºÐ°Ñ ÑÑеÑÐ½Ð°Ñ Ð·Ð°Ð¿Ð¸ÑÑ",tooltip:Le.k[T.L.IS_TECH]},l.createElement(y.Ly,null,l.createElement(ge.c,{form:r,fieldName:T.L.IS_TECH,fieldOptions:{initialValue:null==a?void 0:a.is_tech},disabled:!c.includes(T.L.IS_TECH)&&d,title:(0,Te.e4)(Boolean(null!==(V=h(T.L.IS_TECH))&&void 0!==V?V:null==a?void 0:a.is_tech))}))),d&&(null==v?void 0:v.update_infotecs_token)&&l.createElement(g.Y,{label:"Токен ÐнÑоÑекÑ"},l.createElement(y.Ly,null,l.createElement(I.S,{fieldName:T.L.INFOTECS_TOKEN,form:r,fieldOptions:{initialValue:null==a?void 0:a.infotecs_token},disabled:!c.includes(T.L.INFOTECS_TOKEN)&&d}))),d&&(null==v?void 0:v.reset_api_token)&&l.createElement(g.Y,{label:"ТеÑ
ниÑеÑкий Ñокен"},l.createElement(y.Ly,null,l.createElement(I.S,{fieldName:T.L.API_TOKEN,form:r,fieldOptions:{initialValue:null==a?void 0:a.api_token}}))))))},xe=n(16171),Ce=n(51548),Ye=n(24565),ke=n(5579),Ge=n(37899);var Ke=function(e){var t,n,i,r,c,d,u,s=e.setNavElement,E=e.completeType,m=e.blockName,f=e.form,p=e.user,_=e.editFields,b=e.isEdit,v=(0,w.q)(),A=(0,R.d4)(a.d.selectPartner),S=(0,R.d4)(x.o.getAuth),D=(0,R.d4)(ke.z.getUserCcTypest),L=f.setFieldsValue,P=f.getFieldValue,C=P(T.L.PARTNER_ID),Y=P(T.L.REGION_IDS),k=null==S?void 0:S.is_admin;return l.createElement("div",{ref:s(m)},l.createElement(De,{withoutHeader:!0,withoutShadow:!0}
1,l.createElement(O.M,{id:"data_user_personal_data",iconsBlock:N.S2[E],titleText:o.N2[m],noExpand:!0}),l.createElement("div",null,(k||v([M.YK.SUPER_ADMIN,M.YK.TECH_SUPPORT]))&&l.createElement(g.Y,{label:"ÐодÑ. подÑазделениÑ",tooltip:Le.k[T.L.WORKING_WITH_SUBORDINATE_DEPARTMENTS]},l.createElement(y.Ly,null,l.createElement(ge.c,{form:f,fieldName:T.L.WORKING_WITH_SUBORDINATE_DEPARTMENTS,fieldOptions:{initialValue:null==p?void 0:p.working_with_subordinate_departments},disabled:!_.includes(T.L.WORKING_WITH_SUBORDINATE_DEPARTMENTS)&&b,title:(0,Te.e4)(Boolean(null!==(n=P(T.L.WORKING_WITH_SUBORDINATE_DEPARTMENTS))&&void 0!==n?n:null==p?void 0:p.working_with_subordinate_departments))}))),l.createElement(g.Y,{label:"ÐоÑÑÑпнÑе подÑазделениÑ"},l.createElement(y.Ly,null,l.createElement(xe.wB,{items:null!==(i=null==A?void 0:A.available_work_places)&&void 0!==i?i:[],placeholder:"common.no_select",form:f,fieldName:T.L.WORK_PLACE_IDS,fieldOptions:{initialValue:null==p?void 0:p.work_place_ids},mode:"multiple",disabled:!(v([M.YK.RUKOVODITEL])&&(null==S?void 0:S.working_with_subordinate_departments)||(k||v([M.YK.SUPER_ADMIN,M.YK.MANAGER_DS,M.YK.TECH_SUPPORT]))&&C&&(null!==(r=null==A?void 0:A.available_work_places)&&void 0!==r?r:[]).length)}))),l.createElement(g.Y,{label:"Ðаименование оÑдела"},l.createElement(y.Ly,null,l.createElement(I.S,{fieldName:T.L.NAME_OF_THE_DEPARTMENT,form:f,fieldOptions:{initialValue:null==p?void 0:p.name_of_the_department},disabled:!_.includes(T.L.NAME_OF_THE_DEPARTMENT)&&b}))),l.createElement(g.Y,{label:"ÐапÑавлениÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(Ge.w,{label:"",keySelect:Ie.Rk.CHANNEL,fieldOptions:{initialValue:null==p?void 0:p.channel_id},paramsData:{partner_id:C},form:f,disabled:!_.includes(T.L.CHANNEL_ID)&&b||!(null===(c=null==p||null===(t=p.permissions)||void 0===t?void 0:t.update_channel)||void 0===c||c)}))),(k||v([M.YK.SUPER_ADMIN,M.YK.QA_EXPERT]))&&l.createElement(g.Y,{label:"ÐапÑÐµÑ Ð¿ÐµÑезакÑеплений",tooltip:Le.k[T.L.TRUST_REATTACHMENT_FORBIDDEN]},l.createElement(y.Ly,null,l.createElement(ge.c,{form:f,fieldName:T.L.TRUST_REATTACHMENT_FORBIDDEN,fieldOptions:{initialValue:null==p?void 0:p.trust_reattachment_forbidden},disabled:!_.includes(T.L.TRUST_REATTACHMENT_FORBIDDEN)&&b,title:(0,Te.e4)(Boolean(null!==(d=P(T.L.TRUST_REATTACHMENT_FORBIDDEN))&&void 0!==d?d:null==p?void 0:p.trust_reattachment_forbidden))}))),(k||v([M.YK.SUPER_ADMIN]))&&l.createElement(g.Y,{label:"ÐнеÑние ÑоÑмÑ"},l.createElement(y.Ly,null,l.createElement(ge.c,{form:f,fieldName:T.L.CONTAINED_IN_EXTERNAL_FORMS,fieldOptions:{initialValue:null==p?void 0:p.contained_in_external_forms},disabled:!0,title:(0,Te.e4)(Boolean(null!==(u=P(T.L.CONTAINED_IN_EXTERNAL_FORMS))&&void 0!==u?u:null==p?void 0:p.contained_in_external_forms))}))),(k||v([M.YK.TECH_SUPPORT]))&&l.createElement(g.Y,{label:"ÐÑовеÑка ÐЦ"},l.createElement(y.Ly,{size:h.J9.SMALL,fixWidth:!0},l.createElement(xe.wB,{items:D,placeholder:"common.no_select",form:f,fieldName:T.L.USER_CC_TYPE_ID,fieldOptions:{initialValue:null==p?void 0:p.user_cc_type_id},disabled:!(k||v([M.YK.DEVELOPER,M.YK.SUPER_ADMIN]))||!_.includes(T.L.USER_CC_TYPE_ID)&&b}))),(k||v([M.YK.MANAGER_DS,M.YK.TECH_SUPPORT]))&&l.createElement(l.Fragment,null,l.createElement(g.Y,{label:"РегионÑ"},l.createElement(y.Ly,null,l.createElement(Ce.t,{label:"",fieldOptions:{initialValue:null==p?void 0:p.region_ids},fieldName:T.L.REGION_IDS,form:f,disabled:!_.includes(T.L.REGION_IDS)&&b,mode:"multiple",onChange:function(){return L((e={},t=T.L.CITY_IDS,n=void 0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n}}))),l.createElement(g.Y,{label:"ÐаÑеленнÑе пÑнкÑÑ"},l.createElement(y.Ly,null,l.createElement(Ye._,{label:"",fieldOptions:{initialValue:null==p?void 0:p.city_ids},paramsData:{region_id:Y},fieldName:T.L.CITY_IDS,form:f,disabled:!_.includes(T.L.CITY_IDS)&&b||!(null!=Y?Y:[]).length,mode:"multiple"})))))))},Ve=n(807),je=n(10897),Ue=n(75454);function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=function(e){var t,n,i,r,a,c,d,u=e.setNavElement,s=e.completeType,E=e.blockName,m=e.form,f=e.user,p=e.editFields,_=e.isEdit,b=(0,R.d4)(x.o.getAuth),v=(0,w.q)(),A=he(m),S=A(Se.O4),D=A(Se.D4),L=A(Se.O2),P=A(Se.PX),C=A([M.YK.REGMEN])&&A([M.YK.TERMEN])||A([M.YK.SENIOR_MANAGER])&&A([M.YK.TERMEN]),Y=m.setFieldsValue,k=m.getFieldValue,G=(f||{}).permissions,K=void 0===G?{}:G,V=null==b?void 0:b.is_admin,j=k(T.L.TERRITORIAL_BANK_ID),U=k(T.L.TERR_MANAGER_ID),B=k(T.L.GOSB_ID),H=V||v([M.YK.SUPER_ADMIN,M.YK.SBER_MANAGER,M.YK.MANAGER_DS,M.YK.TECH_SUPPORT])||v([M.YK.HR_MANAGER])&&A([M.YK.SBER_MANAGER])&&A([M.YK.TERMEN,M.YK.SENIOR_MANAGER,M.YK.REGMEN]),F=(V||v([M.YK.SUPER_ADMIN,M.YK.MANAGER_DS,M.YK.TECH_SUPPORT,M.YK.HR_MANAGER]))&&D;return l.createElement("div",{ref:u(E)},l.createElement(De,{withoutHeader:!0,withoutShadow:!0}
1,l.createElement(O.M,{id:"data_user_personal_data",iconsBlock:N.S2[s],titleText:o.N2[E],noExpand:!0}),l.createElement("div",null,H?l.createElement(g.Y,{label:"ТабелÑнÑй номеÑ"},l.createElement(y.Ly,{size:h.J9.SMALL,fixWidth:!0},l.createElement(I.S,{fieldName:T.L.TAB_NUM,form:m,fieldOptions:{initialValue:null==f?void 0:f.tab_num},disabled:!p.includes(T.L.TAB_NUM)&&_}))):l.createElement(I.S,{form:m,fieldName:T.L.TAB_NUM,fieldOptions:{initialValue:null==f?void 0:f.tab_num},type:"hidden"}),(null==K?void 0:K.show_permitted_partners)&&l.createElement(g.Y,{label:"ÐоÑÑÑп к паÑÑнеÑÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(Ge.w,{label:"",form:m,fieldOptions:{initialValue:null==f?void 0:f.permitted_partner_ids},paramsData:{territorial_bank_id:j},disabled:!p.includes(T.L.PERMITTED_PARTNER_IDS)&&_,keySelect:Ie.Rk.PERMITTED_PARTNER_IDS,mode:"multiple"}))),l.createElement(g.Y,{label:"ТеÑÑиÑоÑиалÑнÑй банк"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(Ve.y,{label:"",form:m,fieldOptions:{initialValue:(d=null==b||null===(a=b.territorial_bank)||void 0===a?void 0:a.id,_?null==f||null===(c=f.territorial_bank)||void 0===c?void 0:c.id:v([M.YK.TERMEN,M.YK.SBER_MANAGER])?void 0:d)},onChange:function(){var e;Y((Be(e={},T.L.PERMITTED_PARTNER_IDS,null),Be(e,T.L.GOSB_ID,null),Be(e,T.L.SECTOR_ID,null),Be(e,T.L.TERR_MANAGER_ID,null),Be(e,T.L.SENIOR_MANAGER_ID,null),Be(e,T.L.HEAD_GOVERNANCE_ID,null),e))},disabled:!p.includes(T.L.TERRITORIAL_BANK_ID)&&_||(n=A(Se.Rl),i=A([M.YK.SBER_MANAGER])&&A([M.YK.SENIOR_MANAGER,M.YK.REGMEN,M.YK.TERMEN]),r=v([M.YK.HR_MANAGER])&&(A([M.YK.TMPP_GR])||i),!(!_&&n&&(V||v([M.YK.BIZNES_REGISTRATOR,M.YK.TECH_SUPPORT])||r)||_&&(n||j||v([M.YK.MANAGER_DS]))&&(V||v([M.YK.BIZNES_ADMINISTRATOR,M.YK.BIZNES_REGISTRATOR,M.YK.TECH_SUPPORT,M.YK.MANAGER_DS,M.YK.SENIOR_MANAGER])||r)))}))),F?l.createElement(l.Fragment,null,l.createElement(g.Y,{label:"ТеÑÑиÑоÑиалÑнÑй менеджеÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(Ge.w,{label:"",form:m,fieldOptions:{initialValue:null==f?void 0:f.terr_manager_id},paramsData:{territorial_bank_id:j,role_slug:M.YK.TERMEN},disabled:!j||!D||C,keySelect:Ie.Rk.TERR_MANAGER_ID,onChange:function(){var e;Y((Be(e={},T.L.GOSB_ID,null),Be(e,T.L.SENIOR_MANAGER_ID,null),Be(e,T.L.HEAD_GOVERNANCE_ID,null),Be(e,T.L.SECTOR_ID,null),e))}}))),A([M.YK.TERMEN])&&l.createElement(g.Y,{label:"ÐÑÑиÑÑемÑе ÐÐСÐÑ"},l.createElement(y.Ly,{size:h.J9.SMALL,fixWidth:!0},l.createElement(xe.wB,{items:null!==(t=null==f?void 0:f.curated_gosbs)&&void 0!==t?t:[],placeholder:"common.no_select",form:m,fieldName:T.L.CURATED_GOSB_IDS,fieldOptions:{initialValue:null==f?void 0:f.curated_gosb_ids},mode:"multiple",disabled:!0}))),l.createElement(g.Y,{label:"ÐÐСÐ"},l.createElement(y.Ly,{size:h.J9.SMALL,fixWidth:!0},l.createElement(je.A,{label:"",form:m,fieldOptions:{initialValue:null==f?void 0:f.gosb_id},paramsData:{terr_manager_id:U},disabled:!U||!D||C,onChange:function(){var e;Y((Be(e={},T.L.SECTOR_ID,null),Be(e,T.L.SENIOR_MANAGER_ID,null),Be(e,T.L.HEAD_GOVERNANCE_ID,null),e))}}))),S&&!v([M.YK.HR_MANAGER])?l.createElement(g.Y,{label:"СекÑоÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(Ue.j,{label:"",form:m,fieldOptions:{initialValue:null==f?void 0:f.sector_id},paramsData:{gosb_id:B},disabled:!B||!S||C}))):l.createElement(I.S,{form:m,fieldName:T.L.SECTOR_ID,fieldOptions:{initialValue:null==f?void 0:f.sector_id},type:"hidden"}),L&&!v([M.YK.HR_MANAGER])?l.createElement(g.Y,{label:"ÐаÑалÑник ÑпÑавлениÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(Ge.w,{label:"",form:m,fieldOptions:{initialValue:null==f?void 0:f.head_governance_id},paramsData:{role_slug:M.YK.HEAD_GOVERNANCE,gosb_id:B},disabled:!B||!L||C,keySelect:Ie.Rk.HEAD_GOVERNANCE_ID}))):l.createElement(I.S,{form:m,fieldName:T.L.HEAD_GOVERNANCE_ID,fieldOptions:{initialValue:null==f?void 0:f.head_governance_id},type:"hidden"}),P?l.createElement(g.Y,{label:"СÑаÑÑий менеджеÑ"},l.createElement(y.Ly,{size:h.J9.MEDIUM,fixWidth:!0},l.createElement(Ge.w,{label:"",form:m,fieldOptions:{initialValue:null==f?void 0:f.senior_manager_id},paramsData:{role_slug:M.YK.SENIOR_MANAGER,gosb_id:B},disabled:!B||!P||C,keySelect:Ie.Rk.SENIOR_MANAGER_ID}))):l.createElement(I.S,{form:m,fieldName:T.L.SENIOR_MANAGER_ID,fieldOptions:{initialValue:null==f?void 0:f.senior_manager_id},type:"hidden"})):l.createElement(l.Fragment,null,l.createElement(I.S,{form:m,fieldName:T.L.TERR_MANAGER_ID,fieldOptions:{initialValue:null==f?void 0:f.terr_manager_id},type:"hidden"}),l.createElement(I.S,{form:m,fieldName:T.L.GOSB_ID,fieldOptions:{initialValue:null==f?void 0:f.gosb_id},type:"hidden"}),l.createElement(I.S,{form:m,fieldName:T.L.SECTOR_ID,fieldOptions:{initialValue:null==f?void 0:f.sector_id},type:"hidden"}),l.createElement(I.S,{form:m,fieldName:T.L.SENIOR_MANAGER_ID,fieldOptions:{initialValue:null==f?void 0:f.senior_manager_id},type:"hidden"}),l.createElement(I.S,{form:m,fieldName:T.L.HEAD_GOVERNANCE_ID,fieldOptions:{initialValue:null==f?void 0:f.head_governance_id},type:"hidden"}),l.createElement(I.S,{form:m,fieldName:T.L.CURATED_GOSB_IDS,fieldOptions:{initialValue:null==f?void 0:f.curated_gosb_ids},type:"hidden"})))))},Fe={getOne:r.o.actions.getOne,clearUserAndPartner:r.o.actions.clearUserAndPartner,getPartner:r.o.actions.getPartner};const We=E.A.create({name:m.z.USERS.MAIN})((function(e){var t,n,r=e.form;(0,d.B)(m.z.USERS.MAIN,r);var E=(0,u.j)(Fe),O=E.getOne,N=E.getPartner,g=E.clearUserAndPartner,y=(0,R.d4)(a.d.selectOne),I=null===(t=(0,i.g)())||void 0===t?void 0:t.id,h=(0,f.h)(o.cN.length),S=h.currentNav,D=h.scrollToBlock,L=h.setNavElement;(0,s.S)((function(){I?O({id:I,callback:function(e){N(null==e?void 0:e.partner_id)}}):g({})}));var T,w=Boolean(I),M=(null!==(T=null==y||null===(n=y.permissions)||void 0===n?void 0:n.editable_attributes)&&void 0!==T?T:[]).flat(),P=o.cN.map((function(e,t){return{title:o.N2[e],type:(0,c.gP)(r,e),active:S===t,onClick:S!==t?D(t):function(){},isView:!0}}));return!y&&w?l.createElement(p.V,{isVisible:!0}):l.createElement("div",null,l.createElement(_.F,null),l.createElement(b.ff,null,l.createElement(v.U,null,l.createElement(ae,{setNavElement:L,completeType:P[o.qF.PERSONAL_DATA].type,blockName:o.qF.PERSONAL_DATA,form:r,user:y,editFields:M,isEdit:w}),l.createElement(A.T,{top:20},l.createElement(Pe,{setNavElement:L,completeType:P[o.qF.ACCESS_SYSTEM].type,blockName:o.qF.ACCESS_SYSTEM,form:r,user:y,editFields:M,isEdit:w})),l.createElement(A.T,{top:20},l.createElement(Ke,{setNavElement:L,completeType:P[o.qF.PARTNER_PROGRAM].type,blockName:o.qF.PARTNER_PROGRAM,form:r,user:y,editFields:M,isEdit:w})),l.createElement(A.T,{top:20},l.createElement(He,{setNavElement:L,completeType:P[o.qF.STRUCTURE_SBERBANK].type,blockName:o.qF.STRUCTURE_SBERBANK,form:r,user:y,editFields:M,isEdit:w}
1))),l.createElement(b.nC,null,l.createElement(Re,{navItems:P,user:y,isEdit:w}))))}))},32858:(e,t,n)=>{var l=n(46177),i=n(58953);e.exports=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),l(e,t,{leading:r,maxWait:t,trailing:a})}},42009:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var l=n(67346),i=n(32858),r=n.n(i),a=n(63696),o=function(e){var t=(0,a.useRef)({}),n=(0,a.useState)(0),i=(0,l.A)(n,2),o=i[0],c=i[1];(0,a.useEffect)((function(){var n=r()((function(){for(var n=0;n<e;n+=1){var l,i=null===(l=t.current[n])||void 0===l?void 0:l.getBoundingClientRect();if(i&&i.top>0&&i.top<window.innerHeight)return void c(n)}}),300);return window.addEventListener("scroll",n,!0),function(){window.removeEventListener("scroll",n,!0)}}),[e]);return{currentNav:o,setCurrentNav:c,setNavElement:function(e){return function(n){t.current[e]=n}},scrollToBlock:function(e){return function(){var n;null===(n=t.current[e])||void 0===n||n.scrollIntoView({behavior:"smooth"}),c(e)}}}}},51548:(e,t,n)=>{"use strict";n.d(t,{t:()=>c});var l=n(63696),i=n(37899),r=n(79241);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var c=function(e){var t;return l.createElement(i.w,o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){a(e,t,n[t])}))}return e}({},e),{keySelect:r.Rk.REGION_ID,label:null!==(t=null==e?void 0:e.label)&&void 0!==t?t:"common.region"}))}},55660:(e,t,n)=>{"use strict";n.d(t,{HD:()=>a,ff:()=>r,nC:()=>i});var l=n(9655),i=l.Ay.div.withConfig({componentId:"sc-15veftn-0"})(["height:fit-content;display:flex;width:400px;margin-left:24px;@media (max-width:1024px){width:320px;margin-left:20px;}"]),r=l.Ay.div.withConfig({componentId:"sc-15veftn-1"})(["width:100%;display:flex;overflow:auto;justify-content:center;& > div:last-child{position:sticky;top:0;overflow:auto;}scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),a=l.Ay.div.withConfig({componentId:"sc-15veftn-2"})(["flex:1;width:0;max-width:1024px;& > div:last-child{height:",";}"],(function(e){var t=e.height;return"calc(100vh - ".concat(t,"px)")}))},75454:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});var l=n(63696),i=n(37899),r=n(79241);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var c=function(e){var t;return l.createElement(i.w,o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){a(e,t,n[t])}))}return e}({},e),{keySelect:r.Rk.SECTOR_ID,label:null!==(t=null==e?void 0:e.label)&&void 0!==t?t:"common.sector"}))}},91789:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var l=n(63696),i=n(12463),r=function(e){var t=e.children,n=e.buttonsBlock,r=e.className,a=e.isLoading;return l.createElement(i.MJ,{className:r},l.createElement(i.b1,{isLoading:a},l.createElement(i.iF,null,t)),n&&n())}}}]); 2//# sourceMappingURL=chunk.0df8e9cddbaf97949549.js.map
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.