DeveloperDUCAllowedUsageNonResponseViolationCard.react",["fbt","DeveloperComplianceLoggerUtils","DeveloperConsolidatedAssessmentPrivilegesContainer.react","DeveloperDUCAllowedUsageNonResponseViolationCardMutation.graphql","DeveloperDUCAllowedUsageNonResponseViolationCard_data.graphql","DeveloperRequiredActionsDashboardPreviewHeader.react","DeveloperRequiredActionsDashboardText","DeveloperViolationAndAppealDetails.react","GeoButton.react","GeoCard.react","GeoCardFooter.react","GeoCheckboxInput.react","GeoDivider.react","GeoFlexbox.react","GeoLink.react","GeoScrollableArea.react","GeoSection.react","GeoText.react","GeoTextPairing.react","GeoToast.react","GeoVStack.react","RelayHooks","XDeveloperPlatformDevPolicyControllerRouteBuilder","XDeveloperPlatformTermsControllerRouteBuilder","err","geoMargin","react","useBoolean","useGeoToaster","useUpdateRequiredActionStatus"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c.useState,p=e!==void 0?e:e=n("DeveloperDUCAllowedUsageNonResponseViolationCard_data.graphql"),_=u!==void 0?u:u=n("DeveloperDUCAllowedUsageNonResponseViolationCardMutation.graphql");function f(e){var t,n,a,i,l,u=e.onClose,c=e.selectedRequiredAction,f=e.violation,g=o("RelayHooks").useFragment(p,f),h=m(!1),y=h[0],C=h[1],b=(t=g.fb_application)==null?void 0:t.id,v=o("RelayHooks").useMutation(_),S=v[0],R=r("useGeoToaster")(),L=R.add,E=r("useUpdateRequiredActionStatus")(b,(n=g.id)!=null?n:""),k=g==null||(a=g.fb_application)==null||(a=a.access_request_assessment_module)==null?void 0:a.non_response_violation_impacted_self_cert_data,I=(i=k==null||(l=k.privileges)==null||(l=l.nodes)==null?void 0:l.length)!=null?i:0;if(I===0){var T=r("err")("DeveloperDUCAllowedUsageNonResponseViolationCard: No privileges found.");throw o("DeveloperComplianceLoggerUtils").logDeveloperComplianceError(T,{app_id:b,code_location:"DeveloperDUCAllowedUsageNonResponseViolationCard",program:"data_use_checkup"}),T}var D=m(0),x=D[0],$=D[1],P=m(!1),N=P[0],M=P[1],w=r("useBoolean")(!1),A=w.value,F=w.toggle,O=function(){var e,t,n;if(x!==I&&I>0){M(!0);return}C(!0),M(!1);var a=(e=k==null||(t=k.privileges)==null||(t=t.nodes)==null?void 0:t.map(function(e){var t;return e==null||(t=e.application_reviewable_feature)==null?void 0:t.id}).filter(Boolean))!=null?e:[];S({variables:{input:{violation_id:(n=g.id)!=null?n:"",app_id:b,privileges:a}},onError:function(t){o("DeveloperComplianceLoggerUtils").logDeveloperComplianceEvent({app_id:b,code_location:"DeveloperDUCAllowedUsageNonResponseViolationCard",event:"data_use_checkup_non_response_violation_submission_failed",additional_info:JSON.stringify({reason:"mutation_error",error:t.message,violation_id:g.id})}),L(d.jsx(r("GeoToast.react"),{heading:s._(/*BTDS*/"An error occurred while submitting your certification. Please try again later.").toLocaleString(),status:"error"})),C(!1)},updater:E,onCompleted:function(t){o("DeveloperComplianceLoggerUtils").logDeveloperComplianceEvent({app_id:b,code_location:"DeveloperDUCAllowedUsageNonResponseViolationCard",event:"data_use_checkup_non_response_violation_submission_success",additional_info:JSON.stringify({violation_id:g.id})}),L(d.jsx(r("GeoToast.react"),{heading:s._(/*BTDS*/"Your certification has been successfully submitted.").toLocaleString(),status:"success"})),u==null||u()}})};return d.jsxs(r("GeoVStack.react"),{children:[c!=null&&d.jsx(r("DeveloperRequiredActionsDashboardPreviewHeader.react"),{description:o("DeveloperRequiredActionsDashboardText").genericViolationDescription,onClickCloseButton:u!=null?u:function(){},requiredAction:c,title:o("DeveloperRequiredActionsDashboardText").genericViolationTitle}),d.jsxs(r("GeoScrollableArea.react"),{children:[d.jsx(r("DeveloperViolationAndAppealDetails.react"),{violation:g}),d.jsx(r("GeoSection.react"),{children:k&&d.jsx(r("GeoCard.react"),{children:d.jsxs(r("GeoFlexbox.react"),{direction:"column",xstyle:r("geoMargin").all16,children:[d.jsx(r("GeoTextPairing.react"),{description:s._(/*BTDS*/"This app was approved for the following permissions and features. Please examine the allowed usage for each and certify your use within the allowance. To certify, click the box next to each permission or feature before continuing."),heading:s._(/*BTDS*/"Allowed usage"),size:"header2"}),d.jsx(r("GeoDivider.react"),{xstyle:r("geoMargin").vert16}),d.jsx(r("DeveloperConsolidatedAssessmentPrivilegesContainer.react"),{isValidationErrorShown:N,numSelfCertComplete:x,privsData:k,progressStatus:"NOT_COMPLETE",setNumSelfCertComplete:$,showDescriptionText:!1}),d.jsx(r("GeoDivider.react"),{xstyle:r("geoMargin").vert16}),d.jsxs(r("GeoFlexbox.react"),{children:[d.jsx(r("GeoCheckboxInput.react"),{label:"",onChange:F,value:A})," ",d.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",d.jsx(r("GeoLink.react"),{href:r("XDeveloperPlatformTermsControllerRouteBuilder").buildUri({}),target:"_blank",children:s._(/*BTDS*/"Meta Platform Terms")})),s._implicitParam("=m5",d.jsx(r("GeoLink.react"),{href:r("XDeveloperPlatformDevPolicyControllerRouteBuilder").buildUri({}),target:"_blank",children:s._(/*BTDS*/"Developer Policies")}))])})]})]})})})]}),d.jsx(r("GeoCardFooter.react"),{primaryButton:d.jsx(r("GeoButton.react"),{isDisabled:y||x!==I||!A,isLoading:y,label:s._(/*BTDS*/"Submit"),onClick:O,variant:"primary"})})]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226);
-----
DeveloperDUCAllowedUsageNonResponseViolationCardMutation.graphql",["DeveloperDUCAllowedUsageNonResponseViolationCardMutation_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:"XFBRecertNonResponseViolationResult",kind:"LinkedField",name:"xfb_duc_recertify_non_response_violation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"DeveloperDUCAllowedUsageNonResponseViolationCardMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"DeveloperDUCAllowedUsageNonResponseViolationCardMutation",selections:t},params:{id:n("DeveloperDUCAllowedUsageNonResponseViolationCardMutation_facebookRelayOperation"),metadata:{},name:"DeveloperDUCAllowedUsageNonResponseViolationCardMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
DeveloperDUCAllowedUsageNonResponseViolationCardMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24859471167072396"}),null);
-----