CandidatePortalProfileSaveCommunicationPreferencesMutation",["CandidatePortalProfileSaveCommunicationPreferencesMutation.graphql"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e!==void 0?e:e=n("CandidatePortalProfileSaveCommunicationPreferencesMutation.graphql"),u=s;l.default=u}),98);
-----
CandidatePortalProfileSaveCommunicationPreferencesMutation.graphql",["CandidatePortalProfileSaveCommunicationPreferencesMutation_candidate_portalRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{kind:"Variable",name:"input",variableName:"input"}],r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"CandidatePortalProfileSaveCommunicationPreferencesMutation",selections:[{alias:null,args:t,concreteType:"UserProfileSaveCommunicationPreferencesResponsePayload",kind:"LinkedField",name:"user_profile_save_communication_preferences",plural:!1,selections:[{alias:null,args:null,concreteType:"CPUser",kind:"LinkedField",name:"user",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CPProfileCommunicationPreferencesCardV3_user"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"CandidatePortalProfileSaveCommunicationPreferencesMutation",selections:[{alias:null,args:t,concreteType:"UserProfileSaveCommunicationPreferencesResponsePayload",kind:"LinkedField",name:"user_profile_save_communication_preferences",plural:!1,selections:[{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,kind:"ScalarField",name:"marketing_notification_preference",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"resume_reminder_email_preference",storageKey:null},{alias:"preferredLocations",args:null,concreteType:"UserProfilePreferredLocationsConnection",kind:"LinkedField",name:"preferred_locations",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"skills",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"languages",storageKey:null},{alias:"interestedAreasOfWork",args:null,kind:"ScalarField",name:"interested_areas_of_work",storageKey:null},{alias:"interestedJobTitles",args:null,kind:"ScalarField",name:"interested_job_titles",storageKey:null},{alias:"interestedJobTypes",args:null,kind:"ScalarField",name:"interested_job_types",storageKey:null},{alias:"yearsOfExperience",args:null,kind:"ScalarField",name:"years_of_experience",storageKey:null},{alias:"marketingNotificationPreference",args:null,kind:"ScalarField",name:"marketing_notification_preference",storageKey:null},{alias:"resumeReminderNotificationPreference",args:null,kind:"ScalarField",name:"resume_reminder_email_preference",storageKey:null},r],storageKey:null},r],storageKey:null}],storageKey:null}]},params:{id:n("CandidatePortalProfileSaveCommunicationPreferencesMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalProfileSaveCommunicationPreferencesMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
CandidatePortalProfileSaveCommunicationPreferencesMutation_candidate_portalRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24789033380761623"}),null);
-----
CPProfileCommunicationPreferencesFormV3.react",["CPCommunicationPreferenceFieldsV3.react","CPCreateProfileContext.react","CPProfessionalInfoFormContext.react","CPProfileCommunicationPreferencesFormV3_profile.graphql","CandidatePortalBrowserSession","CandidatePortalFormContext.react","CandidatePortalFormSaveButtonGroupV3.react","CandidatePortalProfileSaveCommunicationPreferencesMutation","CandidatePortalProfileSaveContext","MCDSVerticalStack.react","RecruitingFactBaseFalcoEvent","RelayHooks","XCPCandidatePortalAreasOfWork.candidateportal","arrayContainsArray","asyncToGeneratorRuntime","filterNulls","isStringNullOrEmpty","react","useCPProfileViewasButtonDisabled"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext,l=h!==void 0?h:h=b("CPProfileCommunicationPreferencesFormV3_profile.graphql");function m(a){a=a.onCancelEditing;var e=k(d("CandidatePortalFormContext.react").CandidatePortalFormContext),f=e.getVisibleFieldValue,g=e.setIsSaving;e=k(d("CPCreateProfileContext.react").CPCreateProfileContext);e=e.disableSubmit;var h=d("CandidatePortalProfileSaveContext").useSaveProfileMutation(),i=h[0];h[1];var l=f((h=d("CPProfessionalInfoFormContext.react")).CPProfessionalInfoField.LOCATIONS),m=f(h.CPProfessionalInfoField.AREAS_OF_WORK),n=f(h.CPProfessionalInfoField.MARKETING_NOTIFICATION_PREFERENCE),o=f(h.CPProfessionalInfoField.RESUME_REMINDER_NOTIFICATION_PREFERENCE);f=c("useCPProfileViewasButtonDisabled")();h=f.disabledMessage;f=f.disableSubmit;var p=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){g(!0);yield i({eventType:"candidate_portal.profile.update_communication_preferences",mutation:c("CandidatePortalProfileSaveCommunicationPreferencesMutation"),mutationData:{resume_reminder_preference:o,professional_info_data:{interested_locations:c("isStringNullOrEmpty")(String(l!=null?l:""))?[]:String(l).split(","),interested_areas_of_work:c("isStringNullOrEmpty")(String(m!=null?m:""))?[]:c("filterNulls")(String(m).split(",").map(function(a){return c("XCPCandidatePortalAreasOfWork.candidateportal").cast(a)})),marketing_notification_preference:n==null?!1:Boolean(n)},session_id:d("CandidatePortalBrowserSession").getSessionKey()}});var a=JSON.stringify({locations:l,areasOfWork:m,marketingNotificationPreference:n,resumeReminderNotificationPreference:o});c("RecruitingFactBaseFalcoEvent").log(function(){return{event:"CANDIDATE_PORTAL_SAVE",source:"CANDIDATE_PORTAL",payload:a}});g(!1)});return function(){return a.apply(this,arguments)}}();return j.jsx(c("CandidatePortalFormSaveButtonGroupV3.react"),{cancelButtonDataTestID:"cp-profile-communication-preferences-cancel-button",disableSubmit:e||f,disabledMessage:!e&&f?h:null,onCancel:a,onSave:p,saveButtonDataTestID:"cp-profile-communication-preferences-save-button"})}m.displayName=m.name+" [from "+f.id+"]";function n(a){a=a.careersLocations;var b=k(d("CPCreateProfileContext.react").CPCreateProfileContext),e=b.addRequiredFields;b=b.requiredFields;var f=k(d("CandidatePortalFormContext.react").CandidatePortalFormContext);f=f.getFieldValue;f=Boolean(f(d("CPProfessionalInfoFormContext.react").CPProfessionalInfoField.MARKETING_NOTIFICATION_PREFERENCE));var g=[d("CPProfessionalInfoFormContext.react").CPProfessionalInfoField.LOCATIONS,d("CPProfessionalInfoFormContext.react").CPProfessionalInfoField.AREAS_OF_WORK];!c("arrayContainsArray")(b,g)&&f&&e(g);return j.jsx(d("CPCommunicationPreferenceFieldsV3.react").CPCommunicationPreferenceFieldsV3,{careersLocations:a,withTitle:!1})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.careersLocations,e=a.onCancelEditing;a=a.profileRef;a=d("RelayHooks").useFragment(l,a);return j.jsx(d("CPProfessionalInfoFormContext.react").CPProfessionalInfoFormContext,{profileRef:a,children:j.jsx(d("CPCreateProfileContext.react").CPCreateProfileContextProvider,{children:j.jsxs(c("MCDSVerticalStack.react"),{gap:24,children:[j.jsx(n,{careersLocations:b}),j.jsx(m,{onCancelEditing:e})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CPProfileCommunicationPreferencesForm.react",["CPCommunicationPreferenceFields.react","CPCreateProfileContext.react","CPProfessionalInfoFormContext.react","CPProfileCommunicationPreferencesForm_profile.graphql","CandidatePortalBrowserSession","CandidatePortalFormContext.react","CandidatePortalFormSaveButtonGroup.react","CandidatePortalProfileSaveCommunicationPreferencesMutation","CandidatePortalProfileSaveContext","RecruitingFactBaseFalcoEvent","RelayHooks","XCPCandidatePortalAreasOfWork.candidateportal","arrayContainsArray","asyncToGeneratorRuntime","filterNulls","geoMargin","isStringNullOrEmpty","react","stylex","useCandidatePortalMobileBreakpoint"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useContext,m=h!==void 0?h:h=b("CPProfileCommunicationPreferencesForm_profile.graphql");function n(a){a=a.onCancelEditing;var e=l(d("CandidatePortalFormContext.react").CandidatePortalFormContext),f=e.getVisibleFieldValue,g=e.setIsSaving;e=l(d("CPCreateProfileContext.react").CPCreateProfileContext);e=e.disableSubmit;var h=c("useCandidatePortalMobileBreakpoint")(),j=d("CandidatePortalProfileSaveContext").useSaveProfileMutation(),m=j[0];j[1];var n=f((j=d("CPProfessionalInfoFormContext.react")).CPProfessionalInfoField.LOCATIONS),o=f(j.CPProfessionalInfoField.AREAS_OF_WORK),p=f(j.CPProfessionalInfoField.MARKETING_NOTIFICATION_PREFERENCE),q=f(j.CPProfessionalInfoField.RESUME_REMINDER_NOTIFICATION_PREFERENCE);f=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;g(!0);yield m({eventType:"candidate_portal.profile.update_communication_preferences",mutation:c("CandidatePortalProfileSaveCommunicationPreferencesMutation"),mutationData:{resume_reminder_preference:q,professional_info_data:{interested_locations:c("isStringNullOrEmpty")(String((a=n)!=null?a:""))?[]:String(n).split(","),interested_areas_of_work:c("isStringNullOrEmpty")(String((a=o)!=null?a:""))?[]:c("filterNulls")(String(o).split(",").map(function(a){return c("XCPCandidatePortalAreasOfWork.candidateportal").cast(a)})),marketing_notification_preference:p==null?!1:Boolean(p)},session_id:d("CandidatePortalBrowserSession").getSessionKey()}});var b=JSON.stringify({locations:n,areasOfWork:o,marketingNotificationPreference:p,resumeReminderNotificationPreference:q});c("RecruitingFactBaseFalcoEvent").log(function(){return{event:"CANDIDATE_PORTAL_SAVE",source:"CANDIDATE_PORTAL",payload:b}});g(!1)});return function(){return a.apply(this,arguments)}}();return k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").top16),children:k.jsx(c("CandidatePortalFormSaveButtonGroup.react"),{cancelButtonDataTestID:"cp-profile-communication-preferences-cancel-button",disableSubmit:e,onCancel:a,onSave:f,saveButtonDataTestID:"cp-profile-communication-preferences-save-button",shouldFill:h})})}n.displayName=n.name+" [from "+f.id+"]";function o(a){a=a.careersLocations;var b=l(d("CPCreateProfileContext.react").CPCreateProfileContext),e=b.addRequiredFields;b=b.requiredFields;var f=l(d("CandidatePortalFormContext.react").CandidatePortalFormContext);f=f.getFieldValue;f=Boolean(f(d("CPProfessionalInfoFormContext.react").CPProfessionalInfoField.MARKETING_NOTIFICATION_PREFERENCE));var g=[d("CPProfessionalInfoFormContext.react").CPProfessionalInfoField.LOCATIONS,d("CPProfessionalInfoFormContext.react").CPProfessionalInfoField.AREAS_OF_WORK];!c("arrayContainsArray")(b,g)&&f&&e(g);return k.jsx(d("CPCommunicationPreferenceFields.react").CPCommunicationPreferenceFields,{careersLocations:a,isMarketingNotifPreferenceOptional:!1})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.careersLocations,c=a.onCancelEditing;a=a.profileRef;a=d("RelayHooks").useFragment(m,a);return k.jsx(d("CPProfessionalInfoFormContext.react").CPProfessionalInfoFormContext,{profileRef:a,children:k.jsxs(d("CPCreateProfileContext.react").CPCreateProfileContextProvider,{children:[k.jsx(o,{careersLocations:b}),k.jsx(n,{onCancelEditing:c})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CandidatePortalProfileSaveCommunicationPreferencesMutation",["CandidatePortalProfileSaveCommunicationPreferencesMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("CandidatePortalProfileSaveCommunicationPreferencesMutation.graphql");c=a;g["default"]=c}),98);
-----
CandidatePortalProfileSaveCommunicationPreferencesMutation.graphql",["CandidatePortalProfileSaveCommunicationPreferencesMutation_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};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CandidatePortalProfileSaveCommunicationPreferencesMutation",selections:[{alias:null,args:c,concreteType:"UserProfileSaveCommunicationPreferencesResponsePayload",kind:"LinkedField",name:"user_profile_save_communication_preferences",plural:!1,selections:[{alias:null,args:null,concreteType:"CPUser",kind:"LinkedField",name:"user",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CPProfileCommunicationPreferencesCard_user"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CandidatePortalProfileSaveCommunicationPreferencesMutation",selections:[{alias:null,args:c,concreteType:"UserProfileSaveCommunicationPreferencesResponsePayload",kind:"LinkedField",name:"user_profile_save_communication_preferences",plural:!1,selections:[{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,kind:"ScalarField",name:"marketing_notification_preference",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"resume_reminder_email_preference",storageKey:null},{alias:"preferredLocations",args:null,concreteType:"UserProfilePreferredLocationsConnection",kind:"LinkedField",name:"preferred_locations",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"skills",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"languages",storageKey:null},{alias:"interestedAreasOfWork",args:null,kind:"ScalarField",name:"interested_areas_of_work",storageKey:null},{alias:"interestedJobTitles",args:null,kind:"ScalarField",name:"interested_job_titles",storageKey:null},{alias:"interestedJobTypes",args:null,kind:"ScalarField",name:"interested_job_types",storageKey:null},{alias:"yearsOfExperience",args:null,kind:"ScalarField",name:"years_of_experience",storageKey:null},{alias:"marketingNotificationPreference",args:null,kind:"ScalarField",name:"marketing_notification_preference",storageKey:null},{alias:"resumeReminderNotificationPreference",args:null,kind:"ScalarField",name:"resume_reminder_email_preference",storageKey:null},d],storageKey:null},d],storageKey:null}],storageKey:null}]},params:{id:b("CandidatePortalProfileSaveCommunicationPreferencesMutation_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalProfileSaveCommunicationPreferencesMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CandidatePortalProfileSaveCommunicationPreferencesMutation_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6691003707651374"}),null);
-----