CareersV2RefreshSearchResultsBookmarkV3.react",["fbt","CandidatePortalBrowserSession","CandidatePortalLoggingUtils","CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql","CandidatePortalRouteConfigs","CandidatePortalURLQueryParamsContext","CareersV2RefreshSearchResultsBookmarkV3Query.graphql","CareersV2Search","CareersV2SearchFiltersStore","MCDSIcon.react","MCDSIconButton.react","MCDSIconRectangleNotchedBottomVerticalFilled.svg.react","MCDSIconRectangleNotchedBottomVerticalOutline.svg.react","MCDSToast.react","RelayHooks","asyncToGeneratorRuntime","filterNulls","nullthrows","react","useBoolean","useCPNavigate","useCandidatePortalRelayMutation","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.useContext,n=e.useEffect,o=e.useMemo,p=e.useRef,q=e.useState,r="action";function a(a){var e=a.isDetailedPage,f=a.isLoggedIn,g=a.passesRefreshGK,j=g===void 0?!0:g,s=a.reqID;g=c("useBoolean")(!1);var t=g.set,u=g.value;a=c("useBoolean")(!1);var v=a.set;g=a.value;var w=c("useCandidatePortalRelayMutation")();a=m(c("CandidatePortalURLQueryParamsContext"));var x=a.viewasUserID,y=c("CareersV2SearchFiltersStore").getInstance();a=c("useCPNavigate")();var z=a.cpGoURI,A=o(function(){return new URL(window.location.href)},[]),B=p(!1);a=d("RelayHooks").useLazyLoadQuery(i!==void 0?i:i=b("CareersV2RefreshSearchResultsBookmarkV3Query.graphql"),{viewasUserID:x});var C=c("useMCDSToaster")(),D=C.add;C=c("filterNulls")((a=(C=a.viewer)==null||(C=C.user)==null||(C=C.profile)==null||(C=C.bookmarked_reqs)==null?void 0:C.nodes)!=null?a:[]);a=C.map(function(a){return c("nullthrows")(a.id)});C=q(a);var E=C[0],F=C[1];n(function(){y.subscribe(function(){F(y.getCurrentSavedJobs())})},[y]);var G=l(function(b,a){b=b===!0?E.concat(a):E.filter(function(b){return b!==a});y.setCurrentSavedJobs(b);!j?y.update():y.notifySubscribersOfChange();F(b)},[E,y,j]),H=l(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("CandidatePortalLoggingUtils").logCriticalAction("CAREERS_SITE_SAVED_JOBS","SUBMIT_CLICK");v(!0);u===!1?G(!0,s):G(!1,s);try{var a=window.location.href;if(a.includes("saved_jobs")&&u===!0&&!j){a=new(c("CareersV2Search"))();a.search("search_result")}t(!u);v(!1);yield w({eventType:"careers.update_saved_jobs",mutation:c("CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql"),mutationData:{requisition_ids:u===!1?E.concat(s):E.filter(function(a){return a!==s}),session_id:d("CandidatePortalBrowserSession").getSessionKey()}});d("CandidatePortalLoggingUtils").logCompletion("CAREERS_SITE_SAVED_JOBS",{payload:{saved_job_ids:s,user_id:x,all_saved_jobs:E}})}catch(a){d("CandidatePortalLoggingUtils").logError("CAREERS_SITE_SAVED_JOBS",100,"USER_PROFILE_UPDATE_SAVED_JOBS_ERROR",a),D(k.jsx(c("MCDSToast.react"),{message:h._(/*BTDS*/"Oops! Something went wrong. Try again!")}))}}),[D,w,E,u,j,s,t,v,G,x]);n(function(){E.includes(s)?t(!0):t(!1)},[E,s,t]);function I(){A.searchParams.set(r,"bookmark"),z(d("CandidatePortalRouteConfigs").routes.SIGNUP+("?redirect="+encodeURIComponent(A.toString())))}n(function(){var a=A.searchParams.get(r)==="bookmark";!B.current&&a&&e&&f&&(void H(),A.searchParams["delete"](r),window.history.pushState({},"",A),B.current=!0)},[f,e,A,s,H]);function J(a){a.preventDefault(),a.stopPropagation(),f?void H():I()}return k.jsx(c("MCDSIconButton.react"),{"aria-label":h._(/*BTDS*/"Bookmark this job"),icon:k.jsx(c("MCDSIcon.react"),{icon:u?c("MCDSIconRectangleNotchedBottomVerticalFilled.svg.react"):c("MCDSIconRectangleNotchedBottomVerticalOutline.svg.react"),size:16}),isDisabled:g,onClick:function(a){return J(a)},type:"border"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CareersV2RefreshSearchResultsBookmark.react",["fbt","ix","Button.react","CandidatePortalBrowserSession","CandidatePortalLoggingUtils","CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql","CandidatePortalSection.react","CandidatePortalURLQueryParamsContext","CareersCPSignupContext","CareersV2RefreshSearchResultsBookmarkQuery.graphql","CareersV2Search","CareersV2SearchFiltersStore","GeoNotice.react","Image.react","RelayHooks","asyncToGeneratorRuntime","compactArray","geoMargin","nullthrows","react","useBoolean","useCandidatePortalRelayMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect,o=e.useState;function a(a){var e=a.isDetailedPage,g=a.isLoggedIn,k=a.reqID;a=c("useBoolean")(!1);var p=a.set,q=a.value;a=c("useBoolean")(!1);var r=a.set;a=a.value;var s=c("useBoolean")(!1),t=s.set;s=s.value;var u=m(d("CareersCPSignupContext").CareersCPSignupContext),v=u.openDialog,w=c("useCandidatePortalRelayMutation")();u=m(c("CandidatePortalURLQueryParamsContext"));var x=u.viewasUserID,y=c("CareersV2SearchFiltersStore").getInstance();u=d("RelayHooks").useLazyLoadQuery(j!==void 0?j:j=b("CareersV2RefreshSearchResultsBookmarkQuery.graphql"),{viewasUserID:x});u=c("compactArray")((u=(u=u.viewer)==null?void 0:(u=u.user)==null?void 0:(u=u.profile)==null?void 0:(u=u.bookmarked_reqs)==null?void 0:u.nodes)!=null?u:[]);u=u.map(function(a){return c("nullthrows")(a.id)});u=o(u);var z=u[0],A=u[1];n(function(){y.subscribe(function(){A(y.getCurrentSavedJobs())})},[y]);var B=function(b,a){b=b===!0?z.concat(a):z.filter(function(b){return b!==a});y.setCurrentSavedJobs(b).update();A(b)},C=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("CandidatePortalLoggingUtils").logCriticalAction("CAREERS_SITE_SAVED_JOBS","SUBMIT_CLICK");r(!0);t(!1);q===!1?B(!0,k):B(!1,k);try{var a=window.location.href;if(a.includes("saved_jobs")&&q===!0){a=new(c("CareersV2Search"))();a.search("search_result")}p(!q);r(!1);yield w({eventType:"careers.update_saved_jobs",mutation:c("CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql"),mutationData:{requisition_ids:q===!1?z.concat(k):z.filter(function(a){return a!==k}),session_id:d("CandidatePortalBrowserSession").getSessionKey()}});d("CandidatePortalLoggingUtils").logCompletion("CAREERS_SITE_SAVED_JOBS",{payload:{saved_job_ids:k,user_id:x,all_saved_jobs:z}})}catch(a){d("CandidatePortalLoggingUtils").logError("CAREERS_SITE_SAVED_JOBS",100,"USER_PROFILE_UPDATE_SAVED_JOBS_ERROR",a),t(!0)}finally{t(!1)}});return function(){return a.apply(this,arguments)}}();function D(){if(q&&!e)return l.jsx(c("Image.react"),{src:i("1405985")});else if(q&&e)return l.jsx(c("Image.react"),{src:i("481172")});else if(!q&&!e)return l.jsx(c("Image.react"),{src:i("495634")});else return l.jsx(c("Image.react"),{src:i("481182")})}D.displayName=D.name+" [from "+f.id+"]";n(function(){z.includes(k)?p(!0):p(!1)},[z,k,p]);return l.jsxs("div",{children:[l.jsx(c("CandidatePortalSection.react"),{name:"Bookmark",role:"form",children:l.jsx("div",{children:l.jsx(c("Button.react"),{className:"x1tsovho xd1rwpp x1gnnqk1 x18u3869 x15fco7f x1efvzf8 x1ksfksn",disabled:a,image:D(),label:"",onMouseDown:function(a){a.stopPropagation(),g?void C():v("career_site_saved_jobs")},supressed:!0})})}),s?l.jsx(c("GeoNotice.react"),{status:"error",xstyle:c("geoMargin").top4,children:h._("Oops! Something went wrong. Try again!")}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql",["CandidatePortalProfileUpdateBookmarkedReqsMutation_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,concreteType:"UserProfileBookmarkedReqsConnection",kind:"LinkedField",name:"bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdRequisitionExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[d],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e,d],storageKey:null}],storageKey:null}]},params:{id:b("CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7591944044211783"}),null);
-----
CareersV2RefreshSearchResultsBookmark.react",["fbt","ix","Button.react","CandidatePortalBrowserSession","CandidatePortalLoggingUtils","CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql","CandidatePortalSection.react","CandidatePortalURLQueryParamsContext","CareersCPSignupContext","CareersV2RefreshSearchResultsBookmarkQuery.graphql","CareersV2Search","CareersV2SearchFiltersStore","GeoNotice.react","Image.react","RelayHooks","asyncToGeneratorRuntime","compactArray","geoMargin","nullthrows","react","useBoolean","useCandidatePortalRelayMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useContext,m=e.useEffect,n=e.useState;function a(a){var e=a.isDetailedPage,g=a.isLoggedIn,o=a.reqID;a=c("useBoolean")(!1);var p=a.set,q=a.value;a=c("useBoolean")(!1);var r=a.set;a=a.value;var s=c("useBoolean")(!1),t=s.set;s=s.value;var u=l(d("CareersCPSignupContext").CareersCPSignupContext),v=u.openDialog,w=c("useCandidatePortalRelayMutation")();u=l(c("CandidatePortalURLQueryParamsContext"));var x=u.viewasUserID,y=c("CareersV2SearchFiltersStore").getInstance();u=d("RelayHooks").useLazyLoadQuery(j!==void 0?j:j=b("CareersV2RefreshSearchResultsBookmarkQuery.graphql"),{viewasUserID:x});u=c("compactArray")((u=(u=u.viewer)==null?void 0:(u=u.user)==null?void 0:(u=u.profile)==null?void 0:(u=u.bookmarked_reqs)==null?void 0:u.nodes)!=null?u:[]);u=u.map(function(a){return c("nullthrows")(a.id)});u=n(u);var z=u[0],A=u[1];m(function(){y.subscribe(function(){A(y.getCurrentSavedJobs())})},[y]);var B=function(b,a){b=b===!0?z.concat(a):z.filter(function(b){return b!==a});y.setCurrentSavedJobs(b).update();A(b)},C=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("CandidatePortalLoggingUtils").logCriticalAction("CAREERS_SITE_SAVED_JOBS","SUBMIT_CLICK");r(!0);t(!1);q===!1?B(!0,o):B(!1,o);try{var a=window.location.href;if(a.includes("saved_jobs")&&q===!0){a=new(c("CareersV2Search"))();a.search("search_result")}p(!q);r(!1);yield w({eventType:"careers.update_saved_jobs",mutation:c("CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql"),mutationData:{requisition_ids:q===!1?z.concat(o):z.filter(function(a){return a!==o}),session_id:d("CandidatePortalBrowserSession").getSessionKey()}});d("CandidatePortalLoggingUtils").logCompletion("CAREERS_SITE_SAVED_JOBS",{payload:{saved_job_ids:o,user_id:x,all_saved_jobs:z}})}catch(a){d("CandidatePortalLoggingUtils").logError("CAREERS_SITE_SAVED_JOBS",100,"USER_PROFILE_UPDATE_SAVED_JOBS_ERROR",a),t(!0)}finally{t(!1)}});return function(){return a.apply(this,arguments)}}();function D(){if(q&&!e)return k.jsx(c("Image.react"),{src:i("1405985")});else if(q&&e)return k.jsx(c("Image.react"),{src:i("481172")});else if(!q&&!e)return k.jsx(c("Image.react"),{src:i("495634")});else return k.jsx(c("Image.react"),{src:i("481182")})}D.displayName=D.name+" [from "+f.id+"]";m(function(){z.includes(o)?p(!0):p(!1)},[]);return k.jsxs("div",{children:[k.jsx(c("CandidatePortalSection.react"),{name:"Bookmark",role:"form",children:k.jsx("div",{children:k.jsx(c("Button.react"),{className:"x1tsovho xd1rwpp x1gnnqk1 x18u3869 x15fco7f x1efvzf8 x1ksfksn",disabled:a,image:D(),label:"",onMouseDown:function(a){a.stopPropagation(),g?void C():v("career_site_saved_jobs")},supressed:!0})})}),s?k.jsx(c("GeoNotice.react"),{status:"error",xstyle:c("geoMargin").top4,children:h._("Oops! Something went wrong. Try again!")}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql",["CandidatePortalProfileUpdateBookmarkedReqsMutation_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,concreteType:"UserProfileBookmarkedReqsConnection",kind:"LinkedField",name:"bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdRequisitionExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[d],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e,d],storageKey:null}],storageKey:null}]},params:{id:b("CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7591944044211783"}),null);
-----
-----
CareersV2RefreshSearchResultsBookmark.react",["fbt","ix","Button.react","CandidatePortalBrowserSession","CandidatePortalLoggingUtils","CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql","CandidatePortalSection.react","CandidatePortalURLQueryParamsContext","CareersCPSignupContext","CareersV2RefreshSearchResultsBookmarkQuery.graphql","CareersV2Search","CareersV2SearchFiltersStore","GeoNotice.react","Image.react","RelayHooks","asyncToGeneratorRuntime","compactArray","geoMargin","nullthrows","react","useBoolean","useCandidatePortalRelayMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect,o=e.useState;function a(a){var e=a.isDetailedPage,g=a.isLoggedIn,k=a.reqID;a=c("useBoolean")(!1);var p=a.set,q=a.value;a=c("useBoolean")(!1);var r=a.set;a=a.value;var s=c("useBoolean")(!1),t=s.set;s=s.value;var u=m(d("CareersCPSignupContext").CareersCPSignupContext),v=u.openDialog,w=c("useCandidatePortalRelayMutation")();u=m(c("CandidatePortalURLQueryParamsContext"));var x=u.viewasUserID,y=c("CareersV2SearchFiltersStore").getInstance();u=d("RelayHooks").useLazyLoadQuery(j!==void 0?j:j=b("CareersV2RefreshSearchResultsBookmarkQuery.graphql"),{viewasUserID:x});u=c("compactArray")((u=(u=u.viewer)==null?void 0:(u=u.user)==null?void 0:(u=u.profile)==null?void 0:(u=u.bookmarked_reqs)==null?void 0:u.nodes)!=null?u:[]);u=u.map(function(a){return c("nullthrows")(a.id)});u=o(u);var z=u[0],A=u[1];n(function(){y.subscribe(function(){A(y.getCurrentSavedJobs())})},[y]);var B=function(b,a){b=b===!0?z.concat(a):z.filter(function(b){return b!==a});y.setCurrentSavedJobs(b).update();A(b)},C=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("CandidatePortalLoggingUtils").logCriticalAction("CAREERS_SITE_SAVED_JOBS","SUBMIT_CLICK");r(!0);t(!1);q===!1?B(!0,k):B(!1,k);try{var a=window.location.href;if(a.includes("saved_jobs")&&q===!0){a=new(c("CareersV2Search"))();a.search("search_result")}p(!q);r(!1);yield w({eventType:"careers.update_saved_jobs",mutation:c("CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql"),mutationData:{requisition_ids:q===!1?z.concat(k):z.filter(function(a){return a!==k}),session_id:d("CandidatePortalBrowserSession").getSessionKey()}});d("CandidatePortalLoggingUtils").logCompletion("CAREERS_SITE_SAVED_JOBS",{payload:{saved_job_ids:k,user_id:x,all_saved_jobs:z}})}catch(a){d("CandidatePortalLoggingUtils").logError("CAREERS_SITE_SAVED_JOBS",100,"USER_PROFILE_UPDATE_SAVED_JOBS_ERROR",a),t(!0)}finally{t(!1)}});return function(){return a.apply(this,arguments)}}();function D(){if(q&&!e)return l.jsx(c("Image.react"),{src:i("1405985")});else if(q&&e)return l.jsx(c("Image.react"),{src:i("481172")});else if(!q&&!e)return l.jsx(c("Image.react"),{src:i("495634")});else return l.jsx(c("Image.react"),{src:i("481182")})}D.displayName=D.name+" [from "+f.id+"]";n(function(){z.includes(k)?p(!0):p(!1)},[z,k,p]);return l.jsxs("div",{children:[l.jsx(c("CandidatePortalSection.react"),{name:"Bookmark",role:"form",children:l.jsx("div",{children:l.jsx(c("Button.react"),{className:"x1tsovho xd1rwpp x1gnnqk1 x18u3869 x15fco7f x1efvzf8 x1ksfksn",disabled:a,image:D(),label:"",onMouseDown:function(a){a.stopPropagation(),g?void C():v("career_site_saved_jobs")},supressed:!0})})}),s?l.jsx(c("GeoNotice.react"),{status:"error",xstyle:c("geoMargin").top4,children:h._("Oops! Something went wrong. Try again!")}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql",["CandidatePortalProfileUpdateBookmarkedReqsMutation_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,concreteType:"UserProfileBookmarkedReqsConnection",kind:"LinkedField",name:"bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdRequisitionExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[d],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e,d],storageKey:null}],storageKey:null}]},params:{id:b("CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7591944044211783"}),null);
-----
CareersV2RefreshSearchResultsBookmark.react",["fbt","ix","Button.react","CandidatePortalBrowserSession","CandidatePortalLoggingUtils","CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql","CandidatePortalSection.react","CandidatePortalURLQueryParamsContext","CareersCPSignupContext","CareersV2RefreshSearchResultsBookmarkQuery.graphql","CareersV2Search","CareersV2SearchFiltersStore","GeoNotice.react","Image.react","RelayHooks","asyncToGeneratorRuntime","compactArray","geoMargin","nullthrows","react","useBoolean","useCandidatePortalRelayMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useContext,m=e.useEffect,n=e.useState;function a(a){var e=a.isDetailedPage,g=a.isLoggedIn,o=a.reqID;a=c("useBoolean")(!1);var p=a.set,q=a.value;a=c("useBoolean")(!1);var r=a.set;a=a.value;var s=c("useBoolean")(!1),t=s.set;s=s.value;var u=l(d("CareersCPSignupContext").CareersCPSignupContext),v=u.openDialog,w=c("useCandidatePortalRelayMutation")();u=l(c("CandidatePortalURLQueryParamsContext"));var x=u.viewasUserID,y=c("CareersV2SearchFiltersStore").getInstance();u=d("RelayHooks").useLazyLoadQuery(j!==void 0?j:j=b("CareersV2RefreshSearchResultsBookmarkQuery.graphql"),{viewasUserID:x});u=c("compactArray")((u=(u=u.viewer)==null?void 0:(u=u.user)==null?void 0:(u=u.profile)==null?void 0:(u=u.bookmarked_reqs)==null?void 0:u.nodes)!=null?u:[]);u=u.map(function(a){return c("nullthrows")(a.id)});u=n(u);var z=u[0],A=u[1];m(function(){y.subscribe(function(){A(y.getCurrentSavedJobs())})},[y]);var B=function(b,a){b=b===!0?z.concat(a):z.filter(function(b){return b!==a});y.setCurrentSavedJobs(b).update();A(b)},C=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("CandidatePortalLoggingUtils").logCriticalAction("CAREERS_SITE_SAVED_JOBS","SUBMIT_CLICK");r(!0);t(!1);q===!1?B(!0,o):B(!1,o);try{var a=window.location.href;if(a.includes("saved_jobs")&&q===!0){a=new(c("CareersV2Search"))();a.search("search_result")}p(!q);r(!1);yield w({eventType:"careers.update_saved_jobs",mutation:c("CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql"),mutationData:{requisition_ids:q===!1?z.concat(o):z.filter(function(a){return a!==o}),session_id:d("CandidatePortalBrowserSession").getSessionKey()}});d("CandidatePortalLoggingUtils").logCompletion("CAREERS_SITE_SAVED_JOBS",{payload:{saved_job_ids:o,user_id:x,all_saved_jobs:z}})}catch(a){d("CandidatePortalLoggingUtils").logError("CAREERS_SITE_SAVED_JOBS",100,"USER_PROFILE_UPDATE_SAVED_JOBS_ERROR",a),t(!0)}finally{t(!1)}});return function(){return a.apply(this,arguments)}}();function D(){if(q&&!e)return k.jsx(c("Image.react"),{src:i("1405985")});else if(q&&e)return k.jsx(c("Image.react"),{src:i("481172")});else if(!q&&!e)return k.jsx(c("Image.react"),{src:i("495634")});else return k.jsx(c("Image.react"),{src:i("481182")})}D.displayName=D.name+" [from "+f.id+"]";m(function(){z.includes(o)?p(!0):p(!1)},[]);return k.jsxs("div",{children:[k.jsx(c("CandidatePortalSection.react"),{name:"Bookmark",role:"form",children:k.jsx("div",{children:k.jsx(c("Button.react"),{className:"x1tsovho xd1rwpp x1gnnqk1 x18u3869 x15fco7f x1efvzf8 x1ksfksn",disabled:a,image:D(),label:"",onMouseDown:function(a){a.stopPropagation(),g?void C():v("career_site_saved_jobs")},supressed:!0})})}),s?k.jsx(c("GeoNotice.react"),{status:"error",xstyle:c("geoMargin").top4,children:h._("Oops! Something went wrong. Try again!")}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation.graphql",["CandidatePortalProfileUpdateBookmarkedReqsMutation_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,concreteType:"UserProfileBookmarkedReqsConnection",kind:"LinkedField",name:"bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"XCPProdRequisitionExport",kind:"LinkedField",name:"nodes",plural:!0,selections:[d],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",selections:[{alias:null,args:c,concreteType:"XCPUserProfileUpdateBookmarkedReqsResponsePayload",kind:"LinkedField",name:"xcp_user_profile_update_bookmarked_reqs",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProfile",kind:"LinkedField",name:"profile",plural:!1,selections:[e,d],storageKey:null}],storageKey:null}]},params:{id:b("CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalProfileUpdateBookmarkedReqsMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalProfileUpdateBookmarkedReqsMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7591944044211783"}),null);
-----