MDCAppStoreV2WishlistPrivacySettingsButton.react",["fbt","CometRelay","DDSFlyOutConfigContext","DDSIcon.react","DDSLink.react","MCDSIconGearOutline.svg.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2BuyBoxDetail.react","MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql","MDCAppStoreV2WishlistPrivacySettingsFlyOut.react","react","useDDSSimpleModal","useMatchViewport"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={hasMaxWidth:!1,contentHeight:"fit_short_content",density:"normal"};function a(a){a=a.wishlistRef;var e=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql"),a),f=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("StoreWishlistPrivacyModal"),g=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("StoreWishlistPrivacyModal"),j=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("StoreWishlistPrivacySettingsButton");a=h._("Settings");var m=c("useMatchViewport")("max","width",768-1),n=k.jsx(c("DDSIcon.react"),{"aria-label":a,color:"primary",icon:c("MCDSIconGearOutline.svg.react")}),o=c("useDDSSimpleModal")(function(a){var b=a.onClose;return k.jsx(c("MDCAppStoreV2WishlistPrivacySettingsFlyOut.react"),{wishlistRef:e,onClose:function(){g("WISHLIST_CLOSE_PRIVACY_PREFERENCE",{}),b()}})}),p=o.modal,q=o.showModal;return k.jsxs(k.Fragment,{children:[k.jsx(c("DDSLink.react"),{onClick:function(){j("WISHLIST_PRIVACY_TOGGLE_BUTTON_RENDERED",{}),g("WISHLIST_OPEN_PRIVACY_PREFERENCE",{content_id:e.id}),q||f("WISHLIST_PRIVACY_TOGGLE_MODAL_RENDERED",{}),q()},children:m?n:k.jsx(c("MDCAppStoreV2BuyBoxDetail.react"),{icon:n,label:a})}),k.jsx(c("DDSFlyOutConfigContext").Provider,{value:l,children:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut.react",["fbt","CometRelay","DDSButton.react","DDSComplexLabel.react","DDSFlexbox.react","DDSFlyOut.react","DDSIcon.react","DDSRadioItem.react","DDSRadioList.react","DDSText.react","MCDSIconGlobeOutline.svg.react","MCDSIconPadlockClosedOutline.svg.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreShareableWishlistUtil","MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql","MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql","react","useMDCAppStoreV2Mutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e=a.onClose;a=a.wishlistRef;a=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql"),a);var f=a.id;a=a.privacy_state;var g=m(a===d("MDCAppStoreShareableWishlistUtil").PUBLIC),k=g[0],n=g[1],o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("StoreWishlistPrivacyModal");g=c("useMDCAppStoreV2Mutation")(j!==void 0?j:j=b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql"));var p=g[0];g=g[1];var q=function(){p({variables:{input:{privacy_state:k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}},onCompleted:function(a){a=a==null?void 0:(a=a.set_wishlist_visibility)==null?void 0:a.wishlist;o("WISHLIST_SAVE_PRIVACY_PREFERENCE",{content_id:a==null?void 0:a.id,privacy_state:a==null?void 0:a.privacy_state});e()}})};return l.jsx(c("DDSFlyOut.react"),{footer:l.jsx(c("DDSButton.react"),{display:"block",isDisabled:g||(k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE)===a,isLoading:g,label:h._("Save"),type:"primary",onClick:q}),isDismissable:!0,title:h._("Edit wishlist privacy"),onClose:e,children:l.jsx(c("DDSFlexbox.react"),{direction:"column",gap:{mobile:24,tablet:48},children:l.jsxs(c("DDSRadioList.react"),{label:h._("Select who can see your wishlist."),value:k,onChange:function(a){o("WISHLIST_SELECT_PRIVACY_PREFERENCE",{content_id:f,privacy_state:a?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}),n(a)},children:[l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconGlobeOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Public")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Anyone with a link to your wishlist can see it")})}),value:!0}),l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconPadlockClosedOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Private")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Only you can see your wishlist")})}),value:!1})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql",["MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"SetWishlistVisibilityResponsePayload",kind:"LinkedField",name:"set_wishlist_visibility",plural:!1,selections:[{alias:null,args:null,concreteType:"Wishlist",kind:"LinkedField",name:"wishlist",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shareable_url",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c},params:{id:b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsButton_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist"}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7400902929986652"}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsButton.react",["fbt","CometRelay","DDSFlyOutConfigContext","DDSIcon.react","DDSLink.react","MCDSIconGearOutline.svg.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2BuyBoxDetail.react","MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql","MDCAppStoreV2WishlistPrivacySettingsFlyOut.react","react","useBoolean","useMatchViewport"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={hasMaxWidth:!1,contentHeight:"fit_short_content",density:"normal"};function a(a){a=a.wishlistRef;var e=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql"),a);a=c("useBoolean")(!1);var f=a.setFalse,g=a.setTrue;a=a.value;var j=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("StoreWishlistPrivacyModal"),m=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("StoreWishlistPrivacyModal"),n=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("StoreWishlistPrivacySettingsButton"),o=h._("Settings"),p=c("useMatchViewport")("max","width",768-1),q=k.jsx(c("DDSIcon.react"),{"aria-label":o,color:"primary",icon:c("MCDSIconGearOutline.svg.react")});return k.jsxs(k.Fragment,{children:[k.jsx(c("DDSLink.react"),{onClick:function(){n("WISHLIST_PRIVACY_TOGGLE_BUTTON_RENDERED",{}),m("WISHLIST_OPEN_PRIVACY_PREFERENCE",{content_id:e.id}),g||j("WISHLIST_PRIVACY_TOGGLE_MODAL_RENDERED",{}),g()},children:p?q:k.jsx(c("MDCAppStoreV2BuyBoxDetail.react"),{icon:q,label:o})}),a&&k.jsx(c("DDSFlyOutConfigContext").Provider,{value:l,children:k.jsx(c("MDCAppStoreV2WishlistPrivacySettingsFlyOut.react"),{wishlistRef:e,onClose:function(){m("WISHLIST_CLOSE_PRIVACY_PREFERENCE",{}),f()}})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut.react",["fbt","CometRelay","DDSButton.react","DDSComplexLabel.react","DDSFlexbox.react","DDSFlyOut.react","DDSIcon.react","DDSRadioItem.react","DDSRadioList.react","DDSText.react","MCDSIconGlobeOutline.svg.react","MCDSIconPadlockClosedOutline.svg.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreShareableWishlistUtil","MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql","MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql","react","useMDCAppStoreV2Mutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e=a.onClose;a=a.wishlistRef;a=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql"),a);var f=a.id;a=a.privacy_state;var g=m(a===d("MDCAppStoreShareableWishlistUtil").PUBLIC),k=g[0],n=g[1],o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("StoreWishlistPrivacyModal");g=c("useMDCAppStoreV2Mutation")(j!==void 0?j:j=b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql"));var p=g[0];g=g[1];var q=function(){p({variables:{input:{privacy_state:k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}},onCompleted:function(a){a=a==null?void 0:(a=a.set_wishlist_visibility)==null?void 0:a.wishlist;o("WISHLIST_SAVE_PRIVACY_PREFERENCE",{content_id:a==null?void 0:a.id,privacy_state:a==null?void 0:a.privacy_state});e()}})};return l.jsx(c("DDSFlyOut.react"),{footer:l.jsx(c("DDSButton.react"),{display:"block",isDisabled:g||(k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE)===a,isLoading:g,label:h._("Save"),type:"primary",onClick:q}),isDismissable:!0,title:h._("Edit wishlist privacy"),onClose:e,children:l.jsx(c("DDSFlexbox.react"),{direction:"column",gap:{mobile:24,tablet:48},children:l.jsxs(c("DDSRadioList.react"),{label:h._("Select who can see your wishlist."),value:k,onChange:function(a){o("WISHLIST_SELECT_PRIVACY_PREFERENCE",{content_id:f,privacy_state:a?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}),n(a)},children:[l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconGlobeOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Public")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Anyone with a link to your wishlist can see it")})}),value:!0}),l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconPadlockClosedOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Private")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Only you can see your wishlist")})}),value:!1})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql",["MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"SetWishlistVisibilityResponsePayload",kind:"LinkedField",name:"set_wishlist_visibility",plural:!1,selections:[{alias:null,args:null,concreteType:"Wishlist",kind:"LinkedField",name:"wishlist",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shareable_url",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c},params:{id:b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsButton_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist"}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7400902929986652"}),null);
-----
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut.react",["fbt","CometRelay","DDSButton.react","DDSComplexLabel.react","DDSFlexbox.react","DDSFlyOut.react","DDSIcon.react","DDSRadioItem.react","DDSRadioList.react","DDSText.react","MCDSIconGlobeOutline.svg.react","MCDSIconPadlockClosedOutline.svg.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreShareableWishlistUtil","MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql","MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql","react","useMDCAppStoreV2Mutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e=a.onClose;a=a.wishlistRef;a=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql"),a);var f=a.id;a=a.privacy_state;var g=m(a===d("MDCAppStoreShareableWishlistUtil").PUBLIC),k=g[0],n=g[1],o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("StoreWishlistPrivacyModal");g=c("useMDCAppStoreV2Mutation")(j!==void 0?j:j=b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql"));var p=g[0];g=g[1];var q=function(){p({variables:{input:{privacy_state:k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}},onCompleted:function(a){a=a==null?void 0:(a=a.set_wishlist_visibility)==null?void 0:a.wishlist;o("WISHLIST_SAVE_PRIVACY_PREFERENCE",{content_id:a==null?void 0:a.id,privacy_state:a==null?void 0:a.privacy_state});e()}})};return l.jsx(c("DDSFlyOut.react"),{footer:l.jsx(c("DDSButton.react"),{display:"block",isDisabled:g||(k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE)===a,isLoading:g,label:h._("Save"),type:"primary",onClick:q}),isDismissable:!0,title:h._("Edit wishlist privacy"),onClose:e,children:l.jsx(c("DDSFlexbox.react"),{direction:"column",gap:{mobile:24,tablet:48},children:l.jsxs(c("DDSRadioList.react"),{label:h._("Select who can see your wishlist."),value:k,onChange:function(a){o("WISHLIST_SELECT_PRIVACY_PREFERENCE",{content_id:f,privacy_state:a?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}),n(a)},children:[l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconGlobeOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Public")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Anyone with a link to your wishlist can see it")})}),value:!0}),l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconPadlockClosedOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Private")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Only you can see your wishlist")})}),value:!1})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql",["MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"SetWishlistVisibilityResponsePayload",kind:"LinkedField",name:"set_wishlist_visibility",plural:!1,selections:[{alias:null,args:null,concreteType:"Wishlist",kind:"LinkedField",name:"wishlist",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shareable_url",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c},params:{id:b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsButton_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist"}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7400902929986652"}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsButton.react",["fbt","CometRelay","DDSFlyOutConfigContext","DDSIcon.react","DDSLink.react","MCDSIconGearOutline.svg.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2BuyBoxDetail.react","MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql","MDCAppStoreV2WishlistPrivacySettingsFlyOut.react","react","useBoolean","useMatchViewport"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={hasMaxWidth:!1,contentHeight:"fit_short_content",density:"normal"};function a(a){a=a.wishlistRef;var e=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql"),a);a=c("useBoolean")(!1);var f=a.setFalse,g=a.setTrue;a=a.value;var j=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("StoreWishlistPrivacyModal"),m=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("StoreWishlistPrivacyModal"),n=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("StoreWishlistPrivacySettingsButton"),o=h._("Settings"),p=c("useMatchViewport")("max","width",768-1),q=k.jsx(c("DDSIcon.react"),{"aria-label":o,color:"primary",icon:c("MCDSIconGearOutline.svg.react")});return k.jsxs(k.Fragment,{children:[k.jsx(c("DDSLink.react"),{onClick:function(){n("WISHLIST_PRIVACY_TOGGLE_BUTTON_RENDERED",{}),m("WISHLIST_OPEN_PRIVACY_PREFERENCE",{content_id:e.id}),g||j("WISHLIST_PRIVACY_TOGGLE_MODAL_RENDERED",{}),g()},children:p?q:k.jsx(c("MDCAppStoreV2BuyBoxDetail.react"),{icon:q,label:o})}),a&&k.jsx(c("DDSFlyOutConfigContext").Provider,{value:l,children:k.jsx(c("MDCAppStoreV2WishlistPrivacySettingsFlyOut.react"),{wishlistRef:e,onClose:function(){m("WISHLIST_CLOSE_PRIVACY_PREFERENCE",{}),f()}})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut.react",["fbt","CometRelay","DDSButton.react","DDSComplexLabel.react","DDSFlexbox.react","DDSFlyOut.react","DDSIcon.react","DDSRadioItem.react","DDSRadioList.react","DDSText.react","MCDSIconGlobeOutline.svg.react","MCDSIconPadlockClosedOutline.svg.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreShareableWishlistUtil","MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql","MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql","react","useMDCAppStoreV2Mutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e=a.onClose;a=a.wishlistRef;a=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql"),a);var f=a.id;a=a.privacy_state;var g=m(a===d("MDCAppStoreShareableWishlistUtil").PUBLIC),k=g[0],n=g[1],o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("StoreWishlistPrivacyModal");g=c("useMDCAppStoreV2Mutation")(j!==void 0?j:j=b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql"));var p=g[0];g=g[1];var q=function(){p({variables:{input:{privacy_state:k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}},onCompleted:function(a){a=a==null?void 0:(a=a.set_wishlist_visibility)==null?void 0:a.wishlist;o("WISHLIST_SAVE_PRIVACY_PREFERENCE",{content_id:a==null?void 0:a.id,privacy_state:a==null?void 0:a.privacy_state});e()}})};return l.jsx(c("DDSFlyOut.react"),{footer:l.jsx(c("DDSButton.react"),{display:"block",isDisabled:g||(k?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE)===a,isLoading:g,label:h._("Save"),type:"primary",onClick:q}),isDismissable:!0,title:h._("Edit wishlist privacy"),onClose:e,children:l.jsx(c("DDSFlexbox.react"),{direction:"column",gap:{mobile:24,tablet:48},children:l.jsxs(c("DDSRadioList.react"),{label:h._("Select who can see your wishlist."),value:k,onChange:function(a){o("WISHLIST_SELECT_PRIVACY_PREFERENCE",{content_id:f,privacy_state:a?d("MDCAppStoreShareableWishlistUtil").PUBLIC:d("MDCAppStoreShareableWishlistUtil").PRIVATE}),n(a)},children:[l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconGlobeOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Public")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Anyone with a link to your wishlist can see it")})}),value:!0}),l.jsx(c("DDSRadioItem.react"),{endAdornment:l.jsx(c("DDSIcon.react"),{icon:c("MCDSIconPadlockClosedOutline.svg.react")}),label:l.jsx(c("DDSComplexLabel.react"),{label:l.jsx(c("DDSText.react"),{type:"mcds-small-body-emphasized",children:h._("Private")}),secondaryLabel:l.jsx(c("DDSText.react"),{type:"mcds-label",children:h._("Only you can see your wishlist")})}),value:!1})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation.graphql",["MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"SetWishlistVisibilityResponsePayload",kind:"LinkedField",name:"set_wishlist_visibility",plural:!1,selections:[{alias:null,args:null,concreteType:"Wishlist",kind:"LinkedField",name:"wishlist",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shareable_url",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",selections:c},params:{id:b("MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsButton_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsButton_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist"}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2WishlistPrivacySettingsFlyOut_wishlist",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"privacy_state",storageKey:null}],type:"Wishlist",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2WishlistPrivacySettingsFlyOutMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7400902929986652"}),null);
-----