DiscoveryHubCometLocationDialog.react",["DiscoveryHubCometLocationDialogChangeLocationPage.react","DiscoveryHubCometLocationDialogLearnMorePage.react","DiscoveryHubCometLocationDialogManageLocationPage.react","DiscoveryHubCometLocationDialogRemoveLocationPage.react","FDSCardedDialogLegacy.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useMemo,l=b.useReducer;function m(a,b){if(b==null)return a;switch(b.type){case"DIALOG_BACK_BUTTON_CLICK":b=[].concat(a.pageStack);b.pop();return babelHelpers["extends"]({},a,{currentPage:b[b.length-1],pageStack:b});case"DIALOG_ADD_LOCATION_BUTTON_CLICK":return babelHelpers["extends"]({},a,{currentPage:"changeLocationPage",pageStack:[].concat(a.pageStack,["changeLocationPage"])});case"DIALOG_CHANGE_LOCATION_BUTTON_CLICK":return babelHelpers["extends"]({},a,{currentPage:"changeLocationPage",pageStack:[].concat(a.pageStack,["changeLocationPage"])});case"DIALOG_REMOVE_LOCATION_BUTTON_CLICK":return babelHelpers["extends"]({},a,{currentPage:"removeLocationPage",pageStack:[].concat(a.pageStack,["removeLocationPage"])})}return a}function a(a){var b=a.currentAddress,d=a.fbtStrings,e=a.initialDialogState,g=a.isAddressAvailable,h=a.isUSTerritory,n=a.locationDispatch,o=a.onClose;a=l(m,e);var p=a[0],q=a[1];e=k(function(){return p!=null&&p.pageStack!=null&&p.pageStack.length>1},[p]);a=j(function(){q({type:"DIALOG_BACK_BUTTON_CLICK"})},[q]);s=s(p.currentPage);r=r(p.currentPage);return i.jsx(c("FDSCardedDialogLegacy.react"),{onBack:a,onClose:o,size:"small",title:r,withBackButton:e,withCloseButton:!0,children:i.jsx("div",{className:"x1cnzs8 xc73u3c xx6bls6 x5ib6vp",children:s})});function r(a){switch(a){case"changeLocationPage":return(a=d==null?void 0:d.rawStrings.addLocation)!=null?a:null;case"manageLocationPage":return(a=d.rawStrings.title)!=null?a:null;case"removeLocationPage":return(a=d.rawStrings.removeThisLocation)!=null?a:null;case"learnMorePage":return(a=d.rawStrings.aboutThisLocation)!=null?a:null}return null}function s(a){var e={currentAddress:b,dialogDispatch:q,dialogState:p,fbtStrings:d,isAddressAvailable:g,isUSTerritory:h,locationDispatch:n,onClose:o};switch(a){case"changeLocationPage":return i.jsx(c("DiscoveryHubCometLocationDialogChangeLocationPage.react"),babelHelpers["extends"]({},e));case"manageLocationPage":return i.jsx(c("DiscoveryHubCometLocationDialogManageLocationPage.react"),babelHelpers["extends"]({},e));case"removeLocationPage":return i.jsx(c("DiscoveryHubCometLocationDialogRemoveLocationPage.react"),babelHelpers["extends"]({},e));case"learnMorePage":return i.jsx(c("DiscoveryHubCometLocationDialogLearnMorePage.react"),babelHelpers["extends"]({},e))}return null}s.displayName=s.name+" [from "+f.id+"]"}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
DiscoveryHubCometLocationDialogRemoveLocationPage.react",["fbt","CometContextualMessage.react","CometRelay","DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation.graphql","FDSButtonGroup.react","FDSText.react","emptyFunction","react"],(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.useMemo,n=e.useState;function a(a){var e=a.fbtStrings;a=a.onClose;var f=n(!1),g=f[0],j=f[1];f=n(!1);var o=f[0],p=f[1],q=d("CometRelay").useRelayEnvironment(),r=l(function(){p(!0),j(!1)},[]),s=l(function(){p(!1)},[]),t=l(function(){j(!0),d("CometRelay").commitMutation(q,{mutation:i!==void 0?i:i=b("DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation.graphql"),onCompleted:function(a){a=a.remove_discovery_hub_civic_engagement_address||{};a=a.success;a!==!0?r():window.location.reload()},onError:r,variables:{}})},[r,q]);f=m(function(){if(o)return k.jsx("div",{className:"x1yztbdb",children:k.jsx(c("CometContextualMessage.react"),{body:h._("__JHASH__pfyw-Qw-nGv__JHASH__"),headline:h._("__JHASH__7sFP8KC9V2Q__JHASH__"),level:4,onClose:s,type:"secondary"})})},[s,o]);var u=m(function(){var a;return g?{disabled:!0,label:h._("__JHASH__fw5kA_Y-WAm__JHASH__"),onPress:c("emptyFunction")}:{label:(a=e.rawStrings.removeLocation)!=null?a:"Remove Location",onPress:t}},[e.rawStrings.removeLocation,t,g]);return k.jsxs(k.Fragment,{children:[k.jsx(c("FDSText.react"),{color:"secondary",type:"body3",children:e.textWithEntityStrings.primaryLocationDescription}),f,k.jsx("div",{className:"x1l1xfun x13fuv20 x178xt8z x78zum5 x1q0g3np x13a6bvl xw7yly9",children:k.jsx(c("FDSButtonGroup.react"),{direction:"backward",paddingHorizontal:0,primary:u,secondary:{label:h._("__JHASH__Gk3JBjFOe02__JHASH__"),onPress:a},size:"large"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation.graphql",["DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"RemoveDiscoveryHubCivicEngagementAddressResponsePayload",kind:"LinkedField",name:"remove_discovery_hub_civic_engagement_address",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation",selections:a,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation",selections:a},params:{id:b("DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation_facebookRelayOperation"),metadata:{},name:"DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
DiscoveryHubCometLocationDialog.react",["CometCardedDialogLegacy.react","DiscoveryHubCometLocationDialogChangeLocationPage.react","DiscoveryHubCometLocationDialogLearnMorePage.react","DiscoveryHubCometLocationDialogManageLocationPage.react","DiscoveryHubCometLocationDialogRemoveLocationPage.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useMemo,l=b.useReducer;function m(a,b){if(b==null)return a;switch(b.type){case"DIALOG_BACK_BUTTON_CLICK":b=[].concat(a.pageStack);b.pop();return babelHelpers["extends"]({},a,{currentPage:b[b.length-1],pageStack:b});case"DIALOG_ADD_LOCATION_BUTTON_CLICK":return babelHelpers["extends"]({},a,{currentPage:"changeLocationPage",pageStack:[].concat(a.pageStack,["changeLocationPage"])});case"DIALOG_CHANGE_LOCATION_BUTTON_CLICK":return babelHelpers["extends"]({},a,{currentPage:"changeLocationPage",pageStack:[].concat(a.pageStack,["changeLocationPage"])});case"DIALOG_REMOVE_LOCATION_BUTTON_CLICK":return babelHelpers["extends"]({},a,{currentPage:"removeLocationPage",pageStack:[].concat(a.pageStack,["removeLocationPage"])})}return a}function a(a){var b=a.currentAddress,d=a.fbtStrings,e=a.initialDialogState,g=a.isAddressAvailable,h=a.isUSTerritory,n=a.locationDispatch,o=a.onClose;a=l(m,e);var p=a[0],q=a[1];e=k(function(){return p!=null&&p.pageStack!=null&&p.pageStack.length>1},[p]);a=j(function(){q({type:"DIALOG_BACK_BUTTON_CLICK"})},[q]);s=s(p.currentPage);r=r(p.currentPage);return i.jsx(c("CometCardedDialogLegacy.react"),{onBack:a,onClose:o,size:"small",title:r,withBackButton:e,withCloseButton:!0,children:i.jsx("div",{className:"x1cnzs8 xc73u3c xx6bls6 x5ib6vp",children:s})});function r(a){switch(a){case"changeLocationPage":return(a=d==null?void 0:d.rawStrings.addLocation)!=null?a:null;case"manageLocationPage":return(a=d.rawStrings.title)!=null?a:null;case"removeLocationPage":return(a=d.rawStrings.removeThisLocation)!=null?a:null;case"learnMorePage":return(a=d.rawStrings.aboutThisLocation)!=null?a:null}return null}function s(a){var e={currentAddress:b,dialogDispatch:q,dialogState:p,fbtStrings:d,isAddressAvailable:g,isUSTerritory:h,locationDispatch:n,onClose:o};switch(a){case"changeLocationPage":return i.jsx(c("DiscoveryHubCometLocationDialogChangeLocationPage.react"),babelHelpers["extends"]({},e));case"manageLocationPage":return i.jsx(c("DiscoveryHubCometLocationDialogManageLocationPage.react"),babelHelpers["extends"]({},e));case"removeLocationPage":return i.jsx(c("DiscoveryHubCometLocationDialogRemoveLocationPage.react"),babelHelpers["extends"]({},e));case"learnMorePage":return i.jsx(c("DiscoveryHubCometLocationDialogLearnMorePage.react"),babelHelpers["extends"]({},e))}return null}s.displayName=s.name+" [from "+f.id+"]"}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
DiscoveryHubCometLocationDialogRemoveLocationPage.react",["fbt","CometContextualMessage.react","CometRelay","DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation.graphql","TetraButtonGroup.react","TetraText.react","emptyFunction","react"],(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.useMemo,n=e.useState;function a(a){var e=a.fbtStrings;a=a.onClose;var f=n(!1),g=f[0],j=f[1];f=n(!1);var o=f[0],p=f[1],q=d("CometRelay").useRelayEnvironment(),r=l(function(){p(!0),j(!1)},[]),s=l(function(){p(!1)},[]),t=l(function(){j(!0),d("CometRelay").commitMutation(q,{mutation:i!==void 0?i:i=b("DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation.graphql"),onCompleted:function(a){a=a.remove_discovery_hub_civic_engagement_address||{};a=a.success;a!==!0?r():window.location.reload()},onError:r,variables:{}})},[r,q]);f=m(function(){if(o)return k.jsx("div",{className:"x1yztbdb",children:k.jsx(c("CometContextualMessage.react"),{body:h._("__JHASH__pfyw-Qw-nGv__JHASH__"),headline:h._("__JHASH__7sFP8KC9V2Q__JHASH__"),level:4,onClose:s,type:"secondary"})})},[s,o]);var u=m(function(){var a;return g?{disabled:!0,label:h._("__JHASH__fw5kA_Y-WAm__JHASH__"),onPress:c("emptyFunction")}:{label:(a=e.rawStrings.removeLocation)!=null?a:"Remove Location",onPress:t}},[e.rawStrings.removeLocation,t,g]);return k.jsxs(k.Fragment,{children:[k.jsx(c("TetraText.react"),{color:"secondary",type:"body3",children:e.textWithEntityStrings.primaryLocationDescription}),f,k.jsx("div",{className:"x1l1xfun x13fuv20 x178xt8z x78zum5 x1q0g3np x13a6bvl xw7yly9",children:k.jsx(c("TetraButtonGroup.react"),{direction:"backward",paddingHorizontal:0,primary:u,secondary:{label:h._("__JHASH__Gk3JBjFOe02__JHASH__"),onPress:a},size:"large"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation.graphql",["DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"RemoveDiscoveryHubCivicEngagementAddressResponsePayload",kind:"LinkedField",name:"remove_discovery_hub_civic_engagement_address",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation",selections:a,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation",selections:a},params:{id:b("DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation_facebookRelayOperation"),metadata:{},name:"DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
DiscoveryHubCometLocationDialogRemoveLocationPage_LocationRemoveMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4992845334107445"}),null);
-----