import{_ as T}from"./DUQr9DrG.js";import{_ as y}from"./-OJeObNb.js";import{_ as V}from"./BKjSwDAM.js";import{_ as U}from"./gxHWKiUc.js";import{_ as B}from"./4FMzYxPj.js";import L from"./Cr9ZZaT-.js";import{u as X,a as $}from"./G-fJibjS.js";import{d as v,b as a,o as i,w as m,e as I,f as t,g as o,R as c,M as P,a as f,F as A,E as x,A as j}from"./JQJBiNWj.js";import{_ as z}from"./G7u0egV4.js";import{_ as Z}from"./D_VCVGq0.js";import q from"./D42GNhrT.js";import{h as G}from"./CH1bAkoS.js";import{D as F}from"./DKM0wLqG.js";import{T as H}from"./BKl0aY3w.js";import{e as J}from"./D4TYLqES.js";import{u as K}from"./CL7Msd7o.js";import{u as Q}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"./yKVtex9U.js";import"./CbtPaznW.js";import"./Dc_YXEFz.js";import"./DmwTwIPt.js";import"./B-La3K3C.js";import"./F98GHXdS.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"./CJYlvWEf.js";import"./CeWG_dyW.js";import"./CDSORL4U.js";import"./3oa0FK2h.js";import"./BHFADP6o.js";import"./CXVd19p6.js";import"./Bli8EQqv.js";import"./BagArUDo.js";import"./CRodc3LN.js";import"./DncddsCV.js";import"./Dm5UwSfy.js";import"./DNRi6U01.js";import"./BYfmWBgX.js";import"./D7gSulp_.js";import"./-CGeDbWH.js";import"./ChMy_Kon.js";import"./CpvritYQ.js";import"./C3JtJyG7.js";import"./BlGPNclf.js";const W={class:"base-grid"},Y=v({__name:"Caracteristicas",setup(g){const e=X();return(p,l)=>{const s=L,r=U,_=B;return i(),a(_,{title:"Características"},{default:m(()=>[I("div",W,[t(r,{class:"col-span-12 md:col-span-4",name:"larguraFaixaDominio",label:"Largura da faixa de domínio:"},{default:m(()=>[t(s,{id:"larguraFaixaDominio",name:"larguraFaixaDominio",disabled:!o(e),"min-fraction-digits":2,"max-fraction-digits":2,class:"w-full"},null,8,["disabled"])]),_:1}),t(r,{class:"col-span-12 md:col-span-4",name:"larguraFaixaNaoEdificavel",label:"Largura da faixa não edificável:"},{default:m(()=>[t(s,{id:"larguraFaixaNaoEdificavel",name:"larguraFaixaNaoEdificavel",disabled:!o(e),"min-fraction-digits":2,"max-fraction-digits":2,class:"w-full"},null,8,["disabled"])]),_:1})])]),_:1})}}}),oo=Object.assign(Y,{__name:"AtivosElementoFaixaDominioFaixaDominioCaracteristicas"}),to={class:"flex flex-col gap-5"},lt=v({__name:"[id]",setup(g){const e=K({view:c.ATV_VISUALIZAR_CADASTRO_FAIXA_DOMINIO_FAIXA_DOMINIO,add:c.ATV_EDITAR_CADASTRO_FAIXA_DOMINIO_FAIXA_DOMINIO,remove:c.ATV_REMOVER_CADASTRO_FAIXA_DOMINIO_FAIXA_DOMINIO}),{ready:p,elementoId:l,idTitle:s,isEditMode:r,initialValues:_,isSubmiting:k,refreshForm:D,toggleEditMode:d,handleSubmitForm:E,deleteElemento:C}=$(H.FaixaDominio,e.value.add,e.value.view),b=G(J),u=P("formRef");return Q(u),(io,eo)=>{const O=T,h=y,N=V,R=oo,n=z,S=j,M=Z,w=q;return i(),f(A,null,[t(O,{title:`Cadastros - Faixa de domínio ${o(s)}`},null,8,["title"]),I("div",to,[o(p)?(i(),a(w,{ref_key:"formRef",ref:u,key:o(D),resolver:o(b),"initial-values":o(_),class:"space-y-10",onSubmit:o(E)},{default:m(()=>[t(N,{"show-km-inicial":!1,"show-km-final":!1,"show-direcao":!1,"show-sentido":!1}),t(R),t(M,{"show-menu":!0},{default:m(()=>[o(r)&&o(l)!==o(F)?(i(),f(A,{key:0},[o(e).remove?(i(),a(n,{key:0,mode:"delete",class:"max-sm:w-full",onClick:o(C)},null,8,["onClick"])):x("",!0),t(n,{mode:"cancel",class:"ms-auto",onClick:o(d)},null,8,["onClick"])],64)):(i(),a(S,{key:1,to:"./",class:"ms-auto"},{default:m(()=>[t(n,{mode:o(l)!==o(F)?"back":"cancel"},null,8,["mode"])]),_:1})),o(r)&&o(e).add?(i(),a(n,{key:2,mode:"save",label:"Salvar",type:"submit",loading:o(k)},null,8,["loading"])):o(e).add?(i(),a(n,{key:3,mode:"edit",label:"Editar",onClick:o(d)},null,8,["onClick"])):x("",!0)]),_:1})]),_:1},8,["resolver","initial-values","onSubmit"])):(i(),a(h,{key:0}))])],64)}}});export{lt as default};
