import{j as e,ae as m,bg as d}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9910.js";import{u as x}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9935.js";import{u}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9997.js";import{p as g}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9923.js";import{u as h}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9919.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-b1c61b935c994.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";const a="flex gap-1 cursor-pointer items-center h-9 py-2 rounded-lg hover:bg-[var(--dropdown-background-hover)] px-2";function B({model:o}){const{categories:c}=x(),{setFilter:r}=u(),{close:i}=g(),{language:l}=h(),n=["txt","image","video","audio","doc","contact","script","automation","pix","groupInvite","linkPreview","sticker"].map((t,s)=>e.jsxs("div",{className:a,onClick:()=>{i(),r("model",{id:"type",parm:t})},children:[e.jsx(m,{type:t}),e.jsx("span",{className:"truncate max-w-80",children:l[t]})]},s)),p=c.map((t,s)=>e.jsxs("div",{className:a,onClick:()=>{i(),r("model",{id:"cat",parm:t.id})},children:[e.jsx(d,{size:20,style:{color:t.hexColor}}),e.jsx("span",{className:"truncate max-w-80",children:t.name})]},s));return e.jsxs("div",{className:"px-2 min-w-60 overflow-auto",style:{maxHeight:"calc(100vh - 65px)"},children:[e.jsx("div",{className:"truncate max-w-80 font-bold text-lg first-letter:uppercase",children:o==="cat"?"Selecione uma Categoria":"Selecione um tipo"}),e.jsx("hr",{}),e.jsx("div",{className:"flex flex-col gap-1 mt-[2px]",children:o==="cat"?p:n})]})}export{B as default};
