import{_ as D}from"./DUQr9DrG.js";import{_ as F}from"./-OJeObNb.js";import{_ as U}from"./BKjSwDAM.js";import{_ as V,u as M}from"./CMYfa1Mu.js";import{_ as w}from"./gxHWKiUc.js";import{_ as Z}from"./4FMzYxPj.js";import{A as $}from"./CLzE61HQ.js";import{u as P,a as j}from"./G-fJibjS.js";import{d as x,b as n,o as t,w as s,e as c,a as A,F as f,r as q,G,f as e,t as J,g as o,R as u,M as K,E as v,A as Q}from"./JQJBiNWj.js";import{_ as W}from"./DUfBvrYn.js";import{_ as X}from"./G7u0egV4.js";import{_ as Y}from"./D_VCVGq0.js";import oo from"./D42GNhrT.js";import{h as to}from"./CH1bAkoS.js";import{D as E}from"./DKM0wLqG.js";import{T as h}from"./BKl0aY3w.js";import{b as eo}from"./v76Duk3U.js";import{u as io}from"./CL7Msd7o.js";import{u as ao}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"./Cr9ZZaT-.js";import"./DNRi6U01.js";import"./BYfmWBgX.js";import"./Bli8EQqv.js";import"./BagArUDo.js";import"./CRodc3LN.js";import"./DncddsCV.js";import"./BweM3Zv8.js";import"./DPeK_S5k.js";import"./CeGk6Fsr.js";import"./D1rKqwCM.js";import"./BAmc1GPw.js";import"./Dm5UwSfy.js";import"./D7gSulp_.js";import"./-CGeDbWH.js";import"./ChMy_Kon.js";import"./BWs0r_ue.js";import"./CpvritYQ.js";import"./BlGPNclf.js";const no={class:"base-grid"},ro={class:"font-bold"},so=x({__name:"Caracteristicas",setup(k){const a=P(),l=[{title:"Bordo esquerdo",name:"idCorBordoEsquerdo",class:"lg:col-span-6"},{title:"Bordo direito",name:"idCorBordoDireito",class:"lg:col-span-6"},{title:"Eixo 1",name:"idCorEixo1",class:"lg:col-span-4"},{title:"Eixo 2",name:"idCorEixo2",class:"lg:col-span-4"},{title:"Eixo 3",name:"idCorEixo3",class:"lg:col-span-4"}];return(_,C)=>{const m=V,p=w,d=Z;return t(),n(d,{title:"Características"},{default:s(()=>[c("div",no,[(t(),A(f,null,q(l,i=>c("div",{key:i.name,class:G(["col-span-12",i.class])},[c("h3",ro,J(i.title),1),e(p,{name:i.name,label:"Cor:"},{default:s(()=>[e(m,{name:i.name,"campo-referencia":i.name,"tipo-ativo":o($).TipoAtivo.SinalizacaoHorizontalTachaTachoes,disabled:!o(a)},null,8,["name","campo-referencia","tipo-ativo","disabled"])]),_:2},1032,["name"])],2)),64))])]),_:1})}}}),mo=Object.assign(so,{__name:"AtivosElementoSinalizacaoHorizontalTachaTachoesCaracteristicas"}),co={class:"flex flex-col gap-5"},Rt=x({__name:"[id]",setup(k){const a=io({view:u.ATV_VISUALIZAR_CADASTRO_SINALIZACAO_HORIZONTAL_TACHAS_TACHOES,add:u.ATV_EDITAR_CADASTRO_SINALIZACAO_HORIZONTAL_TACHAS_TACHOES,remove:u.ATV_REMOVER_CADASTRO_SINALIZACAO_HORIZONTAL_TACHAS_TACHOES}),{ready:l,elementoId:_,idTitle:C,isEditMode:m,isSubmiting:p,initialValues:d,refreshForm:i,toggleEditMode:T,handleSubmitForm:R,deleteElemento:O}=j(h.SinalizacaoHorizontalTachaTachoes,a.value.add,a.value.view),b=to(eo),S=K("formRef");return ao(S),M(h.SinalizacaoHorizontalTachaTachoes),(lo,_o)=>{const g=D,I=F,z=U,H=mo,y=W,r=X,L=Q,B=Y,N=oo;return t(),A(f,null,[e(g,{title:`Cadastros - Sinalização Horizontal - Tachas e Tachões ${o(C)}`},null,8,["title"]),c("div",co,[o(l)?(t(),n(N,{ref_key:"formRef",ref:S,key:o(i),resolver:o(b),"initial-values":o(d),class:"space-y-10",onSubmit:o(R)},{default:s(()=>[e(z,{"show-extensao":""}),e(H),e(y),e(B,{"show-menu":!0},{default:s(()=>[o(m)&&o(_)!==o(E)?(t(),A(f,{key:0},[o(a).remove?(t(),n(r,{key:0,mode:"delete",class:"max-sm:w-full",onClick:o(O)},null,8,["onClick"])):v("",!0),e(r,{mode:"cancel",class:"ms-auto",onClick:o(T)},null,8,["onClick"])],64)):(t(),n(L,{key:1,to:"./",class:"ms-auto"},{default:s(()=>[e(r,{mode:o(_)!==o(E)?"back":"cancel"},null,8,["mode"])]),_:1})),o(m)&&o(a).add?(t(),n(r,{key:2,mode:"save",label:"Salvar",type:"submit",loading:o(p)},null,8,["loading"])):o(a).add?(t(),n(r,{key:3,mode:"edit",label:"Editar",onClick:o(T)},null,8,["onClick"])):v("",!0)]),_:1})]),_:1},8,["resolver","initial-values","onSubmit"])):(t(),n(I,{key:0}))])],64)}}});export{Rt as default};
