import{j as s,ak as h,ad as p,ae as u,aa as j}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{a as v}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{o as g,a as b,B as N}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{u as w}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import{c as A}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e105.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.js";function z({onSelect:o,btnCancel:d=!1,abasRM:x=[]}){const{close:r}=g(),{userTabs:n}=b(),{variaveisWA:i}=N(),{language:l}=w(),[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:a=>{let e=[];n.filter(t=>x.includes(t.id)===!1).forEach(t=>{var m;(m=t.tag)!=null&&m.toUpperCase().includes(a.toUpperCase())&&e.push(t)}),f(e)},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(A,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{o(null),r()},stroke:"1"}),c.map((a,e)=>s.jsx(p,{content:a.tag,icon:s.jsx(u,{className:"w-5 h-5 text-[var(--primaria)]"}),setFunction:()=>{o(a),r()},stroke:"1"},e)),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};
