import{j as s,a1 as x,ar as c,ao as u,I as g}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f10.js";import{b9 as h,q as v}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f23.js";import{u as j}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f19.js";import{u as f}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f103.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f18.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f6.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f4.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f8.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f5.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f7.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f9.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f2.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f3.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f123.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f28.js";const N=()=>{const{importedContacts:a}=h.getState();if(!(a!=null&&a.length))return[];const n=new Set(["Labels","Photo","imported","Unnamed: 2","id","","name","nomes","numeros"]),o=[];return a.forEach(t=>{Object.keys(t).forEach(i=>{!n.has(i)&&!o.includes(i)&&o.push(i)})}),o};function k({acaoModel:a}){const{close:n}=v.getState(),{getVariaveis:o}=f.getState(),t=j(e=>e.language),i=a==="useAcaoEnvioEmMassa",m=a==="useAcaoEnvioEmMassaNew",l=m?N():o(),d=["#nome","#primeiroNome","#numero","#periodo-dia","#saudação","#mencionar-todos"],p=["#sexo","#data_nascimento","#idioma","#email","#cidade","#estado","#origem","#data_entrada","#data_saida","#valor_negocio","#empresa","#cargo","#produtos_de_interesse","#observações"],r=e=>{u(e),g({type:"Success",message:`${t.tag} ${e} ${t.Copiada}`,position:"top-right"}),n()};return s.jsxs("div",{className:"px-3",children:[s.jsx(x,{weight:"700",children:t.tagsDisponiveis}),s.jsx("hr",{className:"mt-1"}),s.jsxs("div",{className:"flex gap-4 mt-2",children:[s.jsx("div",{children:s.jsx("ul",{className:"mt-3 p-[1px]",children:d.map(e=>s.jsx(c,{className:"text-base truncate !w-[200px]",content:e,icon:s.jsx(s.Fragment,{}),setFunction:()=>r(e)},e))})}),(i||m)&&l.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"badge badge-warning text-[var(--letra)]",children:t.envioMassa}),s.jsx("ul",{className:"mt-3 overflow-y-auto overflow-x-hidden p-[1px]",style:{maxHeight:"calc(100vh - 282px)"},children:l.map(e=>s.jsx(c,{className:"text-base truncate !w-[200px]",content:"#"+e,icon:s.jsx(s.Fragment,{}),setFunction:()=>r("#"+e)},e))})]}),s.jsxs("div",{children:[s.jsx("div",{className:"badge badge-accent text-[var(--letra)]",children:t.profileContact}),s.jsx("ul",{className:"mt-3 p-[1px]",children:p.map(e=>s.jsx(c,{className:"text-base truncate !w-[200px]",content:e,icon:s.jsx(s.Fragment,{}),setFunction:()=>r(e)},e))})]})]})]})}export{k as default};
