import{r as f,j as s}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f.js";import{n as h,u as j,aj as v}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f23.js";import{u as g}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f20.js";import{ax as b,ar as m,as as p,ao as N}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f11.js";import{c as w}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f106.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f8.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f7.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f19.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f4.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f3.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f2.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f10.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f6.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f9.js";function P({onSelect:o,btnCancel:u=!1,abasRM:d=[]}){const{close:r}=h(),{userTabs:n}=j(),{variaveisWA:i}=v(),{language:l}=g(),[c,x]=f.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(b,{filtragem:e=>{let a=[];n.filter(t=>d.includes(t.id)===!1).forEach(t=>{t.tag?.toUpperCase().includes(e.toUpperCase())&&a.push(t)}),x(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:[u&&s.jsx(m,{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(m,{content:e.tag,icon:s.jsx(p,{className:"w-5 h-5 text-[var(--primaria)]"}),setFunction:()=>{o(e),r()},stroke:"1"},a)),c.length===0&&s.jsx(N,{icon:s.jsx(p,{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{P as default};
