;/*FB_PKG_DELIM*/

__d("CDSImage.react",["CometImage.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(2),e;b[0]!==a?(e=i.jsx(c("CometImage.react"),babelHelpers["extends"]({},a)),b[0]=a,b[1]=e):e=b[1];return e}g["default"]=a}),98);
__d("CometPrivacyIcon_scope.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"scale"}],kind:"Fragment",metadata:null,name:"CometPrivacyIcon_scope",selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:[{kind:"Variable",name:"scale",variableName:"scale"}],concreteType:"Image",kind:"LinkedField",name:"icon_image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{args:null,kind:"FragmentSpread",name:"useCometPrivacyIcon_image"}],storageKey:null}],type:"PrivacyScope",abstractKey:null};e.exports=a}),null);
__d("useCometPrivacyIcon_image.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCometPrivacyIcon_image",selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],type:"Image",abstractKey:null};e.exports=a}),null);
__d("useCometPrivacyIcon",["CDSImage.react","CometRelay","TintableIconSource","coerceRelayImage","react","react-compiler-runtime","useCometPrivacyIcon_image.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));i.useMemo;var k={image:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",$$css:!0}},l=[8,10,12,16,18,20,24,28,32,48],m=[20,24],n=[20],o=h!==void 0?h:h=b("useCometPrivacyIcon_image.graphql");function p(a,b){var e=d("react-compiler-runtime").c(7);a=d("CometRelay").useFragment(o,a);var f;bb0:{if(a==null){f=null;break bb0}var g=a.height,h=a.scale,i=a.width;if(g==null||h==null||i==null){f=null;break bb0}var j=Math.max(i,g)/h;if(e[0]!==b||e[1]!==a||e[2]!==j){e[5]!==j?(i=function(a){return a>=j},e[5]=j,e[6]=i):i=e[6];g=b.find(i);if(g==null){f=null;break bb0}h=new(c("TintableIconSource"))("FB",c("coerceRelayImage")(a),g);e[0]=b;e[1]=a;e[2]=j;e[3]=h;e[4]=f}else h=e[3],f=e[4];f=h}return f}function q(a,b){var e=d("react-compiler-runtime").c(10);a=d("CometRelay").useFragment(o,a);var f;bb0:{if(a==null){f=void 0;break bb0}var g=a.height,h=a.scale,i=a.width;if(g==null||h==null||i==null){f=void 0;break bb0}var l=Math.max(i,g)/h;if(e[0]!==b||e[1]!==l){e[3]!==l?(i=function(a){return a>=l},e[3]=l,e[4]=i):i=e[4];g=b.find(i);e[0]=b;e[1]=l;e[2]=g}else g=e[2];h=g;if(h==null){f=void 0;break bb0}e[5]!==a?(i=c("coerceRelayImage")(a),e[5]=a,e[6]=i):i=e[6];e[7]!==h||e[8]!==i?(b=j.jsx(c("CDSImage.react"),{src:i,width:h,xstyle:k.image}),e[7]=h,e[8]=i,e[9]=b):b=e[9];f=b}return f}function a(a){return p(a,l)}function e(a){return p(a,m)}function f(a){return p(a,n)}function r(a){return q(a,m)}g.useCometPrivacyIcon=a;g.useCometPrivacyIconForSkittleIcon=e;g.useCometPrivacyIconForMenuItem=f;g.useCometCDSPrivacyIconForSkittleIcon=r}),98);
__d("CometPrivacyIcon.react",["CometPrivacyIcon_scope.graphql","CometRelay","FDSIcon.react","react","react-compiler-runtime","stylex","useCometPrivacyIcon"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l={marginEnd4:{marginEnd:"xw3qccf",$$css:!0},root:{alignItems:"x6s0dn4",display:"x3nfvp2",justifyContent:"xl56j7k",$$css:!0}};function a(a){var e=d("react-compiler-runtime").c(12),f=a["aria-hidden"],g=a.color,j=a.disabled,m=a.marginEnd;a=a.scope;f=f===void 0?!1:f;g=g===void 0?"secondary":g;j=j===void 0?!1:j;a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometPrivacyIcon_scope.graphql"),a);var n=a.icon_image;a=a.label;var o=d("useCometPrivacyIcon").useCometPrivacyIcon(n);if(o==null)return null;n=n==null?void 0:n.name;var p;e[0]!==m?(p=(i||(i=c("stylex"))).props(l.root,m===4&&l.marginEnd4),e[0]=m,e[1]=p):p=e[1];a=(m=a)!=null?m:"";m=j?"disabled":g;g=n==null?"comet-privacy-icon":"comet-privacy-icon-"+n;e[2]!==j||e[3]!==o||e[4]!==a||e[5]!==m||e[6]!==g?(n=k.jsx(c("FDSIcon.react"),{alt:a,color:m,disabled:j,icon:o,testid:void 0}),e[2]=j,e[3]=o,e[4]=a,e[5]=m,e[6]=g,e[7]=n):n=e[7];e[8]!==f||e[9]!==p||e[10]!==n?(j=k.jsx("div",babelHelpers["extends"]({"aria-hidden":f},p,{children:n})),e[8]=f,e[9]=p,e[10]=n,e[11]=j):j=e[11];return j}g["default"]=a}),98);
__d("CometPrivacySelectorButtonSavingOverlay.react",["FDSProgressIndicator.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(1);a=a.isSaving;if(!a)return null;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(a=i.jsx("div",babelHelpers["extends"]({className:"x1ey2m1c xds687c x17qophe x6ikm8r x10wlt62 x10l6tqk x13vifvy x6s0dn4 x78zum5 xl56j7k"},{children:i.jsx(c("FDSProgressIndicator.react"),{})})),b[0]=a):a=b[0];return a}g["default"]=a}),98);
__d("CometPrivacySelectorEntryPointMatchContainer_renderer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"Variable",name:"localPrivacyRow",variableName:"localPrivacyRow"},{kind:"Variable",name:"renderLocation",variableName:"renderLocation"},{kind:"Variable",name:"tags",variableName:"tags"}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"localPrivacyRow"},{defaultValue:null,kind:"LocalArgument",name:"renderLocation"},{defaultValue:null,kind:"LocalArgument",name:"tags"}],kind:"Fragment",metadata:null,name:"CometPrivacySelectorEntryPointMatchContainer_renderer",selections:[{alias:null,args:[{kind:"Variable",name:"render_location",variableName:"renderLocation"},{kind:"Literal",name:"supported",value:"3rU96a"}],concreteType:null,kind:"LinkedField",name:"entry_point_renderer",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:a,documentName:"CometPrivacySelectorEntryPointMatchContainer_renderer",fragmentName:"CometPrivacySelectorEntryPointButton_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"PrivacyScopeCometButtonEntryPointRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:a,documentName:"CometPrivacySelectorEntryPointMatchContainer_renderer",fragmentName:"CometComposerPrivacySelectorEntryPointButton_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"PrivacyScopeCometComposerButtonEntryPointRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:a,documentName:"CometPrivacySelectorEntryPointMatchContainer_renderer",fragmentName:"CometPrivacySelectorEntryPointIcon_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"PrivacyScopeCometIconEntryPointRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:a,documentName:"CometPrivacySelectorEntryPointMatchContainer_renderer",fragmentName:"CometPrivacySelectorEntryPointListCell_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"PrivacyScopeCometListCellEntryPointRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:a,documentName:"CometPrivacySelectorEntryPointMatchContainer_renderer",fragmentName:"CometPrivacySelectorEntryPointLeftRailButton_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"PrivacyScopeCometLeftRailButtonEntryPointRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:a,documentName:"CometPrivacySelectorEntryPointMatchContainer_renderer",fragmentName:"CometCreatorComposerPrivacySelectorEntryPointButton_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"PrivacyScopeCometCreatorComposerButtonEntryPointRenderer",abstractKey:null}],storageKey:null}],type:"PrivacySelectorRenderer",abstractKey:"__isPrivacySelectorRenderer"}}();e.exports=a}),null);
__d("CometPrivacySelectorEntryPointMatchContainer.react",["CometPrivacySelectorEntryPointMatchContainer_renderer.graphql","CometRelay","react","react-compiler-runtime","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e=d("react-compiler-runtime").c(3),f=a.props;a=a.renderer;a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometPrivacySelectorEntryPointMatchContainer_renderer.graphql"),a);a=a.entry_point_renderer;if(a==null)throw c("unrecoverableViolation")("Trying to render an editable Privacy Selector without an entry point","comet_privacy_selector");var g;e[0]!==a||e[1]!==f?(g=j.jsx(d("CometRelay").MatchContainer,{match:a,props:f}),e[0]=a,e[1]=f,e[2]=g):g=e[2];return g}g["default"]=a}),98);
__d("CometPrivacySelectorTooltip_scope.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometPrivacySelectorTooltip_scope",selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"extended_description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],type:"PrivacyScope",abstractKey:null};e.exports=a}),null);
__d("CometPrivacySelectorTooltip.react",["fbt","CometPrivacySelectorTooltip_scope.graphql","CometRelay","FDSTooltip.react","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=d("react-compiler-runtime").c(6),f=a.children,g=a.entryPointHasLabel,j=a.isLoading;a=a.scope;a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometPrivacySelectorTooltip_scope.graphql"),a);var l=a.description,m=a.extended_description;a=a.label;if(j){e[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"__JHASH__aqia400_2ly__JHASH__"),e[0]=j):j=e[0];e[1]!==f?(j=k.jsx(c("FDSTooltip.react"),{tooltip:j,children:f}),e[1]=f,e[2]=j):j=e[2];return j}j=c("gkx")("22885");if(g&&l===a&&(!j||m==null))return f;g=j&&m!=null?m:l;e[3]!==f||e[4]!==g?(a=k.jsx(c("FDSTooltip.react"),{tooltip:g,children:f}),e[3]=f,e[4]=g,e[5]=a):a=e[5];return a}g["default"]=a}),226);
__d("PrivacyRowInput_fragment.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PrivacyRowInput_fragment",selections:[{kind:"InlineDataFragmentSpread",name:"PrivacyRowInput_inline",selections:[{alias:null,args:null,kind:"ScalarField",name:"allow",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"base_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deny",storageKey:null},{alias:null,args:null,concreteType:"PrivacyRowInputTargetingFields",kind:"LinkedField",name:"privacy_targeting",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"targeted_publishing_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"targeted_publishing_fields",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tag_expansion_state",storageKey:null}],args:null,argumentDefinitions:[]}],type:"PrivacyRowInput",abstractKey:null};e.exports=a}),null);
__d("PrivacyRowInput_inline.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"PrivacyRowInput_inline"};e.exports=a}),null);
__d("PrivacyRowInput",["CometRelay","PrivacyRowInput_fragment.graphql","PrivacyRowInput_inline.graphql","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;(j||d("react")).useMemo;var k={},l=["allow","deny"];function a(a,b){if(a==null&&b==null)return!0;else if(a==null||b==null)return!1;if(a.base_state!==b.base_state||a.tag_expansion_state!==b.tag_expansion_state)return!1;for(var c=l,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}var g=f;if(a[g].length!==b[g].length)return!1;if(a[g].length>0){f=function(){var c=new Set(b[g]);if(!a[g].every(function(a){return c.has(a)}))return{v:!1}}();if(typeof f==="object")return f.v}}return!0}function m(a){var c;a=d("CometRelay").readInlineData(h!==void 0?h:h=b("PrivacyRowInput_inline.graphql"),a);c=(c=a)!=null?c:k;var e=c.allow,f=c.base_state,g=c.deny;c=c.tag_expansion_state;a=(a=a==null?void 0:a.privacy_targeting)!=null?a:k;var i=a.targeted_publishing_fields;a=a.targeted_publishing_id;if(f==null)return null;if(a!=null){return{allow:e,base_state:f,deny:g,privacy_targeting:{targeted_publishing_fields:(i=i)!=null?i:void 0,targeted_publishing_id:a},tag_expansion_state:(i=c)!=null?i:"UNSPECIFIED"}}return{allow:e,base_state:f,deny:g,tag_expansion_state:(a=c)!=null?a:"UNSPECIFIED"}}function c(a){var c=d("react-compiler-runtime").c(2);a=d("CometRelay").useFragment(i!==void 0?i:i=b("PrivacyRowInput_fragment.graphql"),a);var e;c[0]!==a?(e=m(a),c[0]=a,c[1]=e):e=c[1];a=e;return a}function n(a){var b=[];a==null?void 0:a.forEach(function(a){a!=null&&b.push(a)});return b}function e(a){return a==null?null:{allow:n(a==null?void 0:a.allow),base_state:a==null?void 0:a.base_state,deny:n(a==null?void 0:a.deny),privacy_targeting:a.privacy_targeting,tag_expansion_state:(a=a.tag_expansion_state)!=null?a:"UNSPECIFIED"}}g.arePrivacyRowInputsEqual=a;g.getPrivacyRowInput=m;g.usePrivacyRowInput=c;g.coerceFromPrivacyData=e}),98);
__d("useCometPrivacySelectorDescriptionLabel_scope.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCometPrivacySelectorDescriptionLabel_scope",selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"extended_description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],type:"PrivacyScope",abstractKey:null};e.exports=a}),null);
__d("useCometPrivacySelectorDescriptionLabel.react",["fbt","CometRelay","gkx","react-compiler-runtime","useCometPrivacySelectorDescriptionLabel_scope.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i;function a(a){var e=d("react-compiler-runtime").c(3);a=d("CometRelay").useFragment(i!==void 0?i:i=b("useCometPrivacySelectorDescriptionLabel_scope.graphql"),a);var f=a.description,g=a.extended_description;a=a.label;f=f!=null?f:a;if(f==null)return;a=c("gkx")("22885")?g:"";e[0]!==a||e[1]!==f?(g=h._(/*BTDS*/"__JHASH__15__gWwO0iL__JHASH__",[h._param("privacy label",f),h._param("extended privacy label",a)]),e[0]=a,e[1]=f,e[2]=g):g=e[2];return g}g["default"]=a}),226);
__d("useCometPrivacySelectorNotifyPrivacyOnInitEffect_renderer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCometPrivacySelectorNotifyPrivacyOnInitEffect_renderer",selections:[{alias:null,args:null,concreteType:"PrivacyRowInput",kind:"LinkedField",name:"privacy_row_input",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"PrivacyRowInput_fragment"}],storageKey:null}],type:"PrivacySelectorRenderer",abstractKey:"__isPrivacySelectorRenderer"};e.exports=a}),null);
__d("useCometPrivacySelectorNotifyPrivacyOnInitEffect",["CometRelay","PrivacyRowInput","react","react-compiler-runtime","useCometPrivacySelectorNotifyPrivacyOnInitEffect_renderer.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useEffect;function a(a,c){var e=d("react-compiler-runtime").c(4);a=d("CometRelay").useFragment(h!==void 0?h:h=b("useCometPrivacySelectorNotifyPrivacyOnInitEffect_renderer.graphql"),a);var f=d("PrivacyRowInput").usePrivacyRowInput(a.privacy_row_input),g;e[0]!==c||e[1]!==f?(a=function(){c&&c({privacyRowInput:f,type:"init"})},g=[c,f],e[0]=c,e[1]=f,e[2]=a,e[3]=g):(a=e[2],g=e[3]);j(a,g)}g["default"]=a}),98);