CRMUnblockWAUserConfirmationDialog.react",["fbt","BIZInboxClientLogger","BizInboxFbtUtils","BizInboxStateContext","BizInboxWhatsAppBlockCustomerMutation","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.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.onBlockUser,e=a.onConfirm,f=a.onHide,g=a.pageContactID;a=c("useGeoToaster")();var i=a.add;a=k(c("BizInboxStateContext"));var m=a.pageID;a=d("react-relay").useMutation(d("BizInboxWhatsAppBlockCustomerMutation").blockCustomerMutation);var n=a[0];a=l(!1);var o=a[0],p=a[1],q=function(){i(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getWhatsAppUnblockSuccessToast()}))},r=function(){i(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getWhatsAppBlockReportErrorToast(),status:"error"}),{duration:"sticky"})},s=function(a){a===!1&&(b(!1),d("BIZInboxClientLogger").logWhatsAppUnblockSuccess(m))},t=function(a){r(),d("BIZInboxClientLogger").logWhatsAppUnblockError(m,a)};a=function(){d("BIZInboxClientLogger").logWhatsAppConfirmUnblockClick(m),g!=null&&(p(!0),n({variables:{input:{contact_id:g,page_id:m,action:"unblock"}},onCompleted:function(a){var b,c;p(!1);var d=a==null||(b=a.xfb_biz_inbox_whatsapp_block_customer_mutation)==null?void 0:b.is_blocked;a=a==null||(c=a.xfb_biz_inbox_whatsapp_block_customer_mutation)==null?void 0:c.is_success;a===!0?(q(),s(d)):r();e()},onError:function(a){p(!1),t(a),e()}}))};return j.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{isLoading:o,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 unblock this person?")}),onHide:f,children:j.jsx(c("GeoSection.react"),{children:j.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Once you unblock, you will be able to send messages.")})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizInboxWhatsAppBlockCustomerMutation",["BizInboxWhatsAppBlockCustomerMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("BizInboxWhatsAppBlockCustomerMutation.graphql");g.blockCustomerMutation=a}),98);
-----
BizInboxWhatsAppBlockCustomerMutation.graphql",["BizInboxWhatsAppBlockCustomerMutation_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:"XFBBizInboxWECBlockCustomerMutationResponse",kind:"LinkedField",name:"xfb_biz_inbox_whatsapp_block_customer_mutation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_blocked",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BizInboxWhatsAppBlockCustomerMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BizInboxWhatsAppBlockCustomerMutation",selections:c},params:{id:b("BizInboxWhatsAppBlockCustomerMutation_facebookRelayOperation"),metadata:{},name:"BizInboxWhatsAppBlockCustomerMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BizInboxWhatsAppBlockCustomerMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24117278917903878"}),null);
-----
-----
BizInboxWhatsAppBlockCustomerMutation",["BizInboxWhatsAppBlockCustomerMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("BizInboxWhatsAppBlockCustomerMutation.graphql");g.blockCustomerMutation=a}),98);
-----
BizInboxWhatsAppBlockCustomerMutation.graphql",["BizInboxWhatsAppBlockCustomerMutation_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:"XFBBizInboxWECBlockCustomerMutationResponse",kind:"LinkedField",name:"xfb_biz_inbox_whatsapp_block_customer_mutation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_blocked",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BizInboxWhatsAppBlockCustomerMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BizInboxWhatsAppBlockCustomerMutation",selections:c},params:{id:b("BizInboxWhatsAppBlockCustomerMutation_facebookRelayOperation"),metadata:{},name:"BizInboxWhatsAppBlockCustomerMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BizInboxWhatsAppBlockCustomerMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24117278917903878"}),null);
-----