useCandidatePortalChatbotConversation",["CandidatePortalBrowserSession","CandidatePortalChatbotContext","CandidatePortalChatbotUtils","CandidatePortalDetailedTimelineUtils","CandidatePortalLoggingUtils","CandidatePortalUpdateExistingRecruitingAgentConversationMutation","MCDSToast.react","RelayHooks","RelayRuntime","react","useCandidatePortalChatbotConversation_conversation.graphql","useCandidatePortalChatbotSubscription","useIsOnline","useMCDSToaster"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useCallback,p=c.useEffect,_=c.useState,f=e!==void 0?e:e=n("useCandidatePortalChatbotConversation_conversation.graphql");function g(e){var t,n=r("useMCDSToaster")(),a=n.add,i=r("useIsOnline")(),l=_(null),s=l[0],u=l[1],c=o("CandidatePortalChatbotContext").useCandidatePortalChatbotContext(),g=c.intent,h=o("RelayHooks").useMutation(o("CandidatePortalUpdateExistingRecruitingAgentConversationMutation").mutation),y=h[0],C=h[1],b=o("RelayHooks").useFragment(f,e),v=b.consideration,S=b.id,R=r("useCandidatePortalChatbotSubscription")(S);p(function(){o("CandidatePortalLoggingUtils").logImpression("CANDIDATE_CHATBOT",{payload:{conversation_id:S}})},[S]);var L=null;if(v!=null&&((t=v.interview_timeline)==null?void 0:t.length)>0){var E=o("CandidatePortalChatbotUtils").genLatestConsiderationStage(v);switch(E){case o("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.ONSITE:L="DAY_OF_INTERVIEW";break;case o("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.SCREENING:L="AUTOMATED_ASSESSMENT";break;default:L="QNA";break}}var k=m(function(e,t){var n=Date.now(),i="RECRUITER_AGENT";u(null),o("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_PROMPT",{payload:{conversationID:S,prompt:e,infra:i,intent:t}});var l={conversation_id:S,prompt:e,session_id:o("CandidatePortalBrowserSession").getSessionKey()},s=function(r){var n=o("RelayRuntime").generateUniqueClientID(),a=r.create(n,"XCPCandidateChatbotConversationExchangeExport");a.setValue(n,"id"),a.setValue(e,"prompt"),a.setValue(t!=null?t:"RECOMMENDATION","intent");var i=r.get(S);if(i!=null){var l=o("RelayRuntime").ConnectionHandler.getConnection(i,"CandidatePortalChatbotConversationPaginationQuery_exchanges");if(l!=null){o("RelayRuntime").ConnectionHandler.insertEdgeAfter(l,o("RelayRuntime").ConnectionHandler.createEdge(r,l,a,"XCPCandidateChatbotConversationExportExchangesEdge"));var s=i.getLinkedRecord("exchanges",{last:1});s==null||s.setLinkedRecords([a],"nodes")}}},c=function(n){a(d.jsx(r("MCDSToast.react"),{"data-testid":void 0,message:o("CandidatePortalChatbotUtils").GENERIC_ERROR_MESSAGE})),o("CandidatePortalLoggingUtils").logError("CANDIDATE_CHATBOT",100,"CHATBOT_RESPONSE_ERROR",n,{payload:{conversationID:S,intent:g!=null?g:t,infra:i}})};y({variables:{input:l},optimisticUpdater:s,onCompleted:function(r){var e,a,l=(e=(a=r.xcp_query_existing_recruiting_agent_conversation_v2)==null||(a=a.conversation)==null||(a=a.last_exchange)==null?void 0:a.nodes)!=null?e:[];if(l.length>0){var s,c,d=l[l.length-1];o("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_AGENTIC_EXCHANGE_LATENCY",{payload:{conversationID:S,exchange_id:(s=d.id)!=null?s:"",intent:t,latency:Date.now()-n,infra:i,prompt:(c=d.prompt)!=null?c:""}}),u({time:n,exchange_id:d.id})}},onError:c})},[a,y,S,g]),I=m(function(e){return k(e,g!=null?g:L)},[g,L,k]),T=(b==null?void 0:b.is_generating)===!0||C||!i||R;return{conversationID:S,intent:L,isAgenticExchangeSaving:C,isDisabled:T,isSubscriptionDead:R,lastMessageSentFromUserData:s,onSubmit:k,onSubmitPrompt:I}}l.useCandidatePortalChatbotConversation=g}),98);
-----
CandidatePortalChatbotMobileContent.react",["fbt","CandidatePortalBrowserSession","CandidatePortalChatbotContext","CandidatePortalChatbotConversation.react","CandidatePortalChatbotMetaIcon.react","CandidatePortalChatbotMobileContent_conversation.graphql","CandidatePortalChatbotPrompt.react","CandidatePortalChatbotUtils","CandidatePortalDetailedTimelineUtils","CandidatePortalLoggingUtils","CandidatePortalUpdateExistingRecruitingAgentConversationMutation","MCDSFlyOut.react","MCDSFlyOutFullBleedFullHeightContent.react","MCDSIcon.react","MCDSIconButton.react","MCDSIconCaretDownOutline.svg.react","MCDSIconXOutline.svg.react","MCDSToast.react","RelayHooks","RelayRuntime","intersectionObserverEntryIsIntersecting","react","useCandidatePortalChatbotSubscription","useIsOnline","useMCDSToaster","useToggle"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useCallback,_=d.useEffect,f=d.useRef,g=d.useState,h="x1ymu7vt-B",y="xoggwt6-B",C=24,b={scrollButton:{position:"x10l6tqk",bottom:"xqo3gd",$$css:!0}},v=e!==void 0?e:e=n("CandidatePortalChatbotMobileContent_conversation.graphql");function S(e){var t,n=e.conversation,a=e.onClose,i=r("useMCDSToaster")(),l=i.add,u=r("useIsOnline")(),c=g(null),d=c[0],h=c[1],y=o("CandidatePortalChatbotContext").useCandidatePortalChatbotContext(),C=y.intent,S=o("RelayHooks").useMutation(o("CandidatePortalUpdateExistingRecruitingAgentConversationMutation").mutation),L=S[0],E=S[1],k=o("RelayHooks").useFragment(v,n),I=k.consideration,T=k.id,D=r("useCandidatePortalChatbotSubscription")(T);_(function(){o("CandidatePortalLoggingUtils").logImpression("CANDIDATE_CHATBOT",{payload:{conversation_id:T}})},[T]);var x=null;if(I!=null&&((t=I.interview_timeline)==null?void 0:t.length)>0){var $=o("CandidatePortalChatbotUtils").genLatestConsiderationStage(I);switch($){case o("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.ONSITE:x="DAY_OF_INTERVIEW";break;case o("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.SCREENING:x="AUTOMATED_ASSESSMENT";break;default:x="QNA";break}}var P=p(function(e,t){var n=Date.now(),a="RECRUITER_AGENT";h(null),o("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_PROMPT",{payload:{conversationID:T,prompt:e,infra:a,intent:t}});var i={conversation_id:T,prompt:e,session_id:o("CandidatePortalBrowserSession").getSessionKey()},s=function(r){var n=o("RelayRuntime").generateUniqueClientID(),a=r.create(n,"XCPCandidateChatbotConversationExchangeExport");a.setValue(n,"id"),a.setValue(e,"prompt"),a.setValue(t!=null?t:"RECOMMENDATION","intent");var i=r.get(T);if(i!=null){var l=o("RelayRuntime").ConnectionHandler.getConnection(i,"CandidatePortalChatbotConversationPaginationQuery_exchanges");if(l!=null){o("RelayRuntime").ConnectionHandler.insertEdgeAfter(l,o("RelayRuntime").ConnectionHandler.createEdge(r,l,a,"XCPCandidateChatbotConversationExportExchangesEdge"));var s=i.getLinkedRecord("exchanges",{last:1});s==null||s.setLinkedRecords([a],"nodes")}}},u=function(n){l(m.jsx(r("MCDSToast.react"),{"data-testid":void 0,message:o("CandidatePortalChatbotUtils").GENERIC_ERROR_MESSAGE})),o("CandidatePortalLoggingUtils").logError("CANDIDATE_CHATBOT",100,"CHATBOT_RESPONSE_ERROR",n,{payload:{conversationID:T,intent:C!=null?C:t,infra:a}})};L({variables:{input:i},optimisticUpdater:s,onCompleted:function(r){var e,i,l=(e=(i=r.xcp_query_existing_recruiting_agent_conversation_v2)==null||(i=i.conversation)==null||(i=i.last_exchange)==null?void 0:i.nodes)!=null?e:[];if(l.length>0){var s,u,c=l[l.length-1];o("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_AGENTIC_EXCHANGE_LATENCY",{payload:{conversationID:T,exchange_id:(s=c.id)!=null?s:"",intent:t,latency:Date.now()-n,infra:a,prompt:(u=c.prompt)!=null?u:""}}),h({time:n,exchange_id:c.id})}},onError:u})},[l,L,T,C]),N=f(null),M=f(null),w=f(null),A=p(function(){N.current!=null&&N.current.scrollTo({top:N.current.scrollHeight,behavior:"smooth"})},[]),F=r("useToggle")(!0),O=F[0],B=F[1];_(function(){var e=new IntersectionObserver(function(e){var t=e[0];if(t!=null){var n=r("intersectionObserverEntryIsIntersecting")(t);w.current!=null&&window.clearTimeout(w.current),n?B(!0):w.current=window.setTimeout(function(){B(!1)},200)}},{scrollMargin:"30px"});if(M.current!=null)return e.observe(M.current),function(){e.disconnect(),w.current!=null&&window.clearTimeout(w.current)}},[B]),_(function(){N.current!=null&&(N.current.scrollTop=N.current.scrollHeight)},[]);var W=function(t){return P(t,C!=null?C:x)};return m.jsx(r("MCDSFlyOut.react"),{ariaLabel:s._(/*BTDS*/"Assistant chat"),isDismissable:!1,onClose:a,children:m.jsx(r("MCDSFlyOutFullBleedFullHeightContent.react"),{children:m.jsxs("div",{className:"x78zum5 xdt5ytf x5yr21d xdj266r",children:[m.jsxs("div",{className:"x78zum5 xl56j7k x6s0dn4 xexx8yu xwib8y2 xf7dkkf xv54qhq x2lah0s x1n2onr6 x1s928wv x1j6awrg xibq5w2 x17cx49 xnbfe2x x5vykd1 x1ytiacb x2q1x1w xitxdhh",children:[m.jsx("div",{className:"x78zum5 xl56j7k x6s0dn4",children:m.jsx(r("CandidatePortalChatbotMetaIcon.react"),{conversation:k})}),m.jsx("div",{className:"x10l6tqk xn5hqff xwa60dl x1cb1t30",children:m.jsx(r("MCDSIconButton.react"),{"aria-label":s._(/*BTDS*/"Close assistant chat"),icon:m.jsx(r("MCDSIcon.react"),{icon:r("MCDSIconXOutline.svg.react")}),onClick:a,size:"medium",type:"plain_primary"})})]}),m.jsx("div",{className:"x78zum5 xdt5ytf x6s0dn4 x1iyjqo2 x2lwn1j x1odjw0f xf7dkkf xv54qhq",ref:N,children:m.jsxs("div",{className:"x9f619 x1us19tq x78zum5 xdt5ytf xlqzeqv x2lah0s xh8yej3",children:[m.jsx(r("CandidatePortalChatbotConversation.react"),{conversation:k,lastMessageSentFromUserData:d,onSubmit:W}),m.jsx("div",{ref:M})]})}),m.jsxs("div",{className:"x2lah0s xf7dkkf xv54qhq x1l90r2v",children:[m.jsx("div",babelHelpers.extends({},{0:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k"},2:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k x34h7oj x2mfxb xn0cd8s x1u6ievf"},1:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k x1h1n2cj x4afe7t xn0cd8s x1u6ievf"},3:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k x1h1n2cj x4afe7t xn0cd8s x1u6ievf"}}[!O<<1|!!O<<0],{children:m.jsx(r("MCDSIconButton.react"),{"aria-label":s._(/*BTDS*/"Scroll to bottom"),icon:m.jsx(r("MCDSIcon.react"),{icon:r("MCDSIconCaretDownOutline.svg.react")}),onClick:A,size:"medium",xstyle:b.scrollButton})})),m.jsx(r("CandidatePortalChatbotPrompt.react"),{conversation:k,isDisabled:(k==null?void 0:k.is_generating)===!0||E||!u||D,onSubmit:W,promptPlaceholder:R(x),shouldFocusCursorOnSubmit:!1})]})]})})})}S.displayName=S.name+" [from "+i.id+"]";var R=function(t){switch(t){case"FOLLOW_UP_QUESTIONNAIRE":return s._(/*BTDS*/"Reply to the question...");default:return s._(/*BTDS*/"Ask a question...")}};l.default=S}),226);
-----
CandidatePortalChatbotContentV4.react",["fbt","CPBasicCard.react","CandidatePortalBrowserSession","CandidatePortalChatbotContentV4_conversation.graphql","CandidatePortalChatbotContext","CandidatePortalChatbotConversationCTASectionV3.react","CandidatePortalChatbotConversationV3.react","CandidatePortalChatbotPromptV3.react","CandidatePortalChatbotUtils","CandidatePortalDetailedTimelineUtils","CandidatePortalLoggingUtils","CandidatePortalUpdateExistingRecruitingAgentConversationMutation","MCDSFlexbox.react","MCDSIcon.react","MCDSIconButton.react","MCDSIconCaretDownOutline.svg.react","MCDSLink.react","MCDSStatusLabel.react","MCDSText.react","MCDSToast.react","MCDSVerticalStack.react","RelayHooks","RelayRuntime","gkx","intersectionObserverEntryIsIntersecting","mcdsHeight","mcdsMargin","mcdsWidth","react","stylex","useCandidatePortalChatbotSubscription","useCandidatePortalMobileBreakpoint","useIsOnline","useMCDSToaster","useToggle"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d,m=d||(d=o("react")),p=u||(u=r("react")),_=m.unstable_ViewTransition,f=m.useCallback,g=m.useEffect,h=m.useRef,y=m.useState,C="x1ymu7vt-B",b="xoggwt6-B",v={contentMaxWidth:{maxWidth:"xq2pcee",$$css:!0},contentMaxWidthFullscreen:{maxWidth:"x1ap80js",$$css:!0},scrollableAreaContent:{boxSizing:"x9f619",minHeight:"x1us19tq",display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xlqzeqv",flexShrink:"x2lah0s",$$css:!0},scrollableAreaContentTopAligned:{justifyContent:"xlqzeqv",$$css:!0},scrollButton:{position:"x10l6tqk",bottom:"xqo3gd",$$css:!0}},S=24,R=48,L=e!==void 0?e:e=n("CandidatePortalChatbotContentV4_conversation.graphql");function E(e){var t,n=e.conversation,a=e.includePromptPlaceholder,i=e.isFullScreenChat,l=e.xstyle,u=r("useMCDSToaster")(),d=u.add,m=r("useIsOnline")(),C=r("useCandidatePortalMobileBreakpoint")(),b=y(null),S=b[0],R=b[1],E=o("CandidatePortalChatbotContext").useCandidatePortalChatbotContext(),I=E.intent,T=o("RelayHooks").useMutation(o("CandidatePortalUpdateExistingRecruitingAgentConversationMutation").mutation),D=T[0],x=T[1],$=o("RelayHooks").useFragment(L,n),P=$.consideration,N=$.id,M=r("useCandidatePortalChatbotSubscription")(N),w=h(),A=h(),F=h(null),O=function(){w.current&&w.current.scrollTo({top:w.current.scrollHeight,behavior:"smooth"})},B=r("useToggle")(!0),W=B[0],q=B[1];g(function(){var e=new IntersectionObserver(function(e){var t=e[0];if(t!=null){var n=r("intersectionObserverEntryIsIntersecting")(t);F.current!=null&&window.clearTimeout(F.current),n?q(!0):F.current=window.setTimeout(function(){q(!1)},200)}},{scrollMargin:"30px"});if(A.current)return e.observe(A.current),function(){e.disconnect(),F.current!=null&&window.clearTimeout(F.current)}},[q]),g(function(){o("CandidatePortalLoggingUtils").logImpression("CANDIDATE_CHATBOT",{payload:{conversation_id:N}})},[N]);var U=null;if(P!=null&&((t=P.interview_timeline)==null?void 0:t.length)>0){var V=o("CandidatePortalChatbotUtils").genLatestConsiderationStage(P);switch(V){case o("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.ONSITE:U="DAY_OF_INTERVIEW";break;case o("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.SCREENING:U="AUTOMATED_ASSESSMENT";break;default:U="QNA";break}}var H=f(function(e,t){var n=Date.now(),a="RECRUITER_AGENT";R(null),o("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_PROMPT",{payload:{conversationID:N,prompt:e,infra:a,intent:t}});var i={conversation_id:N,prompt:e,session_id:o("CandidatePortalBrowserSession").getSessionKey()},l=function(r){var n=o("RelayRuntime").generateUniqueClientID(),a=r.create(n,"XCPCandidateChatbotConversationExchangeExport");a.setValue(n,"id"),a.setValue(e,"prompt"),a.setValue(t!=null?t:"RECOMMENDATION","intent");var i=r.get(N);if(i!=null){var l=o("RelayRuntime").ConnectionHandler.getConnection(i,"CandidatePortalChatbotConversationV3PaginationQuery_exchanges");if(l!=null){o("RelayRuntime").ConnectionHandler.insertEdgeAfter(l,o("RelayRuntime").ConnectionHandler.createEdge(r,l,a,"XCPCandidateChatbotConversationExportExchangesEdge"));var s=i.getLinkedRecord("exchanges",{last:1});s==null||s.setLinkedRecords([a],"nodes")}}},s=function(n){d(p.jsx(r("MCDSToast.react"),{"data-testid":void 0,message:o("CandidatePortalChatbotUtils").GENERIC_ERROR_MESSAGE})),o("CandidatePortalLoggingUtils").logError("CANDIDATE_CHATBOT",100,"CHATBOT_RESPONSE_ERROR",n,{payload:{conversationID:N,intent:I!=null?I:t,infra:a}})};D({variables:{input:i},optimisticUpdater:l,onCompleted:function(r){var e,i,l=(e=(i=r.xcp_query_existing_recruiting_agent_conversation)==null||(i=i.conversation)==null||(i=i.last_exchange)==null?void 0:i.nodes)!=null?e:[];if(l.length>0){var s,u,c=l[l.length-1];o("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_AGENTIC_EXCHANGE_LATENCY",{payload:{conversationID:N,exchange_id:(s=c.id)!=null?s:"",intent:t,latency:Date.now()-n,infra:a,prompt:(u=c.prompt)!=null?u:""}}),R({time:n,exchange_id:c.id})}},onError:s})},[d,D,N,I]),G=function(t){return H(t,I!=null?I:U)};return p.jsxs(r("MCDSVerticalStack.react"),{gap:0,xstyle:[r("mcdsWidth").fullWidth,l,r("mcdsHeight").fullHeight],children:[p.jsx(_,{children:p.jsxs("div",{className:"x1597r2g x78zum5 xdt5ytf x6s0dn4 x1iyjqo2 x1r8uery x2lwn1j x1odjw0f xf7dkkf xv54qhq xv002az",ref:w,children:[p.jsx("div",{className:"x78zum5 xtijo5x xdt5ytf x2lah0s xsdox4t x47corl x7wzq59 x1o0tod x1vjfegm x1af3mal x1nhvcw1 xhksxof xh8yej3",children:p.jsx("div",{className:"x2lah0s xxk0z11 x7wzq59 x13vifvy xdiidqw x1s928wv x5vykd1 x1j6awrg x1m1drc7 x4eaejv"})}),p.jsxs("div",babelHelpers.extends({},(c||(c=r("stylex"))).props([v.scrollableAreaContent,r("gkx")("14916")?v.scrollableAreaContentTopAligned:null,r("mcdsWidth").fullWidth,C?null:i?v.contentMaxWidthFullscreen:v.contentMaxWidth]),{children:[p.jsx(r("CandidatePortalChatbotConversationV3.react"),{conversation:$,lastMessageSentFromUserData:S,onSubmit:G}),p.jsx("div",{ref:A})]}))]})}),p.jsx("div",babelHelpers.extends({},{0:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k"},2:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k x34h7oj x2mfxb xn0cd8s x1u6ievf"},1:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k x1h1n2cj x4afe7t xn0cd8s x1u6ievf"},3:{className:"xh8yej3 x1n2onr6 x78zum5 xl56j7k x1h1n2cj x4afe7t xn0cd8s x1u6ievf"}}[!W<<1|!!W<<0],{children:p.jsx(r("MCDSIconButton.react"),{"aria-label":s._(/*BTDS*/"Scroll to bottom"),icon:p.jsx(r("MCDSIcon.react"),{icon:r("MCDSIconCaretDownOutline.svg.react")}),onClick:O,size:"medium",xstyle:v.scrollButton})})),p.jsx(r("MCDSFlexbox.react"),{alignItems:"center",direction:"column",shrink:0,xstyle:[r("mcdsMargin").horiz24,r("mcdsMargin").responsive({bottom:{mobile:24,tablet:32}})],children:p.jsxs(r("MCDSFlexbox.react"),{direction:"column",gap:12,xstyle:[r("mcdsWidth").fullWidth,C?null:i?v.contentMaxWidthFullscreen:v.contentMaxWidth],children:[p.jsx(r("CandidatePortalChatbotConversationCTASectionV3.react"),{conversation:$}),M&&p.jsx(r("CPBasicCard.react"),{children:p.jsxs(r("MCDSVerticalStack.react"),{children:[p.jsx(r("MCDSStatusLabel.react"),{type:"error",children:s._(/*BTDS*/"Connection interrupted")}),p.jsx(r("MCDSText.react"),{color:"primary",type:"mcds-small-body",children:s._(/*BTDS*/"{try again link} to continue your conversation.",[s._param("try again link",p.jsx(r("MCDSLink.react"),{onClick:function(){return window.location.reload()},children:"Refresh the page"}))])})]})}),p.jsx(_,{name:"CP_AI_COMPOSER",children:p.jsx(r("CandidatePortalChatbotPromptV3.react"),{conversation:$,isDisabled:($==null?void 0:$.is_generating)===!0||x||!m||M,onSubmit:G,promptPlaceholder:a===!0?k(U):null,shouldFocusCursorOnSubmit:!C})})]})})]})}E.displayName=E.name+" [from "+i.id+"]";var k=function(t){switch(t){case"FOLLOW_UP_QUESTIONNAIRE":return s._(/*BTDS*/"Reply to the question...");default:return s._(/*BTDS*/"Ask me a question...")}};l.default=E}),226);
-----
CandidatePortalChatbotContentV3.react",["fbt","CandidatePortalBasicCard.react","CandidatePortalBrowserSession","CandidatePortalChatbotContentV3_conversation.graphql","CandidatePortalChatbotContext","CandidatePortalChatbotConversationCTASectionV3.react","CandidatePortalChatbotConversationV3.react","CandidatePortalChatbotIntroDisclaimerV3.react","CandidatePortalChatbotPromptV3.react","CandidatePortalChatbotUtils","CandidatePortalDetailedTimelineUtils","CandidatePortalLoggingUtils","CandidatePortalUpdateExistingRecruitingAgentConversationMutation","GeoScrollableArea.react","KadabraPostScrollToBottom.react","MCDSFlexbox.react","MCDSLink.react","MCDSStatusLabel.react","MCDSText.react","MCDSToast.react","MCDSVerticalStack.react","RelayHooks","RelayRuntime","mcdsMargin","mcdsWidth","react","useCandidatePortalChatbotFollowUpQuestionnaire","useCandidatePortalChatbotSubscription","useCandidatePortalMobileBreakpoint","useIsOnline","useMCDSToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useEffect,n=e.useState,o={overflowYHidden:{overflowY:"x10wlt62",$$css:!0},contentMaxWidth:{maxWidth:"xq2pcee",$$css:!0},contentMaxWidthFullscreen:{maxWidth:"xcnl0z8",minWidth:"x1pwt7xx",$$css:!0},footerBottomMargin:{marginBottom:"x1iymm2a",$$css:!0},scrollButton:{top:"xu5yr9u",$$css:!0}},p=i!==void 0?i:i=b("CandidatePortalChatbotContentV3_conversation.graphql");function a(a){var b,e=a.conversation,f=a.includePromptPlaceholder;a=a.isFullScreenChat;var g=c("useMCDSToaster")(),i=g.add;g=c("useIsOnline")();var j=c("useCandidatePortalMobileBreakpoint")(),r=n(null),s=r[0],t=r[1];r=d("CandidatePortalChatbotContext").useCandidatePortalChatbotContext();var u=r.intent;r=d("RelayHooks").useMutation(d("CandidatePortalUpdateExistingRecruitingAgentConversationMutation").mutation);var v=r[0];r=r[1];e=d("RelayHooks").useFragment(p,e);var w=e==null?void 0:e.consideration,x=e.id,y=c("useCandidatePortalChatbotSubscription")(x),z=c("useCandidatePortalChatbotFollowUpQuestionnaire")(w),A=z.isFollowUpComplete;z=z.isFollowUpInProgress;m(function(){d("CandidatePortalLoggingUtils").logImpression("CANDIDATE_CHATBOT",{payload:{conversation_id:x}})},[x]);var B=null;if(w!=null&&((b=w.interview_timeline)==null?void 0:b.length)>0){b=d("CandidatePortalChatbotUtils").genLatestConsiderationStage(w);switch(b){case d("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.PRESCREEN:B="FOLLOW_UP_QUESTIONNAIRE";(!z||A)&&(B="QNA");break;case d("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.ONSITE:B="DAY_OF_INTERVIEW";break;case d("CandidatePortalDetailedTimelineUtils").CandidatePortalInterviewTimelineStage.SCREENING:B="AUTOMATED_ASSESSMENT";break;default:B="QNA";break}z&&(B="FOLLOW_UP_QUESTIONNAIRE")}var C=new URLSearchParams(window.location.search).get("response_generation_strategy"),D=l(function(b,a){var e=Date.now(),f="RECRUITER_AGENT";t(null);d("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_PROMPT",{payload:{conversationID:x,prompt:b,infra:f,intent:a}});var g={conversation_id:x,prompt:b,session_id:d("CandidatePortalBrowserSession").getSessionKey(),response_generation_strategy:C},h=function(c){var e=d("RelayRuntime").generateUniqueClientID(),f=c.create(e,"XCPCandidateChatbotConversationExchangeExport");f.setValue(e,"id");f.setValue(b,"prompt");f.setValue(a!=null?a:"RECOMMENDATION","intent");e=c.get(x);if(e==null)return;var g=d("RelayRuntime").ConnectionHandler.getConnection(e,"CandidatePortalChatbotConversationV3PaginationQuery_exchanges");if(g==null)return;d("RelayRuntime").ConnectionHandler.insertEdgeAfter(g,d("RelayRuntime").ConnectionHandler.createEdge(c,g,f,"XCPCandidateChatbotConversationExportExchangesEdge"));c=e.getLinkedRecord("exchanges",{last:1});c==null||c.setLinkedRecords([f],"nodes")},j=function(b){i(k.jsx(c("MCDSToast.react"),{"data-testid":void 0,message:d("CandidatePortalChatbotUtils").GENERIC_ERROR_MESSAGE})),d("CandidatePortalLoggingUtils").logError("CANDIDATE_CHATBOT",100,"CHATBOT_RESPONSE_ERROR",b,{payload:{conversationID:x,intent:u!=null?u:a,infra:f}})};v({variables:{input:g},optimisticUpdater:h,onCompleted:function(b){b=(b=(b=b.xcp_query_existing_recruiting_agent_conversation)==null||(b=b.conversation)==null||(b=b.last_exchange)==null?void 0:b.nodes)!=null?b:[];if(b.length>0){var c;b=b[b.length-1];d("CandidatePortalLoggingUtils").logInfo("CANDIDATE_CHATBOT","CHATBOT_AGENTIC_EXCHANGE_LATENCY",{payload:{conversationID:x,exchange_id:(c=b.id)!=null?c:"",intent:a,latency:Date.now()-e,infra:f,prompt:(c=b.prompt)!=null?c:""}});t({time:e,exchange_id:b.id})}},onError:j})},[i,v,x,u,C]);w=function(a){return D(a,u!=null?u:B)};return k.jsxs(c("MCDSVerticalStack.react"),{gap:0,justifyContent:"flex-end",xstyle:[o.overflowYHidden,c("mcdsWidth").fullWidth],children:[k.jsx(c("MCDSVerticalStack.react"),{alignItems:"center",alignSelf:"flex-end",justifyContent:"flex-end",xstyle:c("mcdsWidth").fullWidth,children:k.jsxs(c("GeoScrollableArea.react"),{direction:"vertical",xstyle:c("mcdsWidth").fullWidth,children:[k.jsx(c("MCDSFlexbox.react"),{alignItems:"center",direction:"column",xstyle:c("mcdsMargin").horiz24,children:k.jsxs(c("MCDSVerticalStack.react"),{xstyle:[c("mcdsWidth").fullWidth,j?null:a?o.contentMaxWidthFullscreen:o.contentMaxWidth],children:[k.jsx(c("CandidatePortalChatbotIntroDisclaimerV3.react"),{}),e&&k.jsx(c("CandidatePortalChatbotConversationV3.react"),{conversation:e,lastMessageSentFromUserData:s,onSubmit:w})]})}),k.jsx(c("KadabraPostScrollToBottom.react"),{xstyle:o.scrollButton})]})}),k.jsx(c("MCDSFlexbox.react"),{alignItems:"center",direction:"column",shrink:0,style:{marginTop:0},xstyle:[j?c("mcdsMargin").horiz16:c("mcdsMargin").horiz24,j?c("mcdsMargin").bottom16:o.footerBottomMargin],children:k.jsxs(c("MCDSFlexbox.react"),{direction:"column",gap:12,xstyle:[c("mcdsWidth").fullWidth,j?null:a?o.contentMaxWidthFullscreen:o.contentMaxWidth],children:[k.jsx(c("CandidatePortalChatbotConversationCTASectionV3.react"),{conversation:e}),y&&k.jsx(c("CandidatePortalBasicCard.react"),{children:k.jsxs(c("MCDSVerticalStack.react"),{children:[k.jsx(c("MCDSStatusLabel.react"),{type:"error",children:h._(/*BTDS*/"Connection interrupted")}),k.jsx(c("MCDSText.react"),{color:"primary",type:"mcds-small-body",children:h._(/*BTDS*/"{try again link} to continue your conversation.",[h._param("try again link",k.jsx(c("MCDSLink.react"),{onClick:function(){return window.location.reload()},children:"Refresh the page"}))])})]})}),k.jsx(c("CandidatePortalChatbotPromptV3.react"),{conversation:e,isDisabled:(e==null?void 0:e.is_generating)===!0||r||!g||y,onSubmit:w,promptPlaceholder:f===!0?q(B):null,shouldFocusCursorOnSubmit:B==="FOLLOW_UP_QUESTIONNAIRE"||!j})]})})]})}a.displayName=a.name+" [from "+f.id+"]";var q=function(a){switch(a){case"FOLLOW_UP_QUESTIONNAIRE":return h._(/*BTDS*/"Reply to the question...");default:return h._(/*BTDS*/"Ask me a question...")}};g["default"]=a}),226);
-----
CandidatePortalUpdateExistingRecruitingAgentConversationMutation",["CandidatePortalUpdateExistingRecruitingAgentConversationMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("CandidatePortalUpdateExistingRecruitingAgentConversationMutation.graphql");g.mutation=a}),98);
-----
CandidatePortalUpdateExistingRecruitingAgentConversationMutation.graphql",["CandidatePortalUpdateExistingRecruitingAgentConversationMutation_candidate_portalRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"is_generating",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"prompt",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"first_name",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"has_chatbot_eligibility_post_matching",storageKey:null},i=[e],j={alias:null,args:null,kind:"ScalarField",name:"recruiter_email",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"is_eligible",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"deadline_time",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"timezone",storageKey:null},r=[n,e],s={alias:"signedOfferConsideration",args:null,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"signed_offer_consideration",plural:!1,selections:[{alias:"hasWorkdayAccess",args:null,kind:"ScalarField",name:"has_workday_access",storageKey:null},e,{alias:"offerEquipmentSelection",args:null,concreteType:"XCPProdCandidateOfferEquipmentSelectionExport",kind:"LinkedField",name:"offer_equipment_selection",plural:!1,selections:[{alias:"cwtConversionEquipmentStatus",args:null,kind:"ScalarField",name:"cwt_conversion_equipment_status",storageKey:null},e,{alias:"deliveryInfo",args:null,concreteType:"XCPProdCandidateOfferEquipmentDeliveryInfoExport",kind:"LinkedField",name:"delivery_info",plural:!1,selections:r,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_shipping_address_required",storageKey:null}],storageKey:null},t={alias:"offerRequiredNoticesRead",args:null,kind:"ScalarField",name:"offer_required_notices_read",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"hire_type",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"offer_letter_esign_status",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"new_hire_documents_esign_status",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"ftc_consent_esign_status",storageKey:null},y={alias:"linkedFBAccountEmail",args:null,kind:"ScalarField",name:"linked_fb_account_email",storageKey:null},z={alias:"linkedFBAccountName",args:null,kind:"ScalarField",name:"linked_fb_account_name",storageKey:null},A={alias:"shouldAuthenticateWithFBAccount",args:null,kind:"ScalarField",name:"should_authenticate_with_fb_account",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"is_test_user",storageKey:null},C={alias:null,args:null,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"considerations",plural:!0,selections:[{alias:null,args:null,concreteType:"XCPProdCandidatePortalPrehireSecureExport",kind:"LinkedField",name:"cp_prehire_secure",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"first_username_preference",storageKey:null},e],storageKey:null},e],storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"should_remove_employee_record",storageKey:null},E={alias:null,args:null,concreteType:"UserPrehireFallbackData",kind:"LinkedField",name:"prehire_fallback_data",plural:!1,selections:[{alias:null,args:null,concreteType:"CandidatePortalPrehireChecklistStatuses",kind:"LinkedField",name:"checklist_statuses",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"employee_record",storageKey:null}],storageKey:null},e],storageKey:null},F={alias:"fallbackData",args:null,concreteType:"UserPrehireFallbackData",kind:"LinkedField",name:"prehire_fallback_data",plural:!1,selections:[{alias:"statuses",args:null,concreteType:"CandidatePortalPrehireChecklistStatuses",kind:"LinkedField",name:"checklist_statuses",plural:!1,selections:[{alias:"workdayTaskStatus",args:null,kind:"ScalarField",name:"workday_additional_tasks",storageKey:null}],storageKey:null},e],storageKey:null},G={alias:"thankYouMessage",args:null,kind:"ScalarField",name:"thank_you_message",storageKey:null},H={alias:null,args:null,concreteType:"XCPInHouseAutomatedAssessmentConfigurationExport",kind:"LinkedField",name:"assessment_configuration",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_ica_pilot_configuration",storageKey:null},e],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalUpdateExistingRecruitingAgentConversationMutation",selections:[{alias:null,args:c,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"xcp_query_existing_recruiting_agent_conversation",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[d,{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExportExchangesConnection",kind:"LinkedField",name:"exchanges",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[{kind:"RequiredField",field:e,action:"THROW"},f,{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotAgentMessage_exchange"}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotConversationCTASection_conversation"},{alias:null,args:null,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"consideration",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotConsiderationCTASection_consideration"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalUpdateExistingRecruitingAgentConversationMutation",selections:[{alias:null,args:c,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"xcp_query_existing_recruiting_agent_conversation",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[d,{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExportExchangesConnection",kind:"LinkedField",name:"exchanges",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,f,{alias:null,args:null,kind:"ScalarField",name:"response",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"generation_status",storageKey:null},{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[e,{alias:null,args:null,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"consideration",plural:!1,selections:[{alias:null,args:null,concreteType:"CPUser",kind:"LinkedField",name:"user",plural:!1,selections:[g,e],storageKey:null},h,{alias:null,args:null,concreteType:"UserJobApplication",kind:"LinkedField",name:"job_app",plural:!1,selections:i,storageKey:null},e,j],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_helpful",storageKey:null},{alias:null,args:null,concreteType:"XCPCandidateChatbotExchangeAgentDebuggingData",kind:"LinkedField",name:"agent_debugging_data",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"dialog_serialized",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sunflower_inference_input_serialized",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"time_ms",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},e,{alias:null,args:null,kind:"ScalarField",name:"conversation_ctas",storageKey:null},{alias:null,args:null,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"consideration",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"current_ctas",storageKey:null},{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[e,{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationStageObject",kind:"LinkedField",name:"stages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},k],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CandidatePortalJobApplicationV2InterviewEvent",kind:"LinkedField",name:"current_interview_event",plural:!1,selections:[k,{alias:null,args:null,kind:"ScalarField",name:"interview_title",storageKey:null},l,{alias:null,args:null,kind:"ScalarField",name:"loop_id",storageKey:null},{alias:null,args:null,concreteType:"CandidatePortalJobApplicationDailyAgenda",kind:"LinkedField",name:"daily_agendas",plural:!0,selections:[{alias:null,args:null,concreteType:"CandidatePortalJobApplicationAgendaItem",kind:"LinkedField",name:"agenda_items",plural:!0,selections:[l,m,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coderpad_link",storageKey:null},{alias:null,args:null,concreteType:"CandidatePortalJobApplicationAgendaThirdPartyTools",kind:"LinkedField",name:"third_party_tools",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"excalidraw_link",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"interview_loop_line_candidate_response",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"interview_loop_line_id",storageKey:null},n],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"loop",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBPartialDeclineEligibility",kind:"LinkedField",name:"partial_decline_eligibilty",plural:!1,selections:[o],storageKey:null},{alias:null,args:null,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"consideration",plural:!1,selections:[h,e],storageKey:null},e,{alias:null,args:null,concreteType:"CandidateDrivenReschedulingEligibility",kind:"LinkedField",name:"reschedule_eligibilty",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"was_originally_eligible",storageKey:null},p,{alias:null,args:null,kind:"ScalarField",name:"is_onsite",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"candidate_response",storageKey:null},m,q,{alias:null,args:null,kind:"ScalarField",name:"video_call_link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"zoom_meeting_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"zoom_passcode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"online_questionnaire_id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"UserJobApplication",kind:"LinkedField",name:"job_app",plural:!1,selections:[{alias:"offerFormStatus",args:null,kind:"ScalarField",name:"offer_form_status",storageKey:null},{alias:null,args:null,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"consideration",plural:!1,selections:[{alias:"app",args:null,concreteType:"XCPProdCandidateApplicationExport",kind:"LinkedField",name:"candidate_application",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdCandidateOfferExport",kind:"LinkedField",name:"offer",plural:!1,selections:[{alias:"additionalInfoForm",args:null,concreteType:"XCPProdCandidateOfferAcceptDataCollectionFormExport",kind:"LinkedField",name:"offer_accept_data_form",plural:!1,selections:[{alias:"formStatus",args:null,kind:"ScalarField",name:"form_status",storageKey:null},e],storageKey:null},e],storageKey:null},e],storageKey:null},e],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unencoded_id",storageKey:null},{alias:"offerFormStatusDateModified",args:null,kind:"ScalarField",name:"offer_form_status_date_modified",storageKey:null},{alias:null,args:null,concreteType:"CPUser",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfileResume",kind:"LinkedField",name:"resume",plural:!1,selections:[{alias:"dateCreated",args:null,kind:"ScalarField",name:"date_created",storageKey:null},e],storageKey:null},e,s,{alias:"sentOfferApplication",args:null,concreteType:"UserJobApplication",kind:"LinkedField",name:"sent_offer_application",plural:!1,selections:[t,e,{alias:"expectedStartDate",args:null,kind:"ScalarField",name:"expected_start_date",storageKey:null}],storageKey:null}],storageKey:null},e,u,v,w,x,y,z,A,B,C,D,E,F,{alias:"mockInterviewJobApplications",args:null,concreteType:"UserJobApplication",kind:"LinkedField",name:"mock_interview_job_applications",plural:!0,selections:i,storageKey:null}],storageKey:null},{alias:"isNDASigned",args:null,kind:"ScalarField",name:"is_nda_signed",storageKey:null},{alias:"immigrationForm",args:null,concreteType:"XCPProdImmigrationFormExport",kind:"LinkedField",name:"immigration_form",plural:!1,selections:[{alias:"submissionTime",args:null,kind:"ScalarField",name:"submission_time",storageKey:null},e],storageKey:null},{alias:"hasFilledEeoForm",args:null,kind:"ScalarField",name:"has_filled_eeo_form",storageKey:null},{alias:"interviewLoops",args:null,concreteType:"UserJobApplicationInterviewLoopsConnection",kind:"LinkedField",name:"interview_loops",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:"thankYouNotes",args:null,concreteType:"InterviewThankYouNoteDataInfo",kind:"LinkedField",name:"thank_you_notes",plural:!0,selections:[{alias:"thankYouNote",args:null,concreteType:"XCPInterviewThankYouNoteExport",kind:"LinkedField",name:"thank_you_note",plural:!1,selections:[G,e],storageKey:null}],storageKey:null},e],storageKey:null}],storageKey:null},{alias:"eligibleForCodingPractice",args:null,kind:"ScalarField",name:"eligible_for_coding_practice",storageKey:null},{alias:"interviewPrepMaterial",args:null,concreteType:"CandidatePortalInterviewPrepMaterial",kind:"LinkedField",name:"interview_prep_material",plural:!0,selections:r,storageKey:null},e,{alias:null,args:null,concreteType:"CandidatePortalJobApplicationV2InterviewEvent",kind:"LinkedField",name:"current_mock_interview_event",plural:!1,selections:[k],storageKey:null},{alias:null,args:null,concreteType:"UserJobApplicationInterviewLoopsConnection",kind:"LinkedField",name:"interview_loops",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,{alias:"thankYouNotes",args:null,concreteType:"InterviewThankYouNoteDataInfo",kind:"LinkedField",name:"thank_you_notes",plural:!0,selections:[{alias:"interviewerName",args:null,kind:"ScalarField",name:"interviewer_name",storageKey:null},{alias:"loopLineID",args:null,kind:"ScalarField",name:"loop_line_id",storageKey:null},{alias:"thankYouNote",args:null,concreteType:"XCPInterviewThankYouNoteExport",kind:"LinkedField",name:"thank_you_note",plural:!1,selections:[G,{alias:"timeSent",args:null,kind:"ScalarField",name:"time_sent",storageKey:null},e],storageKey:null}],storageKey:null},{alias:"interviewEndTime",args:null,kind:"ScalarField",name:"interview_end_time",storageKey:null},{alias:"interviewStartTime",args:null,kind:"ScalarField",name:"interview_start_time",storageKey:null},q],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CPUser",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[g,e,s,{alias:"sentOfferApplication",args:null,concreteType:"UserJobApplication",kind:"LinkedField",name:"sent_offer_application",plural:!1,selections:[t,e],storageKey:null}],storageKey:null},e,{alias:"hasTechSetupAccess",args:null,kind:"ScalarField",name:"has_tech_setup_access",storageKey:null},u,v,w,x,y,z,A,B,C,D,E,F],storageKey:null},e,j,{alias:null,args:null,concreteType:"XCPProdHiringConsiderationExportAutomatedAssessmentsConnection",kind:"LinkedField",name:"automated_assessments",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPInHouseAutomatedAssessmentExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[H,{alias:null,args:null,kind:"ScalarField",name:"assessment_status",storageKey:null},p,e,{alias:null,args:null,kind:"ScalarField",name:"is_expired",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPProdHiringConsiderationExportCodeSignalSessionsConnection",kind:"LinkedField",name:"code_signal_sessions",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdCodeSignalSessionExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XCPInHouseAutomatedAssessmentExport",kind:"LinkedField",name:"automated_assessment",plural:!1,selections:[H,e],storageKey:null},e,{alias:null,args:null,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"interview_loop",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"interview_start_time",storageKey:null},e],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"invitation_url",storageKey:null},k],storageKey:null}],storageKey:null},h,{alias:null,args:null,kind:"ScalarField",name:"nda_link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_nda_signed",storageKey:null},{alias:null,args:null,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"recent_interview_loop",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"XCPProdAutoCandidateAvailabilityInvitationExport",kind:"LinkedField",name:"latest_auto_candidate_availability_invitation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"aca_token",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"potential_date_range_end",storageKey:null},e],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_candidate_driven_scheduling_eligible",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_intern_hire_type_from_offer",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expected_start_date",storageKey:null}],storageKey:null}],storageKey:null},e],storageKey:null}]},params:{id:b("CandidatePortalUpdateExistingRecruitingAgentConversationMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalUpdateExistingRecruitingAgentConversationMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CPRecruitingAgentLandingPageComposer.react",["fbt","ix","CPRecruitingAgentLandingPageComposer_user.graphql","CandidatePortalBrowserSession","CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation","CandidatePortalLoggingUtils","CandidatePortalRouteConfigs","CandidatePortalUpdateExistingRecruitingAgentConversationMutation","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoIcon.react","GeoSelectableList.react","GeoSelectableListGenericItem.react","KDSComposer.react","KDSLink.react","KDSText.react","MetaBrandVerticalLinesSpeechBubbleStackedOutline24.svg.react","RelayHooks","emptyFunction","fbicon","formatDate","geoMargin","geoWidth","react","useCPNavigate","useCandidatePortalImpressionLog","useCandidatePortalMobileBreakpoint"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useState,n={composerWidth:{maxWidth:"x11gisft",$$css:!0}},o=j!==void 0?j:j=b("CPRecruitingAgentLandingPageComposer_user.graphql");function a(a){var b;a=a.user;var e=c("useCandidatePortalMobileBreakpoint")(),f=d("RelayHooks").useFragment(o,a);a=f.latest_chat_bot_conversation!=null;b=(b=f.latest_chat_bot_conversation)==null?void 0:b.date_created;var g=d("RelayHooks").useMutation(d("CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation").mutation),j=g[0];g=g[1];var k=d("RelayHooks").useMutation(d("CandidatePortalUpdateExistingRecruitingAgentConversationMutation").mutation),q=k[0];k=k[1];var r=m(null),s=r[0],t=r[1];r=m("");var u=r[0],v=r[1];r=c("useCPNavigate")();var w=r.cpNavigate,x=function(){w(d("CandidatePortalRouteConfigs").routes.FIND_A_ROLE)},y=function(a){var b;q({variables:{input:{conversation_id:(b=(b=f.latest_chat_bot_conversation)==null?void 0:b.id)!=null?b:"",prompt:a,session_id:d("CandidatePortalBrowserSession").getSessionKey()}},onCompleted:function(){return x()},onError:function(a){t(h._(/*BTDS*/"Something went wrong. Please try again later or submit a bug.").toString())}})},z=function(a){j({onCompleted:function(){return x()},onError:function(a){t(h._(/*BTDS*/"Something went wrong. Please try again later or submit a bug.").toString())},variables:{input:{prompt:a,session_id:d("CandidatePortalBrowserSession").getSessionKey()}}})},A=function(a){var b;d("CandidatePortalLoggingUtils").logCriticalAction("CANDIDATE_CHATBOT_LANDING_PAGE","CAREER_PROFILE_USE_AI_CLICK");((b=f.latest_chat_bot_conversation)==null?void 0:b.id)==null?z(a):y(a)};c("useCandidatePortalImpressionLog")("CANDIDATE_CHATBOT_LANDING_PAGE");r=a&&b!=null;a=r?c("formatDate")(b,"F j"):null;b=r?c("formatDate")(b,"g:i A"):null;return l.jsxs(l.Fragment,{children:[l.jsx(c("GeoFlexbox.react"),{gap:16,grow:0,justifyContent:"center",wrap:"wrap",xstyle:[c("geoWidth").fullWidth,c("geoMargin").top16,c("geoMargin").bottom24],children:l.jsx(c("KDSComposer.react"),{attachments:[],description:r?l.jsx(c("KDSLink.react"),{linkProps:{url:d("CandidatePortalRouteConfigs").routes.FIND_A_ROLE},variant:"secondary",children:h._(/*BTDS*/"Last message sent on {last message sent Date} at {last message sent time}",[h._param("last message sent Date",a),h._param("last message sent time",b)])}):void 0,disclaimerIcon:c("MetaBrandVerticalLinesSpeechBubbleStackedOutline24.svg.react"),inputState:g||k?"LOADING":void 0,isMultiline:!0,onChange:function(a){v(a)},onFilesSelected:c("emptyFunction"),onSubmit:function(){return A(u)},placeholder:r?"Continue conversation with the assistant...":"Ask about roles or ask a question...",showUploadAttachmentButton:!1,supportedFiles:[],value:u,xstyle:e?null:n.composerWidth})}),l.jsx(c("GeoFlexbox.react"),{gap:16,grow:0,justifyContent:"center",wrap:"wrap",children:l.jsxs(c("GeoSelectableList.react"),{onSelectionChange:function(a){return A(a[0])},selectionType:"single",variant:"divided",children:[l.jsx(p,{icon:d("fbicon")._(i("827321"),16),itemID:"Use my resume to help me find matching roles at Meta",label:h._(/*BTDS*/"Use my resume to help me find matching roles at Meta")}),l.jsx(p,{icon:d("fbicon")._(i("562528"),16),itemID:"Can you tell me about the recruiting process at Meta?",label:h._(/*BTDS*/"Can you tell me about the recruiting process at Meta?")}),l.jsx(p,{icon:d("fbicon")._(i("520627"),16),itemID:"How should I prepare for an interview at Meta?",label:h._(/*BTDS*/"How should I prepare for an interview at Meta?")})]})}),s!=null&&l.jsx(c("GeoGuidanceCard.react"),{header:l.jsx(c("GeoGuidanceCardHeader.react"),{heading:"Error"}),status:"error",xstyle:c("geoMargin").horiz24,children:l.jsx(c("GeoGuidanceCardContent.react"),{children:s})})]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.icon,d=a.itemID;a=a.label;return l.jsx(c("GeoSelectableListGenericItem.react"),{itemID:d,children:l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[l.jsx(c("GeoIcon.react"),{icon:b,isDisabled:!0,xstyle:c("geoMargin").end16}),l.jsx(c("KDSText.react"),{color:"secondary",children:a})]})})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),226);
-----