import{j as e}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a53.js";import{a as x}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a52.js";import{u as g}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a542.js";import{ac as f,r as h}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a525.js";import{u as C}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a54.js";import{aA as j,ap as c,bu as m,al as v}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a58.js";import{c as y}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5122.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a55.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a56.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a59.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a510.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a57.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a520.js";function q({updateCat:p}){const{variaveisWA:i}=f(),{categories:r}=g(),{language:s}=C(),{close:u}=h(),[a,d]=x.useState([]),n=t=>{u(),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(j,{filtragem:t=>{let o=[];r.forEach(l=>{l.name?.toUpperCase().includes(t.toUpperCase())&&o.push(l)}),d(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};
