import{s as _}from"./BeiPJ-Ey.js";import{s as b}from"./DOlpiDlz.js";import{E as P,I as y,G as x,J as a,b as E,o as S,c as V,K as n,v as c,y as e,L as i}from"./CVN9mXi8.js";import{S as h}from"./ZIw2O0V5.js";import"./Cnr6hwyY.js";import"./BzjqEU2Y.js";import"./ByD9s0OG.js";import"./CG5Ae_0g.js";import"./2PnuRw05.js";const k={class:"w-full"},w={class:"base-grid"},I={class:"col-span-3"},K=P({__name:"analiseItens",setup(B){const m=y(),u=x(),r=a([]),l=a({}),o=a([]);E(()=>{p()});async function p(){o.value=[],h.estruturaPer.find(u.empresaAtual.sigla).then(t=>{r.value=t;for(const s of r.value)s.idEstruturaPerPai==null&&o.value.push(s)}).catch(t=>{console.error("Erro ao buscar empresas",t),m.add({severity:"error",summary:t,detail:"Erro ao buscar empresas"})}).finally(()=>{})}return(t,s)=>{const d=b,f=_;return S(),V("div",k,[n(f,{class:"p-4 mb-5"},{title:c(()=>s[1]||(s[1]=[e("div",{class:"flex justify-between mb-8"},[e("div",{class:"flex"},[e("i",{style:{"font-size":"1.8rem"},class:"pi pi-calendar-clock"}),e("div",null,[e("h3",{class:"ml-3 lock text-xl font-medium"}," Análise itens contratuais ")])])],-1)])),content:c(()=>[e("div",w,[e("div",I,[s[2]||(s[2]=e("label",{for:"itemPai"},"Item:",-1)),n(d,{id:"itemPai",modelValue:i(l).itemPai,"onUpdate:modelValue":s[0]||(s[0]=v=>i(l).itemPai=v),options:i(o),"option-value":"id","option-label":"descricao",class:"w-full my-1",size:"small",placeholder:"Selecione..."},null,8,["modelValue","options"])])])]),_:1})])}}});export{K as default};
