FRLAuthSettingsPrivacySettings_oc_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAuthSettingsPrivacySettings_oc_viewer",selections:[{alias:null,args:null,concreteType:"XOCUser",kind:"LinkedField",name:"user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"setup_user_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_salsa",storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:20}],concreteType:"XOCUserPrivacySettingsListConnection",kind:"LinkedField",name:"privacy_settings_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCUserPrivacySettingsListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCOCPrivacySettingsTypeInfo",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null},{args:null,kind:"FragmentSpread",name:"FRLAuthSettingsPrivacyCenterAudienceOptions_setting"}],storageKey:null}],storageKey:null}],storageKey:"privacy_settings_list(first:20)"},{alias:null,args:null,concreteType:"XOCUserAppGroupingsConnection",kind:"LinkedField",name:"app_groupings",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCUserAppGroupingsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCApplicationGrouping",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"restrictions",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"XOCViewer",abstractKey:null}}();e.exports=a}),null);
-----
FRLAuthSettingsPrivacySettings.react",["fbt","FRLAuthSettingsPrivacyCenterAudienceOptions.react","FRLAuthSettingsPrivacySettings_viewer.graphql","FXAccountsCenterDiscoverabilityControlsRootRouteBuilder","FXAccountsCenterHorizonAutoFollowRootRouteBuilder","OCDSButton.react","OCDSHeading.react","OCDSLink.react","OCDSPadding.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSText.react","OCErrorBoundary","OCLink.react","OCWWWSocialSetupLogging","RelayModern","URI","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState,n={row:{alignItems:"x6s0dn4",justifyContent:"x1qughib",$$css:!0},rightAlign:{textAlign:"x1hr2gdg",$$css:!0},margin:{marginBottom:"x12nagc",$$css:!0},headerMargin:{marginBottom:"x1yztbdb",$$css:!0}},o=(e=c("FXAccountsCenterHorizonAutoFollowRootRouteBuilder").buildUri({}).setDomain("accountscenter.meta.com"))==null?void 0:(e=e.setProtocol("https"))==null?void 0:e.toString(),p=(e=c("FXAccountsCenterDiscoverabilityControlsRootRouteBuilder").buildUri({}).setDomain("accountscenter.meta.com"))==null?void 0:(e=e.setProtocol("https"))==null?void 0:e.toString(),q=new(j||(j=c("URI")))("https://store.facebook.com/help/945660416274371"),r=new j("https://meta.com/help/946285349854832"),s=new j("https://secure.oculus.com/my/privacy/hide-app-activity/");function a(a){var b;a=a.viewer;var d=m(!1),e=d[0],f=d[1],g=function(a){f(a)},i="HIDDEN";d=(d=a==null?void 0:(d=a.user)==null?void 0:(d=d.privacy_settings_list)==null?void 0:d.edges)!=null?d:[];var j=(b=a==null?void 0:(b=a.user)==null?void 0:b.id)!=null?b:"",k=(b=a==null?void 0:(b=a.user)==null?void 0:b.setup_user_type)!=null?b:"",o=(b=a==null?void 0:(b=a.user)==null?void 0:b.is_salsa)!=null?b:!1;a=a==null?void 0:(b=a.user)==null?void 0:(a=b.app_groupings)==null?void 0:(b=a.edges)==null?void 0:b.filter(function(a){a=a==null?void 0:(a=a.node)==null?void 0:a.restrictions;return a!=null&&a.includes(i)});b=a?a.length.toString():"0";a=!1;var p=o?h._("Review which apps people can see that you own and use"):h._("Manage which apps people can see that you own and use");return l.jsxs("div",{children:[l.jsx(c("OCDSHeading.react"),{type:"heading4",xstyle:n.headerMargin,children:h._("Privacy settings")}),d.map(function(a){var b;return l.jsx(c("OCDSPadding.react"),{vertical:"xsmall",children:l.jsx(c("OCErrorBoundary"),{fallback:null,children:l.jsxs(c("OCDSResponsiveRow.react"),{xstyle:n.row,children:[l.jsxs(c("OCDSResponsiveRowItem.react"),{span:{tablet:9,desktop:9},children:[l.jsx(c("OCDSText.react"),{display:"block",type:"body1",xstyle:n.margin,children:a==null?void 0:(b=a.node)==null?void 0:b.description}),l.jsxs(c("OCDSText.react"),{type:"body2",children:[a==null?void 0:(b=a.node)==null?void 0:(b=b.explanation)==null?void 0:b.split("\n").map(function(a,b){return l.jsx("p",{children:a},b)}),(a==null?void 0:(b=a.node)==null?void 0:b.key)==="CURRENT_ACTIVITY"?l.jsxs(l.Fragment,{children:[" ",h._("{=m0}",[h._implicitParam("=m0",l.jsx(c("OCDSLink.react"),{href:q,children:h._("Learn more")}))])]}):null]})]}),a.node&&l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:3,desktop:3},xstyle:n.rightAlign,children:l.jsx(c("FRLAuthSettingsPrivacyCenterAudienceOptions.react"),{flowType:k,isSalsa:o,mutationInFlight:e,setting:a.node,userId:j,onMutate:g})})]})})},a==null?void 0:(b=a.node)==null?void 0:b.key)}),l.jsx(u,{heading:h._("Hide activity for specific apps").toString(),numAppsHidden:h._("{numAppsHidden} apps",[h._param("numAppsHidden",b)]).toString(),subheading:p.toString(),userId:j}),!o&&!a&&l.jsxs(l.Fragment,{children:[l.jsx(t,{discoverability:!0,flowType:k,heading:h._("Choose which profiles are shown together").toString(),userId:j}),l.jsx(t,{discoverability:!1,flowType:k,heading:h._("Following people in Horizon").toString(),userId:j})]}),o&&l.jsx(c("OCDSText.react"),{type:"body2",children:h._("{=m0}",[h._implicitParam("=m0",l.jsx(c("OCDSLink.react"),{href:r,children:h._("Learn more about privacy settings")}))])})]})}a.displayName=a.name+" [from "+f.id+"]";function t(a){var b=a.discoverability,e=a.flowType,f=a.heading,g=a.userId;return l.jsx(c("OCDSPadding.react"),{vertical:"small",children:l.jsx(c("OCErrorBoundary"),{fallback:null,children:l.jsxs(c("OCDSResponsiveRow.react"),{xstyle:n.row,children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:9,desktop:9},children:l.jsx(c("OCDSText.react"),{display:"block",type:"body1",xstyle:n.margin,children:f})}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:3,desktop:3},xstyle:n.rightAlign,children:l.jsx(c("OCDSButton.react"),{href:b?p:o,icon:"arrow-right",minWidth:250,target:"_self",type:"tertiary",onClick:function(){var a=b?"click_edit_discover_profile":"click_edit_auto_follow";d("OCWWWSocialSetupLogging").logSocialSetupEvent(a,{oculus_userid:g,flow_type:e})},children:h._("Edit in Accounts Centre")})})]})})})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.heading,e=a.numAppsHidden,f=a.subheading,g=a.userId;return l.jsx(c("OCDSPadding.react"),{vertical:"small",children:l.jsx(c("OCErrorBoundary"),{fallback:null,children:l.jsxs(c("OCDSResponsiveRow.react"),{xstyle:n.row,children:[l.jsxs(c("OCDSResponsiveRowItem.react"),{span:{tablet:9,desktop:9},children:[l.jsx(c("OCDSText.react"),{display:"block",type:"body1",xstyle:n.margin,children:b}),l.jsx(c("OCDSText.react"),{type:"body2",children:f})]}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:3,desktop:3},xstyle:n.rightAlign,children:l.jsx(c("OCLink.react"),{href:s,children:l.jsx(c("OCDSButton.react"),{icon:"chevron-right",target:"_self",type:"tertiary",onClick:function(){d("OCWWWSocialSetupLogging").logSocialSetupEvent("click_hide_app_activity",{oculus_userid:g})},children:e})})})]})})})}u.displayName=u.name+" [from "+f.id+"]";e=c("RelayModern").createFragmentContainer(a,{viewer:i!==void 0?i:i=b("FRLAuthSettingsPrivacySettings_viewer.graphql")});g["default"]=e}),226);
-----
FRLAuthSettingsPrivacySettings_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAuthSettingsPrivacySettings_viewer",selections:[{alias:null,args:null,concreteType:"XOCUser",kind:"LinkedField",name:"user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"setup_user_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_salsa",storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:20}],concreteType:"XOCUserPrivacySettingsListConnection",kind:"LinkedField",name:"privacy_settings_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCUserPrivacySettingsListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCOCPrivacySettingsTypeInfo",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null},{args:null,kind:"FragmentSpread",name:"FRLAuthSettingsPrivacyCenterAudienceOptions_setting"}],storageKey:null}],storageKey:null}],storageKey:"privacy_settings_list(first:20)"},{alias:null,args:null,concreteType:"XOCUserAppGroupingsConnection",kind:"LinkedField",name:"app_groupings",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCUserAppGroupingsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCApplicationGrouping",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"restrictions",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"XOCViewer",abstractKey:null}}();e.exports=a}),null);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions.react",["fbt","FRLAuthSettingsOCAccountChangePrivacyMutation","FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql","FRLAuthSettingsPrivacyCenterPrivateProfileOffDialog.react","GraphQLError","OCContextualDialog.react","OCDSSelector.react","OCDSSelectorItem.react","OCErrorMessageHelper","OCPrivacyBaseState","OCRelayModern","OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log","OCWWWSocialSetupLogging","getJSEnumSafe","getPrivacySettingsLoggingSelectorClickEventType","getPrivacySettingsLoggingSelectorOptionsEventType","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.useEffect,m=e.useRef,n=e.useState,o="FRLAuthSettingsPrivacyCenterAudienceOptions";function a(a){var b=n(""),e=b[0],f=b[1];b=n(!1);var g=b[0],i=b[1],j=a.flowType,p=a.isSalsa,q=a.mutationInFlight,r=a.onMutate;b=a.setting;var s=b.key,t=b.name,u=b.options,v=b.selected_value,w=a.userId,x=function(a){a=(a=d("GraphQLError").getErrorMessage(a))!=null?a:d("OCErrorMessageHelper").unknownErrorMessage;f(a)},y=c("getJSEnumSafe")(c("OCPrivacyBaseState"),v);l(function(){g&&w!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent("turn_off_private_profile_confirmation_window_load_success",{oculus_userid:w,flow_type:j})},[g,w,j]);b=function(b){if(b===v||s==null){f("");return}c("OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log")(o,{text:t,type:"dropdown",new_status:b,old_status:y});var e=c("getPrivacySettingsLoggingSelectorOptionsEventType")(s,b);e!=null&&w!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(e,{oculus_userid:w,flow_type:j});s==="OC_VR_PRIVATE_PROFILE"&&b===c("OCPrivacyBaseState").OFF?i(!0):(r(!0),d("FRLAuthSettingsOCAccountChangePrivacyMutation").commit(a.relay.environment,{privacy:{base_state:b},privacy_concept:s},w).then(function(){r(!1),f("")})["catch"](function(a){r(!1),x(a)}))};var z=["OC_VR_PRIVATE_PROFILE","CURRENT_ACTIVITY","ACTIVE_STATUS","RICH_PRESENCE"],A=function(){if(q)return!0;return!p?!1:z.includes(s)},B=m(null),C=function(){return B==null?void 0:B.current},D=s==="OC_VR_PRIVATE_PROFILE"?h._("A private profile is required for your age group"):h._("This setting is managed by your parent");return s==null?null:k.jsxs("form",{className:"x1xmf6yo",method:"POST",children:[k.jsx("span",{ref:B,children:k.jsx(c("OCDSSelector.react"),{isDisabled:A(),value:y,onChange:b,onClick:function(){var a=c("getPrivacySettingsLoggingSelectorClickEventType")(s);a!=null&&w!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(a,{oculus_userid:w,flow_type:j})},children:u.filter(function(a){var b;return((b=a.key)!=null?b:!1)&&((b=a.name)!=null?b:!1)}).map(function(a){var b;return k.jsx(c("OCDSSelectorItem.react"),{isDisabled:(b=a.is_disabled)!=null?b:!0,label:a.name,value:a.key},a.key)})})}),A()&&!q&&k.jsx(c("OCContextualDialog.react"),{contextRef:C,hoverContextRef:C,position:"above",children:k.jsx("div",{className:"x1cnzs8 x1iji9kk xx6bls6 x1sln4lm",children:D})}),k.jsx(c("FRLAuthSettingsPrivacyCenterPrivateProfileOffDialog.react"),{flowType:j,isShown:g,relay:a.relay,setErrorMessage:f,userId:w,onCancel:function(){return i(!1)},onHide:function(){return i(!1)},onRemove:function(){return i(!1)}}),e&&k.jsx("div",{className:"x1iqnk88 x1xmf6yo",children:e})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("OCRelayModern").createFragmentContainer(a,{setting:i!==void 0?i:i=b("FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql")});g["default"]=e}),226);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAuthSettingsPrivacyCenterAudienceOptions_setting",selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"selected_value",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPrivacySettingsOptionTypeInfo",kind:"LinkedField",name:"options",plural:!0,selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"is_disabled",storageKey:null}],storageKey:null}],type:"XOCOCPrivacySettingsTypeInfo",abstractKey:null}}();e.exports=a}),null);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions.react",["fbt","FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql","GraphQLError","OCAccountChangePrivacyMutation","OCAccountPrivacyCenterPrivateProfileOffDialog.react","OCContextualDialog.react","OCDSSelector.react","OCDSSelectorItem.react","OCErrorMessageHelper","OCPrivacyBaseState","OCRelayModern","OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log","OCWWWSocialSetupLogging","getJSEnumSafe","getPrivacySettingsLoggingSelectorClickEventType","getPrivacySettingsLoggingSelectorOptionsEventType","react","usePrivacyCenterFeatureGate"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useRef,n=e.useState,o="FRLAuthSettingsPrivacyCenterAudienceOptions";function a(a){var b=c("usePrivacyCenterFeatureGate")(),e=b.isFeatureSalsaM1SocialSettingsEnabled;b=n("");var f=b[0],g=b[1];b=n(!1);var i=b[0],j=b[1],p=a.flowType,q=a.isSalsa,r=a.mutationInFlight,s=a.onMutate;b=a.setting;var t=b.key,u=b.name,v=b.options,w=b.selected_value,x=a.userId,y=function(a){a=(a=d("GraphQLError").getErrorMessage(a))!=null?a:d("OCErrorMessageHelper").unknownErrorMessage;g(a)},z=c("getJSEnumSafe")(c("OCPrivacyBaseState"),w);l(function(){i&&x!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent("turn_off_private_profile_confirmation_window_load_success",{oculus_userid:x,flow_type:p})},[i,x,p]);b=function(b){if(b===w||t==null){g("");return}c("OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log")(o,{text:u,type:"dropdown",new_status:b,old_status:z});var e=c("getPrivacySettingsLoggingSelectorOptionsEventType")(t,b);e!=null&&x!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(e,{oculus_userid:x,flow_type:p});t==="OC_VR_PRIVATE_PROFILE"&&b===c("OCPrivacyBaseState").OFF?j(!0):(s(!0),d("OCAccountChangePrivacyMutation").commit(a.relay.environment,{privacy:{base_state:b},privacy_concept:t},x).then(function(){s(!1),g("")})["catch"](function(a){s(!1),y(a)}))};var A=["OC_VR_PRIVATE_PROFILE","CURRENT_ACTIVITY","ACTIVE_STATUS","RICH_PRESENCE"],B=function(){if(r)return!0;if(!q)return!1;if(e())return t==="OC_VR_PRIVATE_PROFILE";else return A.includes(t)},C=m(null),D=function(){return C==null?void 0:C.current},E=t==="OC_VR_PRIVATE_PROFILE"?h._("u4f60u6240u5c5eu5e74u9f84u6bb5u5fc5u987bu4f7fu7528u79c1u5bc6u4e3bu9875"):h._("u8fd9u9879u8bbeu7f6eu7531u4f60u7684u5bb6u957fu7ba1u7406");return t==null?null:k.jsxs("form",{className:"x1xmf6yo",method:"POST",children:[k.jsx("span",{ref:C,children:k.jsx(c("OCDSSelector.react"),{isDisabled:B(),value:z,onChange:b,onClick:function(){var a=c("getPrivacySettingsLoggingSelectorClickEventType")(t);a!=null&&x!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(a,{oculus_userid:x,flow_type:p})},children:v.filter(function(a){var b;return((b=a.key)!=null?b:!1)&&((b=a.name)!=null?b:!1)}).map(function(a){var b;return k.jsx(c("OCDSSelectorItem.react"),{isDisabled:(b=a.is_disabled)!=null?b:!0,label:a.name,value:a.key},a.key)})})}),B()&&!r&&k.jsx(c("OCContextualDialog.react"),{contextRef:D,hoverContextRef:D,position:"above",children:k.jsx("div",{className:"x1cnzs8 x1iji9kk xx6bls6 x1sln4lm",children:E})}),k.jsx(c("OCAccountPrivacyCenterPrivateProfileOffDialog.react"),{flowType:p,isShown:i,relay:a.relay,setErrorMessage:g,userId:x,onCancel:function(){return j(!1)},onHide:function(){return j(!1)},onRemove:function(){return j(!1)}}),f&&k.jsx("div",{className:"x1iqnk88 x1xmf6yo",children:f})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("OCRelayModern").createFragmentContainer(a,{setting:i!==void 0?i:i=b("FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql")});g["default"]=e}),226);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAuthSettingsPrivacyCenterAudienceOptions_setting",selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"selected_value",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPrivacySettingsOptionTypeInfo",kind:"LinkedField",name:"options",plural:!0,selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"is_disabled",storageKey:null}],storageKey:null}],type:"XOCOCPrivacySettingsTypeInfo",abstractKey:null}}();e.exports=a}),null);
-----
-----
FRLAuthSettingsPrivacySettings.react",["fbt","FRLAuthSettingsPrivacyCenterAudienceOptions.react","FRLAuthSettingsPrivacySettings_viewer.graphql","FXAccountsCenterDiscoverabilityControlsRootRouteBuilder","FXAccountsCenterHorizonAutoFollowRootRouteBuilder","OCDSButton.react","OCDSHeading.react","OCDSLink.react","OCDSPadding.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSText.react","OCErrorBoundary","OCLink.react","OCWWWSocialSetupLogging","RelayModern","URI","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState,n={row:{alignItems:"x6s0dn4",justifyContent:"x1qughib",$$css:!0},rightAlign:{textAlign:"x1hr2gdg",$$css:!0},margin:{marginBottom:"x12nagc",$$css:!0},headerMargin:{marginBottom:"x1yztbdb",$$css:!0}},o=(e=c("FXAccountsCenterHorizonAutoFollowRootRouteBuilder").buildUri({}).setDomain("accountscenter.meta.com"))==null?void 0:(e=e.setProtocol("https"))==null?void 0:e.toString(),p=(e=c("FXAccountsCenterDiscoverabilityControlsRootRouteBuilder").buildUri({}).setDomain("accountscenter.meta.com"))==null?void 0:(e=e.setProtocol("https"))==null?void 0:e.toString(),q=new(j||(j=c("URI")))("https://store.facebook.com/help/945660416274371"),r=new j("https://meta.com/help/946285349854832"),s=new j("https://secure.oculus.com/my/privacy/hide-app-activity/");function a(a){var b;a=a.viewer;var d=m(!1),e=d[0],f=d[1],g=function(a){f(a)},i="HIDDEN";d=(d=a==null?void 0:(d=a.user)==null?void 0:(d=d.privacy_settings_list)==null?void 0:d.edges)!=null?d:[];var j=(b=a==null?void 0:(b=a.user)==null?void 0:b.id)!=null?b:"",k=(b=a==null?void 0:(b=a.user)==null?void 0:b.setup_user_type)!=null?b:"",o=(b=a==null?void 0:(b=a.user)==null?void 0:b.is_salsa)!=null?b:!1;a=a==null?void 0:(b=a.user)==null?void 0:(a=b.app_groupings)==null?void 0:(b=a.edges)==null?void 0:b.filter(function(a){a=a==null?void 0:(a=a.node)==null?void 0:a.restrictions;return a!=null&&a.includes(i)});b=a?a.length.toString():"0";a=!1;var p=o?h._("Review which apps people can see that you own and use"):h._("Manage which apps people can see that you own and use");return l.jsxs("div",{children:[l.jsx(c("OCDSHeading.react"),{type:"heading4",xstyle:n.headerMargin,children:h._("Privacy settings")}),d.map(function(a){var b;return l.jsx(c("OCDSPadding.react"),{vertical:"xsmall",children:l.jsx(c("OCErrorBoundary"),{fallback:null,children:l.jsxs(c("OCDSResponsiveRow.react"),{xstyle:n.row,children:[l.jsxs(c("OCDSResponsiveRowItem.react"),{span:{tablet:9,desktop:9},children:[l.jsx(c("OCDSText.react"),{display:"block",type:"body1",xstyle:n.margin,children:a==null?void 0:(b=a.node)==null?void 0:b.description}),l.jsxs(c("OCDSText.react"),{type:"body2",children:[a==null?void 0:(b=a.node)==null?void 0:(b=b.explanation)==null?void 0:b.split("\n").map(function(a,b){return l.jsx("p",{children:a},b)}),(a==null?void 0:(b=a.node)==null?void 0:b.key)==="CURRENT_ACTIVITY"?l.jsxs(l.Fragment,{children:[" ",h._("{=m0}",[h._implicitParam("=m0",l.jsx(c("OCDSLink.react"),{href:q,children:h._("Learn more")}))])]}):null]})]}),a.node&&l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:3,desktop:3},xstyle:n.rightAlign,children:l.jsx(c("FRLAuthSettingsPrivacyCenterAudienceOptions.react"),{flowType:k,isSalsa:o,mutationInFlight:e,setting:a.node,userId:j,onMutate:g})})]})})},a==null?void 0:(b=a.node)==null?void 0:b.key)}),l.jsx(u,{heading:h._("Hide activity for specific apps").toString(),numAppsHidden:h._("{numAppsHidden} apps",[h._param("numAppsHidden",b)]).toString(),subheading:p.toString(),userId:j}),!o&&!a&&l.jsxs(l.Fragment,{children:[l.jsx(t,{discoverability:!0,flowType:k,heading:h._("Choose which profiles are shown together").toString(),userId:j}),l.jsx(t,{discoverability:!1,flowType:k,heading:h._("Following people in Horizon").toString(),userId:j})]}),o&&l.jsx(c("OCDSText.react"),{type:"body2",children:h._("{=m0}",[h._implicitParam("=m0",l.jsx(c("OCDSLink.react"),{href:r,children:h._("Learn more about privacy settings")}))])})]})}a.displayName=a.name+" [from "+f.id+"]";function t(a){var b=a.discoverability,e=a.flowType,f=a.heading,g=a.userId;return l.jsx(c("OCDSPadding.react"),{vertical:"small",children:l.jsx(c("OCErrorBoundary"),{fallback:null,children:l.jsxs(c("OCDSResponsiveRow.react"),{xstyle:n.row,children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:9,desktop:9},children:l.jsx(c("OCDSText.react"),{display:"block",type:"body1",xstyle:n.margin,children:f})}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:3,desktop:3},xstyle:n.rightAlign,children:l.jsx(c("OCDSButton.react"),{href:b?p:o,icon:"arrow-right",minWidth:250,target:"_self",type:"tertiary",onClick:function(){var a=b?"click_edit_discover_profile":"click_edit_auto_follow";d("OCWWWSocialSetupLogging").logSocialSetupEvent(a,{oculus_userid:g,flow_type:e})},children:h._("Edit in Accounts Centre")})})]})})})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.heading,e=a.numAppsHidden,f=a.subheading,g=a.userId;return l.jsx(c("OCDSPadding.react"),{vertical:"small",children:l.jsx(c("OCErrorBoundary"),{fallback:null,children:l.jsxs(c("OCDSResponsiveRow.react"),{xstyle:n.row,children:[l.jsxs(c("OCDSResponsiveRowItem.react"),{span:{tablet:9,desktop:9},children:[l.jsx(c("OCDSText.react"),{display:"block",type:"body1",xstyle:n.margin,children:b}),l.jsx(c("OCDSText.react"),{type:"body2",children:f})]}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{tablet:3,desktop:3},xstyle:n.rightAlign,children:l.jsx(c("OCLink.react"),{href:s,children:l.jsx(c("OCDSButton.react"),{icon:"chevron-right",target:"_self",type:"tertiary",onClick:function(){d("OCWWWSocialSetupLogging").logSocialSetupEvent("click_hide_app_activity",{oculus_userid:g})},children:e})})})]})})})}u.displayName=u.name+" [from "+f.id+"]";e=c("RelayModern").createFragmentContainer(a,{viewer:i!==void 0?i:i=b("FRLAuthSettingsPrivacySettings_viewer.graphql")});g["default"]=e}),226);
-----
FRLAuthSettingsPrivacySettings_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAuthSettingsPrivacySettings_viewer",selections:[{alias:null,args:null,concreteType:"XOCUser",kind:"LinkedField",name:"user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"setup_user_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_salsa",storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:20}],concreteType:"XOCUserPrivacySettingsListConnection",kind:"LinkedField",name:"privacy_settings_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCUserPrivacySettingsListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCOCPrivacySettingsTypeInfo",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null},{args:null,kind:"FragmentSpread",name:"FRLAuthSettingsPrivacyCenterAudienceOptions_setting"}],storageKey:null}],storageKey:null}],storageKey:"privacy_settings_list(first:20)"},{alias:null,args:null,concreteType:"XOCUserAppGroupingsConnection",kind:"LinkedField",name:"app_groupings",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCUserAppGroupingsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCApplicationGrouping",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"restrictions",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"XOCViewer",abstractKey:null}}();e.exports=a}),null);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions.react",["fbt","FRLAuthSettingsOCAccountChangePrivacyMutation","FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql","FRLAuthSettingsPrivacyCenterPrivateProfileOffDialog.react","GraphQLError","OCContextualDialog.react","OCDSSelector.react","OCDSSelectorItem.react","OCErrorMessageHelper","OCPrivacyBaseState","OCRelayModern","OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log","OCWWWSocialSetupLogging","getJSEnumSafe","getPrivacySettingsLoggingSelectorClickEventType","getPrivacySettingsLoggingSelectorOptionsEventType","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.useEffect,m=e.useRef,n=e.useState,o="FRLAuthSettingsPrivacyCenterAudienceOptions";function a(a){var b=n(""),e=b[0],f=b[1];b=n(!1);var g=b[0],i=b[1],j=a.flowType,p=a.isSalsa,q=a.mutationInFlight,r=a.onMutate;b=a.setting;var s=b.key,t=b.name,u=b.options,v=b.selected_value,w=a.userId,x=function(a){a=(a=d("GraphQLError").getErrorMessage(a))!=null?a:d("OCErrorMessageHelper").unknownErrorMessage;f(a)},y=c("getJSEnumSafe")(c("OCPrivacyBaseState"),v);l(function(){g&&w!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent("turn_off_private_profile_confirmation_window_load_success",{oculus_userid:w,flow_type:j})},[g,w,j]);b=function(b){if(b===v||s==null){f("");return}c("OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log")(o,{text:t,type:"dropdown",new_status:b,old_status:y});var e=c("getPrivacySettingsLoggingSelectorOptionsEventType")(s,b);e!=null&&w!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(e,{oculus_userid:w,flow_type:j});s==="OC_VR_PRIVATE_PROFILE"&&b===c("OCPrivacyBaseState").OFF?i(!0):(r(!0),d("FRLAuthSettingsOCAccountChangePrivacyMutation").commit(a.relay.environment,{privacy:{base_state:b},privacy_concept:s},w).then(function(){r(!1),f("")})["catch"](function(a){r(!1),x(a)}))};var z=["OC_VR_PRIVATE_PROFILE","CURRENT_ACTIVITY","ACTIVE_STATUS","RICH_PRESENCE"],A=function(){if(q)return!0;return!p?!1:z.includes(s)},B=m(null),C=function(){return B==null?void 0:B.current},D=s==="OC_VR_PRIVATE_PROFILE"?h._("A private profile is required for your age group"):h._("This setting is managed by your parent");return s==null?null:k.jsxs("form",{className:"x1xmf6yo",method:"POST",children:[k.jsx("span",{ref:B,children:k.jsx(c("OCDSSelector.react"),{isDisabled:A(),value:y,onChange:b,onClick:function(){var a=c("getPrivacySettingsLoggingSelectorClickEventType")(s);a!=null&&w!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(a,{oculus_userid:w,flow_type:j})},children:u.filter(function(a){var b;return((b=a.key)!=null?b:!1)&&((b=a.name)!=null?b:!1)}).map(function(a){var b;return k.jsx(c("OCDSSelectorItem.react"),{isDisabled:(b=a.is_disabled)!=null?b:!0,label:a.name,value:a.key},a.key)})})}),A()&&!q&&k.jsx(c("OCContextualDialog.react"),{contextRef:C,hoverContextRef:C,position:"above",children:k.jsx("div",{className:"x1cnzs8 x1iji9kk xx6bls6 x1sln4lm",children:D})}),k.jsx(c("FRLAuthSettingsPrivacyCenterPrivateProfileOffDialog.react"),{flowType:j,isShown:g,relay:a.relay,setErrorMessage:f,userId:w,onCancel:function(){return i(!1)},onHide:function(){return i(!1)},onRemove:function(){return i(!1)}}),e&&k.jsx("div",{className:"x1iqnk88 x1xmf6yo",children:e})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("OCRelayModern").createFragmentContainer(a,{setting:i!==void 0?i:i=b("FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql")});g["default"]=e}),226);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAuthSettingsPrivacyCenterAudienceOptions_setting",selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"selected_value",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPrivacySettingsOptionTypeInfo",kind:"LinkedField",name:"options",plural:!0,selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"is_disabled",storageKey:null}],storageKey:null}],type:"XOCOCPrivacySettingsTypeInfo",abstractKey:null}}();e.exports=a}),null);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions.react",["fbt","FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql","GraphQLError","OCAccountChangePrivacyMutation","OCAccountPrivacyCenterPrivateProfileOffDialog.react","OCContextualDialog.react","OCDSSelector.react","OCDSSelectorItem.react","OCErrorMessageHelper","OCPrivacyBaseState","OCRelayModern","OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log","OCWWWSocialSetupLogging","getJSEnumSafe","getPrivacySettingsLoggingSelectorClickEventType","getPrivacySettingsLoggingSelectorOptionsEventType","react","usePrivacyCenterFeatureGate"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useRef,n=e.useState,o="FRLAuthSettingsPrivacyCenterAudienceOptions";function a(a){var b=c("usePrivacyCenterFeatureGate")(),e=b.isFeatureSalsaM1SocialSettingsEnabled;b=n("");var f=b[0],g=b[1];b=n(!1);var i=b[0],j=b[1],p=a.flowType,q=a.isSalsa,r=a.mutationInFlight,s=a.onMutate;b=a.setting;var t=b.key,u=b.name,v=b.options,w=b.selected_value,x=a.userId,y=function(a){a=(a=d("GraphQLError").getErrorMessage(a))!=null?a:d("OCErrorMessageHelper").unknownErrorMessage;g(a)},z=c("getJSEnumSafe")(c("OCPrivacyBaseState"),w);l(function(){i&&x!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent("turn_off_private_profile_confirmation_window_load_success",{oculus_userid:x,flow_type:p})},[i,x,p]);b=function(b){if(b===w||t==null){g("");return}c("OCWWWAnalyticsLoggingMyPrivacyStatusUpdateAttempt.log")(o,{text:u,type:"dropdown",new_status:b,old_status:z});var e=c("getPrivacySettingsLoggingSelectorOptionsEventType")(t,b);e!=null&&x!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(e,{oculus_userid:x,flow_type:p});t==="OC_VR_PRIVATE_PROFILE"&&b===c("OCPrivacyBaseState").OFF?j(!0):(s(!0),d("OCAccountChangePrivacyMutation").commit(a.relay.environment,{privacy:{base_state:b},privacy_concept:t},x).then(function(){s(!1),g("")})["catch"](function(a){s(!1),y(a)}))};var A=["OC_VR_PRIVATE_PROFILE","CURRENT_ACTIVITY","ACTIVE_STATUS","RICH_PRESENCE"],B=function(){if(r)return!0;if(!q)return!1;if(e())return t==="OC_VR_PRIVATE_PROFILE";else return A.includes(t)},C=m(null),D=function(){return C==null?void 0:C.current},E=t==="OC_VR_PRIVATE_PROFILE"?h._("u4f60u6240u5c5eu5e74u9f84u6bb5u5fc5u987bu4f7fu7528u79c1u5bc6u4e3bu9875"):h._("u8fd9u9879u8bbeu7f6eu7531u4f60u7684u5bb6u957fu7ba1u7406");return t==null?null:k.jsxs("form",{className:"x1xmf6yo",method:"POST",children:[k.jsx("span",{ref:C,children:k.jsx(c("OCDSSelector.react"),{isDisabled:B(),value:z,onChange:b,onClick:function(){var a=c("getPrivacySettingsLoggingSelectorClickEventType")(t);a!=null&&x!=null&&d("OCWWWSocialSetupLogging").logSocialSetupEvent(a,{oculus_userid:x,flow_type:p})},children:v.filter(function(a){var b;return((b=a.key)!=null?b:!1)&&((b=a.name)!=null?b:!1)}).map(function(a){var b;return k.jsx(c("OCDSSelectorItem.react"),{isDisabled:(b=a.is_disabled)!=null?b:!0,label:a.name,value:a.key},a.key)})})}),B()&&!r&&k.jsx(c("OCContextualDialog.react"),{contextRef:D,hoverContextRef:D,position:"above",children:k.jsx("div",{className:"x1cnzs8 x1iji9kk xx6bls6 x1sln4lm",children:E})}),k.jsx(c("OCAccountPrivacyCenterPrivateProfileOffDialog.react"),{flowType:p,isShown:i,relay:a.relay,setErrorMessage:g,userId:x,onCancel:function(){return j(!1)},onHide:function(){return j(!1)},onRemove:function(){return j(!1)}}),f&&k.jsx("div",{className:"x1iqnk88 x1xmf6yo",children:f})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("OCRelayModern").createFragmentContainer(a,{setting:i!==void 0?i:i=b("FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql")});g["default"]=e}),226);
-----
FRLAuthSettingsPrivacyCenterAudienceOptions_setting.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAuthSettingsPrivacyCenterAudienceOptions_setting",selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"selected_value",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPrivacySettingsOptionTypeInfo",kind:"LinkedField",name:"options",plural:!0,selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"is_disabled",storageKey:null}],storageKey:null}],type:"XOCOCPrivacySettingsTypeInfo",abstractKey:null}}();e.exports=a}),null);
-----