import{r as f,j as s}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b764581.js";import{n as h,u as j,ak as v}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458123.js";import{u as g}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458120.js";import{aC as b,aw as m,ax as p,at as w}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458111.js";import{c as N}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b764581106.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645818.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645817.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458119.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645814.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645813.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645812.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458110.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645816.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645819.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(N,{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(w,{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};
