import{j as e}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777.js";import{ao as p,n as d}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277723.js";import{u as m}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277720.js";import{S as u}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777218.js";import{I as x}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777217.js";import{z as h}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277711.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27778.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27777.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277719.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27774.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27773.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27772.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277710.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27776.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27779.js";const I=({updateForm:o,resID:r})=>{const{quickReplies:i}=p(),{open:l}=d(),{language:a}=m(),n=s=>{const t=s.currentTarget;l(e.jsx(u,{onSelect:c=>{o("respostaRapida",c.id)}}),{placement:"top"},t,-10,{mounted:()=>t.setAttribute("style","outline-style: solid; outline-width: 2px; outline-offset: 2px; outline-color: hsl(var(--bc) / 0.2);"),desmouted:()=>t.removeAttribute("style")})};return e.jsxs("div",{className:"flex flex-col gap-2 shadow-md border border-solid border-[var(--intro-background)] p-2 rounded-lg",children:[e.jsx("div",{className:"flex justify-between items-center",children:e.jsxs("div",{className:"flex gap-2 items-center",children:[e.jsx("span",{children:e.jsx(h,{className:"w-4 h-4 text-[var(--icon)]"})}),e.jsx("span",{children:e.jsx("h2",{className:"label-text",children:a.agendamento_select_respostaRapida})})]})}),e.jsx("div",{className:"form-control w-full",children:e.jsx("div",{className:"select select-bordered select-sm cursor-pointer border border-solid",onClick:s=>n(s),children:i.map(s=>s.id===r?e.jsxs("div",{className:"pulse flex gap-2 py-1 items-center",children:[e.jsx("span",{children:e.jsx(x,{type:s.type})}),e.jsx("span",{className:"text-base overflow-hidden text-ellipsis whitespace-nowrap",style:{width:"calc(300px - 100px)"},children:s.titulo})]},s.id):null)})})]})};export{I as default};
