import{r as s,j as i}from"./vendor-react-DcxrbCFs.js";import{r as t}from"./c62933a29-BEQNsR_I.js";import{u as o}from"./vendor-intl-C0z7gCkr.js";import{u as r}from"./c8a5da52e-CrEpKH8o.js";import{m as e}from"./vendor-motion-HFQQEH7Z.js";import{B as m,P as c}from"./c4b350ac1-BTR_0NaM.js";import{B as a}from"./vendor-ant-cds-BOj-tX6j.js";import"./ca8998c31-6H5Q4Fd2.js";import"./vendor-zod-Zyr3BDtu.js";import"./cdabaac79-3sBTRaya.js";import"./ca4e68303-2GEI1XEE.js";import"./ce5824dc6-DCrxq2nV.js";import"./c5decd681-BZUxtT_J.js";import"./ca9bd5d1a-BwvQdQH8.js";import"./cc2e285cb-B9NgZcZ2.js";import"./cac5c74b6-D2snV6_H.js";import"./cd51897f0-DEXSdSlV.js";import"./ccca85712-CxU_jF8g.js";import"./c41323917-CuYqUzvj.js";import"./vendor-query-DdY22HAU.js";import"./c40b9b8f5-Da-ryo1W.js";import"./vendor-zustand-BLLlCrLG.js";import"./vendor-lodash--OmUGVwS.js";import"./vendor-radix-BZeqcGXH.js";import"./vendor-base-ui-dYhdtXSh.js";import"./c4b43b0ae-760Yu4sg.js";import"./vendor-icons-ChFdOXlJ.js";import"./index-BSvCx8kl.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-router-DD4soP8u.js";import"./cbf215181-C3oidXTA.js";import"./c009a87a0-DXB61_5D.js";import"./c82022b5f-DK6eLSBd.js";import"./vendor-luxon-Y8l99kBI.js";import"./cc61d0d63-kW48LhDF.js";import"./c93f725a0-DejUT30N.js";import"./c85adc124-DNLst9Jo.js";import"./c26148d62-BlLiyl5z.js";import"./c0e977562-BYJ_xmcc.js";import"./c9f4bb49e-95JsAiB2.js";import"./cc2dfdfd3-C4WlGtCV.js";import"./c6a992d55-Bg3ygTzd.js";import"./c9e81e7b9-l4IaiKjm.js";import"./c5669b8e4-B184INBD.js";import"./cf57f6351-ChXug4Hw.js";import"./c0632795f-CL3ffsDQ.js";import"./c1f96d614-DAkctE43.js";import"./c627fcdb6-Cc-7gsFT.js";import"./c590fc197--sY4eEEU.js";import"./cbaad2c48-DRCBJU3Q.js";import"./vendor-virtual-sigx4wjL.js";import"./c1d7d8319-yi8QLBnY.js";import"./cdd5b9598-Bh6YyBPI.js";import"./c393cb7f5-JWhvNgWh.js";import"./vendor-growthbook-Bq25eETo.js";import"./c4526f334-Ddtc7W1k.js";import"./c8c7c4e8f-DoGfpMPz.js";import"./c1d96b207-D0fAg0jr.js";import"./c9bba154c-DdQs_cXE.js";const n=s.memo(({content:s,isResume:r,onCtaClick:n,onDismiss:d})=>{const j=o(),p=r?s.resumeTitle:s.title,l=r?s.resumeMessage:s.message,b=r?s.resumeButtonText:s.buttonText,f=`/interviewer/${s.interviewType}`,v=t(s.pictogramName);return i.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:i.jsx("div",{style:{maxWidth:580},children:i.jsx(m,{variant:"neutral",icon:v?i.jsx(c,{asset:v,size:"sm"}):null,action:i.jsx(a,{variant:"primary",href:f,target:"_blank",onClick:n,children:b}),onDismiss:d,dismissLabel:j.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),children:i.jsxs("div",{children:[i.jsx("div",{className:"font-medium",children:p}),i.jsx("div",{children:l})]})})})})});n.displayName="ClintInterviewV1Content";const d=s.memo(({content:t,enabled:o,onDismiss:e,onAction:m})=>{const c=t,{data:a,isLoading:d}=r(c.interviewType),j=s.useCallback(()=>{m()},[m]),p=s.useCallback(()=>{e()},[e]),l="in_progress"===a?.status;return d?null:o?i.jsx(n,{content:c,isResume:l,onCtaClick:j,onDismiss:p}):null});d.displayName="ClintInterviewV1";export{d as ClintInterviewV1,n as ClintInterviewV1Content};
