1import{u as I,_ as b}from"./Bk5KJdu4.js";import{j as P,n as C,m as k,c as r,F as y,D as S,q as a,o as c,s as d,a as e,t as u,r as g,b as f,w as B,X as F,G as N,_ as w}from"./Cpx8uuql.js";import{u as V}from"./px69tvf8.js";const E={class:"info"},j={class:"info_address"},z={class:"info_head"},A={class:"info_item-value"},D={class:"info_item-value"},X={class:"info_item-value"},q=["onClick"],x=P({__name:"Info",setup(G){const s=V(),m=I({defaultValues:Object.fromEntries(s.payments.map(o=>[o.accountId.toString(),o.amount.toString()]))});C(()=>s.selectPayments.map(o=>o.accountId),(o,t=[])=>{o.filter(n=>!t.includes(n)).forEach(n=>{m.resetField(n.toString()),N(()=>{m.validateField(n.toString(),"change")})})},{deep:!0,immediate:!0});function h(o){s.selectPayments=s.selectPayments.filter(t=>t.accountId!==o.accountId)}return k(async()=>{await m.validateAllFields("change")}),(o,t)=>{const _=b;return c(),r("section",E,[(c(!0),r(y,null,S(a(s).selectPayments,(n,l)=>(c(),r("div",{key:n.accountId,class:d(l===0?"info_main-container":"info_items-container")},[l===0?(c(),r(y,{key:0},[e("p",j,u(n.address),1),e("div",z,[t[0]||(t[0]=e("h4",{class:"info_title"},"ÐоÑÑавÑик",-1)),t[1]||(t[1]=e("h4",{class:"info_title"},"ÐС / ÐоговоÑ",-1)),t[2]||(t[2]=e("h4",{class:"info_title"},"СÑмма",-1)),t[3]||(t[3]=e("h4",{class:"info_title"},"ТаÑÐ¸Ñ ÑеÑвиÑа",-1)),e("h4",{class:d(["info_title",a(s).selectPayments.length>1?"":"info_title-hidden"])},null,2)])],64)):g("",!0),e("div",{class:d(l===0?"info_main-item":"info_item-container")},[t[4]||(t[4]=e("h4",{class:"info_title info_mobile-title"},"ÐоÑÑавÑик",-1)),e("p",A,u(n.organizationName),1),t[5]||(t[5]=e("h4",{class:"info_title info_mobile-title"},"ÐС / ÐоговоÑ",-1)),e("p",D,u(n.accountName),1),t[6]||(t[6]=e("h4",{class:"info_title info_mobile-title"},"СÑмма",-1)),f(a(m).Field,{name:n.accountId.toString(),validators:{onChange:({value:i})=>{if(Number(i)<=0)return"СÑмма плаÑежа не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¼ÐµÐ½ÑÑе или Ñавна нÑлÑ"}}},{default:B(({field:i,state:v})=>[f(_,{type:"number",name:i.name,"model-value":a(s).selectPayments[l].amount.toString(),disabled:!n.canPay,class:"info_item-input",onInput:p=>{i.handleChange(p.target.value),a(s).selectPayments[l].amount=Number(p.target.value)},onBlur:i.handleBlur,onChange:a(s).calcPayments,"error-state":v},null,8,["name","model-value","disabled","onInput","onBlur","onChange","error-state"])]),_:2},1032,["name","validators"]),t[7]||(t[7]=e("h4",{class:"info_title info_mobile-title"},"ТаÑÐ¸Ñ ÑеÑвиÑа",-1)),e("p",X,u(a(s).selectPayments[l].fee),1),a(s).selectPayments.length>1?(c(),r("button",{key:0,class:"info_delete-button",onClick:i=>h(n)},[f(F,{alt:"УбÑаÑÑ ÑÑÐµÑ Ð¸Ð· оплаÑÑ."})],8,q)):g("",!0)],2)],2))),128))])}}}),T=w(x,[["__scopeId","data-v-646c6773"]]);export{T 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.