import{_ as N}from"./DUQr9DrG.js";import{_ as P}from"./-OJeObNb.js";import{_ as b}from"./gxHWKiUc.js";import{_ as v}from"./4FMzYxPj.js";import T from"./CJYlvWEf.js";import{u as x,a as j}from"./G-fJibjS.js";import{d,b as a,o as i,w as s,e as u,f as e,g as o,R as p,M as G,a as A,F as g,E as C,A as z}from"./JQJBiNWj.js";import{_ as Z}from"./BKjSwDAM.js";import{_ as q}from"./DUfBvrYn.js";import{_ as H}from"./G7u0egV4.js";import{_ as J}from"./D_VCVGq0.js";import K from"./D42GNhrT.js";import{h as Q}from"./CH1bAkoS.js";import{D as I}from"./DKM0wLqG.js";import{T as W}from"./BKl0aY3w.js";import{E as X}from"./jkZsZAIA.js";import{u as Y}from"./CL7Msd7o.js";import{u as oo}from"./f6QOa6wf.js";import"./BwwR4PPN.js";import"./B6O9xiO5.js";import"./HM4z-iuB.js";import"./DqVYbxj5.js";import"./CxkaGOlL.js";import"./BgAkS4D_.js";import"./CcHzNBpc.js";import"./C_Bx0xg7.js";import"./Dm5UwSfy.js";import"./Dc_YXEFz.js";import"./CeWG_dyW.js";import"./CDSORL4U.js";import"./F98GHXdS.js";import"./D7gSulp_.js";import"./-CGeDbWH.js";import"./ChMy_Kon.js";import"./yKVtex9U.js";import"./CbtPaznW.js";import"./DmwTwIPt.js";import"./B-La3K3C.js";import"./DvBDpJyt.js";import"./FcRkkR--.js";import"./Dk4pWsnS.js";import"./BSHuRY0P.js";import"./BBDFeM-T.js";import"./BuR5k2Xw.js";import"./ClVEEBFD.js";import"./2JTb7YQn.js";import"./3oa0FK2h.js";import"./BHFADP6o.js";import"./CXVd19p6.js";import"./Cr9ZZaT-.js";import"./DNRi6U01.js";import"./BYfmWBgX.js";import"./Bli8EQqv.js";import"./BagArUDo.js";import"./CRodc3LN.js";import"./DncddsCV.js";import"./BWs0r_ue.js";import"./CpvritYQ.js";import"./BlGPNclf.js";const eo={class:"base-grid"},to=d({__name:"InformacoesGerais",setup(f){const t=x();return(l,_)=>{const m=T,n=b,r=v;return i(),a(r,{title:"Informações gerais"},{default:s(()=>[u("div",eo,[e(n,{name:"codigo",label:"Identificação:",class:"col-span-12 lg:col-span-3"},{default:s(()=>[e(m,{id:"codigo",name:"codigo",disabled:!o(t)},null,8,["disabled"])]),_:1}),e(n,{name:"codigoSir",label:"Código do SIR:",class:"col-span-12 lg:col-span-3"},{default:s(()=>[e(m,{id:"codigo-sir",name:"codigoSir",disabled:!o(t)},null,8,["disabled"])]),_:1}),e(n,{name:"nomeEdificacaoSistema",label:"Nome edificação:",class:"col-span-12 lg:col-span-3"},{default:s(()=>[e(m,{id:"nome-edificacao",name:"nomeEdificacaoSistema",disabled:!o(t)},null,8,["disabled"])]),_:1})])]),_:1})}}}),io=Object.assign(to,{__name:"AtivosElementoSistemasEletricosSistemaEletricoInformacoesGerais"}),so={class:"base-grid"},no=d({__name:"Caracteristicas",setup(f){const t=x();return(l,_)=>{const m=T,n=b,r=v;return i(),a(r,{title:"Características"},{default:s(()=>[u("div",so,[e(n,{name:"concessionariaEnergia",label:"Concessionária de energia:",class:"col-span-12 lg:col-span-6"},{default:s(()=>[e(m,{id:"concessionaria-energia",name:"concessionariaEnergia",disabled:!o(t)},null,8,["disabled"])]),_:1})])]),_:1})}}}),ao=Object.assign(no,{__name:"AtivosElementoSistemasEletricosSistemaEletricoCaracteristicas"}),mo={class:"flex flex-col gap-5"},Se=d({__name:"[id]",setup(f){const t=Y({view:p.ATV_VISUALIZAR_CADASTRO_SISTEMAS_ELETRICOS_SISTEMAS_ELETRICOS,add:p.ATV_EDITAR_CADASTRO_SISTEMAS_ELETRICOS_SISTEMAS_ELETRICOS,remove:p.ATV_REMOVER_CADASTRO_SISTEMAS_ELETRICOS_SISTEMAS_ELETRICOS}),{ready:l,elementoId:_,idTitle:m,isEditMode:n,initialValues:r,isSubmiting:R,refreshForm:k,toggleEditMode:S,handleSubmitForm:M,deleteElemento:O}=j(W.SistemasEletricos,t.value.add,t.value.view),h=Q(X),E=G("formRef");return oo(E),(ro,co)=>{const F=N,y=P,L=io,U=Z,$=ao,V=q,c=H,D=z,B=J,w=K;return i(),A(g,null,[e(F,{title:`Cadastros - Sistemas elétricos - Sistemas elétricos ${o(m)}`},null,8,["title"]),u("div",mo,[o(l)?(i(),a(w,{ref_key:"formRef",ref:E,key:o(k),resolver:o(h),"initial-values":o(r),class:"space-y-10",onSubmit:o(M)},{default:s(()=>[e(L),e(U),e($),e(V),e(B,{"show-menu":!0},{default:s(()=>[o(n)&&o(_)!==o(I)?(i(),A(g,{key:0},[o(t).remove?(i(),a(c,{key:0,mode:"delete",class:"max-sm:w-full",onClick:o(O)},null,8,["onClick"])):C("",!0),e(c,{mode:"cancel",class:"ms-auto",onClick:o(S)},null,8,["onClick"])],64)):(i(),a(D,{key:1,to:"./",class:"ms-auto"},{default:s(()=>[e(c,{mode:o(_)!==o(I)?"back":"cancel"},null,8,["mode"])]),_:1})),o(n)&&o(t).add?(i(),a(c,{key:2,mode:"save",label:"Salvar",type:"submit",loading:o(R)},null,8,["loading"])):o(t).add?(i(),a(c,{key:3,mode:"edit",label:"Editar",onClick:o(S)},null,8,["onClick"])):C("",!0)]),_:1})]),_:1},8,["resolver","initial-values","onSubmit"])):(i(),a(y,{key:0}))])],64)}}});export{Se as default};
