import{j as e,al as g,af as m,bg as p,ac as f}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9910.js";import{a as h}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c994.js";import{u as C}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9935.js";import{D as j,p as v}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9923.js";import{u as y}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9919.js";import{d as w}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9974.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9918.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c996.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c998.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c995.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c997.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c999.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c992.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c993.js";function H({updateCat:d}){const{variaveisWA:i}=j(),{categories:r}=C(),{language:s}=y(),{close:u}=v(),[a,x]=h.useState([]),n=t=>{u(),d(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};
