import{j as s}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc.js";import{bh as x,q as u}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc24.js";import{u as g}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc20.js";import{u as h}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc104.js";import{$ as v,ao as c,k as j,I as f}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc11.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc7.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc9.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc6.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc8.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc19.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc4.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc3.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc2.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc10.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc124.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc29.js";const N=()=>{const{importedContacts:t}=x.getState();if(!t?.length)return[];const n=new Set(["Labels","Photo","imported","Unnamed: 2","id","","name","nomes","numeros"]),o=[];return t.forEach(a=>{Object.keys(a).forEach(i=>{!n.has(i)&&!o.includes(i)&&o.push(i)})}),o};function L({acaoModel:t}){const{close:n}=u.getState(),{getVariaveis:o}=h.getState(),a=g(e=>e.language),i=t==="useAcaoEnvioEmMassa",m=t==="useAcaoEnvioEmMassaNew",d=m?N():o(),p=["#nome","#primeiroNome","#numero","#periodo-dia","#saudação","#mencionar-todos"],l=["#sexo","#data_nascimento","#idioma","#email","#cidade","#estado","#origem","#data_entrada","#data_saida","#valor_negocio","#empresa","#cargo","#produtos_de_interesse","#observações"],r=e=>{j(e),f({type:"Success",message:`${a.tag} ${e} ${a.Copiada}`,position:"top-right"}),n()};return s.jsxs("div",{className:"px-3",children:[s.jsx(v,{weight:"700",children:a.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:p.map(e=>s.jsx(c,{className:"text-base truncate !w-[200px]",content:e,icon:s.jsx(s.Fragment,{}),setFunction:()=>r(e)},e))})}),(i||m)&&d.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"badge badge-warning text-[var(--letra)]",children:a.envioMassa}),s.jsx("ul",{className:"mt-3 overflow-y-auto overflow-x-hidden p-[1px]",style:{maxHeight:"calc(100vh - 282px)"},children:d.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:a.profileContact}),s.jsx("ul",{className:"mt-3 p-[1px]",children:l.map(e=>s.jsx(c,{className:"text-base truncate !w-[200px]",content:e,icon:s.jsx(s.Fragment,{}),setFunction:()=>r(e)},e))})]})]})]})}export{L as default};
