1import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{aa as C,d as F,e as p,mX as P,mY as _,mZ as O,m_ as R,bb as E,m$ as v,n0 as g,n1 as H,n2 as U,n3 as V,n4 as X,n5 as Y,n6 as q,n7 as Q,L as G,g6 as K,n8 as Z}from"./loginCallback-DUlVA6A0.js";import{i as J,f as ee,r as f,u as se,N as S}from"./createLucideIcon-CiWnlb16.js";import{A as te,d as le,c as re,E as ae}from"./addLoader-p8WLB-bt.js";import{B as ie}from"./index-CQOuJFSK.js";import{c as $}from"./convertMessageType-C9ssz3PF.js";import{g as oe}from"./generateMessageLink-B1dUCrM3.js";import{P as ne,D as de,a as ce,S as xe,V as r,T as l,I,F as me,A as he,b as pe}from"./ArialBold-xSnhihYi.js";import{t as B,s as be,l as fe}from"./ru-RU-CFNoRXk4.js";import{M as ue}from"./modal-B_oAvykg.js";import{b as je,C as ge}from"./index.esm-C3iyps8B.js";import{T as k}from"./TextInput-D56ByitK.js";import{I as w}from"./InputError-CCOh0X_2.js";import{F as ye}from"./form-modal-BlVaE-sX.js";import{X as D}from"./x-DtDwYLZQ.js";import{C as Ne}from"./circle-check-big-CYThFD69.js";import{C as we,a as ve,T as Ce,E as Se}from"./trash-2-Fs8SSpS2.js";import{C as W}from"./circle-check-DaFJ8kFe.js";import{C as Ie}from"./circle-alert-BcQG5ICW.js";import{F as z}from"./file-text-D6tQ8mrq.js";import{W as T}from"./wallet-DssIGNoz.js";import{L as Be}from"./loader-circle-C5dSd6jx.js";import"./config.release-CKeoGYk7.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 ke=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],De=J("credit-card",ke);function M(t,i,o,a){let n=Math.abs(t);return n%=100,n>=5&&n<=20?a:(n%=10,n===1?i:n>=2&&n<=4?o:a)}function ze(t){const i=Math.floor(t),o=Math.round((t-i)*100),a=B(i),n=B(o),c=M(i,"ÑÑблÑ","ÑÑблÑ","ÑÑблей"),x=M(o,"копейка","копейки","копеек");return`${a.charAt(0).toUpperCase()+a.slice(1)} ${c} ${n} ${x}`}const Te=new Intl.NumberFormat("ru-RU",{minimumFractionDigits:2});me.register({family:"ArialCustom",fonts:[{src:he,fontWeight:"normal"},{src:pe,fontWeight:"bold"}]});const s=xe.create({page:{padding:30,fontFamily:"ArialCustom",fontSize:9,lineHeight:1.2,color:"#000",display:"flex",flexDirection:"column"},header:{marginBottom:15},sellerName:{fontSize:10,fontWeight:"bold",marginBottom:2},sellerDetailItem:{fontSize:8},title:{fontSize:12,textAlign:"center",marginVertical:15,fontWeight:"bold"},customerSection:{marginBottom:15,fontSize:8},table:{borderStyle:"solid",borderWidth:1,borderColor:"#000"},tableRow:{flexDirection:"row",borderBottomColor:"#000",borderBottomWidth:1,minHeight:30},tableHeader:{fontWeight:"bold",textAlign:"center",fontSize:8},lastRow:{borderBottomWidth:0},cell:{padding:4,borderRightColor:"#000",borderRightWidth:1,justifyContent:"center",alignItems:"center"},cellNoBorder:{borderRightWidth:0},colName:{width:"45%"},colQty:{width:"8%"},colTariff:{width:"12%"},colSum:{width:"12%"},colVat:{width:"11%"},colTotal:{width:"12%"},totalSection:{marginTop:10,alignItems:"flex-end"},spacer:{flexGrow:1},footerContainer:{marginTop:20,width:"100%"},signatureRow:{flexDirection:"row",minHeight:100,alignItems:"center"},sigCol:{flex:1},stampContainer:{flex:1,position:"relative"},stampImage:{position:"absolute",top:-65,left:-15,width:115,height:115},infoCol:{flex:1.5,fontSize:8},bottomLine:{borderTopWidth:1,borderTopColor:"#000",paddingTop:10,flexDirection:"row",justifyContent:"space-between"},bottomText:{width:"85%",fontSize:7.5},logoContainer:{width:"10%",alignItems:"flex-end"},bottomLogo:{width:56}}),Me=({data:t,manager:i})=>e.jsx(de,{children:e.jsxs(ce,{size:"A4",style:s.page,children:[e.jsxs(r,{children:[e.jsxs(r,{style:s.header,children:[e.jsx(l,{style:s.sellerName,children:"РеÑпÑбликанÑкое ÑниÑаÑное пÑедпÑиÑÑие"}),e.jsx(l,{style:s.sellerName,children:"«ÐнÑоÑмаÑионнÑй ÑенÑÑ ÐиниÑÑеÑÑÑва Ñкономики РеÑпÑблики ÐелаÑÑÑÑ»"}),e.jsx(l,{style:[s.sellerDetailItem,{marginTop:10}],children:"ÐдÑеÑ: г. ÐинÑк, Ñл. ÐеÑÑона, 1Ð, ком. 513"}),e.jsx(l,{style:s.sellerDetailItem,children:"Тел. 200-95-63, 200-73-33, 200-64-11"}),e.jsx(l,{style:s.sellerDetailItem,children:"УÐÐ 190318109 ÐÐÐÐ 37533622"}),e.jsx(l,{style:s.sellerDetailItem,children:"P/c BY22 AKBB 3012 0000 1068 0000 0000"}),e.jsx(l,{style:s.sellerDetailItem,children:"ÐÐР«ÐСРÐÐÐÐРУСÐÐÐл"}),e.jsx(l,{style:s.sellerDetailItem,children:"ÐÐÐ ÐÐÐÐBY2X"})]}),e.jsxs(l,{style:s.title,children:["СЧÐТ â ",t?.idBill," Ð¾Ñ ",C(t?.datetimeCreate,"short")," г."]}),e.jsxs(r,{style:s.customerSection,children:[e.jsxs(l,{children:["ÐлаÑелÑÑик: ",t?.manager.name]}),e.jsxs(l,{children:["УÐÐ ",i?.organization?.unp]}),e.jsxs(r,{style:{display:"flex",flexDirection:"row",gap:".25rem"},children:[e.jsx(l,{children:"Тел."}),i?.contacts.map(({type:o,value:a},n)=>o===1?e.jsx(l,{children:a},n+a):null)]})]}),e.jsxs(r,{style:s.table,children:[e.jsxs(r,{style:s.tableRow,children:[e.jsx(r,{style:[s.cell,s.colName],children:e.jsx(l,{style:s.tableHeader,children:"Ðаименование ÑÑлÑги"})}),e.jsx(r,{style:[s.cell,s.colQty],children:e.jsx(l,{style:s.tableHeader,children:"Ðол-во"})}),e.jsxs(r,{style:[s.cell,s.colTariff],children:[e.jsx(l,{style:s.tableHeader,children:"ТаÑиÑ"}),e.jsx(l,{style:s.tableHeader,children:"на ÑÑлÑгÑ"}),e.jsx(l,{style:s.tableHeader,children:"в базовÑÑ "}),e.jsx(l,{style:s.tableHeader,children:"велиÑÐ¸Ð½Ð°Ñ "})]}),e.jsx(r,{style:[s.cell,s.colSum],children:e.jsx(l,{style:s.tableHeader,children:"СÑоимоÑÑÑ ÑÑлÑги без ÐÐС, ÑÑб"})}),e.jsx(r,{style:[s.cell,s.colVat],children:e.jsx(l,{style:s.tableHeader,children:"СÑавка ÐÐС*"})}),e.jsx(r,{style:[s.cell,s.colTotal,s.cellNoBorder],children:e.jsx(l,{style:s.tableHeader,children:"СÑоимоÑÑÑ Ñ ÐÐС, ÑÑб"})})]}),t?.messages.map((o,a)=>e.jsxs(r,{style:[s.tableRow,a===t.messages.length-1&&s.lastRow],wrap:!1,children:[e.jsx(r,{style:[s.cell,s.colName,{alignItems:"flex-start"}],children:e.jsx(l,{children:$(o.type)})}),e.jsx(r,{style:[s.cell,s.colQty],children:e.jsx(l,{children:"1"})}),e.jsx(r,{style:[s.cell,s.colTariff],children:e.jsx(l,{children:(o.price/45).toFixed(2)})}),e.jsx(r,{style:[s.cell,s.colSum],children:e.jsx(l,{children:o.price.toFixed(2)})}),e.jsx(r,{style:[s.cell,s.colVat],children:e.jsx(l,{children:"Ðез ÐÐС"})}),e.jsx(r,{style:[s.cell,s.colTotal,s.cellNoBorder],children:e.jsx(l,{children:o.price.toFixed(2)})})]},a))]}),e.jsxs(r,{style:s.totalSection,children:[e.jsxs(l,{style:{fontWeight:"bold",fontSize:10},children:["ÐТÐÐРк оплаÑе: ",Te.format(t?.sum)," ÑÑб."]}),e.jsxs(l,{style:{fontSize:8.5},children:["(",ze(t?.sum),")"]})]}),e.jsxs(r,{children:[e.jsx(l,{style:{fontSize:8,marginTop:20},children:"*в ÑооÑвеÑÑÑвии Ñ Ð°Ð±Ð·Ð°Ñем 3 пÑнкÑа 27 ÐÐ¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð¾ ÐаÑке вÑÑÐ¾ÐºÐ¸Ñ ÑÐµÑ Ð½Ð¾Ð»Ð¾Ð³Ð¸Ð¹, ÑÑвеÑжденного ÐекÑеÑом ÐÑезиденÑа РеÑпÑблики ÐелаÑÑÑÑ Ð¾Ñ 22.09.2005 â12, РУР«ÐнÑоÑмаÑионнÑй ÑенÑÑ ÐиниÑÑеÑÑÑва Ñкономики РеÑпÑблики ÐелаÑÑÑÑ» оÑвобождÑн Ð¾Ñ ÑплаÑÑ ÐÐС"}),e.jsxs(l,{style:{fontSize:8,marginTop:10},children:["**на даÑÑ ",C(t?.datetimeCreate)," ÑÐ°Ð·Ð¼ÐµÑ Ð±Ð°Ð·Ð¾Ð²Ð¾Ð¹ велиÑÐ¸Ð½Ñ ÑоÑÑавлÑÐµÑ 45,00 ÑÑб."]})]})]}),e.jsx(r,{style:s.spacer}),e.jsxs(r,{style:s.footerContainer,wrap:!1,children:[e.jsxs(r,{style:s.signatureRow,children:[e.jsx(r,{style:s.sigCol,children:e.jsx(l,{style:{fontWeight:"bold",fontSize:12},children:"ÐиÑекÑоÑ"})}),e.jsx(r,{style:s.stampContainer,children:e.jsx(I,{src:be,style:s.stampImage})}),e.jsxs(r,{style:s.infoCol,children:[e.jsx(l,{style:{fontWeight:"bold",fontSize:11,marginBottom:4},children:"Ð.Ð. ÐаÑемиÑÑкий"}),e.jsx(l,{children:"СÑÐµÑ ÑÑиÑаÑÑ Ð´ÐµÐ¹ÑÑвиÑелÑнÑм"}),e.jsx(l,{children:"Ñ ÑакÑимилÑной копией"}),e.jsx(l,{children:"пеÑаÑи и подпиÑи"})]}),e.jsx(r,{style:s.sigCol,children:e.jsx(l,{style:{fontWeight:"bold",fontSize:12,textAlign:"right"},children:"ÐлаÑелÑÑик"})}),e.jsx(r,{style:s.sigCol})]}),e.jsxs(r,{style:s.bottomLine,children:[e.jsxs(r,{style:s.bottomText,children:[e.jsx(l,{children:"СÑÐµÑ Ð´ÐµÐ¹ÑÑвиÑелен в ÑеÑение 5-Ñи банковÑÐºÐ¸Ñ Ð´Ð½ÐµÐ¹."}),e.jsx(l,{style:{marginTop:2},children:"ÐÑи оплаÑе по оконÑании ÑÑока дейÑÑÐ²Ð¸Ñ ÑÑеÑа полÑÑаÑÐµÐ»Ñ Ð¿Ð»Ð°Ñежа Ð¼Ð¾Ð¶ÐµÑ Ð¿Ð¾ÑÑебоваÑÑ Ð¿ÐµÑеÑмоÑÑа ÑазмеÑа оплаÑÑ Ð² ÑлÑÑае Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÑаÑиÑов на Ð¼Ð¾Ð¼ÐµÐ½Ñ Ð¾Ð¿Ð»Ð°ÑÑ."})]}),e.jsx(r,{style:s.logoContainer,children:e.jsx(I,{src:fe,style:s.bottomLogo})})]})]})]})}),Le=({data:t,manager:i,children:o,fileName:a="invoice.pdf"})=>e.jsx(ne,{document:e.jsx(Me,{data:t,manager:i}),fileName:a,style:{textDecoration:"none"},children:({loading:n})=>o({loading:n})}),Fe=({idBill:t,sum:i})=>{const{register:o,handleSubmit:a,control:n,formState:{errors:c}}=je({mode:"onTouched",defaultValues:{payDate:new Date().toISOString(),idBill:t,sum:i}}),x=F(),y=h=>{x(H({data:h}
6))},m=p(P),b=p(_),u=p(O),N=p(R);return e.jsxs("div",{className:"border-gray-200",children:[u?e.jsx(ye,{title:"ÐаÑамеÑÑÑ Ð¸Ð´ÐµÐ½ÑиÑикаÑии ÑÑеÑа",hidePopup:()=>x(v(!1)),contentOverflow:!1,children:e.jsxs("form",{onSubmit:a(y),className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-x-5 gap-y-2.5 border-t mt-2.5 pt-2.5",children:[e.jsxs("div",{className:"flex flex-col relative",children:[e.jsx(k,{label:"УÐРплаÑелÑÑика",type:"text",placeholder:"ÐведиÑе УÐÐ (9 ÑиÑÑ)",register:o("unp",{required:"ÐведиÑе УÐÐ",pattern:{value:/^\d{9}$/,message:"УÐРдолжен ÑоÑÑоÑÑÑ Ð¸Ð· 9 ÑиÑÑ"}}),className:`w-full p-2 border rounded-md outline-none focus:ring-2 ${c.unp?"border-red-500 focus:ring-red-200":"focus:ring-blue-500"}`}),c.unp?.message?e.jsx(w,{error:c.unp?.message,className:"top-16"}):null]}),e.jsxs("div",{className:"flex flex-col relative",children:[e.jsx(k,{label:"â плаÑежного поÑÑÑениÑ",type:"number",placeholder:"ÐведиÑе Ð½Ð¾Ð¼ÐµÑ Ð¿Ð»Ð°Ñежного поÑÑÑениÑ",register:o("paymentOrder",{required:"УкажиÑе Ð½Ð¾Ð¼ÐµÑ Ð¿Ð»Ð°Ñежного поÑÑÑениÑ"}),className:`w-full p-2 border rounded-md outline-none focus:ring-2 ${c.paymentOrder?"border-red-500 focus:ring-red-200":"focus:ring-blue-500"}`}),c.paymentOrder?.message?e.jsx(w,{error:c.paymentOrder?.message,className:"top-16"}):null]}),e.jsxs("div",{className:"flex flex-col relative",children:[e.jsx(ge,{control:n,name:"payDate",rules:{required:"ÐÑбеÑиÑе даÑÑ"},render:({field:h})=>e.jsx(E,{label:"ÐаÑа оплаÑÑ",selected:h.value?new Date(h.value):null,onChange:j=>h.onChange(j?.toISOString()),dateFormat:"dd.MM.yyyy",maxDate:new Date,className:`w-full p-2 border rounded-md outline-none focus:ring-2 ${c.payDate?"border-red-500 focus:ring-red-200":"focus:ring-blue-500"}`})}),c.payDate?.message?e.jsx(w,{error:c.payDate?.message,className:"top-16"}):null]})]}),e.jsxs("div",{className:"flex justify-end items-center space-x-4 pt-6 border-t mt-4",children:[N?e.jsx(te,{}):null,e.jsx("button",{type:"submit",className:"bg-blue-600 cursor-pointer hover:bg-blue-700 text-white max-[442px]:w-full px-8 py-2.5 rounded-md transition-all duration-200 shadow-md active:scale-95 font-medium",children:"ÐденÑиÑиÑиÑоваÑÑ"})]})]})}):null,b&&e.jsx("div",{className:"fixed inset-0 z-[99999999999999999999999] flex items-center justify-center bg-black/40 backdrop-blur-[4px] animate-[fadeIn_0.2s_ease-out]",onClick:()=>x(g(!1)),children:e.jsxs("div",{className:"bg-white rounded-[24px] shadow-[0_20px_40px_rgba(0,0,0,0.15)] overflow-hidden animate-[slideUp_0.3s_cubic-bezier(0.34,1.56,0.64,1)]",onClick:h=>h.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-5 border-bottom border-[#f0f0f0]",children:[e.jsx("h3",{className:"text-[1.15rem] font-bold text-[#1a202c] m-0!",children:"ÐденÑиÑикаÑÐ¸Ñ ÑÑеÑа"}),e.jsx("button",{className:"p-1.25 text-[#a0aec0] hover:text-[#4a5568] transition-colors bg-transparent border-none cursor-pointer flex items-center",onClick:()=>x(g(!1)),children:e.jsx(D,{size:20})})]}),e.jsx("div",{className:"px-6",children:e.jsxs("div",{className:"flex flex-col items-center justify-center py-10 pb-5 text-center",children:[e.jsx("div",{className:`w-[84px] h-[84px] rounded-full flex items-center justify-center mb-6 animate-[scaleIn_0.5s_ease] ${m?"bg-green-50":"bg-orange-50"}`,children:m?e.jsx(Ne,{size:60,className:"text-green-500",strokeWidth:1.5}):e.jsx(D,{size:60,className:"text-orange-500",strokeWidth:1.5})}),e.jsx("h2",{className:"text-[1.4rem] font-[800] text-[#1a202c] mb-3! leading-[1.2]",children:m?"СÑÐµÑ ÑÑпеÑно иденÑиÑиÑиÑован!":"СÑÐµÑ Ð½Ðµ иденÑиÑиÑиÑован"}),e.jsx("p",{className:"text-[0.95rem] text-[#718096] leading-[1.6] m-0!",children:m?e.jsxs(e.Fragment,{children:["ÐнÑоÑмаÑÐ¸Ñ Ð¾ плаÑеже **â",n._formValues.idBill,"** ÑÑпеÑно подÑвеÑждена. ",e.jsx("br",{}),"ÐÑ Ð¼Ð¾Ð¶ÐµÑе пÑодолжиÑÑ ÑабоÑÑ Ñо ÑÑеÑами"]}):e.jsxs(e.Fragment,{children:["ÐнÑоÑмаÑÐ¸Ñ Ð¾ данном плаÑеже пока еÑÑ Ð½Ðµ поÑÑÑпила из банка. ",e.jsx("br",{}),e.jsx("div",{className:"max-w-[440px]",children:"ÐожалÑйÑÑа, пÑовеÑÑÑе пÑавилÑноÑÑÑ Ð£ÐÐ, ÑÑÐ¼Ð¼Ñ Ð¸ номеÑа ÑÑеÑа, либо попÑобÑйÑе подÑвеÑдиÑÑ ÐµÐ³Ð¾ позже"})]})})]})}),e.jsx("div",{className:"flex flex-col gap-2.5 px-6 pt-2.5 pb-[30px]",children:e.jsx("button",{className:`w-full p-3.5 font-semibold text-base rounded-xl cursor-pointer transition-all ${m?"bg-transparent text-[#718096] hover:bg-[#f7fafc]":"bg-blue-600 text-white hover:bg-blue-700 shadow-md active:scale-95"}`,onClick:()=>{x(m?g(!1):g(!1)),x(v(!0))},children:m?"ÐакÑÑÑÑ":"ÐопÑобоваÑÑ Ñнова"})})]})})]})},L={1:{label:"Ðе оплаÑен",color:"bg-orange-100 text-orange-400",icon:ve,border:"border-orange-300"},2:{label:"ÐÑовеÑка оплаÑÑ",color:"bg-blue-100 text-blue-400",icon:Ie,border:"border-blue-300"},3:{label:"ÐодÑвеÑжден",color:"bg-emerald-50 text-green-400",icon:W,border:"border-emerald-300"},4:{label:"ÐÑклонен",color:"bg-red-100 text-red-400",icon:we,border:"border-red-300"}};function is(){const t=p(U),i=L[t?.status]||L[1],o=i.icon;
6t?.status;const a=F(),{billId:n}=ee();f.useEffect(()=>{a(V(Number(n)))},[]),f.useEffect(()=>{t&&a(X(t?.manager.id))},[t]);const c=p(Y),[x,y]=f.useState(!1),m=()=>{y(!x)},b=se(),u=p(q),N=p(Q),[h,j]=f.useState(!1),[$e,We]=f.useState(!1),A=async()=>{try{await a(Z(Number(t?.idBill))).unwrap(),b("/hub/user-bills")}catch(d){console.error("ÐÑибка пÑи Ñдалении:",d)}};return e.jsxs(le,{type:"section",children:[e.jsxs("div",{className:"page-wrapper",children:[e.jsx(re,{type:"div",className:"page-panel-filters no-print",toggle:x,handleShowFilters:m,children:e.jsx(ie,{value:"Ðазад к ÑÑеÑам",onClick:()=>b("/hub/user-bills"),className:"border-0! mt-2"})}),u?e.jsx(ae,{...u}):e.jsx(e.Fragment,{children:N?e.jsx(G,{text:"ÐагÑÑзка..."}):e.jsx("div",{className:"min-h-screen p-8 text-slate-800 font-sans print-only",children:e.jsxs("div",{className:"max-w-auto",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 mb-8",children:[e.jsx("div",{children:e.jsxs("h1",{className:"text-3xl font-extrabold text-slate-900 tracking-tight",children:["СÑÐµÑ ",e.jsx("span",{className:"text-slate-400",children:"#"}),t?.idBill]})}),e.jsx("div",{className:"flex gap-2 w-full sm:w-auto",children:t?.status===3?null:e.jsxs("button",{className:"flex-1 sm:flex-none flex items-center cursor-pointer justify-center gap-2 px-5 py-2.5 bg-white border border-red-100 text-red-500 rounded-xl hover:bg-red-50 transition-all active:scale-95 font-medium no-print",onClick:()=>j(!0),children:[e.jsx(Ce,{size:18}),"УдалиÑÑ"]})})]}),e.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"xl:col-span-2 space-y-6",children:[e.jsxs("div",{className:`grid grid-cols-1 lg:grid-cols-[240px_1fr] max-[1024px]:grid-cols-1 items-stretch gap-0 rounded-2xl border-2 ${i.border} ${i.color.split(" ")[0]} bg-opacity-40 backdrop-blur-sm overflow-hidden`,children:[e.jsxs("div",{className:"flex items-center gap-4 p-6 shrink-0",children:[e.jsx("div",{className:"p-3 rounded-full bg-white shadow-sm shrink-0",children:e.jsx(o,{size:24,className:`${i.color.split(" ")[1]}`})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] uppercase font-bold tracking-widest opacity-60 mb-0.5",children:"СÑаÑÑÑ ÑÑеÑа"}),e.jsx("p",{className:"text-lg font-black leading-tight",children:i.label})]})]}),t?.status!==3&&e.jsxs("div",{className:"relative flex min-[1601px]:flex-row max-[1600px]:flex-col justify-between gap-6 p-6 bg-white/10",children:[e.jsx("div",{className:"hidden md:block absolute left-0 top-1/2 -translate-y-1/2 w-px h-12 bg-slate-400/30"}),e.jsx("div",{className:"block min-[1025px]:hidden absolute top-0 left-6 right-6 h-px bg-slate-400/20"}),e.jsxs("div",{className:"max-w-md min-[1601px]:ml-4",children:[" ",e.jsx("p",{className:"text-sm font-bold text-slate-800 mb-1!",children:"Уже оплаÑили ÑÑеÑ?"}),e.jsx("p",{className:"text-xs text-slate-600 leading-relaxed",children:"ÐÑли Ð²Ñ ÑовеÑÑили плаÑеж, но ÑÑаÑÑÑ Ð½Ðµ изменилÑÑ â нажмиÑе ÐºÐ½Ð¾Ð¿ÐºÑ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð´Ð»Ñ ÐµÐ³Ð¾ иденÑиÑикаÑии"})]}),e.jsxs("button",{onClick:()=>a(v(!0)),className:"flex cursor-pointer items-center justify-center gap-2 px-6 py-3 bg-white border border-slate-200 text-slate-700 rounded-xl hover:bg-emerald-50 hover:border-emerald-200 hover:text-emerald-600 transition-all shadow-sm active:scale-95 font-bold text-sm whitespace-nowrap",children:[e.jsx(W,{size:18}),"ÐодÑвеÑдиÑÑ"]})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl shadow-sm border border-slate-100 overflow-hidden",children:[e.jsx("div",{className:"p-6 border-b border-slate-50 flex justify-between items-center",children:e.jsxs("h3",{className:"font-bold text-slate-800 flex items-center gap-2",children:[e.jsx(z,{size:20,className:"text-blue-500"}),"ÐбÑÑÐ²Ð»ÐµÐ½Ð¸Ñ (",t?.countMessages,")"]})}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50/50",children:[e.jsx("th",{className:"px-6 py-4 text-[11px] uppercase tracking-widest font-bold text-slate-400",children:"â / Тип"}),e.jsx("th",{className:"px-6 py-4 text-[11px] uppercase tracking-widest font-bold text-slate-400",children:"Ðолжник"}),e.jsx("th",{className:"px-6 py-4 text-[11px] uppercase tracking-widest font-bold text-slate-400 text-right",children:"ÐаÑа"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-50",children:t?.messages.map(d=>e.jsxs("tr",{className:"hover:bg-slate-50/80 transition-colors group",children:[e.jsx("td",{className:"px-6 py-5",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-blue-600 font-bold group-hover:underline cursor-pointer flex items-center gap-1",children:e.jsxs(S,{to:`${oe(d.type,d.id)}`,className:"flex justify-center items-center gap-1",children:[d.id," ",e.jsx(Se,{size:12})]})}),e.jsx("span",{className:"text-xs text-slate-500 mt-1",children:$(d.type)})]})}),e.jsx("td",{className:"px-6 py-5",children:e.jsxs("div",{className:"flex items-center gap-2 group-hover:underline cursor-pointer",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-blue-50 flex items-center justify-center text-[10px] font-bold text-blue-600",children:e.jsx(T,{size:20})}),e.jsx(S,{to:`/debtors/debtor/${d.debtor.id}`,children:e.jsx("span",{className:"font-semibold text-slate-700 uppercase tracking-tight",children:d.debtor.organization.short
6Name})})]})}),e.jsx("td",{className:"px-6 py-5 text-right",children:e.jsx("span",{className:"text-sm font-medium text-slate-500",children:new Date(d.published).toLocaleDateString("ru-RU")})})]},d.id))})]})})]}),e.jsx(Fe,{idBill:t?.idBill,sum:t?.sum})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-emerald-50 border-2 border-emerald-300 rounded-3xl p-8 text-slate-400 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-10",children:e.jsx(T,{size:120,className:"text-emerald-500"})}),e.jsx("p",{className:"font-medium mb-2! text-emerald-600 text-[22px]",children:"СÑмма к оплаÑе"}),e.jsxs("div",{className:"flex items-baseline gap-2 mb-8",children:[e.jsx("span",{className:"text-5xl font-black text-emerald-600",children:t?.sum.toFixed(2)}),e.jsx("span",{className:"text-xl text-emerald-600 font-medium",children:"BYN"})]}),e.jsxs("div",{className:"space-y-4 relative z-10",children:[e.jsxs("div",{className:"flex justify-between text-sm py-2 border-b border-slate-200/90",children:[e.jsx("span",{className:"text-slate-800",children:"ÐаÑа ÑозданиÑ"}),e.jsx("span",{className:"font-medium text-slate-600",children:t?.datetimeCreate?new Date(t?.datetimeCreate).toLocaleDateString():"â"})]}),e.jsxs("div",{className:"flex justify-between text-sm py-2 border-b border-slate-200/90",children:[e.jsx("span",{className:"text-slate-800",children:"УпÑавлÑÑÑий"}),e.jsx("span",{className:"font-medium text-slate-600 truncate ml-4",children:t?.manager.name})]})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-6 border border-slate-100 shadow-sm space-y-3",children:[e.jsx("h4",{className:"font-bold text-slate-800 mb-4! text-[16px]",children:"ÐÑбеÑиÑе ÑпоÑоб оплаÑÑ"}),e.jsx("button",{className:"w-full flex items-center justify-between p-4 bg-slate-50 text-slate-700 rounded-2xl hover:bg-slate-100 transition-all group cursor-pointer",children:e.jsxs("div",{className:"flex items-center gap-3",onClick:()=>b(`/hub/user-bank-invoice/${t?.idBill}/${t?.sum}`),children:[e.jsx(K,{size:20}),e.jsx("span",{className:"font-bold text-sm",children:"СÑÐµÑ Ð½Ð° оплаÑÑ (квиÑанÑиÑ)"})]})}),e.jsx(Le,{fileName:`СÑÐµÑ â${t?.idBill}`,data:t,manager:c,children:({loading:d})=>e.jsx("button",{disabled:d,className:"w-full flex items-center justify-between p-4 mb-3 bg-slate-50 text-slate-700 rounded-2xl hover:bg-slate-100 transition-all group cursor-pointer disabled:opacity-70",children:e.jsxs("div",{className:"flex items-center gap-3",children:[d?e.jsx(Be,{size:20,className:"animate-spin"}):e.jsx(z,{size:20}),e.jsx("span",{className:"font-bold text-sm",children:d?"ÐенеÑаÑÐ¸Ñ pdf...":"СÑÐµÑ Ð½Ð° оплаÑÑ (PDF)"})]})})}),e.jsxs("button",{className:"w-full flex flex-col text-blue-600 rounded-2xl",children:[e.jsxs("div",{className:"flex items-center gap-3 pl-4 pt-3.5 pb-3.5 bg-blue-50 rounded-t-2xl border-t border-l border-r border-dashed border-blue-200",children:[e.jsx(De,{size:20}),e.jsx("span",{className:"font-bold text-sm",children:"ÐÐ ÐÐ (E-POS)"})]}),e.jsxs("div",{className:"p-3 bg-white rounded-b-2xl border-b border-r border-l border-dashed border-blue-200",children:[e.jsx("p",{className:"text-[10px] text-slate-400 uppercase text-center mb-1! font-bold",children:"ÐайдиÑе в ÐÐ ÐÐ, вÑбеÑиÑе EPOS, введиÑе код:"}),e.jsxs("p",{className:"text-center font-mono font-bold text-slate-600 tracking-wider",children:["18164-1-",t?.idBill]})]})]})]})]})]})]})})})]}),h?e.jsx(ue,{title:`ÐÑ Ð´ÐµÐ¹ÑÑвиÑелÑно Ñ
оÑиÑе ÑдалиÑÑ ÑÑÐµÑ â${t?.idBill}?`,hidePopup:()=>j(!1),confirm:A,confirmButtonText:"ÐодÑвеÑдиÑÑ",children:"ÐÑи подÑвеÑждении вÑе даннÑе бÑдÑÑ Ð±ÐµÐ·Ð²Ð¾Ð·Ð²ÑаÑно ÑдаленÑ"}):null]})}export{is 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.