DataPortabilitySelfServeTestingComponentQuery.graphql",["DataPortabilitySelfServeTestingComponentQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"id"}],c=[{alias:null,args:[{kind:"Variable",name:"id",variableName:"id"}],concreteType:"XFBDTPDataTransferApp",kind:"LinkedField",name:"xfb_data_portability_app_query",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"DataPortabilitySelfServeTestingComponentQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"DataPortabilitySelfServeTestingComponentQuery",selections:c},params:{id:b("DataPortabilitySelfServeTestingComponentQuery_facebookRelayOperation"),metadata:{},name:"DataPortabilitySelfServeTestingComponentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
DataPortabilitySelfServeTestingComponentQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24624771630463123"}),null);
-----
DataPortabilitySelfServeTestingComponent.react",["fbt","DataPortabilityOAuthAccessTokenTestCard.react","DataPortabilityOAuthRefreshTokenTestCard.react","DataPortabilityOAuthServerRedirectTestCard.react","DataPortabilitySelfServeTestingComponentQuery.graphql","DataPortabilitySelfServeTestingUtils","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoSection.react","GeoStep.react","GeoStepper.react","GeoVStack.react","RelayHooks","gkx","nullthrows","react","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("DataPortabilitySelfServeTestingComponentQuery.graphql");function a(a){a=a.appId;var b=m("1"),e=b[0],f=b[1];b=c("useGeoTheme")();var g=b.selectBorderRadius;b=b.selectStaticBackgroundColor;a=d("RelayHooks").useLazyLoadQuery(n,{id:a});a=c("nullthrows")(a.xfb_data_portability_app_query);a=c("nullthrows")(a.id);var i=m(d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.PENDING),j=i[0];i=i[1];var p=m(d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.PENDING),q=p[0];p=p[1];var r=m(),s=r[0],t=r[1];r=m();var u=r[0];r=r[1];var v=m(),w=v[0];v=v[1];var x=m(),y=x[0];x=x[1];l(function(){var a=new URLSearchParams(window.location.search);a.has("code")&&a.get("code")!=null&&t(a.get("code"))},[]);g=[o.wrapper,g({context:"container"}),b({surface:"wash"})];b=function(a){switch(a){case d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.IN_PROGRESS:return"loading";case d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.SUCCESS:return"completed";case d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.ERROR:return"error";default:return"pending"}};var z=c("gkx")("16316");return z?k.jsx(c("GeoCard.react"),{isOverflowXAuto:!1,isOverflowYAuto:!1,xstyle:o.card,children:k.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",xstyle:g,children:[k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoVStack.react"),{context:"content",relation:"paragraph",xstyle:o.stepper,children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Test flows")}),k.jsxs(c("GeoStepper.react"),{onChange:function(a){return f(a)},value:e,children:[k.jsx(c("GeoStep.react"),{id:"1",label:h._(/*BTDS*/"OAuth server redirect"),status:b(j)}),k.jsx(c("GeoStep.react"),{id:"2",label:h._(/*BTDS*/"OAuth access token"),status:b(q)}),k.jsx(c("GeoStep.react"),{id:"3",label:h._(/*BTDS*/"OAuth refresh token")})]})]})}),e==="1"&&k.jsx(c("DataPortabilityOAuthServerRedirectTestCard.react"),{destination_app_id:a,oAuthServerRedirectTestStatus:j,setOAuthServerRedirectTestStatus:i}),e==="2"&&k.jsx(c("DataPortabilityOAuthAccessTokenTestCard.react"),{accessTokenFlowStatus:q,authCode:s,destination_app_id:a,refreshToken:w,scope:y,setAccessToken:r,setAccessTokenFlowStatus:p,setRefreshToken:v,setScope:x}),e==="3"&&k.jsx(c("DataPortabilityOAuthRefreshTokenTestCard.react"),{_accessToken:u,_refreshToken:w})]})}):null}a.displayName=a.name+" [from "+f.id+"]";var o={wrapper:{height:"x5yr21d",$$css:!0},stepper:{width:"x1oysuqx",$$css:!0},card:{minWidth:"xppr10f",minHeight:"x1lpwdgh",$$css:!0}};g["default"]=a}),226);
-----
-----
DataPortabilitySelfServeTestingComponentQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24624771630463123"}),null);
-----
DataPortabilitySelfServeTestingComponent.react",["fbt","DataPortabilityOAuthAccessTokenTestCard.react","DataPortabilityOAuthRefreshTokenTestCard.react","DataPortabilityOAuthServerRedirectTestCard.react","DataPortabilitySelfServeTestingComponentQuery.graphql","DataPortabilitySelfServeTestingUtils","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoSection.react","GeoStep.react","GeoStepper.react","GeoVStack.react","RelayHooks","gkx","nullthrows","react","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("DataPortabilitySelfServeTestingComponentQuery.graphql");function a(a){a=a.appId;var b=m("1"),e=b[0],f=b[1];b=c("useGeoTheme")();var g=b.selectBorderRadius;b=b.selectStaticBackgroundColor;a=d("RelayHooks").useLazyLoadQuery(n,{id:a});a=c("nullthrows")(a.xfb_data_portability_app_query);a=c("nullthrows")(a.id);var i=m(d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.PENDING),j=i[0];i=i[1];var p=m(d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.PENDING),q=p[0];p=p[1];var r=m(),s=r[0],t=r[1];r=m();var u=r[0];r=r[1];var v=m(),w=v[0];v=v[1];var x=m(),y=x[0];x=x[1];l(function(){var a=new URLSearchParams(window.location.search);a.has("code")&&a.get("code")!=null&&t(a.get("code"))},[]);g=[o.wrapper,g({context:"container"}),b({surface:"wash"})];b=function(a){switch(a){case d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.IN_PROGRESS:return"loading";case d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.SUCCESS:return"completed";case d("DataPortabilitySelfServeTestingUtils").DTPAppTestFlowStatus.ERROR:return"error";default:return"pending"}};var z=c("gkx")("16316");return z?k.jsx(c("GeoCard.react"),{isOverflowXAuto:!1,isOverflowYAuto:!1,xstyle:o.card,children:k.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",xstyle:g,children:[k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoVStack.react"),{context:"content",relation:"paragraph",xstyle:o.stepper,children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Test flows")}),k.jsxs(c("GeoStepper.react"),{onChange:function(a){return f(a)},value:e,children:[k.jsx(c("GeoStep.react"),{id:"1",label:h._(/*BTDS*/"OAuth server redirect"),status:b(j)}),k.jsx(c("GeoStep.react"),{id:"2",label:h._(/*BTDS*/"OAuth access token"),status:b(q)}),k.jsx(c("GeoStep.react"),{id:"3",label:h._(/*BTDS*/"OAuth refresh token")})]})]})}),e==="1"&&k.jsx(c("DataPortabilityOAuthServerRedirectTestCard.react"),{destination_app_id:a,oAuthServerRedirectTestStatus:j,setOAuthServerRedirectTestStatus:i}),e==="2"&&k.jsx(c("DataPortabilityOAuthAccessTokenTestCard.react"),{accessTokenFlowStatus:q,authCode:s,destination_app_id:a,refreshToken:w,scope:y,setAccessToken:r,setAccessTokenFlowStatus:p,setRefreshToken:v,setScope:x}),e==="3"&&k.jsx(c("DataPortabilityOAuthRefreshTokenTestCard.react"),{_accessToken:u,_refreshToken:w})]})}):null}a.displayName=a.name+" [from "+f.id+"]";var o={wrapper:{height:"x5yr21d",$$css:!0},stepper:{width:"x1oysuqx",$$css:!0},card:{minWidth:"xppr10f",minHeight:"x1lpwdgh",$$css:!0}};g["default"]=a}),226);
-----