import{j as e}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d15.js";import{r as x}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1.js";import{u as g}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d133.js";import{ad as f,n as h}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d123.js";import{u as j}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d14.js";import{al as C,af as c,bj as m,ac as v}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d17.js";import{c as y}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1106.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d13.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d19.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d110.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d12.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d18.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d120.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d16.js";function q({updateCat:p}){const{variaveisWA:i}=f(),{categories:r}=g(),{language:s}=j(),{close:d}=h(),[a,u]=x.useState([]),n=t=>{d(),p(t)};return e.jsx("div",{style:{position:"initial"},children:e.jsx("ul",{className:"overflow-hidden flex",children:e.jsxs("div",{className:i.modalOptions.content2,children:[e.jsx(C,{filtragem:t=>{let o=[];r.forEach(l=>{l.name?.toUpperCase().includes(t.toUpperCase())&&o.push(l)}),u(o)},placeholder:s.searchCategory,dependenciasADD:[r],btnClear:!0}),e.jsxs("div",{className:"max-w-[300px] overflow-x-hidden overflow-y-auto "+i.listagem.content1,style:{maxHeight:"calc(100vh - 63px)"},children:[a.length!==0&&e.jsx(c,{content:s.cancelSelection,icon:e.jsx(y,{className:"w-5 h-5 text-red-500"}),setFunction:()=>n(""),stroke:"1"}),a.map((t,o)=>e.jsx(c,{content:t.name,icon:e.jsx(m,{className:"w-5 h-5",style:{color:t.hexColor}}),setFunction:()=>n(t.id),stroke:"1"},o)),a.length===0&&e.jsx(v,{icon:e.jsx(m,{size:24,className:"text-[var(--primaria)]"}),title:s.noneCategoryFound,description:s.noneCategoryFound_des})]})]})})})}export{q as default};
