import{r as i,j as t,m as e}from"./vendor--leCAzSo.js";import{r as s}from"./index-DZuQva-j.js";import{P as r}from"./c6a992d55-RdkPKknR.js";import{u as a}from"./c714ab9fb-BLm0BdDU.js";import"./c723dd3dd-58n3MxoB.js";import"./ca9c256b9-7brFE8T2.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";import"./ca4ffc4d4-CbmM1gBv.js";import"./c2044c1ea-BlzBXdTK.js";import"./c00e9f95f-CNZm4cpe.js";import"./ccca85712-ImSk5B4c.js";import"./c99a5852d-CqWfvGZh.js";import"./c52ce65c3-hxw67lU6.js";import"./c5decd681-BZF0LeWt.js";import"./c23fd7eb1-BDuXikeJ.js";import"./c4a0394fd-D55-gpaw.js";import"./c4ba74563-Dtts1God.js";import"./c59046d49-CJxbhTvt.js";const o=i.memo(({content:o,enabled:c,onDismiss:m,onAction:n})=>{const d=o,{data:p,isLoading:j}=a(d.interviewType),l=i.useCallback(()=>{n()},[n]),u=i.useCallback(()=>{m()},[m]),f="in_progress"===p?.status;if(j)return null;if(!c)return null;const b=f?d.resumeTitle:d.title,x=f?d.resumeMessage:d.message,v=f?d.resumeButtonText:d.buttonText,g=`/interviewer/${d.interviewType}`,y=d.pictogramName?r[d.pictogramName]:void 0,h=t.jsxs("div",{children:[t.jsx("div",{className:"font-medium",children:b}),t.jsx("div",{children:x})]});return t.jsx(e.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.3},className:"fixed bottom-10 right-10 z-50",children:t.jsx("div",{style:{maxWidth:580},children:t.jsx(s,{message:h,...y?{pictogram:y}:{variant:"main"},onClose:u,button:{children:v,href:g,target:"_blank",onLinkClick:l}})})})});o.displayName="ClintInterviewV1";export{o as ClintInterviewV1};
