import{j as e,ap as n}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f10.js";import{a as c}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f4.js";import{b7 as l,z as p,K as m,p as u,d as x,aw as h}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f23.js";import{A as f}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f192.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f18.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f6.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f8.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f5.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f19.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f7.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f9.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f2.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f3.js";function C({card:t}){const{acao:a,clearAcao:i}=l(),{activeChat:s}=p.getState(),{assinatura:o}=m.getState(),{close:r}=u();c.useEffect(()=>()=>i(),[]);const d=()=>{x.getState().dispartWebhook(s.id.user,"respostaRapida",{id:t.id,type:t.type,name:t.titulo,categoria:t.categoria}),h(s.id._serialized,a,o,"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(n,{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:d,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};
