import{o as s}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as e,ki as i}from"./vendor-frame-CwiylG4Y.js";import{J as t,R as a,X as n}from"./shared-frame-DbQbH4Yr.js";import{w as r}from"./vendor-all-3-CWo5e8Lw.js";import{wa as o}from"./shared-4-6CEyRAHb.js";import{o as m,t as l}from"./cdbbb92f5-Bsc56kX2.js";import{n as c}from"./c8a5da52e-jwgDXhYN.js";var d=s(e()),u=i(),j=(0,d.memo)(({content:s,isResume:e,onCtaClick:i,onDismiss:c})=>{const d=n(50),j=e?s.resumeTitle:s.title,x=e?s.resumeMessage:s.message,p=e?s.resumeButtonText:s.buttonText,f=`/interviewer/${s.interviewType}`,h=m(s.pictogramName);return(0,u.jsx)(r.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",style:{zIndex:d},children:(0,u.jsx)(t,{children:(0,u.jsx)("div",{style:{maxWidth:580},children:(0,u.jsx)(o,{variant:"neutral",icon:h?(0,u.jsx)(l,{name:h,size:"sm"}):null,action:(0,u.jsx)(a,{variant:"primary",href:f,target:"_blank",onClick:i,children:p}),onDismiss:c,children:(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"font-medium",children:j}),(0,u.jsx)("div",{children:x})]})})})})})}),x=(0,d.memo)(({content:s,enabled:e,onDismiss:i,onAction:t})=>{const a=s,{data:n,isLoading:r}=c(a.interviewType),o=(0,d.useCallback)(()=>{t()},[t]),m=(0,d.useCallback)(()=>{i()},[i]),l="in_progress"===n?.status;return r?null:e?(0,u.jsx)(j,{content:a,isResume:l,onCtaClick:o,onDismiss:m}):null});export{x as ClintInterviewV1};