import{j as e}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89263.js";import{a as d}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89262.js";import{aQ as c,w as l,x as p,q as m,d as u,c as x}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892625.js";import{an as h}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89268.js";import{A as f}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c8926215.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89264.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89265.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89266.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89269.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892610.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89267.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c8926.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892620.js";function C({card:t}){const{acao:a,clearAcao:o}=c(),{activeChat:s}=l.getState(),{assinatura:i}=p.getState(),{close:r}=m();d.useEffect(()=>()=>o(),[]);const n=()=>{u.getState().dispartWebhook(s.id.user,"respostaRapida",{id:t.id,type:t.type,name:t.titulo,categoria:t.categoria}),x(s.id._serialized,a,i,"useAcaoEditAndSendRes"),r()};return e.jsxs("div",{className:"w-[800px]",children:[e.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[e.jsx("div",{children:e.jsx(h,{type:t.type,style:"w-6 h-6 text-[var(--icon)]"})}),e.jsx("div",{className:"truncate max-w-[700px] font-bold text-xl first-letter:uppercase",children:t.titulo})]}),e.jsx("div",{className:"max-h-[80vh] overflow-y-auto",children:e.jsx(f,{acaoModel:"useAcaoEditAndSendRes"})}),e.jsx("div",{className:"flex justify-end mt-3",children:e.jsx("div",{className:"h-14 w-14 bg-[var(--button-round-background)] rounded-full pulse flex justify-center cursor-pointer shadow-md",onClick:n,children:e.jsx("span",{className:"text-[var(--letra)] m-auto pl-1",children:e.jsx("svg",{viewBox:"0 0 24 24",height:"24",width:"24",preserveAspectRatio:"xMidYMid meet",version:"1.1",x:"0px",y:"0px","enable-background":"new 0 0 24 24",children:e.jsx("path",{fill:"currentColor",d:"M1.101,21.757L23.8,12.028L1.101,2.3l0.011,7.912l13.623,1.816L1.112,13.845 L1.101,21.757z"})})})})})]})}export{C as default};
