import{j as e,ak as m,bf as d}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{u as x}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf36.js";import{u}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf92.js";import{p as g}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf23.js";import{u as f}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf2.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf3.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}=f(),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};
