import{j as s,ax as h,ar as p,as as u,an as j}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578110.js";import{a as v}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457814.js";import{q as b,b as g,A}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578123.js";import{u as N}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578119.js";import{c as w}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd945781104.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578118.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457816.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457818.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd945781.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457815.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457817.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457819.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457812.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457813.js";function z({onSelect:o,btnCancel:d=!1,abasRM:x=[]}){const{close:r}=b(),{userTabs:n}=g(),{variaveisWA:i}=A(),{language:l}=N(),[c,f]=v.useState([]);return s.jsx("div",{style:{position:"initial"},children:s.jsx("ul",{className:"overflow-hidden flex "+i.modalOptions.content2,children:s.jsxs("div",{className:i.modalOptions.content3,children:[s.jsx(h,{filtragem:e=>{let a=[];n.filter(t=>x.includes(t.id)===!1).forEach(t=>{var m;(m=t.tag)!=null&&m.toUpperCase().includes(e.toUpperCase())&&a.push(t)}),f(a)},placeholder:l.pesquisarAbas,dependenciasADD:[n],btnClear:!0}),s.jsxs("div",{className:"max-w-[300px] overflow-x-hidden overflow-y-auto "+i.listagem.content1,style:{maxHeight:"calc(100vh - 63px)"},children:[d&&s.jsx(p,{content:l.cancelSelection,icon:s.jsx(w,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{o(null),r()},stroke:"1"}),c.map((e,a)=>s.jsx(p,{content:e.tag,icon:s.jsx(u,{className:"w-5 h-5 text-[var(--primaria)]"}),setFunction:()=>{o(e),r()},stroke:"1"},a)),c.length===0&&s.jsx(j,{icon:s.jsx(u,{className:"w-5 h-5 text-[var(--primaria)]"}),title:"Nenhuma Aba foi Encontrada",description:"Nenhuma aba foi criada. Crie uma para começar a utilizár essa funcionalidade"})]})]})})})}export{z as default};
