DeveloperPlatformARAFAppSettingsPage.react",["fbt","DeveloperAppTestIDs","DeveloperPlatformARAFAppCategories.react","DeveloperPlatformARAFAppContact.react","DeveloperPlatformARAFAppIcon.react","DeveloperPlatformARAFAppSettingsPageMutation.graphql","DeveloperPlatformARAFAppSettingsPage_app.graphql","DeveloperPlatformARAFAppSettingsUtil","DeveloperPlatformARAFAppUserDataDeletion.react","DeveloperPlatformARAFBackToOverviewButton.react","DeveloperPlatformARAFContext","DeveloperPlatformARAFFooter.react","DeveloperPlatformARAFPrivacyPolicy.react","GeoButton.react","GeoCard.react","GeoDivider.react","GeoFlexbox.react","GeoTextPairing.react","GeoToast.react","GeoVStack.react","RelayHooks","geoMargin","isStringNullOrEmpty","react","useBoolean","useGeoToaster"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c.useState;function p(t){var a,i=t.app,l=o("RelayHooks").useFragment(e!==void 0?e:e=n("DeveloperPlatformARAFAppSettingsPage_app.graphql"),i),c=m((a=l.privacy_url)==null?void 0:a.toString()),p=c[0],_=c[1],f=l.access_request_assessment_module.has_icon,g=l.application_category,h=null;o("DeveloperPlatformARAFAppSettingsUtil").isGamesCategory(g)&&(h=g,g=400);var y=m(g),C=y[0],b=y[1],v=m(h),S=v[0],R=v[1],L=l.access_request_assessment_module.latest_submission.require_user_data_deletion,E=o("DeveloperPlatformARAFContext").useDeveloperPlatformARAFContext(),k=E.setPage,I=o("RelayHooks").useMutation(u!==void 0?u:u=n("DeveloperPlatformARAFAppSettingsPageMutation.graphql")),T=I[0],D=I[1],x=m(l.access_request_assessment_module.latest_submission.data_deletion_info),$=x[0],P=x[1],N=r("useGeoToaster")(),M=N.add,w=r("useBoolean")(!1),A=w.value,F=w.set,O=r("useBoolean")(!1),B=O.value,W=O.set,q=function(){T({variables:{app_id:l.id,input:{privacy_policy_url:p,app_category:C,app_sub_category:S,user_data_deletion_info:$&&{url_type:$.url_type,url:$.url}}},onCompleted:function(){F(!1),k("REQUEST_PERMISSION")},onError:function(t){var e,n;if(((e=t.source)==null?void 0:e.code)===1540040)F(!0);else if(((n=t.source)==null||(n=n.exception)==null?void 0:n.class)==="CodedException"){var o;M(d.jsx(r("GeoToast.react"),{heading:s._(/*BTDS*/"{error message from defined description in error code tool}",[s._param("error message from defined description in error code tool",((o=t.source)==null||(o=o.exception)==null?void 0:o.message)||"An error occurred.")]),status:"error"}))}else M(d.jsx(r("GeoToast.react"),{heading:s._(/*BTDS*/"An error occurred. Please try again later."),status:"error"}))}})};return d.jsxs(r("GeoVStack.react"),{"data-testid":void 0,children:[d.jsx(r("GeoTextPairing.react"),{description:s._(/*BTDS*/"The following settings fields are required to submit your app for review"),heading:s._(/*BTDS*/"App settings"),size:"header2"}),d.jsx(r("GeoCard.react"),{children:d.jsxs(r("GeoFlexbox.react"),{direction:"column",xstyle:r("geoMargin").vert4,children:[d.jsx(r("DeveloperPlatformARAFAppIcon.react"),{app:l,canSeeErrorMessages:B}),d.jsx(r("GeoDivider.react"),{xstyle:r("geoMargin").horiz16}),d.jsx(r("DeveloperPlatformARAFPrivacyPolicy.react"),{app:l,canSeeErrorMessages:B,isBadUrl:A,isDisabled:D,privacyPolicyURL:p,setPrivacyPolicyURL:_}),d.jsx(r("GeoDivider.react"),{xstyle:r("geoMargin").horiz16}),L&&d.jsxs(d.Fragment,{children:[d.jsx(r("DeveloperPlatformARAFAppUserDataDeletion.react"),{app:l,canSeeErrorMessages:B,isDisabled:D,onUserDataDeletionInfoChanged:P}),d.jsx(r("GeoDivider.react"),{xstyle:r("geoMargin").horiz16})]}),d.jsx(r("DeveloperPlatformARAFAppCategories.react"),{app:l,canSeeErrorMessages:B,isDisabled:D,selectedCategory:C,selectedSubCategory:S,setSelectedCategory:b,setSelectedSubCategory:R}),d.jsx(r("GeoDivider.react"),{xstyle:r("geoMargin").horiz16}),d.jsx(r("DeveloperPlatformARAFAppContact.react"),{app:l})]})}),d.jsx(r("DeveloperPlatformARAFFooter.react"),{leftContent:d.jsx(r("DeveloperPlatformARAFBackToOverviewButton.react"),{}),primaryButton:d.jsx(r("GeoButton.react"),{isDisabled:D,isLoading:D,label:s._(/*BTDS*/"Next"),onClick:function(){W(!0),f&&!r("isStringNullOrEmpty")(p)&&(C!=null?C:0)!==0&&(!L||$!=null)&&q()},variant:"primary"}),secondaryButton:d.jsx(r("GeoButton.react"),{label:s._(/*BTDS*/"Previous"),onClick:function(){k("BUSINESS_CONNECTION")}})})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226);
-----
DeveloperPlatformARAFAppSettingsPageMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="10034049576662337"}),null);
-----
-----
DeveloperPlatformARAFAppSettingsPageMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="10034049576662337"}),null);
-----