import{j as e,as as g,am as m,bf as p,aj as f}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab710.js";import{a as h}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab74.js";import{u as j}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab736.js";import{A as C,p as v}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab723.js";import{u as y}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab719.js";import{c as w}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7106.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab718.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab76.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab78.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab75.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab77.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab79.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab72.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab73.js";function H({updateCat:u}){const{variaveisWA:i}=C(),{categories:r}=j(),{language:s}=y(),{close:d}=v(),[a,x]=h.useState([]),n=t=>{d(),u(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(g,{filtragem:t=>{let o=[];r.forEach(l=>{var c;(c=l.name)!=null&&c.toUpperCase().includes(t.toUpperCase())&&o.push(l)}),x(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(m,{content:s.cancelSelection,icon:e.jsx(w,{className:"w-5 h-5 text-red-500"}),setFunction:()=>n(""),stroke:"1"}),a.map((t,o)=>e.jsx(m,{content:t.name,icon:e.jsx(p,{className:"w-5 h-5",style:{color:t.hexColor}}),setFunction:()=>n(t.id),stroke:"1"},o)),a.length===0&&e.jsx(f,{icon:e.jsx(p,{size:24,className:"text-[var(--primaria)]"}),title:s.noneCategoryFound,description:s.noneCategoryFound_des})]})]})})})}export{H as default};
