BizKitSettingsAddManageMessageAccessModal.react",["fbt","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSwitch.react","GeoToast.react","react","react-compiler-runtime","useBizMsgPlatformLogger","useGeoToaster","useUpdateWhatsAppBusinessAccountWebhookConfigMutation"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e.useState;function d(e){var t=o("react-compiler-runtime").c(40),n=e.props,a=n.isEnabled,i=n.onHide,l=n.partnerName,d=n.setIsEnabled,m=n.wabaID,p=n.wabaName,_;if(t[0]!==l||t[1]!==p){var f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=u.jsx(r("GeoLink.react"),{children:"About message access webhooks"}),t[3]=f):f=t[3],_=s._(/*BTDS*/"{partner_name} u0915u094b u092au0930u092eu093fu0936u0928 u0926u0947u0902 u0915u093f u0935u0947 {waba_name} u0915u0947 u0928u0902u092cu0930u094bu0902 u0914u0930 u0906u092au0915u0947 u0915u0938u094du091fu092eu0930u094du0938 u0915u0947 u092cu0940u091a u0915u0947 u0938u092du0940 u092eu0948u0938u0947u091c u092au0922u093c u0938u0915u0924u0947 u0939u0948u0902. u0907u0928 u092eu0948u0938u0947u091c u0915u094b {partner_name}, u0909u0928u0915u0947 u092eu094cu091cu0942u0926u093e u0914u0930 u092du0935u093fu0937u094du092f u0915u0947 u092au093eu0930u094du091fu0928u0930u094du0938 u0926u0947u0916 u0938u0915u0924u0947 u0939u0948u0902. u0938u093eu0925 u0939u0940, u0935u0947 u092au093eu0930u094du091fu0928u0930u094du0938 u092du0940 u0926u0947u0916 u0938u0915u0924u0947 u0939u0948u0902 u091cu093fu0928u094du0939u0947u0902 u0906u092au0928u0947 u092au0939u0932u0947 u0915u092du0940 u092eu0948u0938u0947u091c u0915u093e u090fu0915u094du0938u0947u0938 u0926u093fu092fu093e u0925u093e. {link}",[s._param("partner_name",l),s._param("waba_name",p),s._param("link",f)]),t[0]=l,t[1]=p,t[2]=_}else _=t[2];var g=_,h;t[4]!==l||t[5]!==p?(h=function(){return u.jsx(r("GeoToast.react"),{description:s._(/*BTDS*/"{partner_name} u0915u0947 u092au093eu0938 u0905u092c u0909u0928 u092eu0948u0938u0947u091c u0915u093e u090fu0915u094du0938u0947u0938 u0939u0948 u091cu093fu0928u094du0939u0947u0902 u092au093eu0930u094du091fu0928u0930 u0928u0947 {waba_name} u0915u0940 u0913u0930 u0938u0947 u092du0947u091cu093e u0939u0948.",[s._param("partner_name",l),s._param("waba_name",p)]),heading:""})},t[4]=l,t[5]=p,t[6]=h):h=t[6];var y=h,C;t[7]!==l||t[8]!==p?(C=function(){return u.jsx(r("GeoToast.react"),{description:s._(/*BTDS*/"{partner_name} u0915u0947 u092au093eu0938 u0905u092c u0909u0928 u092eu0948u0938u0947u091c u0915u093e u090fu0915u094du0938u0947u0938 u0928u0939u0940u0902 u0939u0948 u091cu093fu0928u094du0939u0947u0902 u092au093eu0930u094du091fu0928u0930 u0928u0947 {waba_name} u0915u0940 u0913u0930 u0938u0947 u092du0947u091cu093e u0939u0948.",[s._param("partner_name",l),s._param("waba_name",p)]),heading:""})},t[7]=l,t[8]=p,t[9]=C):C=t[9];var b=C,v=r("useGeoToaster")(),S=v.add,R=r("useBizMsgPlatformLogger")(),L=c(a),E=L[0],k=E!==a,I=String(514771569228061),T;t[10]!==R?(T=R.getLoggingID(),t[10]=R,t[11]=T):T=t[11];var D=r("useUpdateWhatsAppBusinessAccountWebhookConfigMutation")(I,String(T),String(m)),x=D[0],$;t[12]!==S||t[13]!==a||t[14]!==i||t[15]!==y||t[16]!==b||t[17]!==x?($=function(){x(a).then(function(){S(a?y():b())}).finally(function(){i()})},t[12]=S,t[13]=a,t[14]=i,t[15]=y,t[16]=b,t[17]=x,t[18]=$):$=t[18];var P=$,N,M;t[19]===Symbol.for("react.memo_cache_sentinel")?(N={surface:"settings_add_manage_message_access_modal_baef"},M=u.jsx(r("GeoModalHeader.react"),{heading:"Manage message access"}),t[19]=N,t[20]=M):(N=t[19],M=t[20]);var w,A;t[21]===Symbol.for("react.memo_cache_sentinel")?(w={surface:"manage_message_access_modal_button_save_ffeb"},A=s._(/*BTDS*/"u0938u0947u0935 u0915u0930u0947u0902"),t[21]=w,t[22]=A):(w=t[21],A=t[22]);var F=!k,O;t[23]!==P||t[24]!==F?(O=u.jsx(r("GeoButton.react"),{"data-testid":void 0,logging:w,label:A,variant:"primary",isDisabled:F,onClick:P}),t[23]=P,t[24]=F,t[25]=O):O=t[25];var B;t[26]!==i?(B=u.jsx(r("GeoCancelButton.react"),{onClick:i}),t[26]=i,t[27]=B):B=t[27];var W;t[28]!==O||t[29]!==B?(W=u.jsx(r("GeoModalFooter.react"),{primaryButton:O,secondaryButton:B}),t[28]=O,t[29]=B,t[30]=W):W=t[30];var q;t[31]===Symbol.for("react.memo_cache_sentinel")?(q={surface:"add_manage_message_access_modal_switch_acff"},t[31]=q):q=t[31];var U;t[32]!==g||t[33]!==a||t[34]!==d?(U=u.jsx(r("GeoSection.react"),{children:u.jsx(r("GeoSwitch.react"),{"data-testid":void 0,logging:q,label:"",onChange:d,value:a,labelPosition:"suffix",description:g})}),t[32]=g,t[33]=a,t[34]=d,t[35]=U):U=t[35];var V;return t[36]!==i||t[37]!==W||t[38]!==U?(V=u.jsx(r("GeoModal.react"),{"data-testid":void 0,logging:N,header:M,onHide:i,width:650,footer:W,children:U}),t[36]=i,t[37]=W,t[38]=U,t[39]=V):V=t[39],V}l.default=d}),226);
-----
useUpdateWhatsAppBusinessAccountWebhookConfigMutation",["CrossPlatformCurrentUser","WhatsAppBizxPlatformLoggerEvent.flow","react","react-compiler-runtime","useUpdateWhatsAppBusinessAccountWebhookConfigMutation_UpdateWhatsAppBusinessAccountWebhookConfigMutation.graphql","useWhatsAppBizxPlatformRelay"],(function(U,_,r,c,k,M,l){"use strict";var h,f,v=(f||(f=c("react"))).useCallback,g=h!==void 0?h:h=_("useUpdateWhatsAppBusinessAccountWebhookConfigMutation_UpdateWhatsAppBusinessAccountWebhookConfigMutation.graphql");function B(o,s,a,n,u){var t=c("react-compiler-runtime").c(9),b=r("useWhatsAppBizxPlatformRelay")(),A=b.commitMutation,i;t[0]!==o||t[1]!==A||t[2]!==s||t[3]!==n||t[4]!==u||t[5]!==a?(i=function(d){return A({mutation:g,variables:{input:{actor_id:c("CrossPlatformCurrentUser").getID(),log_session_id:s,app_id:o,waba_id:a,echoes_enabled:d}}},{event:r("WhatsAppBizxPlatformLoggerEvent.flow").UPDATE_WHATSAPP_WEBHOOK_CONFIG,eventPayload:{appID:o,loggerID:s,wabaID:a,echoEnabled:d}},!0).then(function(e){return n==null||n(e),e}).catch(function(e){throw u==null||u(e),e})},t[0]=o,t[1]=A,t[2]=s,t[3]=n,t[4]=u,t[5]=a,t[6]=i):i=t[6];var W=i,p;return t[7]!==W?(p=[W],t[7]=W,t[8]=p):p=t[8],p}l.default=B}),98);
-----