useAutoStartInitialPrescreen",["fbt","CandidatePortalBrowserSession","CandidatePortalLoggingUtils","CandidatePortalPrescreenStartMutation.graphql","MCDSToast.react","RelayHooks","URI","gkx","react","useAutoStartInitialPrescreen_consideration.graphql","useMCDSToaster","useToggle"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c,p=m.useEffect,_=m.useRef,f=s._(/*BTDS*/"There was an error starting your prescreen. Please refresh and try again."),g=e!==void 0?e:e=n("useAutoStartInitialPrescreen_consideration.graphql");function h(e){var t,n=o("RelayHooks").useFragment(g,e),a=n==null?void 0:n.id,i=(n==null||(t=n.initial_prescreen)==null?void 0:t.id)!=null,l=r("useToggle")(!1),s=l[0],c=l[1],m=r("useMCDSToaster")(),h=m.add,y=o("RelayHooks").useMutation(r("CandidatePortalPrescreenStartMutation.graphql")),C=y[0],b=_(!1),v=new(u||(u=r("URI")))(window.location.href).getQueryData().auto_start_prescreen==="true";p(function(){if(v&&!b.current&&!i&&a!=null&&r("gkx")("1638")){b.current=!0;var e=o("CandidatePortalBrowserSession").getSessionKey();o("CandidatePortalLoggingUtils").logAction("INITIAL_PRESCREEN","INITIAL_PRESCREEN_AUTO_START",{payload:{considerationID:a,infra:"RECRUITER_AGENT"}}),C({variables:{input:{consideration_id:a,session_id:e}},onCompleted:function(){o("CandidatePortalLoggingUtils").logAction("INITIAL_PRESCREEN","INITIAL_PRESCREEN_AUTO_START_SUCCESS",{payload:{considerationID:a,infra:"RECRUITER_AGENT"}}),c(!0)},onError:function(t){h(d.jsx(r("MCDSToast.react"),{message:f})),o("CandidatePortalLoggingUtils").logError("INITIAL_PRESCREEN",100,"INITIAL_PRESCREEN_AUTO_START_ERROR",t,{payload:{considerationID:a,infra:"RECRUITER_AGENT"}})}})}},[h,v,C,a,i,c]);var S=_(a);return p(function(){S.current!==a&&(S.current=a,c(!1),b.current=!1)},[a,c]),{showInitialPrescreen:s,toggleShowInitialPrescreen:c}}l.default=h}),226);
-----
CandidatePortalChatbotFollowUpQuestionnaireStartCTAV3.react",["fbt","CandidatePortalBrowserSession","CandidatePortalChatbotContext","CandidatePortalChatbotConversationCTAItemV3.react","CandidatePortalChatbotFollowUpQuestionnaireStartCTAV3_consideration.graphql","CandidatePortalCreateEmptyChatMutation.graphql","CandidatePortalLoggingUtils","CandidatePortalPrescreenStartMutation.graphql","MCDSFlexbox.react","MCDSToast.react","RelayHooks","fbs","react","useCandidatePortalChatbotFollowUpQuestionnaire","useMCDSToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useCallback,m=h._(/*BTDS*/"There was an error starting your prescreen. Please refresh and try again."),n=i!==void 0?i:i=b("CandidatePortalChatbotFollowUpQuestionnaireStartCTAV3_consideration.graphql");function a(a){var b,e=a.consideration;a=a.isDisabled;var f=d("RelayHooks").useFragment(n,e);e=d("CandidatePortalChatbotContext").useCandidatePortalChatbotContext();var g=e.setIntent;e=d("RelayHooks").useMutation(c("CandidatePortalCreateEmptyChatMutation.graphql"));var i=e[0];e=e[1];var j=d("RelayHooks").useMutation(c("CandidatePortalPrescreenStartMutation.graphql")),o=j[0];j=j[1];var p=c("useMCDSToaster")(),q=p.add;p=c("useCandidatePortalChatbotFollowUpQuestionnaire")(f);p=p.hasFollowUpStage;var r=f==null||(b=f.conversation)==null?void 0:b.id,s=l(function(){if(r==null&&(f==null?void 0:f.has_chatbot_eligibility_post_matching)!==!0)return;g("FOLLOW_UP_QUESTIONNAIRE");var a=d("CandidatePortalBrowserSession").getSessionKey();d("CandidatePortalLoggingUtils").logAction("CANDIDATE_CHATBOT","CHATBOT_FOLLOW_UP_QUESTIONNAIRE_CTA_CLICK",{payload:{conversationID:r,intent:"FOLLOW_UP_QUESTIONNAIRE",infra:"RECRUITER_AGENT"}});var b=function(a){q(k.jsx(c("MCDSToast.react"),{message:m})),d("CandidatePortalLoggingUtils").logError("CANDIDATE_CHATBOT",100,"CHATBOT_RESPONSE_ERROR",a,{payload:{conversationID:r,intent:"FOLLOW_UP_QUESTIONNAIRE",infra:"RECRUITER_AGENT"}})};if(r==null){var e;i({variables:{consideration_id:(e=f==null?void 0:f.id)!=null?e:"",session_id:a},onError:b})}else o({variables:{input:{conversation_id:r,session_id:a}},onError:b})},[q,o,i,r,f==null?void 0:f.has_chatbot_eligibility_post_matching,f==null?void 0:f.id,g]);return f==null||p?null:k.jsx(c("MCDSFlexbox.react"),{direction:"column",gap:16,children:k.jsx(c("CandidatePortalChatbotConversationCTAItemV3.react"),{buttonLabel:h._(/*BTDS*/"Get started"),isDisabled:a||j||e,isLoading:j||e,onButtonClick:s,title:c("fbs")._(/*BTDS*/"Answer informational questions"),tooltip:h._(/*BTDS*/"Answering these questions will not impact the outcome of your application process. Your responses will help us get a better sense of your skills and experience.")})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CandidatePortalPrescreenStartMutation.graphql",["CandidatePortalPrescreenStartMutation_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:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"prompt",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"response",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"intent",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"step",storageKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"selections",storageKey:null}],type:"XCPChatbotSchedulingInterviewScheduleSelections",abstractKey:null},j=[{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"loop_line_request_id",storageKey:null}];j={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"loop",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"timezone",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPCPSchedulingInterviewSlot",kind:"LinkedField",name:"available_slots",plural:!0,selections:j,storageKey:null},{alias:null,args:null,concreteType:"XCPCPSchedulingInterviewSlot",kind:"LinkedField",name:"recommended_schedule",plural:!0,selections:j,storageKey:null}],type:"XCPChatbotSchedulingAvailableAndRecommendedInterviewSchedules",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalPrescreenStartMutation",selections:[{alias:null,args:c,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"xcp_candidate_portal_prescreen_start",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:[d,e,f,g,{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotConversationCTASection_conversation"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"scheduling",plural:!1,selections:[h,i,j],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalPrescreenStartMutation",selections:[{alias:null,args:c,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"xcp_candidate_portal_prescreen_start",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:[d,e,f,g,{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"conversation_ctas",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"scheduling",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h,i,j],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},d],storageKey:null}]},params:{id:b("CandidatePortalPrescreenStartMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalPrescreenStartMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalPrescreenStartMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="23915405831448648"}),null);
-----
-----
CandidatePortalChatbotFollowUpQuestionnaireStartCTAV3.react",["fbt","CandidatePortalBrowserSession","CandidatePortalChatbotContext","CandidatePortalChatbotConversationCTAItemV3.react","CandidatePortalChatbotFollowUpQuestionnaireStartCTAV3_consideration.graphql","CandidatePortalCreateEmptyChatMutation.graphql","CandidatePortalLoggingUtils","CandidatePortalPrescreenStartMutation.graphql","MCDSFlexbox.react","MCDSToast.react","RelayHooks","fbs","react","useCandidatePortalChatbotFollowUpQuestionnaire","useMCDSToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useCallback,m=h._(/*BTDS*/"There was an error starting your prescreen. Please refresh and try again."),n=i!==void 0?i:i=b("CandidatePortalChatbotFollowUpQuestionnaireStartCTAV3_consideration.graphql");function a(a){var b,e=a.consideration;a=a.isDisabled;var f=d("RelayHooks").useFragment(n,e);e=d("CandidatePortalChatbotContext").useCandidatePortalChatbotContext();var g=e.setIntent;e=d("RelayHooks").useMutation(c("CandidatePortalCreateEmptyChatMutation.graphql"));var i=e[0];e=e[1];var j=d("RelayHooks").useMutation(c("CandidatePortalPrescreenStartMutation.graphql")),o=j[0];j=j[1];var p=c("useMCDSToaster")(),q=p.add;p=c("useCandidatePortalChatbotFollowUpQuestionnaire")(f);p=p.hasFollowUpStage;var r=f==null||(b=f.conversation)==null?void 0:b.id,s=l(function(){if(r==null&&(f==null?void 0:f.has_chatbot_eligibility_post_matching)!==!0)return;g("FOLLOW_UP_QUESTIONNAIRE");var a=d("CandidatePortalBrowserSession").getSessionKey();d("CandidatePortalLoggingUtils").logAction("CANDIDATE_CHATBOT","CHATBOT_FOLLOW_UP_QUESTIONNAIRE_CTA_CLICK",{payload:{conversationID:r,intent:"FOLLOW_UP_QUESTIONNAIRE",infra:"RECRUITER_AGENT"}});var b=function(a){q(k.jsx(c("MCDSToast.react"),{message:m})),d("CandidatePortalLoggingUtils").logError("CANDIDATE_CHATBOT",100,"CHATBOT_RESPONSE_ERROR",a,{payload:{conversationID:r,intent:"FOLLOW_UP_QUESTIONNAIRE",infra:"RECRUITER_AGENT"}})};if(r==null){var e;i({variables:{consideration_id:(e=f==null?void 0:f.id)!=null?e:"",session_id:a},onError:b})}else o({variables:{input:{conversation_id:r,session_id:a}},onError:b})},[q,o,i,r,f==null?void 0:f.has_chatbot_eligibility_post_matching,f==null?void 0:f.id,g]);return f==null||p?null:k.jsx(c("MCDSFlexbox.react"),{direction:"column",gap:16,children:k.jsx(c("CandidatePortalChatbotConversationCTAItemV3.react"),{buttonLabel:h._(/*BTDS*/"Get started"),isDisabled:a||j||e,isLoading:j||e,onButtonClick:s,title:c("fbs")._(/*BTDS*/"Answer informational questions"),tooltip:h._(/*BTDS*/"Answering these questions will not impact the outcome of your application process. Your responses will help us get a better sense of your skills and experience.")})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CandidatePortalPrescreenStartMutation.graphql",["CandidatePortalPrescreenStartMutation_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:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"prompt",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"response",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"intent",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"step",storageKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"selections",storageKey:null}],type:"XCPChatbotSchedulingInterviewScheduleSelections",abstractKey:null},j=[{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"loop_line_request_id",storageKey:null}];j={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"loop",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"timezone",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPCPSchedulingInterviewSlot",kind:"LinkedField",name:"available_slots",plural:!0,selections:j,storageKey:null},{alias:null,args:null,concreteType:"XCPCPSchedulingInterviewSlot",kind:"LinkedField",name:"recommended_schedule",plural:!0,selections:j,storageKey:null}],type:"XCPChatbotSchedulingAvailableAndRecommendedInterviewSchedules",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalPrescreenStartMutation",selections:[{alias:null,args:c,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"xcp_candidate_portal_prescreen_start",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:[d,e,f,g,{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotConversationCTASection_conversation"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"scheduling",plural:!1,selections:[h,i,j],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalPrescreenStartMutation",selections:[{alias:null,args:c,concreteType:"XCPCandidateChatbotConversationExchangeExport",kind:"LinkedField",name:"xcp_candidate_portal_prescreen_start",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:[d,e,f,g,{alias:null,args:null,concreteType:"XCPCandidateChatbotConversationExport",kind:"LinkedField",name:"conversation",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"conversation_ctas",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"scheduling",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h,i,j],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},d],storageKey:null}]},params:{id:b("CandidatePortalPrescreenStartMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalPrescreenStartMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalPrescreenStartMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="23915405831448648"}),null);
-----