useWhatsAppBusinessHSMDeleteMutation_templateBulkDeleteMutation.graphql",["useWhatsAppBusinessHSMDeleteMutation_templateBulkDeleteMutation_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:"XFBDeleteWhatsAppBusinessHSMResponse",kind:"LinkedField",name:"xfb_delete_whatsapp_business_template",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"template_ids",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deleted_successfully",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useWhatsAppBusinessHSMDeleteMutation_templateBulkDeleteMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useWhatsAppBusinessHSMDeleteMutation_templateBulkDeleteMutation",selections:t},params:{id:n("useWhatsAppBusinessHSMDeleteMutation_templateBulkDeleteMutation_facebookRelayOperation"),metadata:{},name:"useWhatsAppBusinessHSMDeleteMutation_templateBulkDeleteMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
useWhatsAppBusinessHSMDeleteMutation_templateBulkDeleteMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24748199318193143"}),null);
-----
useWhatsAppBusinessHSMDeleteMutation",["WhatsAppBusinessAccountManagerConstants","nullthrows","react-relay","useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation.graphql","useWhatsAppBusinessHSMFlowSharedState","whatsAppBusinessHSMCreateSubmitMutationRequestUtil"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var e=d("react-relay").useMutation(h!==void 0?h:h=b("useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation.graphql")),f=e[0];e=e[1];var g=c("useWhatsAppBusinessHSMFlowSharedState")(),i=g.state,j=g.updateHSMEditorStatus,k=g.updateHSMDialogStatus,l=g.updateTemplateStatus,m=g.updateTemplateUpdates,n=g.updateTemplateFailed,o=d("whatsAppBusinessHSMCreateSubmitMutationRequestUtil").whatsAppBusinessHSMDeleteSubmitMutationRequest(a,i);g=function(){f({variables:{input:o},onCompleted:function(a){l((a=d("WhatsAppBusinessAccountManagerConstants")).WABAHSMProcessedStatus.DELETED);var b=babelHelpers["extends"]({},i,{status:a.WABAHSMProcessedStatus.DELETED});j(a.HSMEditorStatus.NONE);k(a.HSMDialogStatus.DELETED);m(b)},onError:function(a){j(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.NONE);k(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.DELETED);a={error:a,language:i.language,status:i.status};n(a)},updater:function(a){a["delete"](c("nullthrows")(o.template_id))}})};return{commitConfigDeleting:g,isMutationInFlight:e}}g["default"]=a}),98);
-----
WhatsAppBusinessAccountManagerHSMEditorContainerV2.react",["fbt","GeoButton.react","GeoCard.react","GeoCreationFooter.react","GeoCreationPage.react","GeoPageHeader.react","GeoSpinner.react","GeoToolbar.react","GeoTooltip.react","GeoVStack.react","RelayHooks","WAMFlowsHSMGatingUtils.react","WhatsAppBusinessAccountManagerAccountSelectorContainerV2.react","WhatsAppBusinessAccountManagerConstants","WhatsAppBusinessAccountManagerFormSetupComponentV2.react","WhatsAppBusinessAccountManagerHSMAlertBannerWrapper.react","WhatsAppBusinessAccountManagerHSMAuthenticationButtonDefaultText","WhatsAppBusinessAccountManagerHSMAuthenticationButtonTextComponent.react","WhatsAppBusinessAccountManagerHSMAuthenticationEligibilityCheckComponentV2.react","WhatsAppBusinessAccountManagerHSMAuthenticationSupportedAppsComponent.react","WhatsAppBusinessAccountManagerHSMAuthenticationUtils","WhatsAppBusinessAccountManagerHSMBasicSummaryComponent.react","WhatsAppBusinessAccountManagerHSMButtonSection.react","WhatsAppBusinessAccountManagerHSMCodeSetupComponentV2.react","WhatsAppBusinessAccountManagerHSMCreationStepper.react","WhatsAppBusinessAccountManagerHSMCreationUtil","WhatsAppBusinessAccountManagerHSMDeleteDialog.react","WhatsAppBusinessAccountManagerHSMDiscardContentDialog.react","WhatsAppBusinessAccountManagerHSMFbt","WhatsAppBusinessAccountManagerHSMFormatValidatorUtils","WhatsAppBusinessAccountManagerHSMFormatValidatorUtilsV2","WhatsAppBusinessAccountManagerHSMMessageValidityPeriodComponent.react","WhatsAppBusinessAccountManagerHSMSubmitConfirmDialogV2.react","WhatsAppBusinessAccountManagerHSMTemplateCatalogFormatSelectionSection.react","WhatsAppBusinessAccountManagerHSMTemplateCatalogSection.react","WhatsAppBusinessAccountManagerHSMTemplateContentEditingWrapper.react","WhatsAppBusinessAccountManagerHSMTemplateInfoSection.react","WhatsAppBusinessAccountManagerHSMTemplatePreviewSectionV2.react","WhatsAppBusinessAccountManagerRoutingHelper","WhatsAppBusinessEditorUtil","react","useIsAdsManagerTemplate","useViewerGranularPermissionsQuery","useWhatsAppBusinessHSMDeleteMutation","useWhatsAppBusinessHSMFlowSharedState","useWhatsAppBusinessMultipleGKChecksQuery"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState,aa=360;function a(a){var b,e,f,g,i,ba=a.businessID,l=a.setShowFinishDialog,m=a.wabaID;a=a.wabaName;var n=c("useWhatsAppBusinessHSMFlowSharedState")(),o=n.state,p=n.updateHSMEditorStatus,q=n.updateHSMDialogStatus,ca=n.updateHSMSharedState,da=n.updateEditorStatus,ea=n.updateFormatViolations,fa=n.updateAuthenticationButtonDefaultText;n=[(n=d("WhatsAppBusinessAccountManagerConstants")).WABAHSMEditorStatus.NOT_STARTED,n.WABAHSMEditorStatus.DRAFT,n.WABAHSMEditorStatus.VALID,n.WABAHSMEditorStatus.ERROR,n.WABAHSMEditorStatus.INVALID_EXAMPLES];var r=o.name,s=o.rejectionReason,t=o.status,u=o.numApprovedStateEdits,v=o.category,w=o.hsmEditorStatus,x=o.editorStatus,y=o.prefilledContent,z=o.previousTag,A=o.meetsAuthButtonRestrictions,B=o.inCreationFlow,C=o.subCategory,D=o.hsmDialogStatus,E=o.buttons,F=o.isNameValid;b=((b=E.buttons)==null?void 0:b.some(function(a){return a.type==="FLOW"}))&&C!=="FORM";var G=d("WhatsAppBusinessEditorUtil").isHSMCatalogSelectionEnabled(C),ga=y==null?void 0:y.prefilledTagSubCategory,ha=y==null?void 0:y.prefilledHSMItem.rejectionReason,H=y==null?void 0:y.prefilledHSMItem,I=y==null?void 0:y.prefilledTitle,J=d("WhatsAppBusinessEditorUtil").isTemplate24hrLimitReached(t,u);u=d("WhatsAppBusinessEditorUtil").isTemplate30dLimitReached(t,u);var K=c("useWhatsAppBusinessMultipleGKChecksQuery")(["AUTHENTICATION_FREEFORM_AUTH_TEMPLATE_GK","AUTHENTICATION_ELIGIBILITY_CHECK_GK"],{wabaID:m}),L=K[0];K=K[1];e=k((e=o.ctaUrlLinkTrackingOptedOut)!=null?e:!0);var M=e[0];e=e[1];var ia=d("WAMFlowsHSMGatingUtils.react").useIsFlowsEnabledInHSM(m);f=c("useIsAdsManagerTemplate")((f=o.id)!=null?f:"");var N=r==="test"?"Hello {{1}}":null,O=[d("WhatsAppBusinessAccountManagerConstants").WABAHSMProcessedStatus.PENDING,d("WhatsAppBusinessAccountManagerConstants").WABAHSMProcessedStatus.DISABLED].includes(x)||J||u,P=c("useWhatsAppBusinessHSMDeleteMutation")(m),ja=P.commitConfigDeleting;P=function(){!S?p(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.DISCARD_CONFIRMATION):S&&(p(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.NONE),q(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.NONE))};var ka=function(){p(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.SUBMIT_CONFIRMATION),da(d("WhatsAppBusinessAccountManagerConstants").WABAHSMEditorStatus.VALID),l==null?void 0:l(!0)},la=function(){p(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.EDIT)},ma=function(){p(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.EDIT)},na=function(){p(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.EDIT),q(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.EDIT)},oa=function(){q(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.DELETE)},pa=function(){ja(),q(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.DELETE),l==null?void 0:l(!0)},qa=o.body,ra=o.header,sa=o.footer,ta=o.approvedBody,Q=o.limitedTimeOffer,ua=o.cards,va=o.language,R=o.authContentRestrictions,S=o.isTemplateUnchanged,T=c("useViewerGranularPermissionsQuery")(m,"MANAGE_HSM"),U=k(T&&f),V=U[0];U=U[1];var wa=function(){var a;a=d("WhatsAppBusinessAccountManagerHSMFormatValidatorUtilsV2").getHSMFormatViolationsForGraphQL((a=qa.text)!=null?a:"",(a=ra.text)!=null?a:"",(a=sa.text)!=null?a:"",E.buttons,Q==null?void 0:(a=Q.limitedTimeOffer)==null?void 0:a.text,ua.cards,r,ta,d("WhatsAppBusinessAccountManagerHSMFormatValidatorUtils").TemplateCreationSurface.WHATSAPP_MANAGER,R);ea(a)},xa=d("RelayHooks").useRelayEnvironment(),W=function(b,a){var c=d("WhatsAppBusinessEditorUtil").filterHSMCreationStateContentForCategoryChange(o,b,L);b==="AUTHENTICATION"&&d("WhatsAppBusinessAccountManagerHSMAuthenticationButtonDefaultText").fetchAuthenticationButtonDefaultText(xa,va,fa);ca(babelHelpers["extends"]({},c,{category:b}));p((c=a)!=null?c:o.hsmEditorStatus);wa()},X=o.id,ya=function(){B!==!0?(X!=null&&d("WhatsAppBusinessAccountManagerRoutingHelper").navigatetoTemplateDetails(m,X),q(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.NONE),p(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.NONE)):q(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.CREATE)},za=function(a){if(a==="AUTHENTICATION"&&(y==null?void 0:y.prefilledTag)!=="AUTHENTICATION")return W(a,d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.EDIT);else return W(a)};A=v==="AUTHENTICATION"&&A===!0;g=(g=d("WhatsAppBusinessAccountManagerHSMAuthenticationUtils").findOtpButton(E.buttons))!=null?g:o.otpAutofillButton;var Aa=d("WhatsAppBusinessAccountManagerHSMCreationUtil").hasAuthFixedContent(o),Y=d("WhatsAppBusinessEditorUtil").hasValidExamplesForCreationState(R,o),Ba=d("WhatsAppBusinessEditorUtil").hasRequiredValuesForCreationState(o),Z=Ba&&!d("WhatsAppBusinessEditorUtil").hasFormatViolationsForCreationState(o),$=Y&&d("WhatsAppBusinessEditorUtil").passesCategoryChecksForCreationState(o);i=(i=z)!=null?i:H==null?void 0:H.category;i=i!==v||!S;i=T&&i&&$&&Z&&F;i!==V&&U(i);$=t!==null&&t!==d("WhatsAppBusinessAccountManagerConstants").WABAHSMProcessedStatus.APPROVED&&t!==d("WhatsAppBusinessAccountManagerConstants").WABAHSMProcessedStatus.PAUSED&&t!==d("WhatsAppBusinessAccountManagerConstants").WABAHSMProcessedStatus.REJECTED&&B!==!0;Z=f?d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_DISABLED_FOR_ADS_MANAGER_MSG:$?d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_DISABLED_MSG:J?d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_DISABLED_REASON_DAILY_LIMIT_REACHED:u?d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_DISABLED_REASON_30_DAY_LIMIT_REACHED:T?null:d("WhatsAppBusinessAccountManagerHSMFbt").HSM_MANAGEMENT_DISABLED_PERMISSION;F=f?d("WhatsAppBusinessAccountManagerHSMFbt").HSM_DELETE_DISABLED_FOR_ADS_MANAGER_MSG:T?null:d("WhatsAppBusinessAccountManagerHSMFbt").HSM_MANAGEMENT_DISABLED_PERMISSION;U=d("WhatsAppBusinessAccountManagerHSMFormatValidatorUtils").getFormatErrorAndWarningStatus(o.formatViolations==null?[]:[].concat(o.formatViolations));i=U[0];U[1];$=o.id!=null?j.jsx(c("WhatsAppBusinessAccountManagerHSMAlertBannerWrapper.react"),{wabaID:m,hsmID:o.id,displayCtaLink:!0}):null;J=!Y;u=i||J;U=function(b,a){if(b)return j.jsx(c("GeoTooltip.react"),{align:"end",position:"below",content:d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_BUTTON_ERROR_TOOLTIP_CONTENT,heading:d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_BUTTON_ERROR_TOOLTIP_HEADER});return!a?j.jsx(c("GeoTooltip.react"),{align:"end",position:"below",content:d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_BUTTON_MISSING_REQUIRED_TEXT_TOOLTIP_CONTENT,heading:d("WhatsAppBusinessAccountManagerHSMFbt").HSM_SUBMIT_BUTTON_MISSING_REQUIRED_TEXT_TOOLTIP_HEADER}):null};return j.jsxs(c("GeoVStack.react"),{children:[j.jsxs(c("GeoCreationPage.react"),{footer:j.jsx(c("GeoCreationFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{label:v==="AUTHENTICATION"&&Aa?h._("u63d0u4ea4"):h._("u63d0u4ea4u5ba1u6838"),variant:"primary",onClick:ka,"data-testid":void 0,isDisabled:!V||w===d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.SUBMIT_CONFIRMATION,disabledMessage:Z,tooltip:U(u,Ba),isLoading:w===d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.SUBMIT_CONFIRMATION}),secondaryButton:j.jsx(c("GeoButton.react"),{label:h._("u8fd4u56de"),onClick:ya,"data-testid":void 0}),additionalContent:j.jsx(c("GeoButton.react"),{label:h._("u653eu5f03"),onClick:P,"data-testid":void 0})}),header:j.jsx(c("GeoPageHeader.react"),{heading:B===!0?h._("u521bu5efau6a21u677f"):h._("u7f16u8f91u6a21u677f"),toolbar:j.jsx(c("GeoToolbar.react"),{children:j.jsx(c("WhatsAppBusinessAccountManagerAccountSelectorContainerV2.react"),{})})}),preview:j.jsx(c("GeoCard.react"),{children:j.jsx(c("WhatsAppBusinessAccountManagerHSMTemplatePreviewSectionV2.react"),{wabaID:m})}),previewWidth:aa,stickyContainer:"preview",children:[B===!0&&j.jsx(c("WhatsAppBusinessAccountManagerHSMCreationStepper.react"),{}),$!=null&&j.jsx(c("GeoCard.react"),{children:$}),j.jsx(c("GeoCard.react"),{children:j.jsx(c("WhatsAppBusinessAccountManagerHSMBasicSummaryComponent.react"),{onClickDeleteButton:oa,isDeleteDisabled:!T||f,deletionDisabledMessage:F})}),j.jsx(c("GeoCard.react"),{children:j.jsx(c("WhatsAppBusinessAccountManagerHSMTemplateInfoSection.react"),{wabaID:m})}),G&&j.jsx(c("GeoCard.react"),{children:j.jsx(d("WhatsAppBusinessAccountManagerHSMTemplateCatalogFormatSelectionSection.react").WhatsAppBusinessAccountManagerHSMTemplateCatalogFormatSelectionSection,{})}),G&&j.jsx(c("GeoCard.react"),{children:j.jsx(d("WhatsAppBusinessAccountManagerHSMTemplateCatalogSection.react").WhatsAppBusinessAccountManagerHSMTemplateCatalogSection,{})}),C==="FORM"&&j.jsx(c("GeoCard.react"),{children:j.jsx(d("WhatsAppBusinessAccountManagerFormSetupComponentV2.react").WhatsAppBusinessAccountManagerFormSetupComponentV2,{})}),A&&j.jsx(c("GeoCard.react"),{children:j.jsx(j.Suspense,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx(c("WhatsAppBusinessAccountManagerHSMCodeSetupComponentV2.react"),{isAuthFixedContent:!1,isDisabled:O,otpButton:g,wabaName:a,formatViolations:o.formatViolations==null?[]:[].concat(o.formatViolations)})})}),A&&g.otpType!=="COPY_CODE"&&j.jsx(c("GeoCard.react"),{children:j.jsx(c("WhatsAppBusinessAccountManagerHSMAuthenticationSupportedAppsComponent.react"),{button:g,formatViolations:o.formatViolations==null?[]:o.formatViolations,isDisabled:O})}),j.jsx(c("GeoCard.react"),{children:j.jsx(j.Suspense,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx(d("WhatsAppBusinessAccountManagerHSMTemplateContentEditingWrapper.react").WhatsAppBusinessAccountManagerHSMTemplateContentEditingWrapper,{applyAuthContentRestrictions:R,buttons:o.buttons.buttons,wabaID:m,rejectionReason:s,headerSample:o.example.headerExample,editorStatus:o.editorStatus,headerFileName:o.example.headerMediaExampleName,headerFileSrc:o.example.headerMediaExampleSrc,headerText:o.header.text,formatViolations:o.formatViolations==null?[]:[].concat(o.formatViolations),isDisabled:O,isTemplateAvailableOnAdsManager:f,numApprovedStateEdits:o.numApprovedStateEdits,hasAuthFixedContent:Aa,hasManageHSMGranularPermission:!0,headerFormat:o.header.format,bodySamples:o.example.bodyExamples==null?null:o.example.bodyExamples,bodyText:(Y=o.body.text)!=null?Y:N,allowFreeformAuthTemplate:L})})}),A&&j.jsx(c("GeoCard.react"),{children:j.jsx(j.Suspense,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx(d("WhatsAppBusinessAccountManagerHSMAuthenticationButtonTextComponent.react").WhatsAppBusinessAccountManagerHSMAuthenticationButtonTextComponent,{button:g,isDisabled:O,formatViolations:o.formatViolations==null?[]:o.formatViolations})})}),!A&&!d("WhatsAppBusinessEditorUtil").isHSMButtonInputHiden(C)&&j.jsx(c("GeoCard.react"),{children:j.jsx(j.Suspense,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx(d("WhatsAppBusinessAccountManagerHSMButtonSection.react").WhatsAppBusinessAccountManagerHSMButtonSection,{buttons:o.buttons.buttons,wabaID:m,rejectionReason:s,headerSample:o.example.headerExample,editorStatus:o.editorStatus,headerFileName:o.example.headerMediaExampleName,headerFileSrc:o.example.headerMediaExampleSrc,headerText:o.header.text,formatViolations:o.formatViolations==null?[]:[].concat(o.formatViolations),isDisabled:O,isTemplateAvailableOnAdsManager:f,numApprovedStateEdits:o.numApprovedStateEdits,hasAuthFixedContent:!1,hasManageHSMGranularPermission:!0,headerFormat:o.header.format,bodySamples:o.example.bodyExamples==null?null:o.example.bodyExamples,bodyText:(i=o.body.text)!=null?i:N,isFlowsInHSMEnabled:ia,ctaUrlLinkTrackingOptedOut:M,setCtaUrlLinkTrackingOptedOutState:e})})}),b===!0&&j.jsx(c("GeoCard.react"),{children:j.jsx(d("WhatsAppBusinessAccountManagerFormSetupComponentV2.react").WhatsAppBusinessAccountManagerFormSetupComponentV2,{})}),v==="AUTHENTICATION"&&K&&j.jsx(c("GeoCard.react"),{children:j.jsx(c("WhatsAppBusinessAccountManagerHSMAuthenticationEligibilityCheckComponentV2.react"),{isDisabled:O,wabaName:a})}),v==="AUTHENTICATION"&&j.jsx(c("GeoCard.react"),{children:j.jsx(j.Suspense,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx(c("WhatsAppBusinessAccountManagerHSMMessageValidityPeriodComponent.react"),{isDisabled:O,wabaID:m})})})]}),w===d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.DISCARD_CONFIRMATION&&j.jsx(c("WhatsAppBusinessAccountManagerHSMDiscardContentDialog.react"),{isShown:!0,onDiscard:ya,onCancel:ma}),j.jsx(j.Suspense,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:(w===d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.SUBMIT_CONFIRMATION||w===d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.UPDATING)&&v!=null&&r!=null&&j.jsx(c("WhatsAppBusinessAccountManagerHSMSubmitConfirmDialogV2.react"),{wabaID:m,allowFreeformAuthTemplate:L,businessID:ba,inMigrationEditingModal:!1,isApprovedEditFlow:t===d("WhatsAppBusinessAccountManagerConstants").WABAHSMProcessedStatus.APPROVED,language:o,isCategoryUpdated:z!==v,isShown:!0,isUpdating:w===d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.UPDATING||D===d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.UPDATING,isSelectCategoryAllowed:n.includes(x)||ha==="INCORRECT_CATEGORY",onCancel:la,languageUpdated:o,prefilledLanguage:(J=H)!=null?J:null,tag:v,tagSubCategory:ga,onCategoryChange:za,ctaUrlLinkTrackingOptedOutState:M})}),j.jsx(j.Suspense,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:(D===d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.DELETE||D===d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.DELETING)&&I!=null&&j.jsx(c("WhatsAppBusinessAccountManagerHSMDeleteDialog.react"),{hsmName:I,isDeleting:D===d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.DELETING,onConfirmDelete:pa,onHide:na})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation.graphql",["useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation_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:"data",variableName:"input"}],concreteType:"XFBDeleteWhatsAppBusinessHSMResponse",kind:"LinkedField",name:"xfb_delete_whatsapp_business_template",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"template_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deleted_successfully",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation",selections:c},params:{id:b("useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation_facebookRelayOperation"),metadata:{},name:"useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7178572272191740"}),null);
-----
useWhatsAppBusinessHSMDeleteMutation",["WhatsAppBusinessAccountManagerConstants","nullthrows","react-relay","useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation.graphql","useWhatsAppBusinessHSMFlowSharedState","whatsAppBusinessHSMCreateSubmitMutationRequestUtil"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var e=d("react-relay").useMutation(h!==void 0?h:h=b("useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation.graphql")),f=e[0];e=e[1];var g=c("useWhatsAppBusinessHSMFlowSharedState")(),i=g.state,j=g.updateHSMEditorStatus,k=g.updateHSMDialogStatus,l=g.updateTemplateStatus,m=g.updateTemplateUpdates,n=g.updateTemplateFailed,o=d("whatsAppBusinessHSMCreateSubmitMutationRequestUtil").whatsAppBusinessHSMDeleteSubmitMutationRequest(a,i);g=function(){f({variables:{input:o},onCompleted:function(a){l((a=d("WhatsAppBusinessAccountManagerConstants")).WABAHSMProcessedStatus.DELETED);var b=babelHelpers["extends"]({},i,{status:a.WABAHSMProcessedStatus.DELETED});j(a.HSMEditorStatus.NONE);k(a.HSMDialogStatus.DELETED);m(b)},onError:function(a){j(d("WhatsAppBusinessAccountManagerConstants").HSMEditorStatus.NONE);k(d("WhatsAppBusinessAccountManagerConstants").HSMDialogStatus.DELETED);a={error:a,language:i.language,status:i.status};n(a)},updater:function(a){a["delete"](c("nullthrows")(o.template_id))}})};return{commitConfigDeleting:g,isMutationInFlight:e}}g["default"]=a}),98);
-----
useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation.graphql",["useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation_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:"data",variableName:"input"}],concreteType:"XFBDeleteWhatsAppBusinessHSMResponse",kind:"LinkedField",name:"xfb_delete_whatsapp_business_template",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"template_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deleted_successfully",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation",selections:c},params:{id:b("useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation_facebookRelayOperation"),metadata:{},name:"useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useWhatsAppBusinessHSMDeleteMutation_templateDeleteMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7178572272191740"}),null);
-----