DeveloperPlatformARAFSubmitConfirmationModal.react",["fbt","DeveloperAppTestIDs","DeveloperConsolidatedAssessmentQPLUtils","DeveloperPlatformARAFSubmitConfirmationModalMutation.graphql","GeoButton.react","GeoCancelButton.react","GeoCheckboxInput.react","GeoFlexbox.react","GeoLink.react","GeoModalFooter.react","GeoModalHeader.react","GeoModal_DEPRECATED.react","GeoText.react","GeoToast.react","RelayHooks","XDeveloperAppControllerRouteBuilder","XDeveloperPlatformDevPolicyControllerRouteBuilder","XDeveloperPlatformTermsControllerRouteBuilder","geoMargin","goURI","qpl","react","useBoolean","useGeoToaster"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useCallback,m=e!==void 0?e:e=n("DeveloperPlatformARAFSubmitConfirmationModalMutation.graphql");function p(e){var t=e.appID,n=e.hideModal,a=e.isShown,i=e.onError,l=e.setInvalidQuestionLabels,u=r("useBoolean")(!1),p=u.value,_=u.toggle,f=r("useGeoToaster")(),g=f.add,h=o("RelayHooks").useMutation(m),y=h[0],C=h[1],b=d(function(){o("DeveloperConsolidatedAssessmentQPLUtils").qplStartLog(t,r("qpl")._(196021396,"2951")),y({variables:{appID:t},onCompleted:function(a){var e,i=(e=a.xfb_application_submit_access_request)==null?void 0:e.success;if(i===!1){var s,u;n(),l([].concat((s=(u=a.xfb_application_submit_access_request)==null?void 0:u.invalid_question_labels)!=null?s:[])),o("DeveloperConsolidatedAssessmentQPLUtils").qplFailureLog(r("qpl")._(196021396,"2951"),"validation failed")}else{n(),o("DeveloperConsolidatedAssessmentQPLUtils").qplSuccessLog(r("qpl")._(196021396,"2951"));var c=new URL(r("XDeveloperAppControllerRouteBuilder").buildURL({app_id:t,page:"app-review",tab:"submissions"}),window.location.origin);c.searchParams.set("show_post_submission_survey_modal","true"),r("goURI")(c.toString())}},onError:function(t){var e,a;((e=t.source)==null||(e=e.exception)==null?void 0:e.class)==="CodedException"?i(t):g(c.jsx(r("GeoToast.react"),{description:s._(/*BTDS*/"Click submit again. Your responses are saved."),heading:s._(/*BTDS*/"Something went wrong"),status:"error"})),n(),o("DeveloperConsolidatedAssessmentQPLUtils").qplFailureLog(r("qpl")._(196021396,"2951"),(a=t.description)!=null?a:"")}})},[g,t,n,i,l,y]);return c.jsx(r("GeoModal_DEPRECATED.react"),{"data-testid":void 0,footer:c.jsx(r("GeoModalFooter.react"),{primaryButton:c.jsx(r("GeoButton.react"),{"data-testid":void 0,isDisabled:!p||C,isLoading:C,label:s._(/*BTDS*/"Submit"),onClick:b,variant:"primary"}),secondaryButton:C?null:c.jsx(r("GeoCancelButton.react"),{onClick:function(){o("DeveloperConsolidatedAssessmentQPLUtils").qplCancelLog(r("qpl")._(196021396,"2951"))}})}),header:c.jsx(r("GeoModalHeader.react"),{heading:C?s._(/*BTDS*/"One momentu2026"):s._(/*BTDS*/"Submit for App Review?")}),hideOnBlur:!1,hideOnEscape:!1,isShown:a,onHide:n,children:c.jsxs(r("GeoFlexbox.react"),{direction:"column",rowGap:16,xstyle:r("geoMargin").horiz16,children:[c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"Developers can no longer edit or cancel submissions once they are in review. Please make sure your submission contains all information that reviewers need to evaluate your app.")}),c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"After you submit we will review your responses and contact you if we require more information.")}),c.jsxs(r("GeoFlexbox.react"),{children:[c.jsx(r("GeoCheckboxInput.react"),{"data-testid":void 0,label:"",onChange:function(){_()},value:p})," ",c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"I acknowledge and agree that access to and use of Platform Data, including the permissions, features and products for which you are submitting for review and any materials you submit for review, are subject to {=m2} and {=m5}, together with all other applicable terms and policies.",[s._implicitParam("=m2",c.jsx(r("GeoLink.react"),{href:r("XDeveloperPlatformTermsControllerRouteBuilder").buildUri({}),target:"_blank",children:s._(/*BTDS*/"Meta Platform Terms")})),s._implicitParam("=m5",c.jsx(r("GeoLink.react"),{href:r("XDeveloperPlatformDevPolicyControllerRouteBuilder").buildUri({}),target:"_blank",children:s._(/*BTDS*/"Developer Policies")}))])})]})]})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226);
-----
DeveloperPlatformARAFSubmitConfirmationModalMutation.graphql",["DeveloperPlatformARAFSubmitConfirmationModalMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"appID"}],t=[{alias:null,args:[{fields:[{kind:"Variable",name:"app_id",variableName:"appID"}],kind:"ObjectValue",name:"input"}],concreteType:"XFBApplicationSubmitAccessRequestResponsePayload",kind:"LinkedField",name:"xfb_application_submit_access_request",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAccessRequestAssessmentJob",kind:"LinkedField",name:"access_request_assessment_job",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"invalid_question_labels",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"DeveloperPlatformARAFSubmitConfirmationModalMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"DeveloperPlatformARAFSubmitConfirmationModalMutation",selections:t},params:{id:n("DeveloperPlatformARAFSubmitConfirmationModalMutation_facebookRelayOperation"),metadata:{},name:"DeveloperPlatformARAFSubmitConfirmationModalMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
DeveloperPlatformARAFSubmitConfirmationModalMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24021278647476624"}),null);
-----