CandidatePortalApplicationSidePanelRescheduleLink.react",["fbt","ix","CandidatePortalACAUtils","CandidatePortalApplicationSidePanelRescheduleLinkMutation.graphql","CandidatePortalApplicationSidePanelRescheduleLink_interviewEvent.graphql","CandidatePortalChatbotSchedulingSuspenseModal.react","CandidatePortalGeoIllustrationDialog.react","CandidatePortalImage.react","CandidatePortalLoggingUtils","CandidatePortalStatusToast.react","CandidatePortalURLQueryParamsContext","GeoBaseText.react","GeoButton.react","GeoCancelButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","JSResourceForInteraction","RelayHooks","clearInterval","err","fbicon","geoMargin","react","setInterval","useBoolean","useCandidatePortalImpressionLog","useCandidatePortalMobileBreakpoint","useCurrentRoute","useGeoLazyModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=1e3,q=c("JSResourceForInteraction")("CandidatePortalApplicationSidePanelRescheduleModal.react").__setRef("CandidatePortalApplicationSidePanelRescheduleLink.react"),r=j!==void 0?j:j=b("CandidatePortalApplicationSidePanelRescheduleLink_interviewEvent.graphql"),s=k!==void 0?k:k=b("CandidatePortalApplicationSidePanelRescheduleLinkMutation.graphql");function t(a){var b=a.interviewCount,e=a.isShown,f=a.loopID,g=a.onHide;a=c("useBoolean")(!1);var i=a.set;a=a.value;var j=n(c("CandidatePortalURLQueryParamsContext"));j=j.viewasUserID;j=j!=null;var k=c("useCandidatePortalMobileBreakpoint")(),l=d("RelayHooks").useMutation(s),o=l[0];l=l[1];var p=c("useGeoLazyModal")(q,function(a){return m.jsx(c("CandidatePortalChatbotSchedulingSuspenseModal.react"),{onHide:a})}),r=p[0],t=p[1];p=c("useCurrentRoute")();var u=String((p=p==null?void 0:(p=p.params)==null?void 0:p.consideration_id)!=null?p:"0"),v={payload:{loop_id:f,is_mobile:k,reschedule_eligibilty:!0}};c("useCandidatePortalImpressionLog")("REQUEST_RESCHEDULE",v,e);p=h._(/*BTDS*/"_j{"*":{"*":"We advise against rescheduling interviews unless necessary, as it can cause significant disruptions to our hiring process and impact your application status. Rescheduling applies to all interviews and can only be done once, potentially delaying your interview process."},"_1":{"_1":"We advise against rescheduling an interview unless necessary, as it can cause significant disruptions to our hiring process and impact your application status. Rescheduling can only be done once, potentially delaying your interview process."}}",[h._plural(b),h._plural(b)]);var w=h._(/*BTDS*/"If you need to reschedule some of your interviews, please contact your coordinator."),x=h._(/*BTDS*/"Please provide updated availability before submitting your request."),y=h._(/*BTDS*/"In case of an emergency, please notify us as soon as possible.");j=m.jsx(c("GeoButton.react"),{disabledMessage:j?"You can not do this action on behalf of the candidate":null,grow:k?"fill":"auto",isDisabled:l||j,isLoading:l,label:h._(/*BTDS*/"Reschedule"),onClick:function(){d("CandidatePortalLoggingUtils").logAction("REQUEST_RESCHEDULE","RESCHEDULE_OPEN_ACA"),d("CandidatePortalLoggingUtils").logCriticalAction("CREATE_RESCHEDULE_ACA","SUBMIT_MUTATION",v),t(),o({onCompleted:function(a){var b;b=(b=a.candidate_portal_create_reschedule_aca)==null?void 0:b.reschedule_aca_invitation;b=d("CandidatePortalACAUtils").getACAToken(b);if(b==null){i(!0);d("CandidatePortalLoggingUtils").logError("CREATE_RESCHEDULE_ACA",100,"SUBMIT_MUTATION_NO_INVITATION",c("err")("No invitation returned"),{payload:babelHelpers["extends"]({},v.payload,{aca_id:a==null?void 0:(a=a.candidate_portal_create_reschedule_aca)==null?void 0:(a=a.reschedule_aca_invitation)==null?void 0:a.id})});return}g();r({considerationID:u,acaToken:b})},variables:{input:{loop_id:f}},onError:function(a){i(!0),d("CandidatePortalLoggingUtils").logError("CREATE_RESCHEDULE_ACA",100,"SUBMIT_MUTATION_ERROR",a,v)}})},target:"_blank"});k=m.jsx(c("GeoCancelButton.react"),{grow:k?"fill":"auto",isDisabled:l,onClick:g,variant:"primary"});l=m.jsx(c("CandidatePortalStatusToast.react"),{bodyText:h._(/*BTDS*/"Unable to reschedule interview at this time. Please try again or contact your coordinator for assistance."),headerText:h._(/*BTDS*/"Unable to Reschedule Interview"),onClose:function(){return i(!1)},status:"error"});k=m.jsx(c("GeoModalFooter.react"),{primaryButton:k,secondaryButton:j});j=h._(/*BTDS*/"_j{"*":"Reschedule Interviews","_1":"Reschedule Interview"}",[h._plural(b)]);b=m.jsxs(c("GeoSection.react"),{children:[m.jsx(c("GeoHeading.react"),{level:2,children:j}),m.jsx(c("GeoText.react"),{display:"block",xstyle:[c("geoMargin").top8,c("geoMargin").bottom16],children:p}),m.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:m.jsxs("ul",babelHelpers["extends"]({className:"x1swvt13 x1yztbdb xs6hwqx"},{children:[m.jsx("li",{children:m.jsx(c("GeoText.react"),{children:w})}),m.jsx("li",{children:m.jsx(c("GeoText.react"),{children:x})}),m.jsx("li",{children:m.jsx(c("GeoText.react"),{children:y})})]}))}),a&&l]});return m.jsx(c("CandidatePortalGeoIllustrationDialog.react"),{body:b,footer:k,header:j,image:m.jsx(c("CandidatePortalImage.react"),{className:"xtc6z2u",src:"desktop/2x/EngageWithRecruiter2x.png",width:"100%"}),isShown:e,onHide:function(){d("CandidatePortalLoggingUtils").logAction("REQUEST_RESCHEDULE","HIDE_RESCHEDULE_MODAL",v),g()}})}t.displayName=t.name+" [from "+f.id+"]";function a(a){a=a.interviewEvent;a=d("RelayHooks").useFragment(r,a);var b=a.loop,e=a.timezone,f=function(a,c){return((a=b.reschedule_eligibilty)==null?void 0:a.deadline_time)!=null&&((c=b.reschedule_eligibilty)==null?void 0:c.deadline_time)>Date.now()/p}(),g=c("useBoolean")(!1),j=g.set;g=g.value;var k=c("useBoolean")(f),l=k.set;k=k.value;o(function(){var a=c("setInterval")(function(){l(f)},p);return function(){return c("clearInterval")(a)}},[f,l]);var n=b.reschedule_eligibilty,q=n==null?void 0:n.deadline_time,s=n!=null&&n.was_originally_eligible===!0&&q!=null,u=m.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:h._(/*BTDS*/"Please reach out to your coordinator if you wish to reschedule.")});if(!s&&(n==null?void 0:n.is_onsite)===!0)return u;if(!s)return null;u=k&&(b==null?void 0:(n=b.reschedule_eligibilty)==null?void 0:n.is_eligible)===!0;s=q!=null?function(){var a=new Date(q*p),b=a.toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"});a=a.toLocaleTimeString(void 0,babelHelpers["extends"]({hour:"numeric",minute:"numeric",hour12:!0,timeZoneName:"short"},e!=null&&{timeZone:e}));return h._(/*BTDS*/"You can reschedule your interviews from Career Profile until {date} at {time}. If you need to reschedule after this time, please reach out to your coordinator.",[h._param("date",b),h._param("time",a)])}():h._(/*BTDS*/"Please reach out to your coordinator if you wish to reschedule.");k=m.jsx(c("GeoBaseText.react"),{color:"link",display:"inline",isDisabled:!u,size:"value",children:h._(/*BTDS*/"Reschedule interview")});n=u?m.jsx(c("GeoLink.react"),{onClick:function(){d("CandidatePortalLoggingUtils").logAction("REQUEST_RESCHEDULE","SHOW_RESCHEDULE_MODAL"),j(!0)},showUnderline:"never",children:k}):k;u=a.daily_agendas.reduce(function(a,b){b=b.agenda_items;return a+b.length},0);return m.jsxs(m.Fragment,{children:[m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",gap:4,children:[n,m.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("479176"),16),isLabelHidden:!0,label:"info",tooltip:s,variant:"flat",width:10})]}),m.jsx(t,{interviewCount:u,isShown:g,loopID:b.id,onHide:function(){return j(!1)}})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CandidatePortalApplicationSidePanelRescheduleLinkMutation.graphql",["CandidatePortalApplicationSidePanelRescheduleLinkMutation_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:"aca_token",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalApplicationSidePanelRescheduleLinkMutation",selections:[{alias:null,args:c,concreteType:"CandidatePortalCreateRescheduleAcaResponsePayload",kind:"LinkedField",name:"candidate_portal_create_reschedule_aca",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdAutoCandidateAvailabilityInvitationExport",kind:"LinkedField",name:"reschedule_aca_invitation",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"CandidatePortalACAUtils_createCalendarLink",selections:[e],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalApplicationSidePanelRescheduleLinkMutation",selections:[{alias:null,args:c,concreteType:"CandidatePortalCreateRescheduleAcaResponsePayload",kind:"LinkedField",name:"candidate_portal_create_reschedule_aca",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdAutoCandidateAvailabilityInvitationExport",kind:"LinkedField",name:"reschedule_aca_invitation",plural:!1,selections:[d,e],storageKey:null}],storageKey:null}]},params:{id:b("CandidatePortalApplicationSidePanelRescheduleLinkMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalApplicationSidePanelRescheduleLinkMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalApplicationSidePanelRescheduleLinkMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24370835072503546"}),null);
-----