import{j as e,z as p}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b710.js";import{at as d,q as m}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b723.js";import{u}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b719.js";import{S as x}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b7217.js";import{I as h}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b7216.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b718.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b76.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b74.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b7.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b78.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b75.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b77.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b79.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b72.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b73.js";const C=({updateForm:r,resID:o})=>{const{quickReplies:i}=d(),{open:l}=m(),{language:a}=u(),n=s=>{const t=s.currentTarget;l(e.jsx(x,{onSelect:c=>{r("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(p,{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===o?e.jsxs("div",{className:"pulse flex gap-2 py-1 items-center",children:[e.jsx("span",{children:e.jsx(h,{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{C as default};

