OCDevManageMetaCreditsDetailsView.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPageCard.react","GeoPageSection.react","GeoText.react","Image.react","OCDevManageApplicationAnalyticsRevenueRoute","OCDevManageMetaCreditsBenefitCard.react","OCDevManageMetaCreditsDetailsViewMutation.graphql","OCDevManageMetaCreditsDetailsView_application.graphql","OCDevManageMetaCreditsEnrollConfirmationModal.react","OCDevManageMetaCreditsEnrollSuccessModal.react","OCDevManageMetaCreditsTaxInfoCard.react","OCDevManageOrganizationPaymentRoute","OCDevManageOrganizationPaymentSection","OCDevManagePage.react","OCDevManagePageHeader.react","OCDevUILinkButton.react","OCDevUIModalParams","OCDevUIPageHeaderToolbar.react","RelayHooks","asyncToGeneratorRuntime","fbicon","geoMargin","react","useOCDevUICommitMutation","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react");function a(a){var e;a=a.application;var f=c("useOCDevUIModal")(),g=f.openModal;f=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageMetaCreditsDetailsView_application.graphql"),a);var l=(a=f==null?void 0:f.meta_credit_monetization_status)!=null?a:"DISABLED",o=(a=f==null||(e=f.organization)==null?void 0:e.id)!=null?a:"",p=(a=f==null?void 0:f.id)!=null?a:"",q=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageMetaCreditsDetailsViewMutation.graphql"));function r(){return s.apply(this,arguments)}function s(){s=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield q({input:{application_id:p,action:"OPT_IN"}}));a&&g(m.jsx(c("OCDevManageMetaCreditsEnrollSuccessModal.react"),{organizationID:o}),{size:d("OCDevUIModalParams").OCDevUIModalSize.EXTRA_SMALL})});return s.apply(this,arguments)}f=m.jsxs(c("GeoFlexbox.react"),{direction:"row",gap:16,xstyle:n.sectionPadding,children:[m.jsx(c("OCDevManageMetaCreditsBenefitCard.react"),{altText:"Flexible purchasing icon",description:h._(/*BTDS*/"Users can get avatar goods, in-world purchases and apps from Meta Horizon Store with either the existing cash pricing or Meta Credits u2013 whatever works best."),iconSource:i("912537"),title:h._(/*BTDS*/"Flexible purchasing")}),m.jsx(c("OCDevManageMetaCreditsBenefitCard.react"),{altText:"Reduce purchase friction icon",description:h._(/*BTDS*/"Remove purchase barriers and drive higher purchase rates with a streamlined purchase flow."),iconSource:i("897788"),title:h._(/*BTDS*/"Reduce purchase friction")}),m.jsx(c("OCDevManageMetaCreditsBenefitCard.react"),{altText:"Streamlined checkout icon",description:h._(/*BTDS*/"A smoother buying experience means happier users and fewer drop-offs."),iconSource:i("843663"),title:h._(/*BTDS*/"Streamlined checkout")})]});a=function(){switch(l){case"DISABLED":return m.jsx(c("GeoButton.react"),{label:h._(/*BTDS*/"Enrol now"),variant:"creation",onClick:function(){return g(m.jsx(c("OCDevManageMetaCreditsEnrollConfirmationModal.react"),{onEnroll:r}),{size:d("OCDevUIModalParams").OCDevUIModalSize.EXTRA_SMALL})}});case"ENABLED":case"TASKLESS_PENDING":return m.jsx(c("OCDevUILinkButton.react"),{href:c("OCDevManageApplicationAnalyticsRevenueRoute").getURI({applicationID:p}),icon:d("fbicon")._(i("489803"),16),label:h._(/*BTDS*/"View analytics"),variant:"primary"});case"TASKLESS_NOT_STARTED":return m.jsx(c("OCDevUILinkButton.react"),{href:c("OCDevManageOrganizationPaymentRoute").getURI({organizationID:o,paymentSection:c("OCDevManageOrganizationPaymentSection").PAYMENT_INFO}),label:h._(/*BTDS*/"Add tax info"),variant:"primary"});default:return null}};return m.jsx(c("OCDevManagePage.react"),{columns:12,header:m.jsx(c("OCDevManagePageHeader.react"),{description:h._(/*BTDS*/"Meta Credits make it easier for users to buy apps and in-world items u2013 helping you boost sales and simplify payments."),heading:h._(/*BTDS*/"Meta Credits"),toolbar:m.jsx(c("OCDevUIPageHeaderToolbar.react"),{children:a()})}),children:m.jsxs(c("GeoPageSection.react"),{children:[l==="TASKLESS_NOT_STARTED"&&m.jsx(c("OCDevManageMetaCreditsTaxInfoCard.react"),{organizationID:o}),m.jsxs(c("GeoPageCard.react"),{columns:12,children:[m.jsx(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",children:m.jsxs("div",{className:"x1n2onr6 xh8yej3 x1lpwdgh x6ikm8r x10wlt62",children:[m.jsx(c("Image.react"),{alt:"Meta Credits banner background",src:i("912565"),xstyle:n.bannerBackgroundImage}),m.jsxs("div",{className:"x10l6tqk x13vifvy x1nrll8i x3m8u43 x1ey2m1c x78zum5 xdt5ytf x6s0dn4 xl56j7k x13zrc24 xp48ta0 x1t1ogtf xtssl2i x2b8uid",children:[m.jsx(c("GeoHeading.react"),{level:1,children:h._(/*BTDS*/"Unlock more value with Meta Credits")}),m.jsx("div",{className:"x1u5lrna x1xmf6yo",children:m.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Meta Credits are used across Meta Horizon to get in-world items, apps and avatar goods. Enrol today to simplify checkout and streamline purchasing.")})})]})]})}),m.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:4,xstyle:n.sectionPadding,children:[m.jsx(c("GeoHeading.react"),{level:1,xstyle:c("geoMargin").top24,children:h._(/*BTDS*/"Why use Meta Credits?")}),m.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Make it easier for users to get what they want with increased flexibility and streamlined purchasing.")}),m.jsx(c("GeoText.react"),{children:m.jsx(c("GeoLink.react"),{children:h._(/*BTDS*/"Learn more")})})]}),f]})]})})}a.displayName=a.name+" [from "+f.id+"]";var n={bannerBackgroundImage:{position:"x10l6tqk",top:"x13vifvy",left:"xu96u03",insetInlineStart:null,insetInlineEnd:null,width:"xh8yej3",height:"x5yr21d",$$css:!0},sectionPadding:{paddingTop:"x1p5oq8j",paddingInlineEnd:"x64bnmy",paddingBottom:"xwxc41k",paddingInlineStart:"x13jy36j",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageMetaCreditsDetailsViewMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{kind:"Variable",name:"data",variableName:"input"}],c={alias:null,args:null,kind:"ScalarField",name:"meta_credit_monetization_status",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageMetaCreditsDetailsViewMutation",selections:[{alias:null,args:b,concreteType:"XOCUpdateMetaCreditsMonetizationStatusResponsePayload",kind:"LinkedField",name:"xoc_update_meta_credits_monetization_status",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"application",plural:!1,selections:[c],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageMetaCreditsDetailsViewMutation",selections:[{alias:null,args:b,concreteType:"XOCUpdateMetaCreditsMonetizationStatusResponsePayload",kind:"LinkedField",name:"xoc_update_meta_credits_monetization_status",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"application",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"30288169174163509",metadata:{},name:"OCDevManageMetaCreditsDetailsViewMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevManageMetaCreditsDetailsView_application.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:"OCDevManageMetaCreditsDetailsView_application",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"meta_credit_monetization_status",storageKey:null},{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[a],storageKey:null}],type:"Application",abstractKey:null}}();e.exports=a}),null);
-----