BizInboxWhatsAppReportCustomerMutation",["BizInboxWhatsAppReportCustomerMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("BizInboxWhatsAppReportCustomerMutation.graphql");g.reportCustomerMutation=a}),98);
-----
CRMReportWAUserConfirmationDialog.react",["fbt","BIZInboxClientLogger","BizInboxFbtUtils","BizInboxStateContext","BizInboxWhatsAppReportCustomerMutation","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoToast.react","react","react-relay","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useState;function a(a){var b=a.onConfirm,e=a.onHide,f=a.pageContactID;a=c("useGeoToaster")();var g=a.add;a=k(c("BizInboxStateContext"));var i=a.pageID;a=d("react-relay").useMutation(d("BizInboxWhatsAppReportCustomerMutation").reportCustomerMutation);var m=a[0];a=l(!1);var n=a[0],o=a[1],p=function(){g(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getWhatsAppBlockReportErrorToast(),status:"error"}),{duration:"sticky"})},q=function(){d("BIZInboxClientLogger").logWhatsAppReportSuccess(i)},r=function(a){p(),d("BIZInboxClientLogger").logWhatsAppReportError(i,a)},s=function(){g(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getWhatsAppReportToast()}))};a=function(){d("BIZInboxClientLogger").logWhatsAppConfirmReportClick(i),f!=null&&(o(!0),m({variables:{input:{contact_id:f,page_id:i}},onCompleted:function(a){var c;o(!1);a=a==null||(c=a.xfb_biz_inbox_whatsapp_report_customer_mutation)==null?void 0:c.is_success;a===!0&&(s(),q());b()},onError:function(a){o(!1),r(a),b()}}))};return j.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{isLoading:n,label:h._(/*BTDS*/"Confirm"),onClick:a,variant:"primary"}),secondaryButton:j.jsx(c("GeoCancelButton.react"),{})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._(/*BTDS*/"Are you sure you want to report this person?")}),onHide:e,children:j.jsx(j.Fragment,{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizInboxWhatsAppReportCustomerMutation.graphql",["BizInboxWhatsAppReportCustomerMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBBizInboxWECReportCustomerMutationResponse",kind:"LinkedField",name:"xfb_biz_inbox_whatsapp_report_customer_mutation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BizInboxWhatsAppReportCustomerMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BizInboxWhatsAppReportCustomerMutation",selections:c},params:{id:b("BizInboxWhatsAppReportCustomerMutation_facebookRelayOperation"),metadata:{},name:"BizInboxWhatsAppReportCustomerMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BizInboxWhatsAppReportCustomerMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="10087418788006806"}),null);
-----
-----
CRMReportWAUserConfirmationDialog.react",["fbt","BIZInboxClientLogger","BizInboxFbtUtils","BizInboxStateContext","BizInboxWhatsAppReportCustomerMutation","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoToast.react","react","react-relay","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useState;function a(a){var b=a.onConfirm,e=a.onHide,f=a.pageContactID;a=c("useGeoToaster")();var g=a.add;a=k(c("BizInboxStateContext"));var i=a.pageID;a=d("react-relay").useMutation(d("BizInboxWhatsAppReportCustomerMutation").reportCustomerMutation);var m=a[0];a=l(!1);var n=a[0],o=a[1],p=function(){g(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getWhatsAppBlockReportErrorToast(),status:"error"}),{duration:"sticky"})},q=function(){d("BIZInboxClientLogger").logWhatsAppReportSuccess(i)},r=function(a){p(),d("BIZInboxClientLogger").logWhatsAppReportError(i,a)},s=function(){g(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getWhatsAppReportToast()}))};a=function(){d("BIZInboxClientLogger").logWhatsAppConfirmReportClick(i),f!=null&&(o(!0),m({variables:{input:{contact_id:f,page_id:i}},onCompleted:function(a){var c;o(!1);a=a==null||(c=a.xfb_biz_inbox_whatsapp_report_customer_mutation)==null?void 0:c.is_success;a===!0&&(s(),q());b()},onError:function(a){o(!1),r(a),b()}}))};return j.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{isLoading:n,label:h._(/*BTDS*/"Confirm"),onClick:a,variant:"primary"}),secondaryButton:j.jsx(c("GeoCancelButton.react"),{})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._(/*BTDS*/"Are you sure you want to report this person?")}),onHide:e,children:j.jsx(j.Fragment,{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizInboxWhatsAppReportCustomerMutation.graphql",["BizInboxWhatsAppReportCustomerMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBBizInboxWECReportCustomerMutationResponse",kind:"LinkedField",name:"xfb_biz_inbox_whatsapp_report_customer_mutation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BizInboxWhatsAppReportCustomerMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BizInboxWhatsAppReportCustomerMutation",selections:c},params:{id:b("BizInboxWhatsAppReportCustomerMutation_facebookRelayOperation"),metadata:{},name:"BizInboxWhatsAppReportCustomerMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BizInboxWhatsAppReportCustomerMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="10087418788006806"}),null);
-----