import{r as i,j as r}from"./vendor-react-AXa6hZO5.js";import{a as t}from"./c70a3d12b-BI7Bbafv.js";import{P as o}from"./c6a992d55-U5femuYf.js";import{u as e}from"./c2ab4f27a-BEBsp7G3.js";import{m as s}from"./vendor-motion-DGh7M6mr.js";import"./c6eedc03a-C8LSdtro.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zod-1gcJXWab.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./vendor-luxon-Y8l99kBI.js";import"./c42f14d14-D5j5RMnQ.js";import"./index-D35RxkWr.js";import"./c365fd3fe-Dmpsm876.js";import"./tree-sitter-BFuuT2ac.js";import"./ca4ffc4d4-utxHxrDd.js";import"./c2044c1ea-iazg3WEu.js";import"./c00e9f95f-BmRIM43a.js";import"./ce65bc850-BqZ2_sRU.js";import"./cb965a0e9-Ccnz0SN3.js";import"./c99a5852d-WZzC5RM1.js";import"./c42be296f-DQd03pUH.js";import"./c4a0394fd-f9p8py3P.js";import"./c42f08fdd-B8crAiF_.js";import"./c4ba74563-Dw-RHOsh.js";import"./c61365050-C5-E_9Up.js";import"./c59046d49-Cqe0WWiz.js";import"./cd51897f0-B-IQioAc.js";import"./c23fd7eb1-Dt1jP75k.js";const m=i.memo(({content:m,enabled:n,onDismiss:a,onAction:d})=>{const c=m,{data:p,isLoading:j}=e(c.interviewType),l=i.useCallback(()=>{d()},[d]),f=i.useCallback(()=>{a()},[a]),v="in_progress"===p?.status;if(j)return null;if(!n)return null;const u=v?c.resumeTitle:c.title,b=v?c.resumeMessage:c.message,x=v?c.resumeButtonText:c.buttonText,g=`/interviewer/${c.interviewType}`,y=c.pictogramName?o[c.pictogramName]:void 0,h=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:h,...y?{pictogram:y}:{variant:"main"},onClose:f,button:{children:x,href:g,target:"_blank",onLinkClick:l}})})})});m.displayName="ClintInterviewV1";export{m as ClintInterviewV1};
