import{_ as k}from"./ButtonDefault-CghIUDY0.js";import{_ as y}from"./BasicInput-BYe5b9L8.js";import{d as E,r as V,H as C,s as w,c as a,o,a as l,t as n,b as m,F as i,i as N,h as $}from"./index-CipWZKo_.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./component-DWBAga-C.js";const I={class:"modal__title"},T={class:"modal__sub-title"},L={class:"tw-overflow-y-auto tw-pr-2"},M={key:0,class:"modal__group-title"},P={__name:"ModalWindowProfileInfo",props:["data"],emits:["modalClose"],setup(u,{emit:p}){const e=u,f=p,v=E(),d=V({...e.data.data?.Attribs});function r(){v.push(`/ContractEdit/${e.data.data?.ID}`),f("modalClose")}const _=c=>{c.key==="Enter"&&r()};return C(()=>{document.addEventListener("keyup",_)}),w(()=>{document.removeEventListener("keyup",_)}),(c,U)=>{const b=y,h=k;return o(),a(i,null,[l("div",I,n(e.data.data.Name),1),l("div",T,n(e.data.template.Name),1),l("div",L,[(o(!0),a(i,null,N(e.data.template?.Template?.Attribs,(t,s)=>(o(),a("div",{class:"modal__attributes-group",key:s},[t?.Title?(o(),a("div",M,n(t.Title),1)):$("",!0),m(b,{label:t?.Comment,placeholder:t?.Example,disabled:!0,modelValue:d.value[s],"onUpdate:modelValue":g=>d.value[s]=g},null,8,["label","placeholder","modelValue","onUpdate:modelValue"])]))),128)),m(h,{class:"modal__button",onClick:r,label:"Редактировать данные"})])],64)}}},H=B(P,[["__scopeId","data-v-a34eda83"]]);export{H as default};
