OCDevManageWorldsMonetizationRewardsNoMilestonesNullstate.react",["fbt","GeoButton.react","GeoCard.react","GeoCardHeader.react","GeoFlexbox.react","GeoHeading.react","GeoProgressBar.react","GeoText.react","HorizonCreatorRewardsUtils","HzWorldsCreatorWebEventsFalcoEvent","OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation.graphql","RelayHooks","geoMargin","geoWidth","react","useVisibilityObserver"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useCallback;function m(t){var a=t.totalAvailable,l=r("useVisibilityObserver")({onVisible:d(function(){r("HzWorldsCreatorWebEventsFalcoEvent").log(function(){return{event:"MONETIZATION_REWARDS_NO_MILESTONES_NULLSTATE_CARD_IMPRESSION"}})},[])}),u=o("RelayHooks").useMutation(e!==void 0?e:e=n("OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation.graphql")),m=u[0],p=u[1],_=function(){window.location.reload()};return c.jsx(r("GeoFlexbox.react"),{direction:"column",xstyle:r("geoWidth").fullWidth,children:c.jsxs(r("GeoFlexbox.react"),{containerRef:l,"data-testid":void 0,direction:"column",xstyle:[r("geoMargin").bottom24,r("geoWidth").fullWidth],children:[c.jsx(r("GeoHeading.react"),{level:1,children:s._(/*BTDS*/"Milestone rewards")}),c.jsxs(r("GeoFlexbox.react"),{direction:"row",xstyle:r("geoWidth").fullWidth,children:[c.jsx(r("GeoFlexbox.react"),{grow:1,children:c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"Your first world to reach a milestone within a 28-day period will unlock the associated reward. These are one-off rewards, with payments made at the end of each month.")})}),c.jsxs(r("GeoFlexbox.react"),{alignContent:"end",direction:"column",shrink:0,children:[c.jsx("div",{className:"x1xlr1w8",children:o("HorizonCreatorRewardsUtils").getMilestoneProgressMessage(a)}),c.jsx("div",{children:c.jsx(r("GeoProgressBar.react"),{height:"medium",progress:0,status:"success",loggingName:i.id})})]})]}),c.jsx(r("GeoFlexbox.react"),{direction:"column",xstyle:[r("geoWidth").fullWidth,r("geoMargin").top16],children:c.jsx(r("GeoCard.react"),{header:c.jsx(r("GeoCardHeader.react"),{heading:o("HorizonCreatorRewardsUtils").getMilestoneHeader(a)}),children:c.jsx(r("GeoButton.react"),{isLoading:p,label:s._(/*BTDS*/"Get started"),variant:"primary",xstyle:[r("geoMargin").start20,r("geoMargin").bottom16],onClick:function(){r("HzWorldsCreatorWebEventsFalcoEvent").log(function(){return{event:"MONETIZATION_REWARDS_MILESTONES_NULLSTATE_START_BUTTON_CLICK"}}),m({onCompleted:_,onError:_,variables:{}})}})})})]})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226);
-----
OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{alias:null,args:null,kind:"ScalarField",name:"xfb_horizon_creator_enroll_in_milestone_bonuses",storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation",selections:e,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation",selections:e},params:{id:"25699244753010934",metadata:{},name:"OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
-----
OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{alias:null,args:null,kind:"ScalarField",name:"xfb_horizon_creator_enroll_in_milestone_bonuses",storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation",selections:e,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation",selections:e},params:{id:"25699244753010934",metadata:{},name:"OCDevManageWorldsMonetizationRewardsNoMilestonesNullstateEnrollMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----