1import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{d as Ie,c as De,E as Fe}from"./addLoader-p8WLB-bt.js";import{i as T,r as g,f as Ee,u as Re}from"./createLucideIcon-CiWnlb16.js";import{d as U,hP as Le,e as L,hQ as Te,hR as Me,hS as $e,hT as Ae,hU as Ze,c1 as J,hV as le,hW as We,hX as Be,h6 as ve,hn as A,hm as w,ho as D,hY as Y,hZ as Oe,hl as N,h_ as _e,h$ as Ne,i0 as qe,i1 as Ve,i2 as He,h5 as ze,i3 as ie,L as Ye,i4 as de}from"./loginCallback-DUlVA6A0.js";import{B as K}from"./index-CQOuJFSK.js";import{u as F,C as ee,g as Ue,d as C,b as Ke,F as Ge}from"./index.esm-C3iyps8B.js";import{T as i}from"./TextInput-D56ByitK.js";import{C as ne}from"./check-Di4ZmmuT.js";import{C as Qe}from"./calendar-days-BjJQr8HC.js";import{C as Xe}from"./circle-alert-BcQG5ICW.js";import{M as Je}from"./modal-B_oAvykg.js";import{u as es}from"./zod-B8J3iaBr.js";import{A as ss}from"./alert-notification-qU-wNqnD.js";import"./config.release-CKeoGYk7.js";import"./createSimplePaletteValueFilter-CXCoacm9.js";import"./TransitionGroupContext-BqazGbpp.js";import"./useSlot-C7WZeYvg.js";import"./IconButton-BXAY2iRp.js";import"./useId-DUHkaswp.js";/** 2 * @license lucide-react v0.562.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const as=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],oe=T("building-2",as);/** 7 * @license lucide-react v0.562.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const ts=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ls=T("circle-play",ts);/** 12 * @license lucide-react v0.562.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const rs=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ce=T("copy",rs);/** 17 * @license lucide-react v0.562.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const is=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],ds=T("fingerprint-pattern",is);/** 22 * @license lucide-react v0.562.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const ns=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],os=T("gavel",ns);/** 27 * @license lucide-react v0.562.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const cs=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],ms=T("hash",cs);/** 32 * @license lucide-react v0.562.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const hs=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],je=T("lock",hs);/** 37 * @license lucide-react v0.562.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */const us=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xs=T("map-pin",us);/** 42 * @license lucide-react v0.562.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const ps=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],gs=T("percent",ps);/** 47 * @license lucide-react v0.562.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */const bs=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],fs=T("user-check",bs);/** 52 * @license lucide-react v0.562.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const ys=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],vs=T("user",ys),z=(a,t=!1)=>
56{if(a===null||typeof a!="object")return a;if(Array.isArray(a))return a.map(s=>z(s,t));const l={};for(const s in a){let d=a[s];const n=typeof d=="string"&&/^\d{4}-\d{2}-\d{2}T/.test(d),c=s.toLowerCase().includes("date");if(n||c&&typeof d=="string")if(t)l[s]=d&&d.length===10?`${d}T00:00:00`:d;else{const u=d?d.split("T")[0]:"";l[s]=u}else d!==null&&typeof d=="object"?l[s]=z(d,t):l[s]=d}return l},se={control:(a,t)=>({...a,borderColor:t.isDisabled?"#eee":"#e2e8f0",backgroundColor:(t.isDisabled,"white"),minHeight:"38px",boxShadow:"none",cursor:t.isDisabled?"not-allowed":"default","&:hover":{borderColor:t.isDisabled?"#eee":"#cbd5e1"}}),singleValue:(a,t)=>({...a,color:t.isDisabled?"#94a3b8":"#16729d"}),placeholder:(a,t)=>({...a,color:t.isDisabled?"#E0E0E0":"#16729d",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"calc(100% - 8px)"}),dropdownIndicator:(a,t)=>({...a,color:t.isDisabled?"#cbd5e1":"#94a3b8"}),indicatorSeparator:(a,t)=>({...a,backgroundColor:t.isDisabled?"#eee":"#e2e8f0"})},r=a=>a?e.jsx("span",{className:"text-[11px] leading-tight text-rose-500 font-medium mt-1 animate-fadeIn block w-full break-words",children:a}):null,Pe=(a,t=[])=>{if(!a||typeof a!="object")return null;if(a.message||a.type)return t.join(".");for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const s=Pe(a[l],[...t,l]);if(s)return s}return null},Ns=()=>{const{register:a,control:t,formState:{errors:l}}=F(),s=U();g.useEffect(()=>{s(Me()),s($e())},[s]);const d=L(Ae),n=L(Ze),c=g.useMemo(()=>d.map(h=>({label:h.value,value:h.idDir})),[d]),u=g.useMemo(()=>n.map(h=>({label:h.value,value:h.idDir})),[n]);return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:"ÐнÑоÑмаÑÐ¸Ñ Ð¾ должнике"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-12 gap-x-6 gap-y-4 bg-slate-50/40 p-5 rounded-lg border border-slate-100 items-end items-stretch",children:[e.jsx("div",{className:"lg:col-span-4 relative flex min-h-[84px] flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx("label",{className:"text-sm! text-[var(--input-label-color)] mb-1.5 ml-1",children:"Ðид деÑÑелÑноÑÑи"}),e.jsx(ee,{control:t,name:"debtorInfoSection.kindOfActivityId",render:({field:{onChange:h,value:b}})=>e.jsx(J,{options:c,value:c.find(x=>Number(x?.value)===Number(b))||null,onChange:x=>h(x?Number(x.value):void 0),placeholder:"ÐÑбеÑиÑе вид деÑÑелÑноÑÑи...",styles:se})}),r(l.debtorInfoSection?.kindOfActivityId?.message)]})}),e.jsx("div",{className:"lg:col-span-4 relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"СпиÑоÑÐ½Ð°Ñ ÑиÑленноÑÑÑ ÑабоÑников",labelClassName:"text-sm! normal-case!",type:"number",register:a("debtorInfoSection.numberEmployees")}),r(l.debtorInfoSection?.numberEmployees?.message)]})}),e.jsx("div",{className:"lg:col-span-4 relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx("label",{className:"text-sm! text-[var(--input-label-color)] mb-1.5 ml-1",children:"Ð¡Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð¿Ð¾ делÑ"}),e.jsx(ee,{control:t,name:"debtorInfoSection.proceedingsId",render:({field:{onChange:h,value:b}})=>e.jsx(J,{options:u,value:u.find(x=>x?.value===b),onChange:x=>h(x?.value),placeholder:"ÐÑбеÑиÑе вид Ñведений по делÑ...",classNamePrefix:"react-select",styles:se})}),r(l.debtorInfoSection?.proceedingsId?.message)]})})]})]})},js=()=>{const{watch:a,formState:{errors:t}}=F(),l=a("debtorInfoSection"),s=a("caseInfoSection"),d=a("caseDatesSection"),n=t.caseDatesSection?.dateStart?.message,c=U();g.useEffect(()=>{c(Le())},[c]);const u=L(Te),h=g.useMemo(()=>{const y=s?.declarantTypeId;if(!y||!u)return"Ðе Ñказан";const P=u.find(k=>k.idDir===y);return P?P.value:"Ðе Ñказан"},[s?.declarantTypeId,u]),[b,x]=g.useState(null),v=(y,P)=>{y&&(navigator.clipboard.writeText(y),x(P),setTimeout(()=>x(null),2e3))},j=y=>{if(!y)return"Ðе Ñказана";try{return new Date(y).toLocaleDateString("ru-BY")}catch{return y}};return e.jsxs("div",{className:"bg-white rounded-xl border border-slate-200/80 shadow-sm overflow-hidden",children:[e.jsxs("div",{className:"bg-slate-50/70 border-b border-slate-100 px-6 py-4 flex items-center gap-2.5",children:[e.jsx("div",{className:"p-1.5 bg-blue-50 text-blue-600 rounded-lg",children:e.jsx(oe,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"ÐбÑие ÑÐ²ÐµÐ´ÐµÐ½Ð¸Ñ Ð¾ пÑоизводÑÑве по делÑ"}),e.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:"СиÑÑемнÑе даннÑе из ÑееÑÑÑа, недоÑÑÑпнÑе Ð´Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ"})]})]}),e.jsxs("div",{className:"p-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 ga
56p-4 items-center",children:[e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(oe,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"ÐÑганизаÑиÑ"}),e.jsx("div",{className:"text-xs font-semibold text-slate-600 break-words mt-0.5",children:l?.name||"â"})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(ds,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"w-full min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"УÐÐ"}),e.jsxs("div",{className:"flex items-center justify-between gap-1.5 mt-0.5",children:[e.jsx("span",{className:"text-xs font-mono font-bold text-slate-600 bg-slate-100 px-1.5 py-0.5 rounded tracking-wide truncate",children:l?.unp||"â"}),l?.unp&&e.jsx("button",{type:"button",onClick:()=>v(l.unp,"unp"),className:"text-slate-400 cursor-pointer hover:text-blue-600 transition-colors p-1 rounded hover:bg-white shrink-0",children:b==="unp"?e.jsx(ne,{className:"h-3.5 w-3.5 text-emerald-600"}):e.jsx(ce,{className:"h-3.5 w-3.5"})})]})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(Qe,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"ÐаÑа гоÑ. ÑегиÑÑÑаÑии"}),e.jsx("div",{className:"text-xs font-semibold text-slate-600 mt-0.5",children:j(l?.dateReg)})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(xs,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"ÐдÑеÑ"}),e.jsx("div",{className:"text-xs font-semibold text-slate-600 mt-0.5 line-clamp-2",title:l?.address||"",children:l?.address||"â"})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(gs,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"ÐÐ¾Ð»Ñ Ð³Ð¾Ñ. ÑобÑÑвенноÑÑи"}),e.jsx("div",{className:"mt-0.5",children:e.jsx("span",{className:"text-xs font-semibold text-amber-700 bg-amber-50/70 px-2 py-0.5 rounded border border-amber-100 inline-block",children:l?.stateOwnership!==void 0&&l?.stateOwnership!==null?`${l.stateOwnership}%`:"0%"})})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(ms,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"w-full min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"ÐÐ¾Ð¼ÐµÑ Ð´ÐµÐ»Ð°"}),e.jsxs("div",{className:"flex items-center justify-between gap-1.5 mt-0.5",children:[e.jsx("span",{className:"text-xs font-semibold text-blue-700 bg-blue-50 px-1.5 py-0.5 rounded border border-blue-100 truncate",children:s?.fileNumber||"â"}),s?.fileNumber&&e.jsx("button",{type:"button",onClick:()=>v(s.fileNumber,"fileNumber"),className:"text-slate-400 cursor-pointer hover:text-blue-600 transition-colors p-1 rounded hover:bg-white shrink-0",children:b==="fileNumber"?e.jsx(ne,{className:"h-3.5 w-3.5 text-emerald-600"}):e.jsx(ce,{className:"h-3.5 w-3.5"})})]})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(os,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"СÑд"}),e.jsx("div",{className:"text-xs font-semibold text-slate-600 mt-0.5 leading-tight line-clamp-2",title:s?.court||"",children:s?.court||"â"})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(vs,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"СÑдÑÑ"}),e.jsx("div",{className:"text-xs font-semibold text-slate-600 mt-0.5 truncate",title:s?.judgeName||"",children:s?.judgeName||"â"})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(fs,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider block",children:"ÐаÑвиÑелÑ"}),e.jsx("div",{className:"text-xs font-semibold text-slate-600 mt-0.5 truncate",title:h,children:h})]})]}),e.jsxs("div",{className:"bg-slate-50/40 p-4 rounded-xl border border-slate-100 flex items-center gap-3.5 min-w-0 h-full",children:[e.jsx("div",{className:"p-2 bg-white rounded-lg shadow-sm text-slate-400 shrink-0",children:e.jsx(ls,{className:"h-4 w-4 stroke-[1.5]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-400 uppercase tracking-wider",children:"ÐаÑало пÑоизводÑÑва"}),n&&e.jsxs("span",{className:"group relative inline-flex shrink-0",title:String(n),children:[e.jsx(Xe,{className:"h-4 w-4 text-red-500","aria-label":"ÐÑибка в даÑе наÑала пÑоизводÑÑва"}),e.jsx("span",{className:"pointer-events-none absolute bottom-full -left-20 z-10 mb-2 hidden w-64 -translate-x-1/2 roun
56ded-md px-3 py-2 bg-white text-center text-xs font-normal normal-case tracking-normal text-red-500 shadow-lg group-hover:block",children:String(n)})]})]}),e.jsx("div",{className:"text-xs font-semibold text-slate-600 mt-0.5",children:j(d?.dateStart)})]})]})]})]})},Ps=a=>{if(!a)return"Ðе Ñказана";try{const t=new Date(a);return isNaN(t.getTime())?a:t.toLocaleDateString("ru-BY")}catch{return String(a)}},ae=({name:a,label:t})=>{const{register:l,watch:s,formState:{errors:d}}=F(),n=s(a),c=Ue(d,a)?.message,[u,h]=g.useState(!1),b=g.useRef(null),x=()=>{h(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>h(!1),4e3)};return g.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[]),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"hidden",...l(a)}),e.jsx("label",{className:"block text-sm! text-[var(--input-label-color)] mb-1.5 ml-1",children:t}),e.jsxs("div",{role:"button",tabIndex:0,onClick:x,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),x())},className:`flex items-center justify-between w-full px-3 min-h-[38px] bg-slate-100 border rounded-md cursor-not-allowed select-none transition-colors ${c?"border-rose-300":"border-slate-200 hover:border-slate-300"}`,title:"ÐÐ»Ñ Ð²Ð½ÐµÑÐµÐ½Ð¸Ñ Ð´Ð°ÑÑ Ð½ÐµÐ¾Ð±Ñ
одимо подаÑÑ ÑооÑвеÑÑÑвÑÑÑее поÑÑановление",children:[e.jsx("span",{className:"text-sm text-[var(--input-color)]! truncate",children:Ps(n)}),e.jsx(je,{className:"h-4 w-4 text-slate-400 shrink-0 ml-2"})]}),r(c),u&&e.jsx("div",{role:"alert",className:"absolute z-30 top-full left-0 mt-2 w-full max-w-md px-3 py-2 bg-red-50 border border-red-200 rounded-md text-xs text-red-700 shadow-lg animate-fadeIn",children:"ÐÐ»Ñ Ð²Ð½ÐµÑÐµÐ½Ð¸Ñ Ð´Ð°ÑÑ Ð½ÐµÐ¾Ð±Ñ
одимо подаÑÑ ÑооÑвеÑÑÑвÑÑÑее поÑÑановление"})]})},Ss=()=>{const{register:a,formState:{defaultValues:t,errors:l}}=F(),s=t?.debtorInfoSection?.dateReg===null;return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:"ÐлÑÑевÑе даÑÑ Ð´ÐµÐ»Ð°"}),e.jsx("div",{className:"bg-slate-50/40 p-5 rounded-lg border border-slate-100",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 items-end",children:[s&&e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐаÑа гоÑÑдаÑÑÑвенной ÑегиÑÑÑаÑии",type:"date",register:a("debtorInfoSection.dateReg"),labelClassName:"text-sm! normal-case!"}),r(l?.debtorInfoSection?.dateReg?.message)]}),e.jsx(ae,{name:"caseDatesSection.dateProtectionStart",label:"ÐаÑа Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð·Ð°ÑиÑного пеÑиода"}),e.jsx(ae,{name:"caseDatesSection.dateReceivership",label:"ÐаÑа оÑкÑÑÑÐ¸Ñ ÐºÐ¾Ð½ÐºÑÑÑного пÑоизводÑÑва"})]})})]})},me=a=>{if(!a)return"Ðе Ñказана";try{const t=new Date(a);return isNaN(t.getTime())?a:t.toLocaleDateString("ru-RU")}catch{return"Ðе Ñказана"}},ws=()=>{const{register:a,watch:t,formState:{errors:l}}=F(),s=t("rehabilitationSection.renewalDates")||[],d=s.length>0,[n,c]=g.useState(!1);return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:"СанаÑиÑ"}),e.jsx("div",{className:"bg-slate-50/40 p-5 rounded-lg border border-slate-100 mb-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 items-end",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐаÑа Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ ÑанаÑии",labelClassName:"text-sm! normal-case!",type:"date",register:a("rehabilitationSection.dateStart")}),r(l?.rehabilitationSection?.dateStart?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐаÑа завеÑÑÐµÐ½Ð¸Ñ ÑанаÑии пеÑвонаÑалÑно ÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð½Ð°Ñ ÑÑдом",labelClassName:"text-sm! normal-case!",type:"date",register:a("rehabilitationSection.originallyDateFinish")}),r(l?.rehabilitationSection?.originallyDateFinish?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐаÑа завеÑÑÐµÐ½Ð¸Ñ ÑанаÑии",labelClassName:"text-sm! normal-case!",type:"date",register:a("rehabilitationSection.dateFinish")}),r(l?.rehabilitationSection?.dateFinish?.message)]})]})}),e.jsxs("div",{className:"border border-slate-100 rounded-lg overflow-hidden",children:[e.jsxs("button",{type:"button",disabled:!d,onClick:()=>c(!n),className:`w-full flex justify-between items-center px-5 py-3.5 transition-colors text-left ${d?"bg-slate-50 hover:bg-slate-100/80 cursor-pointer":"bg-slate-50/50 cursor-not-allowed opacity-70"}`,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h4",{className:"text-xs font-bold text-slate-600 uppercase tracking-wide",children:"Ð¡Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð¾ пÑодлении ÑÑоков ÑанаÑии"}),d&&e.jsx("span",{className:"bg-blue-50 text-blue-600 text-xs px-2 py-0.5 rounded-full font-bold border border-blue-100",children:s.length})]}),d&&e.jsx("svg",{className:`w-4 h-4 text-slate-400 transition-transform duration-200 ${n?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),d?e.jsx("div",{className:`transition-all duration-200 ease-in-out overflow-hidden ${n?"max-h-[1000px] border-t border-slate-100 p-5 space-y-4 bg-slate-50/20":"max-h-0"}`,children:s.map((u,h)=>e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[1.5fr_2fr] gap-x-6 gap-y-3 p-4 bg-white rounded-lg border border-slate-100 shadow-2xs hover:border-slate-200 transition-colors items-start",children:[e.jsxs("div",{children:[e.jsx("span",{className:"block text-[10px] font-medium text-slate-400 mb-0.5",children:"ÐаÑа вÑнеÑÐµÐ½Ð¸Ñ Ð¾Ð¿ÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑодлении ÑÑока"}),e.jsx("span",{className:"text-xs font-semibold text-slate-700",children:me(u.startDate)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"block text-[10px] font-medium text-slate-400 mb-0.5",children:"ÐаÑа пÑодлениÑ"}),e.jsx("span",{className:"text-xs font-semibold text-slate-700",children:me(u.endDate)})]})]},h))}):e.jsx("div",{className:"text-sm! text-center py-5 bg-white text-slate-400 text-xs border-t border-slate-50 italic",children:"ÐнÑоÑмаÑии о пÑодлении ÑÑоков ÑанаÑии неÑ"})]})]})},he=a=>{if(!a)return"Ðе Ñказана";try{const t=new Date(a);return isNaN(t.getTime())?a:t.toLocaleDateString("ru-RU")}catch{return"Ðе Ñказана"}},Cs=()=>{const{register:a,watch:t,formState:{errors:l}}=F(),s=t("liquidationSection.renewalDates")||[],d=s.length>0,[n,c]=g.useState(!1);return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:"ÐиквидаÑиÑ"}),e.jsx("div",{className:"bg-slate-50/40 p-5 rounded-lg border border-slate-100 mb-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 items-end",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐаÑа Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñии",labelClassName:"text-sm! normal-case!",type:"date",register:a("liquidationSection.dateStart")}),r(l?.liquidationSection?.dateStart?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐаÑа завеÑÑÐµÐ½Ð¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñии пеÑвонаÑалÑно ÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð½Ð°Ñ ÑÑдом",labelClassName:"text-sm! normal-case!",type:"date",register:a("liquidationSection.originallyDateFinish")}),r(l?.liquidationSection?.originallyDateFinish?.message)]})]})}),e.jsxs("div",{className:"border border-slate-100 rounded-lg overflow-hidden",children:[e.jsxs("button",{type:"button",disabled:!d,onClick:()=>c(!n),className:`w-full flex justify-between items-center px-5 py-3.5 transition-colors text-left ${d?"bg-slate-50 hover:bg-slate-100/80 cursor-pointer":"bg-slate-50/50 cursor-not-allowed opacity-70"}`,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h4",{className:"text-xs font-bold text-slate-600 uppercase tracking-wide",children:"Ð¡Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð¾ пÑодлении ÑÑоков ликвидаÑии"}),d&&e.jsx("span",{className:"bg-blue-50 text-blue-600 text-xs px-2 py-0.5 rounded-full font-bold border border-blue-100",children:s.length})]}),d&&e.jsx("svg",{className:`w-4 h-4 text-slate-400 transition-transform duration-200 ${n?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),d?e.jsx("div",{className:`transition-all duration-200 ease-in-out overflow-hidden ${n?"max-h-[1000px] border-t border-slate-100 p-5 space-y-4 bg-slate-50/20":"max-h-0"}`,children:s.map((u,h)=>e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[1.5fr_2fr] gap-x-6 gap-y-3 p-4 bg-white rounded-lg border border-slate-100 shadow-2xs hover:border-slate-200 transition-colors items-start",children:[e.jsxs("div",{children:[e.jsx("span",{className:"block text-[10px] font-medium text-slate-400 mb-0.5",children:"ÐаÑа вÑнеÑÐµÐ½Ð¸Ñ Ð¾Ð¿ÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑодлении ÑÑока"}),e.jsx("span",{className:"text-xs font-semibold text-slate-700",children:he(u.startDate)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"block text-[10px] font-medium text-slate-400 mb-0.5",children:"ÐаÑа пÑодлениÑ"}),e.jsx("span",{className:"text-xs font-semibold text-slate-700",children:he(u.endDate)})]})]},h))}):e.jsx("div",{className:"text-center py-5 bg-white text-slate-400 text-sm border-t border-slate-50 italic",children:"ÐнÑоÑмаÑии о пÑодлении ÑÑоков ликвидаÑии неÑ"})]})]})},ks=()=>{const{register:a,control:t,formState:{errors:l}}=F(),d=L(le)?.reportsCaseType,n=U();g.useEffect(()=>{d!=null&&n(We({reportsCaseType:d}))},[d,n]);const c=L(Be),u=g.useMemo(()=>c.map(h=>({label:h.value,value:h.idDir})),[c]);return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:"ÐÑекÑаÑение пÑоизводÑÑва по делÑ"}),e.jsx("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-6 items-end",children:[e.jsx("div",{className:"md:col-span-4",children:e.jsx(ae,{name:"caseCloseSection.dateClose",label:"ÐаÑа вÑнеÑÐµÐ½Ð¸Ñ ÑÑдом опÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑекÑаÑении пÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð¾ неÑоÑÑоÑÑелÑноÑÑи или банкÑоÑÑÑве"})}),e.jsxs("div",{className:"md:col-span-4 flex flex-col justify-end relative",children:[e.jsx("label",{className:"text-sm! text-[var(--input-label-color)] mb-1.5 ml-1",children:"ÐÑнование Ð´Ð»Ñ Ð¿ÑекÑаÑÐµÐ½Ð¸Ñ Ð¿ÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð¾ неÑоÑÑоÑÑелÑноÑÑи или банкÑоÑÑÑве"}),e.jsx(ee,{control:t,name:"caseCloseSection.dateCloseReasonId",render:({field:{onCh
56ange:h,value:b}})=>e.jsx(J,{options:u,value:u.find(x=>x.value===b)||null,onChange:x=>h(x?.value),styles:se,placeholder:"ÐÑбеÑиÑе пÑиÑинÑ...",classNamePrefix:"react-select"})}),r(l?.caseCloseSection?.dateCloseReasonId?.message)]}),e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ÐаÑа иÑклÑÑÐµÐ½Ð¸Ñ Ð¸Ð· Ðдиного гоÑÑдаÑÑÑвенного ÑегиÑÑÑа ÑÑидиÑеÑкиÑ
Ð»Ð¸Ñ Ð¸ индивидÑалÑнÑÑ
пÑедпÑинимаÑелей",type:"date",register:a("caseCloseSection.debtorDateExclusion"),labelClassName:"text-sm! normal-case!"}),r(l?.caseCloseSection?.debtorDateExclusion?.message)]})]})})]})},Is=()=>{const{register:a,formState:{errors:t}}=F();return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:"ÐознагÑаждение ÑпÑавлÑÑÑего"}),e.jsx("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐÑновное вознагÑаждение",type:"number",placeholder:"0.00",register:a("compensation.main"),labelClassName:"text-sm! normal-case!"}),e.jsx("span",{className:"absolute right-3 bottom-2 text-slate-400 text-sm",children:"BYN"}),r(t?.compensation?.main?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐознагÑаждение по ÑезÑлÑÑаÑам",type:"number",placeholder:"0.00",register:a("compensation.result"),labelClassName:"text-sm! normal-case!"}),e.jsx("span",{className:"absolute right-3 bottom-2 text-slate-400 text-sm",children:"BYN"}),r(t?.compensation?.result?.message)]})]})})]})},Ds=()=>{const{register:a,formState:{errors:t}}=F();return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-6! text-slate-700 border-b pb-2",children:"ÐмÑÑеÑÑво"}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"СÑоимоÑÑÑ Ð¸Ð¼ÑÑеÑÑва"}),e.jsxs("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100 grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"СÑоимоÑÑÑ Ð¸Ð¼ÑÑеÑÑва вÑего",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.propertyValue")}),r(t?.propertySection?.propertyValue?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"Ðалоговое имÑÑеÑÑво",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.mortgagedProperty")}),r(t?.propertySection?.mortgagedProperty?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐебиÑоÑÑÐºÐ°Ñ Ð·Ð°Ð´Ð¾Ð»Ð¶ÐµÐ½Ð½Ð¾ÑÑÑ",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.accountsReceivable")}),r(t?.propertySection?.accountsReceivable?.message)]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"Реализовано имÑÑеÑÑва"}),e.jsxs("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100 grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"Реализовано имÑÑеÑÑва вÑего",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.soldProperty")}),r(t?.propertySection?.soldProperty?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐÑедпÑиÑÑие как имÑÑеÑÑвеннÑй комплекÑ",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.enterpriseAsPropertyComplex")}),r(t?.propertySection?.enterpriseAsPropertyComplex?.message)]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"ÐеÑедано имÑÑеÑÑва в ÑÑÐµÑ ÑдовлеÑвоÑÐµÐ½Ð¸Ñ ÑÑебований кÑедиÑоÑов"}),e.jsxs("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100 grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐеÑедано имÑÑеÑÑва вÑего",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.transferredProperty")}),r(t?.propertySection?.transferredProperty?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐеÑедано залогового имÑÑеÑÑва",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.transferredMortgagedProperty")}),r(t?.propertySection?.transferredMortgagedProperty?.message)]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"СпиÑано имÑÑеÑÑва"}),e.jsx("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100 grid grid-cols-1 md:grid-cols-3 gap-6",children:e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"СпиÑано имÑÑеÑÑва вÑего",labelClassName:"text-sm! normal-case!",type:"number",register:a("propertySection.decommissionProperty")}),r(t?.propertySection?.decommissionProperty?.message)]})})]})]})]})},Fs=()=>{const{control:a,setValue:t,getValues:l}=F(),d=!!C({control:a,name:"liquidationSection.dateEnd"}),n=C({control:a,name:"claims.extra"}),c=C({control:a,name:"claims.extraSatisfied"}),u=C({control:a,name:"claims.firstPhase"}),h=C({control:a,name:"claims.secondPhase"}),b=C({control:a,name:"claims.thirdPhase"}),x=C({control:a,name:"claims.fourthPhase"}),v=C({control:a,name:"claims.fifthPhase"}),j=C({control:a,name:"claims.registeredFirstPhase"}),y=C({control:a,name:"claims.registeredSecondPhase"}),P=C({control:a,name:"claims.registeredThirdPhase"}),k=C({control:a,name:"claims.registeredFourthPhase"}),E=C({control:a,name:"claims.registeredFifthPhase"});g.useEffect(()=>{if(!d)return;const f=(B,_)=>{const V=(B??0)-(_??0);return V>0?V:0},m=(B,_)=>{l(B)!==_&&t(B,_,{shouldDirty:!0,shouldTouch:!1,shouldValidate:!1})};m("claims.extraExtinguished.all",f(n?.all,c?.all)),m("claims.extraExtinguished.salary",f(n?.salary,c?.salary)),m("claims.extraExtinguished.individualsPaid",f(n?.individualsPaid,c?.individualsPaid)),m("claims.extraExtinguished.paymentsFSZN",f(n?.paymentsFSZN,c?.paymentsFSZN)),m("claims.extraExtinguished.taxes",f(n?.taxes,c?.taxes));const p=f(u?.all,j?.all),R=f(h?.all,y?.all),Z=f(b?.all,P?.all),W=f(x?.all,k?.all),M=f(v?.all,E?.all);m("claims.register.firstPhase",p),m("claims.register.secondPhase",R),m("claims.register.thirdPhase",Z),m("claims.register.fourthPhase",W),m("claims.register.fifthPhase",M),m("claims.register.all",p+R+Z+W+M)},[d,n,c,u,h,b,x,v,j,y,P,k,E,t,l])},Es=()=>{const{register:a,getValues:t,formState:{errors:l}}=F(),s=t("reportsCaseType");Fs();const d={readOnly:!0,className:"cursor-not-allowed"};return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200 space-y-10",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:s===3?"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов в деле об ÑкономиÑеÑкой неÑоÑÑоÑÑелÑноÑÑи (банкÑоÑÑÑве)":"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов в деле о неÑоÑÑоÑÑелÑноÑÑи или банкÑоÑÑÑве"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:s===3?"Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований кÑедиÑоÑов. ÐнеоÑеÑеднÑе обÑзаÑелÑÑÑва должника":"Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований кÑедиÑоÑов. ÐбÑзаÑелÑÑÑва возникÑие поÑле оÑкÑÑÑÐ¸Ñ ÐºÐ¾Ð½ÐºÑÑÑного пÑоизводÑÑва"}),e.jsxs("div",{className:"p-5 rounded-lg grid grid-cols-1 md:grid-cols-5 ga
56p-4 items-stretch",children:[e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.extra.all"),type:"number",step:"any"}),r(l?.claims?.extra?.all?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда",labelClassName:"text-sm! normal-case!",register:a("claims.extra.salary"),type:"number",step:"any"}),r(l?.claims?.extra?.salary?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:`${s===3?"ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам":"ÐознагÑÐ°Ð¶Ð´ÐµÐ½Ð¸Ñ ÑизиÑеÑким лиÑам"}`,labelClassName:"text-sm! normal-case!",register:a("claims.extra.individualsPaid"),type:"number",step:"any"}),r(l?.claims?.extra?.individualsPaid?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐлаÑежи в Фонд ÑоÑиалÑной заÑиÑÑ Ð½Ð°ÑелениÑ",labelClassName:"text-sm! normal-case!",register:a("claims.extra.paymentsFSZN"),type:"number",step:"any"}),r(l?.claims?.extra?.paymentsFSZN?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐбÑзаÑелÑнÑе плаÑежи в бÑджеÑ",labelClassName:"text-sm! normal-case!",register:a("claims.extra.taxes"),type:"number",step:"any"}),r(l?.claims?.extra?.taxes?.message)]})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов, подлежаÑие ÑдовлеÑвоÑÐµÐ½Ð¸Ñ Ð¿Ð¾ оÑеÑеди"}),e.jsxs("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100 space-y-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end border-b border-slate-200 pb-6",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ÐеÑÐ²Ð°Ñ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-2 relative",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.firstPhase.all"),type:"number",step:"any"}),r(l?.claims?.firstPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ТÑебование лиÑ, вÑледÑÑвие неÑÑаÑÑного ÑлÑÑÐ°Ñ Ð½Ð° пÑоизводÑÑве или пÑоÑеÑÑионалÑного заболеваниÑ",labelClassName:"text-sm! normal-case!",register:a("claims.firstPhase.accident"),type:"number",step:"any"}),r(l?.claims?.firstPhase?.accident?.message)]}),e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ТÑебование лиÑ, не ÑвÑзаннÑе Ñ Ð½ÐµÑÑаÑÑнÑм ÑлÑÑаем на пÑоизводÑÑве или пÑоÑеÑÑионалÑнÑм заболеванием",labelClassName:"text-sm! normal-case!",register:a("claims.firstPhase.notAccident"),type:"number",step:"any"}),r(l?.claims?.firstPhase?.notAccident?.message)]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end border-b border-slate-200 pb-6",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ÐÑоÑÐ°Ñ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-2 relative",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.secondPhase.all"),type:"number",step:"any"}),r(l?.claims?.secondPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:"ÐÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда",labelClassName:"text-sm! normal-case!",register:a("claims.secondPhase.salary"),type:"number",step:"any"}),r(l?.claims?.secondPhase?.salary?.message)]}),e.jsxs("div",{className:"md:col-span-2 relative",children:[e.jsx(i,{label:`${s===3?"ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам":"ÐознагÑÐ°Ð¶Ð´ÐµÐ½Ð¸Ñ ÑизиÑеÑким лиÑам"}`,labelClassName:"text-sm! normal-case!",register:a("claims.secondPhase.individualsPaid"),type:"number",step:"any"}),r(l?.claims?.secondPhase?.individualsPaid?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:"ÐлаÑежи в Фонд ÑоÑиалÑной заÑиÑÑ Ð½Ð°ÑелениÑ",labelClassName:"text-sm! normal-case!",register:a("claims.secondPhase.paymentsFSZN"),type:"number",step:"any"}),r(l?.claims?.secondPhase?.paymentsFSZN?.message)]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end border-b border-slate-200 pb-6",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ТÑеÑÑÑ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-2 relative",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.thirdPhase.all"),type:"number",step:"any"}),r(l?.claims?.thirdPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ÐбÑзаÑелÑнÑе плаÑежи в бÑджеÑ",labelClassName:"text-sm! normal-case!",register:a("claims.thirdPhase.taxes"),t
56ype:"number",step:"any"}),r(l?.claims?.thirdPhase?.taxes?.message)]}),s===3?null:e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð·Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ð³Ð¾ кÑедиÑоÑа",labelClassName:"text-sm! normal-case!",register:a("claims.thirdPhase.securedCreditor"),type:"number",step:"any"}),r(l?.claims?.thirdPhase?.securedCreditor?.message)]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ЧеÑвеÑÑÐ°Ñ Ð¾ÑеÑедÑ"}),s===3?e.jsxs("div",{className:"md:col-span-5 relative",children:[e.jsx(i,{label:"4-Ñ (вÑего)",labelClassName:"text-sm! normal-case!",register:a("claims.fourthPhase.all"),type:"number",step:"any"}),r(l?.claims?.fourthPhase?.all?.message)]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"md:col-span-5 relative",children:[e.jsx(i,{label:"4-Ñ (вÑего)",labelClassName:"text-sm! normal-case!",register:a("claims.fourthPhase.all"),type:"number",step:"any"}),r(l?.claims?.fourthPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð·Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ð³Ð¾ кÑедиÑоÑа",labelClassName:"text-sm! normal-case!",register:a("claims.fourthPhase.securedCreditor"),type:"number",step:"any"}),r(l?.claims?.fourthPhase?.securedCreditor?.message)]})]})]}),s===3?e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ÐÑÑÐ°Ñ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-5 relative",children:[e.jsx(i,{label:"5-Ñ (вÑего)",labelClassName:"text-sm! normal-case!",register:a("claims.fifthPhase.all"),type:"number",step:"any"}),r(l?.claims?.fifthPhase?.all?.message)]})]}):null]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:s===3?"ÐолиÑеÑÑво ÑабоÑников (ÑизиÑеÑкиÑ
лиÑ), пеÑед коÑоÑÑми имеÑÑÑÑ Ð²Ð½ÐµÐ¾ÑеÑеднÑе обÑзаÑелÑÑÑва":"ÐолиÑеÑÑво ÑабоÑников (ÑизиÑеÑкиÑ
лиÑ), пеÑед коÑоÑÑми имеÑÑÑÑ Ð¾Ð±ÑзаÑелÑÑÑва, возникÑие поÑле оÑкÑÑÑÐ¸Ñ ÐºÐ¾Ð½ÐºÑÑÑного пÑоизводÑÑва"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 bg-blue-50/30 p-5 rounded-lg border border-blue-100 items-stretch",children:[e.jsxs("div",{className:"relative flex flex-col h-full",children:[e.jsx("div",{className:"flex-1 flex flex-col justify-end",children:e.jsx(i,{label:`${s===3?"ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам (конÑÑакÑам)":"ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам"}`,labelClassName:"text-sm! normal-case!",register:a("claims.employees.numberWorkContracts"),type:"number",step:"any"})}),r(l?.claims?.employees?.numberWorkContracts?.message)]}),e.jsxs("div",{className:"relative flex flex-col h-full",children:[e.jsx("div",{className:"flex-1 flex flex-col justify-end",children:e.jsx(i,{label:`${s===3?"ÐолиÑеÑÑво ÑабоÑаÑÑÑ
и(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ гÑажданÑко-пÑавовÑм договоÑам":"ÐолиÑеÑÑво ÑизиÑеÑкиÑ
Ð»Ð¸Ñ Ð²ÑполнÑÑÑиÑ
(вÑполнÑвÑиÑ
) ÑабоÑÑ Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° по гÑажданÑко-пÑавовÑм договоÑам"}`,labelClassName:"text-sm! normal-case!",register:a("claims.employees.numberLawContracts"),type:"number",step:"any"})}),r(l?.claims?.employees?.numberLawContracts?.message)]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"ÐолиÑеÑÑво ÑабоÑников (ÑизиÑеÑкиÑ
лиÑ), ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾ÑоÑÑÑ
Ð¿Ð¾Ð´Ð»ÐµÐ¶Ð°Ñ ÑдовлеÑвоÑÐµÐ½Ð¸Ñ Ð²Ð¾ вÑоÑÑÑ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 bg-blue-50/30 p-5 rounded-lg border border-blue-100 items-stretch",children:[e.jsxs("div",{className:"relative flex flex-col h-full",children:[e.jsx("div",{className:"flex-1 flex flex-col justify-end",children:e.jsx(i,{label:`${s===3?"ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам (конÑÑакÑам)":"ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам"}`,labelClassName:"text-sm! normal-case!",register:a("claims.employees.numberWorkContractsSecondPhase"),type:"number",step:"any"})}),r(l?.claims?.employees?.numberWorkContractsSecondPhase?.message)]}),e.jsxs("div",{className:"relative flex flex-col h-full",children:[e.jsx("div",{className:"flex-1 flex flex-col justify-end",children:e.jsx(i,{label:`${s===3?"ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ гÑажданÑко-пÑавовÑм договоÑам":"ÐолиÑеÑÑво ÑизиÑеÑкиÑ
Ð»Ð¸Ñ Ð²ÑполнÑÑÑиÑ
(вÑполнÑвÑиÑ
) ÑабоÑÑ Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° по гÑажданÑко-пÑавовÑм договоÑам"}`,labelClassName:"text-sm! normal-case!",register:a("claims.employees.numberLawContractsSecondPhase"),type:"number",step:"any"})}),r(l?.claims?.employees?.numberLawContractsSecondPhase?.message)]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"text-sm font-bold text-green-700 text-center uppercase tracking-wide",children:"УдовлеÑвоÑено ÑÑебований кÑедиÑоÑов"}),e.jsxs("div",{className:"bg-green-50/30 p-5 rounded-lg border border-green-100 grid grid-cols-1 md:grid-cols-5 ga
56p-4 items-stretch",children:[e.jsx("div",{className:"md:col-span-6 border-b border-green-100 pb-2 mb-2 font-semibold text-green-800 text-xs uppercase",children:s===3?"ÐнеоÑеÑеднÑе обÑзаÑелÑÑÑва должника":"ÐбÑзаÑелÑÑÑва, возникÑие поÑле оÑкÑÑÑÐ¸Ñ ÐºÐ¾Ð½ÐºÑÑÑного пÑоизводÑÑва"}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.extraSatisfied.all"),type:"number",step:"any"}),r(l?.claims?.extraSatisfied?.all?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда",labelClassName:"text-sm! normal-case!",register:a("claims.extraSatisfied.salary"),type:"number",step:"any"}),r(l?.claims?.extraSatisfied?.salary?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:s===3?"ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам":"ÐознагÑÐ°Ð¶Ð´ÐµÐ½Ð¸Ñ ÑизиÑеÑким лиÑам",labelClassName:"text-sm! normal-case!",register:a("claims.extraSatisfied.individualsPaid"),type:"number",step:"any"}),r(l?.claims?.extraSatisfied?.individualsPaid?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐлаÑежи в Фонд ÑоÑиалÑной заÑиÑÑ Ð½Ð°ÑелениÑ",labelClassName:"text-sm! normal-case!",register:a("claims.extraSatisfied.paymentsFSZN"),type:"number",step:"any"}),r(l?.claims?.extraSatisfied?.paymentsFSZN?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐбÑзаÑелÑнÑе плаÑежи в бÑджеÑ",labelClassName:"text-sm! normal-case!",register:a("claims.extraSatisfied.taxes"),type:"number",step:"any"}),r(l?.claims?.extraSatisfied?.taxes?.message)]})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"УдовлеÑвоÑено ÑÑебований кÑедиÑоÑов. ÐклÑÑÐµÐ½Ñ Ð² ÑееÑÑÑ"}),e.jsxs("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100 space-y-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end border-b border-slate-200 pb-6",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ÐеÑÐ²Ð°Ñ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-1 relative",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFirstPhase.all"),type:"number",step:"any"}),r(l?.claims?.registeredFirstPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:"ТÑебование лиÑ, вÑледÑÑвие неÑÑаÑÑного ÑлÑÑÐ°Ñ Ð½Ð° пÑоизводÑÑве или пÑоÑеÑÑионалÑного заболеваниÑ",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFirstPhase.accident"),type:"number",step:"any"}),r(l?.claims?.registeredFirstPhase?.accident?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:"ТÑебование лиÑ, не ÑвÑзаннÑе Ñ Ð½ÐµÑÑаÑÑнÑм ÑлÑÑаем на пÑоизводÑÑве или пÑоÑеÑÑионалÑнÑм заболеванием",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFirstPhase.notAccident"),type:"number",step:"any"}),r(l?.claims?.registeredFirstPhase?.notAccident?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:"ÐеÑеÑиÑлено в бÑÐ´Ð¶ÐµÑ Ð² ÑвÑзи Ñ Ð¾Ñказом ÑизиÑеÑкого лиÑа Ð¾Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ ÑÑÐ¼Ð¼Ñ ÐºÐ°Ð¿Ð¸ÑаÐ
56»Ð¸Ð·Ð¸ÑованнÑÑ
повÑеменнÑÑ
плаÑежей",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFirstPhase.budget"),type:"number",step:"any"}),r(l?.claims?.registeredFirstPhase?.budget?.message)]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end border-b border-slate-200 pb-6",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ÐÑоÑÐ°Ñ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-1 relative",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.registeredSecondPhase.all"),type:"number",step:"any"}),r(l?.claims?.registeredSecondPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:"ÐÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда",labelClassName:"text-sm! normal-case!",register:a("claims.registeredSecondPhase.salary"),type:"number",step:"any"}),r(l?.claims?.registeredSecondPhase?.salary?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:`${s===3?"ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам":"ÐознагÑÐ°Ð¶Ð´ÐµÐ½Ð¸Ñ ÑизиÑеÑким лиÑам"}`,labelClassName:"text-sm! normal-case!",register:a("claims.registeredSecondPhase.individualsPaid"),type:"number",step:"any"}),r(l?.claims?.registeredSecondPhase?.individualsPaid?.message)]}),e.jsxs("div",{className:"md:col-span-3 relative",children:[e.jsx(i,{label:"ÐлаÑежи в Фонд ÑоÑиалÑной заÑиÑÑ Ð½Ð°ÑелениÑ",labelClassName:"text-sm! normal-case!",register:a("claims.registeredSecondPhase.paymentsFSZN"),type:"number",step:"any"}),r(l?.claims?.registeredSecondPhase?.paymentsFSZN?.message)]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end border-b border-slate-200 pb-6",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ТÑеÑÑÑ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-2 relative",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",register:a("claims.registeredThirdPhase.all"),type:"number",step:"any"}),r(l?.claims?.registeredThirdPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ÐбÑзаÑелÑнÑе плаÑежи в бÑджеÑ",labelClassName:"text-sm! normal-case!",register:a("claims.registeredThirdPhase.taxes"),type:"number",step:"any"}),r(l?.claims?.registeredThirdPhase?.taxes?.message)]}),s===3?null:e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð·Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ð³Ð¾ кÑедиÑоÑа",labelClassName:"text-sm! normal-case!",register:a("claims.registeredThirdPhase.securedCreditor"),type:"number",step:"any"}),r(l?.claims?.registeredThirdPhase?.securedCreditor?.message)]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ЧеÑвеÑÑÐ°Ñ Ð¾ÑеÑедÑ"}),s===3?e.jsxs("div",{className:"md:col-span-5 relative",children:[e.jsx(i,{label:"4-Ñ (вÑего)",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFourthPhase.all"),type:"number",step:"any"}),r(l?.claims?.registeredFourthPhase?.all?.message)]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"md:col-span-5 relative",children:[e.jsx(i,{label:"4-Ñ (вÑего)",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFourthPhase.all"),type:"number",step:"any"}),r(l?.claims?.registeredFourthPhase?.all?.message)]}),e.jsxs("div",{className:"md:col-span-4 relative",children:[e.jsx(i,{label:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð·Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ð³Ð¾ кÑедиÑоÑа",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFourthPhase.securedCreditor"),type:"number",step:"any"}),r(l?.claims?.registeredFourthPhase?.securedCreditor?.message)]})]})]}),s===3?e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-end",children:[e.jsx("div",{className:"md:col-span-2 font-bold text-slate-700",children:"ÐÑÑÐ°Ñ Ð¾ÑеÑедÑ"}),e.jsxs("div",{className:"md:col-span-5 relative",children:[e.jsx(i,{label:"5-Ñ (вÑего)",labelClassName:"text-sm! normal-case!",register:a("claims.registeredFifthPhase.all"),type:"number",step:"any"}),r(l?.claims?.registeredFifthPhase?.all?.message)]})]}):null]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 text-center uppercase tracking-wide mb-2!",children:"ÐолиÑеÑÑво ÑабоÑников (ÑизиÑеÑкиÑ
лиÑ), ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾ÑоÑÑÑ
ÑдовлеÑвоÑÐµÐ½Ñ Ð²Ð¾ вÑоÑой оÑеÑеди"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 bg-blue-50/30 p-5 rounded-lg border border-blue-100 items-stretch",children:[e.jsxs("div",{className:"relative flex flex-col h-full",children:[e.jsx("div",{className:"flex-1 flex flex-col justify-end",children:e.jsx(i,{label:"ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам",labelClassName:"text-sm! normal-case! text-[0.8rem]!",register:a("claims.employees.numberWorkContractsSecondPhaseSatisfaction"),type:"number",step:"any"})}),r(l?.claims?.employees?.numberWorkContractsSecondPhaseSatisfaction?.message)]}),e.jsxs("div",{className:"relative flex flex-col h-full",children:[e.jsx("div",{className:"flex-1 flex flex-col justify-end",children:e.jsx(i,{label:"ÐолиÑеÑÑво ÑизиÑеÑкиÑ
лиÑ, вÑполнÑÑÑиÑ
(вÑполнÑвÑиÑ
) ÑабоÑÑ/ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° по гÑажданÑко-пÑавовÑм договоÑам",labelClassName:"text-sm! normal-case!",register:a("claims.employees.numberLawContractsSecondPhaseSatisfaction"),type:"number",step:"any"})}),r(l?.claims?.employees?.numberLawContractsSecondPhaseSatisfaction?.message)]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2 text-center",children:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов, пÑизнаннÑе погаÑеннÑми"}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 mb-3! ml-1",children:"ÐнеоÑеÑеднÑе плаÑежи"}),e.jsx("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 ga
56p-4 items-stretch",children:[e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.extraExtinguished.all")}),r(l?.claims?.extraExtinguished?.all?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐÑÑ Ð¾Ð´Ð½Ñе поÑобиÑ, оплаÑа ÑÑÑда",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.extraExtinguished.salary")}),r(l?.claims?.extraExtinguished?.salary?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.extraExtinguished.individualsPaid")}),r(l?.claims?.extraExtinguished?.individualsPaid?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐлаÑежи в Фонд ÑоÑиалÑной заÑиÑÑ Ð½Ð°ÑелениÑ",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.extraExtinguished.paymentsFSZN")}),r(l?.claims?.extraExtinguished?.paymentsFSZN?.message)]})}),e.jsx("div",{className:"relative flex flex-col h-full",children:e.jsxs("div",{className:"flex-1 flex flex-col justify-end",children:[e.jsx(i,{label:"ÐбÑзаÑелÑнÑе плаÑежи в бÑджеÑ",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.extraExtinguished.taxes")}),r(l?.claims?.extraExtinguished?.taxes?.message)]})})]})})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-slate-600 mb-3! ml-1",children:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов, внеÑеннÑе в ÑееÑÑÑ"}),e.jsx("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"ÐÑего",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.register.all")}),r(l?.claims?.register?.all?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"1-Ñ Ð¾ÑеÑедÑ",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.register.firstPhase")}),r(l?.claims?.register?.firstPhase?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"2-Ñ Ð¾ÑеÑедÑ",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.register.secondPhase")}),r(l?.claims?.register?.secondPhase?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"3-Ñ Ð¾ÑеÑедÑ",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.register.thirdPhase")}),r(l?.claims?.register?.thirdPhase?.message)]}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"4-Ñ Ð¾ÑеÑедÑ",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.register.fourthPhase")}),r(l?.claims?.register?.fourthPhase?.message)]}),s===3?e.jsxs("div",{className:"relative",children:[e.jsx(i,{label:"5-Ñ Ð¾ÑеÑедÑ",labelClassName:"text-sm! normal-case!",type:"number",...d,register:a("claims.register.fifthPhase")}),r(l?.claims?.register?.fifthPhase?.message)]}):null]})})]}),e.jsx("div",{className:"mt-6",children:e.jsxs("div",{className:"bg-slate-50/80 p-4 rounded-lg border border-slate-100 relative",children:[e.jsx(i,{label:"ÐолиÑеÑÑво ÑабоÑников, ÑÑи ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ оплаÑе ÑÑÑда, вÑплаÑе вÑÑ Ð¾Ð´Ð½ÑÑ Ð¿Ð¾Ñобий пÑÐ¸Ð·Ð½Ð°Ð½Ñ Ð¿Ð¾Ð³Ð°ÑеннÑми",labelClassName:"text-sm! normal-case!",type:"number",register:a("claims.numberEmployeesExtinguished")}),r(l?.claims?.numberEmployeesExtinguished?.message)]})})]})]})},Rs=()=>{const{register:a,watch:t}=F(),l=t("comment"),s=L(le),d=L(ve),n=!!s?.reportCreated,c=!d||n;return e.jsxs("section",{className:"bg-white p-6 rounded-xl shadow-sm border border-slate-200",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4! text-slate-700 border-b pb-2",children:"ÐополниÑелÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ / ÐомменÑаÑий"}),e.jsx("div",{className:"bg-slate-50/80 p-5 rounded-lg border border-slate-100",children:e.jsxs("div",{className:"relative",children:[!c&&e.jsx("textarea",{...a("comment"),placeholder:"ÐведиÑе пÑимеÑÐ°Ð½Ð¸Ñ Ð¸Ð»Ð¸ важнÑе ÑÑоÑÐ½ÐµÐ½Ð¸Ñ Ð¿Ð¾ оÑÑеÑÑ...",className:`w-full min-h-[120px] bg-white p-4 rounded-lg border border-slate-200 \r 57 text-slate-700 text-sm leading-relaxed outline-none transition-all\r 58 focus:border-blue-400 focus:ring-2 focus:ring-blue-100\r 59 placeholder:text-slate-400 placeholder:italic resize-none`}),c&&l&&e.jsx("div",{className:`w-full min-h-[120px] bg-white p-4 rounded-lg border border-slate-200 \r 60 text-slate-700 text-sm leading-relaxed whitespace-pre-wrap`,children:l}),c&&!l&&e.jsx("div",{className:`w-full min-h-[120px] bg-white p-4 rounded-lg border border-slate-200 \r 61 flex items-center justify-center`,children:e.jsxs("span",{className:"text-gray-400! text-sm flex items-center gap-2",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),"ÐомменÑаÑий оÑÑÑÑÑÑвÑеÑ"]})})]})})]})};A(a=>a===null?"":a,w()).pipe(w().min(1,"УкажиÑе даÑÑ"));const S=w().nullable().or(Oe("")).optional().transform(a=>a===null||a===""?void 0:a),Se=A(a=>
61a===null?0:a,D()).pipe(D()),o=A(a=>a===null||a===""?0:a,Y()).pipe(D().min(0,"ÐнаÑение не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¾ÑÑиÑаÑелÑнÑм")),Ls=N({kindOfActivityId:Se,numberEmployees:A(a=>a===""||a===null||a===void 0?void 0:a,Y({message:"УкажиÑе ÑпиÑоÑнÑÑ ÑиÑленноÑÑÑ ÑабоÑников"}).min(1,"Ðолжна бÑÑÑ Ñказана ÑпиÑоÑÐ½Ð°Ñ ÑиÑленноÑÑÑ ÑабоÑников")),proceedingsId:Y().min(1,"ÐÑбеÑиÑе вид пÑоизводÑÑва"),name:w().optional(),unp:w().optional(),dateReg:w().optional().nullable(),address:w().optional(),stateOwnership:_e([w(),D()]).optional().nullable()}),Ts=N({fileNumber:w().optional(),court:w().optional(),judgeName:w().optional(),declarantTypeId:D().optional().nullable()}),ue=(a,t)=>!a||!t?!1:new Date(a)>new Date(t),G=a=>{if(!a)return!1;const t=new Date(a),l=new Date;return l.setHours(0,0,0,0),t.setHours(0,0,0,0),t>l},Ms=N({dateStart:A(a=>a===null?"":a,w().optional().nullable()),dateProtectionStart:S,dateReceivership:S}).superRefine((a,t)=>{a.dateStart&&G(a.dateStart)&&t.addIssue({code:"custom",message:"ÐаÑа возбÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¿ÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["dateStart"]}),a.dateProtectionStart&&G(a.dateProtectionStart)&&t.addIssue({code:"custom",message:"ÐаÑа Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð·Ð°ÑиÑного пеÑиода не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["dateProtectionStart"]}),a.dateReceivership&&G(a.dateReceivership)&&t.addIssue({code:"custom",message:"ÐаÑа оÑкÑÑÑÐ¸Ñ ÐºÐ¾Ð½ÐºÑÑÑного пÑоизводÑÑва не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["dateReceivership"]}),a.dateProtectionStart&&a.dateStart&&ue(a.dateStart,a.dateProtectionStart)&&t.addIssue({code:"custom",message:"ÐаÑа Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð·Ð°ÑиÑного пеÑиода не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ ÑанÑÑе даÑÑ Ð½Ð°Ñала пÑоизводÑÑва по делÑ",path:["dateProtectionStart"]}),a.dateReceivership&&a.dateStart&&ue(a.dateStart,a.dateReceivership)&&t.addIssue({code:"custom",message:"ÐаÑа оÑкÑÑÑÐ¸Ñ ÐºÐ¾Ð½ÐºÑÑÑного пÑоизводÑÑва не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ ÑанÑÑе даÑÑ Ð½Ð°Ñала пÑоизводÑÑва по делÑ",path:["dateReceivership"]})}),te=(a,t)=>!a||!t?!1:new Date(a)>new Date(t),re=a=>{if(!a)return!1;const t=new Date(a),l=new Date;return l.setHours(0,0,0,0),t.setHours(0,0,0,0),t>l},we=N({startDate:S,endDate:S}).superRefine((a,t)=>{a.startDate&&a.endDate&&new Date(a.startDate)>new Date(a.endDate)&&t.addIssue({code:"custom",message:"ÐаÑа наÑала не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ даÑÑ Ð¾ÐºÐ¾Ð½ÑÐ°Ð½Ð¸Ñ Ð¿ÑодлениÑ",path:["startDate"]}),a.startDate&&re(a.startDate)&&t.addIssue({code:"custom",message:"ÐаÑа наÑала пÑÐ¾Ð´Ð»ÐµÐ½Ð¸Ñ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["startDate"]})}),$s=N({dateStart:S,originallyDateFinish:S,renewalDates:Ne(we),dateFinish:S}).superRefine((a,t)=>{a.dateStart&&re(a.dateStart)&&t.addIssue({code:"custom",message:"ÐаÑа оÑкÑÑÑÐ¸Ñ ÑанаÑии не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["dateStart"]}),a.dateStart&&a.originallyDateFinish&&te(a.dateStart,a.originallyDateFinish)&&t.addIssue({code:"custom",message:"ÐаÑа завеÑÑÐµÐ½Ð¸Ñ ÑанаÑии пеÑвонаÑалÑно ÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð½Ð°Ñ ÑÑдом не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð´Ð¾ даÑÑ Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ ÑанаÑии",path:["originallyDateFinish"]}),a.dateStart&&a.dateFinish&&te(a.dateStart,a.dateFinish)&&t.addIssue({code:"custom",message:"ÐаÑа завеÑÑÐµÐ½Ð¸Ñ ÑанаÑии не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð´Ð¾ даÑÑ Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ ÑанаÑии",path:["dateFinish"]})}),As=N({dateStart:S,originallyDateFinish:S,dateEnd:S,renewalDates:Ne(we)}).superRefine((a,t)=>{a.dateStart&&re(a.dateStart)&&t.addIssue({code:"custom",message:"ÐаÑа Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñии не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["dateStart"]}),a.dateStart&&a.originallyDateFinish&&te(a.dateStart,a.originallyDateFinish)&&t.addIssue({code:"custom",message:"ÐаÑа завеÑÑÐµÐ½Ð¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñии пеÑвонаÑалÑно ÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð½Ð°Ñ ÑÑдом не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð´Ð¾ даÑÑ Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñии",path:["originallyDateFinish"]}
61)}),Q=N({all:o,salary:o,individualsPaid:o,paymentsFSZN:o,taxes:o}),xe=N({all:o,accident:o,notAccident:o}),pe=N({all:o,salary:o,individualsPaid:o,paymentsFSZN:o}),ge=N({all:o,taxes:o,securedCreditor:o}),be=N({all:o,securedCreditor:o}),fe=N({all:o}),Zs=N({numberWorkContracts:o,numberLawContracts:o,numberWorkContractsSecondPhaseSatisfaction:o,numberLawContractsSecondPhaseSatisfaction:o,numberWorkContractsSecondPhase:o,numberLawContractsSecondPhase:o}),Ws=N({extra:Q,firstPhase:xe,secondPhase:pe,thirdPhase:ge,fourthPhase:be,fifthPhase:fe.default({all:0}),employees:Zs,extraSatisfied:Q,registeredFirstPhase:xe.extend({budget:o}),registeredSecondPhase:pe,registeredThirdPhase:ge,registeredFourthPhase:be,registeredFifthPhase:fe.default({all:0}),extraExtinguished:Q,register:N({all:o,firstPhase:o,secondPhase:o,thirdPhase:o,fourthPhase:o,fifthPhase:o}),numberEmployeesExtinguished:A(a=>a===null?0:a,Y()).pipe(D())}),O=(a,t,l,s,d)=>{a>0&&t===0?d.addIssue({code:"custom",message:s,path:l}):t>a&&d.addIssue({code:"custom",message:`СÑмма ÑоÑÑавлÑÑÑиÑ
полей не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð±Ð¾Ð»ÑÑе знаÑÐµÐ½Ð¸Ñ Ð¿Ð¾Ð»Ñ "ÐÑего" (ожидалоÑÑ <= ${a})`,path:l})},Bs=(a,t)=>{const l=a.reportsCaseType,s=a.claims;if(!s)return;const d=!!a.liquidationSection?.dateEnd;if(l===3){const n=s.extra.salary+s.extra.individualsPaid+s.extra.paymentsFSZN+s.extra.taxes;s.extra.all<n&&t.addIssue({code:"custom",message:`Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований кÑедиÑоÑов вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${n})`,path:["claims","extra","all"]});const c=s.firstPhase.accident+s.firstPhase.notAccident;s.firstPhase.all<c&&t.addIssue({code:"custom",message:`ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов пеÑÐ²Ð°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${c})`,path:["claims","firstPhase","all"]});const u=s.secondPhase.salary+s.secondPhase.individualsPaid+s.secondPhase.paymentsFSZN;s.secondPhase.all<u&&t.addIssue({code:"custom",message:`ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов вÑоÑÐ°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${u})`,path:["claims","secondPhase","all"]});const h=s.thirdPhase.taxes;s.thirdPhase.all<h&&t.addIssue({code:"custom",message:`ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов ÑÑеÑÑÑ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${h})`,path:["claims","thirdPhase","all"]});const b=s.extraSatisfied.salary+s.extraSatisfied.individualsPaid+s.extraSatisfied.paymentsFSZN+s.extraSatisfied.taxes;s.extraSatisfied.all<b&&t.addIssue({code:"custom",message:`ÐнеоÑеÑеднÑе обÑзаÑелÑÑÑва должника вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${b})`,path:["claims","extraSatisfied","all"]});const x=s.registeredFirstPhase.accident+s.registeredFirstPhase.notAccident+s.registeredFirstPhase.budget;s.registeredFirstPhase.all<x&&t.addIssue({code:"custom",message:`ÐклÑÑÐµÐ½Ñ Ð² ÑееÑÑÑ Ð²Ñего пеÑÐ²Ð°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð¼ÐµÐ½ÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${x})`,path:["claims","registeredFirstPhase","all"]});const v=s.registeredSecondPhase.salary+s.registeredSecondPhase.individualsPaid+s.registeredSecondPhase.paymentsFSZN;s.registeredSecondPhase.all<v&&t.addIssue({code:"custom",message:`ÐклÑÑÐµÐ½Ñ Ð² ÑееÑÑÑ Ð²Ñего вÑоÑÐ°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð¼ÐµÐ½ÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${v})`,path:["claims","registeredSecondPhase","all"]});const j=s.registeredThirdPhase.taxes;s.registeredThirdPhase.all<j&&t.addIssue({code:"custom",message:`ÐклÑÑÐµÐ½Ñ Ð² ÑееÑÑÑ Ð²Ñего ÑÑеÑÑÑ Ð¾ÑеÑÐµÐ´Ñ Ð¼ÐµÐ½ÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${j})`,path:["claims","registeredThirdPhase","all"]});const y="Ðаполнено ÑолÑко поле ÐÑего. ÐаполниÑе ÑоÑÑавлÑÑÑие",P=s.secondPhase.salary+s.secondPhase.individualsPaid+s.secondPhase.paymentsFSZN;O(s.secondPhase.all,P,["claims","secondPhase","all"],y,t);const k=s.registeredSecondPhase.salary+s.registeredSecondPhase.individualsPaid+s.registeredSecondPhase.paymentsFSZN;O(s.registeredSecondPhase.all,k,["claims","registeredSecondPhase","all"],y,t);const E=s.extraExtinguished.salary+s.extraExtinguished.individualsPaid+s.extraExtinguished.paymentsFSZN+s.extraExtinguished.taxes,f=s.register.firstPhase+s.register.secondPhase+s.register.thirdPhase+s.register.fourthPhase+s.register.fifthPhase;d?(s.extraExtinguished.all<E&&t.addIssue({code:"custom",message:`ÐнеоÑеÑеднÑе плаÑежи вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${E})`,path:["claims","extraExtinguished","all"]}),s.register.all<f&&t.addIssue({code:"custom",message:`ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов внеÑеннÑе в ÑееÑÑÑ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${f})`,path:["claims","register","all"]})):(s.extraExtinguished.all>0||s.register.all>0)&&t.addIssue({code:"custom",message:"ÐаннÑе о погаÑении заполнÑÑÑÑÑ ÑолÑко в ÑлÑÑае, еÑли завеÑÑена ликвидаÑиÑ!",path:["claims","register","all"]});const m="Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований кÑедиÑоÑов не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¼ÐµÐ½ÑÑе ÑдовлеÑвоÑеннÑÑ
ÑÑебований кÑедиÑоÑов";s.extra.all<s.extraSatisfied.all&&t.addIssue({code:"custom",message:m,path:["claims","extra","all"]}),s.extra.salary<s.extraSatisfied.salary&&t.addIssue({code:"custom",message:m,path:["claims","extra","salary"]}),s.extra.individualsPaid<s.extraSatisfied.individualsPaid&&t.addIssue({code:"custom",message:m,path:["claims","extra","individualsPaid"]}),s.extra.paymentsFSZN<s.extraSatisfied.paymentsFSZN&&t.addIssue({code:"custom",message:m,path:["claims","extra","paymentsFSZN"]}),s.extra.taxes<s.extraSatisfied.taxes&&t.addIssue({code:"custom",message:m,path:["claims","extra","taxes"]}),s.firstPhase.all<s.registeredFirstPhase.all&&t.addIssue({code:"custom",message:m,path:["claims","firstPhase","all"]}),s.firstPhase.accident<s.registeredFirstPhase.accident&&t.addIssue({code:"custom",message:m,path:["claims","firstPhase","accident"]}),s.firstPhase.notAccident<s.registeredFirstPhase.notAccident&&t.addIssue({code:"custom",message:m,path:["claims","firstPhase","notAccident"]}),s.secondPhase.all<s.registeredSecondPhase.all&&t.addIssue({code:"custom",message:m,path:["claims","secondPhase","all"]}),s.secondPhase.salary<s.registeredSecondPhase.salary&&t.addIssue({code:"custom",message:m,path:["claims","secondPhase","salary"]}),s.secondPhase.individualsPaid<s.registeredSecondPhase.individualsPaid&&t.addIssue({code:"custom",message:m,path:["claims","secondPhase","individualsPaid"]}),s.secondPhase.paymentsFSZN<s.registeredSecondPhase.paymentsFSZN&&t.addIssue({code:"custom",message:m,path:["claims","secondPhase","paymentsFSZN"]}),s.thirdPhase.all<s.registeredThirdPhase.all&&t.addIssue({code:"custom",message:m,path:["claims","thirdPhase","all"]}),s.thirdPhase.taxes<s.registeredThirdPhase.taxes&&t.addIssue({code:"custom",message:m,path:["claims","thirdPhase","taxes"]}),s.fourthPhase.all<s.registeredFourthPhase.all&&t.addIssue({code:"custom",message:m,path:["claims","fourthPhase","all"]}),s.fifthPhase.all<s.registeredFifthPhase.all&&t.addIssue({code:"custom",message:m,path:["claims","fifthPhase","all"]}),s.extra.salary>s.extraSatisfied.salary&&!s.employees.numberWorkContracts&&t.addIssue({code:"custom",message:'ÐÑли знаÑение в поле "ÐÑÑ
однÑе поÑобиÑ
61, оплаÑа ÑÑÑда" (Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований) болÑÑе, Ñем в поле "ÐÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда" (УдовлеÑвоÑено), Ñо необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам (конÑÑакÑам)"',path:["claims","employees","numberWorkContracts"]}),s.extra.individualsPaid>s.extraSatisfied.individualsPaid&&!s.employees.numberLawContracts&&t.addIssue({code:"custom",message:'ÐÑли знаÑение в поле "ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам" (Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований) болÑÑе, Ñем в поле "ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам" (УдовлеÑвоÑено), Ñо необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ гÑажданÑко-пÑавовÑм договоÑам"',path:["claims","employees","numberLawContracts"]}),s.extra.salary>0&&s.extra.salary===s.extraSatisfied.salary&&s.employees.numberWorkContracts!==0&&t.addIssue({code:"custom",message:"ÐÑли ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ вÑÑ
однÑм поÑобиÑм во внеоÑеÑеднÑÑ
ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑабоÑников должно бÑÑÑ Ñавно 0",path:["claims","employees","numberWorkContracts"]}),s.extra.individualsPaid>0&&s.extra.individualsPaid===s.extraSatisfied.individualsPaid&&s.employees.numberLawContracts!==0&&t.addIssue({code:"custom",message:"ÐÑли ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ оплаÑе ÑÑÑда ÑизлиÑам во внеоÑеÑеднÑÑ
ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑÐ¸Ð·Ð»Ð¸Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¾ бÑÑÑ Ñавно 0",path:["claims","employees","numberLawContracts"]}),s.secondPhase.salary>0&&!s.employees.numberWorkContractsSecondPhase&&t.addIssue({code:"custom",message:'ÐÑли Ñказана ÑÑмма по вÑÑ
однÑм поÑобиÑм, оплаÑе ÑÑÑда во 2-й оÑеÑеди, необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам (конÑÑакÑам)"',path:["claims","employees","numberWorkContractsSecondPhase"]}),s.secondPhase.individualsPaid>0&&!s.employees.numberLawContractsSecondPhase&&t.addIssue({code:"custom",message:'ÐÑли Ñказана ÑÑмма по оплаÑе ÑÑÑда ÑизиÑеÑким лиÑам во 2-й оÑеÑеди, необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ гÑажданÑко-пÑавовÑм договоÑам"',path:["claims","employees","numberLawContractsSecondPhase"]});const p="Указано колиÑеÑÑво ÑабоÑников/ÑизлиÑ, пеÑед коÑоÑÑми имеÑÑÑÑ Ð¾Ð±ÑзаÑелÑÑÑва, но ÑÑмма ÑÑебований Ñавна нÑлÑ";if(s.employees.numberWorkContracts>0&&s.extra.salary===0&&t.addIssue({code:"custom",message:p,path:["claims","extra","salary"]}),s.employees.numberLawContracts>0&&s.extra.individualsPaid===0&&t.addIssue({code:"custom",message:p,path:["claims","extra","individualsPaid"]}),s.employees.numberWorkContractsSecondPhase>0&&s.secondPhase.salary===0&&t.addIssue({code:"custom",message:p,path:["claims","secondPhase","salary"]}),s.employees.numberLawContractsSecondPhase>0&&s.secondPhase.individualsPaid===0&&t.addIssue({code:"custom",message:p,path:["claims","secondPhase","individualsPaid"]}),s.secondPhase.salary>0&&s.secondPhase.salary===s.registeredSecondPhase.salary&&s.employees.numberWorkContractsSecondPhaseSatisfaction!==s.employees.numberWorkContractsSecondPhase&&t.addIssue({code:"custom",message:"ÐÑли во 2 оÑеÑеди вÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑабоÑников, ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾ÑоÑÑÑ
ÑдовлеÑвоÑенÑ, должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾ и бÑÑÑ Ñавно обÑÐµÐ¼Ñ ÑиÑÐ»Ñ ÑабоÑников во вÑоÑой оÑеÑеди",path:["claims","employees","numberWorkContractsSecondPhaseSatisfaction"]}),s.secondPhase.individualsPaid>0&&s.secondPhase.individualsPaid===s.registeredSecondPhase.individualsPaid&&s.employees.numberLawContractsSecondPhaseSatisfaction!==s.employees.numberLawContractsSecondPhase&&t.addIssue({code:"custom",message:"ÐÑли во 2 оÑеÑеди вознагÑаждение/оплаÑа ÑÑÑда ÑизлиÑам ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑизлиÑ, ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾ÑоÑÑÑ
ÑдовлеÑвоÑенÑ, должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾ и бÑÑÑ Ñавно обÑÐµÐ¼Ñ ÑиÑÐ»Ñ ÑÐ¸Ð·Ð»Ð¸Ñ Ð²Ð¾ вÑоÑой оÑеÑеди",path:["claims","employees","numberLawContractsSecondPhaseSatisfaction"]}),d){const R=s.extra.salary>s.extraSatisfied.salary,Z=s.secondPhase.salary>s.registeredSecondPhase.salary;(R||Z)&&s.numberEmployeesExtinguished<=0&&t.addIssue({code:"custom",message:"ÐÑли знаÑение по вÑÑ
однÑм поÑобиÑ
61м во внеоÑеÑеднÑÑ
и/или во 2 оÑеÑеди болÑÑе, Ñем ÑдовлеÑвоÑенное, поле 'ÐолиÑеÑÑво ÑабоÑников, ÑÑи ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ оплаÑе ÑÑÑда... пÑÐ¸Ð·Ð½Ð°Ð½Ñ Ð¿Ð¾Ð³Ð°ÑеннÑми' обÑзаÑелÑно должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾",path:["claims","numberEmployeesExtinguished"]});const W=s.extra.individualsPaid>s.extraSatisfied.individualsPaid,M=s.secondPhase.individualsPaid>s.registeredSecondPhase.individualsPaid;(W||M)&&s.numberEmployeesExtinguished<=0&&t.addIssue({code:"custom",message:"ÐÑли знаÑение по оплаÑе ÑÑÑда ÑизлиÑам во внеоÑеÑеднÑÑ
и/или во 2 оÑеÑеди болÑÑе, Ñем ÑдовлеÑвоÑенное, поле 'ÐолиÑеÑÑво ÑабоÑников, ÑÑи ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ оплаÑе ÑÑÑда... пÑÐ¸Ð·Ð½Ð°Ð½Ñ Ð¿Ð¾Ð³Ð°ÑеннÑми' обÑзаÑелÑно должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾",path:["claims","numberEmployeesExtinguished"]})}}if(l===1||l===2){const n="Ðаполнено ÑолÑко поле вÑего. ÐаполниÑе ÑоÑÑавлÑÑÑие",c=s.firstPhase.accident+s.firstPhase.notAccident;O(s.firstPhase.all,c,["claims","firstPhase","all"],n,t);const u=s.thirdPhase.taxes+s.thirdPhase.securedCreditor;O(s.thirdPhase.all,u,["claims","thirdPhase","all"],n,t);const h=s.registeredFirstPhase.accident+s.registeredFirstPhase.notAccident+s.registeredFirstPhase.budget;O(s.registeredFirstPhase.all,h,["claims","registeredFirstPhase","all"],n,t);const b=s.registeredThirdPhase.taxes+s.registeredThirdPhase.securedCreditor;O(s.registeredThirdPhase.all,b,["claims","registeredThirdPhase","all"],n,t);const x=s.secondPhase.salary+s.secondPhase.individualsPaid+s.secondPhase.paymentsFSZN;O(s.secondPhase.all,x,["claims","secondPhase","all"],n,t);const v=s.registeredSecondPhase.salary+s.registeredSecondPhase.individualsPaid+s.registeredSecondPhase.paymentsFSZN;O(s.registeredSecondPhase.all,v,["claims","registeredSecondPhase","all"],n,t);const j=s.extra.salary+s.extra.individualsPaid+s.extra.paymentsFSZN+s.extra.taxes;s.extra.all<j&&t.addIssue({code:"custom",message:`Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований кÑедиÑоÑов вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${j})`,path:["claims","extra","all"]});const y=s.secondPhase.salary+s.secondPhase.individualsPaid+s.secondPhase.paymentsFSZN;s.secondPhase.all<y&&t.addIssue({code:"custom",message:`ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов вÑоÑÐ°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${y})`,path:["claims","secondPhase","all"]});const P=s.thirdPhase.taxes+s.thirdPhase.securedCreditor;s.thirdPhase.all<P&&t.addIssue({code:"custom",message:`ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов ÑÑеÑÑÑ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей, вклÑÑÐ°Ñ Ð·Ð°Ð»Ð¾Ð³Ð¾Ð²ÑÑ
кÑедиÑоÑов (ожидалоÑÑ >= ${P})`,path:["claims","thirdPhase","all"]}),s.fourthPhase.all<s.fourthPhase.securedCreditor&&t.addIssue({code:"custom",message:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов ÑеÑвеÑÑÐ°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑебований залогового кÑедиÑоÑа",path:["claims","fourthPhase","all"]});const k=s.extraSatisfied.salary+s.extraSatisfied.individualsPaid+s.extraSatisfied.paymentsFSZN+s.extraSatisfied.taxes;s.extraSatisfied.all<k&&t.addIssue({code:"custom",message:`ÐбÑзаÑелÑÑÑва, возникÑие поÑле оÑкÑÑÑÐ¸Ñ ÐºÐ¾Ð½ÐºÑÑÑного пÑоизводÑÑва вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${k})`,path:["claims","extraSatisfied","all"]});const E=s.registeredSecondPhase.salary+s.registeredSecondPhase.individualsPaid+s.registeredSecondPhase.paymentsFSZN;s.registeredSecondPhase.all<E&&t.addIssue({code:"custom",message:`ÐклÑÑÐµÐ½Ñ Ð² ÑееÑÑÑ Ð²ÑоÑÐ°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${E})`,path:["claims","registeredSecondPhase","all"]}),s.registeredFourthPhase.all<s.registeredFourthPhase.securedCreditor&&t.addIssue({code:"custom",message:"ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов, подлежаÑие ÑдовлеÑвоÑÐµÐ½Ð¸Ñ Ð¿Ð¾ оÑеÑедноÑÑи ÑеÑвеÑÑÐ°Ñ Ð¾ÑеÑÐµÐ´Ñ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей",path:["claims","registeredFourthPhase","all"]});const f=s.extraExtinguished.salary+s.extraExtinguished.individualsPaid+s.extraExtinguished.paymentsFSZN+s.extraExtinguished.taxes,m=s.register.firstPhase+s.register.secondPhase+s.register.thirdPhase+s.register.fourthPhase;d?(s.extraExtinguished.all<f&&t.addIssue({code:"custom",message:`ÐнеоÑеÑеднÑе плаÑежи вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${f})`,path:["claims","extraExtinguished","all"]}),s.register.all<m&&t.addIssue({code:"custom",message:`ТÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÑедиÑоÑов внеÑеннÑе в ÑееÑÑÑ Ð²Ñего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (ожидалоÑÑ >= ${m})`,path:["claims","register","all"]})):(s.extraExtinguished.all>0||s.register.all>0)&&t.addIssue({code:"custom",message:"ÐаннÑе о погаÑении заполнÑÑÑÑÑ ÑолÑко в ÑлÑÑае, еÑли завеÑÑена ликвидаÑиÑ!",path:["claims","register","all"]});const p="Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований кÑедиÑоÑов не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¼ÐµÐ½ÑÑе ÑдовлеÑвоÑеннÑÑ
ÑÑебований кÑедиÑоÑов";s.extra.all<s.extraSatisfied.all&&t.addIssue({code:"custom",message:p,path:["claims","extra","all"]}),s.extra.salary<s.extraSatisfied.salary&&t.addIssue({code:"custom",message:p,path:["claims","extra","salary"]}),s.extra.individualsPaid<s.extraSatisfied.individualsPaid&&t.addIssue({code:"custom",message:p,path:["claims","extra","individualsPaid"]}),s.extra.paymentsFSZN<s.extraSatisfied.paymentsFSZN&&t.addIssue({code:"custom",message:p,path:["claims","extra","paymentsFSZN"]}),s.extra.taxes<s.extraSatisfied.taxes&&t.addIssue({code:"custom",message:p,path:["claims","extra","taxes"]}),s.firstPhase.all<s.registeredFirstPhase.all&&t.addIssue({code:"custom",message:p,path:["claims","firstPhase","all"]}),s.firstPhase.accident<s.registeredFirstPhase.accident&&t.addIssue({code:"custom",message:p,path:["claims","firstPhase","accident"]}),s.firstPhase.notAccident<s.registeredFirstPhase.notAccident&&t.addIssue({code:"custom",message:p,path:["claims","firstPhase","notAccident"]}),s.secondPhase.all<s.registeredSecondPhase.all&&t.addIssue({code:"custom",message:p,path:["claims","secondPhase","all"]}),s.secondPhase.salary<s.registeredSecondPhase.salary&&t.addIssue({code:"custom",message:p,path:["claims","secondPhase","salary"]}),s.secondPhase.individualsPaid<s.registeredSecondPhase.individualsPaid&&t.addIssue({code:"custom",message:p,path:["claims","secondPhase","individualsPaid"]}),s.secondPhase.paymentsFSZN<s.registeredSecondPhase.paymentsFSZN&&t.addIssue({code:"custom",message:p,path:["claims","secondPhase","paymentsFSZN"]}),s.thirdPhase.all<s.registeredThirdPhase.all&&t.addIssue({code:"custom",message:p,path:["claims","thirdPhase","all"]}),s.thirdPhase.taxes<s.registeredThirdPhase.taxes&&t.addIssue({code:"custom",message:p,path:["claims","thirdPhase","taxes"]}),s.thirdPhase.securedCreditor<s.registeredThirdPhase.securedCreditor&&t.addIssue({code:"custom",message:p,path:["claims","thirdPhase","securedCreditor"]}),s.fourthPhase.all<s.registeredFourthPhase.all&&t.addIssue({code:"custom",message:p,path:["claims","fourthPhase","all"]}),s.fourthPhase.securedCreditor<s.registeredFourthPhase.securedCreditor&&t.addIssue({code:"custom",message:p,path:["claims","fourthPhase","securedCreditor"]}),s.extra.salary>s.extraSatisfied.salary&&!s.employees.numberWorkContracts&&t.addIssue({code:"custom",message:'ÐÑли знаÑение в поле "ÐÑÑ
однÑе поÑобиÑ
61, оплаÑа ÑÑÑда" (Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований) болÑÑе, Ñем в поле "ÐÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда" (УдовлеÑвоÑено), Ñо необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам (конÑÑакÑам)"',path:["claims","employees","numberWorkContracts"]}),s.extra.individualsPaid>s.extraSatisfied.individualsPaid&&!s.employees.numberLawContracts&&t.addIssue({code:"custom",message:'ÐÑли знаÑение в поле "ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам" (Ð Ð°Ð·Ð¼ÐµÑ ÑÑебований) болÑÑе, Ñем в поле "ÐплаÑа ÑÑÑда ÑизиÑеÑким лиÑам" (УдовлеÑвоÑено), Ñо необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ гÑажданÑко-пÑавовÑм договоÑам"',path:["claims","employees","numberLawContracts"]}),s.extra.salary>0&&s.extra.salary===s.extraSatisfied.salary&&s.employees.numberWorkContracts!==0&&t.addIssue({code:"custom",message:"ÐÑли ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ вÑÑ
однÑм поÑобиÑм во внеоÑеÑеднÑÑ
ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑабоÑников должно бÑÑÑ Ñавно 0",path:["claims","employees","numberWorkContracts"]}),s.extra.individualsPaid>0&&s.extra.individualsPaid===s.extraSatisfied.individualsPaid&&s.employees.numberLawContracts!==0&&t.addIssue({code:"custom",message:"ÐÑли ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ оплаÑе ÑÑÑда ÑизлиÑам во внеоÑеÑеднÑÑ
ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑÐ¸Ð·Ð»Ð¸Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¾ бÑÑÑ Ñавно 0",path:["claims","employees","numberLawContracts"]}),s.secondPhase.salary>0&&!s.employees.numberWorkContractsSecondPhase&&t.addIssue({code:"custom",message:'ÐÑли Ñказана ÑÑмма по вÑÑ
однÑм поÑобиÑм, оплаÑе ÑÑÑда во 2-й оÑеÑеди, необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ ÑÑÑдовÑм договоÑам (конÑÑакÑам)"',path:["claims","employees","numberWorkContractsSecondPhase"]}),s.secondPhase.individualsPaid>0&&!s.employees.numberLawContractsSecondPhase&&t.addIssue({code:"custom",message:'ÐÑли Ñказана ÑÑмма по оплаÑе ÑÑÑда ÑизиÑеÑким лиÑам во 2-й оÑеÑеди, необÑ
одимо заполниÑÑ Ð¿Ð¾Ð»Ðµ "ÐолиÑеÑÑво ÑабоÑаÑÑиÑ
(ÑабоÑавÑиÑ
) Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ° Ð»Ð¸Ñ Ð¿Ð¾ гÑажданÑко-пÑавовÑм договоÑам"',path:["claims","employees","numberLawContractsSecondPhase"]});const R="Указано колиÑеÑÑво ÑабоÑников/ÑизлиÑ, пеÑед коÑоÑÑми имеÑÑÑÑ Ð¾Ð±ÑзаÑелÑÑÑва, но ÑÑмма ÑÑебований Ñавна нÑлÑ";if(s.employees.numberWorkContracts>0&&s.extra.salary===0&&t.addIssue({code:"custom",message:R,path:["claims","extra","salary"]}),s.employees.numberLawContracts>0&&s.extra.individualsPaid===0&&t.addIssue({code:"custom",message:R,path:["claims","extra","individualsPaid"]}),s.employees.numberWorkContractsSecondPhase>0&&s.secondPhase.salary===0&&t.addIssue({code:"custom",message:R,path:["claims","secondPhase","salary"]}),s.employees.numberLawContractsSecondPhase>0&&s.secondPhase.individualsPaid===0&&t.addIssue({code:"custom",message:R,path:["claims","secondPhase","individualsPaid"]}),s.secondPhase.salary>0&&s.secondPhase.salary===s.registeredSecondPhase.salary&&s.employees.numberWorkContractsSecondPhaseSatisfaction!==s.employees.numberWorkContractsSecondPhase&&t.addIssue({code:"custom",message:"ÐÑли во 2 оÑеÑеди вÑÑ
однÑе поÑобиÑ, оплаÑа ÑÑÑда ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑабоÑников, ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾ÑоÑÑÑ
ÑдовлеÑвоÑенÑ, должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾ и бÑÑÑ Ñавно обÑÐµÐ¼Ñ ÑиÑÐ»Ñ ÑабоÑников во вÑоÑой оÑеÑеди",path:["claims","employees","numberWorkContractsSecondPhaseSatisfaction"]}),s.secondPhase.individualsPaid>0&&s.secondPhase.individualsPaid===s.registeredSecondPhase.individualsPaid&&s.employees.numberLawContractsSecondPhaseSatisfaction!==s.employees.numberLawContractsSecondPhase&&t.addIssue({code:"custom",message:"ÐÑли во 2 оÑеÑеди вознагÑаждение/оплаÑа ÑÑÑда ÑизлиÑам ÑдовлеÑвоÑÐµÐ½Ñ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ, Ñо колиÑеÑÑво ÑизлиÑ, ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾ÑоÑÑÑ
ÑдовлеÑвоÑенÑ, должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾ и бÑÑÑ Ñавно обÑÐµÐ¼Ñ ÑиÑÐ»Ñ ÑÐ¸Ð·Ð»Ð¸Ñ Ð²Ð¾ вÑоÑой оÑеÑеди",path:["claims","employees","numberLawContractsSecondPhaseSatisfaction"]}),d){const Z=s.extra.salary>s.extraSatisfied.salary,W=s.secondPhase.salary>s.registeredSecondPhase.salary;(Z||W)&&s.numberEmployeesExtinguished<=0&&t.addIssue({code:"custom",message:"ÐÑли знаÑение по вÑÑ
однÑм поÑобиÑ
61м во внеоÑеÑеднÑÑ
и/или во 2 оÑеÑеди болÑÑе, Ñем ÑдовлеÑвоÑенное, поле 'ÐолиÑеÑÑво ÑабоÑников, ÑÑи ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ оплаÑе ÑÑÑда... пÑÐ¸Ð·Ð½Ð°Ð½Ñ Ð¿Ð¾Ð³Ð°ÑеннÑми' обÑзаÑелÑно должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾",path:["claims","numberEmployeesExtinguished"]});const M=s.extra.individualsPaid>s.extraSatisfied.individualsPaid,B=s.secondPhase.individualsPaid>s.registeredSecondPhase.individualsPaid;(M||B)&&s.numberEmployeesExtinguished<=0&&t.addIssue({code:"custom",message:"ÐÑли знаÑение по оплаÑе ÑÑÑда ÑизлиÑам во внеоÑеÑеднÑÑ
и/или во 2 оÑеÑеди болÑÑе, Ñем ÑдовлеÑвоÑенное, поле 'ÐолиÑеÑÑво ÑабоÑников, ÑÑи ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ оплаÑе ÑÑÑда... пÑÐ¸Ð·Ð½Ð°Ð½Ñ Ð¿Ð¾Ð³Ð°ÑеннÑми' обÑзаÑелÑно должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾",path:["claims","numberEmployeesExtinguished"]})}}},X=a=>{if(!a)return!1;const t=new Date(a),l=new Date;return l.setHours(0,0,0,0),t.setHours(0,0,0,0),t>l},Os=N({dateClose:S,dateCloseReasonId:A(a=>a===null?0:a,D()).nullable().optional(),debtorDateExclusion:S,insolvencyBankruptcyDateClose:S,insolvencyBankruptcyDateCloseReasonId:A(a=>a===null?0:a,D()).nullable().optional(),insolvencyApplicationDate:S,bankruptcyApplicationDate:S}).superRefine((a,t)=>{if(a.dateClose&&(X(a.dateClose)&&t.addIssue({code:"custom",message:"ÐаÑа пÑекÑаÑÐµÐ½Ð¸Ñ Ð¿ÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["dateClose"]}),(!a.dateCloseReasonId||a.dateCloseReasonId===0)&&t.addIssue({code:"custom",message:"УкажиÑе оÑнование пÑекÑаÑÐµÐ½Ð¸Ñ Ð´ÐµÐ»Ð°",path:["dateCloseReasonId"]})),a.debtorDateExclusion&&X(a.debtorDateExclusion)&&t.addIssue({code:"custom",message:"ÐаÑа иÑклÑÑÐµÐ½Ð¸Ñ Ð¸Ð· ÐÐРне Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["debtorDateExclusion"]}),a.insolvencyBankruptcyDateClose){if(X(a.insolvencyBankruptcyDateClose)&&t.addIssue({code:"custom",message:"ÐаÑа вÑнеÑÐµÐ½Ð¸Ñ Ð¾Ð¿ÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑекÑаÑении дела не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ ÑекÑÑей даÑÑ",path:["insolvencyBankruptcyDateClose"]}),(!a.insolvencyBankruptcyDateCloseReasonId||a.insolvencyBankruptcyDateCloseReasonId===0)&&t.addIssue({code:"custom",message:"ÐÑли заполнена даÑа, необÑ
одимо вÑбÑаÑÑ Ð¾Ñнование Ð´Ð»Ñ Ð¿ÑекÑаÑениÑ",path:["insolvencyBankruptcyDateCloseReasonId"]}),a.insolvencyApplicationDate){const l=new Date(a.insolvencyBankruptcyDateClose),s=new Date(a.insolvencyApplicationDate);l<s&&t.addIssue({code:"custom",message:" ÐаÑа вÑнеÑÐµÐ½Ð¸Ñ ÑÑдом опÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑекÑаÑении пÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð¾ неÑоÑÑоÑÑелÑноÑÑи или банкÑоÑÑÑве не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð´Ð¾ даÑÑ Ð²ÑнеÑÐµÐ½Ð¸Ñ ÑÑдом опÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑинÑÑии заÑвлениÑ, возбÑждении пÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð¾ неÑоÑÑоÑÑелÑноÑÑи ",path:["insolvencyBankruptcyDateClose"]})}if(a.bankruptcyApplicationDate){const l=new Date(a.insolvencyBankruptcyDateClose),s=new Date(a.bankruptcyApplicationDate);l<s&&t.addIssue({code:"custom",message:" ÐаÑа вÑнеÑÐµÐ½Ð¸Ñ ÑÑдом опÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑекÑаÑении пÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð¾ неÑоÑÑоÑÑелÑноÑÑи или банкÑоÑÑÑве не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð´Ð¾ даÑÑ Ð²ÑнеÑÐµÐ½Ð¸Ñ ÑÑдом опÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¾ пÑинÑÑии заÑвлениÑ, возбÑждении пÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð¾ банкÑоÑÑÑве ",path:["insolvencyBankruptcyDateClose"]})}}}),_s=N({propertyValue:o,mortgagedProperty:o,accountsReceivable:o,soldProperty:o,enterpriseAsPropertyComplex:o,transferredProperty:o,transferredMortgagedProperty:o,decommissionProperty:o}).superRefine((a,t)=>{const l=a.mortgagedProperty+a.accountsReceivable;a.propertyValue<l&&t.addIssue({code:"custom",message:`СÑоимоÑÑÑ Ð¸Ð¼ÑÑеÑÑва вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей (${l})`,path:["propertyValue"]}),a.soldProperty<a.enterpriseAsPropertyComplex&&t.addIssue({code:"custom",message:"Реализовано имÑÑеÑÑва вÑего менÑÑе ÑÑÐ¼Ð¼Ñ ÑоÑÑавлÑÑÑиÑ
полей",path:["soldProperty"]}),a.transferredProperty<a.transferredMortgagedProperty&&t.addIssue({code:"custom",message:"ÐеÑедано имÑÑеÑÑва вÑего менÑÑе, Ñем пеÑедано залогового имÑÑеÑÑва в ÑÑÐµÑ ÑдовлеÑвоÑÐµÐ½Ð¸Ñ ÑÑебований",path:["transferredProperty"]})}),qs=(a,t)=>{if(!a||!t)return!1;const l=new Date(a),s=new Date(t);return isNaN(l.getTime())||isNaN(s.getTime())?!1:(l.setHours(0,0,0,0),s.setHours(0,0,0,0),l.getTime()===s.getTime())},Vs=N({reportsCaseType:D(),reportId:D(),parentReportId:Se,debtorId:D(),managerId:D(),reportCreated:qe(),debtorInfoSection:Ls,caseInfoSection:Ts,caseDatesSection:Ms,rehabilitationSection:$s,liquidationSection:As,caseCloseSection:Os,propertySection:_s,claims:Ws,compensation:N({main:o,result:o}),comment:A(a=>a===null?"":a,w()).pipe(w())}).superRefine((a,t)=>{const l=a.debtorInfoSection.dateReg,s=a.caseDatesSection.dateStart,d=a.caseCloseSection.dateClose;l&&s&&new Date(l)>new Date(s)&&t.addIssue({code:"custom",message:"ÐаÑа наÑала пÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ ÑанÑÑе даÑÑ Ð³Ð¾ÑÑдаÑÑÑвенной ÑегиÑÑÑаÑии",path:["caseDatesSection","dateStart"]}),s&&d&&new Date(s)>new Date(d)&&t.addIssue({code:"custom",message:"ÐаÑа пÑекÑаÑÐµÐ½Ð¸Ñ Ð¿ÑоизводÑÑва по Ð´ÐµÐ»Ñ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð´Ð¾ даÑÑ Ð½Ð°Ñала пÑоизводÑÑва по делÑ",path:["caseCloseSection","dateClose"]});const n=a.rehabilitationSection.dateFinish,c=a.liquidationSection.dateStart;
61n&&!c&&t.addIssue({code:"custom",message:"ÐÑли Ñказана даÑа завеÑÑÐµÐ½Ð¸Ñ ÑанаÑии и оÑкÑÑÑÐ¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñионного пÑоизводÑÑва, должна бÑÑÑ Ñказана даÑа Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñии",path:["liquidationSection","dateStart"]}),n&&c&&!qs(n,c)&&t.addIssue({code:"custom",message:"ÐаÑа завеÑÑÐµÐ½Ð¸Ñ ÑанаÑии и оÑкÑÑÑÐ¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñионного пÑоизводÑÑва должна ÑовпадаÑÑ Ñ Ð´Ð°Ñой Ð²Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð»Ð¸ÐºÐ²Ð¸Ð´Ð°Ñии",path:["rehabilitationSection","dateFinish"]}),Bs(a,t)}),Hs=()=>{const[a,t]=g.useState(!0);g.useEffect(()=>{const s=()=>{window.scrollY<5e3?t(!0):t(!1)};return window.addEventListener("scroll",s),s(),()=>window.removeEventListener("scroll",s)},[]);const l=()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"})};return e.jsx("div",{className:"scroll-to-bottom",style:{display:a?"block":"none"},onClick:l,children:e.jsx("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e.jsx("path",{fill:"currentColor",d:"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM347.6 227.1l-72.4 75.5V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.6-9.5-25.1-9.3-34.4.4z"})})})},ye=(a,t)=>a?.title||Object.values(a?.errors??{}).flat()[0]||t;function ma(){const{reportId:a}=Ee(),[t,l]=g.useState(!1),s=()=>{l(!t)},d=U(),n=L(Ve),c=L(He),u=L(le),h=Re(),b=L(ve),x=!!u?.reportCreated,v=!b||x;g.useEffect(()=>{d(ze())},[d]);const j=Ke({mode:"all",criteriaMode:"all",shouldFocusError:!1,resolver:es(Vs)});g.useEffect(()=>{if(u){const I=z(u,!1);j.reset(I)}},[u,j]);const[y,P]=g.useState(!1),[k,E]=g.useState(null),[f,m]=g.useState(null),p=g.useCallback(()=>m(null),[]),R=async I=>{const $=z(I,!0);$.reportCreated=!0;try{await d(de($)).unwrap(),m({state:"success",text:"ÐÑÑÐµÑ ÑÑпеÑно оÑпÑавлен",id:Date.now()}),d(ie({reportId:a}))}catch(H){m({state:"error",text:ye(H,"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð¾ÑÑеÑ"),id:Date.now()})}},Z=async I=>{const $=z(I,!0);$.reportCreated=!1;try{await d(de($)).unwrap(),m({state:"success",text:"ЧеÑновик ÑоÑ
Ñанен",id:Date.now()})}catch(H){m({state:"error",text:ye(H,"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ ÑеÑновик"),id:Date.now()})}};g.useEffect(()=>{d(ie({reportId:a}))},[]);const W=()=>{const I=j.getValues();Z(I)},[M,B]=g.useState(null),_=I=>{E(null),B(I),P(!0)},V=I=>{const $=Pe(I),H=$?.split(".").reduce((q,ke)=>q?.[ke],I)?.message;if(E(H||"ÐÑовеÑÑÑе заполнение обÑзаÑелÑнÑÑ
полей"),$){const q=document.querySelector(`[name="${$}"]`);q&&(q.scrollIntoView({behavior:"smooth",block:"center"}),q.disabled||q.focus({preventScroll:!0}))}},Ce=()=>{M&&(R(M),P(!1))};return e.jsxs(Ie,{type:"section",children:[e.jsxs("div",{className:"page-wrapper",children:[e.jsx(De,{type:"div",className:"page-panel-filters max-2xl:hidden",toggle:t,handleShowFilters:s,children:e.jsx(K,{value:"Ðазад к оÑÑеÑам",onClick:()=>h("/hub/reports"),className:"border-0! mt-2"})}),n?e.jsx(Fe,{...n}):c?e.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-white/80 z-50",children:e.jsx(Ye,{text:"ÐагÑÑзка..."})}):e.jsxs("div",{className:"space-y-8 p-6",children:[e.jsxs("h2",{className:"text-2xl font-bold text-slate-700 mb-6!",children:["ÐÑÑÐµÑ Ð¿Ð¾ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÑ ",u?.debtorInfoSection?.name]}),v&&e.jsxs("div",{className:"rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800 flex items-center gap-2",children:[e.jsx(je,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{children:x?"ÐÑÑÐµÑ Ð¾ÑпÑавлен и доÑÑÑпен ÑолÑко Ð´Ð»Ñ Ð¿ÑоÑмоÑÑа. РедакÑиÑование недоÑÑÑпно.":"ÐÑÑÐµÑ Ð´Ð¾ÑÑÑпен ÑолÑко Ð´Ð»Ñ Ð¿ÑоÑмоÑÑа. РедакÑиÑование недоÑÑÑпно: пеÑиод закÑÑÑ."})]}),e.jsx(Ge,{...j,children:e.jsxs("form",{className:"space-y-8",onSubmit:j.handleSubmit(_,V),children:[e.jsxs("fieldset",{disabled:v,className:`[&_input
61:disabled]:text-[var(--input-color)]! space-y-8 border-0 p-0 m-0 min-w-0 ${v?"opacity-100 [&_*]:pointer-events-none":""}`,children:[e.jsx(js,{}),e.jsxs("div",{className:"grid xl:grid-cols-2 gap-8",children:[e.jsx(Ns,{}),e.jsx(Ss,{})]}),e.jsxs("div",{className:"grid xl:grid-cols-2 gap-8",children:[e.jsx(ws,{}),e.jsx(Cs,{})]}),e.jsx(ks,{}),e.jsx(Ds,{}),e.jsx(Es,{}),e.jsx("div",{className:"grid grid-cols-1 gap-8 text-slate-800",children:e.jsxs("div",{className:"space-y-8",children:[e.jsx(Is,{}),e.jsx(Rs,{})]})})]}),!v&&e.jsxs(e.Fragment,{children:[k&&e.jsx("div",{className:"rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",role:"alert",children:k}),e.jsxs("div",{className:"flex gap-4 max-w-md ml-auto",children:[e.jsx(K,{type:"button",value:"СоÑ
ÑаниÑÑ ÑеÑновик",onClick:W,className:"bg-slate-100 text-slate-600 border-0 shadow-sm"}),e.jsx(K,{type:"submit",value:"ÐÑпÑавиÑÑ Ð¾ÑÑеÑ",className:"bg-[#11b156]! text-white! hover:bg-green-600! px-10! shadow-sm"})]})]})]})}),y&&e.jsx(Je,{title:"ÐÑ Ð´ÐµÐ¹ÑÑвиÑелÑно Ñ
оÑиÑе оÑпÑавиÑÑ Ð¾ÑÑеÑ?",hidePopup:()=>P(!1),confirm:Ce,confirmButtonText:"ÐодÑвеÑдиÑÑ",children:"ÐÑи подÑвеÑждении далÑнейÑее ÑедакÑиÑование оÑÑеÑа бÑÐ´ÐµÑ Ð½ÐµÐ²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ñм"})]})]}),f&&e.jsx(ss,{state:f.state,notification:f.text,onClose:p},f.id),e.jsx(Hs,{})]})}export{ma as default};
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.