import{j as e,ad as m,bb as d}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080910.js";import{u as x}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080935.js";import{u}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080998.js";import{p as g}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080923.js";import{u as h}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080919.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080918.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508098.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508094.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b2250809.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508095.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508097.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508096.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508092.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508093.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508099.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};
