CandidatePortalChatbotSchedulingModal.react",["fbt","CandidatePortalChatbotSchedulingApp.react","CandidatePortalChatbotSchedulingConfigContext","CandidatePortalChatbotSchedulingModalContainer.react","CandidatePortalChatbotSchedulingModalQuery.graphql","CandidatePortalChatbotSchedulingModalSubscription.graphql","CandidatePortalChatbotSchedulingModal_loop.graphql","RelayHooks","react","useCandidatePortalMobileBreakpoint"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d,m=d||(d=o("react")),p=d.useEffect,_=e!==void 0?e:e=n("CandidatePortalChatbotSchedulingModalSubscription.graphql"),f=u!==void 0?u:u=n("CandidatePortalChatbotSchedulingModalQuery.graphql"),g=function(t,n){if(n)return s._(/*BTDS*/"Reschedule remaining interviews");switch(t){case"ONSITE_INTERVIEW":return s._(/*BTDS*/"Schedule full loop interview");case"SCREENING_INTERVIEW":return s._(/*BTDS*/"Schedule screening interview");case"FOLLOW_UP_INTERVIEW":return s._(/*BTDS*/"Schedule follow-up interview");default:return s._(/*BTDS*/"Schedule interview")}},h=c!==void 0?c:c=n("CandidatePortalChatbotSchedulingModal_loop.graphql");function y(e){var t,n,a=o("CandidatePortalChatbotSchedulingConfigContext").useCandidatePortalChatbotSchedulingConfigContext(),i=a.setSchedulingState,l=a.state.loopLineInputIDFilter,s=r("useCandidatePortalMobileBreakpoint")(),u=o("RelayHooks").useFragment(h,e),c=u==null?void 0:u.latest_candidate_initial_scheduling_job,d=c==null||(t=c.interview_availabilities_grouped_by_llr)==null?void 0:t.filter(function(e){return e.disabled_reason==null}),m=d==null||(n=d[0])==null?void 0:n.loop_line_input_id;p(function(){!s&&l==null&&m!=null&&i({loopLineInputIDFilter:m})},[m,s,l,i])}function C(e){var t,n,a,i,l=e.props,u=l.modalProps,c=u.isRescheduling,d=u.onClose,p=l.onClose,C=e.queries.modalQueryRef,b=r("useCandidatePortalMobileBreakpoint")(),v=o("CandidatePortalChatbotSchedulingConfigContext").useCandidatePortalChatbotSchedulingConfigContext(),S=v.setSchedulingState,R=v.state.loopLineInputIDFilter,L=o("RelayHooks").usePreloadedQuery(f,babelHelpers.extends({},C)),E=L==null?void 0:L.fetch__XCPProdHiringConsiderationExport,k=L==null?void 0:L.fetch__XCPProdInterviewLoopExport,I=o("RelayHooks").useFragment(h,k);y(k),o("RelayHooks").useSubscription({subscription:_,variables:{loop_id:(t=C.variables.loopID)!=null?t:""}});var T=function(){d==null||d(),p(),S({loopLineInputIDFilter:null})},D=(n=I.latest_candidate_initial_scheduling_job)==null||(n=n.interview_availabilities_grouped_by_llr)==null||(n=n.find(function(e){return e.loop_line_input_id===R}))==null||(n=n.loop_line_request)==null||(n=n.structured_role)==null?void 0:n.candidate_facing_name,x=b&&R!=null?s._(/*BTDS*/"Choose {link} interview date",[s._param("link",D)]):g((a=(i=E.current_interview_events)!=null?i:[])==null||(a=a[0])==null?void 0:a.interview_title,c);return m.jsx(r("CandidatePortalChatbotSchedulingModalContainer.react"),{content:m.jsx(r("CandidatePortalChatbotSchedulingApp.react"),{consideration:E,isRescheduling:c,loop:k,onClose:T}),header:x,onHide:T})}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226);
-----
CandidatePortalChatbotSchedulingModalQuery.graphql",["CandidatePortalChatbotSchedulingModalQuery_candidate_portalRelayOperation","relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"considerationID"},{defaultValue:null,kind:"LocalArgument",name:"loopID"}],t=[{kind:"Variable",name:"id",variableName:"considerationID"}],r={alias:null,args:null,concreteType:"CandidatePortalJobApplicationV2InterviewEvent",kind:"LinkedField",name:"current_interview_events",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"interview_title",storageKey:null}],storageKey:null},o=[{kind:"Variable",name:"id",variableName:"loopID"}],a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={alias:null,args:null,concreteType:"XCPProdAutoCandidateAvailabilityInvitationExport",kind:"LinkedField",name:"latest_auto_candidate_availability_invitation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"potential_date_range_start",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"potential_date_range_end",storageKey:null},a],storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"automation_type",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"job_start_time",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"job_end_time",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"CandidatePortalChatbotSchedulingModalQuery",selections:[{kind:"RequiredField",field:{alias:null,args:t,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"fetch__XCPProdHiringConsiderationExport",plural:!1,selections:[r,{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotSchedulingApp_consideration"}],storageKey:null},action:"THROW"},{kind:"RequiredField",field:{alias:null,args:o,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"fetch__XCPProdInterviewLoopExport",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotSchedulingApp_loop"},{args:null,kind:"FragmentSpread",name:"CandidatePortalChatbotSchedulingModal_loop"}],storageKey:null},action:"THROW"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"CandidatePortalChatbotSchedulingModalQuery",selections:[{alias:null,args:t,concreteType:"XCPProdHiringConsiderationExport",kind:"LinkedField",name:"fetch__XCPProdHiringConsiderationExport",plural:!1,selections:[r,a,i,{alias:null,args:null,kind:"ScalarField",name:"recruiter_email",storageKey:null},{alias:"conversation",args:null,concreteType:null,kind:"LinkedField",name:"conversation_v2",plural:!1,selections:[l,a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_chatbot_eligibility_post_matching",storageKey:null}],storageKey:null},{alias:null,args:o,concreteType:"XCPProdInterviewLoopExport",kind:"LinkedField",name:"fetch__XCPProdInterviewLoopExport",plural:!1,selections:[a,i,{alias:null,args:null,concreteType:"XCPProdInterviewBuilderJobExport",kind:"LinkedField",name:"latest_candidate_initial_scheduling_job",plural:!1,selections:[a,s,u,c,d,{alias:null,args:null,concreteType:"XCPCPCandidateAggregatedInterviewAvailabilitiesGroupedByLLR",kind:"LinkedField",name:"interview_availabilities_grouped_by_llr",plural:!0,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"loop_line_input_id",storageKey:null},{alias:null,args:null,concreteType:"XCPProdInterviewLoopLineRequestExport",kind:"LinkedField",name:"loop_line_request",plural:!1,selections:[a,{alias:null,args:null,concreteType:"XCPProdStructuredInterviewRoleExport",kind:"LinkedField",name:"structured_role",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"candidate_facing_name",storageKey:null},a],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPCandidateAggregatedInterviewAvailabilitiesForLLR",kind:"LinkedField",name:"interview_availabilities",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"start",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end",storageKey:null},{alias:null,args:null,concreteType:"XCPInterviewerTimeslotData",kind:"LinkedField",name:"interviewer_list",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"interviewer_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_named_interviewer",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_icb",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matched_loop_line_id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPProdInterviewLoopLineExport",kind:"LinkedField",name:"matched_loop_line",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"disabled_reason",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPProdInterviewBuilderJobExport",kind:"LinkedField",name:"latest_candidate_schedule_confirmation_job",plural:!1,selections:[a,s,u,d,c,{alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XCPProdInterviewLoopExportLoopLinesConnection",kind:"LinkedField",name:"loop_lines",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdInterviewLoopLineExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date_created",storageKey:null},a],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:n("CandidatePortalChatbotSchedulingModalQuery_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalChatbotSchedulingModalQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
CandidatePortalChatbotSchedulingModal.entrypoint",["CandidatePortalChatbotSchedulingModalQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{modalQueryRef:{parameters:c("CandidatePortalChatbotSchedulingModalQuery$Parameters"),variables:{considerationID:a.considerationID,loopID:a.loopID}}}}},root:c("JSResourceForInteraction")("CandidatePortalChatbotSchedulingModal.react").__setRef("CandidatePortalChatbotSchedulingModal.entrypoint")};b=a;g["default"]=b}),98);
-----
CandidatePortalChatbotSchedulingModalQuery$Parameters",["CandidatePortalChatbotSchedulingModalQuery_candidate_portalRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CandidatePortalChatbotSchedulingModalQuery_candidate_portalRelayOperation"),metadata:{live:{polling_interval:1500}},name:"CandidatePortalChatbotSchedulingModalQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
CandidatePortalChatbotSchedulingModalQuery_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9835391226540562"}),null);
-----