import{j as e,ac as m,b9 as d}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{u as x}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e34.js";import{u}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e92.js";import{o as g}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{u as h}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.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};
