import{r as i,j as r}from"./vendor-react-AXa6hZO5.js";import{s as t}from"./index-C_tZnXTW.js";import{P as o}from"./c6a992d55-yQe_3XHI.js";import{u as e}from"./c2ab4f27a-jgIYrm-x.js";import{m as s}from"./vendor-motion-0BJMgYoH.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-zod-CMvj0_Fd.js";import"./cec18ad9a-DiLjrOUd.js";import"./vendor-radix-glKlawmm.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.js";import"./tree-sitter-BFuuT2ac.js";import"./ca4ffc4d4-Ch3dLK-Z.js";import"./c2044c1ea-mO8qNqYx.js";import"./c00e9f95f-diXpglgD.js";import"./ccca85712-oYvKI1ep.js";import"./c99a5852d-CKMbxKu4.js";import"./c52ce65c3-HgcD_LIB.js";import"./c4a0394fd-CBNgydFr.js";import"./c42f08fdd-LqUuVa6D.js";import"./c4ba74563-Cu9cyVCM.js";import"./c59046d49-BIlvtwEN.js";import"./cd51897f0-D8RJUqSZ.js";import"./c23fd7eb1-C1tZ4w3C.js";const m=i.memo(({content:m,enabled:n,onDismiss:a,onAction:c})=>{const d=m,{data:p,isLoading:j}=e(d.interviewType),l=i.useCallback(()=>{c()},[c]),v=i.useCallback(()=>{a()},[a]),f="in_progress"===p?.status;if(j)return null;if(!n)return null;const u=f?d.resumeTitle:d.title,b=f?d.resumeMessage:d.message,x=f?d.resumeButtonText:d.buttonText,g=`/interviewer/${d.interviewType}`,h=d.pictogramName?o[d.pictogramName]:void 0,y=r.jsxs("div",{children:[r.jsx("div",{className:"font-medium",children:u}),r.jsx("div",{children:b})]});return r.jsx(s.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:r.jsx("div",{style:{maxWidth:580},children:r.jsx(t,{message:y,...h?{pictogram:h}:{variant:"main"},onClose:v,button:{children:x,href:g,target:"_blank",onLinkClick:l}})})})});m.displayName="ClintInterviewV1";export{m as ClintInterviewV1};
