import{_ as k}from"./ButtonDefault-CzWpVlv6.js";import{_ as y}from"./BasicInput-BG-lQkv5.js";import{e as E,r as V,l as w,D as C,o,c as a,a as l,t as n,F as m,h as N,i as $,b as c}from"./index-Bb2UEb_P.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./component-C-Q4t0gB.js";import"./common-U_VzDrmL.js";const I={class:"modal__title"},P={class:"modal__sub-title"},T={class:"tw-overflow-y-auto tw-pr-2"},D={key:0,class:"modal__group-title"},L={__name:"ModalWindowProfileInfo",props:["data"],emits:["modalClose"],setup(u,{emit:p}){const e=u,f=p,b=E(),d=V({...e.data.data?.Attribs});function r(){b.push(`/ProfileEdit/${e.data.data?.ID}`),f("modalClose")}const _=i=>{i.key==="Enter"&&r()};return w(()=>{document.addEventListener("keyup",_)}),C(()=>{document.removeEventListener("keyup",_)}),(i,M)=>{const v=y,h=k;return o(),a(m,null,[l("div",I,n(e.data.data.Name),1),l("div",P,n(e.data.template.Name),1),l("div",T,[(o(!0),a(m,null,N(e.data.template?.Template?.Attribs,(t,s)=>(o(),a("div",{class:"modal__attributes-group",key:s},[t?.Title?(o(),a("div",D,n(t.Title),1)):$("",!0),c(v,{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)),c(h,{class:"modal__button",onClick:r,label:"Редактировать данные"})])],64)}}},R=B(L,[["__scopeId","data-v-a48b0842"]]);export{R as default};
