InstantGamesDeletePlayerProgressCard.react",["fbt","ix","DeveloperInstantGamesSaveSpinnerOverlay.react","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoIcon.react","GeoModalFooter.react","GeoModalHeader.react","GeoModal_DEPRECATED.react","GeoSection.react","GeoText.react","InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation.graphql","RelayHooks","fbicon","geoMargin","react"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c,d=c||(c=o("react")),m=c.useState,p=e!==void 0?e:e=n("InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation.graphql");function _(e){var t=e.appId,n=e.isAdminOrDeveloper,a=o("RelayHooks").useMutation(p),i=a[0],l=a[1],c=m(null),_=c[0],f=c[1],g=m(null),h=g[0],y=g[1],C=m(!1),b=C[0],v=C[1],S=function(){window.setTimeout(function(){f(null)},3e3)},R=function(){i({variables:{input:{app_id:t}},onCompleted:function(t){var e;if(((e=t.xfb_instant_game_delete_player_scope)==null?void 0:e.success)===!0)f(!0),S();else{var n;f(!1),y((n=t.xfb_instant_game_delete_player_scope)==null?void 0:n.error_message),S()}}})};return n&&d.jsxs(r("GeoCard.react"),{xstyle:r("geoMargin").bottom16,children:[d.jsx(r("GeoSection.react"),{children:d.jsx(r("GeoHeading.react"),{level:2,children:s._(/*BTDS*/"[Admin/Developer] Delete your current player ID in this game")})}),d.jsx(r("GeoSection.react"),{children:d.jsxs(r("GeoFlexbox.react"),{direction:"column",children:[d.jsx(r("GeoText.react"),{xstyle:r("geoMargin").bottom8,children:s._(/*BTDS*/"Click this button to delete your current player ID in the game. Doing so will generate a new player ID for you and effectively reset any progress made on the game.")}),d.jsx(r("GeoButton.react"),{isDisabled:l,isLoading:l,label:s._(/*BTDS*/"Delete"),onClick:function(){return v(!0)}})]})}),d.jsx(r("DeveloperInstantGamesSaveSpinnerOverlay.react"),{borderRadius:8,bottomMargin:0,errorMessage:h,saveError:_!=null&&_===!1,saveSuccess:_!=null&&_===!0,savedMessage:s._(/*BTDS*/"Success"),saving:l}),b&&d.jsx(r("GeoModal_DEPRECATED.react"),{footer:d.jsx(r("GeoModalFooter.react"),{primaryButton:d.jsx(r("GeoButton.react"),{isDisabled:l,isLoading:l,label:s._(/*BTDS*/"Delete"),onClick:function(){R(),v(!1)}}),secondaryButton:d.jsx(r("GeoButton.react"),{label:s._(/*BTDS*/"Cancel"),onClick:function(){return v(!1)}})}),header:d.jsx(r("GeoModalHeader.react"),{heading:s._(/*BTDS*/"Confirm delete")}),isShown:b,onHide:function(){return v(!1)},children:d.jsx(r("GeoSection.react"),{children:d.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",children:[d.jsx(r("GeoIcon.react"),{color:"warning",icon:o("fbicon")._(u("502062"),20),xstyle:r("geoMargin").end12}),d.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"This action will permanently delete your current player ID and grant a new player ID to you. Any progress associated with your current player ID will likely be lost on and off Facebook. There will be no way to recover your progress.")})]})})})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226);
-----
InstantGamesDeletePlayerProgressCardContainer.react",["InstantGamesDeletePlayerProgressCard.react","RelayFBEnvironment","RelayHooks","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=e.appId,n=e.isAdminOrDeveloper;return s.jsx(o("RelayHooks").RelayEnvironmentProvider,{environment:r("RelayFBEnvironment"),children:s.jsx(r("InstantGamesDeletePlayerProgressCard.react"),{appId:t,isAdminOrDeveloper:n})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98);
-----
InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation.graphql",["InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBDeleteInstantGamePlayerScopeResponse",kind:"LinkedField",name:"xfb_instant_game_delete_player_scope",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation",selections:t},params:{id:n("InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation_facebookRelayOperation"),metadata:{},name:"InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24290761240618894"}),null);
-----
-----
InstantGamesDeletePlayerProgressCardContainer.react",["InstantGamesDeletePlayerProgressCard.react","RelayFBEnvironment","RelayHooks","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=e.appId,n=e.isAdminOrDeveloper;return s.jsx(o("RelayHooks").RelayEnvironmentProvider,{environment:r("RelayFBEnvironment"),children:s.jsx(r("InstantGamesDeletePlayerProgressCard.react"),{appId:t,isAdminOrDeveloper:n})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98);
-----
InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation.graphql",["InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBDeleteInstantGamePlayerScopeResponse",kind:"LinkedField",name:"xfb_instant_game_delete_player_scope",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation",selections:t},params:{id:n("InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation_facebookRelayOperation"),metadata:{},name:"InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
InstantGamesDeletePlayerProgressCard_DeletePlayerProgressMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24290761240618894"}),null);
-----